pub enum DescriptorBindingResources {
None(SmallVec<[Option<()>; 1]>),
Buffer(SmallVec<[Option<Arc<dyn BufferAccess>>; 1]>),
BufferView(SmallVec<[Option<Arc<dyn BufferViewAbstract>>; 1]>),
ImageView(SmallVec<[Option<Arc<dyn ImageViewAbstract>>; 1]>),
ImageViewSampler(SmallVec<[Option<(Arc<dyn ImageViewAbstract>, Arc<Sampler>)>; 1]>),
Sampler(SmallVec<[Option<Arc<Sampler>>; 1]>),
}
Expand description
The resources that are bound to a single descriptor set binding.
Variants
None(SmallVec<[Option<()>; 1]>)
Buffer(SmallVec<[Option<Arc<dyn BufferAccess>>; 1]>)
BufferView(SmallVec<[Option<Arc<dyn BufferViewAbstract>>; 1]>)
ImageView(SmallVec<[Option<Arc<dyn ImageViewAbstract>>; 1]>)
ImageViewSampler(SmallVec<[Option<(Arc<dyn ImageViewAbstract>, Arc<Sampler>)>; 1]>)
Sampler(SmallVec<[Option<Arc<Sampler>>; 1]>)
Implementations
sourceimpl DescriptorBindingResources
impl DescriptorBindingResources
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 resource types do not match.
- Panics if the write goes out of bounds.
Trait Implementations
sourceimpl Clone for DescriptorBindingResources
impl Clone for DescriptorBindingResources
sourcefn clone(&self) -> DescriptorBindingResources
fn clone(&self) -> DescriptorBindingResources
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 DescriptorBindingResources
impl Send for DescriptorBindingResources
impl Sync for DescriptorBindingResources
impl Unpin for DescriptorBindingResources
impl !UnwindSafe for DescriptorBindingResources
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