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

Function MemorySemanticsString

SPIRV/doc.cpp:806–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806const char* MemorySemanticsString(int mem)
807{
808 // Note: No bits set (None) means "Relaxed"
809 switch (mem) {
810 case 0: return "Bad"; // Note: this is a placeholder for 'Consume'
811 case 1: return "Acquire";
812 case 2: return "Release";
813 case 3: return "AcquireRelease";
814 case 4: return "SequentiallyConsistent";
815 case 5: return "Bad"; // Note: reserved for future expansion
816 case 6: return "UniformMemory";
817 case 7: return "SubgroupMemory";
818 case 8: return "WorkgroupMemory";
819 case 9: return "CrossWorkgroupMemory";
820 case 10: return "AtomicCounterMemory";
821 case 11: return "ImageMemory";
822
823 default: return "Bad";
824 }
825}
826
827const int MemoryAccessCeiling = 6;
828

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected