#![allow(dead_code)]
use crate::device::Device;

//#[derive(Debug)]
pub struct DeviceMemoryDesc {
    pub flags: vk_mem::AllocationCreateFlags,
    pub size: u64,
    pub align: u64,
    pub type_bits: u32,
    pub usage: vk_mem::MemoryUsage,
}

#[derive(Debug)]
pub struct DeviceMemory {
    device: Device,
    alloc: vk_mem::Allocation,
}

impl DeviceMemory {}

impl Drop for DeviceMemory {
    fn drop(&mut self) {
        unsafe {
            self.device.alloc().free_memory(&mut self.alloc);
        }
    }
}
