pub enum Descriptor<'a, B: Backend> {
Sampler(&'a B::Sampler),
Image(&'a B::ImageView, Layout),
CombinedImageSampler(&'a B::ImageView, Layout, &'a B::Sampler),
Buffer(&'a B::Buffer, SubRange),
TexelBuffer(&'a B::BufferView),
}
Expand description
A handle to a specific shader resource that can be bound for use in a DescriptorSet
.
Usually provided in a DescriptorSetWrite
Variants§
Sampler(&'a B::Sampler)
Image(&'a B::ImageView, Layout)
CombinedImageSampler(&'a B::ImageView, Layout, &'a B::Sampler)
Buffer(&'a B::Buffer, SubRange)
TexelBuffer(&'a B::BufferView)
Trait Implementations§
Source§impl<'a, B: Clone + Backend> Clone for Descriptor<'a, B>
impl<'a, B: Clone + Backend> Clone for Descriptor<'a, B>
Source§fn clone(&self) -> Descriptor<'a, B>
fn clone(&self) -> Descriptor<'a, B>
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<'a, B> Freeze for Descriptor<'a, B>
impl<'a, B> RefUnwindSafe for Descriptor<'a, B>where
<B as Backend>::Sampler: RefUnwindSafe,
<B as Backend>::ImageView: RefUnwindSafe,
<B as Backend>::Buffer: RefUnwindSafe,
<B as Backend>::BufferView: RefUnwindSafe,
impl<'a, B> Send for Descriptor<'a, B>
impl<'a, B> Sync for Descriptor<'a, B>
impl<'a, B> Unpin for Descriptor<'a, B>
impl<'a, B> UnwindSafe for Descriptor<'a, B>where
<B as Backend>::Sampler: RefUnwindSafe,
<B as Backend>::ImageView: RefUnwindSafe,
<B as Backend>::Buffer: RefUnwindSafe,
<B as Backend>::BufferView: RefUnwindSafe,
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