Struct vulkano::descriptor_set::DescriptorSetResources
source · pub struct DescriptorSetResources { /* private fields */ }
Expand description
The resources that are bound to a descriptor set.
Implementations
sourceimpl 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 update(&mut self, write: &WriteDescriptorSet)
pub fn update(&mut self, write: &WriteDescriptorSet)
Applies a descriptor write to the resources.
Panics
- Panics if the binding number of a write does not exist in the resources.
- See also
DescriptorBindingResources::update
.
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
sourceimpl Clone for DescriptorSetResources
impl Clone for DescriptorSetResources
sourcefn clone(&self) -> DescriptorSetResources
fn clone(&self) -> DescriptorSetResources
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more