shader: Track first bindless argument instead of the instruction itself

This commit is contained in:
ReinUsesLisp 2021-03-24 19:38:37 -03:00 committed by ameerj
parent d3dad6b632
commit 49e87ea8ab
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}