mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[spirv] Implement opPow
This commit is contained in:
parent
94beec0c13
commit
f1a8e02e0f
@ -2364,7 +2364,22 @@ namespace dxvk {
|
||||
m_code.putWord(operand);
|
||||
return resultId;
|
||||
}
|
||||
|
||||
|
||||
uint32_t SpirvModule::opPow(
|
||||
uint32_t resultType,
|
||||
uint32_t base,
|
||||
uint32_t exponent) {
|
||||
uint32_t resultId = this->allocateId();
|
||||
|
||||
m_code.putIns(spv::OpExtInst, 7);
|
||||
m_code.putWord(resultType);
|
||||
m_code.putWord(resultId);
|
||||
m_code.putWord(m_instExtGlsl450);
|
||||
m_code.putWord(spv::GLSLstd450Pow);
|
||||
m_code.putWord(base);
|
||||
m_code.putWord(exponent);
|
||||
return resultId;
|
||||
}
|
||||
|
||||
uint32_t SpirvModule::opFract(
|
||||
uint32_t resultType,
|
||||
|
@ -832,6 +832,11 @@ namespace dxvk {
|
||||
uint32_t opLog2(
|
||||
uint32_t resultType,
|
||||
uint32_t operand);
|
||||
|
||||
uint32_t opPow(
|
||||
uint32_t resultType,
|
||||
uint32_t base,
|
||||
uint32_t exponent);
|
||||
|
||||
uint32_t opFract(
|
||||
uint32_t resultType,
|
||||
|
Loading…
x
Reference in New Issue
Block a user