Struct vulkano::shader::DescriptorRequirements[][src]

pub struct DescriptorRequirements {
    pub descriptor_types: Vec<DescriptorType>,
    pub descriptor_count: u32,
    pub format: Option<Format>,
    pub image_view_type: Option<ImageViewType>,
    pub multisampled: bool,
    pub mutable: bool,
    pub stages: ShaderStages,
}
Expand description

The requirements imposed by a shader on a descriptor within a descriptor set layout, and on any resource that is bound to that descriptor.

Fields

descriptor_types: Vec<DescriptorType>

The descriptor types that are allowed.

descriptor_count: u32

The number of descriptors (array elements) that the shader requires. The descriptor set layout can declare more than this, but never less.

format: Option<Format>

The image format that is required for image views bound to this descriptor. If this is None, then any image format is allowed.

image_view_type: Option<ImageViewType>

The view type that is required for image views bound to this descriptor. This is None for non-image descriptors.

multisampled: bool

Whether image views bound to this descriptor must have multisampling enabled or disabled.

mutable: bool

Whether the shader requires mutable (exclusive) access to the resource bound to this descriptor.

stages: ShaderStages

The shader stages that the descriptor must be declared for.

Implementations

Produces the intersection of two descriptor requirements, so that the requirements of both are satisfied. An error is returned if the requirements conflict.

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

Returns the “default value” for a type. Read more

Performs the conversion.

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)

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.