Enum vulkano::descriptor_set::layout::DescriptorType
source · [−]#[repr(i32)]
#[non_exhaustive]
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
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 more
sourceimpl Debug for DescriptorType
impl Debug for DescriptorType
sourceimpl From<DescriptorType> for DescriptorType
impl From<DescriptorType> for DescriptorType
sourcefn from(val: DescriptorType) -> Self
fn from(val: DescriptorType) -> Self
Performs the conversion.
sourceimpl Hash for DescriptorType
impl Hash for DescriptorType
sourceimpl PartialEq<DescriptorType> for DescriptorType
impl PartialEq<DescriptorType> for DescriptorType
impl Copy for DescriptorType
impl Eq for DescriptorType
impl StructuralEq for DescriptorType
impl StructuralPartialEq for DescriptorType
Auto Trait Implementations
impl RefUnwindSafe for DescriptorType
impl Send for DescriptorType
impl Sync for DescriptorType
impl Unpin for DescriptorType
impl UnwindSafe for DescriptorType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more