Trait willow::AttrStruct[][src]

pub trait AttrStruct {
    fn fields_count() -> usize;
fn field_gl_name(i: usize) -> &'static str;
fn field_offset(i: usize) -> usize;
fn field_type(i: usize) -> u32;
fn field_num_comps(i: usize) -> usize;
fn field_normalized(i: usize) -> bool; }
Expand description

The trait implemented by attribute structs.

Methods in this struct describe the structure of the fields.

Required methods

The number of fields in the struct

The GLSL name of the attribute corresponding to field i

The offset of field i in the struct in bytes

The base type of field i in the struct with constants like WebGlRenderingContext::BYTE

The number of components for the type in field i

Whether the field i should be normalized

Implementors