 |
Flutter Impeller
|
|
Go to the documentation of this file.
7 #include "flutter/flutter_vma/flutter_vma.h"
8 #include "flutter/fml/trace_event.h"
9 #include "flutter/fml/unique_object.h"
20 static bool IsValid(
const VmaAllocator& value) {
24 static void Free(VmaAllocator allocator) {
25 TRACE_EVENT0(
"impeller",
"DestroyAllocator");
26 ::vmaDestroyAllocator(allocator);
45 return !(*
this == other);
57 TRACE_EVENT0(
"impeller",
"DestroyPool");
79 return !(*
this == other);
91 TRACE_EVENT0(
"impeller",
"DestroyBuffer");
92 ::vmaDestroyBuffer(buffer.
allocator,
static_cast<VkBuffer
>(buffer.
buffer),
114 return !(*
this == other);
122 return value.
allocator != VmaAllocator{};
126 TRACE_EVENT0(
"impeller",
"DestroyImage");
127 ::vmaDestroyImage(image.
allocator,
static_cast<VkImage
>(image.
image),
constexpr bool operator!=(const ImageVMA &other) const
static bool IsValid(const ImageVMA &value)
static void Free(const PoolVMA &pool)
static VmaAllocator InvalidValue()
fml::UniqueObject< PoolVMA, PoolVMATraits > UniquePoolVMA
constexpr bool operator==(const BufferVMA &other) const
static ImageVMA InvalidValue()
constexpr bool operator==(const PoolVMA &other) const
static BufferVMA InvalidValue()
static bool IsValid(const VmaAllocator &value)
constexpr bool operator!=(const PoolVMA &other) const
static void Free(const ImageVMA &image)
static PoolVMA InvalidValue()
constexpr bool operator!=(const BufferVMA &other) const
fml::UniqueObject< VmaAllocator, AllocatorVMATraits > UniqueAllocatorVMA
constexpr bool operator==(const ImageVMA &other) const
static void Free(VmaAllocator allocator)
static void Free(const BufferVMA &buffer)
fml::UniqueObject< BufferVMA, BufferVMATraits > UniqueBufferVMA
static bool IsValid(const BufferVMA &value)
static bool IsValid(const PoolVMA &value)
fml::UniqueObject< ImageVMA, ImageVMATraits > UniqueImageVMA