pub(crate) struct MemoryType {
pub(crate) memory_blocks: Vec<Option<MemoryBlock>>,
pub(crate) memory_properties: MemoryPropertyFlags,
pub(crate) memory_type_index: usize,
pub(crate) heap_index: usize,
pub(crate) mappable: bool,
pub(crate) active_general_blocks: usize,
pub(crate) buffer_device_address: bool,
}Fields§
§memory_blocks: Vec<Option<MemoryBlock>>§memory_properties: MemoryPropertyFlags§memory_type_index: usize§heap_index: usize§mappable: bool§active_general_blocks: usize§buffer_device_address: boolImplementations§
Source§impl MemoryType
impl MemoryType
fn allocate( &mut self, device: &Device, desc: &AllocationCreateDesc<'_>, granularity: u64, allocation_sizes: &AllocationSizes, ) -> Result<Allocation>
fn free(&mut self, allocation: Allocation, device: &Device) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryType
impl !UnwindSafe for MemoryType
impl Freeze for MemoryType
impl Send for MemoryType
impl Sync for MemoryType
impl Unpin for MemoryType
impl UnsafeUnpin for MemoryType
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