@@ -171,13 +171,43 @@ impl EGLNativeDisplay for Arc<WinitWindow> {
171171 egl_platform!( PLATFORM_WAYLAND_KHR , display, & [ "EGL_KHR_platform_wayland" ] ) ,
172172 // see: https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_platform_wayland.txt
173173 egl_platform!( PLATFORM_WAYLAND_EXT , display, & [ "EGL_EXT_platform_wayland" ] ) ,
174+ // see: https://raw.githubusercontent.com/google/angle/main/extensions/EGL_ANGLE_platform_angle.txt
175+ egl_platform!(
176+ PLATFORM_ANGLE_ANGLE ,
177+ display,
178+ & [
179+ "EGL_ANGLE_platform_angle" ,
180+ "EGL_ANGLE_platform_angle_vulkan" ,
181+ "EGL_EXT_platform_wayland" ,
182+ ] ,
183+ vec![
184+ ffi:: egl:: PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE ,
185+ ffi:: egl:: PLATFORM_WAYLAND_EXT as _,
186+ ffi:: egl:: PLATFORM_ANGLE_TYPE_ANGLE ,
187+ ffi:: egl:: PLATFORM_ANGLE_TYPE_VULKAN_ANGLE ,
188+ ffi:: egl:: NONE as ffi:: EGLint
189+ ]
190+ ) ,
174191 ]
175192 } else if let Some ( display) = self . xlib_display ( ) {
176193 vec ! [
177194 // see: https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_platform_x11.txt
178195 egl_platform!( PLATFORM_X11_KHR , display, & [ "EGL_KHR_platform_x11" ] ) ,
179196 // see: https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_platform_x11.txt
180197 egl_platform!( PLATFORM_X11_EXT , display, & [ "EGL_EXT_platform_x11" ] ) ,
198+ // see: https://raw.githubusercontent.com/google/angle/main/extensions/EGL_ANGLE_platform_angle.txt
199+ egl_platform!(
200+ PLATFORM_ANGLE_ANGLE ,
201+ display,
202+ & [ "EGL_ANGLE_platform_angle" , "EGL_ANGLE_platform_angle_vulkan" ] ,
203+ vec![
204+ ffi:: egl:: PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE ,
205+ ffi:: egl:: PLATFORM_X11_EXT as _,
206+ ffi:: egl:: PLATFORM_ANGLE_TYPE_ANGLE ,
207+ ffi:: egl:: PLATFORM_ANGLE_TYPE_VULKAN_ANGLE ,
208+ ffi:: egl:: NONE as ffi:: EGLint
209+ ]
210+ ) ,
181211 ]
182212 } else {
183213 unreachable ! ( "No backends for winit other then Wayland and X11 are supported" )
0 commit comments