mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Not all eotf or eotf inverse are well defined for values outside the intended domain, so just ignore it and clamp it away. An alternative solution would be to use sign preserving pow here (i.e. sign(x) * pow(abs(x), p)), however I'm not sure that makes sense or is defined anywhere. Negative values here are likely a result of colors being outside the gamut range, so clipping them to 0 is more correct than mirroring from 0. |
||
|---|---|---|
| .. | ||
| shaders | ||
| meson.build | ||
| pass.c | ||
| pixel_format.c | ||
| renderer.c | ||
| texture.c | ||
| util.c | ||
| vulkan.c | ||