GenericStorageBuffer

Trait GenericStorageBuffer 

Source
pub trait GenericStorageBuffer: Debug {
    // Required methods
    fn get_vk_buffer(&self) -> VkBuffer;
    fn get_size(&self) -> VkDeviceSize;
    fn get_staging_buffer_address(&self) -> *mut c_void;
    fn flush(&self, cmdbuf: VkCommandBuffer) -> Result<(), VulkanError>;
}
Expand description

The trait for the StorageBuffer to be able to wrap into an object

Required Methods§

Source

fn get_vk_buffer(&self) -> VkBuffer

Get the VkBuffer

Source

fn get_size(&self) -> VkDeviceSize

Get the size of the buffer

Source

fn get_staging_buffer_address(&self) -> *mut c_void

Get the address of the staging buffer

Source

fn flush(&self, cmdbuf: VkCommandBuffer) -> Result<(), VulkanError>

Upload to GPU

Implementors§