51 Fence (
const Device& hDevice,
bool bSignaled =
false );
66 static void reset ( std::vector< Fence >* pFences );
76 bool wait ( std::uint64_t timeoutNs = std::numeric_limits< std::uint64_t >::max() )
const;
87 std::vector< Fence >* pFences,
88 std::uint64_t timeoutNs = std::numeric_limits< std::uint64_t >::max() );
99 std::vector< Fence >* pFences,
100 std::uint64_t timeoutNs = std::numeric_limits< std::uint64_t >::max() );
105 std::vector< VkFence >* pFences,
106 std::uint64_t timeoutNs = std::numeric_limits< std::uint64_t >::max() );
111 std::vector< VkFence >* pFences,
112 std::uint64_t timeoutNs = std::numeric_limits< std::uint64_t >::max() );
148 VkSemaphore
handle()
const;
174 void signal (
bool bSignal );
192 VkPipelineStageFlags stageMask,
219 VkPipelineStageFlags srcStageMask,
220 VkPipelineStageFlags dstStageMask,
244 VkPipelineStageFlags srcStageMask,
245 VkPipelineStageFlags dstStageMask,
246 const Barriers& barriers,
Represents logical rendering device.
Definition: vppDevice.hpp:49
Fence()
Constructs null reference.
const Device & device() const
Retrieves the device.
void cmdWait(VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, CommandBuffer hCommandBuffer=CommandBuffer())
Generates a command to wait for signaled event state.
The VPP namespace.
Definition: main.hpp:1
const Device & device() const
Retrieves the device.
Represents a sequence of Vulkan commands.
Definition: vppCommandBuffer.hpp:68
const Device & device() const
Retrieves the device.
VkFence handle() const
Retrieves the Vulkan handle.
void cmdSignal(bool bSignal, VkPipelineStageFlags stageMask, CommandBuffer hCommandBuffer=CommandBuffer())
Generates a command to set signaled or unsignaled event state.
Allows the GPU to wait for another GPU operation to finish.
Definition: vppSynchronization.hpp:127
Allows the CPU to wait for GPU operation to finish.
Definition: vppSynchronization.hpp:41
bool isSignaled() const
Checks whether the event is signaled.
Allows the GPU to wait for certain condition on CPU or GPU side to occur.
Definition: vppSynchronization.hpp:161
static bool waitOne(std::vector< Fence > *pFences, std::uint64_t timeoutNs=std::numeric_limits< std::uint64_t >::max())
Waits until one of given fences becomes signaled.
static bool waitAll(std::vector< Fence > *pFences, std::uint64_t timeoutNs=std::numeric_limits< std::uint64_t >::max())
Waits until all given fences become signaled.
bool isSignaled() const
Checks whether the fence is currently in signaled state.
bool wait(std::uint64_t timeoutNs=std::numeric_limits< std::uint64_t >::max()) const
Waits until the fence becomes signaled.
Event(const Device &hDevice)
Constructs null reference.
VkEvent handle() const
Retrieves the Vulkan handle.
void signal(bool bSignal)
Sets the signaled or unsignaled state of the event.
void reset()
Resets the fence to unsignaled state.
Semaphore()
Constructs null reference.
VkSemaphore handle() const
Retrieves the Vulkan handle.