#import <FlutterMetalLayer.h>
Instance Methods | |
(id< MTLDevice > preferredDevice) | - API_AVAILABLE |
(nullable id< CAMetalDrawable >) | - nextDrawable |
Class Methods | |
(BOOL) | + enabled |
Properties | |
id< MTLDevice > | device |
MTLPixelFormat | pixelFormat |
BOOL | framebufferOnly |
CGSize | drawableSize |
BOOL | presentsWithTransaction |
CGColorSpaceRef | colorspace |
Drop-in replacement (as far as Flutter is concerned) for CAMetalLayer that can present with transaction from a background thread.
Properties and method declarations must exactly match those in the CAMetalLayer interface declaration.
Definition at line 15 of file FlutterMetalLayer.h.
- (id<MTLDevice> preferredDevice) API_AVAILABLE | (macos(10.15)) | ||
(ios(13.0)) | |||
(tvos(13.0)) | |||
+ (BOOL) enabled |
Returns whether the Metal layer is enabled. This is controlled by FLTUseFlutterMetalLayer value in Info.plist.
Definition at line 439 of file FlutterMetalLayer.mm.
- (id< CAMetalDrawable >) nextDrawable |
Definition at line 385 of file FlutterMetalLayer.mm.
|
readwriteatomicassign |
Definition at line 25 of file FlutterMetalLayer.h.
|
readwriteatomicretain |
Definition at line 17 of file FlutterMetalLayer.h.
|
readwriteatomic |
Definition at line 23 of file FlutterMetalLayer.h.
|
readwriteatomic |
Definition at line 22 of file FlutterMetalLayer.h.
|
readwriteatomic |
Definition at line 21 of file FlutterMetalLayer.h.
|
readwriteatomic |
Definition at line 24 of file FlutterMetalLayer.h.