Struct vulkano::sync::Semaphore [−][src]
Expand description
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.
Implementations
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.
Same as alloc
, but allows exportable opaque file descriptor on Linux/BSD
Trait Implementations
Returns a reference to the object.
Auto Trait Implementations
impl<D> RefUnwindSafe for Semaphore<D> where
D: RefUnwindSafe,
impl<D> UnwindSafe for Semaphore<D> where
D: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.