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
fn fields_count() -> usize
[src]
fn fields_count() -> usize
[src]The number of fields in the struct
fn field_gl_name(i: usize) -> &'static str
[src]
fn field_gl_name(i: usize) -> &'static str
[src]The GLSL name of the attribute corresponding to field i
fn field_offset(i: usize) -> usize
[src]
fn field_offset(i: usize) -> usize
[src]The offset of field i
in the struct in bytes
fn field_type(i: usize) -> u32
[src]
fn field_type(i: usize) -> u32
[src]The base type of field i
in the struct with constants like WebGlRenderingContext::BYTE
fn field_num_comps(i: usize) -> usize
[src]
fn field_num_comps(i: usize) -> usize
[src]The number of components for the type in field i
fn field_normalized(i: usize) -> bool
[src]
fn field_normalized(i: usize) -> bool
[src]Whether the field i
should be normalized