bitflags::bitflags! {
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct MemoryPropertyFlags: u8 {
const DEVICE_LOCAL = 0x01;
const HOST_VISIBLE = 0x02;
const HOST_COHERENT = 0x04;
const HOST_CACHED = 0x08;
const LAZILY_ALLOCATED = 0x10;
const PROTECTED = 0x20;
}
}
#[derive(Clone, Copy, Debug)]
pub struct MemoryType {
pub heap: u32,
pub props: MemoryPropertyFlags,
}
#[derive(Clone, Copy, Debug)]
pub struct MemoryHeap {
pub size: u64,
}