@pmndrs/bvh
    Preparing search index...

    Interface BatchKernelOptions

    Options of batchKernelWgsl.

    interface BatchKernelOptions {
        anyHitOrder?: AnyHitOrder;
        counters?: boolean;
        hitNormal?: boolean;
        nodeFormat?: GpuLayoutNodeFormat;
        positionLayout?: PositionLayout;
        quantizedDecode?: QuantizedDecode;
        rayMasks?: boolean;
        traceSlot?: BindingSlot;
        triangleFilter?: string;
        triangleLeaves?: GpuLayoutTriangleLeaves;
    }
    Index
    anyHitOrder?: AnyHitOrder

    The any-hit walk's child order (TraceModuleOptions.anyHitOrder). Default 'far'.

    counters?: boolean

    The counted walk (TraceModuleOptions.counters): each ray's result is a BvhWalkCounts (WALK_COUNTS_BYTES, words in WALK_COUNTS_WORD) in either mode, instead of a hit record or a blocked word. Default false.

    hitNormal?: boolean

    Default true: closest-hit results are the 40-byte BvhHitRecord with the hit's material and normal (HIT_RECORD_BYTES, HIT_RECORD_WORD). False: the 24-byte BvhHitRecordCompact without either (HIT_RECORD_COMPACT_BYTES, HIT_RECORD_COMPACT_WORD). Any-hit results are one u32 either way.

    nodeFormat?: GpuLayoutNodeFormat

    The trace module's node format (TraceModuleOptions.nodeFormat). Default 'quantized'.

    positionLayout?: PositionLayout

    Indexed only: 'vec4' (the default) or 'packed' positions.

    quantizedDecode?: QuantizedDecode

    How the walk decodes quantized nodes (TraceModuleOptions.quantizedDecode). Default 'exact'.

    rayMasks?: boolean

    Default true: the batch traces with one ray mask for the whole batch, read from a uniform at group 1, binding 2 (BATCH_PARAMS_BYTES, word BATCH_PARAMS_WORD.rayMask). False compiles masks out and the batch has no binding 2.

    traceSlot?: BindingSlot

    Where the trace module's bindings land. Default: group 0, bindings 0-2. The batch's own bindings are group 1.

    triangleFilter?: string

    The triangle filter (bvhTrianglePasses). Default: DEFAULT_TRIANGLE_FILTER_WGSL, every triangle blocks.

    triangleLeaves?: GpuLayoutTriangleLeaves

    The trace module's triangle format (TraceModuleOptions.triangleLeaves). Default 'records'.