WGSL name of this layout's dirForTexel (same signature): <prefix>dirForTexel.
Array layers one probe takes (6 for the cube layouts, 1 for octahedral).
Roughness mips: maxLod + 1. Mip lod holds roughness lodToRoughness(lod, maxLod).
Prefix of this layout's own WGSL names (pl_cube2d_warp_, pl_cube2d_none_, pl_cube_hw_,
pl_octa<maxLod>_). Shared helpers are prefixed pl_ and live in their own chunk.
WGSL name of this layout's sampleLayout (same signature): <prefix>sample.
WGSL type of the texture sampleLayout takes, e.g. texture_2d_array<f32>.
View dimension sampleLayout's texture is bound with.
WGSL for a module that samples (or prefilters) this layout only, defining
fn dirForTexel(texel: vec2u, layer: u32, mip: u32, size: u32) -> vec3f
the (unit) direction the prefilter integrates for texel of layer layer (within one
probe) at mip mip, for a texture whose mip 0 is size px;
fn sampleLayout(tex: probe along dir (need not be normalized) at mip lod.
Both forward to the prefixed functions below (dirFunction, sampleFunction). The unprefixed
names exist once per module, so for several layouts in one module use chunks (or
probeLayoutsWgsl([...])) and call the prefixed names instead (D805).
The layout's WGSL without the unprefixed aliases, in chunks: emit each key once per module (
dedupeChunks), and layouts of different ids (or octa of different maxLod) never collide.