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
@ -2365,6 +2365,21 @@ namespace dxvk {
|
|||||||
return resultId;
|
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 SpirvModule::opFract(
|
||||||
uint32_t resultType,
|
uint32_t resultType,
|
||||||
|
@ -833,6 +833,11 @@ namespace dxvk {
|
|||||||
uint32_t resultType,
|
uint32_t resultType,
|
||||||
uint32_t operand);
|
uint32_t operand);
|
||||||
|
|
||||||
|
uint32_t opPow(
|
||||||
|
uint32_t resultType,
|
||||||
|
uint32_t base,
|
||||||
|
uint32_t exponent);
|
||||||
|
|
||||||
uint32_t opFract(
|
uint32_t opFract(
|
||||||
uint32_t resultType,
|
uint32_t resultType,
|
||||||
uint32_t operand);
|
uint32_t operand);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user