I understand that HDR files are images encoded with a higher precision in order to keep more details.
When loading such images in real-time rendering applications using common Graphics APIs (DirectX, OpenGL, Vulkan), which are the "HDR texture formats" that ensure details will be preserved?

  • Are you talking about the texel formats the GPU understands, or are you talking about the file formats that images are stored in before texture upload? – Dan Hulme Nov 6 at 9:20
  • About the former – wil Nov 6 at 13:03
  • But connecting those with details about how the data is arranged in the image files would be interesting as well Dan. – wil Nov 6 at 13:05

In general, using floating point textures will help preserve HDR values. They can be 16-bit or 32-bit floats for the color channels, usually. In OpenGL you could choose the type to be GL_FLOAT for 32-bits per channel or GL_HALF_FLOAT for 16-bits per channel. In my experience, for image processing, 16-bits is usually enough and is half as much data.

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.