#[repr(C)]pub enum DescriptorType {
Sampler = 0,
CombinedImageSampler = 1,
SampledImage = 2,
StorageImage = 3,
UniformTexelBuffer = 4,
StorageTexelBuffer = 5,
UniformBuffer = 6,
StorageBuffer = 7,
UniformBufferDynamic = 8,
StorageBufferDynamic = 9,
InputAttachment = 10,
}
Expand description
DOC TODO: Grasping and remembering the differences between these types is a tough task. We might be able to come up with better names? Or even use tuples to describe functionality instead of coming up with fancy names.
Variants§
Sampler = 0
Controls filtering parameters for sampling from images.
CombinedImageSampler = 1
SampledImage = 2
Allows sampling (filtered loading) from associated image memory.
Usually combined with a Sampler
.
StorageImage = 3
Allows atomic operations, (non-filtered) loads and stores on image memory.
UniformTexelBuffer = 4
Read-only, formatted buffer.
StorageTexelBuffer = 5
Read-Write, formatted buffer.
UniformBuffer = 6
Read-only, structured buffer.
StorageBuffer = 7
Read-Write, structured buffer.
UniformBufferDynamic = 8
A uniform buffer that can be bound with an offset into its memory with minimal performance impact, usually used to store pieces of “uniform” data that change per draw call rather than per render pass.
StorageBufferDynamic = 9
InputAttachment = 10
Allows unfiltered loads of pixel local data in the fragment shader.
Trait Implementations§
Source§impl Clone for DescriptorType
impl Clone for DescriptorType
Source§fn clone(&self) -> DescriptorType
fn clone(&self) -> DescriptorType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DescriptorType
impl Debug for DescriptorType
Source§impl Hash for DescriptorType
impl Hash for DescriptorType
Source§impl PartialEq for DescriptorType
impl PartialEq for DescriptorType
impl Copy for DescriptorType
impl Eq for DescriptorType
impl StructuralPartialEq for DescriptorType
Auto Trait Implementations§
impl Freeze for DescriptorType
impl RefUnwindSafe for DescriptorType
impl Send for DescriptorType
impl Sync for DescriptorType
impl Unpin for DescriptorType
impl UnwindSafe for DescriptorType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)