| 2956 | } |
| 2957 | |
| 2958 | void 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 |
| 2973 | Id Builder::createUntypedVariable(Decoration precision, StorageClass storageClass, const char* name, Id dataType, |