-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangle.visionos.patch
27 lines (27 loc) · 1.22 KB
/
angle.visionos.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/src/common/apple/apple_platform.h b/src/common/apple/apple_platform.h
index cee7b44d6..718c9b9f8 100644
--- a/src/common/apple/apple_platform.h
+++ b/src/common/apple/apple_platform.h
@@ -18,7 +18,8 @@
(ANGLE_PLATFORM_WATCHOS && !ANGLE_PLATFORM_IOS_FAMILY_SIMULATOR && \
__WATCH_OS_VERSION_MIN_REQUIRED >= 80000) || \
(TARGET_OS_TV && !ANGLE_PLATFORM_IOS_FAMILY_SIMULATOR && \
- __TV_OS_VERSION_MIN_REQUIRED >= 150000)) && \
+ __TV_OS_VERSION_MIN_REQUIRED >= 150000) || \
+ (TARGET_OS_VISION && !ANGLE_PLATFORM_IOS_FAMILY_SIMULATOR)) && \
(defined(__has_include) && __has_include(<Metal/MTLResource_Private.h>))
# define ANGLE_HAVE_MTLRESOURCE_SET_OWNERSHIP_IDENTITY 1
#else
diff --git a/src/common/platform.h b/src/common/platform.h
index 16eb8ddcd..610c9eeda 100644
--- a/src/common/platform.h
+++ b/src/common/platform.h
@@ -152,6 +152,8 @@
# error tvOS 17 SDK or newer is required.
# endif
# define ANGLE_PLATFORM_APPLETV 1
+# elif TARGET_OS_VISION
+# define ANGLE_PLATFORM_VISION 1
# endif
# endif
#endif