| 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 | ) |
| inline static

Definition at line 25 of file vma.h.

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

## ◆ InvalidValue()

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

Definition at line 19 of file vma.h.

19 { return {}; }

Referenced by IsValid().

## ◆ IsValid()

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

Definition at line 21 of file vma.h.

21 {
22 return value != InvalidValue();
23 }
value
int32_t value
Definition: dl_golden_unittests.cc:444
impeller::AllocatorVMATraits::InvalidValue
static VmaAllocator InvalidValue()
Definition: vma.h:19

References InvalidValue(), and value.

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

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