pub unsafe fn create_system_allocator(
    instance: &Instance,
    device: Device,
    physical_device: PhysicalDevice
) -> MemoryAllocator
Expand description

Create an opinionated system allocator for GPU memoy.

Safety

Unsafe because:

  • The application must keep the device alive for as long as the allocator is alive.
  • The application must free any memory it allocates prior to dropping the memory allocator or device.