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 the “default value” for a type. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DescriptorRequirements
impl Send for DescriptorRequirements
impl Sync for DescriptorRequirements
impl Unpin for DescriptorRequirements
impl UnwindSafe for DescriptorRequirements
Blanket Implementations
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.