pub fn decode_vertex_buffer<Vertex>(
destination: &mut [Vertex],
buffer: &[u8],
) -> Result<(), DecodeError>Expand description
Decodes vertex data from an array of bytes generated by encode_vertex_buffer.
Returns Ok if decoding was successful, and an error otherwise.
The decoder is safe to use for untrusted input, but it may produce garbage data.
ยงArguments
destination: must contain enough space for the resulting vertex buffer (vertex_count * vertex_size bytes)