To set the state of an event to signaled from a device, call:
void vkCmdSetEvent( VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask);
commandBufferis the command buffer into which the command is recorded.
eventis the event that will be signaled.
stageMaskspecifies the source stage mask used to determine when the
When vkCmdSetEvent is submitted to a queue, it defines an execution dependency on commands that were submitted before it, and defines an event signal operation which sets the event to the signaled state.
The first synchronization scope
includes all commands that occur earlier in
The synchronization scope is limited to operations on the pipeline stages
determined by the source stage
mask specified by
The second synchronization scope includes only the event signal operation.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.