Enum vulkano::descriptor_set::layout::DescriptorDescTy[][src]

pub enum DescriptorDescTy {
    Sampler,
    CombinedImageSampler(DescriptorImageDesc),
    Image(DescriptorImageDesc),
    TexelBuffer {
        storage: bool,
        format: Option<Format>,
    },
    InputAttachment {
        multisampled: bool,
        array_layers: DescriptorImageDescArray,
    },
    Buffer(DescriptorBufferDesc),
}
Expand description

Describes the content and layout of each array element of a descriptor.

Variants

Sampler
CombinedImageSampler

Tuple Fields of CombinedImageSampler

0: DescriptorImageDesc
Image

Tuple Fields of Image

0: DescriptorImageDesc
TexelBuffer

Fields of TexelBuffer

storage: bool

If true, this describes a storage texel buffer.

format: Option<Format>

The format of the content, or None if the format is unknown. Depending on the context, it may be invalid to have a None value here. If the format is Some, only buffer views that have this exact format can be attached to this descriptor.

InputAttachment

Fields of InputAttachment

multisampled: bool

If true, the input attachment is multisampled. Only multisampled images can be attached to this descriptor. If false, only single-sampled images can be attached.

array_layers: DescriptorImageDescArray
Buffer

Tuple Fields of Buffer

0: DescriptorBufferDesc

Implementations

Returns the type of descriptor.

Checks whether we are a superset of another descriptor type.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Builds a pointer to this type from a raw pointer.

Returns true if the size is suitable to store a type like this.

Returns the size of an individual element.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.