Struct vulkano::command_buffer::pool::standard::StandardCommandPool
source · [−]pub struct StandardCommandPool { /* private fields */ }
Expand description
Standard implementation of a command pool.
It is guaranteed that the allocated command buffers keep the Arc<StandardCommandPool>
alive.
This is desirable so that we can store a Weak<StandardCommandPool>
.
Will use one Vulkan pool per thread in order to avoid locking. Will try to reuse command buffers. Command buffers can’t be moved between threads during the building process, but finished command buffers can.
Implementations
sourceimpl StandardCommandPool
impl StandardCommandPool
sourcepub fn new(
device: Arc<Device>,
queue_family: QueueFamily<'_>
) -> StandardCommandPool
pub fn new(
device: Arc<Device>,
queue_family: QueueFamily<'_>
) -> StandardCommandPool
Builds a new pool.
Panic
- Panics if the device and the queue family don’t belong to the same physical device.
Trait Implementations
sourceimpl Debug for StandardCommandPool
impl Debug for StandardCommandPool
sourceimpl DeviceOwned for StandardCommandPool
impl DeviceOwned for StandardCommandPool
impl Send for StandardCommandPool
impl Sync for StandardCommandPool
Auto Trait Implementations
impl RefUnwindSafe for StandardCommandPool
impl Unpin for StandardCommandPool
impl UnwindSafe for StandardCommandPool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more