Struct vulkano::memory::MappedMemoryRange
source · pub struct MappedMemoryRange {
pub offset: DeviceSize,
pub size: DeviceSize,
pub _ne: NonExhaustive,
}
Expand description
Represents a range of host-mapped DeviceMemory
to be invalidated or flushed.
Must be contained within the currently mapped range of the device memory.
Fields§
§offset: DeviceSize
The offset (in bytes) from the beginning of the allocation, where the range starts.
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 range.
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
.
_ne: NonExhaustive
Trait Implementations§
source§impl Debug for MappedMemoryRange
impl Debug for MappedMemoryRange
Auto Trait Implementations§
impl RefUnwindSafe for MappedMemoryRange
impl Send for MappedMemoryRange
impl Sync for MappedMemoryRange
impl Unpin for MappedMemoryRange
impl UnwindSafe for MappedMemoryRange
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