Jump to content
  • Advertisement
Sign in to follow this  
Scoob Droolins

How to gamma correct 10-bit frame buffer

This topic is 594 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This post reminded me to ask this - my engine does all rendering in HDR using DXGI_FORMAT_R16G16B16A16_FLOAT targets.  The final frame (scan-out) buffer is DXGI_FORMAT_R8G8B8A8_UNORM_SRGB so linear-to-gamma is handled automatically by HW.  Switching to  DXGI_FORMAT_R10G10B10A2_UNORM for scan-out, there is no automatic gamma encode.  Should I use the standard inverse sRGB compand or is there a different method for 10-bits?

Share this post


Link to post
Share on other sites
Advertisement

all integer format swap chain buffer have to be gamma while floating point are linear. You can apply the formula here to do the conversion https://en.wikipedia.org/wiki/SRGB

 

Something to think about, wide gammut and hdr are changing ( good ) an old very rigid system, it is still early and we still wait a new windows to have this in windowed too, and of course, we wait for the monitors on the market while some 4k tvs now understand it already : https://msdn.microsoft.com/en-us/library/windows/desktop/mt742103(v=vs.85).aspx

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!