Skip to main content

serialise

Function serialise 

Source
pub fn serialise(
    vertices: &[([f32; 3], [f32; 3], [f32; 3], [f32; 3], [f32; 2])],
    indices: &[u16],
) -> Vec<u8> 
Expand description

Serialise vertex and index slices into the packed binary payload format. Each vertex tuple is (pos, normal, tangent, color, uv).