Hey,
I'm trying to write some tests for the context creation attributes,
however I don't see a way to check behavior of these from Javascript.
Does anyone have an idea how to do this ? Or is it a kind of tests
that must be done (natively) for every implementation independently ?
Also while testing this part of the API, I realized currently
developers have no way to know or hint the context (pbuffer usually)
destination format, I think all implementations currently hardcode
888, but 888 is not supported on all ES devices, even if supported
performance can be bad compared to 565 rendering, is that a choice
that should be left to WebGL implementations without any control
possible from the developer (quality vs performance sensitive apps) ?
If we consider we should give developers choice about this I suggest
we add "red", "green", "blue" members to WebGLContextAttributes
object, defaulting each to 0 (let the implementation decide -
equivalent of EGL_DONTCARE, GLX_DONTCARE, ...), otherwise it is the
number of bits the context must meet or exceed (as per standard
EGL/GLX/... practice).
Anyways, I believe we'd better change type of "alpha", "depth" and
"stencil" to integers instead of booleans (once again ;) ), defaulting
to current default values of 8 and 16 respectively; this makes
possible to later accept higher values in WebGL for apps that requires
or prefers higher precision, without having to change the type of
these members in the IDL, breaking compatibility.
Regards,
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: