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 with matching layout.

Padding required after field of Self::Type for arrays.

Associated Constants

Required methods

Copy data in this type into its representation.

Implementations on Foreign Types

Implementors