Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 }
sk_sp< SkImage > image
Definition examples.cpp:29
#define TRACE_EVENT0(category_group, name)

◆ 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 }
uint8_t value

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