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

Method opFAdd

GPCS4/Graphics/SpirV/SpirvModule.cpp:1895–1907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1893
1894
1895 uint32_t SpirvModule::opFAdd(
1896 uint32_t resultType,
1897 uint32_t a,
1898 uint32_t b) {
1899 uint32_t resultId = this->allocateId();
1900
1901 m_code.putIns (spv::OpFAdd, 5);
1902 m_code.putWord(resultType);
1903 m_code.putWord(resultId);
1904 m_code.putWord(a);
1905 m_code.putWord(b);
1906 return resultId;
1907 }
1908
1909
1910 uint32_t SpirvModule::opFSub(

Callers 1

emitVectorAluCommonMethod · 0.80

Calls 3

allocateIdMethod · 0.95
putInsMethod · 0.80
putWordMethod · 0.80

Tested by

no test coverage detected