Skip to content

Commit

Permalink
WebGPURenderer: Workgroup Arrays and Barrier Support (#29192)
Browse files Browse the repository at this point in the history
* init

* barrier, private array, workgroup array support

* clean

* Implement Renaud suggestions

* fix

* fix storage buffer example with workgroupBarrier()

* add tags and other info

* add bitonic sort example

* update

* Rebase branch

* try to fix bitonic sort shader

* simplify

* fix

* bitonic sort now works but local swap is slower than global swap :

* cleanup

* fix rebase issues

* Change display and html to make difference between global and local swap clearer. May want to improve the performance of the fragment shader by writing nextAlgo and nextBlockHeight to uniforms on the CPU side

* update (ugly?) screenshot

* cleanup

---------
  • Loading branch information
cmhhelgeson authored Sep 10, 2024
1 parent d859185 commit 1174d07
Show file tree
Hide file tree
Showing 10 changed files with 760 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@
"webgpu_compute_particles_rain",
"webgpu_compute_particles_snow",
"webgpu_compute_points",
"webgpu_compute_sort_bitonic",
"webgpu_compute_texture",
"webgpu_compute_texture_pingpong",
"webgpu_compute_water",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions examples/tags.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"webgpu_compute_particles_rain": [ "gpgpu" ],
"webgpu_compute_particles_snow_external": [ "gpgpu" ],
"webgpu_compute_points": [ "gpgpu" ],
"webgpu_compute_sort_bitonic": [ "gpgpu" ],
"webgpu_compute_texture": [ "gpgpu" ],
"webgpu_compute_texture_pingpong": [ "gpgpu" ],
"webgpu_depth_texture": [ "renderTarget" ],
Expand Down
Loading

0 comments on commit 1174d07

Please sign in to comment.