Expand description
Renderer β pipeline cache, draw-call batcher, filter pass orchestrator.
Evolution:
M0.5: hardcoded triangle.
M0.6: textured-quad path (render_quad).
M0.9: sprite batcher with scene-graph traversal (render_stage).
M0.16: filter pass orchestrator.
ModulesΒ§
- advanced_
blend π - Advanced (Tier C) blend modes β implemented as offscreen filter passes that sample backdrop + foreground and run a per-mode blend function in the fragment shader.
- batcher
- Draw-call batcher β groups Sprites with the same texture + blend mode.
- blend_
pipeline π BlendPipelineMapβ pre-builtRenderPipelineper standard blend mode.- blit π
- Fullscreen-sampler βblitβ pipeline β copy a
RenderTextureonto an arbitrary target view. - clip π
- Clip pipeline β apply a
MaskShapeto a foregroundRenderTextureand write the masked result. - flex_
text_ πpipeline - Late-pass textured-quad pipeline for
FlexTextscene nodes. - graphics_
pipeline π - Graphics primitive pipeline.
- mask_
cache π - Cache of generated mask textures (M-DYN.2 / AUT-44).
- mask_
combine - Boolean operations on alpha-mask textures (M-VEC.11 / AUT-63).
- mask_
compose π - Compose a foreground
RenderTextureagainst a separately- generated alpha mask texture (M-VEC.4..6 / AUT-56..58). - mask_
texture π - Generate an alpha-mask
RenderTexturefrom aMaskShape(M-DYN.1 / AUT-43). - mesh_
pipeline π - Mesh pipeline β perspective-rotated textured quad (M0.19).
- pass
- Filter pass orchestrator β ping-pong
RenderTextures across N filter passes. - path_
clip π - Path clip pipeline β rasterize a closed-polygon mask for a
foregroundRT (M-MASK / AUT-35 freehand path mask). - path_
mask_ πtexture - Generate an alpha-mask
RenderTexturefrom a closed polygon (M-DYN.1 / AUT-43, freehand-path variant). - pipeline
wgpu::RenderPipelinecache, keyed by shader + blend mode + format.- quad_
pipeline π - Textured-quad pipeline.
- scene_
walk π - Shared scene traversal + transform helpers (M-TEXT.0 / AUT-74).
- sprite_
pipeline π - Instanced sprite pipeline β M0.9.
- text_
pipeline π - Bitmap text pipeline β M0.15.
- triangle_
pipeline π - Hardcoded triangle pipeline β M0.5 hello-triangle.
StructsΒ§
- Render
Stats - Frame statistics returned by
Renderer::render_stage. - Renderer
- 2D renderer.
FunctionsΒ§
- collect_
dispatched_ πnodes - Pre-order walk that returns every visible node which needs the slow-path dispatch β either: