encodesSrgb property
bool
get
encodesSrgb
Whether color encodes sRGB on write (an sRGB swapchain format). The scene then writes linear color and lets the attachment encode it, so the stored image matches what a plain target of the same scene holds.
Implementation
bool get encodesSrgb => switch (color.format) {
gpu.PixelFormat.r8g8b8a8UNormIntSRGB ||
gpu.PixelFormat.b8g8r8a8UNormIntSRGB => true,
_ => false,
};