Merge pull request #728 from pcercuei/libretro-wiiu-v4
[pcsx_rearmed.git] / deps / libretro-common / include / defines / d3d_defines.h
1 /* Copyright (C) 2010-2021 The RetroArch team
2  *
3  * ---------------------------------------------------------------------------------------
4  * The following license statement only applies to this file (d3d_defines.h).
5  * ---------------------------------------------------------------------------------------
6  *
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:
12  *
13  * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14  *
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.
21  */
22
23 #ifndef D3DVIDEO_DEFINES_H
24 #define D3DVIDEO_DEFINES_H
25
26 #if defined(DEBUG) || defined(_DEBUG)
27 #define D3D_DEBUG_INFO
28 #endif
29
30 #if defined(HAVE_D3D9)
31 /* Direct3D 9 */
32 #if 0
33 #include <d3d9.h>
34 #endif
35
36 #if 0
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
50 #endif
51
52 #ifndef D3DCREATE_SOFTWARE_VERTEXPROCESSING
53 #define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0
54 #endif
55
56 #elif defined(HAVE_D3D8)
57 #if 0
58 #ifdef _XBOX
59 #include <xtl.h>
60 #else
61 #include "../gfx/include/d3d8/d3d8.h"
62 #endif
63 #endif
64
65 /* Direct3D 8 */
66 #if 0
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
78 #endif
79
80 #if !defined(D3DLOCK_NOSYSLOCK) && defined(_XBOX)
81 #define D3DLOCK_NOSYSLOCK (0)
82 #endif
83
84 #if 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
89 #endif
90 #endif
91
92 #endif