pub struct DescriptorPool { /* private fields */ }Implementations§
Source§impl DescriptorPool
impl DescriptorPool
pub fn new( device: &Device, max_sets: u32, pool_sizes: &[DescriptorPoolSize], ) -> Result<Self, Error>
pub fn allocate_sets( &self, device: &Device, layouts: &[DescriptorSetLayout], ) -> Result<Vec<DescriptorSet>, Error>
pub fn handle(&self) -> DescriptorPool
pub fn free_sets( &self, device: &Device, sets: &[DescriptorSet], ) -> Result<(), Error>
pub fn destroy(&self, device: &Device)
Auto Trait Implementations§
impl Freeze for DescriptorPool
impl RefUnwindSafe for DescriptorPool
impl Send for DescriptorPool
impl Sync for DescriptorPool
impl Unpin for DescriptorPool
impl UnsafeUnpin for DescriptorPool
impl UnwindSafe for DescriptorPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more