@pmndrs/bvh
    Preparing search index...

    Interface TraceSceneBuffers

    The three storage buffers the tracer reads, and an indexed scene's fourth.

    Data says what it is. The formats are required: options default to quantized nodes, but buffers name their own format (uploadTraceScene and SceneTrees.traceBuffers always do), and a kernel refuses buffers that don't. A hand-built object must name nodeFormat, triangleLeaves and, for indexed leaves, positionLayout.

    interface TraceSceneBuffers {
        byteLength: number;
        nodeFormat: GpuLayoutNodeFormat;
        nodes: GPUBuffer;
        positionLayout: PositionLayout;
        positions?: GPUBuffer | null;
        topLevel: GPUBuffer;
        triangleLeaves: GpuLayoutTriangleLeaves;
        triangles: GPUBuffer;
        destroy(): void;
    }
    Index
    byteLength: number

    Bytes held on the GPU.

    The scene's node format. A kernel refuses a scene of the other format.

    nodes: GPUBuffer
    positionLayout: PositionLayout

    The position layout (read for indexed scenes only).

    positions?: GPUBuffer | null

    An indexed scene's positions (TraceSceneData.positions), bound fourth. Absent or null for records.

    topLevel: GPUBuffer
    triangleLeaves: GpuLayoutTriangleLeaves

    The scene's triangle format. A kernel refuses a scene of the other format.

    triangles: GPUBuffer