Struct vulkano::descriptor_set::pool::standard::StdDescriptorPool
source · [−]pub struct StdDescriptorPool { /* private fields */ }
Expand description
Standard implementation of a descriptor pool.
It is guaranteed that the Arc<StdDescriptorPool>
is kept alive by its allocations. This is
desirable so that we can store a Weak<StdDescriptorPool>
.
Whenever a set is allocated, this implementation will try to find a pool that has some space for it. If there is one, allocate from it. If there is none, create a new pool whose capacity is 40 sets and 40 times the requested descriptors. This number is arbitrary.
Implementations
sourceimpl StdDescriptorPool
impl StdDescriptorPool
sourcepub fn new(device: Arc<Device>) -> StdDescriptorPool
pub fn new(device: Arc<Device>) -> StdDescriptorPool
Builds a new StdDescriptorPool
.
Trait Implementations
sourceimpl Debug for StdDescriptorPool
impl Debug for StdDescriptorPool
sourceimpl DeviceOwned for StdDescriptorPool
impl DeviceOwned for StdDescriptorPool
Auto Trait Implementations
impl RefUnwindSafe for StdDescriptorPool
impl Send for StdDescriptorPool
impl Sync for StdDescriptorPool
impl Unpin for StdDescriptorPool
impl UnwindSafe for StdDescriptorPool
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