[Public WebGL] Oversight in bufferData and bufferSubData specification

Cedric Vivier [email protected]
Sat May 21 00:31:32 PDT 2011


On Sat, May 21, 2011 at 14:16, Kenneth Russell <[email protected]> wrote:
> From the standpoint of strongly typing the IDL, only the
> ArrayBufferView subclasses that can legally be used in the API should
> be accepted. If a future version of WebGL begins to accept
> double-precision floating-point values, then the IDL could either be
> changed to add overloads taking Float64Array, or could be changed back
> to what it is now, taking the superclass ArrayBufferView.
>

How about rather specifying that an INVALID_OPERATION is generated
when passing a Float64Array ?

We already do that kind of check with texImage2D if the
ArrayBufferView type does not correspond with the format.
This would keep the IDL lighter and allow extensions to use Float64
buffers with the same API instead of having to declare their own.

Regards,
-----------------------------------------------------------
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