pub enum Std140 {}
Expand description
Default layout for [Repr
].
Can be used for both uniforms storage buffers.
Trait Implementations§
source§impl<T, const N: usize> ShaderRepr<Std140> for [T; N]where
T: ShaderRepr<Std140>,
impl<T, const N: usize> ShaderRepr<Std140> for [T; N]where
T: ShaderRepr<Std140>,
const ALIGN_MASK: usize = _
const ARRAY_PADDING: usize = 0usize
§type Type = [Padded<<T as ShaderRepr<Std140>>::Type, <T as ShaderRepr<Std140>>::ArrayPadding>; N]
type Type = [Padded<<T as ShaderRepr<Std140>>::Type, <T as ShaderRepr<Std140>>::ArrayPadding>; N]
Type with matching layout.
§type ArrayPadding = [u8; 0]
type ArrayPadding = [u8; 0]
Padding required after field of
Self::Type
for arrays.source§fn copy_to_repr(&self, repr: &mut [Padded<T::Type, T::ArrayPadding>; N])
fn copy_to_repr(&self, repr: &mut [Padded<T::Type, T::ArrayPadding>; N])
Copy data in this type into its representation.
fn to_repr(&self) -> Self::Type
source§impl<T> ShaderRepr<Std140> for Twhere
T: ShaderNative,
impl<T> ShaderRepr<Std140> for Twhere
T: ShaderNative,
const ALIGN_MASK: usize = <T as ShaderNative>::ALIGN_MASK
const ARRAY_PADDING: usize = <T as ShaderNative>::ARRAY_PADDING_140
§type ArrayPadding = <T as ShaderNative>::ArrayPadding140
type ArrayPadding = <T as ShaderNative>::ArrayPadding140
Padding required after field of
Self::Type
for arrays.source§fn copy_to_repr(&self, repr: &mut T)
fn copy_to_repr(&self, repr: &mut T)
Copy data in this type into its representation.