ReactOS  0.4.15-dev-1150-g593bcce
format.h
Go to the documentation of this file.
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 
23 
25 
27 
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_
HRESULT CheckDeviceFormat(LPD3D9_DRIVERCAPS pDriverCaps, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat)
Definition: format.c:326
HRESULT CheckDeviceType(LPD3D9_DRIVERCAPS pDriverCaps, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL Windowed)
Definition: format.c:224
_Must_inspect_result_ _In_ USAGE _In_ USHORT _In_ USAGE Usage
Definition: hidpi.h:382
BOOL IsMultiElementFormat(D3DFORMAT Format)
Definition: format.c:32
BOOL IsSupportedFormatOp(LPD3D9_DRIVERCAPS pDriverCaps, D3DFORMAT DisplayFormat, DWORD FormatOp)
Definition: format.c:206
unsigned int BOOL
Definition: ntddk_ex.h:94
enum _D3DFORMAT D3DFORMAT
BOOL IsExtendedFormat(D3DFORMAT Format)
Definition: format.c:20
LONG HRESULT
Definition: typedefs.h:79
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL IsBackBufferFormat(D3DFORMAT Format)
Definition: format.c:14
BOOL IsZBufferFormat(D3DFORMAT Format)
Definition: format.c:25
HRESULT CheckDepthStencilMatch(LPD3D9_DRIVERCAPS pDriverCaps, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat)
Definition: format.c:539
HRESULT CheckDeviceFormatConversion(LPD3D9_DRIVERCAPS pDriverCaps, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat)
Definition: format.c:495
enum _D3DRESOURCETYPE D3DRESOURCETYPE