class NaiveBuffer

Defined at line 21 of file ../../src/ui/lib/escher/impl/naive_buffer.h

This particular class takes ownership of the contained vk::Buffer, and

destroys it using vk::Device::destroyBuffer when it goes out of scope. It

also automatically binds the buffer to the entirety of the submitted memory

object.

Public Methods

BufferPtr New (ResourceManager * manager, GpuMemPtr mem, vk::BufferUsageFlags usage_flags, std::optional<vk::DeviceSize> size)

This constructor could accept a user-defined |size_| property, or it

uses |mem->size()| as its |size_| property if |size| is nullopt.

Defined at line 42 of file ../../src/ui/lib/escher/impl/naive_buffer.cc

BufferPtr AdoptVkBuffer (ResourceManager * manager, GpuMemPtr mem, vk::DeviceSize vk_buffer_size, vk::Buffer vk_buffer)

This constructor adopts existing VkBuffer and uses |vk_buffer_size| as its

|size_| property, which can be different from the size of |mem|.

Defined at line 64 of file ../../src/ui/lib/escher/impl/naive_buffer.cc

void ~NaiveBuffer ()

Defined at line 88 of file ../../src/ui/lib/escher/impl/naive_buffer.cc