How to do nothing in HDR
Hi, Today's post is about how to do nothing in HDR. That's just a clickbait way of saying I want to transform an SDR/SRGB gamma encoded (hereafter referred to as just SDR) image such that it appears like an SDR image after PQ encoding. The buffer you'll retreive from an SDR swapchain on windows is precisely that: an SDR/SRGB gamma encoded texture. Essentially, I want to press the button that turns on HDR and see nothing happen. This is useful because maybe you want to toggle or lerp between SDR/HDR, so that you can compare the two. In the HDR Injector , I need to do this because once I've created the HDR swapchain, windows doesn't want to go back to the SDR swapchain for some reason . Also, I need to be able to sample parts of the SDR backbuffer to determine which parts had UI on them, or if color grading/tonemapping/post-processing occurred. Why is this even a problem? As I mentioned in my previous posts, HDR images are encoded in a different way tha...