d3d11: Create an initial device ID3DDeviceContextState.
[wine.git] / include / d3d10effect.h
blobb4a33daca483867682449b7fc2a6485905802038
1 /*
2 * Copyright 2009 Henri Verbeet for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_D3D10EFFECT_H
21 #define __WINE_D3D10EFFECT_H
23 #include "d3d10.h"
25 #define D3D10_EFFECT_VARIABLE_POOLED 0x1
26 #define D3D10_EFFECT_VARIABLE_ANNOTATION 0x2
27 #define D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT 0x4
29 #ifndef D3D10_BYTES_FROM_BITS
30 #define D3D10_BYTES_FROM_BITS(x) (((x) + 7) >> 3)
31 #endif
33 typedef enum _D3D10_DEVICE_STATE_TYPES
35 D3D10_DST_SO_BUFFERS = 1,
36 D3D10_DST_OM_RENDER_TARGETS,
37 D3D10_DST_DEPTH_STENCIL_STATE,
38 D3D10_DST_BLEND_STATE,
39 D3D10_DST_VS,
40 D3D10_DST_VS_SAMPLERS,
41 D3D10_DST_VS_SHADER_RESOURCES,
42 D3D10_DST_VS_CONSTANT_BUFFERS,
43 D3D10_DST_GS,
44 D3D10_DST_GS_SAMPLERS,
45 D3D10_DST_GS_SHADER_RESOURCES,
46 D3D10_DST_GS_CONSTANT_BUFFERS,
47 D3D10_DST_PS,
48 D3D10_DST_PS_SAMPLERS,
49 D3D10_DST_PS_SHADER_RESOURCES,
50 D3D10_DST_PS_CONSTANT_BUFFERS,
51 D3D10_DST_IA_VERTEX_BUFFERS,
52 D3D10_DST_IA_INDEX_BUFFER,
53 D3D10_DST_IA_INPUT_LAYOUT,
54 D3D10_DST_IA_PRIMITIVE_TOPOLOGY,
55 D3D10_DST_RS_VIEWPORTS,
56 D3D10_DST_RS_SCISSOR_RECTS,
57 D3D10_DST_RS_RASTERIZER_STATE,
58 D3D10_DST_PREDICATION,
59 } D3D10_DEVICE_STATE_TYPES;
61 typedef struct _D3D10_EFFECT_TYPE_DESC
63 const char *TypeName;
64 D3D10_SHADER_VARIABLE_CLASS Class;
65 D3D10_SHADER_VARIABLE_TYPE Type;
66 UINT Elements;
67 UINT Members;
68 UINT Rows;
69 UINT Columns;
70 UINT PackedSize;
71 UINT UnpackedSize;
72 UINT Stride;
73 } D3D10_EFFECT_TYPE_DESC;
75 typedef struct _D3D10_EFFECT_VARIABLE_DESC
77 const char *Name;
78 const char *Semantic;
79 UINT Flags;
80 UINT Annotations;
81 UINT BufferOffset;
82 UINT ExplicitBindPoint;
83 } D3D10_EFFECT_VARIABLE_DESC;
85 typedef struct _D3D10_TECHNIQUE_DESC
87 const char *Name;
88 UINT Passes;
89 UINT Annotations;
90 } D3D10_TECHNIQUE_DESC;
92 typedef struct _D3D10_STATE_BLOCK_MASK
94 BYTE VS;
95 BYTE VSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
96 BYTE VSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
97 BYTE VSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
98 BYTE GS;
99 BYTE GSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
100 BYTE GSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
101 BYTE GSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
102 BYTE PS;
103 BYTE PSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
104 BYTE PSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
105 BYTE PSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
106 BYTE IAVertexBuffers[D3D10_BYTES_FROM_BITS(D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT)];
107 BYTE IAIndexBuffer;
108 BYTE IAInputLayout;
109 BYTE IAPrimitiveTopology;
110 BYTE OMRenderTargets;
111 BYTE OMDepthStencilState;
112 BYTE OMBlendState;
113 BYTE RSViewports;
114 BYTE RSScissorRects;
115 BYTE RSRasterizerState;
116 BYTE SOBuffers;
117 BYTE Predication;
118 } D3D10_STATE_BLOCK_MASK;
120 typedef struct _D3D10_EFFECT_DESC
122 BOOL IsChildEffect;
123 UINT ConstantBuffers;
124 UINT SharedConstantBuffers;
125 UINT GlobalVariables;
126 UINT SharedGlobalVariables;
127 UINT Techniques;
128 } D3D10_EFFECT_DESC;
130 typedef struct _D3D10_EFFECT_SHADER_DESC
132 const BYTE *pInputSignature;
133 BOOL IsInline;
134 const BYTE *pBytecode;
135 UINT BytecodeLength;
136 const char *SODecl;
137 UINT NumInputSignatureEntries;
138 UINT NumOutputSignatureEntries;
139 } D3D10_EFFECT_SHADER_DESC;
141 typedef struct _D3D10_PASS_DESC
143 const char *Name;
144 UINT Annotations;
145 BYTE *pIAInputSignature;
146 SIZE_T IAInputSignatureSize;
147 UINT StencilRef;
148 UINT SampleMask;
149 FLOAT BlendFactor[4];
150 } D3D10_PASS_DESC;
152 typedef struct _D3D10_PASS_SHADER_DESC
154 struct ID3D10EffectShaderVariable *pShaderVariable;
155 UINT ShaderIndex;
156 } D3D10_PASS_SHADER_DESC;
158 #define D3D10_EFFECT_COMPILE_CHILD_EFFECT 0x0001
159 #define D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS 0x0002
160 #define D3D10_EFFECT_SINGLE_THREADED 0x0008
162 DEFINE_GUID(IID_ID3D10EffectType, 0x4e9e1ddc, 0xcd9d, 0x4772, 0xa8, 0x37, 0x00, 0x18, 0x0b, 0x9b, 0x88, 0xfd);
164 #define INTERFACE ID3D10EffectType
165 DECLARE_INTERFACE(ID3D10EffectType)
167 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
168 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_TYPE_DESC *desc) 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;
175 #undef INTERFACE
177 DEFINE_GUID(IID_ID3D10EffectVariable, 0xae897105, 0x00e6, 0x45bf, 0xbb, 0x8e, 0x28, 0x1d, 0xd6, 0xdb, 0x8e, 0x1b);
179 #define INTERFACE ID3D10EffectVariable
180 DECLARE_INTERFACE(ID3D10EffectVariable)
182 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
183 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
184 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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;
208 #undef INTERFACE
210 DEFINE_GUID(IID_ID3D10EffectConstantBuffer, 0x56648f4d, 0xcc8b, 0x4444, 0xa5, 0xad, 0xb5, 0xa3, 0xd7, 0x6e, 0x91, 0xb3);
212 #define INTERFACE ID3D10EffectConstantBuffer
213 DECLARE_INTERFACE_(ID3D10EffectConstantBuffer, ID3D10EffectVariable)
215 /* ID3D10EffectVariable methods */
216 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
217 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
218 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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;
244 STDMETHOD(SetTextureBuffer)(THIS_ ID3D10ShaderResourceView *view) PURE;
245 STDMETHOD(GetTextureBuffer)(THIS_ ID3D10ShaderResourceView **view) PURE;
247 #undef INTERFACE
249 DEFINE_GUID(IID_ID3D10EffectScalarVariable, 0x00e48f7b, 0xd2c8, 0x49e8, 0xa8, 0x6c, 0x02, 0x2d, 0xee, 0x53, 0x43, 0x1f);
251 #define INTERFACE ID3D10EffectScalarVariable
252 DECLARE_INTERFACE_(ID3D10EffectScalarVariable, ID3D10EffectVariable)
254 /* ID3D10EffectVariable methods */
255 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
256 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
257 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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 */
281 STDMETHOD(SetFloat)(THIS_ float value) PURE;
282 STDMETHOD(GetFloat)(THIS_ float *value) PURE;
283 STDMETHOD(SetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
284 STDMETHOD(GetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
285 STDMETHOD(SetInt)(THIS_ int value) PURE;
286 STDMETHOD(GetInt)(THIS_ int *value) PURE;
287 STDMETHOD(SetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
288 STDMETHOD(GetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
289 STDMETHOD(SetBool)(THIS_ BOOL value) PURE;
290 STDMETHOD(GetBool)(THIS_ BOOL *value) PURE;
291 STDMETHOD(SetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
292 STDMETHOD(GetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
294 #undef INTERFACE
296 DEFINE_GUID(IID_ID3D10EffectVectorVariable, 0x62b98c44, 0x1f82, 0x4c67, 0xbc, 0xd0, 0x72, 0xcf, 0x8f, 0x21, 0x7e, 0x81);
298 #define INTERFACE ID3D10EffectVectorVariable
299 DECLARE_INTERFACE_(ID3D10EffectVectorVariable, ID3D10EffectVariable)
301 /* ID3D10EffectVariable methods */
302 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
303 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
304 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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;
341 #undef INTERFACE
343 DEFINE_GUID(IID_ID3D10EffectMatrixVariable, 0x50666c24, 0xb82f, 0x4eed, 0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0);
345 #define INTERFACE ID3D10EffectMatrixVariable
346 DECLARE_INTERFACE_(ID3D10EffectMatrixVariable, ID3D10EffectVariable)
348 /* ID3D10EffectVariable methods */
349 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
350 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
351 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
352 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
353 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ 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 */
375 STDMETHOD(SetMatrix)(THIS_ float *data) PURE;
376 STDMETHOD(GetMatrix)(THIS_ float *data) PURE;
377 STDMETHOD(SetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
378 STDMETHOD(GetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
379 STDMETHOD(SetMatrixTranspose)(THIS_ float *data) PURE;
380 STDMETHOD(GetMatrixTranspose)(THIS_ float *data) PURE;
381 STDMETHOD(SetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
382 STDMETHOD(GetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
384 #undef INTERFACE
386 DEFINE_GUID(IID_ID3D10EffectStringVariable, 0x71417501, 0x8df9, 0x4e0a, 0xa7, 0x8a, 0x25, 0x5f, 0x97, 0x56, 0xba, 0xff);
388 #define INTERFACE ID3D10EffectStringVariable
389 DECLARE_INTERFACE_(ID3D10EffectStringVariable, ID3D10EffectVariable)
391 /* ID3D10EffectVariable methods */
392 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
393 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
394 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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;
421 #undef INTERFACE
423 DEFINE_GUID(IID_ID3D10EffectShaderResourceVariable,
424 0xc0a7157b, 0xd872, 0x4b1d, 0x80, 0x73, 0xef, 0xc2, 0xac, 0xd4, 0xb1, 0xfc);
426 #define INTERFACE ID3D10EffectShaderResourceVariable
427 DECLARE_INTERFACE_(ID3D10EffectShaderResourceVariable, ID3D10EffectVariable)
429 /* ID3D10EffectVariable methods */
430 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
431 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
432 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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 */
456 STDMETHOD(SetResource)(THIS_ ID3D10ShaderResourceView *resource) PURE;
457 STDMETHOD(GetResource)(THIS_ ID3D10ShaderResourceView **resource) PURE;
458 STDMETHOD(SetResourceArray)(THIS_ ID3D10ShaderResourceView **resources, UINT offset, UINT count) PURE;
459 STDMETHOD(GetResourceArray)(THIS_ ID3D10ShaderResourceView **resources, UINT offset, UINT count) PURE;
461 #undef INTERFACE
463 DEFINE_GUID(IID_ID3D10EffectRenderTargetViewVariable,
464 0x28ca0cc3, 0xc2c9, 0x40bb, 0xb5, 0x7f, 0x67, 0xb7, 0x37, 0x12, 0x2b, 0x17);
466 #define INTERFACE ID3D10EffectRenderTargetViewVariable
467 DECLARE_INTERFACE_(ID3D10EffectRenderTargetViewVariable, ID3D10EffectVariable)
469 /* ID3D10EffectVariable methods */
470 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
471 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
472 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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 */
496 STDMETHOD(SetRenderTarget)(THIS_ ID3D10RenderTargetView *view) PURE;
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;
501 #undef INTERFACE
503 DEFINE_GUID(IID_ID3D10EffectDepthStencilViewVariable,
504 0x3e02c918, 0xcc79, 0x4985, 0xb6, 0x22, 0x2d, 0x92, 0xad, 0x70, 0x16, 0x23);
506 #define INTERFACE ID3D10EffectDepthStencilViewVariable
507 DECLARE_INTERFACE_(ID3D10EffectDepthStencilViewVariable, ID3D10EffectVariable)
509 /* ID3D10EffectVariable methods */
510 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
511 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
512 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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 */
536 STDMETHOD(SetDepthStencil)(THIS_ ID3D10DepthStencilView *view) PURE;
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;
541 #undef INTERFACE
543 DEFINE_GUID(IID_ID3D10EffectShaderVariable, 0x80849279, 0xc799, 0x4797, 0x8c, 0x33, 0x04, 0x07, 0xa0, 0x7d, 0x9e, 0x06);
545 #define INTERFACE ID3D10EffectShaderVariable
546 DECLARE_INTERFACE_(ID3D10EffectShaderVariable, ID3D10EffectVariable)
548 /* ID3D10EffectVariable methods */
549 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
550 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
551 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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 */
575 STDMETHOD(GetShaderDesc)(THIS_ UINT index, D3D10_EFFECT_SHADER_DESC *desc) PURE;
576 STDMETHOD(GetVertexShader)(THIS_ UINT index, ID3D10VertexShader **shader) PURE;
577 STDMETHOD(GetGeometryShader)(THIS_ UINT index, ID3D10GeometryShader **shader) PURE;
578 STDMETHOD(GetPixelShader)(THIS_ UINT index, ID3D10PixelShader **shader) PURE;
579 STDMETHOD(GetInputSignatureElementDesc)(THIS_ UINT shader_index, UINT element_index,
580 D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
581 STDMETHOD(GetOutputSignatureElementDesc)(THIS_ UINT shader_index, UINT element_index,
582 D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
584 #undef INTERFACE
586 DEFINE_GUID(IID_ID3D10EffectBlendVariable, 0x1fcd2294, 0xdf6d, 0x4eae, 0x86, 0xb3, 0x0e, 0x91, 0x60, 0xcf, 0xb0, 0x7b);
588 #define INTERFACE ID3D10EffectBlendVariable
589 DECLARE_INTERFACE_(ID3D10EffectBlendVariable, ID3D10EffectVariable)
591 /* ID3D10EffectVariable methods */
592 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
593 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
594 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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;
621 #undef INTERFACE
623 DEFINE_GUID(IID_ID3D10EffectDepthStencilVariable,
624 0xaf482368, 0x330a, 0x46a5, 0x9a, 0x5c, 0x01, 0xc7, 0x1a, 0xf2, 0x4c, 0x8d);
626 #define INTERFACE ID3D10EffectDepthStencilVariable
627 DECLARE_INTERFACE_(ID3D10EffectDepthStencilVariable, ID3D10EffectVariable)
629 /* ID3D10EffectVariable methods */
630 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
631 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
632 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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;
657 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_DEPTH_STENCIL_DESC *desc) PURE;
659 #undef INTERFACE
661 DEFINE_GUID(IID_ID3D10EffectRasterizerVariable,
662 0x21af9f0e, 0x4d94, 0x4ea9, 0x97, 0x85, 0x2c, 0xb7, 0x6b, 0x8c, 0x0b, 0x34);
664 #define INTERFACE ID3D10EffectRasterizerVariable
665 DECLARE_INTERFACE_(ID3D10EffectRasterizerVariable, ID3D10EffectVariable)
667 /* ID3D10EffectVariable methods */
668 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
669 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
670 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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;
695 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_RASTERIZER_DESC *desc) PURE;
697 #undef INTERFACE
699 DEFINE_GUID(IID_ID3D10EffectSamplerVariable,
700 0x6530d5c7, 0x07e9, 0x4271, 0xa4, 0x18, 0xe7, 0xce, 0x4b, 0xd1, 0xe4, 0x80);
702 #define INTERFACE ID3D10EffectSamplerVariable
703 DECLARE_INTERFACE_(ID3D10EffectSamplerVariable, ID3D10EffectVariable)
705 /* ID3D10EffectVariable methods */
706 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
707 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
708 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) 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 */
732 STDMETHOD(GetSampler)(THIS_ UINT index, ID3D10SamplerState **sampler) PURE;
733 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_SAMPLER_DESC *desc) PURE;
735 #undef INTERFACE
737 DEFINE_GUID(IID_ID3D10EffectTechnique, 0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75);
739 #define INTERFACE ID3D10EffectTechnique
740 DECLARE_INTERFACE(ID3D10EffectTechnique)
742 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
743 STDMETHOD(GetDesc)(THIS_ D3D10_TECHNIQUE_DESC *desc) 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;
750 #undef INTERFACE
752 DEFINE_GUID(IID_ID3D10Effect, 0x51b0ca8b, 0xec0b, 0x4519, 0x87, 0x0d, 0x8e, 0xe1, 0xcb, 0x50, 0x17, 0xc7);
754 #define INTERFACE ID3D10Effect
755 DECLARE_INTERFACE_(ID3D10Effect, IUnknown)
757 /* IUnknown methods */
758 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
759 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
760 STDMETHOD_(ULONG, Release)(THIS) PURE;
761 /* ID3D10Effect methods */
762 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
763 STDMETHOD_(BOOL, IsPool)(THIS) PURE;
764 STDMETHOD(GetDevice)(THIS_ ID3D10Device **device) PURE;
765 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_DESC *desc) 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;
776 #undef INTERFACE
778 DEFINE_GUID(IID_ID3D10EffectPool, 0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33);
780 #define INTERFACE ID3D10EffectPool
781 DECLARE_INTERFACE_(ID3D10EffectPool, IUnknown)
783 /* IUnknown methods */
784 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
785 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
786 STDMETHOD_(ULONG, Release)(THIS) PURE;
787 /* ID3D10EffectPool methods */
788 STDMETHOD_(struct ID3D10Effect *, AsEffect)(THIS) PURE;
790 #undef INTERFACE
792 DEFINE_GUID(IID_ID3D10EffectPass, 0x5cfbeb89, 0x1a06, 0x46e0, 0xb2, 0x82, 0xe3, 0xf9, 0xbf, 0xa3, 0x6a, 0x54);
794 #define INTERFACE ID3D10EffectPass
795 DECLARE_INTERFACE(ID3D10EffectPass)
797 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
798 STDMETHOD(GetDesc)(THIS_ D3D10_PASS_DESC *desc) 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;
807 #undef INTERFACE
809 DEFINE_GUID(IID_ID3D10StateBlock, 0x0803425a, 0x57f5, 0x4dd6, 0x94, 0x65, 0xa8, 0x75, 0x70, 0x83, 0x4a, 0x08);
811 #define INTERFACE ID3D10StateBlock
812 DECLARE_INTERFACE_(ID3D10StateBlock, IUnknown)
814 /* IUnknown methods */
815 STDMETHOD(QueryInterface)(THIS_ REFIID iid, void **object) PURE;
816 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
817 STDMETHOD_(ULONG, Release)(THIS) PURE;
818 /* ID3D10StateBlock methods */
819 STDMETHOD(Capture)(THIS) PURE;
820 STDMETHOD(Apply)(THIS) PURE;
821 STDMETHOD(ReleaseAllDeviceObjects)(THIS) PURE;
822 STDMETHOD(GetDevice)(THIS_ ID3D10Device **device) PURE;
824 #undef INTERFACE
826 #ifdef __cplusplus
827 extern "C" {
828 #endif
830 HRESULT WINAPI D3D10CompileEffectFromMemory(void *data, SIZE_T data_size, const char *filename,
831 const D3D10_SHADER_MACRO *defines, ID3D10Include *include, UINT hlsl_flags, UINT fx_flags,
832 ID3D10Blob **effect, ID3D10Blob **errors);
833 HRESULT WINAPI D3D10CreateEffectFromMemory(void *data, SIZE_T data_size, UINT flags,
834 ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3D10Effect **effect);
835 HRESULT WINAPI D3D10CreateEffectPoolFromMemory(void *data, SIZE_T data_size, UINT fx_flags,
836 ID3D10Device *device, ID3D10EffectPool **effect_pool);
837 HRESULT WINAPI D3D10CreateStateBlock(ID3D10Device *device,
838 D3D10_STATE_BLOCK_MASK *mask, ID3D10StateBlock **stateblock);
840 HRESULT WINAPI D3D10StateBlockMaskDifference(D3D10_STATE_BLOCK_MASK *mask_x,
841 D3D10_STATE_BLOCK_MASK *mask_y, D3D10_STATE_BLOCK_MASK *result);
842 HRESULT WINAPI D3D10StateBlockMaskDisableAll(D3D10_STATE_BLOCK_MASK *mask);
843 HRESULT WINAPI D3D10StateBlockMaskDisableCapture(D3D10_STATE_BLOCK_MASK *mask,
844 D3D10_DEVICE_STATE_TYPES state_type, UINT start_idx, UINT count);
845 HRESULT WINAPI D3D10StateBlockMaskEnableAll(D3D10_STATE_BLOCK_MASK *mask);
846 HRESULT WINAPI D3D10StateBlockMaskEnableCapture(D3D10_STATE_BLOCK_MASK *mask,
847 D3D10_DEVICE_STATE_TYPES state_type, UINT start_idx, UINT count);
848 BOOL WINAPI D3D10StateBlockMaskGetSetting(D3D10_STATE_BLOCK_MASK *mask,
849 D3D10_DEVICE_STATE_TYPES state_type, UINT idx);
850 HRESULT WINAPI D3D10StateBlockMaskIntersect(D3D10_STATE_BLOCK_MASK *mask_x,
851 D3D10_STATE_BLOCK_MASK *mask_y, D3D10_STATE_BLOCK_MASK *result);
852 HRESULT WINAPI D3D10StateBlockMaskUnion(D3D10_STATE_BLOCK_MASK *mask_x,
853 D3D10_STATE_BLOCK_MASK *mask_y, D3D10_STATE_BLOCK_MASK *result);
855 #ifdef __cplusplus
857 #endif
859 #endif /* __WINE_D3D10EFFECT_H */