vulkan-3.26.1: Bindings to the Vulkan graphics API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Vulkan.Core10.QueueSemaphore

Synopsis

Documentation

createSemaphore Source #

Arguments

:: forall a io. (Extendss SemaphoreCreateInfo a, PokeChain a, MonadIO io) 
=> Device

device is the logical device that creates the semaphore.

-> SemaphoreCreateInfo a

pCreateInfo is a pointer to a SemaphoreCreateInfo structure containing information about how the semaphore is to be created.

-> ("allocator" ::: Maybe AllocationCallbacks)

pAllocator controls host memory allocation as described in the Memory Allocation chapter.

-> io Semaphore 

vkCreateSemaphore - Create a new queue semaphore object

Valid Usage (Implicit)

  • device must be a valid Device handle
  • pCreateInfo must be a valid pointer to a valid SemaphoreCreateInfo structure
  • If pAllocator is not NULL, pAllocator must be a valid pointer to a valid AllocationCallbacks structure
  • pSemaphore must be a valid pointer to a Semaphore handle

Return Codes

Success
Failure

See Also

VK_VERSION_1_0, AllocationCallbacks, Device, Semaphore, SemaphoreCreateInfo

withSemaphore :: forall a io r. (Extendss SemaphoreCreateInfo a, PokeChain a, MonadIO io) => Device -> SemaphoreCreateInfo a -> Maybe AllocationCallbacks -> (io Semaphore -> (Semaphore -> io ()) -> r) -> r Source #

A convenience wrapper to make a compatible pair of calls to createSemaphore and destroySemaphore

To ensure that destroySemaphore is always called: pass bracket (or the allocate function from your favourite resource management library) as the last argument. To just extract the pair pass (,) as the last argument.

destroySemaphore Source #

Arguments

:: forall io. MonadIO io 
=> Device

device is the logical device that destroys the semaphore.

-> Semaphore

semaphore is the handle of the semaphore to destroy.

-> ("allocator" ::: Maybe AllocationCallbacks)

pAllocator controls host memory allocation as described in the Memory Allocation chapter.

-> io () 

vkDestroySemaphore - Destroy a semaphore object

Valid Usage

  • All submitted batches that refer to semaphore must have completed execution
  • If AllocationCallbacks were provided when semaphore was created, a compatible set of callbacks must be provided here
  • If no AllocationCallbacks were provided when semaphore was created, pAllocator must be NULL

Valid Usage (Implicit)

  • device must be a valid Device handle
  • If semaphore is not NULL_HANDLE, semaphore must be a valid Semaphore handle
  • If pAllocator is not NULL, pAllocator must be a valid pointer to a valid AllocationCallbacks structure
  • If semaphore is a valid handle, it must have been created, allocated, or retrieved from device

Host Synchronization

  • Host access to semaphore must be externally synchronized

See Also

VK_VERSION_1_0, AllocationCallbacks, Device, Semaphore

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

VkSemaphoreCreateInfo - Structure specifying parameters of a newly created semaphore

Valid Usage

Valid Usage (Implicit)

See Also

VK_VERSION_1_0, SemaphoreCreateFlags, StructureType, createSemaphore

Constructors

SemaphoreCreateInfo 

Fields

Instances

Instances details
Extensible SemaphoreCreateInfo Source # 
Instance details

Defined in Vulkan.Core10.QueueSemaphore

Methods

extensibleTypeName :: String Source #

getNext :: forall (es :: [Type]). SemaphoreCreateInfo es -> Chain es Source #

setNext :: forall (ds :: [Type]) (es :: [TYPE LiftedRep]). SemaphoreCreateInfo ds -> Chain es -> SemaphoreCreateInfo es Source #

extends :: forall e b proxy. Typeable e => proxy e -> (Extends SemaphoreCreateInfo e => b) -> Maybe b Source #

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

Defined in Vulkan.Core10.QueueSemaphore

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

Defined in Vulkan.Core10.QueueSemaphore

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

Defined in Vulkan.Core10.QueueSemaphore

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

Defined in Vulkan.Core10.QueueSemaphore

newtype Semaphore Source #

Constructors

Semaphore Word64 

Instances

Instances details
Storable Semaphore Source # 
Instance details

Defined in Vulkan.Core10.Handles

Show Semaphore Source # 
Instance details

Defined in Vulkan.Core10.Handles

Eq Semaphore Source # 
Instance details

Defined in Vulkan.Core10.Handles

Ord Semaphore Source # 
Instance details

Defined in Vulkan.Core10.Handles

HasObjectType Semaphore Source # 
Instance details

Defined in Vulkan.Core10.Handles

IsHandle Semaphore Source # 
Instance details

Defined in Vulkan.Core10.Handles

Zero Semaphore Source # 
Instance details

Defined in Vulkan.Core10.Handles

newtype SemaphoreCreateFlags Source #

VkSemaphoreCreateFlags - Reserved for future use

Description

SemaphoreCreateFlags is a bitmask type for setting a mask, but is currently reserved for future use.

See Also

VK_VERSION_1_0, SemaphoreCreateInfo

Instances

Instances details
Storable SemaphoreCreateFlags Source # 
Instance details

Defined in Vulkan.Core10.Enums.SemaphoreCreateFlags

Bits SemaphoreCreateFlags Source # 
Instance details

Defined in Vulkan.Core10.Enums.SemaphoreCreateFlags

FiniteBits SemaphoreCreateFlags Source # 
Instance details

Defined in Vulkan.Core10.Enums.SemaphoreCreateFlags

Read SemaphoreCreateFlags Source # 
Instance details

Defined in Vulkan.Core10.Enums.SemaphoreCreateFlags

Show SemaphoreCreateFlags Source # 
Instance details

Defined in Vulkan.Core10.Enums.SemaphoreCreateFlags

Eq SemaphoreCreateFlags Source # 
Instance details

Defined in Vulkan.Core10.Enums.SemaphoreCreateFlags

Ord SemaphoreCreateFlags Source # 
Instance details

Defined in Vulkan.Core10.Enums.SemaphoreCreateFlags

Zero SemaphoreCreateFlags Source # 
Instance details

Defined in Vulkan.Core10.Enums.SemaphoreCreateFlags