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

WebGPURenderer: Fix storage buffer example #28729

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Jun 24, 2024

Description

After a few seconds we can see overlapping pixels in the webgpu version, this is because ( size - instanceIndex ) will return the total value of the array and not the last index, ( size - 1 ) should fix this. There was an optimization in the amount of computations performed.

image

/cc @RenaudRohlinger

@sunag sunag added this to the r166 milestone Jun 24, 2024
@sunag sunag marked this pull request as ready for review June 24, 2024 02:27
@sunag sunag merged commit 05b5c20 into mrdoob:dev Jun 24, 2024
11 checks passed
@sunag sunag deleted the dev-fix-storage-buffer-gpu branch June 24, 2024 02:27
@RenaudRohlinger
Copy link
Collaborator

Nice catch, thank you for this!

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