Flutter Impeller
impeller::PoolVMATraits Struct Reference

#include <vma.h>

Static Public Member Functions

static PoolVMA InvalidValue ()
 
static bool IsValid (const PoolVMA &value)
 
static void Free (const PoolVMA &pool)
 

Detailed Description

Definition at line 49 of file vma.h.

Member Function Documentation

◆ Free()

static void impeller::PoolVMATraits::Free ( const PoolVMA pool)
inlinestatic

Definition at line 56 of file vma.h.

56  {
57  TRACE_EVENT0("impeller", "DestroyPool");
58  ::vmaDestroyPool(pool.allocator, pool.pool);
59  }

References impeller::PoolVMA::allocator, and impeller::PoolVMA::pool.

◆ InvalidValue()

static PoolVMA impeller::PoolVMATraits::InvalidValue ( )
inlinestatic

Definition at line 50 of file vma.h.

50 { return {}; }

◆ IsValid()

static bool impeller::PoolVMATraits::IsValid ( const PoolVMA value)
inlinestatic

Definition at line 52 of file vma.h.

52  {
53  return value.allocator != VmaAllocator{};
54  }

References impeller::PoolVMA::allocator.


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