push 8724397e7ede0f147b6e05994a72142d44d4fecc
[wine/hacks.git] / dlls / d3d10 / d3d10_private.h
blob956d5ae602cf5cc56e5e8768ed078a67b32d0e35
1 /*
2 * Copyright 2008-2009 Henri Verbeet for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_D3D10_PRIVATE_H
20 #define __WINE_D3D10_PRIVATE_H
22 #include "wine/debug.h"
24 #define COBJMACROS
25 #include "winbase.h"
26 #include "winuser.h"
27 #include "objbase.h"
29 #include "d3d10.h"
31 /* TRACE helper functions */
32 const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type);
34 enum d3d10_effect_variable_type
36 D3D10_EVT_VERTEXSHADER = 6,
37 D3D10_EVT_PIXELSHADER = 7,
38 D3D10_EVT_GEOMETRYSHADER = 8,
41 struct d3d10_effect_variable
43 enum d3d10_effect_variable_type type;
44 DWORD idx_offset;
47 /* ID3D10EffectPass */
48 struct d3d10_effect_pass
50 const struct ID3D10EffectPassVtbl *vtbl;
52 char *name;
53 DWORD start;
54 DWORD variable_count;
55 struct d3d10_effect_variable *variables;
58 /* ID3D10EffectTechnique */
59 struct d3d10_effect_technique
61 const struct ID3D10EffectTechniqueVtbl *vtbl;
63 char *name;
64 DWORD start;
65 DWORD pass_count;
66 struct d3d10_effect_pass *passes;
69 /* ID3D10Effect */
70 extern const struct ID3D10EffectVtbl d3d10_effect_vtbl;
71 struct d3d10_effect
73 const struct ID3D10EffectVtbl *vtbl;
74 LONG refcount;
76 DWORD technique_count;
77 DWORD index_offset;
78 DWORD blendstate_count;
79 struct d3d10_effect_technique *techniques;
82 HRESULT d3d10_effect_parse(struct d3d10_effect *This, const void *data, SIZE_T data_size);
84 /* D3D10Core */
85 HRESULT WINAPI D3D10CoreCreateDevice(IDXGIFactory *factory, IDXGIAdapter *adapter,
86 UINT flags, DWORD unknown0, ID3D10Device **device);
88 #endif /* __WINE_D3D10_PRIVATE_H */