Skip to content

Commit

Permalink
Restrict to TexImageSource. (exclude e.g. ArrayBufferViews)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdashg committed Sep 6, 2024
1 parent 7f19b19 commit d1c5e7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions specs/latest/1.0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4125,8 +4125,10 @@ <h3><a name="PIXEL_STORAGE_PARAMETERS">Pixel Storage Parameters</a></h3>

<dt><code>UNPACK_COLORSPACE_CONVERSION_WEBGL</code> of type <code>unsigned long</code>
<dd>If set to <code>BROWSER_DEFAULT_WEBGL</code>, then the browser's default colorspace conversion
is applied during subsequent <code>texImage2D</code> and <code>texSubImage2D</code> calls.
(For example, converting a display-p3 image to srgb)
(for example, converting a display-p3 image to srgb)
is applied during subsequent texture data upload calls
(e.g. <code>texImage2D</code> and <code>texSubImage2D</code>) that take an argument of TexImageSource.

The precise conversions may be specific to both the browser and file type.
If set to <code>NONE</code>, 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)
Expand Down

0 comments on commit d1c5e7d

Please sign in to comment.