Jump to content
  • Advertisement
Sign in to follow this  
rumble

Floating point dds

This topic is 2787 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

Is there a DirectX API function that saves a buffer in memory as a .dds to disk?

I have a 2D array of positive and negative floating point values generated by my program. I wish to save this as a .dds image, which I read supports float.

I can only find info on saving/exporting to .dds via DirectX Texture conversion tool or other stand alone programs.

I searched the The DirectX SDK help file for dds and there are only samples for reading the dds.

Also, I'm curious if floating point dds are fully supported by popular image processing or shader development software.

Thanks

Share this post


Link to post
Share on other sites
Advertisement
The easiest way I can think of is to create a texture of the appropriate format, lock it, copy your floating point values in, unlock it, and call D3DXSaveTextureToFile() (Assuming DX9). There's no function that will generate a .dds from an array of values that I know of.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!