MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetString

Method GetString

shadercompiler/EffectCompilerMetal.cpp:4791–4839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4789}
4790
4791const char* MetalSystemSemanticsType::GetString( int type )
4792{
4793 // Note: This array has to be syncronized with MetalSystemSemanticsType::Enum.
4794 const char* strings[] = {
4795 "position",
4796 "position, invariant",
4797 "front_facing",
4798 "vertex_id",
4799 "instance_id",
4800 "primitive_id",
4801 "clip_distance",
4802 "point_size",
4803 "color(0)",
4804 "color(1)",
4805 "color(2)",
4806 "color(3)",
4807 "color(4)",
4808 "color(5)",
4809 "color(6)",
4810 "color(7)",
4811 "depth",
4812 "stencil",
4813 "thread_position_in_grid",
4814 "thread_position_in_threadgroup",
4815 "thread_index_in_threadgroup",
4816 "threadgroup_position_in_grid",
4817 "sample_id",
4818 "threads_per_grid",
4819 "payload",
4820 "barycentric_coord",
4821 "origin",
4822 "direction",
4823 "min_distance",
4824 "distance",
4825 "instance_intersection_function_table_offset",
4826 "object_to_world_transform",
4827 "world_to_object_transform",
4828 "base_vertex",
4829 "base_instance",
4830 };
4831
4832 const int typeCount = sizeof( strings ) / sizeof( strings[0] );
4833 if( 0 <= type && type < typeCount )
4834 {
4835 return strings[type];
4836 }
4837
4838 return "!!invalid_system_semantic!!";
4839};
4840
4841bool EffectCompilerMetal::Create()
4842{

Callers 2

PrintAnnotationsFunction · 0.45
PrintStageInfoFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected