1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 10:24:10 +01:00

[spirv] Implement opReflect

This commit is contained in:
Joshua Ashton 2019-09-08 17:47:23 +01:00 committed by Philip Rebohle
parent 3ce678b17d
commit 028c6198e4
2 changed files with 22 additions and 0 deletions

View File

@ -2585,6 +2585,23 @@ namespace dxvk {
}
uint32_t SpirvModule::opReflect(
uint32_t resultType,
uint32_t incident,
uint32_t normal) {
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::GLSLstd450Reflect);
m_code.putWord(incident);
m_code.putWord(normal);
return resultId;
}
uint32_t SpirvModule::opLength(
uint32_t resultType,
uint32_t operand) {

View File

@ -903,6 +903,11 @@ namespace dxvk {
uint32_t resultType,
uint32_t operand);
uint32_t opReflect(
uint32_t resultType,
uint32_t incident,
uint32_t normal);
uint32_t opLength(
uint32_t resultType,
uint32_t operand);