Struct vulkano::descriptor::descriptor::DescriptorDesc [] [src]

pub struct DescriptorDesc {
    pub ty: DescriptorDescTy,
    pub array_count: u32,
    pub stages: ShaderStages,
    pub readonly: bool,
}

Contains the exact description of a single descriptor.

Note: You are free to fill a DescriptorDesc struct the way you want, but its validity will be checked when you create a pipeline layout, a descriptor set, or when you try to bind a descriptor set.

Fields

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

How many array elements this descriptor is made of. The value 0 is invalid and may trigger a panic depending on the situation.

Which shader stages are going to access this descriptor.

True if the attachment is only ever read by the shader. False if it is also written.

Methods

impl DescriptorDesc
[src]

Checks whether we are a superset of another descriptor.

Returns true if self is the same descriptor as other, or if self is the same as other but with a larger array elements count and/or more shader stages.

Builds a DescriptorDesc that is the union of self and other, if possible.

The returned value will be a superset of both self and other.

Returns the pipeline stages and access flags corresponding to the usage of this descriptor.

Panic

Panicks if the type if Sampler.

Trait Implementations

impl Debug for DescriptorDesc
[src]

Formats the value using the given formatter.

impl Clone for DescriptorDesc
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more