* Sync up to trunk HEAD (r62286).
[reactos.git] / dll / directx / d3d9 / format.h
1 /*
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>
7 */
8
9 #ifndef _FORMAT_H_
10 #define _FORMAT_H_
11
12 #include <d3d9.h>
13 #include "d3d9_private.h"
14
15 #define D3DFORMAT_OP_DMAP 0x00020000L
16
17 /* MSVC compile fix */
18 #ifndef D3DFORMAT_OP_NOTEXCOORDWRAPNORMIP
19 #define D3DFORMAT_OP_NOTEXCOORDWRAPNORMIP 0x01000000L
20 #endif
21
22 BOOL IsBackBufferFormat(D3DFORMAT Format);
23
24 BOOL IsExtendedFormat(D3DFORMAT Format);
25
26 BOOL IsZBufferFormat(D3DFORMAT Format);
27
28 BOOL IsMultiElementFormat(D3DFORMAT Format);
29
30 BOOL IsSupportedFormatOp(LPD3D9_DRIVERCAPS pDriverCaps, D3DFORMAT DisplayFormat, DWORD FormatOp);
31
32 HRESULT CheckDeviceType(LPD3D9_DRIVERCAPS pDriverCaps, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL Windowed);
33
34 HRESULT CheckDeviceFormat(LPD3D9_DRIVERCAPS pDriverCaps, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat);
35
36 HRESULT CheckDeviceFormatConversion(LPD3D9_DRIVERCAPS pDriverCaps, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat);
37
38 HRESULT CheckDepthStencilMatch(LPD3D9_DRIVERCAPS pDriverCaps, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat);
39
40 #endif // _FORMAT_H_