HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulevulkan-3.27GHC2021

Vulkan.Core10.Event

  • 4 types
  • 6 values
  • Packagevulkan-3.27
  • Exports11
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceEvent.hs
valuecreateEvent
  1. :: (Extendss EventCreateInfo a, PokeChain a, MonadIO io)
  2. => Device

    device is the logical device that creates the event.

  3. -> EventCreateInfo a

    pCreateInfo is a pointer to a EventCreateInfo structure containing information about how the event is to be created.

  4. -> "allocator" ::: Maybe AllocationCallbacks

    pAllocator controls host memory allocation as described in the Memory Allocation chapter.

  5. -> io Event
#

vkCreateEvent - Create a new event object

Description

When created, the event object is in the unsignaled state.

Valid Usage

Valid Usage (Implicit)

  • device must be a valid Device handle

  • pCreateInfo must be a valid pointer to a valid EventCreateInfo structure

  • If pAllocator is not NULL, pAllocator must be a valid pointer to a valid AllocationCallbacks structure

  • pEvent must be a valid pointer to a Event handle

  • The device must have been created with at least 1 queue

Return Codes

Success
Failure

See Also

VK_VERSION_1_0, AllocationCallbacks, Device, Event, EventCreateInfo

valuedestroyEvent
  1. :: MonadIO io
  2. => Device

    device is the logical device that destroys the event.

  3. -> Event

    event is the handle of the event to destroy.

  4. -> "allocator" ::: Maybe AllocationCallbacks

    pAllocator controls host memory allocation as described in the Memory Allocation chapter.

  5. -> io ()
#

vkDestroyEvent - Destroy an event object

Valid Usage

  • All submitted commands that refer to event must have completed execution

  • If AllocationCallbacks were provided when event was created, a compatible set of callbacks must be provided here

  • If no AllocationCallbacks were provided when event was created, pAllocator must be NULL

Valid Usage (Implicit)

  • device must be a valid Device handle

  • If event is not NULL_HANDLE, event must be a valid Event handle

  • If pAllocator is not NULL, pAllocator must be a valid pointer to a valid AllocationCallbacks structure

  • If event is a valid handle, it must have been created, allocated, or retrieved from device

Host Synchronization

  • Host access to event must be externally synchronized

See Also

VK_VERSION_1_0, AllocationCallbacks, Device, Event

valuegetEventStatus
  1. :: MonadIO io
  2. => Device

    device is the logical device that owns the event.

    device must be a valid Device handle

  3. -> Event

    event is the handle of the event to query.

    event must not have been created with EVENT_CREATE_DEVICE_ONLY_BIT

    event must be a valid Event handle

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

  4. -> io Result
#

vkGetEventStatus - Retrieve the status of an event object

Description

Upon success, getEventStatus returns the state of the event object with the following return codes:

Status

Meaning

EVENT_SET

The event specified by

event

is signaled.

EVENT_RESET

The event specified by

event

is unsignaled.

Event Object Status Codes

If a cmdSetEvent or cmdResetEvent command is in a command buffer that is in the pending state, then the value returned by this command may immediately be out of date.

The state of an event can be updated by the host. The state of the event is immediately changed, and subsequent calls to getEventStatus will return the new state. If an event is already in the requested state, then updating it to the same state has no effect.

Return Codes

Success
Failure

See Also

VK_VERSION_1_0, Device, Event

valuesetEvent
  1. :: MonadIO io
  2. => Device

    device is the logical device that owns the event.

  3. -> Event

    event is the event to set.

  4. -> io ()
#

vkSetEvent - Set an event to signaled state

Description

When setEvent 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 setEvent is executed, then setEvent 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

  • event must not be waited on by a command buffer in the pending state

Valid Usage (Implicit)

  • device must be a valid Device handle

  • event must be a valid Event handle

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

Host Synchronization

  • Host access to event must be externally synchronized

Return Codes

Success
Failure

See Also

VK_VERSION_1_0, Device, Event

valueresetEvent
  1. :: MonadIO io
  2. => Device

    device is the logical device that owns the event.

  3. -> Event

    event is the event to reset.

  4. -> io ()
#

vkResetEvent - Reset an event to non-signaled state

Description

When resetEvent 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 resetEvent is executed, then resetEvent has no effect, and no event unsignal operation occurs.

Valid Usage

  • There must be an execution dependency between resetEvent and the execution of any cmdWaitEvents that includes event in its pEvents parameter

Valid Usage (Implicit)

  • device must be a valid Device handle

  • event must be a valid Event handle

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

Host Synchronization

  • Host access to event must be externally synchronized

Return Codes

Success
Failure

See Also

VK_VERSION_1_0, Device, Event

datadata EventCreateInfo (es :: [Type])
#

VkEventCreateInfo - Structure specifying parameters of a newly created event

Valid Usage

Valid Usage (Implicit)

See Also

VK_VERSION_1_0, EventCreateFlags, StructureType, createEvent

Constructors

Instances5Extensible, Show, FromCStruct, ToCStruct, Zero
newtypenewtype Event
#
Instances7Eq, Ord, Show, Storable, HasObjectType, IsHandle, …
  • Eq EventDefined in vulkan-3.27 · Vulkan.Core10.Handles
  • Ord EventDefined in vulkan-3.27 · Vulkan.Core10.Handles
  • Show EventDefined in vulkan-3.27 · Vulkan.Core10.Handles
  • Storable EventDefined in vulkan-3.27 · Vulkan.Core10.Handles
  • HasObjectType EventDefined in vulkan-3.27 · Vulkan.Core10.Handles
  • IsHandle EventDefined in vulkan-3.27 · Vulkan.Core10.Handles
  • Zero EventDefined in vulkan-3.27 · Vulkan.Core10.Handles
newtypenewtype EventCreateFlagBits
#

VkEventCreateFlagBits - Event creation flag bits

Description

See Also

VK_VERSION_1_0, EventCreateFlags

Instances8Eq, Ord, Read, Show, Bits, FiniteBits, …