[Public WebGL] offset and stride requirements on vertexAttribPointer

Kenneth Russell [email protected]
Fri Mar 27 02:25:08 PDT 2015

This restriction simply formalizes text which is present in section
2.9 "Buffer Objects" of the OpenGL ES 2.0 specification:

"Clients must align data elements consistent with the requirements of
the client platform, with an additional base-level requirement that an
offset within a buffer to a datum comprising /N/ basic machine units
be a multiple of /N/."

WebGL defines all sorts of undefined behavior in the OpenGL ES spec. I
don't think it's necessary to provide rationale for each such


On Fri, Mar 27, 2015 at 1:18 AM, Florian Bösch <[email protected]> wrote:
> Ticket for it here: https://github.com/KhronosGroup/WebGL/issues/914
> On Thu, Mar 26, 2015 at 11:04 PM, Jeff Gilbert <[email protected]> wrote:
>> I don't know. It doesn't make sense to my why this would be helpful,
>> particularly with establishing interleaved attribs.
>> If we don't have a strong reason, this requirement should be removed.
>> If we do have a strong reason, we should state it in the spec.
>> On Thu, Mar 26, 2015 at 7:46 AM, Florian Bösch <[email protected]> wrote:
>>> I was wondering if there's a reason that WebGL imposes multiple of type
>>> size requirements on offset and stride arguments to vertexAttribPointer in
>>> respect to the passed type argument.
>>> The invalid operation error is not defined for that case for either ES 2,
>>> 3 or any version of desktop GL.

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