Skip to main content

Module render

Module render 

Source
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-built RenderPipeline per standard blend mode.
blit πŸ”’
Fullscreen-sampler β€œblit” pipeline β€” copy a RenderTexture onto an arbitrary target view.
clip πŸ”’
Clip pipeline β€” apply a MaskShape to a foreground RenderTexture and write the masked result.
flex_text_pipeline πŸ”’
Late-pass textured-quad pipeline for FlexText scene 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 RenderTexture against a separately- generated alpha mask texture (M-VEC.4..6 / AUT-56..58).
mask_texture πŸ”’
Generate an alpha-mask RenderTexture from a MaskShape (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 foreground RT (M-MASK / AUT-35 freehand path mask).
path_mask_texture πŸ”’
Generate an alpha-mask RenderTexture from a closed polygon (M-DYN.1 / AUT-43, freehand-path variant).
pipeline
wgpu::RenderPipeline cache, 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Β§

RenderStats
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: