-
Notifications
You must be signed in to change notification settings - Fork 86
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
subgroupBallot tests in fragment shaders #4068
Conversation
9a5f143
to
e1dd2f6
Compare
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.
very nice one!
@@ -344,4 +348,315 @@ fn main(@builtin(subgroup_size) subgroupSize : u32, | |||
await runTest(t, wgsl, testcase.filter, testcase.expect, false); | |||
}); | |||
|
|||
g.test('fragment').unimplemented(); | |||
// Filters should always skip the last row and column. |
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.
nit: recommend saying why: To avoid potential interference from helper invocations.
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.
and now I see it's commented on below too. Nice.
|
||
const mapping = new Map<number, bigint>(); | ||
|
||
// Iteration skips last row and column to avoid helper invocations because it is not |
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.
nice
|
||
// Iteration skips last row and column to avoid helper invocations because it is not | ||
// guaranteed whether or not they participate in the subgroup operation. | ||
for (let row = 0; row < height - 1; row++) { |
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 is all very clean. Nice.
* Tests subgroupBallot in fragment shaders
e1dd2f6
to
ce2b8d9
Compare
Issue: #
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.