Small World Engine API Reference - v0.76.20
    Preparing search index...

    Class ClusterCullPassGPU

    Builds the clustered light grid (point/spot lights, fixed-capacity-per-cluster, no atomics) via a compute pass, before any other pass reads it -- see docs/adr/0007-clustered-lighting-webgl2-webgpu-only.md. Relies on _updateGlobalBuffers() (called earlier in WebGPURenderer.render(), before the command encoder loop) having already written this frame's light data and cluster grid metadata into the global uniform/storage buffers referenced by renderer.globalBindGroup.

    Implements

    Index
    name: string = "ClusterCullPassGPU"

    Name of the pass for debugging.

    • Executes the pass.

      Parameters

      • renderer: WebGPURenderer

        The renderer executing the pass.

      • _scene: Scene
      • ce: GPUCommandEncoder

        The command encoder to use.

      • _targetView: GPUTextureView
      • _vp: Float32Array
      • _camPos: Vector3D
      • Optional_vMat: Float32Array<ArrayBufferLike>

      Returns void