#include <allocator_mtl.h>
Public Member Functions | |
AllocatorMTL () | |
~AllocatorMTL () override | |
Bytes | DebugGetHeapUsage () const override |
void | DebugSetSupportsUMA (bool value) |
AllocatorMTL (id< MTLDevice > device, std::string label) | |
![]() | |
virtual | ~Allocator () |
bool | IsValid () const |
std::shared_ptr< DeviceBuffer > | CreateBuffer (const DeviceBufferDescriptor &desc) |
std::shared_ptr< Texture > | CreateTexture (const TextureDescriptor &desc) |
std::shared_ptr< DeviceBuffer > | CreateBufferWithCopy (const uint8_t *buffer, size_t length) |
std::shared_ptr< DeviceBuffer > | CreateBufferWithCopy (const fml::Mapping &mapping) |
Friends | |
class | ContextMTL |
Additional Inherited Members | |
![]() | |
Allocator () | |
Definition at line 37 of file allocator_mtl.h.
impeller::AllocatorMTL::AllocatorMTL | ( | ) |
|
overridedefault |
impeller::AllocatorMTL::AllocatorMTL | ( | id< MTLDevice > | device, |
std::string | label | ||
) |
Definition at line 60 of file allocator_mtl.mm.
References impeller::DeviceMaxTextureSizeSupported(), and impeller::DeviceSupportsDeviceTransientTargets().
|
overridevirtual |
Reimplemented from impeller::Allocator.
Definition at line 216 of file allocator_mtl.mm.
void impeller::AllocatorMTL::DebugSetSupportsUMA | ( | bool | value | ) |
Definition at line 212 of file allocator_mtl.mm.
References value.
|
friend |
Definition at line 53 of file allocator_mtl.h.