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 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.