Sign in to follow this  

D3D10 formats (B8G8R8A8) InputLayout

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

This topic is 3377 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this