Function Prototype
vkSetEvent
Set an event to signaled state
To set the state of an event to signaled from the host, call:
VkResult vkSetEvent(
VkDevice device,
VkEvent event);
pub fn set_event(
device: vk::Device,
event: vk::Event,
) -> vk::Result;
deviceis the logical device that owns the event.eventis 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
eventmust be externally synchronized
Parent
VK_VERSION_1_0Type
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED