#include <allocator_vk.h>
Public Member Functions | |
| ~AllocatorVK () override | |
| Bytes | DebugGetHeapUsage () const override |
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, bool threadsafe=false) |
| Creates a new texture. | |
| 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. | |
| std::shared_ptr< DeviceBuffer > | CreateBufferWithCopy (const uint8_t *buffer, size_t length) |
| std::shared_ptr< DeviceBuffer > | CreateBufferWithCopy (const fml::Mapping &mapping) |
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. | |
| 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 () | |
Definition at line 19 of file allocator_vk.h.
|
overridedefault |
|
overridevirtual |
Reimplemented from impeller::Allocator.
Definition at line 553 of file allocator_vk.cc.
References i.
|
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 180 of file allocator_vk.cc.
Referenced by impeller::testing::TEST(), and impeller::testing::TEST().
|
static |
Definition at line 206 of file allocator_vk.cc.
References format, and impeller::PixelFormatIsDepthStencil().
Referenced by impeller::testing::TEST().
|
friend |
Definition at line 43 of file allocator_vk.h.