[][src]Enum vulkano::descriptor::descriptor::DescriptorDescTy

pub enum DescriptorDescTy {
    Sampler,
    CombinedImageSampler(DescriptorImageDesc),
    Image(DescriptorImageDesc),
    TexelBuffer {
        storage: bool,
        format: Option<Format>,
    },
    InputAttachment {
        multisampled: bool,
        array_layers: DescriptorImageDescArray,
    },
    Buffer(DescriptorBufferDesc),
}

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

Variants

Sampler
CombinedImageSampler(DescriptorImageDesc)
Image(DescriptorImageDesc)
TexelBuffer

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.

InputAttachment

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
Buffer(DescriptorBufferDesc)

Implementations

impl DescriptorDescTy[src]

pub fn ty(&self) -> Option<DescriptorType>[src]

Returns the type of descriptor.

Returns None if there's not enough info to determine the type.

pub fn is_superset_of(
    &self,
    other: &DescriptorDescTy
) -> Result<(), DescriptorDescSupersetError>
[src]

Checks whether we are a superset of another descriptor type.

Trait Implementations

impl Clone for DescriptorDescTy[src]

impl Debug for DescriptorDescTy[src]

impl Eq for DescriptorDescTy[src]

impl PartialEq<DescriptorDescTy> for DescriptorDescTy[src]

impl StructuralEq for DescriptorDescTy[src]

impl StructuralPartialEq for DescriptorDescTy[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.