VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/d3d10effect.h@ 78046

Last change on this file since 78046 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 48.8 KB
Line 
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/*
21 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
22 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
23 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
24 * a choice of LGPL license versions is made available with the language indicating
25 * that LGPLv2 or any later version may be used, or where a choice of which version
26 * of the LGPL is applied is otherwise unspecified.
27 */
28
29#ifndef __WINE_D3D10EFFECT_H
30#define __WINE_D3D10EFFECT_H
31
32#include "d3d10.h"
33
34#define D3D10_EFFECT_VARIABLE_POOLED 0x1
35#define D3D10_EFFECT_VARIABLE_ANNOTATION 0x2
36#define D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT 0x4
37
38#ifndef D3D10_BYTES_FROM_BITS
39#define D3D10_BYTES_FROM_BITS(x) (((x) + 7) >> 3)
40#endif
41
42typedef enum _D3D10_DEVICE_STATE_TYPES
43{
44 D3D10_DST_SO_BUFFERS = 1,
45 D3D10_DST_OM_RENDER_TARGETS,
46 D3D10_DST_DEPTH_STENCIL_STATE,
47 D3D10_DST_BLEND_STATE,
48 D3D10_DST_VS,
49 D3D10_DST_VS_SAMPLERS,
50 D3D10_DST_VS_SHADER_RESOURCES,
51 D3D10_DST_VS_CONSTANT_BUFFERS,
52 D3D10_DST_GS,
53 D3D10_DST_GS_SAMPLERS,
54 D3D10_DST_GS_SHADER_RESOURCES,
55 D3D10_DST_GS_CONSTANT_BUFFERS,
56 D3D10_DST_PS,
57 D3D10_DST_PS_SAMPLERS,
58 D3D10_DST_PS_SHADER_RESOURCES,
59 D3D10_DST_PS_CONSTANT_BUFFERS,
60 D3D10_DST_IA_VERTEX_BUFFERS,
61 D3D10_DST_IA_INDEX_BUFFER,
62 D3D10_DST_IA_INPUT_LAYOUT,
63 D3D10_DST_IA_PRIMITIVE_TOPOLOGY,
64 D3D10_DST_RS_VIEWPORTS,
65 D3D10_DST_RS_SCISSOR_RECTS,
66 D3D10_DST_RS_RASTERIZER_STATE,
67 D3D10_DST_PREDICATION,
68} D3D10_DEVICE_STATE_TYPES;
69
70typedef struct _D3D10_EFFECT_TYPE_DESC
71{
72 const char *TypeName;
73 D3D10_SHADER_VARIABLE_CLASS Class;
74 D3D10_SHADER_VARIABLE_TYPE Type;
75 UINT Elements;
76 UINT Members;
77 UINT Rows;
78 UINT Columns;
79 UINT PackedSize;
80 UINT UnpackedSize;
81 UINT Stride;
82} D3D10_EFFECT_TYPE_DESC;
83
84typedef struct _D3D10_EFFECT_VARIABLE_DESC
85{
86 const char *Name;
87 const char *Semantic;
88 UINT Flags;
89 UINT Annotations;
90 UINT BufferOffset;
91 UINT ExplicitBindPoint;
92} D3D10_EFFECT_VARIABLE_DESC;
93
94typedef struct _D3D10_TECHNIQUE_DESC
95{
96 const char *Name;
97 UINT Passes;
98 UINT Annotations;
99} D3D10_TECHNIQUE_DESC;
100
101typedef struct _D3D10_STATE_BLOCK_MASK
102{
103 BYTE VS;
104 BYTE VSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
105 BYTE VSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
106 BYTE VSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
107 BYTE GS;
108 BYTE GSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
109 BYTE GSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
110 BYTE GSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
111 BYTE PS;
112 BYTE PSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
113 BYTE PSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
114 BYTE PSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
115 BYTE IAVertexBuffers[D3D10_BYTES_FROM_BITS(D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT)];
116 BYTE IAIndexBuffer;
117 BYTE IAInputLayout;
118 BYTE IAPrimitiveTopology;
119 BYTE OMRenderTargets;
120 BYTE OMDepthStencilState;
121 BYTE OMBlendState;
122 BYTE RSViewports;
123 BYTE RSScissorRects;
124 BYTE RSRasterizerState;
125 BYTE SOBuffers;
126 BYTE Predication;
127} D3D10_STATE_BLOCK_MASK;
128
129typedef struct _D3D10_EFFECT_DESC
130{
131 BOOL IsChildEffect;
132 UINT ConstantBuffers;
133 UINT SharedConstantBuffers;
134 UINT GlobalVariables;
135 UINT SharedGlobalVariables;
136 UINT Techniques;
137} D3D10_EFFECT_DESC;
138
139typedef struct _D3D10_EFFECT_SHADER_DESC
140{
141 const BYTE *pInputSignature;
142 BOOL IsInline;
143 const BYTE *pBytecode;
144 UINT BytecodeLength;
145 const char *SODecl;
146 UINT NumInputSignatureEntries;
147 UINT NumOutputSignatureEntries;
148} D3D10_EFFECT_SHADER_DESC;
149
150typedef struct _D3D10_PASS_DESC
151{
152 const char *Name;
153 UINT Annotations;
154 BYTE *pIAInputSignature;
155 SIZE_T IAInputSignatureSize;
156 UINT StencilRef;
157 UINT SampleMask;
158 FLOAT BlendFactor[4];
159} D3D10_PASS_DESC;
160
161typedef struct _D3D10_PASS_SHADER_DESC
162{
163 struct ID3D10EffectShaderVariable *pShaderVariable;
164 UINT ShaderIndex;
165} D3D10_PASS_SHADER_DESC;
166
167#define D3D10_EFFECT_COMPILE_CHILD_EFFECT 0x0001
168#define D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS 0x0002
169#define D3D10_EFFECT_SINGLE_THREADED 0x0008
170
171DEFINE_GUID(IID_ID3D10EffectType, 0x4e9e1ddc, 0xcd9d, 0x4772, 0xa8, 0x37, 0x00, 0x18, 0x0b, 0x9b, 0x88, 0xfd);
172
173#define INTERFACE ID3D10EffectType
174DECLARE_INTERFACE(ID3D10EffectType)
175{
176 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
177 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_TYPE_DESC *desc) PURE;
178 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeByIndex)(THIS_ UINT index) PURE;
179 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeByName)(THIS_ const char *name) PURE;
180 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeBySemantic)(THIS_ const char *semantic) PURE;
181 STDMETHOD_(const char *, GetMemberName)(THIS_ UINT index) PURE;
182 STDMETHOD_(const char *, GetMemberSemantic)(THIS_ UINT index) PURE;
183};
184#undef INTERFACE
185
186DEFINE_GUID(IID_ID3D10EffectVariable, 0xae897105, 0x00e6, 0x45bf, 0xbb, 0x8e, 0x28, 0x1d, 0xd6, 0xdb, 0x8e, 0x1b);
187
188#define INTERFACE ID3D10EffectVariable
189DECLARE_INTERFACE(ID3D10EffectVariable)
190{
191 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
192 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
193 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
194 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
195 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
196 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
197 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
198 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
199 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
200 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
201 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
202 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
203 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
204 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
205 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
206 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
207 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
208 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
209 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
210 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
211 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
212 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
213 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
214 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
215 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
216};
217#undef INTERFACE
218
219DEFINE_GUID(IID_ID3D10EffectConstantBuffer, 0x56648f4d, 0xcc8b, 0x4444, 0xa5, 0xad, 0xb5, 0xa3, 0xd7, 0x6e, 0x91, 0xb3);
220
221#define INTERFACE ID3D10EffectConstantBuffer
222DECLARE_INTERFACE_(ID3D10EffectConstantBuffer, ID3D10EffectVariable)
223{
224 /* ID3D10EffectVariable methods */
225 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
226 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
227 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
228 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
229 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
230 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
231 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
232 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
233 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
234 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
235 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
236 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
237 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
238 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
239 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
240 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
241 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
242 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
243 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
244 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
245 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
246 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
247 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
248 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
249 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
250 /* ID3D10EffectConstantBuffer methods */
251 STDMETHOD(SetConstantBuffer)(THIS_ ID3D10Buffer *buffer) PURE;
252 STDMETHOD(GetConstantBuffer)(THIS_ ID3D10Buffer **buffer) PURE;
253 STDMETHOD(SetTextureBuffer)(THIS_ ID3D10ShaderResourceView *view) PURE;
254 STDMETHOD(GetTextureBuffer)(THIS_ ID3D10ShaderResourceView **view) PURE;
255};
256#undef INTERFACE
257
258DEFINE_GUID(IID_ID3D10EffectScalarVariable, 0x00e48f7b, 0xd2c8, 0x49e8, 0xa8, 0x6c, 0x02, 0x2d, 0xee, 0x53, 0x43, 0x1f);
259
260#define INTERFACE ID3D10EffectScalarVariable
261DECLARE_INTERFACE_(ID3D10EffectScalarVariable, ID3D10EffectVariable)
262{
263 /* ID3D10EffectVariable methods */
264 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
265 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
266 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
267 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
268 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
269 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
270 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
271 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
272 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
273 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
274 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
275 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
276 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
277 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
278 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
279 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
280 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
281 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
282 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
283 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
284 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
285 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
286 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
287 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
288 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
289 /* ID3D10EffectScalarVariable methods */
290 STDMETHOD(SetFloat)(THIS_ float value) PURE;
291 STDMETHOD(GetFloat)(THIS_ float *value) PURE;
292 STDMETHOD(SetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
293 STDMETHOD(GetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
294 STDMETHOD(SetInt)(THIS_ int value) PURE;
295 STDMETHOD(GetInt)(THIS_ int *value) PURE;
296 STDMETHOD(SetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
297 STDMETHOD(GetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
298 STDMETHOD(SetBool)(THIS_ BOOL value) PURE;
299 STDMETHOD(GetBool)(THIS_ BOOL *value) PURE;
300 STDMETHOD(SetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
301 STDMETHOD(GetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
302};
303#undef INTERFACE
304
305DEFINE_GUID(IID_ID3D10EffectVectorVariable, 0x62b98c44, 0x1f82, 0x4c67, 0xbc, 0xd0, 0x72, 0xcf, 0x8f, 0x21, 0x7e, 0x81);
306
307#define INTERFACE ID3D10EffectVectorVariable
308DECLARE_INTERFACE_(ID3D10EffectVectorVariable, ID3D10EffectVariable)
309{
310 /* ID3D10EffectVariable methods */
311 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
312 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
313 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
314 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
315 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
316 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
317 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
318 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
319 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
320 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
321 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
322 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
323 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
324 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
325 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
326 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
327 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
328 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
329 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
330 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
331 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
332 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
333 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
334 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
335 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
336 /* ID3D10EffectVectorVariable methods */
337 STDMETHOD(SetBoolVector)(THIS_ BOOL *value) PURE;
338 STDMETHOD(SetIntVector)(THIS_ int *value) PURE;
339 STDMETHOD(SetFloatVector)(THIS_ float *value) PURE;
340 STDMETHOD(GetBoolVector)(THIS_ BOOL *value) PURE;
341 STDMETHOD(GetIntVector)(THIS_ int *value) PURE;
342 STDMETHOD(GetFloatVector)(THIS_ float *value) PURE;
343 STDMETHOD(SetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
344 STDMETHOD(SetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE;
345 STDMETHOD(SetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE;
346 STDMETHOD(GetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
347 STDMETHOD(GetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE;
348 STDMETHOD(GetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE;
349};
350#undef INTERFACE
351
352DEFINE_GUID(IID_ID3D10EffectMatrixVariable, 0x50666c24, 0xb82f, 0x4eed, 0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0);
353
354#define INTERFACE ID3D10EffectMatrixVariable
355DECLARE_INTERFACE_(ID3D10EffectMatrixVariable, ID3D10EffectVariable)
356{
357 /* ID3D10EffectVariable methods */
358 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
359 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
360 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
361 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
362 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
363 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
364 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
365 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
366 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
367 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
368 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
369 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
370 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
371 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
372 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
373 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
374 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
375 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
376 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
377 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
378 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
379 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
380 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
381 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
382 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
383 /* ID3D10EffectMatrixVariable methods */
384 STDMETHOD(SetMatrix)(THIS_ float *data) PURE;
385 STDMETHOD(GetMatrix)(THIS_ float *data) PURE;
386 STDMETHOD(SetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
387 STDMETHOD(GetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
388 STDMETHOD(SetMatrixTranspose)(THIS_ float *data) PURE;
389 STDMETHOD(GetMatrixTranspose)(THIS_ float *data) PURE;
390 STDMETHOD(SetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
391 STDMETHOD(GetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
392};
393#undef INTERFACE
394
395DEFINE_GUID(IID_ID3D10EffectStringVariable, 0x71417501, 0x8df9, 0x4e0a, 0xa7, 0x8a, 0x25, 0x5f, 0x97, 0x56, 0xba, 0xff);
396
397#define INTERFACE ID3D10EffectStringVariable
398DECLARE_INTERFACE_(ID3D10EffectStringVariable, ID3D10EffectVariable)
399{
400 /* ID3D10EffectVariable methods */
401 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
402 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
403 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
404 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
405 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
406 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
407 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
408 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
409 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
410 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
411 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
412 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
413 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
414 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
415 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
416 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
417 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
418 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
419 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
420 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
421 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
422 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
423 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
424 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
425 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
426 /* ID3D10EffectStringVariable methods */
427 STDMETHOD(GetString)(THIS_ const char **str) PURE;
428 STDMETHOD(GetStringArray)(THIS_ const char **strs, UINT offset, UINT count) PURE;
429};
430#undef INTERFACE
431
432DEFINE_GUID(IID_ID3D10EffectShaderResourceVariable,
433 0xc0a7157b, 0xd872, 0x4b1d, 0x80, 0x73, 0xef, 0xc2, 0xac, 0xd4, 0xb1, 0xfc);
434
435#define INTERFACE ID3D10EffectShaderResourceVariable
436DECLARE_INTERFACE_(ID3D10EffectShaderResourceVariable, ID3D10EffectVariable)
437{
438 /* ID3D10EffectVariable methods */
439 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
440 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
441 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
442 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
443 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
444 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
445 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
446 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
447 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
448 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
449 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
450 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
451 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
452 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
453 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
454 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
455 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
456 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
457 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
458 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
459 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
460 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
461 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
462 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
463 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
464 /* ID3D10EffectShaderResourceVariable methods */
465 STDMETHOD(SetResource)(THIS_ ID3D10ShaderResourceView *resource) PURE;
466 STDMETHOD(GetResource)(THIS_ ID3D10ShaderResourceView **resource) PURE;
467 STDMETHOD(SetResourceArray)(THIS_ ID3D10ShaderResourceView **resources, UINT offset, UINT count) PURE;
468 STDMETHOD(GetResourceArray)(THIS_ ID3D10ShaderResourceView **resources, UINT offset, UINT count) PURE;
469};
470#undef INTERFACE
471
472DEFINE_GUID(IID_ID3D10EffectRenderTargetViewVariable,
473 0x28ca0cc3, 0xc2c9, 0x40bb, 0xb5, 0x7f, 0x67, 0xb7, 0x37, 0x12, 0x2b, 0x17);
474
475#define INTERFACE ID3D10EffectRenderTargetViewVariable
476DECLARE_INTERFACE_(ID3D10EffectRenderTargetViewVariable, ID3D10EffectVariable)
477{
478 /* ID3D10EffectVariable methods */
479 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
480 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
481 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
482 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
483 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
484 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
485 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
486 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
487 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
488 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
489 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
490 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
491 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
492 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
493 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
494 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
495 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
496 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
497 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
498 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
499 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
500 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
501 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
502 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
503 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
504 /* ID3D10EffectRenderTargetViewVariable methods */
505 STDMETHOD(SetRenderTarget)(THIS_ ID3D10RenderTargetView *view) PURE;
506 STDMETHOD(GetRenderTarget)(THIS_ ID3D10RenderTargetView **view) PURE;
507 STDMETHOD(SetRenderTargetArray)(THIS_ ID3D10RenderTargetView **views, UINT offset, UINT count) PURE;
508 STDMETHOD(GetRenderTargetArray)(THIS_ ID3D10RenderTargetView **views, UINT offset, UINT count) PURE;
509};
510#undef INTERFACE
511
512DEFINE_GUID(IID_ID3D10EffectDepthStencilViewVariable,
513 0x3e02c918, 0xcc79, 0x4985, 0xb6, 0x22, 0x2d, 0x92, 0xad, 0x70, 0x16, 0x23);
514
515#define INTERFACE ID3D10EffectDepthStencilViewVariable
516DECLARE_INTERFACE_(ID3D10EffectDepthStencilViewVariable, ID3D10EffectVariable)
517{
518 /* ID3D10EffectVariable methods */
519 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
520 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
521 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
522 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
523 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
524 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
525 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
526 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
527 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
528 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
529 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
530 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
531 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
532 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
533 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
534 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
535 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
536 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
537 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
538 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
539 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
540 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
541 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
542 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
543 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
544 /* ID3D10EffectDepthStencilViewVariable methods */
545 STDMETHOD(SetDepthStencil)(THIS_ ID3D10DepthStencilView *view) PURE;
546 STDMETHOD(GetDepthStencil)(THIS_ ID3D10DepthStencilView **view) PURE;
547 STDMETHOD(SetDepthStencilArray)(THIS_ ID3D10DepthStencilView **views, UINT offset, UINT count) PURE;
548 STDMETHOD(GetDepthStencilArray)(THIS_ ID3D10DepthStencilView **views, UINT offset, UINT count) PURE;
549};
550#undef INTERFACE
551
552DEFINE_GUID(IID_ID3D10EffectShaderVariable, 0x80849279, 0xc799, 0x4797, 0x8c, 0x33, 0x04, 0x07, 0xa0, 0x7d, 0x9e, 0x06);
553
554#define INTERFACE ID3D10EffectShaderVariable
555DECLARE_INTERFACE_(ID3D10EffectShaderVariable, ID3D10EffectVariable)
556{
557 /* ID3D10EffectVariable methods */
558 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
559 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
560 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
561 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
562 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
563 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
564 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
565 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
566 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
567 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
568 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
569 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
570 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
571 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
572 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
573 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
574 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
575 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
576 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
577 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
578 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
579 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
580 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
581 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
582 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
583 /* ID3D10EffectShaderVariable methods */
584 STDMETHOD(GetShaderDesc)(THIS_ UINT index, D3D10_EFFECT_SHADER_DESC *desc) PURE;
585 STDMETHOD(GetVertexShader)(THIS_ UINT index, ID3D10VertexShader **shader) PURE;
586 STDMETHOD(GetGeometryShader)(THIS_ UINT index, ID3D10GeometryShader **shader) PURE;
587 STDMETHOD(GetPixelShader)(THIS_ UINT index, ID3D10PixelShader **shader) PURE;
588 STDMETHOD(GetInputSignatureElementDesc)(THIS_ UINT shader_index, UINT element_index,
589 D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
590 STDMETHOD(GetOutputSignatureElementDesc)(THIS_ UINT shader_index, UINT element_index,
591 D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
592};
593#undef INTERFACE
594
595DEFINE_GUID(IID_ID3D10EffectBlendVariable, 0x1fcd2294, 0xdf6d, 0x4eae, 0x86, 0xb3, 0x0e, 0x91, 0x60, 0xcf, 0xb0, 0x7b);
596
597#define INTERFACE ID3D10EffectBlendVariable
598DECLARE_INTERFACE_(ID3D10EffectBlendVariable, ID3D10EffectVariable)
599{
600 /* ID3D10EffectVariable methods */
601 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
602 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
603 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
604 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
605 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
606 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
607 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
608 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
609 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
610 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
611 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
612 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
613 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
614 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
615 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
616 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
617 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
618 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
619 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
620 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
621 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
622 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
623 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
624 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
625 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
626 /* ID3D10EffectBlendVariable methods */
627 STDMETHOD(GetBlendState)(THIS_ UINT index, ID3D10BlendState **blend_state) PURE;
628 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_BLEND_DESC *desc) PURE;
629};
630#undef INTERFACE
631
632DEFINE_GUID(IID_ID3D10EffectDepthStencilVariable,
633 0xaf482368, 0x330a, 0x46a5, 0x9a, 0x5c, 0x01, 0xc7, 0x1a, 0xf2, 0x4c, 0x8d);
634
635#define INTERFACE ID3D10EffectDepthStencilVariable
636DECLARE_INTERFACE_(ID3D10EffectDepthStencilVariable, ID3D10EffectVariable)
637{
638 /* ID3D10EffectVariable methods */
639 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
640 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
641 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
642 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
643 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
644 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
645 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
646 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
647 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
648 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
649 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
650 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
651 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
652 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
653 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
654 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
655 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
656 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
657 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
658 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
659 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
660 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
661 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
662 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
663 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
664 /* ID3D10EffectDepthStencilVariable methods */
665 STDMETHOD(GetDepthStencilState)(THIS_ UINT index, ID3D10DepthStencilState **depth_stencil_state) PURE;
666 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_DEPTH_STENCIL_DESC *desc) PURE;
667};
668#undef INTERFACE
669
670DEFINE_GUID(IID_ID3D10EffectRasterizerVariable,
671 0x21af9f0e, 0x4d94, 0x4ea9, 0x97, 0x85, 0x2c, 0xb7, 0x6b, 0x8c, 0x0b, 0x34);
672
673#define INTERFACE ID3D10EffectRasterizerVariable
674DECLARE_INTERFACE_(ID3D10EffectRasterizerVariable, ID3D10EffectVariable)
675{
676 /* ID3D10EffectVariable methods */
677 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
678 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
679 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
680 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
681 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
682 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
683 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
684 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
685 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
686 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
687 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
688 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
689 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
690 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
691 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
692 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
693 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
694 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
695 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
696 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
697 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
698 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
699 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
700 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
701 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
702 /* ID3D10EffectRasterizerVariable methods */
703 STDMETHOD(GetRasterizerState)(THIS_ UINT index, ID3D10RasterizerState **rasterizer_state) PURE;
704 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_RASTERIZER_DESC *desc) PURE;
705};
706#undef INTERFACE
707
708DEFINE_GUID(IID_ID3D10EffectSamplerVariable,
709 0x6530d5c7, 0x07e9, 0x4271, 0xa4, 0x18, 0xe7, 0xce, 0x4b, 0xd1, 0xe4, 0x80);
710
711#define INTERFACE ID3D10EffectSamplerVariable
712DECLARE_INTERFACE_(ID3D10EffectSamplerVariable, ID3D10EffectVariable)
713{
714 /* ID3D10EffectVariable methods */
715 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
716 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
717 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
718 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
719 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
720 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
721 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ const char *name) PURE;
722 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ const char *semantic) PURE;
723 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
724 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
725 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
726 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
727 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
728 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
729 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
730 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
731 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
732 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
733 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
734 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
735 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
736 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
737 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
738 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
739 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
740 /* ID3D10EffectSamplerVariable methods */
741 STDMETHOD(GetSampler)(THIS_ UINT index, ID3D10SamplerState **sampler) PURE;
742 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_SAMPLER_DESC *desc) PURE;
743};
744#undef INTERFACE
745
746DEFINE_GUID(IID_ID3D10EffectTechnique, 0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75);
747
748#define INTERFACE ID3D10EffectTechnique
749DECLARE_INTERFACE(ID3D10EffectTechnique)
750{
751 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
752 STDMETHOD(GetDesc)(THIS_ D3D10_TECHNIQUE_DESC *desc) PURE;
753 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
754 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
755 STDMETHOD_(struct ID3D10EffectPass *, GetPassByIndex)(THIS_ UINT index) PURE;
756 STDMETHOD_(struct ID3D10EffectPass *, GetPassByName)(THIS_ const char *name) PURE;
757 STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *mask) PURE;
758};
759#undef INTERFACE
760
761DEFINE_GUID(IID_ID3D10Effect, 0x51b0ca8b, 0xec0b, 0x4519, 0x87, 0x0d, 0x8e, 0xe1, 0xcb, 0x50, 0x17, 0xc7);
762
763#define INTERFACE ID3D10Effect
764DECLARE_INTERFACE_(ID3D10Effect, IUnknown)
765{
766 /* IUnknown methods */
767 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
768 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
769 STDMETHOD_(ULONG, Release)(THIS) PURE;
770 /* ID3D10Effect methods */
771 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
772 STDMETHOD_(BOOL, IsPool)(THIS) PURE;
773 STDMETHOD(GetDevice)(THIS_ ID3D10Device **device) PURE;
774 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_DESC *desc) PURE;
775 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetConstantBufferByIndex)(THIS_ UINT index) PURE;
776 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetConstantBufferByName)(THIS_ const char *name) PURE;
777 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableByIndex)(THIS_ UINT index) PURE;
778 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableByName)(THIS_ const char *name) PURE;
779 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableBySemantic)(THIS_ const char *semantic) PURE;
780 STDMETHOD_(struct ID3D10EffectTechnique *, GetTechniqueByIndex)(THIS_ UINT index) PURE;
781 STDMETHOD_(struct ID3D10EffectTechnique *, GetTechniqueByName)(THIS_ const char *name) PURE;
782 STDMETHOD(Optimize)(THIS) PURE;
783 STDMETHOD_(BOOL, IsOptimized)(THIS) PURE;
784};
785#undef INTERFACE
786
787DEFINE_GUID(IID_ID3D10EffectPool, 0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33);
788
789#define INTERFACE ID3D10EffectPool
790DECLARE_INTERFACE_(ID3D10EffectPool, IUnknown)
791{
792 /* IUnknown methods */
793 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
794 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
795 STDMETHOD_(ULONG, Release)(THIS) PURE;
796 /* ID3D10EffectPool methods */
797 STDMETHOD_(struct ID3D10Effect *, AsEffect)(THIS) PURE;
798};
799#undef INTERFACE
800
801DEFINE_GUID(IID_ID3D10EffectPass, 0x5cfbeb89, 0x1a06, 0x46e0, 0xb2, 0x82, 0xe3, 0xf9, 0xbf, 0xa3, 0x6a, 0x54);
802
803#define INTERFACE ID3D10EffectPass
804DECLARE_INTERFACE(ID3D10EffectPass)
805{
806 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
807 STDMETHOD(GetDesc)(THIS_ D3D10_PASS_DESC *desc) PURE;
808 STDMETHOD(GetVertexShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
809 STDMETHOD(GetGeometryShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
810 STDMETHOD(GetPixelShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
811 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
812 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ const char *name) PURE;
813 STDMETHOD(Apply)(THIS_ UINT flags) PURE;
814 STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *mask) PURE;
815};
816#undef INTERFACE
817
818DEFINE_GUID(IID_ID3D10StateBlock, 0x0803425a, 0x57f5, 0x4dd6, 0x94, 0x65, 0xa8, 0x75, 0x70, 0x83, 0x4a, 0x08);
819
820#define INTERFACE ID3D10StateBlock
821DECLARE_INTERFACE_(ID3D10StateBlock, IUnknown)
822{
823 /* IUnknown methods */
824 STDMETHOD(QueryInterface)(THIS_ REFIID iid, void **object) PURE;
825 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
826 STDMETHOD_(ULONG, Release)(THIS) PURE;
827 /* ID3D10StateBlock methods */
828 STDMETHOD(Capture)(THIS) PURE;
829 STDMETHOD(Apply)(THIS) PURE;
830 STDMETHOD(ReleaseAllDeviceObjects)(THIS) PURE;
831 STDMETHOD(GetDevice)(THIS_ ID3D10Device **device) PURE;
832};
833#undef INTERFACE
834
835#ifdef __cplusplus
836extern "C" {
837#endif
838
839HRESULT WINAPI D3D10CompileEffectFromMemory(void *data, SIZE_T data_size, const char *filename,
840 const D3D10_SHADER_MACRO *defines, ID3D10Include *include, UINT hlsl_flags, UINT fx_flags,
841 ID3D10Blob **effect, ID3D10Blob **errors);
842HRESULT WINAPI D3D10CreateEffectFromMemory(void *data, SIZE_T data_size, UINT flags,
843 ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3D10Effect **effect);
844HRESULT WINAPI D3D10CreateStateBlock(ID3D10Device *device,
845 D3D10_STATE_BLOCK_MASK *mask, ID3D10StateBlock **stateblock);
846
847HRESULT WINAPI D3D10StateBlockMaskDifference(D3D10_STATE_BLOCK_MASK *mask_x,
848 D3D10_STATE_BLOCK_MASK *mask_y, D3D10_STATE_BLOCK_MASK *result);
849HRESULT WINAPI D3D10StateBlockMaskDisableAll(D3D10_STATE_BLOCK_MASK *mask);
850HRESULT WINAPI D3D10StateBlockMaskDisableCapture(D3D10_STATE_BLOCK_MASK *mask,
851 D3D10_DEVICE_STATE_TYPES state_type, UINT start_idx, UINT count);
852HRESULT WINAPI D3D10StateBlockMaskEnableAll(D3D10_STATE_BLOCK_MASK *mask);
853HRESULT WINAPI D3D10StateBlockMaskEnableCapture(D3D10_STATE_BLOCK_MASK *mask,
854 D3D10_DEVICE_STATE_TYPES state_type, UINT start_idx, UINT count);
855BOOL WINAPI D3D10StateBlockMaskGetSetting(D3D10_STATE_BLOCK_MASK *mask,
856 D3D10_DEVICE_STATE_TYPES state_type, UINT idx);
857HRESULT WINAPI D3D10StateBlockMaskIntersect(D3D10_STATE_BLOCK_MASK *mask_x,
858 D3D10_STATE_BLOCK_MASK *mask_y, D3D10_STATE_BLOCK_MASK *result);
859HRESULT WINAPI D3D10StateBlockMaskUnion(D3D10_STATE_BLOCK_MASK *mask_x,
860 D3D10_STATE_BLOCK_MASK *mask_y, D3D10_STATE_BLOCK_MASK *result);
861
862#ifdef __cplusplus
863}
864#endif
865
866#endif /* __WINE_D3D10EFFECT_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette