Skip to content

WEBGL_render_shared_exponent: Update color writemask validation#3780

Merged
kenrussell merged 1 commit into
KhronosGroup:mainfrom
lexaknyazev:rgb9e5
Jul 6, 2026
Merged

WEBGL_render_shared_exponent: Update color writemask validation#3780
kenrussell merged 1 commit into
KhronosGroup:mainfrom
lexaknyazev:rgb9e5

Conversation

@lexaknyazev

Copy link
Copy Markdown
Member

Original language was based on the Vulkan spec that required only red, green, and blue color writemask values to be the same.

It turned out that some GPUs apply the alpha writemask to the shared exponent component. As a result of that discovery, the Vulkan spec has been updated (1.4.355, dd June 26, 2026) to require all color writemask values to be the same for color attachments with the shared exponent pixel format.

Since the same requirement exists in Metal and Direct3D, the WebGL extension is updated to match native APIs.

New validation is implemented in Chromium since 152.0.7926.0.

Original language was based on the Vulkan spec that
required only red, green, and blue color writemask
values to be the same.

It turned out that some GPUs apply the alpha writemask to the
shared exponent component. As a result of that discovery, the
Vulkan spec has been updated (1.4.355, dd June 26, 2026) to
require all color writemask values to be the same for color
attachments with the shared exponent pixel format.

Since the same requirement exists in Metal and Direct3D,
the WebGL extension is updated to match native APIs.

New validation is implemented in Chromium since 152.0.7926.0.
@lexaknyazev lexaknyazev requested a review from kenrussell July 6, 2026 13:02

@kenrussell kenrussell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@kenrussell kenrussell merged commit 3d8e748 into KhronosGroup:main Jul 6, 2026
2 checks passed
@kenrussell

Copy link
Copy Markdown
Member

Note: this was associated with Chromium issue 529454067.

@lexaknyazev lexaknyazev deleted the rgb9e5 branch July 10, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants