Module clip

Source
Expand description

GPU clip mode selection (not in ailloli_ui_core). GPU clip rendering mode selection (not part of ailloli_ui_core).

Structs§

ClipParamsGpu
Uniform block for clip_alpha in WGSL (32 bytes, 16-byte aligned).
RenderClipPlan
GPU-ready interpretation of a non-destructive clip stack.

Enums§

ClipRenderMode
How a layer clip is applied on the GPU.

Constants§

STENCIL_DRAW_CMD_THRESHOLD
Above this draw-command count, prefer stencil over per-fragment shader masking.

Functions§

choose_clip_render_mode
Picks the GPU clip strategy for a layer.
clip_bbox_physical
Clip bounding box in physical pixels.
resolve_clip_render_plan
Resolves a stack of clips without fusing away root/window metadata.
stencil_aa_enabled
Shader AA band on stencil edges (on by default). Set AILLOLI_UI_STENCIL_AA=0; OCTAVUI_STENCIL_AA is a legacy fallback. The primary variable wins when both are set; only 0 and case-insensitive false disable the band.