@pmndrs/bvh
    Preparing search index...

    Variable HIT_RECORD_WORDConst

    HIT_RECORD_WORD: {
        barycentrics: 4;
        frontFace: 3;
        instance: 1;
        material: 6;
        normal: 7;
        t: 0;
        triangle: 2;
    } = ...

    Word positions inside a BvhHitRecord (the 40-byte record of HIT_RECORD_BYTES), for code that reads batch results back. frontFace sits before barycentrics so the vec2f starts on an 8-byte boundary and the record has no padding (wgsl.test.ts checks this against the struct in batchEntryWgsl).

    Type Declaration

    • Readonlybarycentrics: 4
    • ReadonlyfrontFace: 3
    • Readonlyinstance: 1
    • Readonlymaterial: 6
    • Readonlynormal: 7
    • Readonlyt: 0
    • Readonlytriangle: 2