UiPostEffectRenderer
Rendering dispatcher with automatic fallback for post-processing UI layers.
Overview
UiPostEffectRenderer dispatches layer rendering to the active backend. If the effect chain is empty or the backend does not implement UiPostEffectBackend, it automatically falls back to standard direct RenderBackend#render without throwing exceptions.
Executing Post-Processed Render
API
UiPostEffectRenderer::render(RenderBackend, DrawList, UiLayerBounds, UiPostEffectChain)
render(RenderBackend, DrawList, UiLayerBounds, UiPostEffectChain)
Renders a draw list with post-processing fallback to active screen target.
| Parameter | Type | Description |
|---|---|---|
backend |
RenderBackend |
Active RenderBackend. |
drawList |
DrawList |
DrawList of commands. |
bounds |
UiLayerBounds |
Layer bounds. |
chain |
UiPostEffectChain |
Post effect chain. |
UiPostEffectRenderer::render(RenderBackend, DrawList, UiLayerBounds, UiPostEffectChain, RenderTarget)
render(RenderBackend, DrawList, UiLayerBounds, UiPostEffectChain, RenderTarget)
Renders a draw list with post-processing fallback to a specified render target.
| Parameter | Type | Description |
|---|---|---|
backend |
RenderBackend |
Active RenderBackend. |
drawList |
DrawList |
DrawList of commands. |
bounds |
UiLayerBounds |
Layer bounds. |
chain |
UiPostEffectChain |
Post effect chain. |
target |
RenderTarget |
Target RenderTarget or null for active. |