1 | // |
2 | // Copyright (c) 2017 The ANGLE Project Authors. All rights reserved. |
3 | // Use of this source code is governed by a BSD-style license that can be |
4 | // found in the LICENSE file. |
5 | // |
6 | // eglext_angle.h: ANGLE modifications to the eglext.h header file. |
7 | // Currently we don't include this file directly, we patch eglext.h |
8 | // to include it implicitly so it is visible throughout our code. |
9 | |
10 | #ifndef INCLUDE_EGL_EGLEXT_ANGLE_ |
11 | #define INCLUDE_EGL_EGLEXT_ANGLE_ |
12 | |
13 | // clang-format off |
14 | |
15 | #ifndef EGL_ANGLE_robust_resource_initialization |
16 | #define EGL_ANGLE_robust_resource_initialization 1 |
17 | #define EGL_ROBUST_RESOURCE_INITIALIZATION_ANGLE 0x3453 |
18 | #endif /* EGL_ANGLE_robust_resource_initialization */ |
19 | |
20 | #ifndef EGL_ANGLE_keyed_mutex |
21 | #define EGL_ANGLE_keyed_mutex 1 |
22 | #define EGL_DXGI_KEYED_MUTEX_ANGLE 0x33A2 |
23 | #endif /* EGL_ANGLE_keyed_mutex */ |
24 | |
25 | #ifndef EGL_ANGLE_d3d_texture_client_buffer |
26 | #define EGL_ANGLE_d3d_texture_client_buffer 1 |
27 | #define EGL_D3D_TEXTURE_ANGLE 0x33A3 |
28 | #endif /* EGL_ANGLE_d3d_texture_client_buffer */ |
29 | |
30 | #ifndef EGL_ANGLE_software_display |
31 | #define EGL_ANGLE_software_display 1 |
32 | #define EGL_SOFTWARE_DISPLAY_ANGLE ((EGLNativeDisplayType)-1) |
33 | #endif /* EGL_ANGLE_software_display */ |
34 | |
35 | #ifndef EGL_ANGLE_direct3d_display |
36 | #define EGL_ANGLE_direct3d_display 1 |
37 | #define EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE ((EGLNativeDisplayType)-2) |
38 | #define EGL_D3D11_ONLY_DISPLAY_ANGLE ((EGLNativeDisplayType)-3) |
39 | #endif /* EGL_ANGLE_direct3d_display */ |
40 | |
41 | #ifndef EGL_ANGLE_direct_composition |
42 | #define EGL_ANGLE_direct_composition 1 |
43 | #define EGL_DIRECT_COMPOSITION_ANGLE 0x33A5 |
44 | #endif /* EGL_ANGLE_direct_composition */ |
45 | |
46 | #ifndef EGL_ANGLE_platform_angle |
47 | #define EGL_ANGLE_platform_angle 1 |
48 | #define EGL_PLATFORM_ANGLE_ANGLE 0x3202 |
49 | #define EGL_PLATFORM_ANGLE_TYPE_ANGLE 0x3203 |
50 | #define EGL_PLATFORM_ANGLE_MAX_VERSION_MAJOR_ANGLE 0x3204 |
51 | #define EGL_PLATFORM_ANGLE_MAX_VERSION_MINOR_ANGLE 0x3205 |
52 | #define EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE 0x3206 |
53 | #define EGL_PLATFORM_ANGLE_DEBUG_LAYERS_ENABLED_ANGLE 0x3451 |
54 | #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE 0x3209 |
55 | #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_HARDWARE_ANGLE 0x320A |
56 | #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_NULL_ANGLE 0x345E |
57 | #endif /* EGL_ANGLE_platform_angle */ |
58 | |
59 | #ifndef EGL_ANGLE_platform_angle_d3d |
60 | #define EGL_ANGLE_platform_angle_d3d 1 |
61 | #define EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE 0x3207 |
62 | #define EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE 0x3208 |
63 | #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_WARP_ANGLE 0x320B |
64 | #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_REFERENCE_ANGLE 0x320C |
65 | #define EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE 0x320F |
66 | #endif /* EGL_ANGLE_platform_angle_d3d */ |
67 | |
68 | #ifndef EGL_ANGLE_platform_angle_opengl |
69 | #define EGL_ANGLE_platform_angle_opengl 1 |
70 | #define EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE 0x320D |
71 | #define EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE 0x320E |
72 | #define EGL_PLATFORM_ANGLE_EGL_HANDLE_ANGLE 0x3480 |
73 | #endif /* EGL_ANGLE_platform_angle_opengl */ |
74 | |
75 | #ifndef EGL_ANGLE_platform_angle_null |
76 | #define EGL_ANGLE_platform_angle_null 1 |
77 | #define EGL_PLATFORM_ANGLE_TYPE_NULL_ANGLE 0x33AE |
78 | #endif /* EGL_ANGLE_platform_angle_null */ |
79 | |
80 | #ifndef EGL_ANGLE_platform_angle_vulkan |
81 | #define EGL_ANGLE_platform_angle_vulkan 1 |
82 | #define EGL_PLATFORM_ANGLE_TYPE_VULKAN_ANGLE 0x3450 |
83 | #endif /* EGL_ANGLE_platform_angle_vulkan */ |
84 | |
85 | #ifndef EGL_ANGLE_platform_angle_context_virtualization |
86 | #define EGL_ANGLE_platform_angle_context_virtualization 1 |
87 | #define EGL_PLATFORM_ANGLE_CONTEXT_VIRTUALIZATION_ANGLE 0x3481 |
88 | #endif /* EGL_ANGLE_platform_angle_context_virtualization */ |
89 | |
90 | #ifndef EGL_ANGLE_x11_visual |
91 | #define EGL_ANGLE_x11_visual |
92 | #define EGL_X11_VISUAL_ID_ANGLE 0x33A3 |
93 | #endif /* EGL_ANGLE_x11_visual */ |
94 | |
95 | #ifndef EGL_ANGLE_flexible_surface_compatibility |
96 | #define EGL_ANGLE_flexible_surface_compatibility 1 |
97 | #define EGL_FLEXIBLE_SURFACE_COMPATIBILITY_SUPPORTED_ANGLE 0x33A6 |
98 | #endif /* EGL_ANGLE_flexible_surface_compatibility */ |
99 | |
100 | #ifndef EGL_ANGLE_surface_orientation |
101 | #define EGL_ANGLE_surface_orientation |
102 | #define EGL_OPTIMAL_SURFACE_ORIENTATION_ANGLE 0x33A7 |
103 | #define EGL_SURFACE_ORIENTATION_ANGLE 0x33A8 |
104 | #define EGL_SURFACE_ORIENTATION_INVERT_X_ANGLE 0x0001 |
105 | #define EGL_SURFACE_ORIENTATION_INVERT_Y_ANGLE 0x0002 |
106 | #endif /* EGL_ANGLE_surface_orientation */ |
107 | |
108 | #ifndef EGL_ANGLE_experimental_present_path |
109 | #define EGL_ANGLE_experimental_present_path |
110 | #define EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE 0x33A4 |
111 | #define EGL_EXPERIMENTAL_PRESENT_PATH_FAST_ANGLE 0x33A9 |
112 | #define EGL_EXPERIMENTAL_PRESENT_PATH_COPY_ANGLE 0x33AA |
113 | #endif /* EGL_ANGLE_experimental_present_path */ |
114 | |
115 | #ifndef EGL_ANGLE_stream_producer_d3d_texture |
116 | #define EGL_ANGLE_stream_producer_d3d_texture |
117 | #define EGL_D3D_TEXTURE_SUBRESOURCE_ID_ANGLE 0x33AB |
118 | typedef EGLBoolean(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERD3DTEXTUREANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); |
119 | typedef EGLBoolean(EGLAPIENTRYP PFNEGLSTREAMPOSTD3DTEXTUREANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib *attrib_list); |
120 | #ifdef EGL_EGLEXT_PROTOTYPES |
121 | EGLAPI EGLBoolean EGLAPIENTRY eglCreateStreamProducerD3DTextureANGLE(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); |
122 | EGLAPI EGLBoolean EGLAPIENTRY eglStreamPostD3DTextureANGLE(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib *attrib_list); |
123 | #endif |
124 | #endif /* EGL_ANGLE_stream_producer_d3d_texture */ |
125 | |
126 | #ifndef EGL_ANGLE_create_context_webgl_compatibility |
127 | #define EGL_ANGLE_create_context_webgl_compatibility 1 |
128 | #define EGL_CONTEXT_WEBGL_COMPATIBILITY_ANGLE 0x33AC |
129 | #endif /* EGL_ANGLE_create_context_webgl_compatibility */ |
130 | |
131 | #ifndef EGL_ANGLE_display_texture_share_group |
132 | #define EGL_ANGLE_display_texture_share_group 1 |
133 | #define EGL_DISPLAY_TEXTURE_SHARE_GROUP_ANGLE 0x33AF |
134 | #endif /* EGL_ANGLE_display_texture_share_group */ |
135 | |
136 | #ifndef EGL_CHROMIUM_create_context_bind_generates_resource |
137 | #define EGL_CHROMIUM_create_context_bind_generates_resource 1 |
138 | #define EGL_CONTEXT_BIND_GENERATES_RESOURCE_CHROMIUM 0x33AD |
139 | #endif /* EGL_CHROMIUM_create_context_bind_generates_resource */ |
140 | |
141 | #ifndef EGL_ANGLE_create_context_client_arrays |
142 | #define EGL_ANGLE_create_context_client_arrays 1 |
143 | #define EGL_CONTEXT_CLIENT_ARRAYS_ENABLED_ANGLE 0x3452 |
144 | #endif /* EGL_ANGLE_create_context_client_arrays */ |
145 | |
146 | #ifndef EGL_ANGLE_device_creation |
147 | #define EGL_ANGLE_device_creation 1 |
148 | typedef EGLDeviceEXT(EGLAPIENTRYP PFNEGLCREATEDEVICEANGLEPROC) (EGLint device_type, void *native_device, const EGLAttrib *attrib_list); |
149 | typedef EGLBoolean(EGLAPIENTRYP PFNEGLRELEASEDEVICEANGLEPROC) (EGLDeviceEXT device); |
150 | #ifdef EGL_EGLEXT_PROTOTYPES |
151 | EGLAPI EGLDeviceEXT EGLAPIENTRY eglCreateDeviceANGLE(EGLint device_type, void *native_device, const EGLAttrib *attrib_list); |
152 | EGLAPI EGLBoolean EGLAPIENTRY eglReleaseDeviceANGLE(EGLDeviceEXT device); |
153 | #endif |
154 | #endif /* EGL_ANGLE_device_creation */ |
155 | |
156 | #ifndef EGL_ANGLE_program_cache_control |
157 | #define EGL_ANGLE_program_cache_control 1 |
158 | #define EGL_PROGRAM_CACHE_SIZE_ANGLE 0x3455 |
159 | #define EGL_PROGRAM_CACHE_KEY_LENGTH_ANGLE 0x3456 |
160 | #define EGL_PROGRAM_CACHE_RESIZE_ANGLE 0x3457 |
161 | #define EGL_PROGRAM_CACHE_TRIM_ANGLE 0x3458 |
162 | #define EGL_CONTEXT_PROGRAM_BINARY_CACHE_ENABLED_ANGLE 0x3459 |
163 | typedef EGLint (EGLAPIENTRYP PFNEGLPROGRAMCACHEGETATTRIBANGLEPROC) (EGLDisplay dpy, EGLenum attrib); |
164 | typedef void (EGLAPIENTRYP PFNEGLPROGRAMCACHEQUERYANGLEPROC) (EGLDisplay dpy, EGLint index, void *key, EGLint *keysize, void *binary, EGLint *binarysize); |
165 | typedef void (EGLAPIENTRYP PFNEGLPROGRAMCACHEPOPULATEANGLEPROC) (EGLDisplay dpy, const void *key, EGLint keysize, const void *binary, EGLint binarysize); |
166 | typedef EGLint (EGLAPIENTRYP PFNEGLPROGRAMCACHERESIZEANGLEPROC) (EGLDisplay dpy, EGLint limit, EGLenum mode); |
167 | #ifdef EGL_EGLEXT_PROTOTYPES |
168 | EGLAPI EGLint EGLAPIENTRY eglProgramCacheGetAttribANGLE(EGLDisplay dpy, EGLenum attrib); |
169 | EGLAPI void EGLAPIENTRY eglProgramCacheQueryANGLE(EGLDisplay dpy, EGLint index, void *key, EGLint *keysize, void *binary, EGLint *binarysize); |
170 | EGLAPI void EGLAPIENTRY eglProgramCachePopulateANGLE(EGLDisplay dpy, const void *key, EGLint keysize, const void *binary, EGLint binarysize); |
171 | EGLAPI EGLint EGLAPIENTRY eglProgramCacheResizeANGLE(EGLDisplay dpy, EGLint limit, EGLenum mode); |
172 | #endif |
173 | #endif /* EGL_ANGLE_program_cache_control */ |
174 | |
175 | #ifndef EGL_ANGLE_iosurface_client_buffer |
176 | #define EGL_ANGLE_iosurface_client_buffer 1 |
177 | #define EGL_IOSURFACE_ANGLE 0x3454 |
178 | #define EGL_IOSURFACE_PLANE_ANGLE 0x345A |
179 | #define EGL_TEXTURE_RECTANGLE_ANGLE 0x345B |
180 | #define EGL_TEXTURE_TYPE_ANGLE 0x345C |
181 | #define EGL_TEXTURE_INTERNAL_FORMAT_ANGLE 0x345D |
182 | #endif /* EGL_ANGLE_iosurface_client_buffer */ |
183 | |
184 | #ifndef EGL_ANGLE_create_context_extensions_enabled |
185 | #define EGL_ANGLE_create_context_extensions_enabled 1 |
186 | #define EGL_EXTENSIONS_ENABLED_ANGLE 0x345F |
187 | #endif /* EGL_ANGLE_create_context_extensions_enabled */ |
188 | |
189 | #ifndef EGL_CHROMIUM_get_sync_values |
190 | #define EGL_CHROMIUM_get_sync_values 1 |
191 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCVALUESCHROMIUMPROC) (EGLDisplay dpy, |
192 | EGLSurface surface, |
193 | EGLuint64KHR *ust, |
194 | EGLuint64KHR *msc, |
195 | EGLuint64KHR *sbc); |
196 | #ifdef EGL_EGLEXT_PROTOTYPES |
197 | EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncValuesCHROMIUM(EGLDisplay dpy, |
198 | EGLSurface surface, |
199 | EGLuint64KHR *ust, |
200 | EGLuint64KHR *msc, |
201 | EGLuint64KHR *sbc); |
202 | #endif |
203 | #endif /* EGL_CHROMIUM_get_sync_values */ |
204 | |
205 | #ifndef EGL_ANGLE_power_preference |
206 | #define EGL_ANGLE_power_preference 1 |
207 | #define EGL_POWER_PREFERENCE_ANGLE 0x3482 |
208 | #define EGL_LOW_POWER_ANGLE 0x0001 |
209 | #define EGL_HIGH_POWER_ANGLE 0x0002 |
210 | #endif /* EGL_ANGLE_power_preference */ |
211 | |
212 | // clang-format on |
213 | |
214 | #endif // INCLUDE_EGL_EGLEXT_ANGLE_ |
215 | |