21 #ifndef FRAMEWORK_FENCE_MANAGER_HPP 22 #define FRAMEWORK_FENCE_MANAGER_HPP 24 #include "framework/common.hpp" 76 VkDevice device = VK_NULL_HANDLE;
77 std::vector<VkFence> fences;
void beginFrame()
Begins the frame. Waits for GPU to trigger all outstanding fences. After begin frame returns...
~FenceManager()
Destructor.
The FenceManager keeps track of fences which in turn are used to keep track of GPU progress...
VkFence * getActiveFences()
Gets an array for the fences which are inFlight on the GPU.
FenceManager(VkDevice device)
Constructor.
VkFence requestClearedFence()
Called internally by the Context whenever submissions to GPU happens.
unsigned getActiveFenceCount() const
Gets the number of fences which are inFlight on the GPU.