-
Notifications
You must be signed in to change notification settings - Fork 1
/
angle_feature_util_metal_check.patch
37 lines (32 loc) · 1.32 KB
/
angle_feature_util_metal_check.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
28
29
30
31
32
33
34
35
36
37
diff --git a/src/feature_support_util/feature_support_util.h b/src/feature_support_util/feature_support_util.h
--- a/src/feature_support_util/feature_support_util.h (revision 5967afe706996483ab87725435479754ccd72271)
+++ b/src/feature_support_util/feature_support_util.h (date 1724157714847)
@@ -43,6 +43,8 @@
//
ANGLE_EXPORT bool ANGLEGetFeatureSupportUtilAPIVersion(unsigned int *versionToUse);
+ANGLE_EXPORT bool ANGLEIsMetalRendererAvailable();
+
// The Android EGL loader will call this function in order to parse a rules file
// and create a set of rules, for which a handle is returned.
//
diff --git a/src/feature_support_util/feature_support_util.cpp b/src/feature_support_util/feature_support_util.cpp
--- a/src/feature_support_util/feature_support_util.cpp (revision 5967afe706996483ab87725435479754ccd72271)
+++ b/src/feature_support_util/feature_support_util.cpp (date 1724156354632)
@@ -25,6 +25,10 @@
#include <vector>
#include "../gpu_info_util/SystemInfo.h"
+#ifdef __APPLE__
+#include "common/apple_platform_utils.h"
+#endif
+
namespace angle
{
@@ -757,6 +761,10 @@
using namespace angle;
+ANGLE_EXPORT bool ANGLEIsMetalRendererAvailable() {
+ return IsMetalRendererAvailable();
+}
+
// This function is part of the version-2 API:
ANGLE_EXPORT bool ANGLEGetFeatureSupportUtilAPIVersion(unsigned int *versionToUse)
{