[Public WebGL] gl.sizeInBytes

Patrick Baggett [email protected]
Sun Jan 10 12:30:45 PST 2010

In section 5.13.3, the first table defines the different types of
WebGL[Type]Arrays, and in that process, it defines the size, down to the
bit, of the elements inside each array. Since these types are already
completely specified, what is the purpose of WebGLContext::sizeInBytes()?

Or to put it another way, how would app handle sizeInBytes(FLOAT) == 8 if
5.13.3 defines WebGLFloatArray to be 32-bit floating point values? Wouldn't
it make more sense for WebGL[Type]Arrays to have elements of size
sizeInBytes([Type])? Or keep 5.13.3 and drop sizeInBytes() entirely?

Patrick Baggett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://khronos.org/pipermail/public_webgl_khronos.org/attachments/20100110/b791e8a6/attachment.html>

More information about the public_webgl mailing list