@pmndrs/reflections
    Preparing search index...

    Interface ProbeLayout

    interface ProbeLayout {
        chunks: readonly ProbeWgslChunk[];
        dirFunction: string;
        id: ProbeLayoutId;
        layersPerProbe: number;
        mipLevelCount: number;
        prefix: string;
        sampleFunction: string;
        textureType: string;
        viewDimension: GPUTextureViewDimension;
        wgsl: string;
        textureDescriptor(
            size: number,
            probes: number,
            format: GPUTextureFormat,
        ): GPUTextureDescriptor;
    }
    Index
    chunks: readonly ProbeWgslChunk[]

    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.

    dirFunction: string

    WGSL name of this layout's dirForTexel (same signature): <prefix>dirForTexel.

    layersPerProbe: number

    Array layers one probe takes (6 for the cube layouts, 1 for octahedral).

    mipLevelCount: number

    Roughness mips: maxLod + 1. Mip lod holds roughness lodToRoughness(lod, maxLod).

    prefix: string

    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.

    sampleFunction: string

    WGSL name of this layout's sampleLayout (same signature): <prefix>sample.

    textureType: string

    WGSL type of the texture sampleLayout takes, e.g. texture_2d_array<f32>.

    viewDimension: GPUTextureViewDimension

    View dimension sampleLayout's texture is bound with.

    wgsl: string

    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: , samp: sampler, probe: u32, dir: vec3f, lod: f32) -> vec4f the filtered radiance of probe 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).

    • Texture shape for N probes at size px (mip 0 face or octa side).

      Parameters

      • size: number
      • probes: number
      • format: GPUTextureFormat

      Returns GPUTextureDescriptor