Jump to content
  • Advertisement
Sign in to follow this  
ElFrogo

[MDX] D3DXFLOAT16 ??

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

Does D3DXFLOAT16 exist at all in Managed DX? If not, can someone point me to a conversion algo that takes the place of D3DXFloat32To16*()? Or is there some sort of 16bit float standard that they are using? !FROG

Share this post


Link to post
Share on other sites
Advertisement
Disclaimer: I've not touched the Managed DX stuff at all.

The 32-bit floating point format is s23e8, and the 16-bit floating point format says it's s10e5. That is to say:

16 32
-- --
Sign 1 1
Mantissa 10 23
Exponent 5 8

Wikipedia's explanation of IEEE floating point seems pretty good:

IEEE FP

So, if you want, you can bit-twiddle between the two.

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!