pub struct MemoryBlock {
pub id: usize,
pub memory: DeviceMemory,
pub size: u64,
pub memory_type_index: u32,
pub is_host_visible: bool,
pub allocation_type: AllocationType,
pub mapped_base: Option<*mut u8>,
pub is_coherent: bool,
pub free_chunks: Vec<(u64, u64)>,
}Fields§
§id: usize§memory: DeviceMemory§size: u64§memory_type_index: u32§is_host_visible: bool§allocation_type: AllocationType§mapped_base: Option<*mut u8>§is_coherent: bool§free_chunks: Vec<(u64, u64)>Implementations§
Trait Implementations§
impl Send for MemoryBlock
impl Sync for MemoryBlock
Auto Trait Implementations§
impl Freeze for MemoryBlock
impl RefUnwindSafe for MemoryBlock
impl Unpin for MemoryBlock
impl UnsafeUnpin for MemoryBlock
impl UnwindSafe for MemoryBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more