Enum vulkano::descriptor_set::layout::DescriptorDescTy [−][src]
pub enum DescriptorDescTy { Sampler, CombinedImageSampler(DescriptorImageDesc), Image(DescriptorImageDesc), TexelBuffer { storage: bool, format: Option<Format>, }, InputAttachment { multisampled: bool, array_layers: DescriptorImageDescArray, }, Buffer(DescriptorBufferDesc), }
Expand description
Describes the content and layout of each array element of a descriptor.
Variants
Tuple Fields of CombinedImageSampler
Tuple Fields of Image
Fields of TexelBuffer
storage: bool
If true
, this describes a storage texel buffer.
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.
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.
array_layers: DescriptorImageDescArray
Tuple Fields of Buffer
Implementations
Returns the type of descriptor.
pub fn ensure_superset_of(
&self,
other: &DescriptorDescTy
) -> Result<(), DescriptorDescSupersetError>
pub fn ensure_superset_of(
&self,
other: &DescriptorDescTy
) -> Result<(), DescriptorDescSupersetError>
Checks whether we are a superset of another descriptor type.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DescriptorDescTy
impl Send for DescriptorDescTy
impl Sync for DescriptorDescTy
impl Unpin for DescriptorDescTy
impl UnwindSafe for DescriptorDescTy
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.