| Flutter Impeller |

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

`#include <vma.h>`

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

## Detailed Description

Definition at line 78 of file vma.h.

## Member Function Documentation

## ◆ Free()

static void impeller::BufferVMATraits::Free | ( | const BufferVMA & | buffer | ) |
| inlinestatic

Definition at line 85 of file vma.h.

85 {
86 TRACE_EVENT0("impeller", "DestroyBuffer");
87 ::vmaDestroyBuffer(buffer.allocator, static_cast<VkBuffer>(buffer.buffer),
88 buffer.allocation);
89 }

References impeller::BufferVMA::allocation, impeller::BufferVMA::allocator, and impeller::BufferVMA::buffer.

## ◆ InvalidValue()

static BufferVMA impeller::BufferVMATraits::InvalidValue | ( |  | ) |
| inlinestatic

Definition at line 79 of file vma.h.

79 { return {}; }

## ◆ IsValid()

static bool impeller::BufferVMATraits::IsValid | ( | const BufferVMA & | value | ) |
| inlinestatic

Definition at line 81 of file vma.h.

81 {
82 return value.allocator != VmaAllocator{};
83 }
value
int32_t value
Definition: dl_golden_unittests.cc:459

References value.

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

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