[spirv] Implement opExp

This commit is contained in:
Joshua Ashton 2019-08-22 05:24:19 +01:00 committed by Philip Rebohle
parent fdbfb2c92d
commit 3ce678b17d
2 changed files with 19 additions and 0 deletions

View File

@ -2613,6 +2613,21 @@ namespace dxvk {
m_code.putWord(operand);
return resultId;
}
uint32_t SpirvModule::opExp(
uint32_t resultType,
uint32_t operand) {
uint32_t resultId = this->allocateId();
m_code.putIns (spv::OpExtInst, 6);
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(m_instExtGlsl450);
m_code.putWord(spv::GLSLstd450Exp);
m_code.putWord(operand);
return resultId;
}
uint32_t SpirvModule::opLog2(

View File

@ -910,6 +910,10 @@ namespace dxvk {
uint32_t opExp2(
uint32_t resultType,
uint32_t operand);
uint32_t opExp(
uint32_t resultType,
uint32_t operand);
uint32_t opLog2(
uint32_t resultType,