diff --git a/examples/files.json b/examples/files.json index 3a51bc11df9da8..c10a9cc96deb2d 100644 --- a/examples/files.json +++ b/examples/files.json @@ -313,6 +313,7 @@ "webgpu_compute_particles_rain", "webgpu_compute_particles_snow", "webgpu_compute_points", + "webgpu_compute_reduce", "webgpu_compute_sort_bitonic", "webgpu_compute_texture", "webgpu_compute_texture_3d", diff --git a/examples/screenshots/webgpu_compute_reduce.jpg b/examples/screenshots/webgpu_compute_reduce.jpg new file mode 100644 index 00000000000000..feabfb2f71420d Binary files /dev/null and b/examples/screenshots/webgpu_compute_reduce.jpg differ diff --git a/examples/tags.json b/examples/tags.json index 01c2dbbd681b00..b1b9ba0c5dafba 100644 --- a/examples/tags.json +++ b/examples/tags.json @@ -126,6 +126,7 @@ "webgpu_compute_particles_rain": [ "gpgpu" ], "webgpu_compute_particles_snow_external": [ "gpgpu" ], "webgpu_compute_points": [ "gpgpu" ], + "webgpu_compute_reduce": [ "gpgpu" ], "webgpu_compute_sort_bitonic": [ "gpgpu" ], "webgpu_compute_texture": [ "gpgpu" ], "webgpu_compute_texture_pingpong": [ "gpgpu" ], diff --git a/examples/webgpu_compute_reduce.html b/examples/webgpu_compute_reduce.html new file mode 100644 index 00000000000000..ee064435367ead --- /dev/null +++ b/examples/webgpu_compute_reduce.html @@ -0,0 +1,723 @@ + + + three.js webgpu - compute reduction + + + + + + +
+ three.js +
This example demonstrates the performance of various simple parallel reduction kernels. +
Reference implementations are translated from the CUDA code present in the following books/repos: +
Programming in Parallel with CUDA by Richard Ansorge +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/test/e2e/puppeteer.js b/test/e2e/puppeteer.js index a4b2784928f7a6..2ee266c9fd96ce 100644 --- a/test/e2e/puppeteer.js +++ b/test/e2e/puppeteer.js @@ -140,6 +140,7 @@ const exceptionList = [ // Awaiting for WebGPU Backend support in Puppeteer 'webgpu_storage_buffer', 'webgpu_compute_sort_bitonic', + 'webgpu_compute_reduce', 'webgpu_struct_drawindirect', // WebGPURenderer: Unknown problem