Rendering to kR16G16B16A16_unorm?

58 views
Skip to first unread message

Marc Pabst

unread,
Jun 6, 2025, 11:53:17 AMJun 6
to skia-discuss
I'm trying to create a backend render target using `kR16G16B16A16_unorm_SkColorType` without much luck. Can Skia even render to that format?

I'm looking for a high-precision intermediate format because I'm then transforming everything using a custom gamma LUT, and using lower-precision texture formats leads to a loss of representable values for brighter pixel values (assuming an EOTF similar to sRGB).

Michael Ludwig

unread,
Jun 9, 2025, 9:16:19 AMJun 9
to skia-discuss
What backend of Skia are you using for rendering? You should also be able to use kRGBA_F16_SkColorType to increase precision.  The CPU backend *should* (from a quick scan of the code) support RGBA16 rendering, and most GPU backends support it as well, although it's limited by support on the particular device (e.g. OpenGL requires extensions to enable RGBA16 texture formats).
Reply all
Reply to author
Forward
0 new messages