diff options
| author | 2021-02-05 19:19:36 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:21 -0400 | |
| commit | be94ee88d227d0d3dbeabe9ade98bacd910c7a7e (patch) | |
| tree | 68a2043d48b8d1ecb7df23d03c1f92f277c70f9a /src/shader_recompiler/frontend/maxwell/translate/impl/impl.h | |
| parent | shader: Remove illegal character in SSA pass (diff) | |
| download | yuzu-be94ee88d227d0d3dbeabe9ade98bacd910c7a7e.tar.gz yuzu-be94ee88d227d0d3dbeabe9ade98bacd910c7a7e.tar.xz yuzu-be94ee88d227d0d3dbeabe9ade98bacd910c7a7e.zip | |
shader: Make typed IR
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate/impl/impl.h')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/impl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h b/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h index ef6d977fe..b701605d7 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h | |||
| @@ -296,12 +296,18 @@ public: | |||
| 296 | void XMAD_imm(u64 insn); | 296 | void XMAD_imm(u64 insn); |
| 297 | 297 | ||
| 298 | [[nodiscard]] IR::U32 X(IR::Reg reg); | 298 | [[nodiscard]] IR::U32 X(IR::Reg reg); |
| 299 | [[nodiscard]] IR::F32 F(IR::Reg reg); | ||
| 300 | |||
| 299 | void X(IR::Reg dest_reg, const IR::U32& value); | 301 | void X(IR::Reg dest_reg, const IR::U32& value); |
| 302 | void F(IR::Reg dest_reg, const IR::F32& value); | ||
| 300 | 303 | ||
| 301 | [[nodiscard]] IR::U32 GetReg20(u64 insn); | 304 | [[nodiscard]] IR::U32 GetReg20(u64 insn); |
| 302 | [[nodiscard]] IR::U32 GetReg39(u64 insn); | 305 | [[nodiscard]] IR::U32 GetReg39(u64 insn); |
| 306 | [[nodiscard]] IR::F32 GetReg20F(u64 insn); | ||
| 307 | [[nodiscard]] IR::F32 GetReg39F(u64 insn); | ||
| 303 | 308 | ||
| 304 | [[nodiscard]] IR::U32 GetCbuf(u64 insn); | 309 | [[nodiscard]] IR::U32 GetCbuf(u64 insn); |
| 310 | [[nodiscard]] IR::F32 GetCbufF(u64 insn); | ||
| 305 | 311 | ||
| 306 | [[nodiscard]] IR::U32 GetImm20(u64 insn); | 312 | [[nodiscard]] IR::U32 GetImm20(u64 insn); |
| 307 | 313 | ||