mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[spirv] Implement opVectorTimesScalar
This commit is contained in:
parent
f1a8e02e0f
commit
a770c73dbc
@ -1753,8 +1753,23 @@ namespace dxvk {
|
||||
m_code.putWord(b);
|
||||
return resultId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
uint32_t SpirvModule::opVectorTimesScalar(
|
||||
uint32_t resultType,
|
||||
uint32_t vector,
|
||||
uint32_t scalar) {
|
||||
uint32_t resultId = this->allocateId();
|
||||
|
||||
m_code.putIns(spv::OpVectorTimesScalar, 5);
|
||||
m_code.putWord(resultType);
|
||||
m_code.putWord(resultId);
|
||||
m_code.putWord(vector);
|
||||
m_code.putWord(scalar);
|
||||
return resultId;
|
||||
}
|
||||
|
||||
|
||||
uint32_t SpirvModule::opFFma(
|
||||
uint32_t resultType,
|
||||
uint32_t a,
|
||||
|
@ -641,6 +641,11 @@ namespace dxvk {
|
||||
uint32_t resultType,
|
||||
uint32_t a,
|
||||
uint32_t b);
|
||||
|
||||
uint32_t opVectorTimesScalar(
|
||||
uint32_t resultType,
|
||||
uint32_t vector,
|
||||
uint32_t scalar);
|
||||
|
||||
uint32_t opFFma(
|
||||
uint32_t resultType,
|
||||
|
Loading…
x
Reference in New Issue
Block a user