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 test of gl_VertexID and gl_InstanceID. #3484

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kdashg
Copy link
Contributor

@kdashg kdashg commented Aug 17, 2022

Includes details in new test about both state-of-specification, and known errata.

Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1779800

@kdashg
Copy link
Contributor Author

kdashg commented Sep 8, 2022

@kdashg kdashg force-pushed the no-attrib-array-instancing branch 2 times, most recently from d86d88d to 839b2d6 Compare September 12, 2022 23:28
Includes details in new test about both state-of-specification, and known errata.

Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1779800
@kdashg
Copy link
Contributor Author

kdashg commented Sep 12, 2022

@kenrussell You can see the line that we might need to uncomment for now, depending on the state of the ANGLE-on-Metal rollout:

//ERRATA.IGNORE_GL_INSTANCE_ID = true; // Chrome on ANGLE-on-Mac-GL needs this.

Safari seems to pass even with that errata commented out, as does patched Firefox.

Copy link
Member

@kenrussell kenrussell left a comment

Choose a reason for hiding this comment

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

This doesn't run in Chrome Canary or Firefox Nightly as is:

Uncaught (in promise) TypeError: Failed to execute 'getAttachedShaders' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLProgram'.
    at fn (builtin-vert-attribs.html:234:36)
    at builtin-vert-attribs.html:247:28

Could you please investigate and revise?


let fn = (vs) => {
//console.log({vs});
const prog = wtu.setupProgram(gl, [vs, FS]);
Copy link

Choose a reason for hiding this comment

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

Here, looks vs, fs should be ids of DOM elements, instead of source shaders, I think.

Copy link

Choose a reason for hiding this comment

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

Oh, sorry, how careless, missed other branches of if

*/

const wtu = WebGLTestUtils;
const gl = wtu.create3DContext('e_canvas');
Copy link

Choose a reason for hiding this comment

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

I think, we should create a webgl2 context here, maybe

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.

3 participants