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

Method opBitFieldSExtract

GPCS4/Graphics/SpirV/SpirvModule.cpp:1387–1401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1385
1386
1387 uint32_t SpirvModule::opBitFieldSExtract(
1388 uint32_t resultType,
1389 uint32_t base,
1390 uint32_t offset,
1391 uint32_t count) {
1392 uint32_t resultId = this->allocateId();
1393
1394 m_code.putIns (spv::OpBitFieldSExtract, 6);
1395 m_code.putWord(resultType);
1396 m_code.putWord(resultId);
1397 m_code.putWord(base);
1398 m_code.putWord(offset);
1399 m_code.putWord(count);
1400 return resultId;
1401 }
1402
1403
1404 uint32_t SpirvModule::opBitFieldUExtract(

Callers 2

emitVectorAluCommonMethod · 0.80

Calls 3

allocateIdMethod · 0.95
putInsMethod · 0.80
putWordMethod · 0.80

Tested by

no test coverage detected