Module surface

Source
Expand description

Utilities for handling surfaces which can be either headless or headed. A headed surface has a handle to a window. A headless surface renders to a texture.

Structs§

BufferDimensions
BufferedTextureHead
Surface
WindowHead

Enums§

Head

Functions§

strip_srgb 🔒
Returns the non-sRGB variant of a texture format. This prevents the GPU from applying automatic linear→sRGB gamma conversion, which would double-gamma colors that are already in sRGB space (e.g., CSS colors).