Flutter Engine
 
Loading...
Searching...
No Matches
impeller::GLTextureTraits Struct Reference

#include <texture.h>

Static Public Member Functions

static GLTexture InvalidValue ()
 
static bool IsValid (const GLTexture &value)
 
static void Free (GLTexture image)
 

Detailed Description

Definition at line 20 of file texture.h.

Member Function Documentation

◆ Free()

static void impeller::GLTextureTraits::Free ( GLTexture  image)
inlinestatic

Definition at line 27 of file texture.h.

27 {
28 glDeleteTextures(1, &image.texture_name);
29 }
FlutterVulkanImage * image

References image.

◆ InvalidValue()

static GLTexture impeller::GLTextureTraits::InvalidValue ( )
inlinestatic

Definition at line 21 of file texture.h.

21{ return {0}; }

Referenced by IsValid().

◆ IsValid()

static bool impeller::GLTextureTraits::IsValid ( const GLTexture value)
inlinestatic

Definition at line 23 of file texture.h.

23 {
24 return value != InvalidValue();
25 }
int32_t value
static GLTexture InvalidValue()
Definition texture.h:21

References InvalidValue(), and value.


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