MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / GLSLextAMDGetDebugNames

Function GLSLextAMDGetDebugNames

SPIRV/disassemble.cpp:732–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732static const char* GLSLextAMDGetDebugNames(const char* name, unsigned entrypoint)
733{
734 if (strcmp(name, spv::E_SPV_AMD_shader_ballot) == 0) {
735 switch (entrypoint) {
736 case SwizzleInvocationsAMD: return "SwizzleInvocationsAMD";
737 case SwizzleInvocationsMaskedAMD: return "SwizzleInvocationsMaskedAMD";
738 case WriteInvocationAMD: return "WriteInvocationAMD";
739 case MbcntAMD: return "MbcntAMD";
740 default: return "Bad";
741 }
742 } else if (strcmp(name, spv::E_SPV_AMD_shader_trinary_minmax) == 0) {
743 switch (entrypoint) {
744 case FMin3AMD: return "FMin3AMD";
745 case UMin3AMD: return "UMin3AMD";
746 case SMin3AMD: return "SMin3AMD";
747 case FMax3AMD: return "FMax3AMD";
748 case UMax3AMD: return "UMax3AMD";
749 case SMax3AMD: return "SMax3AMD";
750 case FMid3AMD: return "FMid3AMD";
751 case UMid3AMD: return "UMid3AMD";
752 case SMid3AMD: return "SMid3AMD";
753 default: return "Bad";
754 }
755 } else if (strcmp(name, spv::E_SPV_AMD_shader_explicit_vertex_parameter) == 0) {
756 switch (entrypoint) {
757 case InterpolateAtVertexAMD: return "InterpolateAtVertexAMD";
758 default: return "Bad";
759 }
760 }
761 else if (strcmp(name, spv::E_SPV_AMD_gcn_shader) == 0) {
762 switch (entrypoint) {
763 case CubeFaceIndexAMD: return "CubeFaceIndexAMD";
764 case CubeFaceCoordAMD: return "CubeFaceCoordAMD";
765 case TimeAMD: return "TimeAMD";
766 default:
767 break;
768 }
769 }
770
771 return "Bad";
772}
773
774static const char* GLSLextNVGetDebugNames(const char* name, unsigned entrypoint)
775{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected