| Flutter Impeller |

Public Member Functions | Friends | List of all members
impeller::AllocatorMTL Class Referencefinal

`#include <allocator_mtl.h>`

Inheritance diagram for impeller::AllocatorMTL:

## Public Member Functions
| AllocatorMTL ()
| ~AllocatorMTL () 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)
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 ()

## Detailed Description

Definition at line 37 of file allocator_mtl.h.

## Constructor & Destructor Documentation

## ◆ AllocatorMTL()

impeller::AllocatorMTL::AllocatorMTL | ( |  | ) |

## ◆ ~AllocatorMTL()

impeller::AllocatorMTL::~AllocatorMTL | ( |  | ) |
| overridedefault

## Member Function Documentation

## ◆ DebugGetHeapUsage()

Bytes impeller::AllocatorMTL::DebugGetHeapUsage | ( |  | ) | const
| overridevirtual

Reimplemented from impeller::Allocator.

Definition at line 258 of file allocator_mtl.mm.

258 {
259 #ifdef IMPELLER_DEBUG
260 return debug_allocater_->GetAllocationSize();
261 #else
262 return {};
263 #endif // IMPELLER_DEBUG
264 }

## Friends And Related Function Documentation

## ◆ ContextMTL

friend class ContextMTL
| friend

Definition at line 48 of file allocator_mtl.h.

The documentation for this class was generated from the following files:

- impeller/renderer/backend/metal/allocator_mtl.h
- impeller/renderer/backend/metal/allocator_mtl.mm