[Public WebGL] Is DEPTH_STENCIL support manditory?

Benoit Jacob [email protected]
Mon Apr 2 18:52:28 PDT 2012


DEPTH_STENCIL support is mandatory in a WebGL implementation.

Gecko currently only supports it when GL_DEPTH24_STENCIL8 is available, and illegitimately generates an error when using DEPTH_STENCIL when GL_DEPTH24_STENCIL8 is not available. The reason why I didn't care much about that is that GL_DEPTH24_STENCIL8 is very well supported, including on mobile devices, and is mandatory in OpenGL 3, so we can look forward to it becoming truly ubiquitous. It is also quite likely to never require any additional hardware, as in the worst case it can be emulated with a separate stencil and depth buffer, so this is at worst a driver issue.

I believe that WebKit does the extra work to emulate DEPTH_STENCIL with separate depth and stencil buffers. I would OK a patch doing that, but only if it doesn't add too much more complexity.

Benoit

----- Original Message -----
> 
> DEPTH_STENCIL is apparently not available on all hardware. In its
> absence, do we simply pass it through to the driver to return
> INVALID_ENUM?
> It would seem that emulating this functionality would be possible,
> but non-trivial.
> 
> -Jeff
> 
> -----------------------------------------------------------
> You are currently subscribed to [email protected]
> To unsubscribe, send an email to [email protected] with
> the following command in the body of your email:
> unsubscribe public_webgl
> -----------------------------------------------------------
> 
> 

-----------------------------------------------------------
You are currently subscribed to [email protected]
To unsubscribe, send an email to [email protected] with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------





More information about the public_webgl mailing list