Fix NextSubpassNode Subpass Index Bug

`NextSubpassNode` didn't increment `subpassIndex` which runs commands with the wrong subpass index resulting in them accessing invalid attachments or other bugs that may arise from using the wrong subpass.
This commit is contained in:
PixelyIon 2022-01-11 19:52:43 +05:30
parent defbfe8f78
commit 0a506088f4

View File

@ -150,7 +150,10 @@ namespace skyline::gpu::interconnect {
subpassIndex = 0;
},
NODE(NextSubpassNode),
[&](NextSubpassNode &node) {
node(commandBuffer, cycle, gpu);
++subpassIndex;
},
[&](SubpassFunctionNode &node) { node(commandBuffer, cycle, gpu, lRenderPass, subpassIndex); },
[&](NextSubpassFunctionNode &node) { node(commandBuffer, cycle, gpu, lRenderPass, ++subpassIndex); },