class NaiveGpuAllocator
Defined at line 19 of file ../../src/ui/lib/escher/vk/naive_gpu_allocator.h
NaiveGpuAllocator uses a separate GpuMemSlab for each GpuMem that it
allocates. This ignores Vulkan best practices, and is a placeholder until a
more sophisticated allocator is written.
Public Methods
void NaiveGpuAllocator (const VulkanContext & context)
Defined at line 16 of file ../../src/ui/lib/escher/vk/naive_gpu_allocator.cc
void ~NaiveGpuAllocator ()
Defined at line 21 of file ../../src/ui/lib/escher/vk/naive_gpu_allocator.cc
GpuMemPtr AllocateMemory (vk::MemoryRequirements reqs, vk::MemoryPropertyFlags flags)
|GpuAllocator|
Defined at line 26 of file ../../src/ui/lib/escher/vk/naive_gpu_allocator.cc
size_t GetUnusedBytesAllocated ()
|GpuAllocator|
Defined at line 41 of file ../../src/ui/lib/escher/vk/naive_gpu_allocator.h
BufferPtr AllocateBuffer (ResourceManager * manager, vk::DeviceSize size, vk::BufferUsageFlags usage_flags, vk::MemoryPropertyFlags memory_property_flags, GpuMemPtr * out_ptr)
|GpuAllocator|
Defined at line 60 of file ../../src/ui/lib/escher/vk/naive_gpu_allocator.cc
ImagePtr AllocateImage (ResourceManager * manager, const escher::ImageInfo & info, GpuMemPtr * out_ptr)
|GpuAllocator|
Defined at line 88 of file ../../src/ui/lib/escher/vk/naive_gpu_allocator.cc
size_t GetTotalBytesAllocated ()
|GpuAllocator|
Defined at line 114 of file ../../src/ui/lib/escher/vk/naive_gpu_allocator.cc
Friends
class GpuMemSlab