24 size_t size_in_bytes_ = 0;
25 VkBuffer vk_buffer_ = VK_NULL_HANDLE;
26 VmaAllocation allocation_ = VK_NULL_HANDLE;
28 void *mapped_memory_ =
nullptr;
38 VkBufferUsageFlags buffer_usage,
39 bool is_host_visible =
true);
66 return size_in_bytes_;
void update_immediately(const void *data) const
bool is_allocated() const
bool create(size_t size, GPUUsageType usage, VkBufferUsageFlags buffer_usage, bool is_host_visible=true)
void read(VKContext &context, void *data) const
VkBuffer vk_handle() const
void free_immediately(VKDevice &device)
void clear(VKContext &context, uint32_t clear_value)
void update_render_graph(VKContext &context, void *data) const
void * mapped_memory_get() const
int64_t size_in_bytes() const