#[repr(C)]
pub enum DescriptorType {
    Sampler,
    CombinedImageSampler,
    SampledImage,
    StorageImage,
    UniformTexelBuffer,
    StorageTexelBuffer,
    UniformBuffer,
    StorageBuffer,
    UniformBufferDynamic,
    StorageBufferDynamic,
    InputAttachment,
}
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

Controls filtering parameters for sampling from images.

CombinedImageSampler

SampledImage

Allows sampling (filtered loading) from associated image memory. Usually combined with a Sampler.

StorageImage

Allows atomic operations, (non-filtered) loads and stores on image memory.

UniformTexelBuffer

Read-only, formatted buffer.

StorageTexelBuffer

Read-Write, formatted buffer.

UniformBuffer

Read-only, structured buffer.

StorageBuffer

Read-Write, structured buffer.

UniformBufferDynamic

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

InputAttachment

Allows unfiltered loads of pixel local data in the fragment shader.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.