Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


D3DFORMAT questions

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

There are many surface formats that are a bit confusing. -What is the point of D3DFMT_X8R8G8B8? Is X intended for storing some different data other than an alpha channel? -What is the luminance in formats such as D3DFMT_L16? -What is the difference between D3DFMT_DXT1 and D3DFMT_DXT5 and is it a good idea to use them? -Is there a list of which formats are supported by hardware vendors? Thanks.

Share this post

Link to post
Share on other sites
In D3DFMT_X8R8G8B8, the X8 bits are unused.

In D3DFMT_L16, the luminance is a 16 bit unsigned integer. 0x0000 maps to 0.0f, 0xffff maps to 1.0f.

D3DFMT_DXT1 compresses to 4 bits per pixel, and contains RGB data. D3DFMT_DXT5 compresses to 8 bits per pixel, and contains RGB and alpha data.

List of formats depends on card and driver. There was a website which listed DX8 caps for many cards. But I forget where it was.


Share this post

Link to post
Share on other sites

  • 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!