Struct vulkano::descriptor::descriptor_set::StdDescriptorPool
[−]
[src]
pub struct StdDescriptorPool { /* fields omitted */ }
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.
Methods
impl StdDescriptorPool
[src]
fn new(device: Arc<Device>) -> StdDescriptorPool
[src]
Builds a new StdDescriptorPool
.