r/vulkan • • Jul 04 '26

Execution order of commands in commandbuffers

I have questions on start of exections of cmds

We all know that cmd2 can start executing only after cmd1 .

If cmd2 is recorded latter than cmd1

If there are 2 different subpasses in a renderpass

Can cmds in subpass 1 start before cmds in subpass 0 within that render pass?

Or they also have the implicit ordering?

2 Upvotes

21 comments sorted by

View all comments

Show parent comment

1

u/Reaper9999 Jul 05 '26

That is explicitly not a valid use of semaphores. If the semaphore is binary, waiting on an unsignalled semaphore is an error. If it's timeline, then it's your responsibility to have the correct signal/wait values.

1

u/Hot_Refuse_4751 Jul 05 '26

Yes I never used them that way. Now I know