Skip to main content

Crate vello_encoding

Crate vello_encoding 

Source
Expand description

Raw scene encoding.

Re-exports§

pub use math::Transform;

Modules§

math

Structs§

BinHeader
Binning header.
BufferSize
Typed buffer size primitive.
BufferSizes
Computed sizes for all buffers.
BumpAllocatorMemory
BumpAllocators
Counters for tracking dynamic allocation on the GPU.
BumpBudget
How much bump-allocated scratch a renderer reserves, in elements.
BumpEstimatorbump_estimate
Clip
Clip resolution.
ClipBbox
Clip bounding box.
ClipBic
Clip stack element.
ClipElement
Clip element.
ConfigUniform
Uniform render configuration data used by all GPU stages.
Cubic
Cubic path segment.
DrawBbox
Draw object bounding box.
DrawBeginClip
Draw data for a clip or layer.
DrawBlurRoundedRect
Draw data for a blurred rounded rectangle.
DrawColor
Draw data for a solid color.
DrawImage
Draw data for an image.
DrawLinearGradient
Draw data for a linear gradient.
DrawMonoid
Monoid for the draw tag stream.
DrawRadialGradient
Draw data for a radial gradient.
DrawSweepGradient
Draw data for a sweep gradient.
DrawTag
Draw tag representation.
Encoding
Encoded data streams for a scene.
FontEmbolden
Synthetic embolden settings for a glyph run.
Glyph
Positioned glyph.
GlyphRun
Properties for a sequence of glyphs in an encoding.
ImageCacheStats
What the image cache holds, for memory diagnostics.
IndirectCount
Storage of indirect dispatch size values.
Layout
Layout of a packed encoding.
LineSoup
Line segment (after flattening, before tiling).
Mark
A keyed boundary in the draw stream, for a renderer that keeps what it shows from frame to frame by identity (a page’s DOM): everything drawn between a MarkKind::Begin and its MarkKind::End belongs to the thing the key names, wherever the stream lands it.
Path
Tiled path object.
PathBbox
Path bounding box.
PathEncoder
Encoder for path segments.
PathMonoid
Monoid for the path tag stream.
PathSegment
Path segment.
PathSegmentType
Path segment type.
PathTag
Path tag representation.
Ramps
Data and dimensions for a set of resolved gradient ramps.
RenderConfig
CPU side setup and configuration.
Resolver
Resolver for late bound resources.
Resources
Encoded data for late bound resources.
SegmentCount
Line segment (after flattening, before tiling).
StreamOffsets
Snapshot of offsets for encoded streams.
Style
Data structure encoding stroke or fill style.
Tile
Tile object.
WorkgroupCounts
Computed sizes for all dispatches.

Enums§

MarkKind
See Mark.
Patch
Patch for a late bound resource.

Constants§

DRAW_INFO_FLAGS_FILL_RULE_BIT
The first word of each draw info stream entry contains the flags.

Traits§

Monoid
Interface for a monoid. The default value must be the identity of the monoid.

Functions§

draw_outline
Draw outline with settings into pen.
image_delta
The image to follows and the rects where they differ, if known.
make_mask_lut
Make a lookup table of half-plane masks.
make_mask_lut_16
Make a lookup table of half-plane masks.
register_image_delta
Say that the image whose blob id is to has the same size and format as the one whose blob id is from and the same pixels outside rects.
resolve_solid_paths_only
Resolves and packs an encoding that contains only paths with solid color fills.

Type Aliases§

ImageRect
A rect of an image, in its pixels: x, y, width, height.
NormalizedCoord
A normalized variation coordinate (for variable fonts) in 2.14 fixed point format.
WorkgroupSize
Type alias for a workgroup size.