Optional ReadonlyanyThe any-hit walk's child order (TraceModuleOptions.anyHitOrder). Default 'far'.
Optional ReadonlycountersThe 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.
Optional ReadonlyhitDefault 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.
Optional ReadonlynodeThe trace module's node format (TraceModuleOptions.nodeFormat). Default 'quantized'.
Optional ReadonlypositionIndexed only: 'vec4' (the default) or 'packed' positions.
Optional ReadonlyquantizedHow the walk decodes quantized nodes (TraceModuleOptions.quantizedDecode). Default 'exact'.
Optional ReadonlyrayDefault 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.
Optional ReadonlytraceWhere the trace module's bindings land. Default: group 0, bindings 0-2. The batch's own bindings are group 1.
Optional ReadonlytriangleThe triangle filter (bvhTrianglePasses). Default: DEFAULT_TRIANGLE_FILTER_WGSL, every triangle blocks.
Optional ReadonlytriangleThe trace module's triangle format (TraceModuleOptions.triangleLeaves). Default 'records'.
Options of batchKernelWgsl.