D3D10 formats (B8G8R8A8) InputLayout
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement