@pmndrs/reflections
    Preparing search index...

    Interface TraceProvider

    A BVH ray walk behind the trace seam.

    interface TraceProvider {
        capabilities: TraceProviderCapabilities;
        entries: readonly ModuleBindingEntry[];
        layoutVersion?: number;
        name: string;
        storageBufferCount: number;
        version: number;
        code(slot: BindingSlot): string;
        resources(): readonly GPUBindingResource[];
    }

    Implemented by

    Index
    entries: readonly ModuleBindingEntry[]

    Layout entries, in the order resources() returns them. Fixed for the provider's lifetime.

    layoutVersion?: number

    The version of the GPU layout the WGSL reads, for providers over a versioned layout (@pmndrs/bvh exports GPU_LAYOUT_VERSION). The provider checks it against the package it loaded at start-up; the pass only reports it.

    name: string

    Stable name, for labels and errors.

    storageBufferCount: number

    Storage buffers among entries.

    version: number

    Increments whenever resources() would return different objects.

    • WGSL declaring this provider's bindings at slot (in entries order) and defining traceFirstHit (+ traceHitMaterial / traceAny per capabilities). Other global names should carry a provider prefix so they never collide with the pass.

      Parameters

      Returns string