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

Method createConstData

SPIRV/SpvBuilder.cpp:3557–3567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3555}
3556
3557Id Builder::createConstData(Op opCode, Id typeId, const std::vector<const char*> operands)
3558{
3559 Instruction* op = new Instruction(getUniqueId(), typeId, opCode);
3560 op->reserveOperands(operands.size());
3561 for (auto id : operands)
3562 op->addStringOperand(id);
3563 module.mapInstruction(op);
3564 constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(op));
3565
3566 return op->getResultId();
3567}
3568
3569Id Builder::createOp(Op opCode, Id typeId, const std::vector<Id>& operands)
3570{

Callers 1

createAbortEXTMethod · 0.80

Calls 6

reserveOperandsMethod · 0.80
addStringOperandMethod · 0.80
mapInstructionMethod · 0.80
getResultIdMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected