[−][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.
Methods
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 DeviceOwned for Semaphore
[src]
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: DebugReportObjectTypeEXT
[src]
fn internal_object(&self) -> Semaphore
[src]
impl<D> Drop for Semaphore<D> where
D: SafeDeref<Target = Device>,
[src]
D: SafeDeref<Target = Device>,
impl<D: Debug> Debug for Semaphore<D> where
D: SafeDeref<Target = Device>,
[src]
D: SafeDeref<Target = Device>,
Auto Trait Implementations
impl<D> Send for Semaphore<D> where
D: Send,
D: Send,
impl<D> Unpin for Semaphore<D> where
D: Unpin,
D: Unpin,
impl<D> Sync for Semaphore<D> where
D: Sync,
D: Sync,
impl<D> UnwindSafe for Semaphore<D> where
D: UnwindSafe,
D: UnwindSafe,
impl<D> RefUnwindSafe for Semaphore<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
Blanket Implementations
impl<T> DeviceOwned for T where
T: Deref,
<T as Deref>::Target: DeviceOwned,
[src]
T: Deref,
<T as Deref>::Target: DeviceOwned,
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,