ReadonlyatlasReadonlyatlasesReadonlyatlasReadonlyatlasReadonlybindReadonlybindReadonlycapacityReadonlydeviceProbes contribute (false while capturing, so captures see only the environment).
ReadonlyenvironmentAtlas slot of the environment, or -1.
ReadonlyformatReadonlyirradianceFirst row of the irradiance block.
ReadonlylayoutReadonlylayoutsEach atlas's layout (same kind, its own mip count).
ReadonlymaxReadonlyplanWhere each slot lives: its atlas and slot there (planProbeAtlases over slotSizes).
Upper bound of the re-fit ratio.
ReadonlysamplerReadonlysizeReadonlysourceReadonlytableRecords the prefilter of cube (slotSize(slot) px faces, mip 0 read) into atlas slot slot,
through the capture transform's face remap if it has one.
Records the environment capture (the last slot).
Records the L1 SH irradiance of slots (default: every volume's slot and the environment)
into the table, for the re-fit. Run it after the captures, in their command buffer or later.
Optionalslots: readonly number[]The volumes in lookup order.
The lookup module options of this set (see wgsl), for probeLookupWgsl([...]). With
several atlases (slotSizes, D4700) atlas k is at atlasBinding + k - 1, default 3 (the set's
own bind group); a module that binds the set's resources itself can move them.
Sets the volumes (sorted into lookup order by priority, then size). Call update() after.
Capture face size of slot slot (sourceSize unless slotSizes says otherwise; the environment's is sourceSize).
Uploads the header and volumes (not the irradiance rows).
The lookup module (see probeLookupWgsl): bindings 0..2 of @group(group), matching
bindGroupLayout / bindGroup. suffix renames its entry points (probeRadiance<suffix>, ...);
for several sets in one module, use probeLookupWgsl([a.lookupOptions(...), b.lookupOptions(...)]).
Every atlas, one per slot size (D4700):
[atlas]unlessslotSizesmixes sizes.