Skip to main content

Crate cranpose_render_common

Crate cranpose_render_common 

Source
Expand description

Common rendering contracts shared between renderer backends.

Modules§

bounded_lru_cache
brush_sampling
dev_overlay
Renderer-drawn dev overlay (fps counter): one shared graph builder so every backend draws the identical overlay without composition impact.
font_layout
geometry
graph
graph_scene
hit_graph
image_compare
layer_composition
layer_shadow
layer_transform
primitive_emit
raster_cache
render_contract
scene_builder
software_text_raster
style_shared
text_hyphenation
text_measure
Shared CPU TextMeasurer used by the software rasterizer backends (pixels, vulkan). Both backends draw text by rasterizing glyphs directly into a pixel buffer rather than through a GPU glyph atlas, so they share one font-backed measurer plus its fallback-metrics path for when no font is installed.

Enums§

Brush

Constants§

FRAME_CLEAR_COLOR
The frame background every renderer clears to (linear values; sRGB surfaces display this as rgb(75, 75, 86)). One definition so backends cannot drift.

Traits§

HitTestTarget
Trait implemented by hit-test targets stored inside a RenderScene.
RenderScene
Trait describing the minimal surface area required by the application shell to process pointer events and refresh the frame graph.
Renderer
Abstraction implemented by concrete renderer backends.