Skip to content

Commit 8721561

Browse files
Fix missing CA::MetalLayer declaration in BabylonNative.h
Include QuartzCore/CAMetalLayer.h explicitly so that CA::MetalLayer is declared when BabylonNative.h is compiled. MTKView.h alone does not guarantee the CA namespace is available in all build contexts (e.g. the CI runner with Xcode 26). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0a4d9b6 commit 8721561

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/@babylonjs/react-native/shared/BabylonNative.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#if defined(__APPLE__)
66
#include <MetalKit/MTKView.h>
7+
#include <QuartzCore/CAMetalLayer.h>
78
#elif defined(ANDROID)
89
#include <android/native_window.h>
910
#elif WINAPI_FAMILY == WINAPI_FAMILY_APP

0 commit comments

Comments
 (0)