Struct vulkano::sync::Semaphore [−][src]
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]
impl<D> Semaphore<D> where
D: SafeDeref<Target = Device>,
[src]pub fn from_pool(device: D) -> Result<Semaphore<D>, OomError>
[src]
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.
Trait Implementations
impl DeviceOwned for Semaphore
[src]
impl DeviceOwned for Semaphore
[src]impl<D> VulkanObject for Semaphore<D> where
D: SafeDeref<Target = Device>,
[src]
impl<D> VulkanObject for Semaphore<D> where
D: SafeDeref<Target = Device>,
[src]const TYPE: ObjectType
[src]
const TYPE: ObjectType
[src]The ObjectType
of the internal Vulkan handle.
fn internal_object(&self) -> Semaphore
[src]
fn internal_object(&self) -> Semaphore
[src]Returns a reference to the object.
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.