#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) | |
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. More... | |
| 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 | |
Protected Member Functions inherited from impeller::Allocator | |
| 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 217 of file allocator_mtl.mm.
| void impeller::AllocatorMTL::DebugSetSupportsUMA | ( | bool | value | ) |
Definition at line 213 of file allocator_mtl.mm.
References value.
|
friend |
Definition at line 53 of file allocator_mtl.h.