Trait amethyst_renderer::Attribute[][src]

pub trait Attribute {
    type Repr: Pod + Send + Sync;

    const NAME: &'static str;
    const FORMAT: Format;
    const SIZE: u32;
}

Trait for vertex attributes to implement

Associated Types

Representation of the attribute usually it is [f32; N]

Associated Constants

Name of the attribute It is used to bind to the attributes in shaders

Format of the attribute defines arity and type

Size of the attribue

Implementors