#[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 more