mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-03 09:23:05 +00:00
shader: Track first bindless argument instead of the instruction itself
This commit is contained in:
parent
d3dad6b632
commit
49e87ea8ab
|
@ -121,7 +121,7 @@ TextureInst MakeInst(Environment& env, IR::Block* block, IR::Inst& inst) {
|
||||||
ConstBufferAddr addr;
|
ConstBufferAddr addr;
|
||||||
if (IsBindless(inst)) {
|
if (IsBindless(inst)) {
|
||||||
VisitedBlocks visited;
|
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) {
|
if (!track_addr) {
|
||||||
throw NotImplementedException("Failed to track bindless texture constant buffer");
|
throw NotImplementedException("Failed to track bindless texture constant buffer");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue