Module cmd_bounds

Source
Expand description

isolated compositor: draw-command bounds for isolated offscreen regions. Device-space bounds for draw commands (isolated compositor).

Constants§

BLUR_PADDING_FACTOR
Padding multiplier for blur kernel (physical pixels).

Functions§

inflate_for_effects
Inflates bounds for every blur in an isolated effect chain.
push_composite_quad
NDC quad for compositing an offscreen texture into destination rect.
push_composite_quad_local
NDC quad in local offscreen space (origin top-left of the pass).
scissor_to_local
Convert global physical scissor to local coordinates inside offscreen pass.
snap_and_clamp_bounds
Snaps physical bounds outward and clamps their far edges to a surface.
union_cmd_bounds
Union of axis-aligned bounds for all commands in a layer (physical pixels).
union_cmd_bounds_prepared
Computes command bounds using prepared glyph extents when available.