[][src]Struct wyzoid::low::vkmem::VkBuffer

pub struct VkBuffer<'a> {
    pub size: u64,
    pub offset: u64,
    pub buffer: Buffer,
    // some fields omitted
}

For the moment, I am going to assume that 1 MemAlloc = 1 Buffer. This should be changed to allow several buffer in one allocation which is more efficient.

Fields

size: u64offset: u64buffer: Buffer

Methods

impl<'a> VkBuffer<'a>[src]

pub fn new(vkstate: &'a VulkanState, size: u64) -> Self[src]

pub fn get_buffer_memory_requirements(&self) -> MemoryRequirements[src]

pub fn bind(&mut self, mem: DeviceMemory, offset: u64)[src]

pub fn buffer_info(&self)[src]

Trait Implementations

impl<'a> Drop for VkBuffer<'a>[src]

Auto Trait Implementations

impl<'a> Sync for VkBuffer<'a>

impl<'a> Unpin for VkBuffer<'a>

impl<'a> Send for VkBuffer<'a>

impl<'a> UnwindSafe for VkBuffer<'a>

impl<'a> RefUnwindSafe for VkBuffer<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,