Decodes an sRGB ColorRGBA into out as linear-light, and returns
out.
Alpha is copied, never transferred. Opacity is a coverage fraction rather
than a light quantity, and every colour space in §60a's pipeline carries it
linearly; running it through the curve is the classic colour-management bug.
source and out may be the same array. Allocates nothing.
Decodes an sRGB ColorRGBA into
outas linear-light, and returnsout.Alpha is copied, never transferred. Opacity is a coverage fraction rather than a light quantity, and every colour space in §60a's pipeline carries it linearly; running it through the curve is the classic colour-management bug.
sourceandoutmay be the same array. Allocates nothing.