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

pub struct Semaphore {
    // some 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 Semaphore
[src]

fn raw(device: &Arc<Device>) -> Result<SemaphoreOomError>

See the docs of new().

fn new(device: &Arc<Device>) -> Arc<Semaphore>

Builds a new semaphore.

Panic

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

Trait Implementations

impl Debug for Semaphore
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl VulkanObject for Semaphore
[src]

type Object = Semaphore

The type of the object.

fn internal_object(&self) -> Semaphore

Returns a reference to the object.

impl Drop for Semaphore
[src]

fn drop(&mut self)

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