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: u32num_coords: usizesrc_type: Typedst_type: Typenormalize: booloffset_in_vertex: usizeImplementations
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)