pub(crate) unsafe extern "C" fn deallocate_rust_buffer(
    ptr: *mut std::ffi::c_void,
    size: u64,
    _user: *mut std::ffi::c_void,
) {
    let size = size as usize;
    drop(Vec::from_raw_parts(ptr, size, size));
}
/// A callback from Filament to de-allocate a buffer (after it has been copied to the GPU).
A callback from Filament to de-allocate a buffer (after it has been copied to the GPU).
A callback from Filament to de - allocate a buffer ( after it has been copied to the GPU ) .
pub(crate) unsafe extern "C" fn deallocate_rust_buffer(
    ptr: *mut std::ffi::c_void,
    size: u64,
    _user: *mut std::ffi::c_void,
) {
    let size = size as usize;
    drop(Vec::from_raw_parts(ptr, size, size));
}
pub ( crate ) unsafe extern " " fn deallocate_rust_buffer ( ptr : * mut std :: ffi :: c_void , size : u64 , _user : * mut std :: ffi :: c_void , ) { let size = size as usize ; drop ( Vec :: from_raw_parts ( ptr , size , size ) ) ; }
A callback from Filament to de-allocate a buffer (after it has been copied to the GPU).
A callback from Filament to de - allocate a buffer ( after it has been copied to the GPU ) .
ptr
*mut std::ffi::c_void
size
u64
_user
*mut std::ffi::c_void