Skip to main content

Module rasterizer

Module rasterizer 

Source
Expand description

Analytical Signed Distance Field (SDF) 2D Rasterizer & Headless Software FrameBuffer.

Structs§

FrameBuffer
Headless in-memory RGBA pixel canvas for software rasterization and automated testing.

Constants§

SRGB_GAMMA
Standard sRGB gamma exponent for perceptual linearity compensation.

Functions§

linear_to_srgb
Converts linear luminance [0.0..1.0] to an 8-bit sRGB value [0..255].
sd_rounded_rect
Analytical Signed Distance Field for a rounded rectangle.
sdf_coverage
Computes pixel coverage weight [0.0, 1.0] from signed distance.
srgb_to_linear
Converts an 8-bit sRGB value [0..255] to linear luminance [0.0..1.0].

Type Aliases§

Rasterizer
Authentic analytical software rasterizer alias matching FrameBuffer.