Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getBufferSubData test #941

Merged
merged 2 commits into from Apr 16, 2015
Merged

Add getBufferSubData test #941

merged 2 commits into from Apr 16, 2015

Conversation

matthewn4444
Copy link

Tests the function getBufferSubData and its restrictions in WebGL 2.0

Tests the function getBufferSubData and its restrictions in WebGL 2.0

debug("");
debug("Test that getBufferSubData successfully works reading buffer data from gl.ARRAY_BUFFER");
var arrBuffer = new ArrayBuffer(vertices.length * 4);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be better written as new ArrayBuffer(floatArray.byteLength).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(because of the constant "4". Float32Array.BYTES_PER_ELEMENT would be better at least.)

@kenrussell
Copy link
Member

Thanks for this contribution. It looks good overall. Could you please add it to 00_test_list.txt as well as address the feedback above?

Please ask toji or zhenyao to do the final review and merge. Thanks.

@toji
Copy link
Member

toji commented Apr 16, 2015

Test looks good! Thanks!

toji added a commit that referenced this pull request Apr 16, 2015
@toji toji merged commit 66dc43d into KhronosGroup:master Apr 16, 2015
@matthewn4444 matthewn4444 deleted the getBufferSubData branch April 20, 2015 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants