diff options
author | Feng Chen <VonChenPlus@gmail.com> | 2022-11-04 07:39:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-04 07:39:42 +0100 |
commit | 75596c07e0fc1462c2a19484e168f4944c33d3d3 (patch) | |
tree | 1aa919ea76f467c51b3fc591a72c57f5ade92560 /src/shader_recompiler/frontend/ir/ir_emitter.cpp | |
parent | UI: Add options to hide extra columns (#9093) (diff) | |
download | yuzu-75596c07e0fc1462c2a19484e168f4944c33d3d3.tar yuzu-75596c07e0fc1462c2a19484e168f4944c33d3d3.tar.gz yuzu-75596c07e0fc1462c2a19484e168f4944c33d3d3.tar.bz2 yuzu-75596c07e0fc1462c2a19484e168f4944c33d3d3.tar.lz yuzu-75596c07e0fc1462c2a19484e168f4944c33d3d3.tar.xz yuzu-75596c07e0fc1462c2a19484e168f4944c33d3d3.tar.zst yuzu-75596c07e0fc1462c2a19484e168f4944c33d3d3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp index de1ce90a3..d4425f06d 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp @@ -692,6 +692,11 @@ IR::U32 IREmitter::BitCast<IR::U32, IR::F32>(const IR::F32& value) { } template <> +IR::S32 IREmitter::BitCast<IR::S32, IR::F32>(const IR::F32& value) { + return Inst<IR::S32>(Opcode::BitCastS32F32, value); +} + +template <> IR::F32 IREmitter::BitCast<IR::F32, IR::U32>(const IR::U32& value) { return Inst<IR::F32>(Opcode::BitCastF32U32, value); } |