class BufferFactory
Defined at line 18 of file ../../src/ui/lib/escher/vk/buffer_factory.h
BufferFactory allows clients to obtain new Buffers with the desired
properties. Subclasses are free to implement custom caching/recycling
behaviors. All buffers obtained from a BufferFactory must be released before
the BufferFactory is destroyed.
Public Methods
BufferPtr NewBuffer (vk::DeviceSize size, vk::BufferUsageFlags usage_flags, vk::MemoryPropertyFlags memory_property_flags, GpuMemPtr * out_ptr)
Creates a buffer, backed by a block of memory. If |out_ptr| is non-null,
the buffer will be bound to a dedicated piece of memory (i.e.,
VkMemoryDedicatedRequirements.requiresDedicatedAllocation
== true). That memory must be accessable through the GpuMem returned in
|out_ptr|.
void ~BufferFactory ()
Defined at line 20 of file ../../src/ui/lib/escher/vk/buffer_factory.h