gdiplus: Don't use IPicture to manage the HDC associated with a GpBitmap.
[wine/wine-gecko.git] / include / d3d10effect.h
blobc77eefd67455c38b056230d0f1ef277d0df82e63
1 /*
2 * Copyright 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
20 #ifndef __WINE_D3D10EFFECT_H
21 #define __WINE_D3D10EFFECT_H
23 #include "d3d10.h"
25 #define D3D10_EFFECT_VARIABLE_POOLED 0x1
26 #define D3D10_EFFECT_VARIABLE_ANNOTATION 0x2
27 #define D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT 0x4
29 #ifndef D3D10_BYTES_FROM_BITS
30 #define D3D10_BYTES_FROM_BITS(x) (((x) + 7) >> 3)
31 #endif
33 typedef struct _D3D10_EFFECT_TYPE_DESC
35 LPCSTR TypeName;
36 D3D10_SHADER_VARIABLE_CLASS Class;
37 D3D10_SHADER_VARIABLE_TYPE Type;
38 UINT Elements;
39 UINT Members;
40 UINT Rows;
41 UINT Columns;
42 UINT PackedSize;
43 UINT UnpackedSize;
44 UINT Stride;
45 } D3D10_EFFECT_TYPE_DESC;
47 typedef struct _D3D10_EFFECT_VARIABLE_DESC
49 LPCSTR Name;
50 LPCSTR Semantic;
51 UINT Flags;
52 UINT Annotations;
53 UINT BufferOffset;
54 UINT ExplicitBindPoint;
55 } D3D10_EFFECT_VARIABLE_DESC;
57 typedef struct _D3D10_TECHNIQUE_DESC
59 LPCSTR Name;
60 UINT Passes;
61 UINT Annotations;
62 } D3D10_TECHNIQUE_DESC;
64 typedef struct _D3D10_STATE_BLOCK_MASK
66 BYTE VS;
67 BYTE VSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
68 BYTE VSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
69 BYTE VSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
70 BYTE GS;
71 BYTE GSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
72 BYTE GSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
73 BYTE GSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
74 BYTE PS;
75 BYTE PSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
76 BYTE PSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
77 BYTE PSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
78 BYTE IAVertexBuffers[D3D10_BYTES_FROM_BITS(D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT)];
79 BYTE IAIndexBuffer;
80 BYTE IAInputLayout;
81 BYTE IAPrimitiveTopology;
82 BYTE OMRenderTargets;
83 BYTE OMDepthStencilState;
84 BYTE OMBlendState;
85 BYTE RSViewports;
86 BYTE RSScissorRects;
87 BYTE RSRasterizerState;
88 BYTE SOBuffers;
89 BYTE Predication;
90 } D3D10_STATE_BLOCK_MASK;
92 typedef struct _D3D10_EFFECT_DESC
94 BOOL IsChildEffect;
95 UINT ConstantBuffers;
96 UINT SharedConstantBuffers;
97 UINT GlobalVariables;
98 UINT SharedGlobalVariables;
99 UINT Techniques;
100 } D3D10_EFFECT_DESC;
102 typedef struct _D3D10_PASS_DESC
104 LPCSTR Name;
105 UINT Annotations;
106 BYTE *pIAInputSignature;
107 SIZE_T IAInputSignatureSize;
108 UINT StencilRef;
109 UINT SampleMask;
110 FLOAT BlendFactor[4];
111 } D3D10_PASS_DESC;
113 typedef struct _D3D10_PASS_SHADER_DESC
115 struct ID3D10EffectShaderVariable *pShaderVariable;
116 UINT ShaderIndex;
117 } D3D10_PASS_SHADER_DESC;
119 DEFINE_GUID(IID_ID3D10EffectType, 0x4e9e1ddc, 0xcd9d, 0x4772, 0xa8, 0x37, 0x00, 0x18, 0x0b, 0x9b, 0x88, 0xfd);
121 #define INTERFACE ID3D10EffectType
122 DECLARE_INTERFACE(ID3D10EffectType)
124 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
125 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_TYPE_DESC *desc) PURE;
126 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeByIndex)(THIS_ UINT index) PURE;
127 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeByName)(THIS_ LPCSTR name) PURE;
128 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeBySemantic)(THIS_ LPCSTR semantic) PURE;
129 STDMETHOD_(LPCSTR, GetMemberName)(THIS_ UINT index) PURE;
130 STDMETHOD_(LPCSTR, GetMemberSemantic)(THIS_ UINT index) PURE;
132 #undef INTERFACE
134 DEFINE_GUID(IID_ID3D10EffectVariable, 0xae897105, 0x00e6, 0x45bf, 0xbb, 0x8e, 0x28, 0x1d, 0xd6, 0xdb, 0x8e, 0x1b);
136 #define INTERFACE ID3D10EffectVariable
137 DECLARE_INTERFACE(ID3D10EffectVariable)
139 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
140 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
141 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
142 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
143 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
144 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
145 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
146 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
147 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
148 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
149 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
150 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
151 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
152 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
153 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
154 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
155 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
156 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
157 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
158 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
159 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
160 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
161 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
162 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
163 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
165 #undef INTERFACE
167 DEFINE_GUID(IID_ID3D10EffectConstantBuffer, 0x56648f4d, 0xcc8b, 0x4444, 0xa5, 0xad, 0xb5, 0xa3, 0xd7, 0x6e, 0x91, 0xb3);
169 #define INTERFACE ID3D10EffectConstantBuffer
170 DECLARE_INTERFACE_(ID3D10EffectConstantBuffer, ID3D10EffectVariable)
172 /* ID3D10EffectVariable methods */
173 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
174 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
175 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
176 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
177 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
178 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
179 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
180 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
181 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
182 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
183 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
184 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
185 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
186 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
187 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
188 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
189 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
190 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
191 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
192 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
193 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
194 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
195 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
196 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
197 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
198 /* ID3D10EffectConstantBuffer methods */
199 STDMETHOD(SetConstantBuffer)(THIS_ ID3D10Buffer *buffer) PURE;
200 STDMETHOD(GetConstantBuffer)(THIS_ ID3D10Buffer **buffer) PURE;
201 STDMETHOD(SetTextureBuffer)(THIS_ ID3D10ShaderResourceView *view) PURE;
202 STDMETHOD(GetTextureBuffer)(THIS_ ID3D10ShaderResourceView **view) PURE;
204 #undef INTERFACE
206 DEFINE_GUID(IID_ID3D10EffectScalarVariable, 0x00e48f7b, 0xd2c8, 0x49e8, 0xa8, 0x6c, 0x02, 0x2d, 0xee, 0x53, 0x43, 0x1f);
208 #define INTERFACE ID3D10EffectScalarVariable
209 DECLARE_INTERFACE_(ID3D10EffectScalarVariable, ID3D10EffectVariable)
211 /* ID3D10EffectVariable methods */
212 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
213 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
214 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
215 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
216 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
217 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
218 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
219 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
220 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
221 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
222 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
223 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
224 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
225 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
226 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
227 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
228 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
229 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
230 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
231 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
232 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
233 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
234 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
235 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
236 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
237 /* ID3D10EffectScalarVariable methods */
238 STDMETHOD(SetFloat)(THIS_ float value) PURE;
239 STDMETHOD(GetFloat)(THIS_ float *value) PURE;
240 STDMETHOD(SetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
241 STDMETHOD(GetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
242 STDMETHOD(SetInt)(THIS_ int value) PURE;
243 STDMETHOD(GetInt)(THIS_ int *value) PURE;
244 STDMETHOD(SetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
245 STDMETHOD(GetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
246 STDMETHOD(SetBool)(THIS_ BOOL value) PURE;
247 STDMETHOD(GetBool)(THIS_ BOOL *value) PURE;
248 STDMETHOD(SetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
249 STDMETHOD(GetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
251 #undef INTERFACE
253 DEFINE_GUID(IID_ID3D10EffectVectorVariable, 0x62b98c44, 0x1f82, 0x4c67, 0xbc, 0xd0, 0x72, 0xcf, 0x8f, 0x21, 0x7e, 0x81);
255 #define INTERFACE ID3D10EffectVectorVariable
256 DECLARE_INTERFACE_(ID3D10EffectVectorVariable, ID3D10EffectVariable)
258 /* ID3D10EffectVariable methods */
259 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
260 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
261 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
262 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
263 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
264 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
265 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
266 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
267 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
268 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
269 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
270 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
271 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
272 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
273 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
274 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
275 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
276 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
277 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
278 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
279 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
280 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
281 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
282 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
283 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
284 /* ID3D10EffectVectorVariable methods */
285 STDMETHOD(SetBoolVector)(THIS_ BOOL *value) PURE;
286 STDMETHOD(SetIntVector)(THIS_ int *value) PURE;
287 STDMETHOD(SetFloatVector)(THIS_ float *value) PURE;
288 STDMETHOD(GetBoolVector)(THIS_ BOOL *value) PURE;
289 STDMETHOD(GetIntVector)(THIS_ int *value) PURE;
290 STDMETHOD(GetFloatVector)(THIS_ float *value) PURE;
291 STDMETHOD(SetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
292 STDMETHOD(SetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE;
293 STDMETHOD(SetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE;
294 STDMETHOD(GetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
295 STDMETHOD(GetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE;
296 STDMETHOD(GetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE;
298 #undef INTERFACE
300 DEFINE_GUID(IID_ID3D10EffectMatrixVariable, 0x50666c24, 0xb82f, 0x4eed, 0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0);
302 #define INTERFACE ID3D10EffectMatrixVariable
303 DECLARE_INTERFACE_(ID3D10EffectMatrixVariable, ID3D10EffectVariable)
305 /* ID3D10EffectVariable methods */
306 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
307 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
308 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
309 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
310 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
311 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
312 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
313 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
314 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
315 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
316 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
317 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
318 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
319 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
320 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
321 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
322 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
323 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
324 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
325 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
326 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
327 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
328 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
329 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
330 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
331 /* ID3D10EffectMatrixVariable methods */
332 STDMETHOD(SetMatrix)(THIS_ float *data) PURE;
333 STDMETHOD(GetMatrix)(THIS_ float *data) PURE;
334 STDMETHOD(SetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
335 STDMETHOD(GetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
336 STDMETHOD(SetMatrixTranspose)(THIS_ float *data) PURE;
337 STDMETHOD(GetMatrixTranspose)(THIS_ float *data) PURE;
338 STDMETHOD(SetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
339 STDMETHOD(GetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
341 #undef INTERFACE
343 DEFINE_GUID(IID_ID3D10EffectStringVariable, 0x71417501, 0x8df9, 0x4e0a, 0xa7, 0x8a, 0x25, 0x5f, 0x97, 0x56, 0xba, 0xff);
345 #define INTERFACE ID3D10EffectStringVariable
346 DECLARE_INTERFACE_(ID3D10EffectStringVariable, ID3D10EffectVariable)
348 /* ID3D10EffectVariable methods */
349 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
350 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
351 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
352 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
353 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
354 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
355 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
356 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
357 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
358 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
359 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
360 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
361 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
362 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
363 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
364 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
365 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
366 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
367 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
368 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
369 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
370 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
371 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
372 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
373 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
374 /* ID3D10EffectStringVariable methods */
375 STDMETHOD(GetString)(THIS_ LPCSTR *str) PURE;
376 STDMETHOD(GetStringArray)(THIS_ LPCSTR *strs, UINT offset, UINT count) PURE;
378 #undef INTERFACE
380 DEFINE_GUID(IID_ID3D10EffectShaderResourceVariable,
381 0xc0a7157b, 0xd872, 0x4b1d, 0x80, 0x73, 0xef, 0xc2, 0xac, 0xd4, 0xb1, 0xfc);
383 #define INTERFACE ID3D10EffectShaderResourceVariable
384 DECLARE_INTERFACE_(ID3D10EffectShaderResourceVariable, ID3D10EffectVariable)
386 /* ID3D10EffectVariable methods */
387 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
388 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
389 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
390 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
391 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
392 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
393 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
394 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
395 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
396 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
397 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
398 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
399 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
400 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
401 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
402 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
403 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
404 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
405 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
406 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
407 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
408 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
409 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
410 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
411 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
412 /* ID3D10EffectShaderResourceVariable methods */
413 STDMETHOD(SetResource)(THIS_ ID3D10ShaderResourceView *resource) PURE;
414 STDMETHOD(GetResource)(THIS_ ID3D10ShaderResourceView **resource) PURE;
415 STDMETHOD(SetResourceArray)(THIS_ ID3D10ShaderResourceView **resources, UINT offset, UINT count) PURE;
416 STDMETHOD(GetResourceArray)(THIS_ ID3D10ShaderResourceView **resources, UINT offset, UINT count) PURE;
418 #undef INTERFACE
420 DEFINE_GUID(IID_ID3D10EffectRenderTargetViewVariable,
421 0x28ca0cc3, 0xc2c9, 0x40bb, 0xb5, 0x7f, 0x67, 0xb7, 0x37, 0x12, 0x2b, 0x17);
423 #define INTERFACE ID3D10EffectRenderTargetViewVariable
424 DECLARE_INTERFACE_(ID3D10EffectRenderTargetViewVariable, ID3D10EffectVariable)
426 /* ID3D10EffectVariable methods */
427 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
428 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
429 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
430 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
431 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
432 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
433 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
434 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
435 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
436 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
437 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
438 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
439 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
440 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
441 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
442 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
443 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
444 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
445 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
446 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
447 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
448 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
449 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
450 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
451 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
452 /* ID3D10EffectRenderTargetViewVariable methods */
453 STDMETHOD(SetRenderTarget)(THIS_ ID3D10RenderTargetView *view) PURE;
454 STDMETHOD(GetRenderTarget)(THIS_ ID3D10RenderTargetView **view) PURE;
455 STDMETHOD(SetRenderTargetArray)(THIS_ ID3D10RenderTargetView **views, UINT offset, UINT count) PURE;
456 STDMETHOD(GetRenderTargetArray)(THIS_ ID3D10RenderTargetView **views, UINT offset, UINT count) PURE;
458 #undef INTERFACE
460 DEFINE_GUID(IID_ID3D10EffectDepthStencilViewVariable,
461 0x3e02c918, 0xcc79, 0x4985, 0xb6, 0x22, 0x2d, 0x92, 0xad, 0x70, 0x16, 0x23);
463 #define INTERFACE ID3D10EffectDepthStencilViewVariable
464 DECLARE_INTERFACE_(ID3D10EffectDepthStencilViewVariable, ID3D10EffectVariable)
466 /* ID3D10EffectVariable methods */
467 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
468 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
469 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
470 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
471 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
472 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
473 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
474 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
475 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
476 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
477 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
478 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
479 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
480 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
481 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
482 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
483 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
484 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
485 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
486 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
487 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
488 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
489 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
490 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
491 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
492 /* ID3D10EffectDepthStencilViewVariable methods */
493 STDMETHOD(SetDepthStencil)(THIS_ ID3D10DepthStencilView *view) PURE;
494 STDMETHOD(GetDepthStencil)(THIS_ ID3D10DepthStencilView **view) PURE;
495 STDMETHOD(SetDepthStencilArray)(THIS_ ID3D10DepthStencilView **views, UINT offset, UINT count) PURE;
496 STDMETHOD(GetDepthStencilArray)(THIS_ ID3D10DepthStencilView **views, UINT offset, UINT count) PURE;
498 #undef INTERFACE
500 DEFINE_GUID(IID_ID3D10EffectTechnique, 0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75);
502 #define INTERFACE ID3D10EffectTechnique
503 DECLARE_INTERFACE(ID3D10EffectTechnique)
505 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
506 STDMETHOD(GetDesc)(THIS_ D3D10_TECHNIQUE_DESC *desc) PURE;
507 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
508 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
509 STDMETHOD_(struct ID3D10EffectPass *, GetPassByIndex)(THIS_ UINT index) PURE;
510 STDMETHOD_(struct ID3D10EffectPass *, GetPassByName)(THIS_ LPCSTR name) PURE;
511 STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *mask) PURE;
513 #undef INTERFACE
515 DEFINE_GUID(IID_ID3D10Effect, 0x51b0ca8b, 0xec0b, 0x4519, 0x87, 0x0d, 0x8e, 0xe1, 0xcb, 0x50, 0x17, 0xc7);
517 #define INTERFACE ID3D10Effect
518 DECLARE_INTERFACE_(ID3D10Effect, IUnknown)
520 /* IUnknown methods */
521 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *object) PURE;
522 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
523 STDMETHOD_(ULONG, Release)(THIS) PURE;
524 /* ID3D10Effect methods */
525 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
526 STDMETHOD_(BOOL, IsPool)(THIS) PURE;
527 STDMETHOD(GetDevice)(THIS_ ID3D10Device **device) PURE;
528 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_DESC *desc) PURE;
529 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetConstantBufferByIndex)(THIS_ UINT index) PURE;
530 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetConstantBufferByName)(THIS_ LPCSTR name) PURE;
531 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableByIndex)(THIS_ UINT index) PURE;
532 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableByName)(THIS_ LPCSTR name) PURE;
533 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableBySemantic)(THIS_ LPCSTR semantic) PURE;
534 STDMETHOD_(struct ID3D10EffectTechnique *, GetTechniqueByIndex)(THIS_ UINT index) PURE;
535 STDMETHOD_(struct ID3D10EffectTechnique *, GetTechniqueByName)(THIS_ LPCSTR name) PURE;
536 STDMETHOD(Optimize)(THIS) PURE;
537 STDMETHOD_(BOOL, IsOptimized)(THIS) PURE;
539 #undef INTERFACE
541 DEFINE_GUID(IID_ID3D10EffectPool, 0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33);
543 #define INTERFACE ID3D10EffectPool
544 DECLARE_INTERFACE_(ID3D10EffectPool, IUnknown)
546 /* IUnknown methods */
547 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *object) PURE;
548 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
549 STDMETHOD_(ULONG, Release)(THIS) PURE;
550 /* ID3D10EffectPool methods */
551 STDMETHOD_(struct ID3D10Effect *, AsEffect)(THIS) PURE;
553 #undef INTERFACE
555 DEFINE_GUID(IID_ID3D10EffectPass, 0x5cfbeb89, 0x1a06, 0x46e0, 0xb2, 0x82, 0xe3, 0xf9, 0xbf, 0xa3, 0x6a, 0x54);
557 #define INTERFACE ID3D10EffectPass
558 DECLARE_INTERFACE(ID3D10EffectPass)
560 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
561 STDMETHOD(GetDesc)(THIS_ D3D10_PASS_DESC *desc) PURE;
562 STDMETHOD(GetVertexShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
563 STDMETHOD(GetGeometryShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
564 STDMETHOD(GetPixelShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
565 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
566 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
567 STDMETHOD(Apply)(THIS_ UINT flags) PURE;
568 STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *mask) PURE;
570 #undef INTERFACE
572 #ifdef __cplusplus
573 extern "C" {
574 #endif
576 HRESULT WINAPI D3D10CreateEffectFromMemory(void *data, SIZE_T data_size, UINT flags,
577 ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3D10Effect **effect);
579 #ifdef __cplusplus
581 #endif
583 #endif /* __WINE_D3D10EFFECT_H */