Platform/GFX/WebGL2: Difference between revisions

Line 1: Line 1:
== WebGL 2 prototype ==
== WebGL 2 prototype ==
We call WebGL 2 prototype the implementation of an experimental WebGL implementation based on [http://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.2.pdf OpenGL ES 3.0]. This prototype have not been submitted to Khronos Group, but its purpose is to introduce the idea of an officially specified WebGL 2.0 API. Currently, using WebGL 2 Prototype is not secure and will be only available on Nightlies. The developer playing with our WebGL 2 prototype is using it at his owns risks of security and crashes (Gecko crashes, driver crashes and even OS crashes). Your are the only responsible for any lost works, caused damages. Mozilla Corporation and/or Mozilla Foundation can change, add, remove paragraphes of this wiki and the implementation's features at anytime.
The idea of "WebGL 2", that is, a variant of WebGL based on OpenGL ES 3.0, has been discussed for the past two years in the WebGL working group at Khronos. Interest in WebGL 2 has been on the rise recently in the WebGL working group, so we thought that it might be useful to start implementing a prototype of what WebGL 2 might look like. This is mostly just a naive WebGL-ification of the OpenGL ES 3.0 spec.


The user who doesn't browse with a nightly or didn't enable the WebGL 2 prototype usage before doesn't fear any crashes by running a WebGL 2 code. Javascript will just fail/generate warnings and errors. We recommend to users who want to run a WebGL 2 prototype with a configured nightly to save all their work before, and do not proceed to any kind of transactions (software/driver updates, git/hg/svn commit/push and so on ...). Just in case, be sure to understand and never forget that running a WebGL 2 prototype have to be considered as crashing your computer even it doesn't.
While this is being developed independently at Mozilla, the WebGL working group at Khronos is kept informed of these developments (link, link) and the plan is for this work to accelerate the WebGL 2 standardization process at Khronos. For example, as Mozilla uses almost unmodified WebIDL as its interface definition language, this work is at least producing some machine-validated WebIDL for the WebGL 2 standardization process.
 
This WebGL 2 prototype is just that --- a prototype. It's insecure, relatively untested, and its API can change at any time. To prevent the real world from starting to rely in its API, this WebGL 2 prototype is only available in Nightly and (soon) Aurora, and not on the Beta and Release channels. Moreover, even on Nightly and Aurora, it is only available if a hidden preference has been manually added in about:config.


== Playground ==
== Playground ==
Confirmed users
188

edits