#import <FlutterRenderer.h>
Instance Methods | |
(nullable instancetype) | - initWithFlutterEngine: |
(FlutterRendererConfig) | - createRendererConfig |
(BOOL) | - populateTextureWithIdentifier:metalTexture: |
Protected Attributes | |
__pad0__: FlutterTextureRegistrar <FlutterTextureRegistry | |
Properties | |
FlutterTextureRegistrarDelegate id< MTLDevice > | device |
id< MTLCommandQueue > | commandQueue |
Rendering backend agnostic FlutterRendererConfig provider to be used by the embedder API.
Definition at line 18 of file FlutterRenderer.h.
- (FlutterRendererConfig) createRendererConfig |
Creates a FlutterRendererConfig that renders using the appropriate backend.
Definition at line 62 of file FlutterRenderer.mm.
References OnAcquireExternalTexture(), OnGetNextDrawable(), and OnPresentDrawable().
- (instancetype) initWithFlutterEngine: | (nonnull FlutterEngine*) | flutterEngine |
Intializes the renderer with the given FlutterEngine.
Definition at line 41 of file FlutterRenderer.mm.
- (BOOL) populateTextureWithIdentifier: | (int64_t) | textureID | |
metalTexture: | (nonnull FlutterMetalExternalTexture *) | metalTexture | |
Populates the texture registry with the provided metalTexture.
|
protected |
Definition at line 19 of file FlutterRenderer.h.
|
readnonatomicassign |
Used to get the command buffers for the MTLDevice to render to.
Definition at line 29 of file FlutterRenderer.h.
|
readnonatomicassign |
Interface to the system GPU. Used to issue all the rendering commands.
Definition at line 24 of file FlutterRenderer.h.