A ComputeShader whose WGSL is traceModuleWgsl(options.trace) followed by
kernel (your declarations and an @compute entry point that calls
bvhTraceClosest and friends), with the walk's names mapped to
traceSlot (group 0, bindings 0-2 unless set). Bind the buffers with
bindTraceBuffers, your own resources with Babylon's setters, then
dispatch.
A
ComputeShaderwhose WGSL istraceModuleWgsl(options.trace)followed bykernel(your declarations and an@computeentry point that callsbvhTraceClosestand friends), with the walk's names mapped totraceSlot(group 0, bindings 0-2 unless set). Bind the buffers with bindTraceBuffers, your own resources with Babylon's setters, thendispatch.