Skip to content
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

Draft
wants to merge 1 commit into
base: 12-17-refactor_buffer_storage_split_split_split
Choose a base branch
from

Conversation

bmschmidt
Copy link
Collaborator

No description provided.

Copy link
Collaborator Author

bmschmidt commented Dec 18, 2024

This was referenced Dec 18, 2024
})
);

passEncoder.dispatchWorkgroups(size / 4 / 64);
Copy link

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.

Comment on lines +76 to +78
@compute @workgroup_size(64)
//TODOD HERE
` });
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant