| Flutter Impeller |

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

`#include <vma.h>`

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

## Detailed Description

Definition at line 119 of file vma.h.

## Member Function Documentation

## ◆ Free()

static void impeller::ImageVMATraits::Free | ( | const ImageVMA & | image | ) |
| inlinestatic

Definition at line 126 of file vma.h.

126 {
127 TRACE_EVENT0("impeller", "DestroyImage");
128 ::vmaDestroyImage(image.allocator, static_cast<VkImage>(image.image),
129 image.allocation);
130 }

References impeller::ImageVMA::allocation, impeller::ImageVMA::allocator, and impeller::ImageVMA::image.

## ◆ InvalidValue()

static ImageVMA impeller::ImageVMATraits::InvalidValue | ( |  | ) |
| inlinestatic

Definition at line 120 of file vma.h.

120 { return {}; }

## ◆ IsValid()

static bool impeller::ImageVMATraits::IsValid | ( | const ImageVMA & | value | ) |
| inlinestatic

Definition at line 122 of file vma.h.

122 {
123 return value.allocator != VmaAllocator{};
124 }
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