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§

Type with matching layout.

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

Required Associated Constants§

Required Methods§

Copy data in this type into its representation.

Provided Methods§

Implementations on Foreign Types§

Implementors§