Flutter Engine
 
Loading...
Searching...
No Matches
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 113 of file vma.h.

Member Function Documentation

◆ Free()

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

Definition at line 120 of file vma.h.

120 {
121 TRACE_EVENT0("impeller", "DestroyImage");
122 ::vmaDestroyImage(image.allocator, static_cast<VkImage>(image.image),
123 image.allocation);
124 }
FlutterVulkanImage * image
FlutterVulkanImageHandle image
Definition embedder.h:931
#define TRACE_EVENT0(category_group, name)

References FlutterVulkanImage::image, image, and TRACE_EVENT0.

◆ InvalidValue()

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

Definition at line 114 of file vma.h.

114{ return {}; }

◆ IsValid()

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

Definition at line 116 of file vma.h.

116 {
117 return value.allocator != VmaAllocator{};
118 }
int32_t value

References value.


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