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

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

Structured representation of descriptor types.

Variants

UniformBuffer(u32Type)
StorageBuffer(u32Type)
Image(u32Type)
Sampler(u32)
SampledImage(u32Type)
InputAttachment(u32u32)

Implementations

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. If the multi-binding is dynamic, 0 will be returned.

For more information about dynamic multi-binding, please refer to Vulkan extension VK_EXT_descriptor_indexing, GLSL extension GL_EXT_nonuniform_qualifier and SPIR-V extension SPV_EXT_descriptor_indexing. Dynamic multi-binding is only supported in Vulkan 1.2.

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.

pub fn walk<'a>(&'a self) -> Walk<'a>

Notable traits for Walk<'a>

impl<'a> Iterator for Walk<'a> type Item = MemberVariableRouting<'a>;
[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 Eq for DescriptorType[src]

impl Hash for DescriptorType[src]

impl PartialEq<DescriptorType> for DescriptorType[src]

impl StructuralEq for DescriptorType[src]

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