Flutter Engine
The Flutter Engine
Public Attributes | List of all members
FlutterMetalTexture Struct Reference

#include <embedder.h>

Public Attributes

size_t struct_size
 The size of this struct. Must be sizeof(FlutterMetalTexture). More...
 
int64_t texture_id
 
FlutterMetalTextureHandle texture
 
void * user_data
 
VoidCallback destruction_callback
 

Detailed Description

Definition at line 649 of file embedder.h.

Member Data Documentation

◆ destruction_callback

VoidCallback FlutterMetalTexture::destruction_callback

The callback invoked by the engine when it no longer needs this backing store.

Definition at line 668 of file embedder.h.

◆ struct_size

size_t FlutterMetalTexture::struct_size

The size of this struct. Must be sizeof(FlutterMetalTexture).

Definition at line 651 of file embedder.h.

◆ texture

FlutterMetalTextureHandle FlutterMetalTexture::texture

Handle to the MTLTexture that is owned by the embedder. Engine will render the frame into this texture.

A NULL texture is considered invalid.

Definition at line 661 of file embedder.h.

◆ texture_id

int64_t FlutterMetalTexture::texture_id

Embedder provided unique identifier to the texture buffer. Given that the texture handle is passed to the engine to render to, the texture buffer is itself owned by the embedder. This texture_id is then also given to the embedder in the present callback.

Definition at line 656 of file embedder.h.

◆ user_data

void* FlutterMetalTexture::user_data

A baton that is not interpreted by the engine in any way. It will be given back to the embedder in the destruction callback below. Embedder resources may be associated with this baton.

Definition at line 665 of file embedder.h.


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