Crafter.Graphics/additional
catbot afc0292fab WebGPU RT: dynamic TLAS sweep-tree depth (next_pow2 instances)
The LBVH bitonic sort still runs over the full 16384 (sentinels sink to
the tail), but the sweep tree is now built and traced at depth
log2(next_pow2(nReal)) instead of a fixed 14. Add nPadded to LbvhPC; leaf
init + bottom-up refit use it; the host passes the same next_pow2 to the
trace via WfParams.tlasNPadded. Renders correctly at 512 instances
(depth 9). The fragile sort phases are untouched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 20:28:12 +00:00
..
dom-env.js webgpu improvements 2026-05-24 13:32:08 +02:00
dom-webgpu.js WebGPU RT: dynamic TLAS sweep-tree depth (next_pow2 instances) 2026-05-31 20:28:12 +00:00