Struct vulkano::memory::DeviceMemoryMapping[][src]

pub struct DeviceMemoryMapping { /* fields omitted */ }

Represents memory mapped in CPU accessible space.

Takes an additional reference on the underlying device memory and device.

Implementations

impl DeviceMemoryMapping[src]

pub fn new(
    device: Arc<Device>,
    memory: Arc<DeviceMemory>,
    offset: u64,
    size: u64,
    flags: u32
) -> Result<DeviceMemoryMapping, DeviceMemoryAllocError>
[src]

Creates a new DeviceMemoryMapping object given the previously allocated device and memory.

pub unsafe fn as_ptr(&self) -> *mut u8[src]

Returns the raw pointer associated with the DeviceMemoryMapping.

Safety

The caller of this function must ensure that the use of the raw pointer does not outlive the associated DeviceMemoryMapping.

Trait Implementations

impl Drop for DeviceMemoryMapping[src]

impl Send for DeviceMemoryMapping[src]

impl Sync for DeviceMemoryMapping[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.