From 76186aba5180e1a792795e0f33fe1432a3e6083f Mon Sep 17 00:00:00 2001 From: Christian Helgeson <62450112+cmhhelgeson@users.noreply.github.com> Date: Sat, 9 Nov 2024 12:07:51 -0800 Subject: [PATCH 1/9] init branch --- examples/webgpu_compute_prefix_sum.html | 615 ++++++++++++++++++++++++ 1 file changed, 615 insertions(+) create mode 100644 examples/webgpu_compute_prefix_sum.html diff --git a/examples/webgpu_compute_prefix_sum.html b/examples/webgpu_compute_prefix_sum.html new file mode 100644 index 00000000000000..c9a6d330c526fa --- /dev/null +++ b/examples/webgpu_compute_prefix_sum.html @@ -0,0 +1,615 @@ + + + three.js webgpu - storage pbo external element + + + + + + +
+ three.js +
This example demonstrates a bitonic sort running step by step in a compute shader. +
The left canvas swaps values within workgroup local arrays. The right swaps values within storage buffers. +
Reference implementation by Tim Gfrerer +
+
+
+
+ + + + + + \ No newline at end of file From 2bb47f9fa038f93781b2f61126d8639ca907d5a2 Mon Sep 17 00:00:00 2001 From: Christian Helgeson <62450112+cmhhelgeson@users.noreply.github.com> Date: Sat, 9 Nov 2024 16:17:28 -0800 Subject: [PATCH 2/9] trying to get render to output --- examples/files.json | 1 + examples/webgpu_compute_prefix_sum.html | 443 ++++-------------------- 2 files changed, 67 insertions(+), 377 deletions(-) diff --git a/examples/files.json b/examples/files.json index bd549c1a22bf01..e44c80cefa0695 100644 --- a/examples/files.json +++ b/examples/files.json @@ -312,6 +312,7 @@ "webgpu_compute_particles_rain", "webgpu_compute_particles_snow", "webgpu_compute_points", + "webgpu_compute_prefix_sum", "webgpu_compute_sort_bitonic", "webgpu_compute_texture", "webgpu_compute_texture_pingpong", diff --git a/examples/webgpu_compute_prefix_sum.html b/examples/webgpu_compute_prefix_sum.html index c9a6d330c526fa..d3b8b4654b3a7c 100644 --- a/examples/webgpu_compute_prefix_sum.html +++ b/examples/webgpu_compute_prefix_sum.html @@ -54,28 +54,14 @@