[][src]Function meshopt::ffi::meshopt_decodeVertexBuffer

pub unsafe extern "C" fn meshopt_decodeVertexBuffer(
    destination: *mut c_void,
    vertex_count: usize,
    vertex_size: usize,
    buffer: *const c_uchar,
    buffer_size: usize
) -> c_int

Vertex buffer decoder Decodes vertex data from an array of bytes generated by meshopt_encodeVertexBuffer Returns 0 if decoding was successful, and an error code otherwise The decoder is safe to use for untrusted input, but it may produce garbage data.

destination must contain enough space for the resulting vertex buffer (vertex_count * vertex_size bytes)