2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS ReactX
4 * FILE: dll/directx/d3d9/format.h
5 * PURPOSE: d3d9.dll D3DFORMAT helper functions
6 * PROGRAMERS: Gregor Brunmar <gregor (dot) brunmar (at) home (dot) se>
13 #include "d3d9_private.h"
15 #define D3DFORMAT_OP_DMAP 0x00020000L
17 /* MSVC compile fix */
18 #ifndef D3DFORMAT_OP_NOTEXCOORDWRAPNORMIP
19 #define D3DFORMAT_OP_NOTEXCOORDWRAPNORMIP 0x01000000L
22 BOOL
IsBackBufferFormat(D3DFORMAT Format
);
24 BOOL
IsExtendedFormat(D3DFORMAT Format
);
26 BOOL
IsZBufferFormat(D3DFORMAT Format
);
28 BOOL
IsMultiElementFormat(D3DFORMAT Format
);
30 BOOL
IsSupportedFormatOp(LPD3D9_DRIVERCAPS pDriverCaps
, D3DFORMAT DisplayFormat
, DWORD FormatOp
);
32 HRESULT
CheckDeviceType(LPD3D9_DRIVERCAPS pDriverCaps
, D3DFORMAT DisplayFormat
, D3DFORMAT BackBufferFormat
, BOOL Windowed
);
34 HRESULT
CheckDeviceFormat(LPD3D9_DRIVERCAPS pDriverCaps
, D3DFORMAT AdapterFormat
, DWORD Usage
, D3DRESOURCETYPE RType
, D3DFORMAT CheckFormat
);
36 HRESULT
CheckDeviceFormatConversion(LPD3D9_DRIVERCAPS pDriverCaps
, D3DFORMAT SourceFormat
, D3DFORMAT TargetFormat
);
38 HRESULT
CheckDepthStencilMatch(LPD3D9_DRIVERCAPS pDriverCaps
, D3DFORMAT AdapterFormat
, D3DFORMAT RenderTargetFormat
, D3DFORMAT DepthStencilFormat
);