Trait sierra::ShaderRepr
source · pub trait ShaderRepr<T = Std140> {
type Type: Pod;
type ArrayPadding: Padding;
const ALIGN_MASK: usize;
const ARRAY_PADDING: usize;
fn copy_to_repr(&self, repr: &mut Self::Type);
fn to_repr(&self) -> Self::Type { ... }
}
Expand description
Type that can be represented in shader.
Required Associated Types§
sourcetype ArrayPadding: Padding
type ArrayPadding: Padding
Padding required after field of Self::Type
for arrays.
Required Associated Constants§
const ALIGN_MASK: usize
const ARRAY_PADDING: usize
Required Methods§
sourcefn copy_to_repr(&self, repr: &mut Self::Type)
fn copy_to_repr(&self, repr: &mut Self::Type)
Copy data in this type into its representation.