Jump to content
  • Advertisement

Archived

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

Adapter Format VS Backbuffer Format

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

What''s the difference. The reason I want to know is that I pass D3DFMT_X8R8G8B8 as the adapter display, but if I pass D3DFMT_A8R8G8B8 it fails, but I can pass either for the back buffer format. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
The D3DFMT_A8R8G8B8 specificies to include an 8-bit alpha channel which would be pointless for the frontbuffer (adapter display) and so it isn''t provided. Its the same reason you don''t have a Z or stencil for your frontbuffer. It only needs actual pixel info, that is RGB, because it''s only going straight to the monitor. The backbuffer on the otherhand obviously needs Z, stencil, and in your case an alpha channel so that processing can be done using them.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!