Skip to main content

Module prim_store

Module prim_store 

Source

Modules§

backdrop
borders
gradient
image
interned
line_dec
picture
rectangle
storage
text_run

Structs§

BorderSegmentInfo
Information about how to cache a border segment, along with the current render task cache entry.
BrushSegment
BrushSegmentation
ClipCorner 🔒
ClipData
ClipRect 🔒
ClipTaskIndex
DeferredResolve
For external images, it’s not possible to know the UV coords of the image (or the image data itself) until the render thread receives the frame and issues callbacks to the client application. For external images that are visible, a DeferredResolve is created that is stored in the frame. This allows the render thread to iterate this list and update any changed texture data and update the UV rect. Any filtering is handled externally for NativeTexture external images.
NinePatchDescriptor
A hashable descriptor for nine-patches, used by image and gradient borders.
PictureIndex
PointKey
A hashable point for using as a key during primitive interning.
PolygonKey
To create a fixed-size representation of a polygon, we use a fixed number of points. Our initialization method restricts us to values <= 32. If our constant POLYGON_CLIP_VERTEX_MAX is > 32, the Rust compiler will complain.
PrimKey
PrimKeyCommonData
A hashable float for using as a key during primitive interning.
PrimTemplate
PrimTemplateCommonData
PrimitiveFrameScratch
Per-frame scratch storage. All fields are cleared every frame in begin_frame. Anything written here lives only for the current frame.
PrimitiveInstance
PrimitiveInstanceIndex
PrimitiveOpacity
PrimitiveRetained
State that lives strictly longer than a single frame and is not tied to scene lifetime. These fields manage their own trim/eviction policy rather than being cleared by begin_frame or recycle.
PrimitiveSceneCache
Per-scene cache. Now empty — the originally memoized fields have migrated to per-frame storage. Kept as a placeholder for any future scene-stable state and so the lifetime invariant on PrimitiveScratchBuffer (frame / scene / retained) remains visible at the type level; a follow-up may drop it entirely.
PrimitiveScratchBuffer
Contains various vecs of data that is used only during frame building, where we want to recycle the memory each new display list, to avoid constantly re-allocating and moving memory around. Written during primitive preparation, and read during batching.
PrimitiveStore
PrimitiveStoreStats
RectKey
SideOffsetsKey
A hashable SideOffset2D that can be used in primitive keys.
SizeKey
A hashable size for using as a key during primitive interning.
VectorKey
A hashable vec for using as a key during primitive interning.
VisibleMaskImageTile

Enums§

ClipMaskKind
Represents the visibility state of a segment (wrt clip masks).
PrimitiveKind

Constants§

VECS_PER_SEGMENT

Traits§

InternablePrimitive
Trait for primitives that are directly internable. see SceneBuilder::add_primitive

Type Aliases§

GlyphKeyStorage
SegmentInstanceIndex
SegmentInstanceStorage
SegmentStorage
SegmentsRange