PipelineConfig Type
Main configuration for the 3D Render Pipeline.
Record fields
| Record Field |
Description
|
|
Fallback lighting state if no 'SetLighting' command is issued.
|
|
Optional override for binding light data to shaders
|
|
Post-processing configuration.
|
Full Usage:
PreRenderCallback
Field type: (GraphicsDevice -> Camera -> LightingState -> unit) voption
|
Optional callback to run custom logic before the main render pass (e.g. Depth Pre-Pass, Compute Shaders)
|
|
Map of shader overrides (e.g., replacing the default PBR shader).
|
|
Shadow subsystem configuration (ValueNone to disable shadows).
|
Full Usage:
TileSize
Field type: int
|
Screen-space tile size for CPU Tiled Forward culling (default: 32). Controls the granularity of the light binning grid. Smaller tiles (16) mean fewer lights per tile but more CPU overhead to calculate bins. Larger tiles (32-64) reduce CPU cost but may pass more lights to the pixel shader for non-uniform scenes.
|
Mibo