From e82346cbd522216b074adf0b4842bb58dcf23b15 Mon Sep 17 00:00:00 2001 From: Andreas Sundquist Date: Sat, 19 Jul 2025 10:25:22 -0700 Subject: [PATCH] Add 32-bit float sort via SparkViewpooint.sort32, using 2-pass radix-65536 sort. Turn on sort32 by default for examples/editor. Implemented Rust sort and JS sort, updated benchmarking code to include float16 and float32 sort. --- examples/editor/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/editor/index.html b/examples/editor/index.html index 4963eb0..9df983f 100644 --- a/examples/editor/index.html +++ b/examples/editor/index.html @@ -487,6 +487,8 @@ stats.dom.style.display = value ? "block" : "none"; }); gui.add(spark.defaultView, "sortRadial").name("Radial sort").listen(); + spark.defaultView.sort32 = true; + gui.add(spark.defaultView, "sort32").name("Float32 sort").listen(); gui.add(grid, "opacity", 0, 1, 0.01).name("Grid opacity").listen(); gui.add({ logFocalDistance: 0.0,