Struct vulkano::descriptor::descriptor::DescriptorDesc
[−]
[src]
pub struct DescriptorDesc { pub binding: u32, pub ty: DescriptorDescTy, pub array_count: u32, pub stages: ShaderStages, pub readonly: bool, }
Describes a single descriptor.
Fields
binding: u32
Offset of the binding within the descriptor.
ty: DescriptorDescTy
Describes the content and layout of each array element of a descriptor.
array_count: u32
How many array elements this descriptor is made of.
stages: ShaderStages
Which shader stages are going to access this descriptor.
readonly: bool
True if the attachment is only ever read by the shader. False if it is also written.
Methods
impl DescriptorDesc
[src]
fn is_superset_of(&self, other: &DescriptorDesc) -> bool
Checks whether we are a superset of another descriptor.
This means that either the descriptor is the same, or it is the same but with a larger array elements count, or it is the same with more shader stages.
Trait Implementations
impl Debug for DescriptorDesc
[src]
impl Copy for DescriptorDesc
[src]
impl Clone for DescriptorDesc
[src]
fn clone(&self) -> DescriptorDesc
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more