[][src]Enum spirq::ty::DescriptorType

pub enum DescriptorType {
    PushConstant(Type),
    UniformBuffer(u32Type),
    StorageBuffer(u32Type),
    Image(u32Type),
    Sampler(u32),
    SampledImage(u32Type),
    InputAttachment(u32),
}

Structured representation of descriptor types.

Variants

PushConstant(Type)
UniformBuffer(u32Type)
StorageBuffer(u32Type)
Image(u32Type)
Sampler(u32)
SampledImage(u32Type)
InputAttachment(u32)

Methods

impl DescriptorType[src]

pub fn nbyte(&self) -> Option<usize>[src]

Get the size of buffer (in bytes) needed to contain all the data for this buffer object or push constant buffer.

pub fn nbind(&self) -> u32[src]

Number of bindings at the binding point. All descriptors can have multiple binding points.

pub fn resolve<S: AsRef<Sym>>(&self, sym: S) -> Option<MemberVariableResolution>[src]

Resolve a symbol WITHIN the descriptor type. The symbol should not be led by descriptor set numbers and binding point numbers.

Important traits for Walk<'a>
pub fn walk<'a>(&'a self) -> Walk<'a>[src]

pub fn is_push_const(&self) -> bool[src]

pub fn is_uniform_buf(&self) -> bool[src]

pub fn is_storage_buf(&self) -> bool[src]

pub fn is_img(&self) -> bool[src]

pub fn is_sampler(&self) -> bool[src]

pub fn is_sampled_img(&self) -> bool[src]

pub fn is_input_attm(&self) -> bool[src]

Trait Implementations

impl Clone for DescriptorType[src]

impl Debug for DescriptorType[src]

impl Hash for DescriptorType[src]

Auto Trait Implementations

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> 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.