vkSetEvent
To set the state of an event to signaled from the host, call:
VkResult vkSetEvent(
VkDevice device,
VkEvent event);
device
is the logical device that owns the event.event
is the event to set.
When vkSetEvent is executed on the host, it defines an event signal operation which sets the event to the signaled state.
If event
is already in the signaled state when vkSetEvent is
executed, then vkSetEvent has no effect, and no event signal operation
occurs.
If a command buffer is waiting for an event to be signaled from the host, the application must signal the event before submitting the command buffer, as described in the queue forward progress section.
Valid Usage
VUID-vkSetEvent-event-03941
event
must not have been created with
VK_EVENT_CREATE_DEVICE_ONLY_BIT
VUID-vkSetEvent-event-09543
event
must not be waited on by a command buffer in the
pending state
Valid Usage (Implicit)
VUID-vkSetEvent-device-parameter
device
must be a valid VkDevice handle
VUID-vkSetEvent-event-parameter
event
must be a valid VkEvent handle
VUID-vkSetEvent-event-parent
event
must have been created, allocated, or retrieved from device
Host Synchronization
- Host access to
event
must be externally synchronized ::