Post #1268876
2026-02-19 13:52 UTC
@rtn Make an intermediate texture the size of the viewport:
drawing_dest = device.create_texture(..., format='rgba32float', ...)
Use that as the color attachment for all your drawing.
3/
Replies (1)
-
@kbob@chaos.social 2026-02-19 13:52
@rtn Then create a render pipeline + pass that copies from drawing_dest to the canvas applying the tone mapping function to each fragment. Here's WebGPU Fundamentals on adding postprocessing passes to WebGPU, though it doesn't specifically cover HDR. https://webgpufundamentals.org/webgpu/lessons/webgpu-image-adjustments.html 4/