| Flutter macOS Embedder |

Classes | Functions | Variables
FlutterDartProject.mm File Reference
`#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterDartProject.h"`
`#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterDartProject_Internal.h"`
`#include <vector>`
`#import <Metal/Metal.h>`
`#include "flutter/shell/platform/common/engine_switches.h"`

Go to the source code of this file.

## Functions
static BOOL | DoesHardwareSupportWideGamut ()

## Variables
static NSString *const | kICUBundlePath = @"@"icudtl.dat"
static NSString *const | kAppBundleIdentifier = @"@"io.flutter.flutter.app"
NSString * | _assetsPath
NSString * | _ICUDataPath

## Function Documentation

## ◆ DoesHardwareSupportWideGamut()

static BOOL DoesHardwareSupportWideGamut | ( |  | ) |
| static

Definition at line 16 of file FlutterDartProject.mm.

16 {
17 static BOOL result = NO;
18 static dispatch_once_t once_token = 0;
19 dispatch_once(&once_token, ^{
20 id<MTLDevice> device = MTLCreateSystemDefaultDevice();
21 // Wide gamut on macOS requires Apple3+ GPU family (Apple Silicon M1+).
22 // This uses 10-bit BGRA format (same as iOS) for consistency.
23 // Intel Macs (Mac1/Mac2 family) do not support wide gamut.
24 result = [device supportsFamily:MTLGPUFamilyApple3];
25 });
26 return result;
27 }

## Variable Documentation

## ◆ _assetsPath

NSString* _assetsPath

Initial value:
{
NSBundle* _dartBundle

Definition at line 41 of file FlutterDartProject.mm.

## ◆ _ICUDataPath

NSString* _ICUDataPath

Definition at line 42 of file FlutterDartProject.mm.

## ◆ kAppBundleIdentifier

NSString* const kAppBundleIdentifier = @"@"io.flutter.flutter.app"
| static

Definition at line 28 of file FlutterDartProject.mm.

## ◆ kICUBundlePath

NSString* const kICUBundlePath = @"@"icudtl.dat"
| static

Definition at line 14 of file FlutterDartProject.mm.