Function meshopt::encoding::encode_vertex_buffer[][src]

pub fn encode_vertex_buffer<T>(vertices: &[T]) -> Result<Vec<u8>>

Encodes vertex data into an array of bytes that is generally smaller and compresses better compared to original.

This function works for a single vertex stream; for multiple vertex streams, call encode_vertex_buffer for each stream.