@pmndrs/reflections
    Preparing search index...

    Class ProbeIrradiance

    Computes L1 SH radiance coefficients of atlas slots into a volume table (rows irradianceRow + 3 * slot). The table buffer needs STORAGE usage. The atlas is read as the layout's texture type through a view of the layout's view dimension: a cube-hw atlas as 'cube-array', the others as '2d-array'. Pass the texture and the pass makes that view; a cube array is then never bound as a 2D array, which compatibility-mode WebGPU (a texture's binding view dimension is fixed) rejects (D2204).

    Index
    layout: ProbeLayout
    • Records the integration of slots of atlas (the texture, or a view of the layout's view dimension) into table. Each call gets its own parameter buffer, filled at creation (not by queue.writeBuffer, which would run before the submit and let a later call in the same encoder overwrite it). It is left to the garbage collector: the command buffer keeps it alive until it ran.

      Parameters

      • encoder: GPUCommandEncoder
      • atlas: GPUTexture | GPUTextureView
      • table: GPUBuffer
      • irradianceRow: number
      • slots: readonly number[]
      • lod: number = ...

      Returns void