[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] bufferData behavior for WebGL2 needs to actually be defined



Could you please file this at https://github.com/KhronosGroup/WebGL/issues ? Thanks.

-Ken


On Fri, Nov 11, 2016 at 11:25 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

WebGL2 adds a new overload of bufferData that looks like this:

  void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage,
                  GLuint srcOffset, optional GLuint length = 0);

but doesn't define the behavior anywhere.  The usual "just do what GL ES 3.0 does" thing doesn't work here, because GL ES 3.0 has a single glBufferData which as far as I can tell just takes a pointer to the data and how many bytes to grab.  That has no equivalent for the above overload....  In particular, something needs to define what "srcOffset" and "length" actually mean here.

Similar problem for bufferSubData, of course.

-Boris

P.S.  Please don't forget to define what "srcOffset" and "length" mean here when srcData is a DataView, not a typed array.

-----------------------------------------------------------
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:
unsubscribe public_webgl
-----------------------------------------------------------