MCPcopy Create free account
hub / github.com/Inori/GPCS4 / opFunctionCall

Method opFunctionCall

GPCS4/Graphics/SpirV/SpirvModule.cpp:3014–3029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3012
3013
3014 uint32_t SpirvModule::opFunctionCall(
3015 uint32_t resultType,
3016 uint32_t functionId,
3017 uint32_t argCount,
3018 const uint32_t* argIds) {
3019 uint32_t resultId = this->allocateId();
3020
3021 m_code.putIns (spv::OpFunctionCall, 4 + argCount);
3022 m_code.putWord(resultType);
3023 m_code.putWord(resultId);
3024 m_code.putWord(functionId);
3025
3026 for (uint32_t i = 0; i < argCount; i++)
3027 m_code.putWord(argIds[i]);
3028 return resultId;
3029 }
3030
3031
3032 void SpirvModule::opLabel(uint32_t labelId) {

Callers 3

emitVsFinalizeMethod · 0.80
emitPsFinalizeMethod · 0.80
emitCsFinalizeMethod · 0.80

Calls 3

allocateIdMethod · 0.95
putInsMethod · 0.80
putWordMethod · 0.80

Tested by

no test coverage detected