Semaphores are automatically reset. But when a fence becomes signaled, it is the application's responsibility to reset the fence back to the un-signaled state.
Resetting fences
How to do it...
- Store the handle of a created logical device in a variable of type VkDevice named logical_device.
- Create a vector variable named fences. It should contain elements of type VkFence. In the variable, store the handles of all fences that should be reset.
- Call vkResetFences( logical_device, static_cast<uint32_t>(fences.size()), &fences[0] ) and provide the logical_device variable, the number of elements in the fences vector and a pointer to the first element of the fences vector.
- Make sure the function succeeded by checking if the value returned by the call was...