[][src]Enum spirq::ty::Type

pub enum Type {
    Scalar(ScalarType),
    Vector(VectorType),
    Matrix(MatrixType),
    Image(ImageType),
    SampledImage(ImageType),
    Sampler(),
    SubpassData(),
    Array(ArrayType),
    Struct(StructType),
}

Variants

Scalar(ScalarType)

A single value, which can be a signed or unsigned integer, a floating point number, or a boolean value.

Vector(VectorType)

A collection of scalars.

Matrix(MatrixType)

A collection of vectors.

Image(ImageType)

An unsampled image, with no sampler state combined. Such design is preferred in DirectX.

SampledImage(ImageType)

A sampled image externally combined with a sampler state. Such design is preferred in legacy OpenGL.

Sampler()

Separable sampler state.

SubpassData()

Pixel store from input attachments.

Array(ArrayType)

Repetition of a single type.

Struct(StructType)

Aggregation of types.

Methods

impl Type[src]

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

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

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

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

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

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

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

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

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

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

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

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

Trait Implementations

impl Clone for Type[src]

impl Debug for Type[src]

impl Hash for Type[src]

Auto Trait Implementations

impl RefUnwindSafe for Type

impl Send for Type

impl Sync for Type

impl Unpin for Type

impl UnwindSafe for Type

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.