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]

[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.

[src]

Builds a new semaphore.

Trait Implementations

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

[src]

Formats the value using the given formatter.

impl DeviceOwned for Semaphore
[src]

[src]

Returns the device that owns Self.

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

The type of the object.

[src]

Returns a reference to the object.

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

[src]

Executes the destructor for this type. Read more