From 26525001771e67fe7fd8e4e1a5f01bd8babbb1b9 Mon Sep 17 00:00:00 2001 From: Kelsey Gilbert Date: Wed, 18 Sep 2024 17:19:10 -0700 Subject: [PATCH] UNPACK_COLORSPACE_CONVERSION_WEBGL now applies to all inputs, not just images. (#3689) UNPACK_COLORSPACE_CONVERSION_WEBGL now applies to all inputs, not just images, but is restricted to TexImageSource. (excludes e.g. ArrayBufferViews) Fixes #3683. --- specs/latest/1.0/index.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/specs/latest/1.0/index.html b/specs/latest/1.0/index.html index c86250454..5e8d8bfba 100644 --- a/specs/latest/1.0/index.html +++ b/specs/latest/1.0/index.html @@ -2769,7 +2769,7 @@

Texture objects

First, the source image data is conceptually converted to the color space specified by the unpackColorSpace - attribute, except if the source image data is an HTMLImageElement, and + attribute, except if the the UNPACK_COLORSPACE_CONVERSION_WEBGL pixel storage parameter is set to NONE.

@@ -4125,10 +4125,14 @@

Pixel Storage Parameters

UNPACK_COLORSPACE_CONVERSION_WEBGL of type unsigned long
If set to BROWSER_DEFAULT_WEBGL, then the browser's default colorspace conversion -is applied during subsequent texImage2D and texSubImage2D calls -taking HTMLImageElement. The precise conversions may be specific to both the browser -and file type. If set to NONE, no colorspace conversion is applied. The initial value -is BROWSER_DEFAULT_WEBGL. +(e.g. converting a display-p3 image to srgb) +is applied during subsequent texture data upload calls +(e.g. texImage2D and texSubImage2D) that take an argument of TexImageSource. + +The precise conversions may be specific to both the browser and file type. +If set to NONE, no colorspace conversion is applied, other than conversion to RGBA. +(For example, a rec709 YUV video is still converted to rec709 RGB data, but not then converted to e.g. srgb RGB data) +The initial value is BROWSER_DEFAULT_WEBGL.