| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Core10.QueueSemaphore
- 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
Constructors
| VkSemaphoreCreateFlags VkFlags |
vkCreateSemaphore :: ("device" ::: VkDevice) -> ("pCreateInfo" ::: Ptr VkSemaphoreCreateInfo) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSemaphore" ::: Ptr VkSemaphore) -> IO VkResult Source #
vkCreateSemaphore - Create a new queue semaphore object
Parameters
deviceis the logical device that creates the semaphore.
pCreateInfois a pointer to an instance of theVkSemaphoreCreateInfostructure which contains information about how the semaphore is to be created.pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.pSemaphorepoints to a handle in which the resulting semaphore object is returned.
Description
When created, the semaphore is in the unsignaled state.
Valid Usage (Implicit)
devicemust be a validVkDevicehandle
pCreateInfomust be a valid pointer to a validVkSemaphoreCreateInfostructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pSemaphoremust be a valid pointer to aVkSemaphorehandle
Return Codes
- Success
- -
VK_SUCCESS
- Failure
- -
VK_ERROR_OUT_OF_HOST_MEMORYVK_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
deviceis the logical device that destroys the semaphore.
semaphoreis the handle of the semaphore to destroy.pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.
Description
Valid Usage
- All submitted batches that refer to
semaphoremust have completed execution
- If
VkAllocationCallbackswere provided whensemaphorewas created, a compatible set of callbacks must be provided here - If no
VkAllocationCallbackswere provided whensemaphorewas created,pAllocatormust beNULL
Valid Usage (Implicit)
devicemust be a validVkDevicehandle
- If
semaphoreis notVK_NULL_HANDLE,semaphoremust be a validVkSemaphorehandle - If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure - If
semaphoreis a valid handle, it must have been created, allocated, or retrieved fromdevice
Host Synchronization
- Host access to
semaphoremust be externally synchronized
See Also
data VkSemaphoreCreateInfo Source #
VkSemaphoreCreateInfo - Structure specifying parameters of a newly created semaphore
Description
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO
- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkExportSemaphoreCreateInfoorVkExportSemaphoreWin32HandleInfoKHR - Each
sTypemember in thepNextchain must be unique flagsmust be0
See Also
Constructors
| VkSemaphoreCreateInfo | |
Fields
| |