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

Function MapSourceToIndex

glslang/MachineIndependent/ShaderLang.cpp:209–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207const int SourceCount = 2;
208
209int MapSourceToIndex(EShSource source)
210{
211 int index = 0;
212
213 switch (source) {
214 case EShSourceGlsl: index = 0; break;
215 case EShSourceHlsl: index = 1; break;
216 default: break;
217 }
218
219 assert(index < SourceCount);
220
221 return index;
222}
223
224// only one of these needed for non-ES; ES needs 2 for different precision defaults of built-ins
225enum EPrecisionClass {

Callers 2

SetupBuiltinSymbolTableFunction · 0.85
ProcessDeferredFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected