Struct glin::attributes::Format [−][src]
pub struct Format { pub name: Cow<'static, str>, pub location: u32, pub num_coords: usize, pub src_type: Type, pub dst_type: Type, pub normalize: bool, pub offset_in_vertex: usize, }
Attribute format for most data types
Fields
name: Cow<'static, str>
location: u32
num_coords: usize
src_type: Type
dst_type: Type
normalize: bool
offset_in_vertex: usize
Implementations
impl Format
[src]
impl Format
[src]pub fn source_from<V: DynVertexBufferBinding + Clone>(
&self,
vertex_binding: &V
) -> (Format, V)
[src]
&self,
vertex_binding: &V
) -> (Format, V)