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

Method opBitcast

GPCS4/Graphics/SpirV/SpirvModule.cpp:1284–1294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282
1283
1284 uint32_t SpirvModule::opBitcast(
1285 uint32_t resultType,
1286 uint32_t operand) {
1287 uint32_t resultId = this->allocateId();
1288
1289 m_code.putIns (spv::OpBitcast, 4);
1290 m_code.putWord(resultType);
1291 m_code.putWord(resultId);
1292 m_code.putWord(operand);
1293 return resultId;
1294 }
1295
1296
1297 uint32_t SpirvModule::opBitCount(

Callers 3

emitVectorAluCommonMethod · 0.80
emitRegisterBitcastMethod · 0.80

Calls 3

allocateIdMethod · 0.95
putInsMethod · 0.80
putWordMethod · 0.80

Tested by

no test coverage detected