Skip to content

Commit

Permalink
Reuse a shader type acronym getter
Browse files Browse the repository at this point in the history
This change introduces reusing a shader type acronym getter.
  • Loading branch information
krystian-andrzejewski authored and igcbot committed Mar 22, 2022
1 parent a232865 commit 6cd746e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions IGC/common/debug/Dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,19 +229,7 @@ std::string DumpName::AbsolutePath(OutputFolderName folder) const
if(m_type.hasValue())
{
ss << (underscore ? "_" : "");
switch(m_type.getValue())
{
case ShaderType::OPENCL_SHADER: ss << "OCL"; break;
case ShaderType::PIXEL_SHADER: ss << "PS"; break;
case ShaderType::DOMAIN_SHADER: ss << "DS"; break;
case ShaderType::HULL_SHADER: ss << "HS"; break;
case ShaderType::VERTEX_SHADER: ss << "VS"; break;
case ShaderType::GEOMETRY_SHADER: ss << "GS"; break;
case ShaderType::COMPUTE_SHADER: ss << "CS"; break;
case ShaderType::RAYTRACING_SHADER: ss << "RT"; break;
case ShaderType::UNKNOWN:
default: IGC_ASSERT_MESSAGE(0, "Unknown Shader Type"); break;
}
ss << GetShaderTypeAcronym(m_type.getValue());
underscore = true;
}
if(m_psPhase.hasValue())
Expand Down

0 comments on commit 6cd746e

Please sign in to comment.