-
Notifications
You must be signed in to change notification settings - Fork 62
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
webGPU resources #180
base: 12-17-refactor_buffer_storage_split_split_split
Are you sure you want to change the base?
webGPU resources #180
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
}) | ||
); | ||
|
||
passEncoder.dispatchWorkgroups(size / 4 / 64); |
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.
The workgroup dispatch calculation size / 4 / 64
should be wrapped in Math.ceil()
to prevent dropping elements when the size is not perfectly divisible by the workgroup size. Without rounding up, the last partial workgroup may be skipped, leaving some elements unprocessed.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
@compute @workgroup_size(64) | ||
//TODOD HERE | ||
` }); |
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.
The shader module is missing its main
function implementation after the @compute
workgroup declaration. The code as written will fail to compile. Consider implementing the core compute shader logic here before merging.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
No description provided.