ReactOS 0.4.15-dev-7934-g1dc8d80
d3d10effect.h
Go to the documentation of this file.
1/*
2 * Copyright 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
20#ifndef __WINE_D3D10EFFECT_H
21#define __WINE_D3D10EFFECT_H
22
23#include "d3d10.h"
24
25#define D3D10_EFFECT_VARIABLE_POOLED 0x1
26#define D3D10_EFFECT_VARIABLE_ANNOTATION 0x2
27#define D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT 0x4
28
29#ifndef D3D10_BYTES_FROM_BITS
30#define D3D10_BYTES_FROM_BITS(x) (((x) + 7) >> 3)
31#endif
32
34{
60
62{
63 const char *TypeName;
74
76{
77 const char *Name;
78 const char *Semantic;
84
86{
87 const char *Name;
91
93{
119
120typedef struct _D3D10_EFFECT_DESC
121{
129
131{
136 const char *SODecl;
140
141typedef struct _D3D10_PASS_DESC
142{
143 const char *Name;
151
153{
154 struct ID3D10EffectShaderVariable *pShaderVariable;
157
158#define D3D10_EFFECT_COMPILE_CHILD_EFFECT 0x0001
159#define D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS 0x0002
160#define D3D10_EFFECT_SINGLE_THREADED 0x0008
161
162DEFINE_GUID(IID_ID3D10EffectType, 0x4e9e1ddc, 0xcd9d, 0x4772, 0xa8, 0x37, 0x00, 0x18, 0x0b, 0x9b, 0x88, 0xfd);
163
164#define INTERFACE ID3D10EffectType
165DECLARE_INTERFACE(ID3D10EffectType)
166{
167 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
169 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeByIndex)(THIS_ UINT index) PURE;
170 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeByName)(THIS_ const char *name) PURE;
171 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeBySemantic)(THIS_ const char *semantic) PURE;
172 STDMETHOD_(const char *, GetMemberName)(THIS_ UINT index) PURE;
173 STDMETHOD_(const char *, GetMemberSemantic)(THIS_ UINT index) PURE;
174};
175#undef INTERFACE
176
177DEFINE_GUID(IID_ID3D10EffectVariable, 0xae897105, 0x00e6, 0x45bf, 0xbb, 0x8e, 0x28, 0x1d, 0xd6, 0xdb, 0x8e, 0x1b);
178
179#define INTERFACE ID3D10EffectVariable
180DECLARE_INTERFACE(ID3D10EffectVariable)
181{
182 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
183 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
185 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
186 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
187 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
188 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
189 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
190 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
191 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
192 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
193 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
194 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
195 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
196 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
197 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
198 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
199 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
200 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
201 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
202 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
203 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
204 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
205 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
206 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
207};
208#undef INTERFACE
209
210DEFINE_GUID(IID_ID3D10EffectConstantBuffer, 0x56648f4d, 0xcc8b, 0x4444, 0xa5, 0xad, 0xb5, 0xa3, 0xd7, 0x6e, 0x91, 0xb3);
211
212#define INTERFACE ID3D10EffectConstantBuffer
213DECLARE_INTERFACE_(ID3D10EffectConstantBuffer, ID3D10EffectVariable)
214{
215 /* ID3D10EffectVariable methods */
216 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
217 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
219 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
220 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
221 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
222 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
223 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
224 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
225 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
226 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
227 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
228 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
229 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
230 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
231 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
232 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
233 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
234 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
235 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
236 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
237 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
238 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
239 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
240 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
241 /* ID3D10EffectConstantBuffer methods */
242 STDMETHOD(SetConstantBuffer)(THIS_ ID3D10Buffer *buffer) PURE;
243 STDMETHOD(GetConstantBuffer)(THIS_ ID3D10Buffer **buffer) PURE;
245 STDMETHOD(GetTextureBuffer)(THIS_ ID3D10ShaderResourceView **view) PURE;
246};
247#undef INTERFACE
248
249DEFINE_GUID(IID_ID3D10EffectScalarVariable, 0x00e48f7b, 0xd2c8, 0x49e8, 0xa8, 0x6c, 0x02, 0x2d, 0xee, 0x53, 0x43, 0x1f);
250
251#define INTERFACE ID3D10EffectScalarVariable
252DECLARE_INTERFACE_(ID3D10EffectScalarVariable, ID3D10EffectVariable)
253{
254 /* ID3D10EffectVariable methods */
255 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
256 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
258 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
259 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
260 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
261 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
262 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
263 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
264 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
265 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
266 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
267 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
268 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
269 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
270 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
271 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
272 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
273 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
274 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
275 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
276 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
277 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
278 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
279 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
280 /* ID3D10EffectScalarVariable methods */
282 STDMETHOD(GetFloat)(THIS_ float *value) PURE;
284 STDMETHOD(GetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
286 STDMETHOD(GetInt)(THIS_ int *value) PURE;
288 STDMETHOD(GetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
290 STDMETHOD(GetBool)(THIS_ BOOL *value) PURE;
292 STDMETHOD(GetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
293};
294#undef INTERFACE
295
296DEFINE_GUID(IID_ID3D10EffectVectorVariable, 0x62b98c44, 0x1f82, 0x4c67, 0xbc, 0xd0, 0x72, 0xcf, 0x8f, 0x21, 0x7e, 0x81);
297
298#define INTERFACE ID3D10EffectVectorVariable
299DECLARE_INTERFACE_(ID3D10EffectVectorVariable, ID3D10EffectVariable)
300{
301 /* ID3D10EffectVariable methods */
302 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
303 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
305 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
306 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
307 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
308 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
309 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
310 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
311 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
312 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
313 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
314 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
315 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
316 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
317 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
318 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
319 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
320 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
321 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
322 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
323 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
324 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
325 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
326 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
327 /* ID3D10EffectVectorVariable methods */
328 STDMETHOD(SetBoolVector)(THIS_ BOOL *value) PURE;
329 STDMETHOD(SetIntVector)(THIS_ int *value) PURE;
330 STDMETHOD(SetFloatVector)(THIS_ float *value) PURE;
331 STDMETHOD(GetBoolVector)(THIS_ BOOL *value) PURE;
332 STDMETHOD(GetIntVector)(THIS_ int *value) PURE;
333 STDMETHOD(GetFloatVector)(THIS_ float *value) PURE;
334 STDMETHOD(SetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
335 STDMETHOD(SetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE;
336 STDMETHOD(SetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE;
337 STDMETHOD(GetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
338 STDMETHOD(GetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE;
339 STDMETHOD(GetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE;
340};
341#undef INTERFACE
342
343DEFINE_GUID(IID_ID3D10EffectMatrixVariable, 0x50666c24, 0xb82f, 0x4eed, 0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0);
344
345#define INTERFACE ID3D10EffectMatrixVariable
346DECLARE_INTERFACE_(ID3D10EffectMatrixVariable, ID3D10EffectVariable)
347{
348 /* ID3D10EffectVariable methods */
349 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
350 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
352 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
353 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
354 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
355 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
356 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *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 /* ID3D10EffectMatrixVariable methods */
378 STDMETHOD(GetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
380 STDMETHOD(GetMatrixTranspose)(THIS_ float *data) PURE;
382 STDMETHOD(GetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
383};
384#undef INTERFACE
385
386DEFINE_GUID(IID_ID3D10EffectStringVariable, 0x71417501, 0x8df9, 0x4e0a, 0xa7, 0x8a, 0x25, 0x5f, 0x97, 0x56, 0xba, 0xff);
387
388#define INTERFACE ID3D10EffectStringVariable
389DECLARE_INTERFACE_(ID3D10EffectStringVariable, ID3D10EffectVariable)
390{
391 /* ID3D10EffectVariable methods */
392 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
393 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
395 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
396 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
397 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
398 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
399 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
400 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
401 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
402 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
403 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
404 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
405 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
406 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
407 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
408 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
409 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
410 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
411 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
412 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
413 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
414 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
415 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
416 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
417 /* ID3D10EffectStringVariable methods */
418 STDMETHOD(GetString)(THIS_ const char **str) PURE;
419 STDMETHOD(GetStringArray)(THIS_ const char **strs, UINT offset, UINT count) PURE;
420};
421#undef INTERFACE
422
423DEFINE_GUID(IID_ID3D10EffectShaderResourceVariable,
424 0xc0a7157b, 0xd872, 0x4b1d, 0x80, 0x73, 0xef, 0xc2, 0xac, 0xd4, 0xb1, 0xfc);
425
426#define INTERFACE ID3D10EffectShaderResourceVariable
427DECLARE_INTERFACE_(ID3D10EffectShaderResourceVariable, ID3D10EffectVariable)
428{
429 /* ID3D10EffectVariable methods */
430 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
431 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
433 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
434 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
435 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
436 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
437 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
438 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
439 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
440 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
441 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
442 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
443 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
444 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
445 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
446 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
447 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
448 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
449 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
450 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
451 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
452 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
453 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
454 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
455 /* ID3D10EffectShaderResourceVariable methods */
460};
461#undef INTERFACE
462
463DEFINE_GUID(IID_ID3D10EffectRenderTargetViewVariable,
464 0x28ca0cc3, 0xc2c9, 0x40bb, 0xb5, 0x7f, 0x67, 0xb7, 0x37, 0x12, 0x2b, 0x17);
465
466#define INTERFACE ID3D10EffectRenderTargetViewVariable
467DECLARE_INTERFACE_(ID3D10EffectRenderTargetViewVariable, ID3D10EffectVariable)
468{
469 /* ID3D10EffectVariable methods */
470 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
471 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
473 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
474 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
475 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
476 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
477 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
478 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
479 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
480 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
481 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
482 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
483 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
484 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
485 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
486 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
487 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
488 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
489 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
490 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
491 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
492 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
493 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
494 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
495 /* ID3D10EffectRenderTargetViewVariable methods */
497 STDMETHOD(GetRenderTarget)(THIS_ ID3D10RenderTargetView **view) PURE;
498 STDMETHOD(SetRenderTargetArray)(THIS_ ID3D10RenderTargetView **views, UINT offset, UINT count) PURE;
499 STDMETHOD(GetRenderTargetArray)(THIS_ ID3D10RenderTargetView **views, UINT offset, UINT count) PURE;
500};
501#undef INTERFACE
502
503DEFINE_GUID(IID_ID3D10EffectDepthStencilViewVariable,
504 0x3e02c918, 0xcc79, 0x4985, 0xb6, 0x22, 0x2d, 0x92, 0xad, 0x70, 0x16, 0x23);
505
506#define INTERFACE ID3D10EffectDepthStencilViewVariable
507DECLARE_INTERFACE_(ID3D10EffectDepthStencilViewVariable, ID3D10EffectVariable)
508{
509 /* ID3D10EffectVariable methods */
510 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
511 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
513 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
514 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
515 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
516 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
517 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
518 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
519 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
520 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
521 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
522 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
523 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
524 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
525 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
526 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
527 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
528 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
529 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
530 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
531 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
532 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
533 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
534 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
535 /* ID3D10EffectDepthStencilViewVariable methods */
537 STDMETHOD(GetDepthStencil)(THIS_ ID3D10DepthStencilView **view) PURE;
538 STDMETHOD(SetDepthStencilArray)(THIS_ ID3D10DepthStencilView **views, UINT offset, UINT count) PURE;
539 STDMETHOD(GetDepthStencilArray)(THIS_ ID3D10DepthStencilView **views, UINT offset, UINT count) PURE;
540};
541#undef INTERFACE
542
543DEFINE_GUID(IID_ID3D10EffectShaderVariable, 0x80849279, 0xc799, 0x4797, 0x8c, 0x33, 0x04, 0x07, 0xa0, 0x7d, 0x9e, 0x06);
544
545#define INTERFACE ID3D10EffectShaderVariable
546DECLARE_INTERFACE_(ID3D10EffectShaderVariable, ID3D10EffectVariable)
547{
548 /* ID3D10EffectVariable methods */
549 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
550 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
552 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
553 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
554 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
555 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
556 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
557 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
558 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
559 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
560 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
561 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
562 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
563 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
564 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
565 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
566 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
567 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
568 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
569 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
570 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
571 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
572 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
573 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
574 /* ID3D10EffectShaderVariable methods */
579 STDMETHOD(GetInputSignatureElementDesc)(THIS_ UINT shader_index, UINT element_index,
581 STDMETHOD(GetOutputSignatureElementDesc)(THIS_ UINT shader_index, UINT element_index,
583};
584#undef INTERFACE
585
586DEFINE_GUID(IID_ID3D10EffectBlendVariable, 0x1fcd2294, 0xdf6d, 0x4eae, 0x86, 0xb3, 0x0e, 0x91, 0x60, 0xcf, 0xb0, 0x7b);
587
588#define INTERFACE ID3D10EffectBlendVariable
589DECLARE_INTERFACE_(ID3D10EffectBlendVariable, ID3D10EffectVariable)
590{
591 /* ID3D10EffectVariable methods */
592 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
593 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
595 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
596 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
597 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
598 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
599 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
600 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
601 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
602 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
603 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
604 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
605 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
606 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
607 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
608 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
609 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
610 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
611 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
612 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
613 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
614 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
615 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
616 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
617 /* ID3D10EffectBlendVariable methods */
618 STDMETHOD(GetBlendState)(THIS_ UINT index, ID3D10BlendState **blend_state) PURE;
619 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_BLEND_DESC *desc) PURE;
620};
621#undef INTERFACE
622
623DEFINE_GUID(IID_ID3D10EffectDepthStencilVariable,
624 0xaf482368, 0x330a, 0x46a5, 0x9a, 0x5c, 0x01, 0xc7, 0x1a, 0xf2, 0x4c, 0x8d);
625
626#define INTERFACE ID3D10EffectDepthStencilVariable
627DECLARE_INTERFACE_(ID3D10EffectDepthStencilVariable, ID3D10EffectVariable)
628{
629 /* ID3D10EffectVariable methods */
630 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
631 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
633 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
634 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
635 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
636 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
637 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
638 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
639 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
640 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
641 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
642 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
643 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
644 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
645 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
646 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
647 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
648 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
649 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
650 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
651 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
652 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
653 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
654 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
655 /* ID3D10EffectDepthStencilVariable methods */
656 STDMETHOD(GetDepthStencilState)(THIS_ UINT index, ID3D10DepthStencilState **depth_stencil_state) PURE;
658};
659#undef INTERFACE
660
661DEFINE_GUID(IID_ID3D10EffectRasterizerVariable,
662 0x21af9f0e, 0x4d94, 0x4ea9, 0x97, 0x85, 0x2c, 0xb7, 0x6b, 0x8c, 0x0b, 0x34);
663
664#define INTERFACE ID3D10EffectRasterizerVariable
665DECLARE_INTERFACE_(ID3D10EffectRasterizerVariable, ID3D10EffectVariable)
666{
667 /* ID3D10EffectVariable methods */
668 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
669 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
671 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
672 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
673 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
674 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
675 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
676 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
677 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
678 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
679 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
680 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
681 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
682 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
683 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
684 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
685 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
686 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
687 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
688 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
689 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
690 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
691 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
692 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
693 /* ID3D10EffectRasterizerVariable methods */
694 STDMETHOD(GetRasterizerState)(THIS_ UINT index, ID3D10RasterizerState **rasterizer_state) PURE;
696};
697#undef INTERFACE
698
699DEFINE_GUID(IID_ID3D10EffectSamplerVariable,
700 0x6530d5c7, 0x07e9, 0x4271, 0xa4, 0x18, 0xe7, 0xce, 0x4b, 0xd1, 0xe4, 0x80);
701
702#define INTERFACE ID3D10EffectSamplerVariable
703DECLARE_INTERFACE_(ID3D10EffectSamplerVariable, ID3D10EffectVariable)
704{
705 /* ID3D10EffectVariable methods */
706 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
707 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
709 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
710 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
711 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
712 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
713 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
714 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
715 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
716 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
717 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
718 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
719 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
720 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
721 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
722 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
723 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
724 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
725 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
726 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
727 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
728 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
729 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
730 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
731 /* ID3D10EffectSamplerVariable methods */
734};
735#undef INTERFACE
736
737DEFINE_GUID(IID_ID3D10EffectTechnique, 0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75);
738
739#define INTERFACE ID3D10EffectTechnique
740DECLARE_INTERFACE(ID3D10EffectTechnique)
741{
742 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
744 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
745 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
746 STDMETHOD_(struct ID3D10EffectPass *, GetPassByIndex)(THIS_ UINT index) PURE;
747 STDMETHOD_(struct ID3D10EffectPass *, GetPassByName)(THIS_ const char *name) PURE;
748 STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *mask) PURE;
749};
750#undef INTERFACE
751
752DEFINE_GUID(IID_ID3D10Effect, 0x51b0ca8b, 0xec0b, 0x4519, 0x87, 0x0d, 0x8e, 0xe1, 0xcb, 0x50, 0x17, 0xc7);
753
754#define INTERFACE ID3D10Effect
756{
757 /* IUnknown methods */
761 /* ID3D10Effect methods */
762 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
763 STDMETHOD_(BOOL, IsPool)(THIS) PURE;
766 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetConstantBufferByIndex)(THIS_ UINT index) PURE;
767 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetConstantBufferByName)(THIS_ const char *name) PURE;
768 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableByIndex)(THIS_ UINT index) PURE;
769 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableByName)(THIS_ const char *name) PURE;
770 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableBySemantic)(THIS_ const char *semantic) PURE;
771 STDMETHOD_(struct ID3D10EffectTechnique *, GetTechniqueByIndex)(THIS_ UINT index) PURE;
772 STDMETHOD_(struct ID3D10EffectTechnique *, GetTechniqueByName)(THIS_ const char *name) PURE;
773 STDMETHOD(Optimize)(THIS) PURE;
774 STDMETHOD_(BOOL, IsOptimized)(THIS) PURE;
775};
776#undef INTERFACE
777
778DEFINE_GUID(IID_ID3D10EffectPool, 0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33);
779
780#define INTERFACE ID3D10EffectPool
781DECLARE_INTERFACE_(ID3D10EffectPool, IUnknown)
782{
783 /* IUnknown methods */
787 /* ID3D10EffectPool methods */
788 STDMETHOD_(struct ID3D10Effect *, AsEffect)(THIS) PURE;
789};
790#undef INTERFACE
791
792DEFINE_GUID(IID_ID3D10EffectPass, 0x5cfbeb89, 0x1a06, 0x46e0, 0xb2, 0x82, 0xe3, 0xf9, 0xbf, 0xa3, 0x6a, 0x54);
793
794#define INTERFACE ID3D10EffectPass
795DECLARE_INTERFACE(ID3D10EffectPass)
796{
797 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
799 STDMETHOD(GetVertexShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
800 STDMETHOD(GetGeometryShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
801 STDMETHOD(GetPixelShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
802 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
803 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
804 STDMETHOD(Apply)(THIS_ UINT flags) PURE;
805 STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *mask) PURE;
806};
807#undef INTERFACE
808
809DEFINE_GUID(IID_ID3D10StateBlock, 0x0803425a, 0x57f5, 0x4dd6, 0x94, 0x65, 0xa8, 0x75, 0x70, 0x83, 0x4a, 0x08);
810
811#define INTERFACE ID3D10StateBlock
812DECLARE_INTERFACE_(ID3D10StateBlock, IUnknown)
813{
814 /* IUnknown methods */
818 /* ID3D10StateBlock methods */
820 STDMETHOD(Apply)(THIS) PURE;
821 STDMETHOD(ReleaseAllDeviceObjects)(THIS) PURE;
823};
824#undef INTERFACE
825
826#ifdef __cplusplus
827extern "C" {
828#endif
829
831 const D3D10_SHADER_MACRO *defines, ID3D10Include *include, UINT hlsl_flags, UINT fx_flags,
832 ID3D10Blob **effect, ID3D10Blob **errors);
834 ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3D10Effect **effect);
836 D3D10_STATE_BLOCK_MASK *mask, ID3D10StateBlock **stateblock);
837
842 D3D10_DEVICE_STATE_TYPES state_type, UINT start_idx, UINT count);
845 D3D10_DEVICE_STATE_TYPES state_type, UINT start_idx, UINT count);
847 D3D10_DEVICE_STATE_TYPES state_type, UINT idx);
852
853#ifdef __cplusplus
854}
855#endif
856
857#endif /* __WINE_D3D10EFFECT_H */
static LPVOID GetResource(LPCWSTR FontName, LPDWORD Size)
#define index(s, c)
Definition: various.h:29
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
#define DECLARE_INTERFACE(i)
Definition: basetyps.h:73
struct _Capture Capture
Definition: capture.h:24
_In_ BOOLEAN Release
Definition: cdrom.h:920
const unsigned int D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT
Definition: d3d10.idl:98
const unsigned int D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
Definition: d3d10.idl:93
const unsigned int D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
Definition: d3d10.idl:75
const unsigned int D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT
Definition: d3d10.idl:147
struct _D3D10_PASS_SHADER_DESC D3D10_PASS_SHADER_DESC
struct _D3D10_EFFECT_TYPE_DESC D3D10_EFFECT_TYPE_DESC
enum _D3D10_DEVICE_STATE_TYPES D3D10_DEVICE_STATE_TYPES
#define D3D10_BYTES_FROM_BITS(x)
Definition: d3d10effect.h:30
HRESULT WINAPI D3D10CompileEffectFromMemory(void *data, SIZE_T data_size, const char *filename, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, UINT hlsl_flags, UINT fx_flags, ID3D10Blob **effect, ID3D10Blob **errors)
HRESULT WINAPI D3D10StateBlockMaskEnableCapture(D3D10_STATE_BLOCK_MASK *mask, D3D10_DEVICE_STATE_TYPES state_type, UINT start_idx, UINT count)
HRESULT WINAPI D3D10StateBlockMaskEnableAll(D3D10_STATE_BLOCK_MASK *mask)
HRESULT WINAPI D3D10StateBlockMaskDisableAll(D3D10_STATE_BLOCK_MASK *mask)
struct _D3D10_PASS_DESC D3D10_PASS_DESC
struct _D3D10_EFFECT_SHADER_DESC D3D10_EFFECT_SHADER_DESC
HRESULT WINAPI D3D10CreateEffectFromMemory(void *data, SIZE_T data_size, UINT flags, ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3D10Effect **effect)
HRESULT WINAPI D3D10StateBlockMaskUnion(D3D10_STATE_BLOCK_MASK *mask_x, D3D10_STATE_BLOCK_MASK *mask_y, D3D10_STATE_BLOCK_MASK *result)
struct _D3D10_EFFECT_VARIABLE_DESC D3D10_EFFECT_VARIABLE_DESC
struct _D3D10_EFFECT_DESC D3D10_EFFECT_DESC
HRESULT WINAPI D3D10CreateStateBlock(ID3D10Device *device, D3D10_STATE_BLOCK_MASK *mask, ID3D10StateBlock **stateblock)
HRESULT WINAPI D3D10StateBlockMaskDifference(D3D10_STATE_BLOCK_MASK *mask_x, D3D10_STATE_BLOCK_MASK *mask_y, D3D10_STATE_BLOCK_MASK *result)
struct _D3D10_TECHNIQUE_DESC D3D10_TECHNIQUE_DESC
HRESULT WINAPI D3D10StateBlockMaskIntersect(D3D10_STATE_BLOCK_MASK *mask_x, D3D10_STATE_BLOCK_MASK *mask_y, D3D10_STATE_BLOCK_MASK *result)
struct _D3D10_STATE_BLOCK_MASK D3D10_STATE_BLOCK_MASK
_D3D10_DEVICE_STATE_TYPES
Definition: d3d10effect.h:34
@ D3D10_DST_PS_SHADER_RESOURCES
Definition: d3d10effect.h:49
@ D3D10_DST_VS
Definition: d3d10effect.h:39
@ D3D10_DST_IA_INPUT_LAYOUT
Definition: d3d10effect.h:53
@ D3D10_DST_OM_RENDER_TARGETS
Definition: d3d10effect.h:36
@ D3D10_DST_GS_SHADER_RESOURCES
Definition: d3d10effect.h:45
@ D3D10_DST_DEPTH_STENCIL_STATE
Definition: d3d10effect.h:37
@ D3D10_DST_RS_SCISSOR_RECTS
Definition: d3d10effect.h:56
@ D3D10_DST_PS_CONSTANT_BUFFERS
Definition: d3d10effect.h:50
@ D3D10_DST_IA_VERTEX_BUFFERS
Definition: d3d10effect.h:51
@ D3D10_DST_GS_CONSTANT_BUFFERS
Definition: d3d10effect.h:46
@ D3D10_DST_BLEND_STATE
Definition: d3d10effect.h:38
@ D3D10_DST_IA_PRIMITIVE_TOPOLOGY
Definition: d3d10effect.h:54
@ D3D10_DST_RS_VIEWPORTS
Definition: d3d10effect.h:55
@ D3D10_DST_PS
Definition: d3d10effect.h:47
@ D3D10_DST_GS
Definition: d3d10effect.h:43
@ D3D10_DST_PS_SAMPLERS
Definition: d3d10effect.h:48
@ D3D10_DST_SO_BUFFERS
Definition: d3d10effect.h:35
@ D3D10_DST_VS_SHADER_RESOURCES
Definition: d3d10effect.h:41
@ D3D10_DST_VS_SAMPLERS
Definition: d3d10effect.h:40
@ D3D10_DST_PREDICATION
Definition: d3d10effect.h:58
@ D3D10_DST_RS_RASTERIZER_STATE
Definition: d3d10effect.h:57
@ D3D10_DST_GS_SAMPLERS
Definition: d3d10effect.h:44
@ D3D10_DST_VS_CONSTANT_BUFFERS
Definition: d3d10effect.h:42
@ D3D10_DST_IA_INDEX_BUFFER
Definition: d3d10effect.h:52
HRESULT WINAPI D3D10StateBlockMaskDisableCapture(D3D10_STATE_BLOCK_MASK *mask, D3D10_DEVICE_STATE_TYPES state_type, UINT start_idx, UINT count)
BOOL WINAPI D3D10StateBlockMaskGetSetting(D3D10_STATE_BLOCK_MASK *mask, D3D10_DEVICE_STATE_TYPES state_type, UINT idx)
D3D_SHADER_VARIABLE_TYPE D3D10_SHADER_VARIABLE_TYPE
Definition: d3d10shader.h:65
D3D_SHADER_VARIABLE_CLASS D3D10_SHADER_VARIABLE_CLASS
Definition: d3d10shader.h:50
static SIZE_T const char const D3D_SHADER_MACRO ID3DInclude * include
Definition: asm.c:31
static SIZE_T const char const D3D_SHADER_MACRO * defines
Definition: asm.c:31
unsigned int idx
Definition: utils.c:41
unsigned int BOOL
Definition: ntddk_ex.h:94
return pList GetDevice()
FxCmResList * resources
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLuint buffer
Definition: glext.h:5915
GLuint sampler
Definition: glext.h:7283
GLuint shader
Definition: glext.h:6030
GLenum GLint GLuint mask
Definition: glext.h:6028
GLboolean GLenum GLenum GLvoid * values
Definition: glext.h:5666
GLbitfield flags
Definition: glext.h:7161
GLuint64EXT * result
Definition: glext.h:11304
GLintptr offset
Definition: glext.h:5920
REFIID riid
Definition: atlbase.h:39
const char * filename
Definition: ioapi.h:137
#define resource
Definition: kernel32.h:9
MATRIX * GetMatrix(HWND hwnd)
Definition: matrix.c:289
static const WCHAR desc[]
Definition: protectdata.c:36
@ SetMatrixArray
Definition: shader.c:1967
@ SetIntArray
Definition: shader.c:1966
@ SetBoolArray
Definition: shader.c:1966
@ SetBool
Definition: shader.c:1966
@ SetMatrixTransposeArray
Definition: shader.c:1967
@ SetMatrix
Definition: shader.c:1966
@ SetFloat
Definition: shader.c:1966
@ SetFloatArray
Definition: shader.c:1966
@ SetInt
Definition: shader.c:1966
@ SetMatrixTranspose
Definition: shader.c:1967
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
unsigned int UINT
Definition: ndis.h:50
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
#define REFIID
Definition: guiddef.h:118
static FILE * out
Definition: regtests2xml.c:44
const WCHAR * str
const BYTE * pInputSignature
Definition: d3d10effect.h:132
D3D10_SHADER_VARIABLE_TYPE Type
Definition: d3d10effect.h:65
D3D10_SHADER_VARIABLE_CLASS Class
Definition: d3d10effect.h:64
const char * TypeName
Definition: d3d10effect.h:63
SIZE_T IAInputSignatureSize
Definition: d3d10effect.h:146
BYTE * pIAInputSignature
Definition: d3d10effect.h:145
const char * Name
Definition: d3d10effect.h:143
FLOAT BlendFactor[4]
Definition: d3d10effect.h:149
struct ID3D10EffectShaderVariable * pShaderVariable
Definition: d3d10effect.h:154
BYTE PSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)]
Definition: d3d10effect.h:104
BYTE GSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)]
Definition: d3d10effect.h:101
BYTE VSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)]
Definition: d3d10effect.h:96
BYTE GSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)]
Definition: d3d10effect.h:100
BYTE GSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)]
Definition: d3d10effect.h:99
BYTE IAVertexBuffers[D3D10_BYTES_FROM_BITS(D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT)]
Definition: d3d10effect.h:106
BYTE VSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)]
Definition: d3d10effect.h:95
BYTE PSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)]
Definition: d3d10effect.h:103
BYTE PSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)]
Definition: d3d10effect.h:105
BYTE VSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)]
Definition: d3d10effect.h:97
const char * Name
Definition: d3d10effect.h:87
Definition: devices.h:37
Definition: name.c:39
float FLOAT
Definition: typedefs.h:69
ULONG_PTR SIZE_T
Definition: typedefs.h:80
uint32_t ULONG
Definition: typedefs.h:59
Definition: pdh_main.c:94
#define GetType(This)
Definition: conio.h:54
#define WINAPI
Definition: msvc.h:6
unsigned char BYTE
Definition: xxhash.c:193