Jump to content
  • Advertisement
Sign in to follow this  
Eitsch

D3D10 formats (B8G8R8A8) InputLayout

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

my source color array's layout is: rgba (each single bytes). using DXGI_FORMAT_R8G8B8A8_UNORM as internal format gives expected results (interchanged red and blue component). DXGI_FORMAT_B8G8R8A8_UNORM does not work (Input layout creation fails). according to current directx docs these formats don't work like the names promise. DXGI_FORMAT_R8G8B8A8_UNORM A four-component, 32-bit unsigned-integer format. ok.. DXGI_FORMAT_B8G8R8A8_UNORM A four-component, 16-bit unsigned-normalized integer format that supports 8-bit alpha. ...which seems inconsistent!.. so my question: what format should i use. i need bgra 32 bit.

Share this post


Link to post
Share on other sites
Advertisement
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!