VERY experimental Nintendo Switch 2 emulator
C++
shader: Track first bindless argument instead of the instruction itself
ReinUsesLisp7e8fc3e3c8eb
diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cppindex de9d633e28..2c8164b8a8 100644--- a/src/shader_recompiler/ir_opt/texture_pass.cpp+++ b/src/shader_recompiler/ir_opt/texture_pass.cpp@@ -121,7 +121,7 @@ TextureInst MakeInst(Environment& env, IR::Block* block, IR::Inst& inst) {ConstBufferAddr addr;if (IsBindless(inst)) {VisitedBlocks visited;- const std::optional<ConstBufferAddr> track_addr{Track(block, IR::Value{&inst}, visited)};+ const std::optional<ConstBufferAddr> track_addr{Track(block, inst.Arg(0), visited)};if (!track_addr) {throw NotImplementedException("Failed to track bindless texture constant buffer");}