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

Method addEntryPoint

SPIRV/SpvBuilder.cpp:2353–2364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2351}
2352
2353Instruction* Builder::addEntryPoint(ExecutionModel model, Function* function, const char* name)
2354{
2355 Instruction* entryPoint = new Instruction(Op::OpEntryPoint);
2356 entryPoint->reserveOperands(3);
2357 entryPoint->addImmediateOperand(model);
2358 entryPoint->addIdOperand(function->getId());
2359 entryPoint->addStringOperand(name);
2360
2361 entryPoints.push_back(std::unique_ptr<Instruction>(entryPoint));
2362
2363 return entryPoint;
2364}
2365
2366// Currently relying on the fact that all 'value' of interest are small non-negative values.
2367void Builder::addExecutionMode(Function* entryPoint, ExecutionMode mode, int value1, int value2, int value3)

Callers 1

Calls 6

reserveOperandsMethod · 0.80
addImmediateOperandMethod · 0.80
addIdOperandMethod · 0.80
addStringOperandMethod · 0.80
getIdMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected