@pmndrs/bvh
    Preparing search index...

    Function packTopLevelInstance

    • Packs one instance into its table entry (TOP_LEVEL_INSTANCE_ENTRY_WORDS words at base), and returns whether its transform can be inverted (a singular one is written with live 0: rays never see it, as the CPU top level skips it). The record's flags are written as buildTopLevel writes them.

      Parameters

      • instance: GpuTopLevelInstance
      • floats: Float32Array
      • words: Uint32Array
      • base: number
      • scratch: Float64Array<ArrayBuffer> = ...

      Returns boolean