Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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
Instances
type VkEvent = Ptr VkEvent_T Source #
VkEvent - Opaque handle to a event object
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
device
is the logical device that creates the event.
pCreateInfo
is a pointer to an instance of theVkEventCreateInfo
structure which contains information about how the event is to be created.pAllocator
controls host memory allocation as described in the Memory Allocation chapter.pEvent
points 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)
device
must be a validVkDevice
handle
pCreateInfo
must be a valid pointer to a validVkEventCreateInfo
structure- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure pEvent
must be a valid pointer to aVkEvent
handle
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
vkDestroyEvent :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> IO () Source #
vkDestroyEvent - Destroy an event object
Parameters
device
is the logical device that destroys the event.
event
is the handle of the event to destroy.pAllocator
controls host memory allocation as described in the Memory Allocation chapter.
Valid Usage
- All submitted commands that refer to
event
must have completed execution
- If
VkAllocationCallbacks
were provided whenevent
was created, a compatible set of callbacks must be provided here - If no
VkAllocationCallbacks
were provided whenevent
was created,pAllocator
must beNULL
Valid Usage (Implicit)
device
must be a validVkDevice
handle
- If
event
is notVK_NULL_HANDLE
,event
must be a validVkEvent
handle - If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure - If
event
is a valid handle, it must have been created, allocated, or retrieved fromdevice
Host Synchronization
- Host access to
event
must be externally synchronized
See Also
vkGetEventStatus :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> IO VkResult Source #
vkGetEventStatus - Retrieve the status of an event object
Parameters
device
is the logical device that owns the event.
event
is 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)
device
must be a validVkDevice
handle
event
must be a validVkEvent
handleevent
must have been created, allocated, or retrieved fromdevice
Return Codes
[Success]
- VK_EVENT_SET
VK_EVENT_RESET
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_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
device
is the logical device that owns the event.
event
is 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)
device
must be a validVkDevice
handle
event
must be a validVkEvent
handleevent
must have been created, allocated, or retrieved fromdevice
Host Synchronization
- Host access to
event
must be externally synchronized
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
vkResetEvent :: ("device" ::: VkDevice) -> ("event" ::: VkEvent) -> IO VkResult Source #
vkResetEvent - Reset an event to non-signaled state
Parameters
device
is the logical device that owns the event.
event
is 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
event
must not be waited on by avkCmdWaitEvents
command that is currently executing
Valid Usage (Implicit)
device
must be a validVkDevice
handle
event
must be a validVkEvent
handleevent
must have been created, allocated, or retrieved fromdevice
Host Synchronization
- Host access to
event
must be externally synchronized
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
data VkEventCreateInfo Source #
VkEventCreateInfo - Structure specifying parameters of a newly created event
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_EVENT_CREATE_INFO
pNext
must beNULL
flags
must be0
See Also
VkEventCreateInfo | |
|
Instances
Eq VkEventCreateInfo Source # | |
(==) :: VkEventCreateInfo -> VkEventCreateInfo -> Bool # (/=) :: VkEventCreateInfo -> VkEventCreateInfo -> Bool # | |
Show VkEventCreateInfo Source # | |
showsPrec :: Int -> VkEventCreateInfo -> ShowS # show :: VkEventCreateInfo -> String # showList :: [VkEventCreateInfo] -> ShowS # | |
Storable VkEventCreateInfo Source # | |
sizeOf :: VkEventCreateInfo -> Int # alignment :: VkEventCreateInfo -> Int # peekElemOff :: Ptr VkEventCreateInfo -> Int -> IO VkEventCreateInfo # pokeElemOff :: Ptr VkEventCreateInfo -> Int -> VkEventCreateInfo -> IO () # peekByteOff :: Ptr b -> Int -> IO VkEventCreateInfo # pokeByteOff :: Ptr b -> Int -> VkEventCreateInfo -> IO () # peek :: Ptr VkEventCreateInfo -> IO VkEventCreateInfo # poke :: Ptr VkEventCreateInfo -> VkEventCreateInfo -> IO () # |