1 /* Copyright (C) 2010-2021 The RetroArch team
3 * ---------------------------------------------------------------------------------------
4 * The following license statement only applies to this file (d3d_defines.h).
5 * ---------------------------------------------------------------------------------------
7 * Permission is hereby granted, free of charge,
8 * to any person obtaining a copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation the rights to
10 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
11 * and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 #ifndef D3DVIDEO_DEFINES_H
24 #define D3DVIDEO_DEFINES_H
26 #if defined(DEBUG) || defined(_DEBUG)
27 #define D3D_DEBUG_INFO
30 #if defined(HAVE_D3D9)
37 #define LPDIRECT3D LPDIRECT3D9
38 #define LPDIRECT3DDEVICE LPDIRECT3DDEVICE9
39 #define LPDIRECT3DTEXTURE LPDIRECT3DTEXTURE9
40 #define LPDIRECT3DCUBETEXTURE LPDIRECT3DCUBETEXTURE9
41 #define LPDIRECT3DVERTEXBUFFER LPDIRECT3DVERTEXBUFFER9
42 #define LPDIRECT3DVERTEXSHADER LPDIRECT3DVERTEXSHADER9
43 #define LPDIRECT3DPIXELSHADER LPDIRECT3DPIXELSHADER9
44 #define LPDIRECT3DSURFACE LPDIRECT3DSURFACE9
45 #define LPDIRECT3DVERTEXDECLARATION LPDIRECT3DVERTEXDECLARATION9
46 #define LPDIRECT3DVOLUMETEXTURE LPDIRECT3DVOLUMETEXTURE9
47 #define LPDIRECT3DRESOURCE LPDIRECT3DRESOURCE9
48 #define D3DVERTEXELEMENT D3DVERTEXELEMENT9
49 #define D3DVIEWPORT D3DVIEWPORT9
52 #ifndef D3DCREATE_SOFTWARE_VERTEXPROCESSING
53 #define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0
56 #elif defined(HAVE_D3D8)
61 #include "../gfx/include/d3d8/d3d8.h"
67 #define LPDIRECT3D LPDIRECT3D8
68 #define LPDIRECT3DDEVICE LPDIRECT3DDEVICE8
69 #define LPDIRECT3DTEXTURE LPDIRECT3DTEXTURE8
70 #define LPDIRECT3DCUBETEXTURE LPDIRECT3DCUBETEXTURE8
71 #define LPDIRECT3DVOLUMETEXTURE LPDIRECT3DVOLUMETEXTURE8
72 #define LPDIRECT3DVERTEXBUFFER LPDIRECT3DVERTEXBUFFER8
73 #define LPDIRECT3DVERTEXDECLARATION (void*)
74 #define LPDIRECT3DSURFACE LPDIRECT3DSURFACE8
75 #define LPDIRECT3DRESOURCE LPDIRECT3DRESOURCE8
76 #define D3DVERTEXELEMENT D3DVERTEXELEMENT8
77 #define D3DVIEWPORT D3DVIEWPORT8
80 #if !defined(D3DLOCK_NOSYSLOCK) && defined(_XBOX)
81 #define D3DLOCK_NOSYSLOCK (0)
85 #define D3DSAMP_ADDRESSU D3DTSS_ADDRESSU
86 #define D3DSAMP_ADDRESSV D3DTSS_ADDRESSV
87 #define D3DSAMP_MAGFILTER D3DTSS_MAGFILTER
88 #define D3DSAMP_MINFILTER D3DTSS_MINFILTER