[][src]Struct lava::VkDeviceMemory

pub struct VkDeviceMemory { /* fields omitted */ }

Wrapper for VkDeviceMemory.

Methods

impl VkDeviceMemory[src]

pub fn vk_handle(&self) -> u64[src]

Returns the internal Vulkan handle for the object.

pub fn is_null(&self) -> bool[src]

Indicates if the Vulkan internal handle for this object is 0.

pub fn null() -> Self[src]

Creates an object with a null Vulkan internal handle.

Calling a method with a null handle will most likely result in a crash.

pub fn free(&self)[src]

Wrapper for vkFreeMemory.

pub fn map<'a>(
    &self,
    offset: usize,
    size: usize,
    flags: VkMemoryMapFlags
) -> LavaResult<&'a mut [u8]>
[src]

Wrapper for vkMapMemory.

pub fn unmap(&self)[src]

Wrapper for vkUnmapMemory.

pub fn get_commitment(&self) -> usize[src]

Trait Implementations

impl Copy for VkDeviceMemory[src]

impl PartialEq<VkDeviceMemory> for VkDeviceMemory[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Default for VkDeviceMemory[src]

impl Clone for VkDeviceMemory[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for VkDeviceMemory[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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