diff options
| author | 2021-03-28 19:47:52 +0200 | |
|---|---|---|
| committer | 2021-07-22 21:51:25 -0400 | |
| commit | 613b48c4a2ce71a0d0eaba17fe164f4a2e4a3db5 (patch) | |
| tree | a8d2d2eb8284f1b35184e4ee07e25709ecce0596 /src/shader_recompiler/frontend/ir/ir_emitter.cpp | |
| parent | shader: Implement TLDS (diff) | |
| download | yuzu-613b48c4a2ce71a0d0eaba17fe164f4a2e4a3db5.tar.gz yuzu-613b48c4a2ce71a0d0eaba17fe164f4a2e4a3db5.tar.xz yuzu-613b48c4a2ce71a0d0eaba17fe164f4a2e4a3db5.zip | |
shader,spirv: Implement ImageQueryLod.
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 6 |
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 6e7dddead..ba9591727 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp | |||
| @@ -1567,6 +1567,12 @@ Value IREmitter::ImageQueryDimension(const Value& handle, const IR::U32& lod) { | |||
| 1567 | return Inst(op, handle, lod); | 1567 | return Inst(op, handle, lod); |
| 1568 | } | 1568 | } |
| 1569 | 1569 | ||
| 1570 | Value IREmitter::ImageQueryLod(const Value& handle, const Value& coords) { | ||
| 1571 | const Opcode op{handle.IsImmediate() ? Opcode::BoundImageQueryLod | ||
| 1572 | : Opcode::BindlessImageQueryLod}; | ||
| 1573 | return Inst(op, handle, coords); | ||
| 1574 | } | ||
| 1575 | |||
| 1570 | U1 IREmitter::VoteAll(const U1& value) { | 1576 | U1 IREmitter::VoteAll(const U1& value) { |
| 1571 | return Inst<U1>(Opcode::VoteAll, value); | 1577 | return Inst<U1>(Opcode::VoteAll, value); |
| 1572 | } | 1578 | } |