Struct vulkano::memory::DeviceMemoryMapping [−][src]
pub struct DeviceMemoryMapping { /* fields omitted */ }
Expand description
Represents memory mapped in CPU accessible space.
Takes an additional reference on the underlying device memory and device.
Implementations
pub fn new(
device: Arc<Device>,
memory: Arc<DeviceMemory>,
offset: DeviceSize,
size: DeviceSize,
flags: u32
) -> Result<DeviceMemoryMapping, DeviceMemoryAllocError>
pub fn new(
device: Arc<Device>,
memory: Arc<DeviceMemory>,
offset: DeviceSize,
size: DeviceSize,
flags: u32
) -> Result<DeviceMemoryMapping, DeviceMemoryAllocError>
Creates a new DeviceMemoryMapping
object given the previously allocated device
and memory
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DeviceMemoryMapping
impl Unpin for DeviceMemoryMapping
impl UnwindSafe for DeviceMemoryMapping
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.