Enum gfx_hal::pso::Descriptor
source · 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, Range<Option<Offset>>),
UniformTexelBuffer(&'a B::BufferView),
StorageTexelBuffer(&'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, Range<Option<Offset>>)
UniformTexelBuffer(&'a B::BufferView)
StorageTexelBuffer(&'a B::BufferView)
Trait Implementations
sourceimpl<'a, B: Clone + Backend> Clone for Descriptor<'a, B>where
B::Sampler: Clone,
B::ImageView: Clone,
B::ImageView: Clone,
B::Sampler: Clone,
B::Buffer: Clone,
B::BufferView: Clone,
B::BufferView: Clone,
impl<'a, B: Clone + Backend> Clone for Descriptor<'a, B>where
B::Sampler: Clone,
B::ImageView: Clone,
B::ImageView: Clone,
B::Sampler: Clone,
B::Buffer: Clone,
B::BufferView: Clone,
B::BufferView: Clone,
sourcefn clone(&self) -> Descriptor<'a, B>
fn clone(&self) -> Descriptor<'a, B>
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<'a, B> RefUnwindSafe for Descriptor<'a, B>where
<B as Backend>::Buffer: RefUnwindSafe,
<B as Backend>::BufferView: RefUnwindSafe,
<B as Backend>::ImageView: RefUnwindSafe,
<B as Backend>::Sampler: 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>::Buffer: RefUnwindSafe,
<B as Backend>::BufferView: RefUnwindSafe,
<B as Backend>::ImageView: RefUnwindSafe,
<B as Backend>::Sampler: RefUnwindSafe,
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