Struct asi_vulkan::memory::Memory
[−]
[src]
pub struct Memory<T> where
T: Clone, { pub data: T, pub memory: VkDeviceMemory, pub buffer: Buffer, // some fields omitted }
Fields
data: T
memory: VkDeviceMemory
buffer: Buffer
Methods
impl<T> Memory<T> where
T: Clone,
[src]
T: Clone,
fn new(
c: &Connection,
device: VkDevice,
gpu: VkPhysicalDevice,
data: T
) -> Memory<T>
[src]
c: &Connection,
device: VkDevice,
gpu: VkPhysicalDevice,
data: T
) -> Memory<T>
Allocate memory in a GPU buffer.
fn update(&self, c: &Connection)
[src]
Update the contents of the memory.
fn update_pitched()
[src]
Update the contents of image memory.
Trait Implementations
impl<T> Drop for Memory<T> where
T: Clone,
[src]
T: Clone,