pub enum Std430 {}
Expand description
Can be used only for storage buffers.
Trait Implementations§
source§impl<T, const N: usize> ShaderRepr<Std430> for [T; N]where
T: ShaderRepr<Std430>,
impl<T, const N: usize> ShaderRepr<Std430> for [T; N]where
T: ShaderRepr<Std430>,
const ALIGN_MASK: usize = T::ALIGN_MASK
const ARRAY_PADDING: usize = 0usize
§type Type = [Padded<<T as ShaderRepr<Std430>>::Type, <T as ShaderRepr<Std430>>::ArrayPadding>; N]
type Type = [Padded<<T as ShaderRepr<Std430>>::Type, <T as ShaderRepr<Std430>>::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<Std430> for Twhere
T: ShaderNative,
impl<T> ShaderRepr<Std430> for Twhere
T: ShaderNative,
const ALIGN_MASK: usize = <T as ShaderNative>::ALIGN_MASK
const ARRAY_PADDING: usize = <T as ShaderNative>::ARRAY_PADDING_430
§type ArrayPadding = <T as ShaderNative>::ArrayPadding430
type ArrayPadding = <T as ShaderNative>::ArrayPadding430
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.