diff options
author | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 00:09:36 +0000 |
---|---|---|
committer | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 00:09:36 +0000 |
commit | d6a53e4cba5710d51b1cab1f34d9f76a5fcf04c7 (patch) | |
tree | b11e1e89beb1d7a49df291e99b2a0f253d0a61bf /gpu/GLES2 | |
parent | 439d75cecba1d3947b405c07b41e3986091b688b (diff) | |
download | chromium_src-d6a53e4cba5710d51b1cab1f34d9f76a5fcf04c7.zip chromium_src-d6a53e4cba5710d51b1cab1f34d9f76a5fcf04c7.tar.gz chromium_src-d6a53e4cba5710d51b1cab1f34d9f76a5fcf04c7.tar.bz2 |
Implement 'ANGLE_translated_shader_source' extension in command-buffer.
This works with ANGLE r780.
So if it's on top of ANGLE, query the translated HLSL using ANGLE's GetTranslatedShaderSource extension; otherwise, return the cached translated shader source from ANGLE shader translator.
BUG=95531
TEST=unittest
Review URL: http://codereview.chromium.org/8120020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104036 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/GLES2')
-rw-r--r-- | gpu/GLES2/gl2ext.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gpu/GLES2/gl2ext.h b/gpu/GLES2/gl2ext.h index fe9d2f4..67bd0cc 100644 --- a/gpu/GLES2/gl2ext.h +++ b/gpu/GLES2/gl2ext.h @@ -1079,6 +1079,21 @@ typedef void (GL_APIENTRYP PFNGLENABLEFEATURECHROMIUM) (const GLchar *feature); #endif #endif +/* GL_ANGLE_translated_shader_source */ +#ifndef GL_ANGLE_translated_shader_source +#define GL_ANGLE_translated_shader_source 1 +#ifndef GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE +#define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x6900 +#endif +#ifdef GL_GLEXT_PROTOTYPES +#define glGetTranslatedShaderSourceANGLE GLES2_GET_FUN(GetTranslatedShaderSourceANGLE) +#if !defined(GLES2_USE_CPP_BINDINGS) +GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source); +#endif +#endif +typedef void (GL_APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source); +#endif + #ifdef __cplusplus } #endif |