microsoft / DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
https://walbourn.github.io/directx-tool-kit-for-directx-12/
MIT License
1.48k stars 393 forks source link

Added optional forceSRGB parameter to SaveWICTextureToFile #61

Closed walbourn closed 4 years ago

walbourn commented 4 years ago

With the new 'flip' style presentation model for Windows 10 or later, you don't actually use *_SRGB on the backbuffer format. Therefore, the resulting PNG screenshot would be washed out.

This adds a new optional paraemeter to allow forcing the sRGB metadata.