Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype VkSemaphoreCreateFlags = VkSemaphoreCreateFlags VkFlags
- vkCreateSemaphore :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkSemaphoreCreateInfo) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSemaphore" ::: Ptr VkSemaphore) -> IO VkResult
- vkDestroySemaphore :: ("device" ::: VkDevice) -> ("semaphore" ::: VkSemaphore) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> IO ()
- data VkSemaphoreCreateInfo = VkSemaphoreCreateInfo {}
Documentation
newtype VkSemaphoreCreateFlags Source #
VkSemaphoreCreateFlags - Reserved for future use
Description
VkSemaphoreCreateFlags
is a bitmask type for setting a mask, but is
currently reserved for future use.
See Also
Instances
vkCreateSemaphore :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkSemaphoreCreateInfo) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSemaphore" ::: Ptr VkSemaphore) -> IO VkResult Source #
vkCreateSemaphore - Create a new queue semaphore object
Parameters
device
is the logical device that creates the semaphore.
pCreateInfo
is a pointer to an instance of theVkSemaphoreCreateInfo
structure which contains information about how the semaphore is to be created.pAllocator
controls host memory allocation as described in the Memory Allocation chapter.pSemaphore
points to a handle in which the resulting semaphore object is returned.
Description
When created, the semaphore is in the unsignaled state.
Valid Usage (Implicit)
device
must be a validVkDevice
handle
pCreateInfo
must be a valid pointer to a validVkSemaphoreCreateInfo
structure- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure pSemaphore
must be a valid pointer to aVkSemaphore
handle
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
VkAllocationCallbacks
,
VkDevice
,
VkSemaphore
, VkSemaphoreCreateInfo
vkDestroySemaphore :: ("device" ::: VkDevice) -> ("semaphore" ::: VkSemaphore) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> IO () Source #
vkDestroySemaphore - Destroy a semaphore object
Parameters
device
is the logical device that destroys the semaphore.
semaphore
is the handle of the semaphore to destroy.pAllocator
controls host memory allocation as described in the Memory Allocation chapter.
Valid Usage
- All submitted batches that refer to
semaphore
must have completed execution
- If
VkAllocationCallbacks
were provided whensemaphore
was created, a compatible set of callbacks must be provided here - If no
VkAllocationCallbacks
were provided whensemaphore
was created,pAllocator
must beNULL
Valid Usage (Implicit)
device
must be a validVkDevice
handle
- If
semaphore
is notVK_NULL_HANDLE
,semaphore
must be a validVkSemaphore
handle - If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure - If
semaphore
is a valid handle, it must have been created, allocated, or retrieved fromdevice
Host Synchronization
- Host access to
semaphore
must be externally synchronized
See Also
data VkSemaphoreCreateInfo Source #
VkSemaphoreCreateInfo - Structure specifying parameters of a newly created semaphore
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO
- Each
pNext
member of any structure (including this one) in thepNext
chain must be eitherNULL
or a pointer to a valid instance ofVkExportSemaphoreCreateInfo
orVkExportSemaphoreWin32HandleInfoKHR
- Each
sType
member in thepNext
chain must be unique flags
must be0
See Also
VkSemaphoreCreateInfo | |
|
Instances
Eq VkSemaphoreCreateInfo Source # | |
(==) :: VkSemaphoreCreateInfo -> VkSemaphoreCreateInfo -> Bool # (/=) :: VkSemaphoreCreateInfo -> VkSemaphoreCreateInfo -> Bool # | |
Show VkSemaphoreCreateInfo Source # | |
showsPrec :: Int -> VkSemaphoreCreateInfo -> ShowS # show :: VkSemaphoreCreateInfo -> String # showList :: [VkSemaphoreCreateInfo] -> ShowS # | |
Storable VkSemaphoreCreateInfo Source # | |
sizeOf :: VkSemaphoreCreateInfo -> Int # alignment :: VkSemaphoreCreateInfo -> Int # peekElemOff :: Ptr VkSemaphoreCreateInfo -> Int -> IO VkSemaphoreCreateInfo # pokeElemOff :: Ptr VkSemaphoreCreateInfo -> Int -> VkSemaphoreCreateInfo -> IO () # peekByteOff :: Ptr b -> Int -> IO VkSemaphoreCreateInfo # pokeByteOff :: Ptr b -> Int -> VkSemaphoreCreateInfo -> IO () # peek :: Ptr VkSemaphoreCreateInfo -> IO VkSemaphoreCreateInfo # poke :: Ptr VkSemaphoreCreateInfo -> VkSemaphoreCreateInfo -> IO () # |