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

Method setToSpecConstCodeGenMode

SPIRV/SpvBuilder.h:1009–1009  ·  view source on GitHub ↗

Sets to generate opcode for specialization constants.

Source from the content-addressed store, hash-verified

1007
1008 // Sets to generate opcode for specialization constants.
1009 void setToSpecConstCodeGenMode() { generatingOpCodeForSpecConst = true; }
1010 // Sets to generate opcode for non-specialization constants (normal mode).
1011 void setToNormalCodeGenMode() { generatingOpCodeForSpecConst = false; }
1012 // Check if the builder is generating code for spec constants.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected