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<'a>(&mut self, write: &WriteDescriptorSet)
pub fn update<'a>(&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 more
Auto 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more