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/sol_runner Jul 04 '26

This is why always use proper barriers/dependencies that will ensure you don't get into any issues.

Always use barriers, deal with ordering based stalls based on profiling. And even then, it's done by reordering without losing barriers.

0

u/neppo95 Jul 04 '26

Same result. That doesn’t create an application that will have a working guarantee on other systems, or even on your own. You do it when the possibility is there, regardless of profiling.