[vulkan] Add a comment about next pass timing

This commit is contained in:
Bill Currie 2021-12-02 14:40:56 +09:00
parent b1ba87e5aa
commit eb828007e9
1 changed files with 3 additions and 0 deletions

View File

@ -168,6 +168,9 @@ vulkan_R_RenderFrame (SCR_Func scr_3dfunc, SCR_Func *scr_funcs)
// reset for next time around
frame->cmdSets[i].size = 0;
//Regardless of whether any commands were submitted for this subpass,
//must step through each and every subpass, otherwise the attachments
//won't be transitioned correctly.
if (i < frame->cmdSetCount - 1) {
dfunc->vkCmdNextSubpass (frame->cmdBuffer, subpassContents);
}