1edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef __eglext_h_ 2edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define __eglext_h_ 3edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 4edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifdef __cplusplus 5edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Projectextern "C" { 6edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 7edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 8edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project/* 912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian** Copyright (c) 2007-2013 The Khronos Group Inc. 10edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** 11edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** Permission is hereby granted, free of charge, to any person obtaining a 12edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** copy of this software and/or associated documentation files (the 13edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** "Materials"), to deal in the Materials without restriction, including 14edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** without limitation the rights to use, copy, modify, merge, publish, 15edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** distribute, sublicense, and/or sell copies of the Materials, and to 16edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** permit persons to whom the Materials are furnished to do so, subject to 17edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** the following conditions: 18edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** 19edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** The above copyright notice and this permission notice shall be included 20edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** in all copies or substantial portions of the Materials. 21edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** 22edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 23edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 24edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 25edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 26edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 27edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 28edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 29edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project*/ 30edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 31edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#include <EGL/eglplatform.h> 32edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 33edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project/*************************************************************/ 34edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 35edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project/* Header file version number */ 36edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project/* Current version at http://www.khronos.org/registry/egl/ */ 3712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian/* $Revision: 20690 $ on $Date: 2013-02-22 17:15:05 -0800 (Fri, 22 Feb 2013) $ */ 3812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_EGLEXT_VERSION 15 39edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 40edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef EGL_KHR_config_attribs 41edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_KHR_config_attribs 1 42edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_CONFORMANT_KHR 0x3042 /* EGLConfig attribute */ 43edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020 /* EGL_SURFACE_TYPE bitfield */ 44edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040 /* EGL_SURFACE_TYPE bitfield */ 45edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 46edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 47edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef EGL_KHR_lock_surface 48edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_KHR_lock_surface 1 49edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_READ_SURFACE_BIT_KHR 0x0001 /* EGL_LOCK_USAGE_HINT_KHR bitfield */ 50edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_WRITE_SURFACE_BIT_KHR 0x0002 /* EGL_LOCK_USAGE_HINT_KHR bitfield */ 51edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_LOCK_SURFACE_BIT_KHR 0x0080 /* EGL_SURFACE_TYPE bitfield */ 52edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100 /* EGL_SURFACE_TYPE bitfield */ 53edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_MATCH_FORMAT_KHR 0x3043 /* EGLConfig attribute */ 54edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0 /* EGL_MATCH_FORMAT_KHR value */ 55edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_FORMAT_RGB_565_KHR 0x30C1 /* EGL_MATCH_FORMAT_KHR value */ 56edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2 /* EGL_MATCH_FORMAT_KHR value */ 57edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_FORMAT_RGBA_8888_KHR 0x30C3 /* EGL_MATCH_FORMAT_KHR value */ 58edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 /* eglLockSurfaceKHR attribute */ 59edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_LOCK_USAGE_HINT_KHR 0x30C5 /* eglLockSurfaceKHR attribute */ 60edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_BITMAP_POINTER_KHR 0x30C6 /* eglQuerySurface attribute */ 61edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_BITMAP_PITCH_KHR 0x30C7 /* eglQuerySurface attribute */ 62edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_BITMAP_ORIGIN_KHR 0x30C8 /* eglQuerySurface attribute */ 63edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9 /* eglQuerySurface attribute */ 64edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA /* eglQuerySurface attribute */ 65edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB /* eglQuerySurface attribute */ 66edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC /* eglQuerySurface attribute */ 67edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD /* eglQuerySurface attribute */ 68edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_LOWER_LEFT_KHR 0x30CE /* EGL_BITMAP_ORIGIN_KHR value */ 69edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_UPPER_LEFT_KHR 0x30CF /* EGL_BITMAP_ORIGIN_KHR value */ 70edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifdef EGL_EGLEXT_PROTOTYPES 71edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source ProjectEGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list); 72edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source ProjectEGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay display, EGLSurface surface); 73edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif /* EGL_EGLEXT_PROTOTYPES */ 74edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Projecttypedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list); 75edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Projecttypedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface); 76edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 77edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 78edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef EGL_KHR_image 79edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_KHR_image 1 80edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_NATIVE_PIXMAP_KHR 0x30B0 /* eglCreateImageKHR target */ 81edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Projecttypedef void *EGLImageKHR; 82edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_NO_IMAGE_KHR ((EGLImageKHR)0) 83edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifdef EGL_EGLEXT_PROTOTYPES 84edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source ProjectEGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); 85edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source ProjectEGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image); 86edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif /* EGL_EGLEXT_PROTOTYPES */ 87edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Projecttypedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); 88edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Projecttypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image); 89edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 90edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 91edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef EGL_KHR_vg_parent_image 92edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_KHR_vg_parent_image 1 93edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_VG_PARENT_IMAGE_KHR 0x30BA /* eglCreateImageKHR target */ 94edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 95edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 96edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef EGL_KHR_gl_texture_2D_image 97edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_KHR_gl_texture_2D_image 1 98edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_TEXTURE_2D_KHR 0x30B1 /* eglCreateImageKHR target */ 99edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC /* eglCreateImageKHR attribute */ 100edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 101edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 102edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef EGL_KHR_gl_texture_cubemap_image 103edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_KHR_gl_texture_cubemap_image 1 104edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3 /* eglCreateImageKHR target */ 105edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4 /* eglCreateImageKHR target */ 106edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5 /* eglCreateImageKHR target */ 107edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6 /* eglCreateImageKHR target */ 108edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7 /* eglCreateImageKHR target */ 109edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8 /* eglCreateImageKHR target */ 110edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 111edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 112edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef EGL_KHR_gl_texture_3D_image 113edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_KHR_gl_texture_3D_image 1 114edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_TEXTURE_3D_KHR 0x30B2 /* eglCreateImageKHR target */ 115edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD /* eglCreateImageKHR attribute */ 116edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 117edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 118edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef EGL_KHR_gl_renderbuffer_image 119edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_KHR_gl_renderbuffer_image 1 120edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_GL_RENDERBUFFER_KHR 0x30B9 /* eglCreateImageKHR target */ 121edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 122edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 12312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#if KHRONOS_SUPPORT_INT64 /* EGLTimeKHR requires 64-bit uint support */ 124e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#ifndef EGL_KHR_reusable_sync 125e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_KHR_reusable_sync 1 126e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian 127e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef void* EGLSyncKHR; 128e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef khronos_utime_nanoseconds_t EGLTimeKHR; 129e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian 130e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_STATUS_KHR 0x30F1 131e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SIGNALED_KHR 0x30F2 132e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_UNSIGNALED_KHR 0x30F3 133e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_TIMEOUT_EXPIRED_KHR 0x30F5 134e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_CONDITION_SATISFIED_KHR 0x30F6 135e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_TYPE_KHR 0x30F7 136e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_REUSABLE_KHR 0x30FA 137e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001 /* eglClientWaitSyncKHR <flags> bitfield */ 138e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull 139e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_NO_SYNC_KHR ((EGLSyncKHR)0) 140e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 141e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias AgopianEGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); 142e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync); 143e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias AgopianEGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); 144e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); 145e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); 146e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 147e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); 148e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync); 149e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); 150e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); 151e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); 152e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#endif 15312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 154e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian 155edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef EGL_KHR_image_base 156edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_KHR_image_base 1 157edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project/* Most interfaces defined by EGL_KHR_image_pixmap above */ 158edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_IMAGE_PRESERVED_KHR 0x30D2 /* eglCreateImageKHR attribute */ 159edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 160edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 161edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifndef EGL_KHR_image_pixmap 162edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#define EGL_KHR_image_pixmap 1 163edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project/* Interfaces defined by EGL_KHR_image above */ 164edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 165edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 166e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#ifndef EGL_IMG_context_priority 167e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_IMG_context_priority 1 168e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100 169e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101 170e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102 171e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103 172e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#endif 173e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian 17412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_KHR_lock_surface2 17512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_KHR_lock_surface2 1 17612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110 17712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 17812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 179e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#ifndef EGL_NV_coverage_sample 180e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_NV_coverage_sample 1 18112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_COVERAGE_BUFFERS_NV 0x30E0 18212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_COVERAGE_SAMPLES_NV 0x30E1 183e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#endif 184e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian 185e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#ifndef EGL_NV_depth_nonlinear 186e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_NV_depth_nonlinear 1 18712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DEPTH_ENCODING_NV 0x30E2 188e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_DEPTH_ENCODING_NONE_NV 0 18912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3 190e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#endif 191e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian 19212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#if KHRONOS_SUPPORT_INT64 /* EGLTimeNV requires 64-bit uint support */ 193e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#ifndef EGL_NV_sync 194e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_NV_sync 1 195e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6 196e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_STATUS_NV 0x30E7 197e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SIGNALED_NV 0x30E8 198e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_UNSIGNALED_NV 0x30E9 199e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001 200e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull 201e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_ALREADY_SIGNALED_NV 0x30EA 202e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_TIMEOUT_EXPIRED_NV 0x30EB 203e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_CONDITION_SATISFIED_NV 0x30EC 204e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_TYPE_NV 0x30ED 205e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_CONDITION_NV 0x30EE 206e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_FENCE_NV 0x30EF 207e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_NO_SYNC_NV ((EGLSyncNV)0) 208e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef void* EGLSyncNV; 20912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef khronos_utime_nanoseconds_t EGLTimeNV; 210e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 21112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); 21212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync); 21312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync); 21412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); 21512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode); 21612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value); 217e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 218e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); 219e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync); 220e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync); 221e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); 222e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode); 223e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value); 224e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#endif 22512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 226e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian 22712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#if KHRONOS_SUPPORT_INT64 /* Dependent on EGL_KHR_reusable_sync which requires 64-bit uint support */ 228e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#ifndef EGL_KHR_fence_sync 229e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_KHR_fence_sync 1 230e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian/* Reuses most tokens and entry points from EGL_KHR_reusable_sync */ 231e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0 232e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_CONDITION_KHR 0x30F8 233e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#define EGL_SYNC_FENCE_KHR 0x30F9 234e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6Mathias Agopian#endif 23512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 236df3ca30bf663cb8eed88ee3f16fb5e9a65dc00fcMathias Agopian 23712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_HI_clientpixmap 23812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_HI_clientpixmap 1 23912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 24012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian/* Surface Attribute */ 24112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74 24212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian/* 24312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian * Structure representing a client pixmap 24412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian * (pixmap's data is in client-space memory). 24512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian */ 24612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopianstruct EGLClientPixmapHI 24712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian{ 24812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian void* pData; 24912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian EGLint iWidth; 25012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian EGLint iHeight; 25112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian EGLint iStride; 25212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian}; 25312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 25412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI(EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI* pixmap); 25512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 25612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI* pixmap); 25712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_HI_clientpixmap */ 25812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 25912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_HI_colorformats 26012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_HI_colorformats 1 26112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian/* Config Attribute */ 26212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_COLOR_FORMAT_HI 0x8F70 26312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian/* Color Formats */ 26412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_COLOR_RGB_HI 0x8F71 26512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_COLOR_RGBA_HI 0x8F72 26612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_COLOR_ARGB_HI 0x8F73 26712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_HI_colorformats */ 26812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 26912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_MESA_drm_image 27012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_MESA_drm_image 1 27112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0 /* CreateDRMImageMESA attribute */ 27212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DRM_BUFFER_USE_MESA 0x31D1 /* CreateDRMImageMESA attribute */ 27312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2 /* EGL_IMAGE_FORMAT_MESA attribute value */ 27412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DRM_BUFFER_MESA 0x31D3 /* eglCreateImageKHR target */ 27512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4 27612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001 /* EGL_DRM_BUFFER_USE_MESA bits */ 27712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002 /* EGL_DRM_BUFFER_USE_MESA bits */ 27812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 27912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list); 28012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); 28112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 28212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list); 28312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); 2848d2e83b9f44c7f2207a312fcfda8eb3a4c26745fMathias Agopian#endif 2858d2e83b9f44c7f2207a312fcfda8eb3a4c26745fMathias Agopian 28612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_NV_post_sub_buffer 28712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NV_post_sub_buffer 1 28812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE 28912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 29012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); 29112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 29212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); 293dc159f92fa54858302c2423b145e259991dc8cb5Jamie Gennis#endif 294dc159f92fa54858302c2423b145e259991dc8cb5Jamie Gennis 29512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_ANGLE_query_surface_pointer 29612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_ANGLE_query_surface_pointer 1 29712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 29812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean eglQuerySurfacePointerANGLE(EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); 29912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 30012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); 30109b11432b64d368dee7be69480ab54256058376aJamie Gennis#endif 30209b11432b64d368dee7be69480ab54256058376aJamie Gennis 30312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle 30412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1 30512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200 30612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 30712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 30812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_NV_coverage_sample_resolve 30912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NV_coverage_sample_resolve 1 31012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131 31112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132 31212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133 31312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 31412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 31512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#if KHRONOS_SUPPORT_INT64 /* EGLuint64NV requires 64-bit uint support */ 3161c3d72a2291827fb15e2ef311a571c860e0dba41Jonas Yang#ifndef EGL_NV_system_time 3171c3d72a2291827fb15e2ef311a571c860e0dba41Jonas Yang#define EGL_NV_system_time 1 31812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef khronos_utime_nanoseconds_t EGLuint64NV; 3191c3d72a2291827fb15e2ef311a571c860e0dba41Jonas Yang#ifdef EGL_EGLEXT_PROTOTYPES 3201c3d72a2291827fb15e2ef311a571c860e0dba41Jonas YangEGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV(void); 3211c3d72a2291827fb15e2ef311a571c860e0dba41Jonas YangEGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV(void); 32212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 32312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void); 32412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void); 32512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 32612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 32712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 32812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#if KHRONOS_SUPPORT_INT64 /* EGLuint64KHR requires 64-bit uint support */ 32912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_KHR_stream 33012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_KHR_stream 1 33112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef void* EGLStreamKHR; 33212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef khronos_uint64_t EGLuint64KHR; 33312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NO_STREAM_KHR ((EGLStreamKHR)0) 33412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210 33512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_PRODUCER_FRAME_KHR 0x3212 33612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONSUMER_FRAME_KHR 0x3213 33712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_STATE_KHR 0x3214 33812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_STATE_CREATED_KHR 0x3215 33912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_STATE_CONNECTING_KHR 0x3216 34012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_STATE_EMPTY_KHR 0x3217 34112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218 34212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219 34312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A 34412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_BAD_STREAM_KHR 0x321B 34512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_BAD_STATE_KHR 0x321C 34612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 34712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR(EGLDisplay dpy, const EGLint *attrib_list); 34812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR(EGLDisplay dpy, EGLStreamKHR stream); 34912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value); 35012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value); 35112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value); 35212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 35312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC)(EGLDisplay dpy, const EGLint *attrib_list); 35412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); 35512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value); 35612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value); 35712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value); 3581c3d72a2291827fb15e2ef311a571c860e0dba41Jonas Yang#endif 3591c3d72a2291827fb15e2ef311a571c860e0dba41Jonas Yang#endif 3601c3d72a2291827fb15e2ef311a571c860e0dba41Jonas Yang 36112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_KHR_stream /* Requires KHR_stream extension */ 36212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_KHR_stream_consumer_gltexture 36312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_KHR_stream_consumer_gltexture 1 36412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E 36512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 36612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR(EGLDisplay dpy, EGLStreamKHR stream); 36712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR(EGLDisplay dpy, EGLStreamKHR stream); 36812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR(EGLDisplay dpy, EGLStreamKHR stream); 36912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 37012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); 37112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); 37212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); 37312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 37412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 37512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 37612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_KHR_stream /* Requires KHR_stream extension */ 37712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_KHR_stream_producer_eglsurface 37812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_KHR_stream_producer_eglsurface 1 37912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_BIT_KHR 0x0800 38012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 38112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR(EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list); 38212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 38312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list); 38412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 38512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 38612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 38712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_KHR_stream /* Requires KHR_stream extension */ 38812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_KHR_stream_producer_aldatalocator 38912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_KHR_stream_producer_aldatalocator 1 39012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 39112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 39212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 39312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_KHR_stream /* Requires KHR_stream extension */ 39412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_KHR_stream_fifo 39512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_KHR_stream_fifo 1 39612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian/* reuse EGLTimeKHR */ 39712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC 39812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_TIME_NOW_KHR 0x31FD 39912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE 40012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF 40112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 40212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value); 40312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 40412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value); 40512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 40612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 40712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 40812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_EXT_create_context_robustness 40912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_EXT_create_context_robustness 1 41012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF 41112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138 41212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE 41312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF 41412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 41512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 41612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_ANGLE_d3d_share_handle_client_buffer 41712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_ANGLE_d3d_share_handle_client_buffer 1 41812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian/* reuse EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE */ 41912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 42012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 42112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_KHR_create_context 42212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_KHR_create_context 1 42312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_MAJOR_VERSION_KHR EGL_CONTEXT_CLIENT_VERSION 42412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB 42512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_FLAGS_KHR 0x30FC 42612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD 42712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD 42812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE 42912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF 43012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001 43112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002 43212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004 43312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001 43412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002 43512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_OPENGL_ES3_BIT_KHR 0x00000040 43612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 43712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 43812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_KHR_surfaceless_context 43912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_KHR_surfaceless_context 1 44012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian/* No tokens/entry points, just relaxes an error condition */ 44112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 44212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 44312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_KHR_stream /* Requires KHR_stream extension */ 44412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_KHR_stream_cross_process_fd 44512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_KHR_stream_cross_process_fd 1 44612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef int EGLNativeFileDescriptorKHR; 44712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NO_FILE_DESCRIPTOR_KHR ((EGLNativeFileDescriptorKHR)(-1)) 44812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 44912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR(EGLDisplay dpy, EGLStreamKHR stream); 45012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR(EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor); 45112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 45212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); 45312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC)(EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor); 45412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 45512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 45612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 45712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_EXT_multiview_window 45812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_EXT_multiview_window 1 45912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134 46012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 46112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 46212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_KHR_wait_sync 46312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_KHR_wait_sync 1 46412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 46512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); 46612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 46712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC)(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); 46812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 46912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 47012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_NV_post_convert_rounding 47112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NV_post_convert_rounding 1 47212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian/* No tokens or entry points, just relaxes behavior of SwapBuffers */ 47312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 47412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 47512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_NV_native_query 47612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NV_native_query 1 47712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifdef EGL_EGLEXT_PROTOTYPES 47812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV( EGLDisplay dpy, EGLNativeDisplayType* display_id); 47912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV( EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType* window); 48012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV( EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType* pixmap); 48112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 48212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC)(EGLDisplay dpy, EGLNativeDisplayType *display_id); 48312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC)(EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window); 48412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC)(EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap); 48512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 48612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 48712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_NV_3dvision_surface 48812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NV_3dvision_surface 1 48912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_AUTO_STEREO_NV 0x3136 49012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 49112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 49212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_ANDROID_framebuffer_target 49312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_ANDROID_framebuffer_target 1 49412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147 49512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 49612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 497dbe9245e2e362b12e184cd33b9a27b0901f81244Jamie Gennis#ifndef EGL_ANDROID_image_crop 498dbe9245e2e362b12e184cd33b9a27b0901f81244Jamie Gennis#define EGL_ANDROID_image_crop 1 499dbe9245e2e362b12e184cd33b9a27b0901f81244Jamie Gennis#define EGL_IMAGE_CROP_LEFT_ANDROID 0x3148 500dbe9245e2e362b12e184cd33b9a27b0901f81244Jamie Gennis#define EGL_IMAGE_CROP_TOP_ANDROID 0x3149 501dbe9245e2e362b12e184cd33b9a27b0901f81244Jamie Gennis#define EGL_IMAGE_CROP_RIGHT_ANDROID 0x314A 502dbe9245e2e362b12e184cd33b9a27b0901f81244Jamie Gennis#define EGL_IMAGE_CROP_BOTTOM_ANDROID 0x314B 503dbe9245e2e362b12e184cd33b9a27b0901f81244Jamie Gennis#endif 504dbe9245e2e362b12e184cd33b9a27b0901f81244Jamie Gennis 505766010858ea7696d64f1b559413670bdd8627595Jamie Gennis#ifndef EGL_ANDROID_blob_cache 506766010858ea7696d64f1b559413670bdd8627595Jamie Gennis#define EGL_ANDROID_blob_cache 1 507c42fcf05ce253d5342993b28c412be16e61efffbJamie Gennistypedef khronos_ssize_t EGLsizeiANDROID; 50812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize); 50912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize); 510766010858ea7696d64f1b559413670bdd8627595Jamie Gennis#ifdef EGL_EGLEXT_PROTOTYPES 511c42fcf05ce253d5342993b28c412be16e61efffbJamie GennisEGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID(EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get); 512766010858ea7696d64f1b559413670bdd8627595Jamie Gennis#endif /* EGL_EGLEXT_PROTOTYPES */ 51312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC)(EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get); 514766010858ea7696d64f1b559413670bdd8627595Jamie Gennis#endif 515766010858ea7696d64f1b559413670bdd8627595Jamie Gennis 51612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_ANDROID_image_native_buffer 51712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_ANDROID_image_native_buffer 1 51812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NATIVE_BUFFER_ANDROID 0x3140 519258385978c517a47626161b1e644c48bcee28de1Jesse Hall#endif 520258385978c517a47626161b1e644c48bcee28de1Jesse Hall 521331841b96b92646c93c87627c03f77b892f711cdJamie Gennis#ifndef EGL_ANDROID_native_fence_sync 522331841b96b92646c93c87627c03f77b892f711cdJamie Gennis#define EGL_ANDROID_native_fence_sync 1 52312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144 52412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145 52512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146 52612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_NO_NATIVE_FENCE_FD_ANDROID -1 527331841b96b92646c93c87627c03f77b892f711cdJamie Gennis#ifdef EGL_EGLEXT_PROTOTYPES 52812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias AgopianEGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID( EGLDisplay dpy, EGLSyncKHR); 52912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* EGL_EGLEXT_PROTOTYPES */ 53012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopiantypedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC)(EGLDisplay dpy, EGLSyncKHR); 531331841b96b92646c93c87627c03f77b892f711cdJamie Gennis#endif 53212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 53312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_ANDROID_recordable 53412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_ANDROID_recordable 1 53512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_RECORDABLE_ANDROID 0x3142 53612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 53712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 53812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_EXT_buffer_age 53912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_EXT_buffer_age 1 54012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_BUFFER_AGE_EXT 0x313D 54112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif 54212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian 54312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#ifndef EGL_EXT_image_dma_buf_import 54412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_EXT_image_dma_buf_import 1 54512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_LINUX_DMA_BUF_EXT 0x3270 54612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_LINUX_DRM_FOURCC_EXT 0x3271 54712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272 54812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273 54912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274 55012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275 55112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276 55212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277 55312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278 55412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279 55512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A 55612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B 55712af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_SAMPLE_RANGE_HINT_EXT 0x327C 55812af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D 55912af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E 56012af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_ITU_REC601_EXT 0x327F 56112af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_ITU_REC709_EXT 0x3280 56212af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_ITU_REC2020_EXT 0x3281 56312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_YUV_FULL_RANGE_EXT 0x3282 56412af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_YUV_NARROW_RANGE_EXT 0x3283 56512af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_YUV_CHROMA_SITING_0_EXT 0x3284 56612af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285 567331841b96b92646c93c87627c03f77b892f711cdJamie Gennis#endif 568331841b96b92646c93c87627c03f77b892f711cdJamie Gennis 5697284145d564fa8a422a8e564a38c730fb4a2962bAndy McFadden#ifndef EGL_ANDROID_presentation_time 5707284145d564fa8a422a8e564a38c730fb4a2962bAndy McFadden#define EGL_ANDROID_presentation_time 1 5717284145d564fa8a422a8e564a38c730fb4a2962bAndy McFaddentypedef khronos_stime_nanoseconds_t EGLnsecsANDROID; 5727284145d564fa8a422a8e564a38c730fb4a2962bAndy McFadden#ifdef EGL_EGLEXT_PROTOTYPES 5737284145d564fa8a422a8e564a38c730fb4a2962bAndy McFaddenEGLAPI EGLBoolean eglPresentationTimeANDROID(EGLDisplay dpy, EGLSurface sur, EGLnsecsANDROID time); 5747284145d564fa8a422a8e564a38c730fb4a2962bAndy McFadden#else 5757284145d564fa8a422a8e564a38c730fb4a2962bAndy McFaddentypedef EGLBoolean (EGLAPIENTRYP PFNEGLPRESENTATIONTIMEANDROID) (EGLDisplay dpy, EGLSurface sur, EGLnsecsANDROID time); 5767284145d564fa8a422a8e564a38c730fb4a2962bAndy McFadden#endif 5777284145d564fa8a422a8e564a38c730fb4a2962bAndy McFadden#endif 5787284145d564fa8a422a8e564a38c730fb4a2962bAndy McFadden 579edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#ifdef __cplusplus 580edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project} 581edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project#endif 582edbf3b6af777b721cd2a1ef461947e51e88241e1The Android Open Source Project 58312af3f6665f209cb7275f0c81fdc1cf4ccfb6208Mathias Agopian#endif /* __eglext_h_ */ 584