[−][src]Struct vulkano::sync::Semaphore
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
impl<D> Semaphore<D> where
D: SafeDeref<Target = Device>, [src]
D: SafeDeref<Target = Device>,
pub fn from_pool(device: D) -> Result<Semaphore<D>, OomError>[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.
pub fn alloc(device: D) -> Result<Semaphore<D>, OomError>[src]
Builds a new semaphore.
Trait Implementations
impl<D: Debug> Debug for Semaphore<D> where
D: SafeDeref<Target = Device>, [src]
D: SafeDeref<Target = Device>,
impl DeviceOwned for Semaphore[src]
impl<D> Drop for Semaphore<D> where
D: SafeDeref<Target = Device>, [src]
D: SafeDeref<Target = Device>,
impl<D> VulkanObject for Semaphore<D> where
D: SafeDeref<Target = Device>, [src]
D: SafeDeref<Target = Device>,
type Object = Semaphore
The type of the object.
const TYPE: ObjectType[src]
fn internal_object(&self) -> Semaphore[src]
Auto Trait Implementations
impl<D> RefUnwindSafe for Semaphore<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for Semaphore<D> where
D: Send,
D: Send,
impl<D> Sync for Semaphore<D> where
D: Sync,
D: Sync,
impl<D> Unpin for Semaphore<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for Semaphore<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Content for T[src]
fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>[src]
fn is_size_suitable(usize) -> bool[src]
fn indiv_size() -> usize[src]
impl<T> DeviceOwned for T where
T: Deref,
<T as Deref>::Target: DeviceOwned, [src]
T: Deref,
<T as Deref>::Target: DeviceOwned,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,