Trait vulkano::descriptor_set::pool::DescriptorPool [−][src]
pub unsafe trait DescriptorPool: DeviceOwned {
type Alloc: DescriptorPoolAlloc;
fn alloc(
&mut self,
layout: &DescriptorSetLayout,
variable_descriptor_count: u32
) -> Result<Self::Alloc, OomError>;
}
Expand description
A pool from which descriptor sets can be allocated.
Since the destructor of Alloc
must free the descriptor set, this trait is usually implemented
on Arc<T>
or &'a T
and not T
directly, so that the Alloc
object can hold the pool.
Associated Types
Object that represented an allocated descriptor set.
The destructor of this object should free the descriptor set.