Struct vulkano::memory::MemoryMapInfo
source · pub struct MemoryMapInfo {
pub offset: DeviceSize,
pub size: DeviceSize,
pub _ne: NonExhaustive,
}
Expand description
Parameters of a memory map operation.
Fields§
§offset: DeviceSize
The offset (in bytes) from the beginning of the DeviceMemory
, where the mapping starts.
Must be less than the allocation_size
of the device memory. If the the memory was not
allocated from [host-coherent] memory, then this must be a multiple of the
non_coherent_atom_size
device property.
The default value is 0
.
size: DeviceSize
The size (in bytes) of the mapping.
Must be less than or equal to the allocation_size
of the device memory minus offset
.
If the the memory was not allocated from [host-coherent] memory, then this must be a
multiple of the non_coherent_atom_size
device property, or be equal to the allocation
size minus offset
.
The default value is 0
, which must be overridden.
_ne: NonExhaustive
Trait Implementations§
source§impl Debug for MemoryMapInfo
impl Debug for MemoryMapInfo
Auto Trait Implementations§
impl RefUnwindSafe for MemoryMapInfo
impl Send for MemoryMapInfo
impl Sync for MemoryMapInfo
impl Unpin for MemoryMapInfo
impl UnwindSafe for MemoryMapInfo
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