⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module compositor

Module compositor 

Source
Expand description

Wayland Compositor

Manages surfaces and composites them into a back-buffer that can be presented to the hardware framebuffer. Surfaces are drawn in Z-order with per-pixel alpha blending for ARGB8888 and fast memcpy for XRGB8888.

Structs§

Compositor
Wayland compositor state.

Functions§

alpha_blend
Alpha-blend a single source pixel (ARGB8888) onto a destination pixel (XRGB8888). Returns the blended pixel as 0xFFRRGGBB.
apply_opacity
Apply a per-surface opacity to a u32 pixel (XRGB8888 -> ARGB8888).
render_shadow
Render a soft shadow behind a window surface.