kernel32: Add a 64-bit flag to the MODULE_GetBinaryType return value.
[wine] / dlls / d3d10 / d3d10_private.h
1 /*
2  * Copyright 2008-2009 Henri Verbeet for CodeWeavers
3  *
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.
8  *
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.
13  *
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
17  */
18
19 #ifndef __WINE_D3D10_PRIVATE_H
20 #define __WINE_D3D10_PRIVATE_H
21
22 #include "wine/debug.h"
23
24 #define COBJMACROS
25 #include "winbase.h"
26 #include "winuser.h"
27 #include "objbase.h"
28
29 #include "d3d10.h"
30
31 /* TRACE helper functions */
32 const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type);
33
34 enum d3d10_effect_object_type
35 {
36     D3D10_EOT_VERTEXSHADER = 6,
37     D3D10_EOT_PIXELSHADER = 7,
38     D3D10_EOT_GEOMETRYSHADER = 8,
39 };
40
41 struct d3d10_effect_object
42 {
43     struct d3d10_effect_pass *pass;
44     enum d3d10_effect_object_type type;
45     DWORD idx_offset;
46     void *data;
47 };
48
49 struct d3d10_effect_shader_variable
50 {
51     char *input_signature;
52     UINT input_signature_size;
53     union
54     {
55         ID3D10VertexShader *vs;
56         ID3D10PixelShader *ps;
57         ID3D10GeometryShader *gs;
58     } shader;
59 };
60
61 /* ID3D10EffectVariable */
62 struct d3d10_effect_variable
63 {
64     const struct ID3D10EffectVariableVtbl *vtbl;
65
66     char *name;
67     DWORD buffer_offset;
68 };
69
70 struct d3d10_effect_local_buffer
71 {
72     char *name;
73     DWORD data_size;
74     DWORD variable_count;
75     struct d3d10_effect_variable *variables;
76 };
77
78 /* ID3D10EffectPass */
79 struct d3d10_effect_pass
80 {
81     const struct ID3D10EffectPassVtbl *vtbl;
82
83     struct d3d10_effect_technique *technique;
84     char *name;
85     DWORD start;
86     DWORD object_count;
87     struct d3d10_effect_object *objects;
88 };
89
90 /* ID3D10EffectTechnique */
91 struct d3d10_effect_technique
92 {
93     const struct ID3D10EffectTechniqueVtbl *vtbl;
94
95     struct d3d10_effect *effect;
96     char *name;
97     DWORD pass_count;
98     struct d3d10_effect_pass *passes;
99 };
100
101 /* ID3D10Effect */
102 extern const struct ID3D10EffectVtbl d3d10_effect_vtbl;
103 struct d3d10_effect
104 {
105     const struct ID3D10EffectVtbl *vtbl;
106     LONG refcount;
107
108     ID3D10Device *device;
109     DWORD version;
110     DWORD local_buffer_count;
111     DWORD localobjects_count;
112     DWORD sharedbuffers_count;
113     DWORD sharedobjects_count;
114     DWORD technique_count;
115     DWORD index_offset;
116     DWORD dephstencilstate_count;
117     DWORD blendstate_count;
118     DWORD rasterizerstate_count;
119     DWORD samplerstate_count;
120
121     struct d3d10_effect_local_buffer *local_buffers;
122     struct d3d10_effect_technique *techniques;
123 };
124
125 HRESULT d3d10_effect_parse(struct d3d10_effect *This, const void *data, SIZE_T data_size);
126
127 /* D3D10Core */
128 HRESULT WINAPI D3D10CoreCreateDevice(IDXGIFactory *factory, IDXGIAdapter *adapter,
129         UINT flags, DWORD unknown0, ID3D10Device **device);
130
131 #endif /* __WINE_D3D10_PRIVATE_H */