| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Core10.Event
- newtype VkEventCreateFlags = VkEventCreateFlags VkFlags
- type VkEvent = Ptr VkEvent_T
- vkCreateEvent :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkEventCreateInfo) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pEvent" ::: Ptr VkEvent) -> IO VkResult
- vkDestroyEvent :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> IO ()
- vkGetEventStatus :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> IO VkResult
- vkSetEvent :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> IO VkResult
- vkResetEvent :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> IO VkResult
- data VkEventCreateInfo = VkEventCreateInfo {
- vkSType :: VkStructureType
- vkPNext :: Ptr ()
- vkFlags :: VkEventCreateFlags
Documentation
newtype VkEventCreateFlags Source #
VkEventCreateFlags - Reserved for future use
Description
VkEventCreateFlags is a bitmask type for setting a mask, but is
currently reserved for future use.
See Also
Constructors
| VkEventCreateFlags VkFlags |
type VkEvent = Ptr VkEvent_T Source #
VkEvent - Opaque handle to a event object
Description
See Also
vkCmdResetEvent,
vkCmdSetEvent,
vkCmdWaitEvents,
vkCreateEvent, vkDestroyEvent, vkGetEventStatus, vkResetEvent,
vkSetEvent
vkCreateEvent :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkEventCreateInfo) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pEvent" ::: Ptr VkEvent) -> IO VkResult Source #
vkCreateEvent - Create a new event object
Parameters
deviceis the logical device that creates the event.
pCreateInfois a pointer to an instance of theVkEventCreateInfostructure which contains information about how the event is to be created.pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.pEventpoints to a handle in which the resulting event object is returned.
Description
When created, the event object is in the unsignaled state.
Valid Usage (Implicit)
devicemust be a validVkDevicehandle
pCreateInfomust be a valid pointer to a validVkEventCreateInfostructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pEventmust be a valid pointer to aVkEventhandle
Return Codes
- Success
- -
VK_SUCCESS
- Failure
- -
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
vkDestroyEvent :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> IO () Source #
vkDestroyEvent - Destroy an event object
Parameters
deviceis the logical device that destroys the event.
eventis the handle of the event to destroy.pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.
Description
Valid Usage
- All submitted commands that refer to
eventmust have completed execution
- If
VkAllocationCallbackswere provided wheneventwas created, a compatible set of callbacks must be provided here - If no
VkAllocationCallbackswere provided wheneventwas created,pAllocatormust beNULL
Valid Usage (Implicit)
devicemust be a validVkDevicehandle
- If
eventis notVK_NULL_HANDLE,eventmust be a validVkEventhandle - If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure - If
eventis a valid handle, it must have been created, allocated, or retrieved fromdevice
Host Synchronization
- Host access to
eventmust be externally synchronized
See Also
vkGetEventStatus :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> IO VkResult Source #
vkGetEventStatus - Retrieve the status of an event object
Parameters
deviceis the logical device that owns the event.
eventis the handle of the event to query.
Description
Upon success, vkGetEventStatus returns the state of the event object
with the following return codes:
+-----------------------------------+-----------------------------------+ | Status | Meaning | +===================================+===================================+ | @VK_EVENT_SET@ | The event specified by @event@ is | | | signaled. | +-----------------------------------+-----------------------------------+ | @VK_EVENT_RESET@ | The event specified by @event@ is | | | unsignaled. | +-----------------------------------+-----------------------------------+ Event Object Status Codes
If a vkCmdSetEvent or vkCmdResetEvent 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 vkGetEventStatus
will return the new state. If an event is already in the requested
state, then updating it to the same state has no effect.
Valid Usage (Implicit)
devicemust be a validVkDevicehandle
eventmust be a validVkEventhandleeventmust have been created, allocated, or retrieved fromdevice
Return Codes
- Success
- -
VK_EVENT_SETVK_EVENT_RESET
- Failure
- -
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_DEVICE_LOST
See Also
vkSetEvent :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> IO VkResult Source #
vkSetEvent - Set an event to signaled state
Parameters
deviceis the logical device that owns the event.
eventis the event to set.
Description
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.
Valid Usage (Implicit)
devicemust be a validVkDevicehandle
eventmust be a validVkEventhandleeventmust have been created, allocated, or retrieved fromdevice
Host Synchronization
- Host access to
eventmust be externally synchronized
Return Codes
- Success
- -
VK_SUCCESS
- Failure
- -
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
vkResetEvent :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> IO VkResult Source #
vkResetEvent - Reset an event to non-signaled state
Parameters
deviceis the logical device that owns the event.
eventis the event to reset.
Description
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
eventmust not be waited on by avkCmdWaitEventscommand that is currently executing
Valid Usage (Implicit)
devicemust be a validVkDevicehandle
eventmust be a validVkEventhandleeventmust have been created, allocated, or retrieved fromdevice
Host Synchronization
- Host access to
eventmust be externally synchronized
Return Codes
- Success
- -
VK_SUCCESS
- Failure
- -
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
data VkEventCreateInfo Source #
VkEventCreateInfo - Structure specifying parameters of a newly created event
Description
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_EVENT_CREATE_INFO
pNextmust beNULLflagsmust be0
See Also
Constructors
| VkEventCreateInfo | |
Fields
| |