[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] WebGL bufferSubData lacks "size" parameter
Why would we need to write
bufferSubData(target, offset, new TypeArray(originalTypedArray.buffer, offset * sizeofType, offset * sizeofType + size)
Instead of a more obvious
bufferSubData(target, offset, originalTypedArray, size)
I put the size as the last parameter to allow the previous variations work without change.
Forget for a moment speed and GC, this seems to be a lot more obvious.