-
Notifications
You must be signed in to change notification settings - Fork 671
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
base: main
Are you sure you want to change the base?
Conversation
d86d88d
to
839b2d6
Compare
Includes details in new test about both state-of-specification, and known errata. Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1779800
839b2d6
to
e6aac59
Compare
@kenrussell You can see the line that we might need to uncomment for now, depending on the state of the ANGLE-on-Metal rollout:
Safari seems to pass even with that errata commented out, as does patched Firefox. |
There was a problem hiding this 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]); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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
Includes details in new test about both state-of-specification, and known errata.
Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1779800