createEvent :: (Extendss EventCreateInfo a, PokeChain a, MonadIO io)=> Devicedeviceis the logical device that creates the event.-> EventCreateInfo apCreateInfois a pointer to a EventCreateInfo structure containing information about how the event is to be created.->"allocator"
::: Maybe AllocationCallbackspAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.-> io Event
vkCreateEvent - Create a new event object
Description
When created, the event object is in the unsignaled state.
Valid Usage
devicemust support at least one queue family with one of the VK_QUEUE_VIDEO_ENCODE_BIT_KHR, VK_QUEUE_VIDEO_DECODE_BIT_KHR, QUEUE_COMPUTE_BIT, or QUEUE_GRAPHICS_BIT capabilities
If the
VK_KHR_portability_subsetextension is enabled, and PhysicalDevicePortabilitySubsetFeaturesKHR::eventsis FALSE, then the implementation does not support events, and createEvent must not be used
Valid Usage (Implicit)
devicemust be a valid Device handle
pCreateInfomust be a valid pointer to a valid EventCreateInfo structureIf
pAllocatoris notNULL,pAllocatormust be a valid pointer to a valid AllocationCallbacks structurepEventmust be a valid pointer to a Event handleThe device must have been created with at least
1queue
Return Codes
See Also
VK_VERSION_1_0, AllocationCallbacks, Device, Event, EventCreateInfo