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§
Sourcefn get_vk_buffer(&self) -> VkBuffer
fn get_vk_buffer(&self) -> VkBuffer
Get the VkBuffer
Sourcefn get_size(&self) -> VkDeviceSize
fn get_size(&self) -> VkDeviceSize
Get the size of the buffer
Sourcefn get_staging_buffer_address(&self) -> *mut c_void
fn get_staging_buffer_address(&self) -> *mut c_void
Get the address of the staging buffer
Sourcefn flush(&self, cmdbuf: VkCommandBuffer) -> Result<(), VulkanError>
fn flush(&self, cmdbuf: VkCommandBuffer) -> Result<(), VulkanError>
Upload to GPU