Module layout

Source
Expand description

Buffer-layout-specific traits for user-defined behavior.

Layout’s job is to split a buffer into sub-slices that will then be distributed to tile to be rendered, and to write color data to these sub-slices.

Structs§

Chunks
An iterator returned by Span::chunks.
LinearLayout
A linear buffer layout where each optionally strided pixel row of an image is saved sequentially into the buffer.
Ref
A reference wrapper returned by SliceCache::access.
Slice
A slice wrapper produced by SliceCache::access.
SliceCache
A cache of non-overlapping mutable sub-slices of that enforces lifetimes dynamically.
Span
A marker produced by SliceCache that ensures that all resulting Spans will be mutually non-overlapping.

Enums§

TileFill
A fill that the Layout uses to write to tiles.

Traits§

Flusher
Listener that gets called after every write to the buffer. Its main use is to flush freshly written memory slices.
Layout
A buffer’s layout description.