diff options
| author | 2021-02-17 00:59:28 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:22 -0400 | |
| commit | 85cce78583bc2232428a8fb39e43182877c8d5ad (patch) | |
| tree | 308f4ef2d145652e08dff1da31c72c2f00dad2e1 /src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp | |
| parent | shader: Remove old shader management (diff) | |
| download | yuzu-85cce78583bc2232428a8fb39e43182877c8d5ad.tar.gz yuzu-85cce78583bc2232428a8fb39e43182877c8d5ad.tar.xz yuzu-85cce78583bc2232428a8fb39e43182877c8d5ad.zip | |
shader: Primitive Vulkan integration
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp index 3c9eaddd9..079e3497f 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/impl.cpp | |||
| @@ -24,6 +24,14 @@ void TranslatorVisitor::F(IR::Reg dest_reg, const IR::F32& value) { | |||
| 24 | X(dest_reg, ir.BitCast<IR::U32>(value)); | 24 | X(dest_reg, ir.BitCast<IR::U32>(value)); |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | IR::U32 TranslatorVisitor::GetReg8(u64 insn) { | ||
| 28 | union { | ||
| 29 | u64 raw; | ||
| 30 | BitField<8, 8, IR::Reg> index; | ||
| 31 | } const reg{insn}; | ||
| 32 | return X(reg.index); | ||
| 33 | } | ||
| 34 | |||
| 27 | IR::U32 TranslatorVisitor::GetReg20(u64 insn) { | 35 | IR::U32 TranslatorVisitor::GetReg20(u64 insn) { |
| 28 | union { | 36 | union { |
| 29 | u64 raw; | 37 | u64 raw; |