diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2021-03-29 02:00:43 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:25 +0200 |
commit | d5bfc630886d98ed77959a9771c67293244aff0e (patch) | |
tree | 5816db6c236f9884c8900dd8a2c1e7ba9936b757 /src/shader_recompiler/frontend/ir/ir_emitter.cpp | |
parent | shader: Implement TMML partially (diff) | |
download | yuzu-d5bfc630886d98ed77959a9771c67293244aff0e.tar yuzu-d5bfc630886d98ed77959a9771c67293244aff0e.tar.gz yuzu-d5bfc630886d98ed77959a9771c67293244aff0e.tar.bz2 yuzu-d5bfc630886d98ed77959a9771c67293244aff0e.tar.lz yuzu-d5bfc630886d98ed77959a9771c67293244aff0e.tar.xz yuzu-d5bfc630886d98ed77959a9771c67293244aff0e.tar.zst yuzu-d5bfc630886d98ed77959a9771c67293244aff0e.zip |
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
-rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp index f6818ec8a..edf8c05d4 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp @@ -1573,6 +1573,13 @@ Value IREmitter::ImageQueryLod(const Value& handle, const Value& coords, Texture return Inst(op, Flags{info}, handle, coords); } +Value IREmitter::ImageGradient(const Value& handle, const Value& coords, const Value& derivates, + const Value& offset, const F32& lod_clamp, TextureInstInfo info) { + const Opcode op{handle.IsImmediate() ? Opcode::BoundImageGradient + : Opcode::BindlessImageGradient}; + return Inst(op, Flags{info}, handle, coords, derivates, offset, lod_clamp); +} + U1 IREmitter::VoteAll(const U1& value) { return Inst<U1>(Opcode::VoteAll, value); } |