Skip to content

Commit

Permalink
Add support for Fuchsia platform. (#96)
Browse files Browse the repository at this point in the history
This patch only ensures that EGLNative{Display,Pixmap,Window}Type
are defined to adequately-sized generic types. There is no native
EGL support on Fuchsia, which only provides Vulkan APIs.

However, this definition opens the door to porting libraries like
ANGLE or SwiftShader to the platform. For example, see:

  https://swiftshader-review.googlesource.com/c/SwiftShader/+/38488
  • Loading branch information
digit-google authored and oddhack committed Jan 6, 2020
1 parent de3a5e8 commit 7e7b22f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/EGL/eglplatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ typedef void *EGLNativeDisplayType;
typedef khronos_uintptr_t EGLNativePixmapType;
typedef khronos_uintptr_t EGLNativeWindowType;

#elif defined(__Fuchsia__)

typedef void *EGLNativeDisplayType;
typedef khronos_uintptr_t EGLNativePixmapType;
typedef khronos_uintptr_t EGLNativeWindowType;

#else
#error "Platform not recognized"
#endif
Expand Down

0 comments on commit 7e7b22f

Please sign in to comment.