Struct vulkano::sync::Semaphore[][src]

pub struct Semaphore<D = Arc<Device>> where
    D: SafeDeref<Target = Device>, 
{ /* fields omitted */ }

Used to provide synchronization between command buffers during their execution.

It is similar to a fence, except that it is purely on the GPU side. The CPU can't query a semaphore's status or wait for it to be signaled.

Methods

impl<D> Semaphore<D> where
    D: SafeDeref<Target = Device>, 
[src]

Takes a semaphore from the vulkano-provided semaphore pool. If the pool is empty, a new semaphore will be allocated. Upon drop, the semaphore is put back into the pool.

For most applications, using the pool should be preferred, in order to avoid creating new semaphores every frame.

Builds a new semaphore.

Trait Implementations

impl<D: Debug> Debug for Semaphore<D> where
    D: SafeDeref<Target = Device>, 
[src]

Formats the value using the given formatter. Read more

impl DeviceOwned for Semaphore
[src]

Returns the device that owns Self.

impl<D> VulkanObject for Semaphore<D> where
    D: SafeDeref<Target = Device>, 
[src]

The type of the object.

TYPE: DebugReportObjectTypeEXT = vk::DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT

The DebugReportObjectTypeEXT of the internal Vulkan handle.

Returns a reference to the object.

impl<D> Drop for Semaphore<D> where
    D: SafeDeref<Target = Device>, 
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<D> Send for Semaphore<D> where
    D: Send

impl<D> Sync for Semaphore<D> where
    D: Sync