D3D10 formats (B8G8R8A8) InputLayout

Started by
1 comment, last by Eitsch 15 years, 7 months ago
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.
Advertisement
Swizzle the red & blue and use R8G8B8A8_UNORM
Assassin, aka RedBeard. andyc.org
sad...if this is the only solution...
simple internal conversions would be nice anyway;

This topic is closed to new replies.

Advertisement