Enum sierra::DescriptorType
source · pub enum DescriptorType {
Sampler,
CombinedImageSampler,
SampledImage,
UniformTexelBuffer,
StorageTexelBuffer,
StorageImage,
UniformBuffer,
StorageBuffer,
UniformBufferDynamic,
StorageBufferDynamic,
InputAttachment,
AccelerationStructure,
}
Expand description
Types of descriptors.
Variants§
Sampler
Sampler descriptor.
Contains [Sampler
] instances.
CombinedImageSampler
Combined image and sampler.
Contains both [ImageView
] and [Sampler
] instances.
SampledImage
Image that can be sampled.
Contains [ImageView
] instance.
UniformTexelBuffer
Formatted view to the buffer data.
StorageTexelBuffer
Formatted view to the buffer data.
Unlike [UniformTexelBuffer
] content of [StorageTexelBuffer
] can be overwritten by shader.
StorageImage
Image that can be used as storage.
Allows accessing individual pixels.
Unlike [SampledImage
] [StorageImage
] can be overwritten by shader.
UniformBuffer
Buffer with shader uniform data.
StorageBuffer
Buffer that can be used as storage.
Unlike [UniformBuffer
] content of [StorageBuffer
] can be overwritten by shader.
UniformBufferDynamic
Same as [UniformBuffer
] but allows specifying offset each time set is bound to encoder.
StorageBufferDynamic
Same as [StorageBuffer
] but allows specifying offset each time set is bound to encoder.
InputAttachment
Input attachment descriptor is an image with restricted access. Only fragment shader can read from input attachment. And only to the fragment’s location. Must correspond to input attachment configured in render-pass.
AccelerationStructure
Acceleration structure for ray-tracing shaders and ray queries.
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<DescriptorType> for DescriptorType
impl PartialEq<DescriptorType> for DescriptorType
source§fn eq(&self, other: &DescriptorType) -> bool
fn eq(&self, other: &DescriptorType) -> bool
self
and other
values to be equal, and is used
by ==
.