diff options
| author | 2022-08-31 10:40:45 +0200 | |
|---|---|---|
| committer | 2022-08-31 10:40:45 +0200 | |
| commit | a83a5d2e4c8932df864dd4cea2b04d87a12c8760 (patch) | |
| tree | 53bd0ce10e965110c7811bd227443fd51e054eff /src/shader_recompiler/frontend/ir/ir_emitter.cpp | |
| parent | Merge pull request #8809 from german77/finally_is_fixed (diff) | |
| parent | video_code: support rectangle texture (diff) | |
| download | yuzu-a83a5d2e4c8932df864dd4cea2b04d87a12c8760.tar.gz yuzu-a83a5d2e4c8932df864dd4cea2b04d87a12c8760.tar.xz yuzu-a83a5d2e4c8932df864dd4cea2b04d87a12c8760.zip | |
Merge pull request #8752 from vonchenplus/rectangle_texture
video_code: support rectangle texture
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
| -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 d2b658bca..11086ed8c 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp | |||
| @@ -1832,6 +1832,11 @@ Value IREmitter::ImageQueryDimension(const Value& handle, const IR::U32& lod) { | |||
| 1832 | return Inst(op, handle, lod); | 1832 | return Inst(op, handle, lod); |
| 1833 | } | 1833 | } |
| 1834 | 1834 | ||
| 1835 | Value IREmitter::ImageQueryDimension(const Value& handle, const IR::U32& lod, | ||
| 1836 | TextureInstInfo info) { | ||
| 1837 | return Inst(Opcode::ImageQueryDimensions, Flags{info}, handle, lod); | ||
| 1838 | } | ||
| 1839 | |||
| 1835 | Value IREmitter::ImageQueryLod(const Value& handle, const Value& coords, TextureInstInfo info) { | 1840 | Value IREmitter::ImageQueryLod(const Value& handle, const Value& coords, TextureInstInfo info) { |
| 1836 | const Opcode op{handle.IsImmediate() ? Opcode::BoundImageQueryLod | 1841 | const Opcode op{handle.IsImmediate() ? Opcode::BoundImageQueryLod |
| 1837 | : Opcode::BindlessImageQueryLod}; | 1842 | : Opcode::BindlessImageQueryLod}; |