Flutter Engine
The Flutter Engine
|
#include <allocator_vk.h>
Public Member Functions | |
~AllocatorVK () override | |
size_t | DebugGetHeapUsage () const |
Public Member Functions inherited from impeller::Allocator | |
virtual | ~Allocator () |
bool | IsValid () const |
std::shared_ptr< DeviceBuffer > | CreateBuffer (const DeviceBufferDescriptor &desc) |
std::shared_ptr< Texture > | CreateTexture (const TextureDescriptor &desc) |
virtual uint16_t | MinimumBytesPerRow (PixelFormat format) const |
Minimum value for row_bytes on a Texture. The row bytes parameter of that method must be aligned to this value. More... | |
std::shared_ptr< DeviceBuffer > | CreateBufferWithCopy (const uint8_t *buffer, size_t length) |
std::shared_ptr< DeviceBuffer > | CreateBufferWithCopy (const fml::Mapping &mapping) |
virtual ISize | GetMaxTextureSizeSupported () const =0 |
virtual void | DebugTraceMemoryStatistics () const |
Write debug memory usage information to the dart timeline in debug and profile modes. More... | |
Static Public Member Functions | |
static int32_t | FindMemoryTypeIndex (uint32_t memory_type_bits_requirement, vk::PhysicalDeviceMemoryProperties &memory_properties) |
Select a matching memory type for the given [memory_type_bits_requirement], or -1 if none is found. More... | |
static vk::ImageUsageFlags | ToVKImageUsageFlags (PixelFormat format, TextureUsageMask usage, StorageMode mode, bool supports_memoryless_textures) |
Friends | |
class | ContextVK |
Additional Inherited Members | |
Protected Member Functions inherited from impeller::Allocator | |
Allocator () | |
virtual std::shared_ptr< DeviceBuffer > | OnCreateBuffer (const DeviceBufferDescriptor &desc)=0 |
virtual std::shared_ptr< Texture > | OnCreateTexture (const TextureDescriptor &desc)=0 |
Definition at line 19 of file allocator_vk.h.
|
overridedefault |
size_t impeller::AllocatorVK::DebugGetHeapUsage | ( | ) | const |
Definition at line 512 of file allocator_vk.cc.
|
static |
Select a matching memory type for the given [memory_type_bits_requirement], or -1 if none is found.
This only returns memory types with deviceLocal allocations.
Definition at line 173 of file allocator_vk.cc.
|
static |
Definition at line 199 of file allocator_vk.cc.
|
friend |
Definition at line 43 of file allocator_vk.h.