summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/ir/ir_emitter.cpp
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-03-26 19:24:50 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:24 +0200
commitb5db38f50e9f81964bf0cc946e4ed5b00fe564d0 (patch)
treefefc872d1da6481c8478e4da0381faaaad6f4b75 /src/shader_recompiler/frontend/ir/ir_emitter.cpp
parentshader: Implement TLD4.PTP (diff)
downloadyuzu-b5db38f50e9f81964bf0cc946e4ed5b00fe564d0.tar
yuzu-b5db38f50e9f81964bf0cc946e4ed5b00fe564d0.tar.gz
yuzu-b5db38f50e9f81964bf0cc946e4ed5b00fe564d0.tar.bz2
yuzu-b5db38f50e9f81964bf0cc946e4ed5b00fe564d0.tar.lz
yuzu-b5db38f50e9f81964bf0cc946e4ed5b00fe564d0.tar.xz
yuzu-b5db38f50e9f81964bf0cc946e4ed5b00fe564d0.tar.zst
yuzu-b5db38f50e9f81964bf0cc946e4ed5b00fe564d0.zip
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
index f49c30484..b8d36f362 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
@@ -1491,6 +1491,12 @@ Value IREmitter::ImageGatherDref(const Value& handle, const Value& coords, const
return Inst(op, Flags{info}, handle, coords, offset, offset2, dref);
}
+Value IREmitter::ImageFetch(const Value& handle, const Value& coords, const Value& offset,
+ const U32& lod, const U32& multisampling, TextureInstInfo info) {
+ const Opcode op{handle.IsImmediate() ? Opcode::BoundImageFetch : Opcode::BindlessImageFetch};
+ return Inst(op, Flags{info}, handle, coords, offset, lod, multisampling);
+}
+
U1 IREmitter::VoteAll(const U1& value) {
return Inst<U1>(Opcode::VoteAll, value);
}