Trait sierra::ShaderRepr [−][src]
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);
}
Expand description
Type that can be represented in shader.
Associated Types
type ArrayPadding: Padding
type ArrayPadding: Padding
Padding required after field of Self::Type
for arrays.
Associated Constants
const ALIGN_MASK: usize
const ARRAY_PADDING: usize
Required methods
fn 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.