VulkanCommandPoolExtManual

Trait VulkanCommandPoolExtManual 

Source
pub trait VulkanCommandPoolExtManual:
    Sealed
    + IsA<VulkanCommandPool>
    + 'static {
    // Provided method
    fn lock<'a>(&'a self) -> VulkanCommandPoolGuard<'a> { ... }
}

Provided Methods§

Source

fn lock<'a>(&'a self) -> VulkanCommandPoolGuard<'a>

Locks the command pool. A struct similar to MutexGuard is retured that unlocks the command pool once dropped. This should be called to ensure no other thread will attempt to access the pool’s internal resources. Any modification of any of the allocated VulkanCommandBuffer’s need to be encapsulated in a lock()/[unlock()][Self::unlock()] pair to meet the Vulkan API requirements that host access to the command pool is externally synchronised.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§