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]

See the docs of new().

Builds a new semaphore.

Panic

  • Panics if the device or host ran out of memory.

Trait Implementations

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

Formats the value using the given formatter.

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

The type of the object.

Returns a reference to the object.

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

A method called when the value goes out of scope. Read more