Crate compositor
source ·Expand description
This crate defines a trait of Compositor
.
A compositor composites a list of sources buffers to a single destination buffer.
Structs
- A source framebuffer to be composited, along with its target position.
Traits
- A
CompositableRegion
is an abstract region (i.e., a bounding box) that can optimize the compositing (blending) of one framebuffer into another framebuffer according to the specifics of the region’s shape. For example, a single 2-D point (Coord
) offers no real room for optimization because only one pixel will be composited, but a rectangle does allow for optimization, as a large chunk of pixels can be composited all at once. - A compositor composites (combines or blends) a series of “source” framebuffers onto a single “destination” framebuffer. The type parameter
B
allows a compositor to support multiple types of regions or “bounding boxes”, given by the trait boundCompositableRegion
.