Repository navigation
Implement 'index_range' test in getBindGroupLayout.spec.ts - #1892
Conversation
|
Previews, as seen when this build job started (27c16d9): |
kainino0x
left a comment
There was a problem hiding this comment.
I have a few minor comments, but this also reminded me about some issues in the spec. Those will need to get resolved before we can complete this. See below for details, and sorry for the blocker!
| const shouldError = index >= maxBindGroups; | ||
|
|
||
| t.expectValidationError(() => { | ||
| pipeline.getBindGroupLayout(index); |
There was a problem hiding this comment.
According to the spec, at least as currently written, this is supposed to throw an exception if index >= maxBindGroups. It's only a validation error if it's < maxBindGroups but >= the number of bind groups actually in the layout.
HOWEVER: I actually think we should change this in the spec. It doesn't seem consistent with other parts of the API. I'm going to open a spec proposal about it. Let's see if that gets resolved quickly.
Note, there's also an issue where "auto" layouts always fill the array up to maxBindGroups, instead of only up to the highest bind group index needed. I think this is a bug in the spec, so ignore this for now.
There was a problem hiding this comment.
There was a problem hiding this comment.
Thanks for checking it. Once let me update this PR with some fixes you pointed out.
There was a problem hiding this comment.
There have been no objections so far, so let's move forward assuming they'll land.
27c16d9 to
489ac64
Compare
|
Previews, as seen when this build job started (489ac64): |
kainino0x
left a comment
There was a problem hiding this comment.
LGTM with some small changes
According to the specification, the index of getBindGroupLayout should not exceed the size of the bind group layouts. So this PR implements a new test to ensure it. Issue: gpuweb#1891
489ac64 to
c87eadb
Compare
According to the specification, the index of getBindGroupLayout should not exceed the size of the bind group layouts. So this PR implements a new test to ensure it.
Issue: #1891
Requirements for PR author:
.unimplemented()./** documented */and new helper files are found inhelper_index.txt.Requirements for reviewer sign-off:
When landing this PR, be sure to make any necessary issue status updates.