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

Method createVectorInsertDynamic

SPIRV/SpvBuilder.cpp:3431–3441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3429}
3430
3431Id Builder::createVectorInsertDynamic(Id vector, Id typeId, Id component, Id componentIndex)
3432{
3433 Instruction* insert = new Instruction(getUniqueId(), typeId, Op::OpVectorInsertDynamic);
3434 insert->reserveOperands(3);
3435 insert->addIdOperand(vector);
3436 insert->addIdOperand(component);
3437 insert->addIdOperand(componentIndex);
3438 addInstruction(std::unique_ptr<Instruction>(insert));
3439
3440 return insert->getResultId();
3441}
3442
3443// An opcode that has no operands, no result id, and no type
3444void Builder::createNoResultOp(Op opCode)

Callers

nothing calls this directly

Calls 3

reserveOperandsMethod · 0.80
addIdOperandMethod · 0.80
getResultIdMethod · 0.80

Tested by

no test coverage detected