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

Module gl_compositor

Module gl_compositor 

Source
Expand description

OpenGL-style Compositor

Provides a GPU-accelerated compositing pipeline that manages surfaces, performs alpha-over blending, and renders to a back buffer. Uses the texture atlas for efficient surface packing and supports multiple blend modes with integer-only arithmetic.

All blending uses integer math: result = (src * alpha + dst * (255 - alpha)) / 255.

Structs§

GlCompositor
GPU-style compositor that manages surfaces and composites them to a back buffer.
GlSurface
A compositable surface managed by the GL compositor.

Enums§

BlendMode
Blending operation applied when compositing a surface onto the back buffer.

Type Aliases§

SurfaceId
Unique surface identifier.