Skip to main content

Crate valo_dl

Crate valo_dl 

Source
Expand description

The recording layer: DisplayListBuilder records draw commands into an immutable, retained DisplayList, computing the record-time oracle as it goes — per-op device bounds, list bounds, depth-slot counts. The renderer replays lists without re-deriving any of it — the recorder knows everything, so it says so at record time rather than making the renderer rediscover it.

DisplayList is a first-class retained object: immutable, Arc-shared, nestable via DisplayListBuilder::draw_display_list, with a stable DisplayList::id — hosts keep one list per layer and recompose a cheap top-level list each frame; the id + bounds invariants are the future hooks for raster caching and damage rects (deliberately not built yet).

GPU-free and Send + Sync: record on any thread, no Context required.

Structs§

Backdrop
Backdrop describes what a backdrop save layer samples from the scene beneath it.
BackdropGroup
BackdropGroup summarizes regions sharing one backdrop-blur key.
DisplayList
DisplayList is an immutable recording of drawing commands.
DisplayListBuilder
DisplayListBuilder records drawing commands into an immutable display list.
FocalCircle
FocalCircle defines the start circle of a radial gradient.
GlyphPos
GlyphPos identifies and positions one glyph within a glyph run.
GradientStop
GradientStop assigns a color to one position along a gradient.
Image
Image is a cheap-to-clone handle to an immutable GPU image.
ImageInner
ImageInner contains the shared resources and metadata behind an Image.
MaskBlur
MaskBlur applies a Gaussian blur to a draw’s coverage mask.
Paint
Paint describes how a drawing operation produces and composites pixels.
Sampling
Sampling controls filtering, mip selection, and behavior outside an image.

Enums§

BlendMode
BlendMode controls how source pixels combine with destination pixels.
BlurStyle
BlurStyle controls where blurred coverage appears relative to a shape.
ClipOp
ClipOp controls how a clip shape changes the current clip.
ColorFilter
ColorFilter transforms the pixels produced by a draw or layer.
Filter
Filter controls interpolation between neighboring texels.
ImageFilter
ImageFilter transforms a rasterized draw or layer.
MaskKind
MaskKind controls how a mask layer converts pixels into coverage.
MipmapMode
MipmapMode controls how minified images select mip levels.
Op
Op is one recorded display-list command.
PaintStyle
PaintStyle selects filled geometry or a stroked outline.
Shader
Shader determines the color painted at each point of a drawing operation.
SpreadMode
SpreadMode controls a gradient outside its zero-to-one span.
TileMode
TileMode controls samples outside an image’s bounds.

Constants§

MAX_GRADIENT_STOPS
MAX_GRADIENT_STOPS is the largest gradient stored directly in uniforms.