push cc8bc80451cc24f4d7cf75168b569f0ebfe19547
[wine/hacks.git] / dlls / d3d10 / d3d10_private.h
blobc5a74aa54a31f4a51e8ed2e1ff091f6539cff8e9
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 struct d3d10_effect_pass *pass;
44 enum d3d10_effect_variable_type type;
45 DWORD idx_offset;
46 void *data;
49 struct d3d10_effect_shader_variable
51 char *input_signature;
52 UINT input_signature_size;
53 union
55 ID3D10VertexShader *vs;
56 ID3D10PixelShader *ps;
57 ID3D10GeometryShader *gs;
58 } shader;
61 /* ID3D10EffectPass */
62 struct d3d10_effect_pass
64 const struct ID3D10EffectPassVtbl *vtbl;
66 struct d3d10_effect_technique *technique;
67 char *name;
68 DWORD start;
69 DWORD variable_count;
70 struct d3d10_effect_variable *variables;
73 /* ID3D10EffectTechnique */
74 struct d3d10_effect_technique
76 const struct ID3D10EffectTechniqueVtbl *vtbl;
78 struct d3d10_effect *effect;
79 char *name;
80 DWORD start;
81 DWORD pass_count;
82 struct d3d10_effect_pass *passes;
85 /* ID3D10Effect */
86 extern const struct ID3D10EffectVtbl d3d10_effect_vtbl;
87 struct d3d10_effect
89 const struct ID3D10EffectVtbl *vtbl;
90 LONG refcount;
92 ID3D10Device *device;
93 DWORD version;
94 DWORD localbuffers_count;
95 DWORD localobjects_count;
96 DWORD sharedbuffers_count;
97 DWORD sharedobjects_count;
98 DWORD technique_count;
99 DWORD index_offset;
100 DWORD dephstencilstate_count;
101 DWORD blendstate_count;
102 DWORD rasterizerstate_count;
103 DWORD samplerstate_count;
104 struct d3d10_effect_technique *techniques;
107 HRESULT d3d10_effect_parse(struct d3d10_effect *This, const void *data, SIZE_T data_size);
109 /* D3D10Core */
110 HRESULT WINAPI D3D10CoreCreateDevice(IDXGIFactory *factory, IDXGIAdapter *adapter,
111 UINT flags, DWORD unknown0, ID3D10Device **device);
113 #endif /* __WINE_D3D10_PRIVATE_H */