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

Method makeRuntimeArray

SPIRV/SpvBuilder.cpp:733–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733Id Builder::makeRuntimeArray(Id element)
734{
735 Instruction* type = new Instruction(getUniqueId(), NoType, Op::OpTypeRuntimeArray);
736 type->addIdOperand(element);
737 constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
738 module.mapInstruction(type);
739
740 if (emitNonSemanticShaderDebugInfo)
741 {
742 auto const debugResultId = makeArrayDebugType(element, makeUintConstant(0));
743 debugTypeIdLookup[type->getResultId()] = debugResultId;
744 }
745
746 return type->getResultId();
747}
748
749Id Builder::makeFunctionType(Id returnType, const std::vector<Id>& paramTypes)
750{

Callers 1

Calls 4

addIdOperandMethod · 0.80
mapInstructionMethod · 0.80
getResultIdMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected