pub unsafe fn d_free(ptr: *mut c_void) -> Result<(), MemoryError>
The pointer ptr must be a valid, previously allocated device pointer. The caller must ensure that ptr is not used after this function is called.
ptr