File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,33 @@ namespace Debug
4747char ModuleFlushDumpPass::ID = 0 ;
4848char FunctionFlushDumpPass::ID = 0 ;
4949
50+ std::string GetShaderTypeAcronym (ShaderType shaderType)
51+ {
52+ switch (shaderType)
53+ {
54+ case ShaderType::OPENCL_SHADER:
55+ return " OCL" ;
56+ case ShaderType::PIXEL_SHADER:
57+ return " PS" ;
58+ case ShaderType::DOMAIN_SHADER:
59+ return " DS" ;
60+ case ShaderType::HULL_SHADER:
61+ return " HS" ;
62+ case ShaderType::VERTEX_SHADER:
63+ return " VS" ;
64+ case ShaderType::GEOMETRY_SHADER:
65+ return " GS" ;
66+ case ShaderType::COMPUTE_SHADER:
67+ return " CS" ; break ;
68+ case ShaderType::RAYTRACING_SHADER:
69+ return " RT" ; break ;
70+ case ShaderType::UNKNOWN:
71+ default :
72+ IGC_ASSERT_MESSAGE (0 , " Unknown Shader Type" );
73+ return " UNKNOWN" ;
74+ }
75+ }
76+
5077/* ************************************************************************************************\
5178 * Generic
5279 */
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ namespace IGC
4646class CShader ;
4747namespace Debug
4848{
49+ std::string GetShaderTypeAcronym (ShaderType shaderType);
4950
5051/* ************************************************************************************************\
5152 * Generic
You can’t perform that action at this time.
0 commit comments