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

Method createConstVariable

SPIRV/SpvBuilder.cpp:2958–2970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2956}
2957
2958void Builder::createConstVariable(Id type, const char* name, Id constant, bool isGlobal)
2959{
2960 if (emitNonSemanticShaderDebugInfo) {
2961 Id debugType = getDebugType(type);
2962 if (isGlobal) {
2963 createDebugGlobalVariable(debugType, name, constant);
2964 }
2965 else {
2966 auto debugLocal = createDebugLocalVariable(debugType, name);
2967 makeDebugValue(debugLocal, constant);
2968 }
2969 }
2970}
2971
2972// Comments in header
2973Id Builder::createUntypedVariable(Decoration precision, StorageClass storageClass, const char* name, Id dataType,

Callers 1

createSpvVariableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected