Skip to content

Commit

Permalink
perf(ios): mark metal layer for rendering only (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg authored Jul 22, 2024
1 parent f0c0deb commit ccbedd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/ios/src/RNFFilamentMetalView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ - (instancetype)init {
if (self = [super init]) {
CAMetalLayer* metalLayer = (CAMetalLayer*)self.layer;
metalLayer.pixelFormat = MTLPixelFormatBGRA8Unorm;
metalLayer.framebufferOnly = YES;
isMounted = false;
}
return self;
Expand Down

0 comments on commit ccbedd9

Please sign in to comment.