pub enum Descriptor<'a, B>where
B: Backend,{
Sampler(&'a <B as Backend>::Sampler),
Image(&'a <B as Backend>::ImageView, Layout),
CombinedImageSampler(&'a <B as Backend>::ImageView, Layout, &'a <B as Backend>::Sampler),
Buffer(&'a <B as Backend>::Buffer, Range<Option<u64>>),
UniformTexelBuffer(&'a <B as Backend>::BufferView),
StorageTexelBuffer(&'a <B as Backend>::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 as Backend>::Sampler)
Image(&'a <B as Backend>::ImageView, Layout)
CombinedImageSampler(&'a <B as Backend>::ImageView, Layout, &'a <B as Backend>::Sampler)
Buffer(&'a <B as Backend>::Buffer, Range<Option<u64>>)
UniformTexelBuffer(&'a <B as Backend>::BufferView)
StorageTexelBuffer(&'a <B as Backend>::BufferView)
Trait Implementations§
Source§impl<'a, B> Clone for Descriptor<'a, B>
impl<'a, B> Clone for Descriptor<'a, B>
Source§fn clone(&self) -> Descriptor<'a, B>
fn clone(&self) -> Descriptor<'a, B>
Returns a duplicate 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 moreSource§impl<'a, B> Debug for Descriptor<'a, B>
impl<'a, B> Debug for Descriptor<'a, B>
Auto 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