Skip to content

Conversation

ccameron-chromium
Copy link
Contributor

@ccameron-chromium ccameron-chromium commented Oct 1, 2025

Copy the GPUToneMapping and GpuToneMappingMode properties from the WebGPU spec to the HTML spec. Add these properties to 2D canvas (now that 2D canvas has float16 support).

After this has landed, the WebGPU spec will need to be updated to point at the new CanvasToneMapping and CanvasToneMappingMode properties in HTML, in the same way that it uses PredefinedColorSpace from HTML.

This has been the planned trajectory of the API since its proposal to WebGPU.

Fixes #11424

  • At least two implementers are interested (and none opposed):
    • Chromium: Proposed
    • Gecko: ...
    • WebKit: ...
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
  • MDN issue is filed: …
  • The top of this comment includes a [clear commit message]

/canvas.html ( diff )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add tone mapping parameters to CanvasRenderingContext2DSettings
1 participant