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

Method opFMax

GPCS4/Graphics/SpirV/SpirvModule.cpp:2169–2183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2167
2168
2169 uint32_t SpirvModule::opFMax(
2170 uint32_t resultType,
2171 uint32_t a,
2172 uint32_t b) {
2173 uint32_t resultId = this->allocateId();
2174
2175 m_code.putIns (spv::OpExtInst, 7);
2176 m_code.putWord(resultType);
2177 m_code.putWord(resultId);
2178 m_code.putWord(m_instExtGlsl450);
2179 m_code.putWord(spv::GLSLstd450FMax);
2180 m_code.putWord(a);
2181 m_code.putWord(b);
2182 return resultId;
2183 }
2184
2185
2186 uint32_t SpirvModule::opFMin(

Callers 1

emitVectorAluCommonMethod · 0.80

Calls 3

allocateIdMethod · 0.95
putInsMethod · 0.80
putWordMethod · 0.80

Tested by

no test coverage detected