@pmndrs/bvh
    Preparing search index...

    Function createTraceComputeShader

    • 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.

      Parameters

      Returns ComputeShader