Function Prototype

vkResetEvent

Reset an event to non-signaled state

To set the state of an event to unsignaled from the host, call:

VkResult vkResetEvent(
    VkDevice device,
    VkEvent event);
  • device is the logical device that owns the event.
  • event is the event to reset.

When vkResetEvent is executed on the host, it defines an event unsignal operation which resets the event to the unsignaled state.

If event is already in the unsignaled state when vkResetEvent is executed, then vkResetEvent has no effect, and no event unsignal operation occurs.

Valid Usage

VUID-vkResetEvent-event-03821

There must be an execution dependency between vkResetEvent and the execution of any vkCmdWaitEvents that includes event in its pEvents parameter

VUID-vkResetEvent-event-03822

There must be an execution dependency between vkResetEvent and the execution of any vkCmdWaitEvents2 that includes event in its pEvents parameter

VUID-vkResetEvent-event-03823

event must not have been created with VK_EVENT_CREATE_DEVICE_ONLY_BIT

Valid Usage (Implicit)

VUID-vkResetEvent-device-parameter

device must be a valid VkDevice handle

VUID-vkResetEvent-event-parameter

event must be a valid VkEvent handle

VUID-vkResetEvent-event-parent

event must have been created, allocated, or retrieved from device

Host Synchronization

  • Host access to event must be externally synchronized ::