[Public WebGL] gl.sizeInBytes
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the public_webgl