-Ken
What do you mean by "expose" and in whose jurisdiction is to do it?
Looks like it's enabled in Chromium already
and all the functions are being defined
>and if your application enables it,
Like this - in shader? Or do I have to do something special i my app?
#extension GL_OES_standard_derivatives : enable
Marcin
WebGL extensions are handled differently than OpenGL or OpenGL ES
extensions. First the extension needs to be specified in the WebGL
extension registry at
http://www.khronos.org/registry/webgl/doc/spec/extensions/ . (The
WebGL working group has already agreed upon several extensions to be
incorporated verbatim from OpenGL / OpenGL ES, and this is one of
them; if you check out the source code for the extension registry
you'll see the extension names that have already been decided to
incorporate.) Second, the WebGL implementation needs to support the
extension. Third, the developer needs to call e.g.
WebGLRenderingContext.getExtension("OES_standard_derivatives") and get
a non-null return value in order to use the extension.
> Looks like it's enabled in Chromium already
>
> http://www.google.com/codesearch/p?hl=en#OAMlx_jo-ck/src/third_party/angle/src/libGLESv2/Shader.cpp&q=angle%20OES_standard_derivatives&gs=cpp:::OES_standard_derivatives@chrome/trunk/src/third_party/angle/include/GLSLANG/ShaderLang.h%257Cdef&gsn=OES_standard_derivatives&d=4&l=49
>
> and all the functions are being defined
>
> http://www.google.com/codesearch/p?hl=en#yFOqulIej54/trunk/src/compiler/Initialize.cpp&q=dFdx%20package:http://angleproject%5C.googlecode%5C.com&sa=N&cd=1&ct=rc&l=393
It's a feature that can be enabled in ANGLE's shader validator. In
WebKit's WebGL implementation (for both Safari and Chromium), support
for this feature is disabled.
>>and if your application enables it,
>
> Like this - in shader? Or do I have to do something special i my app?
>
> #extension GL_OES_standard_derivatives : enable
See above. You would need to call
getExtension("OES_standard_derivatives") -- but WebKit's WebGL
implementation doesn't support this extension yet. Please feel free to
file a bug on bugs.webkit.org (email me the bug ID if or when you do).
This extension is already on our radar, but having user input
indicating that it is important would be helpful.
-Ken
> Marcin
>
Here is the bug report:
https://bugs.webkit.org/show_bug.cgi?id=51678
m.
--
Marcin Ignac
http://marcinignac.com