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
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)
33 typedef struct _D3D10_EFFECT_TYPE_DESC
36 D3D10_SHADER_VARIABLE_CLASS Class;
37 D3D10_SHADER_VARIABLE_TYPE Type;
45 } D3D10_EFFECT_TYPE_DESC;
47 typedef struct _D3D10_EFFECT_VARIABLE_DESC
54 UINT ExplicitBindPoint;
55 } D3D10_EFFECT_VARIABLE_DESC;
57 typedef struct _D3D10_TECHNIQUE_DESC
62 } D3D10_TECHNIQUE_DESC;
64 typedef struct _D3D10_STATE_BLOCK_MASK
67 BYTE VSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
68 BYTE VSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
69 BYTE VSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
71 BYTE GSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
72 BYTE GSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
73 BYTE GSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
75 BYTE PSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
76 BYTE PSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
77 BYTE PSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
78 BYTE IAVertexBuffers[D3D10_BYTES_FROM_BITS(D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT)];
81 BYTE IAPrimitiveTopology;
83 BYTE OMDepthStencilState;
87 BYTE RSRasterizerState;
90 } D3D10_STATE_BLOCK_MASK;
92 typedef struct _D3D10_EFFECT_DESC
96 UINT SharedConstantBuffers;
98 UINT SharedGlobalVariables;
102 typedef struct _D3D10_EFFECT_SHADER_DESC
104 const BYTE *pInputSignature;
106 const BYTE *pBytecode;
109 UINT NumInputSignatureEntries;
110 UINT NumOutputSignatureEntries;
111 } D3D10_EFFECT_SHADER_DESC;
113 typedef struct _D3D10_PASS_DESC
117 BYTE *pIAInputSignature;
118 SIZE_T IAInputSignatureSize;
121 FLOAT BlendFactor[4];
124 typedef struct _D3D10_PASS_SHADER_DESC
126 struct ID3D10EffectShaderVariable *pShaderVariable;
128 } D3D10_PASS_SHADER_DESC;
130 DEFINE_GUID(IID_ID3D10EffectType, 0x4e9e1ddc, 0xcd9d, 0x4772, 0xa8, 0x37, 0x00, 0x18, 0x0b, 0x9b, 0x88, 0xfd);
132 #define INTERFACE ID3D10EffectType
133 DECLARE_INTERFACE(ID3D10EffectType)
135 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
136 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_TYPE_DESC *desc) PURE;
137 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeByIndex)(THIS_ UINT index) PURE;
138 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeByName)(THIS_ LPCSTR name) PURE;
139 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeBySemantic)(THIS_ LPCSTR semantic) PURE;
140 STDMETHOD_(LPCSTR, GetMemberName)(THIS_ UINT index) PURE;
141 STDMETHOD_(LPCSTR, GetMemberSemantic)(THIS_ UINT index) PURE;
145 DEFINE_GUID(IID_ID3D10EffectVariable, 0xae897105, 0x00e6, 0x45bf, 0xbb, 0x8e, 0x28, 0x1d, 0xd6, 0xdb, 0x8e, 0x1b);
147 #define INTERFACE ID3D10EffectVariable
148 DECLARE_INTERFACE(ID3D10EffectVariable)
150 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
151 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
152 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
153 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
154 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
155 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
156 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
157 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
158 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
159 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
160 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
161 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
162 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
163 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
164 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
165 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
166 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
167 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
168 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
169 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
170 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
171 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
172 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
173 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
174 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
178 DEFINE_GUID(IID_ID3D10EffectConstantBuffer, 0x56648f4d, 0xcc8b, 0x4444, 0xa5, 0xad, 0xb5, 0xa3, 0xd7, 0x6e, 0x91, 0xb3);
180 #define INTERFACE ID3D10EffectConstantBuffer
181 DECLARE_INTERFACE_(ID3D10EffectConstantBuffer, ID3D10EffectVariable)
183 /* ID3D10EffectVariable methods */
184 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
185 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
186 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
187 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
188 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
189 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
190 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
191 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
192 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
193 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
194 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
195 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
196 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
197 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
198 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
199 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
200 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
201 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
202 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
203 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
204 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
205 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
206 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
207 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
208 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
209 /* ID3D10EffectConstantBuffer methods */
210 STDMETHOD(SetConstantBuffer)(THIS_ ID3D10Buffer *buffer) PURE;
211 STDMETHOD(GetConstantBuffer)(THIS_ ID3D10Buffer **buffer) PURE;
212 STDMETHOD(SetTextureBuffer)(THIS_ ID3D10ShaderResourceView *view) PURE;
213 STDMETHOD(GetTextureBuffer)(THIS_ ID3D10ShaderResourceView **view) PURE;
217 DEFINE_GUID(IID_ID3D10EffectScalarVariable, 0x00e48f7b, 0xd2c8, 0x49e8, 0xa8, 0x6c, 0x02, 0x2d, 0xee, 0x53, 0x43, 0x1f);
219 #define INTERFACE ID3D10EffectScalarVariable
220 DECLARE_INTERFACE_(ID3D10EffectScalarVariable, ID3D10EffectVariable)
222 /* ID3D10EffectVariable methods */
223 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
224 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
225 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
226 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
227 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
228 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
229 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
230 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
231 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
232 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
233 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
234 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
235 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
236 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
237 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
238 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
239 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
240 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
241 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
242 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
243 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
244 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
245 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
246 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
247 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
248 /* ID3D10EffectScalarVariable methods */
249 STDMETHOD(SetFloat)(THIS_ float value) PURE;
250 STDMETHOD(GetFloat)(THIS_ float *value) PURE;
251 STDMETHOD(SetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
252 STDMETHOD(GetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
253 STDMETHOD(SetInt)(THIS_ int value) PURE;
254 STDMETHOD(GetInt)(THIS_ int *value) PURE;
255 STDMETHOD(SetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
256 STDMETHOD(GetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
257 STDMETHOD(SetBool)(THIS_ BOOL value) PURE;
258 STDMETHOD(GetBool)(THIS_ BOOL *value) PURE;
259 STDMETHOD(SetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
260 STDMETHOD(GetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
264 DEFINE_GUID(IID_ID3D10EffectVectorVariable, 0x62b98c44, 0x1f82, 0x4c67, 0xbc, 0xd0, 0x72, 0xcf, 0x8f, 0x21, 0x7e, 0x81);
266 #define INTERFACE ID3D10EffectVectorVariable
267 DECLARE_INTERFACE_(ID3D10EffectVectorVariable, ID3D10EffectVariable)
269 /* ID3D10EffectVariable methods */
270 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
271 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
272 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
273 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
274 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
275 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
276 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
277 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
278 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
279 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
280 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
281 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
282 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
283 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
284 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
285 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
286 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
287 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
288 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
289 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
290 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
291 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
292 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
293 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
294 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
295 /* ID3D10EffectVectorVariable methods */
296 STDMETHOD(SetBoolVector)(THIS_ BOOL *value) PURE;
297 STDMETHOD(SetIntVector)(THIS_ int *value) PURE;
298 STDMETHOD(SetFloatVector)(THIS_ float *value) PURE;
299 STDMETHOD(GetBoolVector)(THIS_ BOOL *value) PURE;
300 STDMETHOD(GetIntVector)(THIS_ int *value) PURE;
301 STDMETHOD(GetFloatVector)(THIS_ float *value) PURE;
302 STDMETHOD(SetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
303 STDMETHOD(SetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE;
304 STDMETHOD(SetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE;
305 STDMETHOD(GetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
306 STDMETHOD(GetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE;
307 STDMETHOD(GetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE;
311 DEFINE_GUID(IID_ID3D10EffectMatrixVariable, 0x50666c24, 0xb82f, 0x4eed, 0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0);
313 #define INTERFACE ID3D10EffectMatrixVariable
314 DECLARE_INTERFACE_(ID3D10EffectMatrixVariable, ID3D10EffectVariable)
316 /* ID3D10EffectVariable methods */
317 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
318 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
319 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
320 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
321 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
322 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
323 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
324 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
325 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
326 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
327 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
328 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
329 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
330 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
331 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
332 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
333 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
334 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
335 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
336 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
337 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
338 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
339 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
340 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
341 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
342 /* ID3D10EffectMatrixVariable methods */
343 STDMETHOD(SetMatrix)(THIS_ float *data) PURE;
344 STDMETHOD(GetMatrix)(THIS_ float *data) PURE;
345 STDMETHOD(SetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
346 STDMETHOD(GetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
347 STDMETHOD(SetMatrixTranspose)(THIS_ float *data) PURE;
348 STDMETHOD(GetMatrixTranspose)(THIS_ float *data) PURE;
349 STDMETHOD(SetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
350 STDMETHOD(GetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
354 DEFINE_GUID(IID_ID3D10EffectStringVariable, 0x71417501, 0x8df9, 0x4e0a, 0xa7, 0x8a, 0x25, 0x5f, 0x97, 0x56, 0xba, 0xff);
356 #define INTERFACE ID3D10EffectStringVariable
357 DECLARE_INTERFACE_(ID3D10EffectStringVariable, ID3D10EffectVariable)
359 /* ID3D10EffectVariable methods */
360 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
361 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
362 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
363 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
364 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
365 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
366 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
367 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
368 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
369 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
370 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
371 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
372 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
373 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
374 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
375 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
376 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
377 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
378 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
379 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
380 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
381 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
382 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
383 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
384 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
385 /* ID3D10EffectStringVariable methods */
386 STDMETHOD(GetString)(THIS_ LPCSTR *str) PURE;
387 STDMETHOD(GetStringArray)(THIS_ LPCSTR *strs, UINT offset, UINT count) PURE;
391 DEFINE_GUID(IID_ID3D10EffectShaderResourceVariable,
392 0xc0a7157b, 0xd872, 0x4b1d, 0x80, 0x73, 0xef, 0xc2, 0xac, 0xd4, 0xb1, 0xfc);
394 #define INTERFACE ID3D10EffectShaderResourceVariable
395 DECLARE_INTERFACE_(ID3D10EffectShaderResourceVariable, ID3D10EffectVariable)
397 /* ID3D10EffectVariable methods */
398 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
399 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
400 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
401 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
402 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
403 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
404 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
405 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
406 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
407 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
408 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
409 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
410 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
411 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
412 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
413 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
414 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
415 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
416 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
417 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
418 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
419 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
420 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
421 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
422 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
423 /* ID3D10EffectShaderResourceVariable methods */
424 STDMETHOD(SetResource)(THIS_ ID3D10ShaderResourceView *resource) PURE;
425 STDMETHOD(GetResource)(THIS_ ID3D10ShaderResourceView **resource) PURE;
426 STDMETHOD(SetResourceArray)(THIS_ ID3D10ShaderResourceView **resources, UINT offset, UINT count) PURE;
427 STDMETHOD(GetResourceArray)(THIS_ ID3D10ShaderResourceView **resources, UINT offset, UINT count) PURE;
431 DEFINE_GUID(IID_ID3D10EffectRenderTargetViewVariable,
432 0x28ca0cc3, 0xc2c9, 0x40bb, 0xb5, 0x7f, 0x67, 0xb7, 0x37, 0x12, 0x2b, 0x17);
434 #define INTERFACE ID3D10EffectRenderTargetViewVariable
435 DECLARE_INTERFACE_(ID3D10EffectRenderTargetViewVariable, ID3D10EffectVariable)
437 /* ID3D10EffectVariable methods */
438 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
439 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
440 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
441 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
442 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
443 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
444 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
445 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
446 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
447 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
448 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
449 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
450 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
451 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
452 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
453 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
454 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
455 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
456 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
457 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
458 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
459 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
460 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
461 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
462 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
463 /* ID3D10EffectRenderTargetViewVariable methods */
464 STDMETHOD(SetRenderTarget)(THIS_ ID3D10RenderTargetView *view) PURE;
465 STDMETHOD(GetRenderTarget)(THIS_ ID3D10RenderTargetView **view) PURE;
466 STDMETHOD(SetRenderTargetArray)(THIS_ ID3D10RenderTargetView **views, UINT offset, UINT count) PURE;
467 STDMETHOD(GetRenderTargetArray)(THIS_ ID3D10RenderTargetView **views, UINT offset, UINT count) PURE;
471 DEFINE_GUID(IID_ID3D10EffectDepthStencilViewVariable,
472 0x3e02c918, 0xcc79, 0x4985, 0xb6, 0x22, 0x2d, 0x92, 0xad, 0x70, 0x16, 0x23);
474 #define INTERFACE ID3D10EffectDepthStencilViewVariable
475 DECLARE_INTERFACE_(ID3D10EffectDepthStencilViewVariable, ID3D10EffectVariable)
477 /* ID3D10EffectVariable methods */
478 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
479 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
480 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
481 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
482 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
483 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
484 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
485 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
486 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
487 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
488 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
489 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
490 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
491 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
492 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
493 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
494 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
495 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
496 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
497 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
498 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
499 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
500 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
501 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
502 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
503 /* ID3D10EffectDepthStencilViewVariable methods */
504 STDMETHOD(SetDepthStencil)(THIS_ ID3D10DepthStencilView *view) PURE;
505 STDMETHOD(GetDepthStencil)(THIS_ ID3D10DepthStencilView **view) PURE;
506 STDMETHOD(SetDepthStencilArray)(THIS_ ID3D10DepthStencilView **views, UINT offset, UINT count) PURE;
507 STDMETHOD(GetDepthStencilArray)(THIS_ ID3D10DepthStencilView **views, UINT offset, UINT count) PURE;
511 DEFINE_GUID(IID_ID3D10EffectShaderVariable, 0x80849279, 0xc799, 0x4797, 0x8c, 0x33, 0x04, 0x07, 0xa0, 0x7d, 0x9e, 0x06);
513 #define INTERFACE ID3D10EffectShaderVariable
514 DECLARE_INTERFACE_(ID3D10EffectShaderVariable, ID3D10EffectVariable)
516 /* ID3D10EffectVariable methods */
517 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
518 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
519 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
520 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
521 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
522 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
523 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
524 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
525 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
526 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
527 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
528 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
529 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
530 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
531 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
532 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
533 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
534 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
535 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
536 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
537 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
538 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
539 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
540 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
541 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
542 /* ID3D10EffectShaderVariable methods */
543 STDMETHOD(GetShaderDesc)(THIS_ UINT index, D3D10_EFFECT_SHADER_DESC *desc) PURE;
544 STDMETHOD(GetVertexShader)(THIS_ UINT index, ID3D10VertexShader **shader) PURE;
545 STDMETHOD(GetGeometryShader)(THIS_ UINT index, ID3D10GeometryShader **shader) PURE;
546 STDMETHOD(GetPixelShader)(THIS_ UINT index, ID3D10PixelShader **shader) PURE;
547 STDMETHOD(GetInputSignatureElementDesc)(THIS_ UINT shader_index, UINT element_index,
548 D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
549 STDMETHOD(GetOutputSignatureElementDesc)(THIS_ UINT shader_index, UINT element_index,
550 D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
554 DEFINE_GUID(IID_ID3D10EffectBlendVariable, 0x1fcd2294, 0xdf6d, 0x4eae, 0x86, 0xb3, 0x0e, 0x91, 0x60, 0xcf, 0xb0, 0x7b);
556 #define INTERFACE ID3D10EffectBlendVariable
557 DECLARE_INTERFACE_(ID3D10EffectBlendVariable, ID3D10EffectVariable)
559 /* ID3D10EffectVariable methods */
560 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
561 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
562 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
563 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
564 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
565 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
566 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
567 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
568 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
569 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
570 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
571 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
572 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
573 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
574 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
575 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
576 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
577 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
578 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
579 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
580 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
581 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
582 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
583 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
584 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
585 /* ID3D10EffectBlendVariable methods */
586 STDMETHOD(GetBlendState)(THIS_ UINT index, ID3D10BlendState **blend_state) PURE;
587 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_BLEND_DESC *desc) PURE;
591 DEFINE_GUID(IID_ID3D10EffectDepthStencilVariable,
592 0xaf482368, 0x330a, 0x46a5, 0x9a, 0x5c, 0x01, 0xc7, 0x1a, 0xf2, 0x4c, 0x8d);
594 #define INTERFACE ID3D10EffectDepthStencilVariable
595 DECLARE_INTERFACE_(ID3D10EffectDepthStencilVariable, ID3D10EffectVariable)
597 /* ID3D10EffectVariable methods */
598 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
599 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
600 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
601 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
602 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
603 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
604 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
605 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
606 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
607 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
608 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
609 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
610 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
611 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
612 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
613 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
614 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
615 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
616 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
617 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
618 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
619 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
620 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
621 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
622 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
623 /* ID3D10EffectDepthStencilVariable methods */
624 STDMETHOD(GetDepthStencilState)(THIS_ UINT index, ID3D10DepthStencilState **depth_stencil_state) PURE;
625 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_DEPTH_STENCIL_DESC *desc) PURE;
629 DEFINE_GUID(IID_ID3D10EffectRasterizerVariable,
630 0x21af9f0e, 0x4d94, 0x4ea9, 0x97, 0x85, 0x2c, 0xb7, 0x6b, 0x8c, 0x0b, 0x34);
632 #define INTERFACE ID3D10EffectRasterizerVariable
633 DECLARE_INTERFACE_(ID3D10EffectRasterizerVariable, ID3D10EffectVariable)
635 /* ID3D10EffectVariable methods */
636 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
637 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
638 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
639 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
640 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
641 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
642 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
643 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
644 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
645 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
646 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
647 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
648 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
649 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
650 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
651 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
652 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
653 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
654 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
655 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
656 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
657 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
658 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
659 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
660 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
661 /* ID3D10EffectRasterizerVariable methods */
662 STDMETHOD(GetRasterizerState)(THIS_ UINT index, ID3D10RasterizerState **rasterizer_state) PURE;
663 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_RASTERIZER_DESC *desc) PURE;
667 DEFINE_GUID(IID_ID3D10EffectSamplerVariable,
668 0x6530d5c7, 0x07e9, 0x4271, 0xa4, 0x18, 0xe7, 0xce, 0x4b, 0xd1, 0xe4, 0x80);
670 #define INTERFACE ID3D10EffectSamplerVariable
671 DECLARE_INTERFACE_(ID3D10EffectSamplerVariable, ID3D10EffectVariable)
673 /* ID3D10EffectVariable methods */
674 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
675 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
676 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
677 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
678 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
679 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
680 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
681 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
682 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
683 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
684 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
685 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
686 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
687 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
688 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
689 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
690 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
691 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
692 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
693 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
694 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
695 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
696 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
697 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
698 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
699 /* ID3D10EffectSamplerVariable methods */
700 STDMETHOD(GetSampler)(THIS_ UINT index, ID3D10SamplerState **sampler) PURE;
701 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_SAMPLER_DESC *desc) PURE;
705 DEFINE_GUID(IID_ID3D10EffectTechnique, 0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75);
707 #define INTERFACE ID3D10EffectTechnique
708 DECLARE_INTERFACE(ID3D10EffectTechnique)
710 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
711 STDMETHOD(GetDesc)(THIS_ D3D10_TECHNIQUE_DESC *desc) PURE;
712 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
713 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
714 STDMETHOD_(struct ID3D10EffectPass *, GetPassByIndex)(THIS_ UINT index) PURE;
715 STDMETHOD_(struct ID3D10EffectPass *, GetPassByName)(THIS_ LPCSTR name) PURE;
716 STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *mask) PURE;
720 DEFINE_GUID(IID_ID3D10Effect, 0x51b0ca8b, 0xec0b, 0x4519, 0x87, 0x0d, 0x8e, 0xe1, 0xcb, 0x50, 0x17, 0xc7);
722 #define INTERFACE ID3D10Effect
723 DECLARE_INTERFACE_(ID3D10Effect, IUnknown)
725 /* IUnknown methods */
726 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *object) PURE;
727 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
728 STDMETHOD_(ULONG, Release)(THIS) PURE;
729 /* ID3D10Effect methods */
730 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
731 STDMETHOD_(BOOL, IsPool)(THIS) PURE;
732 STDMETHOD(GetDevice)(THIS_ ID3D10Device **device) PURE;
733 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_DESC *desc) PURE;
734 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetConstantBufferByIndex)(THIS_ UINT index) PURE;
735 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetConstantBufferByName)(THIS_ LPCSTR name) PURE;
736 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableByIndex)(THIS_ UINT index) PURE;
737 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableByName)(THIS_ LPCSTR name) PURE;
738 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableBySemantic)(THIS_ LPCSTR semantic) PURE;
739 STDMETHOD_(struct ID3D10EffectTechnique *, GetTechniqueByIndex)(THIS_ UINT index) PURE;
740 STDMETHOD_(struct ID3D10EffectTechnique *, GetTechniqueByName)(THIS_ LPCSTR name) PURE;
741 STDMETHOD(Optimize)(THIS) PURE;
742 STDMETHOD_(BOOL, IsOptimized)(THIS) PURE;
746 DEFINE_GUID(IID_ID3D10EffectPool, 0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33);
748 #define INTERFACE ID3D10EffectPool
749 DECLARE_INTERFACE_(ID3D10EffectPool, IUnknown)
751 /* IUnknown methods */
752 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *object) PURE;
753 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
754 STDMETHOD_(ULONG, Release)(THIS) PURE;
755 /* ID3D10EffectPool methods */
756 STDMETHOD_(struct ID3D10Effect *, AsEffect)(THIS) PURE;
760 DEFINE_GUID(IID_ID3D10EffectPass, 0x5cfbeb89, 0x1a06, 0x46e0, 0xb2, 0x82, 0xe3, 0xf9, 0xbf, 0xa3, 0x6a, 0x54);
762 #define INTERFACE ID3D10EffectPass
763 DECLARE_INTERFACE(ID3D10EffectPass)
765 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
766 STDMETHOD(GetDesc)(THIS_ D3D10_PASS_DESC *desc) PURE;
767 STDMETHOD(GetVertexShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
768 STDMETHOD(GetGeometryShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
769 STDMETHOD(GetPixelShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
770 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
771 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
772 STDMETHOD(Apply)(THIS_ UINT flags) PURE;
773 STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *mask) PURE;
781 HRESULT WINAPI D3D10CreateEffectFromMemory(void *data, SIZE_T data_size, UINT flags,
782 ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3D10Effect **effect);
788 #endif /* __WINE_D3D10EFFECT_H */