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

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

Definition at line 120 of file vma.h.

120 { return {}; }

## ◆ IsValid()

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

Definition at line 122 of file vma.h.

122 {
123 return value.allocator != VmaAllocator{};
124 }

References impeller::ImageVMA::allocator.

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

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