@pmndrs/bvh
    Preparing search index...

    Class GpuMeshRefitKernels

    The mesh refit's pipelines (the triangle step and the B1a refit), compiled once and shared by any number of GpuMeshRefits on one device. A caller with several deforming meshes needs one GpuMeshRefit per mesh (each has its own parameters and topology, written with queue.writeBuffer, so two meshes can't share one in a frame), and sharing the kernels means a mesh added later compiles nothing.

    Index
    • get indexed(): { boxes: GPUComputePipeline; copy: GPUComputePipeline } | null

      The indexed refit's two pipelines (copy the posed vertices, then the boxes), or null before prepare has finished.

      Returns { boxes: GPUComputePipeline; copy: GPUComputePipeline } | null

    • get triangles(): GPUComputePipeline | null

      The triangle step's pipeline, or null before prepare has finished.

      Returns GPUComputePipeline | null