Trait draw2d::graphics::vulkan::buffer::Buffer[][src]

pub trait Buffer {
    unsafe fn raw(&self) -> Buffer;
unsafe fn allocation(&self) -> &Allocation;
fn size_in_bytes(&self) -> u64; }

Required methods

The raw vulkan handle for the buffer. Should not be copied because implementations are allowed to invalidate the raw buffer value.

Unsafe because it is the responsibility of the caller to ensure that the handle will live for the duration of it’s usage. (by checking the specific implementation)

The raw handle to the buffer’s underlying memory allocation.

The size of the underlying gpu memory in bytes.

Implementors