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

Method createFunctionCall

SPIRV/SpvBuilder.cpp:3619–3629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3617}
3618
3619Id Builder::createFunctionCall(spv::Function* function, const std::vector<spv::Id>& args)
3620{
3621 Instruction* op = new Instruction(getUniqueId(), function->getReturnType(), Op::OpFunctionCall);
3622 op->reserveOperands(args.size() + 1);
3623 op->addIdOperand(function->getId());
3624 for (int a = 0; a < (int)args.size(); ++a)
3625 op->addIdOperand(args[a]);
3626 addInstruction(std::unique_ptr<Instruction>(op));
3627
3628 return op->getResultId();
3629}
3630
3631// Comments in header
3632Id Builder::createRvalueSwizzle(Decoration precision, Id typeId, Id source, const std::vector<unsigned>& channels)

Callers 1

Calls 6

getReturnTypeMethod · 0.80
reserveOperandsMethod · 0.80
addIdOperandMethod · 0.80
getResultIdMethod · 0.80
sizeMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected