From 3f00df9a392791d70409df5b217642a1990f52b6 Mon Sep 17 00:00:00 2001 From: "gman@chromium.org" Date: Tue, 19 Jun 2012 00:44:58 +0000 Subject: Add support for GL_CHROMIUM_consistent_uniform_locations BUG=132844 TEST=unit tests Review URL: https://chromiumcodereview.appspot.com/10568003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142879 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/khronos/GLES2/gl2ext.h | 20 ++++++++++++++++++++ third_party/khronos/README.chromium | 1 + 2 files changed, 21 insertions(+) (limited to 'third_party') diff --git a/third_party/khronos/GLES2/gl2ext.h b/third_party/khronos/GLES2/gl2ext.h index 3b162b8..b0a6d8f 100644 --- a/third_party/khronos/GLES2/gl2ext.h +++ b/third_party/khronos/GLES2/gl2ext.h @@ -2002,6 +2002,26 @@ typedef void (GL_APIENTRYP PFNGLCONSUMETEXTURECHROMIUM) (GLenum target, const G #endif #endif +/* GL_CHROMIUM_consistent_uniform_locations */ +#ifndef GL_CHROMIUM_consistent_uniform_locations +#define GL_CHROMIUM_consistent_uniform_locations 1 + +struct GLUniformDefinitionCHROMIUM { + GLenum type; + GLsizei size; + const GLchar* name; +}; + +#ifdef GL_GLEXT_PROTOTYPES +#define glGetUniformLocationsCHROMIUM GLES2_GET_FUN(GetUniformLocationsCHROMIUM) +#if !defined(GLES2_USE_CPP_BINDINGS) +GL_APICALL void GL_APIENTRY glGetUniformLocationsCHROMIUM (const GLUniformDefinitionCHROMIUM* uniforms, GLsizei count, GLsizei max_locations, GLint* locations); +#endif +#else +typedef void (GL_APIENTRYP PFNGLGETUNIFORMLOCATIONSCHROMIUM) (const GLUniformDefinitionCHROMIUM* uniforms, GLsizei count, GLsizei max_locations, GLint* locations); +#endif +#endif + #ifdef __cplusplus } #endif diff --git a/third_party/khronos/README.chromium b/third_party/khronos/README.chromium index 5a67f08..1910b57 100644 --- a/third_party/khronos/README.chromium +++ b/third_party/khronos/README.chromium @@ -22,5 +22,6 @@ GLES2/gl2ext.h - Added GL_EXT_framebuffer_multisample - Added GL_CHROMIUM_command_buffer_query - Added GL_CHROMIUM_copy_texture + - Added GL_CHROMIUM_consistent_uniform_locations EGL/eglplatform.h - Added EGLNative*Type for Mac. -- cgit v1.1