diff options
author | Tomeu Vizoso <[email protected]> | 2012-07-16 20:45:17 +0200 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-08-01 10:44:44 -0700 |
commit | d5c918f6adb2f7f72a759607c8f76e7616656c13 (patch) | |
tree | 0035cc8fbd167793da54bf22df450eaa7c804265 /src/glsl/builtins/profiles | |
parent | 8c94f6bbd80908fd2cae8e27fe78c429e54a78b8 (diff) |
glsl: Add support for OES_standard_derivatives in GLSL ES.
Previously, we advertised the extension but the builtin functions
were enabled only for GLSL and not for ES.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=52003
Signed-off-by: Tomeu Vizoso <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/builtins/profiles')
-rw-r--r-- | src/glsl/builtins/profiles/OES_standard_derivatives.frag | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/glsl/builtins/profiles/OES_standard_derivatives.frag b/src/glsl/builtins/profiles/OES_standard_derivatives.frag new file mode 100644 index 00000000000..2c6ea07e961 --- /dev/null +++ b/src/glsl/builtins/profiles/OES_standard_derivatives.frag @@ -0,0 +1,20 @@ +#version 100 +#extension GL_OES_standard_derivatives : enable + +/* + * 8.8 - Fragment Processing Functions + */ +float dFdx(float p); +vec2 dFdx(vec2 p); +vec3 dFdx(vec3 p); +vec4 dFdx(vec4 p); + +float dFdy(float p); +vec2 dFdy(vec2 p); +vec3 dFdy(vec3 p); +vec4 dFdy(vec4 p); + +float fwidth(float p); +vec2 fwidth(vec2 p); +vec3 fwidth(vec3 p); +vec4 fwidth(vec4 p); |