Struct asi_vulkan::Buffer
[−]
[src]
pub struct Buffer(_);
A buffer in GPU memory.
Methods
impl Buffer
[src]
pub fn new<T: Clone>(
vulkan: &mut Vk,
data: &[T],
bbt: BufferBuilderType
) -> Buffer
[src]
vulkan: &mut Vk,
data: &[T],
bbt: BufferBuilderType
) -> Buffer
Create a new buffer on the GPU.
pub fn memory(&self) -> u64
[src]
pub fn buffer(&self) -> u64
[src]
pub fn update<T: Clone>(&self, data: &[T], vulkan: &mut Vk)
[src]
Update the contents of the memory.