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

Function ImageChannelOrderString

SPIRV/doc.cpp:613–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613const char* ImageChannelOrderString(int format)
614{
615 switch (format) {
616 case 0: return "R";
617 case 1: return "A";
618 case 2: return "RG";
619 case 3: return "RA";
620 case 4: return "RGB";
621 case 5: return "RGBA";
622 case 6: return "BGRA";
623 case 7: return "ARGB";
624 case 8: return "Intensity";
625 case 9: return "Luminance";
626 case 10: return "Rx";
627 case 11: return "RGx";
628 case 12: return "RGBx";
629 case 13: return "Depth";
630 case 14: return "DepthStencil";
631 case 15: return "sRGB";
632 case 16: return "sRGBx";
633 case 17: return "sRGBA";
634 case 18: return "sBGRA";
635
636 default:
637 return "Bad";
638 }
639}
640
641const char* ImageChannelDataTypeString(int type)
642{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected