[−][src]Enum spirq::ty::Type
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.
Separable sampler state.
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]
ⓘImportant traits for Walk<'a>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,