Skip to content
Discussion options

You must be logged in to vote

The canvas swap chain's color space is configurable via GPUCanvasConfiguration.colorSpace. At this time, that can only be "srgb", which means yes, the data in the canvas is sRGB encoded - equivalent to 2d and webgl canvas defaults. In the future it should have options like "srgb-linear" (intended for use with higher bit depths) and "display-p3". In all cases the canvas is then supposed to be color managed, though it's browser dependent whether this actually take the physical display's color space/calibration into account.
(Note: "srgb" here refers to the sRGB color space, not the -srgb texture formats.)

  • Could it be possible to use a bgra8srgb render target for a swap chain to enable the…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@magcius
Comment options

@kainino0x
Comment options

@kainino0x
Comment options

Answer selected by kainino0x
Comment options

You must be logged in to vote
2 replies
@kainino0x
Comment options

@magcius
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants