Struct vulkano::descriptor::descriptor_set::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 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 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.