Struct glsl_layout::Element
source · Expand description
Aligning wrapper. Elements for array are aligned to 16 bytes (size of vec4) at least.
Tuple Fields§
§0: T
§1: T::Align
Trait Implementations§
source§impl<T: Ord + Uniform> Ord for Element<T>where
T::Align: Ord,
impl<T: Ord + Uniform> Ord for Element<T>where
T::Align: Ord,
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq + Uniform> PartialEq<Element<T>> for Element<T>where
T::Align: PartialEq,
impl<T: PartialEq + Uniform> PartialEq<Element<T>> for Element<T>where
T::Align: PartialEq,
source§impl<T: PartialOrd + Uniform> PartialOrd<Element<T>> for Element<T>where
T::Align: PartialOrd,
impl<T: PartialOrd + Uniform> PartialOrd<Element<T>> for Element<T>where
T::Align: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more