-
Notifications
You must be signed in to change notification settings - Fork 45
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
Use attributeCount=0 as sentinel instead of VertexBufferNotUsed? #432
Comments
Here is the relevant spec discussion: gpuweb/gpuweb#2864 |
tl;dr: This was actually how webgpu.h in Dawn worked 2.5 years ago, but then we found that there was a mismatch between C and JS so we added Honestly though, the only reason not to change it in JS is that the otherwise-meaningless validation (still validates If we do use
|
Nov 25 meeting:
|
Sorry, this was totally incorrect, don't know why I said it. JS does not treat this as an error. Instead it requires there be a vertex buffer bound at that slot, even though it will not be used. I do not think there is a reasonable way we can use |
OK, here's a proposal for how we can do this in C without |
Dec 9 meeting:
|
See discussion here: #424 (comment)
But if we do remove VertexBufferNotUsed=0 then there will still be a reserved 0 for Undefined and then we should use it for defaulting since that's what we do everywhere else
The text was updated successfully, but these errors were encountered: