Best Swap Buffer Format, RGBA or BGRA ?
-
mardi 3 avril 2012 11:02
In June 2010 SDK, the most format is DXGI_FORMAT_R8G8B8A8_UNORM (_SRGB)
Why Metro Samples now use DXGI_FORMAT_B8G8R8A8_UNORM , For compatibility reason or performance reason ?
- Modifié Raptor K mardi 3 avril 2012 12:15
Toutes les réponses
-
mardi 3 avril 2012 20:18
DXGI 1.0 / Direct3D 10 only supported RGB formats, not BGR.
DXGI 1.1 / Direct3D 11 added some BGR formats, but since these required WDDM 1.1 drivers to support we stuck with RGB formats for better 'compat' with Windows Vista.
Since all Metro style applications are Windows 8, you can count on DirectX 11.1 and WDDM 1.2 drivers or at least WDDM 1.1 drivers.
I believe there are some flip optimizatoin benefits to using BGR rather than RGB.
- Proposé comme réponse Rob CaplanMicrosoft Employee, Moderator mardi 3 avril 2012 20:39
- Marqué comme réponse Raptor K mercredi 4 avril 2012 02:37
-
mercredi 4 avril 2012 02:39
Yes , BGR is about 5% faster than RGB as I tested.
C++ DX11

