pub struct DescriptorPool { /* private fields */ }
Expand description
A descriptor pool.
§Destruction
Dropping this DescriptorPool
will cause Device::destroy_descriptor_pool
to be called,
automatically releasing any resources associated with it.
Implementations§
Source§impl DescriptorPool
impl DescriptorPool
Sourcepub fn builder<'b>() -> DescriptorPoolBuilder<'b>
pub fn builder<'b>() -> DescriptorPoolBuilder<'b>
Returns a new DescriptorPoolBuilder
.
Sourcepub fn handle(&self) -> DescriptorPoolHandle
pub fn handle(&self) -> DescriptorPoolHandle
Returns this object’s handle.
Sourcepub fn allocate_descriptor_sets<Ds>(
&self,
layouts: &[Ds],
) -> VdResult<SmallVec<[DescriptorSet; 8]>>where
Ds: Handle<Target = DescriptorSetLayoutHandle>,
pub fn allocate_descriptor_sets<Ds>(
&self,
layouts: &[Ds],
) -> VdResult<SmallVec<[DescriptorSet; 8]>>where
Ds: Handle<Target = DescriptorSetLayoutHandle>,
Updates descriptor sets.
Sourcepub fn update_descriptor_sets(
&self,
descriptor_writes: &[WriteDescriptorSet<'_>],
descriptor_copies: &[CopyDescriptorSet<'_>],
)
pub fn update_descriptor_sets( &self, descriptor_writes: &[WriteDescriptorSet<'_>], descriptor_copies: &[CopyDescriptorSet<'_>], )
Updates the contents of a descriptor set object.
https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkUpdateDescriptorSets.html
Trait Implementations§
Source§impl Clone for DescriptorPool
impl Clone for DescriptorPool
Source§fn clone(&self) -> DescriptorPool
fn clone(&self) -> DescriptorPool
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DescriptorPool
impl Debug for DescriptorPool
Auto Trait Implementations§
impl Freeze for DescriptorPool
impl RefUnwindSafe for DescriptorPool
impl Send for DescriptorPool
impl Sync for DescriptorPool
impl Unpin 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