Struct glin::attributes::MatFormat [−][src]
pub struct MatFormat { pub name: Cow<'static, str>, pub location: u32, pub cols: usize, pub rows: usize, pub offset_in_vertex: usize, }
Attribute format for matrices
Internally generates several Format depending on the number of cols and rows
Fields
name: Cow<'static, str>
location: u32
cols: usize
rows: usize
offset_in_vertex: usize
Implementations
impl MatFormat
[src]
impl MatFormat
[src]pub fn into_row_formats(self) -> Vec<Format>
[src]
pub fn source_from<B: DynVertexBufferBinding + Clone>(
&self,
buffer: &B
) -> Vec<(Format, B)>
[src]
&self,
buffer: &B
) -> Vec<(Format, B)>