I can only use one vkfence per submit

In my code I have 2 command buffers(A and B). I submit them together and I want to know on the host when A is finished and to know when B is finished. For that I have a vkfence to put in vksubmit but I can only put one vkfence. this is weird for me because i can use multiple semaphores but only one fence. is there a right way to deal with it without calling vkQueueSubmit more than once?

You can use timeline semaphores instead and replace the fence with that. Timeline semaphores can also be waited on from the host.

1 Like