Module forma_render::cpu::buffer::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

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

Enums

A fill that the Layout uses to write to tiles.

Traits

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