15 #include <vsg/commands/PipelineBarrier.h>
24 explicit Event(
Device* device, VkEventCreateFlags flags = 0);
26 operator VkEvent()
const {
return _event; }
27 VkEvent vk()
const {
return _event; }
46 using Events = std::vector<ref_ptr<Event>>;
55 VkPipelineStageFlags stageMask;
71 VkPipelineStageFlags stageMask;
86 template<
typename... Args>
87 WaitEvents(VkPipelineStageFlags in_srcStageMask, VkPipelineStageFlags in_destStageMask, Args&&... args) :
88 srcStageMask(in_srcStageMask),
89 dstStageMask(in_destStageMask)
101 VkPipelineStageFlags srcStageMask;
102 VkPipelineStageFlags dstStageMask;
105 MemoryBarriers memoryBarriers;
106 BufferMemoryBarriers bufferMemoryBarriers;
107 ImageMemoryBarriers imageMemoryBarriers;
CommandBuffer encapsulates VkCommandBuffer.
Definition: CommandBuffer.h:27
Device encapsulates VkDevice, a logical handle to the PhysicalDevice with capabilities specified duri...
Definition: Device.h:37
Encapsulation of VkEvent.
Definition: Event.h:22
void set()
set the state of the vkEvent to signaled
void reset()
set the state of the vkEvent to unsignalled.
VkResult status()
get the status of the vkEvent, return VK_EVENT_SET for a signaled event, VK_EVENT_RESET for unsignall...
Command class encapsulating vkCmdResetEvent.
Definition: Event.h:66
Command class encapsulating vkCmdSetEvent.
Definition: Event.h:50
Command class encapsulating vkCmdWaitEvents.
Definition: Event.h:82