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

pub enum DescriptorDescTy {
    Sampler {
        immutable_samplers: Vec<Arc<Sampler>>,
    },
    CombinedImageSampler {
        image_desc: DescriptorDescImage,
        immutable_samplers: Vec<Arc<Sampler>>,
    },
    SampledImage {
        image_desc: DescriptorDescImage,
    },
    StorageImage {
        image_desc: DescriptorDescImage,
    },
    UniformTexelBuffer {
        format: Option<Format>,
    },
    StorageTexelBuffer {
        format: Option<Format>,
    },
    UniformBuffer,
    StorageBuffer,
    UniformBufferDynamic,
    StorageBufferDynamic,
    InputAttachment {
        multisampled: bool,
    },
}
Expand description

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

Variants

Sampler

Fields of Sampler

immutable_samplers: Vec<Arc<Sampler>>

Samplers that are included as a fixed part of the descriptor set layout. Once bound, they do not need to be provided when creating a descriptor set.

The list must be either empty, or contain exactly descriptor_count samplers.

CombinedImageSampler

Fields of CombinedImageSampler

image_desc: DescriptorDescImageimmutable_samplers: Vec<Arc<Sampler>>

Samplers that are included as a fixed part of the descriptor set layout. Once bound, they do not need to be provided when creating a descriptor set.

The list must be either empty, or contain exactly descriptor_count samplers.

SampledImage

Fields of SampledImage

image_desc: DescriptorDescImage
StorageImage

Fields of StorageImage

image_desc: DescriptorDescImage
UniformTexelBuffer

Fields of UniformTexelBuffer

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.

StorageTexelBuffer

Fields of StorageTexelBuffer

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.

UniformBuffer
StorageBuffer
UniformBufferDynamic
StorageBufferDynamic
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.

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.