| 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 17 of file vma.h.

## Member Function Documentation

## ◆ Free()

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

Definition at line 24 of file vma.h.

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

## ◆ InvalidValue()

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

Definition at line 18 of file vma.h.

18 { return {}; }

Referenced by IsValid().

## ◆ IsValid()

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

Definition at line 20 of file vma.h.

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

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:18