| Flutter Impeller |

Static Public Member Functions | List of all members
impeller::AllocatorVMATraits Struct Reference

`#include <vma.h>`

## Static Public Member Functions
static VmaAllocator | InvalidValue ()
static bool | IsValid (const VmaAllocator &value)
static void | Free (VmaAllocator allocator)

## Detailed Description

Definition at line 18 of file vma.h.

## Member Function Documentation

## ◆ Free()

static void impeller::AllocatorVMATraits::Free | ( | VmaAllocator | allocator | ) |
| inlinestatic

Definition at line 25 of file vma.h.

25 {
26 TRACE_EVENT0("impeller", "DestroyAllocator");
27 ::vmaDestroyAllocator(allocator);
28 }

## ◆ InvalidValue()

static VmaAllocator impeller::AllocatorVMATraits::InvalidValue | ( |  | ) |
| inlinestatic

Definition at line 19 of file vma.h.

19 { return {}; }

Referenced by IsValid().

## ◆ IsValid()

static bool impeller::AllocatorVMATraits::IsValid | ( | const VmaAllocator & | value | ) |
| inlinestatic

Definition at line 21 of file vma.h.

21 {
22 return value != InvalidValue();
23 }

References InvalidValue().

The documentation for this struct was generated from the following file:

- impeller/renderer/backend/vulkan/vma.h

impeller::AllocatorVMATraits::InvalidValue
static VmaAllocator InvalidValue()
Definition: vma.h:19