Struct vulkano::memory::DeviceMemoryMapping [−][src]
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]
device: Arc<Device>,
memory: Arc<DeviceMemory>,
offset: u64,
size: u64,
flags: u32
) -> Result<DeviceMemoryMapping, DeviceMemoryAllocError>
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
impl RefUnwindSafe for DeviceMemoryMapping
impl Unpin for DeviceMemoryMapping
impl UnwindSafe for DeviceMemoryMapping
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn is_size_suitable(usize) -> bool
[src]
pub fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,