@pmndrs/bvh
    Preparing search index...

    Variable NODE_WORDConst

    NODE_WORD: {
        leftCount: 11;
        leftIndex: 3;
        leftMax: 4;
        leftMin: 0;
        rightCount: 15;
        rightIndex: 7;
        rightMax: 12;
        rightMin: 8;
    } = GPU_LAYOUT_NODE_WORD

    Word positions inside a node. Matches the WGSL BvhNode:

    leftMin: vec3f,  leftIndex: u32,
    leftMax: vec3f,  rightIndex: u32,
    rightMin: vec3f, leftCount: u32,
    rightMax: vec3f, rightCount: u32,
    

    A child with count > 0 is a leaf holding count primitives starting at index. A child with count == 0 is an inner node at index. The same object as GPU_LAYOUT_NODE_WORD, which the GPU refit writes too.

    Type Declaration

    • ReadonlyleftCount: 11
    • ReadonlyleftIndex: 3
    • ReadonlyleftMax: 4
    • ReadonlyleftMin: 0
    • ReadonlyrightCount: 15
    • ReadonlyrightIndex: 7
    • ReadonlyrightMax: 12
    • ReadonlyrightMin: 8