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.
Methods
impl<D> Semaphore<D> where
D: SafeDeref<Target = Device>,
[src]
impl<D> Semaphore<D> where
D: SafeDeref<Target = Device>,
pub fn from_pool(device: D) -> Result<Semaphore<D>, OomError>
[src]
pub fn from_pool(device: D) -> Result<Semaphore<D>, OomError>
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]
pub fn alloc(device: D) -> Result<Semaphore<D>, OomError>
Builds a new semaphore.
Trait Implementations
impl<D: Debug> Debug for Semaphore<D> where
D: SafeDeref<Target = Device>,
[src]
impl<D: Debug> Debug for Semaphore<D> where
D: SafeDeref<Target = Device>,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl DeviceOwned for Semaphore
[src]
impl DeviceOwned for Semaphore
impl<D> VulkanObject for Semaphore<D> where
D: SafeDeref<Target = Device>,
[src]
impl<D> VulkanObject for Semaphore<D> where
D: SafeDeref<Target = Device>,
type Object = Semaphore
The type of the object.
const TYPE: DebugReportObjectTypeEXT
TYPE: DebugReportObjectTypeEXT = vk::DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT
The DebugReportObjectTypeEXT
of the internal Vulkan handle.
fn internal_object(&self) -> Semaphore
[src]
fn internal_object(&self) -> Semaphore
Returns a reference to the object.
impl<D> Drop for Semaphore<D> where
D: SafeDeref<Target = Device>,
[src]
impl<D> Drop for Semaphore<D> where
D: SafeDeref<Target = Device>,