Enum vulkano::descriptor_set::layout::DescriptorType
source · [−]#[non_exhaustive]
#[repr(i32)]
pub enum DescriptorType {
Sampler,
CombinedImageSampler,
SampledImage,
StorageImage,
UniformTexelBuffer,
StorageTexelBuffer,
UniformBuffer,
StorageBuffer,
UniformBufferDynamic,
StorageBufferDynamic,
InputAttachment,
}
Expand description
Describes what kind of resource may later be bound to a descriptor.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Sampler
Describes how a SampledImage
descriptor should be read.
CombinedImageSampler
Combines SampledImage
and Sampler
in one descriptor.
SampledImage
Gives read-only access to an image via a sampler. The image must be combined with a sampler inside the shader.
StorageImage
Gives read and/or write access to individual pixels in an image. The image cannot be sampled, so you have exactly specify which pixel to read or write.
UniformTexelBuffer
Gives read-only access to the content of a buffer, interpreted as an array of texel data.
StorageTexelBuffer
Gives read and/or write access to the content of a buffer, interpreted as an array of texel data. Less restrictive but sometimes slower than a uniform texel buffer.
UniformBuffer
Gives read-only access to the content of a buffer, interpreted as a structure.
StorageBuffer
Gives read and/or write access to the content of a buffer, interpreted as a structure. Less restrictive but sometimes slower than a uniform buffer.
UniformBufferDynamic
As UniformBuffer
, but the offset within the buffer is specified at the time the descriptor
set is bound, rather than when the descriptor set is updated.
StorageBufferDynamic
As StorageBuffer
, but the offset within the buffer is specified at the time the descriptor
set is bound, rather than when the descriptor set is updated.
InputAttachment
Gives access to an image inside a fragment shader via a render pass. You can only access the pixel that is currently being processed by the fragment shader.
Trait Implementations
sourceimpl Clone for DescriptorType
impl Clone for DescriptorType
sourcefn clone(&self) -> DescriptorType
fn clone(&self) -> DescriptorType
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more