Module forward_plus

Module forward_plus 

Source
Expand description

Defines data structures for Forward+ (Tiled Forward) rendering.

Forward+ is an advanced rendering technique that optimizes multi-light scenarios by dividing the screen into tiles and pre-computing which lights affect each tile using a compute shader pass.

§SAA Integration

The ForwardPlusLane is a strategy of the RenderAgent ISA. The agent can select between LitForwardLane and ForwardPlusLane based on:

  • Scene light count (Forward+ typically wins when > 20 lights)
  • GORNA budget allocation

§Performance Characteristics

  • Complexity: O(meshes × lights_per_tile) vs O(meshes × lights) for Forward
  • Overhead: Fixed compute pass cost for light culling (~0.5ms)
  • Memory: Light grid and index buffers scale with screen resolution

Structs§

ForwardPlusTileConfig
Configuration for Forward+ tiled rendering.
GpuLight
GPU-friendly representation of a light source for compute shader processing.
LightCullingUniforms
Uniforms for the light culling compute shader.

Enums§

TileSize
The tile size for Forward+ light culling.