Struct vulkano::descriptor_set::DescriptorSetResources
source · pub struct DescriptorSetResources { /* private fields */ }
Expand description
The resources that are bound to a descriptor set.
Implementations§
source§impl DescriptorSetResources
impl DescriptorSetResources
sourcepub fn new(layout: &DescriptorSetLayout, variable_descriptor_count: u32) -> Self
pub fn new(layout: &DescriptorSetLayout, variable_descriptor_count: u32) -> Self
Creates a new DescriptorSetResources
matching the provided descriptor set layout, and
all descriptors set to None
.
sourcepub fn binding(&self, binding: u32) -> Option<&DescriptorBindingResources>
pub fn binding(&self, binding: u32) -> Option<&DescriptorBindingResources>
Returns a reference to the bound resources for binding
. Returns None
if the binding
doesn’t exist.
Trait Implementations§
source§impl Clone for DescriptorSetResources
impl Clone for DescriptorSetResources
source§fn clone(&self) -> DescriptorSetResources
fn clone(&self) -> DescriptorSetResources
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for DescriptorSetResources
impl Send for DescriptorSetResources
impl Sync for DescriptorSetResources
impl Unpin for DescriptorSetResources
impl !UnwindSafe for DescriptorSetResources
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