Skip to main content

Module composition

Module composition 

Source
Expand description

Resolution of per-camera CompositingSpace requests.

Cameras that render to the same target share main textures when their settings match, and composite over each other in that texture. Later passes need to know how the texture is encoded, so the whole stack has to agree on one compositing space. This module picks that space each frame and stores it in each view’s ResolvedCompositingSpace.

Structs§

ResolveCompositingSpaces
The system set that writes ResolvedCompositingSpace. It runs in RenderSystems::CreateViews after sort_cameras. Readers in CreateViews should order after this set.
ResolvedCompositingSpace
The compositing space a camera view actually uses this frame, written by resolve_composition_spaces.

Functions§

composites_fullscreen
Whether a camera composites over the previous camera’s output and covers the whole render target. Decides membership in a compositing stack.
resolve_composition_spaces
Writes each camera view’s ResolvedCompositingSpace. Runs in ResolveCompositingSpaces.