Struct vulkano::memory::MappedDeviceMemory
[−]
[src]
pub struct MappedDeviceMemory<D = Arc<Device>> where D: SafeDeref<Target=Device> { /* fields omitted */ }
Represents memory that has been allocated and mapped in CPU accessible space.
Methods
impl<D> MappedDeviceMemory<D> where D: SafeDeref<Target=Device>
[src]
fn memory(&self) -> &DeviceMemory<D>
Returns the underlying DeviceMemory
.
unsafe fn read_write<T: ?Sized>(&self, range: Range<usize>) -> CpuAccess<T, D> where T: Content + 'static
Gives access to the content of the memory.
Safety
- Type safety is not checked. You must ensure that
T
corresponds to the content of the buffer. - Accesses are not synchronized. Synchronization must be handled outside of
the
MappedDeviceMemory
.