vulkan-3.0.0.0: Bindings to the Vulkan graphics API.

Safe HaskellNone
LanguageHaskell2010

Graphics.Vulkan.Core10.QueueSemaphore

Synopsis

Documentation

createSemaphore :: PokeChain a => Device -> SemaphoreCreateInfo a -> ("allocator" ::: Maybe AllocationCallbacks) -> IO Semaphore Source #

vkCreateSemaphore - Create a new queue semaphore object

Parameters

  • Device is the logical device that creates the semaphore.
  • pCreateInfo is a pointer to a SemaphoreCreateInfo structure containing information about how the semaphore is to be created.
  • pAllocator controls host memory allocation as described in the Memory Allocation chapter.
  • pSemaphore is a pointer to a handle in which the resulting semaphore object is returned.

Valid Usage (Implicit)

Return Codes

Success
Failure

See Also

AllocationCallbacks, Device, Semaphore, SemaphoreCreateInfo

withSemaphore :: PokeChain a => Device -> SemaphoreCreateInfo a -> Maybe AllocationCallbacks -> (Semaphore -> IO r) -> IO r Source #

A safe wrapper for createSemaphore and destroySemaphore using bracket

The allocated value must not be returned from the provided computation

destroySemaphore :: Device -> Semaphore -> ("allocator" ::: Maybe AllocationCallbacks) -> 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

Valid Usage (Implicit)

Host Synchronization

  • Host access to Semaphore must be externally synchronized

See Also

AllocationCallbacks, Device, Semaphore

data SemaphoreCreateInfo (es :: [Type]) Source #

VkSemaphoreCreateInfo - Structure specifying parameters of a newly created semaphore

Valid Usage (Implicit)

See Also

SemaphoreCreateFlags, StructureType, createSemaphore

Constructors

SemaphoreCreateInfo 

Fields

Instances
Extensible SemaphoreCreateInfo Source # 
Instance details

Defined in Graphics.Vulkan.Core10.QueueSemaphore

Show (Chain es) => Show (SemaphoreCreateInfo es) Source # 
Instance details

Defined in Graphics.Vulkan.Core10.QueueSemaphore

PeekChain es => FromCStruct (SemaphoreCreateInfo es) Source # 
Instance details

Defined in Graphics.Vulkan.Core10.QueueSemaphore

PokeChain es => ToCStruct (SemaphoreCreateInfo es) Source # 
Instance details

Defined in Graphics.Vulkan.Core10.QueueSemaphore

es ~ ([] :: [Type]) => Zero (SemaphoreCreateInfo es) Source # 
Instance details

Defined in Graphics.Vulkan.Core10.QueueSemaphore