po: Add message contexts for 'Desktop' and update Japanese translation.
[wine/multimedia.git] / include / d3d10effect.h
blob772d424aca41007615cf086fe15d29e4212ac770
1 /*
2 * Copyright 2009 Henri Verbeet for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_D3D10EFFECT_H
21 #define __WINE_D3D10EFFECT_H
23 #include "d3d10.h"
25 #define D3D10_EFFECT_VARIABLE_POOLED 0x1
26 #define D3D10_EFFECT_VARIABLE_ANNOTATION 0x2
27 #define D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT 0x4
29 #ifndef D3D10_BYTES_FROM_BITS
30 #define D3D10_BYTES_FROM_BITS(x) (((x) + 7) >> 3)
31 #endif
33 typedef struct _D3D10_EFFECT_TYPE_DESC
35 LPCSTR TypeName;
36 D3D10_SHADER_VARIABLE_CLASS Class;
37 D3D10_SHADER_VARIABLE_TYPE Type;
38 UINT Elements;
39 UINT Members;
40 UINT Rows;
41 UINT Columns;
42 UINT PackedSize;
43 UINT UnpackedSize;
44 UINT Stride;
45 } D3D10_EFFECT_TYPE_DESC;
47 typedef struct _D3D10_EFFECT_VARIABLE_DESC
49 LPCSTR Name;
50 LPCSTR Semantic;
51 UINT Flags;
52 UINT Annotations;
53 UINT BufferOffset;
54 UINT ExplicitBindPoint;
55 } D3D10_EFFECT_VARIABLE_DESC;
57 typedef struct _D3D10_TECHNIQUE_DESC
59 LPCSTR Name;
60 UINT Passes;
61 UINT Annotations;
62 } D3D10_TECHNIQUE_DESC;
64 typedef struct _D3D10_STATE_BLOCK_MASK
66 BYTE VS;
67 BYTE VSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
68 BYTE VSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
69 BYTE VSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
70 BYTE GS;
71 BYTE GSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
72 BYTE GSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
73 BYTE GSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
74 BYTE PS;
75 BYTE PSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
76 BYTE PSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
77 BYTE PSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
78 BYTE IAVertexBuffers[D3D10_BYTES_FROM_BITS(D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT)];
79 BYTE IAIndexBuffer;
80 BYTE IAInputLayout;
81 BYTE IAPrimitiveTopology;
82 BYTE OMRenderTargets;
83 BYTE OMDepthStencilState;
84 BYTE OMBlendState;
85 BYTE RSViewports;
86 BYTE RSScissorRects;
87 BYTE RSRasterizerState;
88 BYTE SOBuffers;
89 BYTE Predication;
90 } D3D10_STATE_BLOCK_MASK;
92 typedef struct _D3D10_EFFECT_DESC
94 BOOL IsChildEffect;
95 UINT ConstantBuffers;
96 UINT SharedConstantBuffers;
97 UINT GlobalVariables;
98 UINT SharedGlobalVariables;
99 UINT Techniques;
100 } D3D10_EFFECT_DESC;
102 typedef struct _D3D10_EFFECT_SHADER_DESC
104 const BYTE *pInputSignature;
105 BOOL IsInline;
106 const BYTE *pBytecode;
107 UINT BytecodeLength;
108 LPCSTR SODecl;
109 UINT NumInputSignatureEntries;
110 UINT NumOutputSignatureEntries;
111 } D3D10_EFFECT_SHADER_DESC;
113 typedef struct _D3D10_PASS_DESC
115 LPCSTR Name;
116 UINT Annotations;
117 BYTE *pIAInputSignature;
118 SIZE_T IAInputSignatureSize;
119 UINT StencilRef;
120 UINT SampleMask;
121 FLOAT BlendFactor[4];
122 } D3D10_PASS_DESC;
124 typedef struct _D3D10_PASS_SHADER_DESC
126 struct ID3D10EffectShaderVariable *pShaderVariable;
127 UINT ShaderIndex;
128 } D3D10_PASS_SHADER_DESC;
130 #define D3D10_EFFECT_COMPILE_CHILD_EFFECT 0x0001
131 #define D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS 0x0002
132 #define D3D10_EFFECT_SINGLE_THREADED 0x0008
134 DEFINE_GUID(IID_ID3D10EffectType, 0x4e9e1ddc, 0xcd9d, 0x4772, 0xa8, 0x37, 0x00, 0x18, 0x0b, 0x9b, 0x88, 0xfd);
136 #define INTERFACE ID3D10EffectType
137 DECLARE_INTERFACE(ID3D10EffectType)
139 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
140 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_TYPE_DESC *desc) PURE;
141 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeByIndex)(THIS_ UINT index) PURE;
142 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeByName)(THIS_ LPCSTR name) PURE;
143 STDMETHOD_(struct ID3D10EffectType *, GetMemberTypeBySemantic)(THIS_ LPCSTR semantic) PURE;
144 STDMETHOD_(LPCSTR, GetMemberName)(THIS_ UINT index) PURE;
145 STDMETHOD_(LPCSTR, GetMemberSemantic)(THIS_ UINT index) PURE;
147 #undef INTERFACE
149 DEFINE_GUID(IID_ID3D10EffectVariable, 0xae897105, 0x00e6, 0x45bf, 0xbb, 0x8e, 0x28, 0x1d, 0xd6, 0xdb, 0x8e, 0x1b);
151 #define INTERFACE ID3D10EffectVariable
152 DECLARE_INTERFACE(ID3D10EffectVariable)
154 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
155 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
156 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
157 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
158 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
159 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
160 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
161 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
162 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
163 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
164 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
165 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
166 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
167 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
168 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
169 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
170 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
171 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
172 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
173 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
174 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
175 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
176 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
177 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
178 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
180 #undef INTERFACE
182 DEFINE_GUID(IID_ID3D10EffectConstantBuffer, 0x56648f4d, 0xcc8b, 0x4444, 0xa5, 0xad, 0xb5, 0xa3, 0xd7, 0x6e, 0x91, 0xb3);
184 #define INTERFACE ID3D10EffectConstantBuffer
185 DECLARE_INTERFACE_(ID3D10EffectConstantBuffer, ID3D10EffectVariable)
187 /* ID3D10EffectVariable methods */
188 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
189 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
190 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
191 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
192 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
193 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
194 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
195 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
196 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
197 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
198 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
199 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
200 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
201 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
202 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
203 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
204 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
205 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
206 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
207 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
208 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
209 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
210 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
211 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
212 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
213 /* ID3D10EffectConstantBuffer methods */
214 STDMETHOD(SetConstantBuffer)(THIS_ ID3D10Buffer *buffer) PURE;
215 STDMETHOD(GetConstantBuffer)(THIS_ ID3D10Buffer **buffer) PURE;
216 STDMETHOD(SetTextureBuffer)(THIS_ ID3D10ShaderResourceView *view) PURE;
217 STDMETHOD(GetTextureBuffer)(THIS_ ID3D10ShaderResourceView **view) PURE;
219 #undef INTERFACE
221 DEFINE_GUID(IID_ID3D10EffectScalarVariable, 0x00e48f7b, 0xd2c8, 0x49e8, 0xa8, 0x6c, 0x02, 0x2d, 0xee, 0x53, 0x43, 0x1f);
223 #define INTERFACE ID3D10EffectScalarVariable
224 DECLARE_INTERFACE_(ID3D10EffectScalarVariable, ID3D10EffectVariable)
226 /* ID3D10EffectVariable methods */
227 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
228 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
229 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
230 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
231 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
232 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
233 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
234 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
235 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
236 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
237 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
238 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
239 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
240 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
241 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
242 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
243 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
244 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
245 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
246 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
247 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
248 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
249 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
250 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
251 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
252 /* ID3D10EffectScalarVariable methods */
253 STDMETHOD(SetFloat)(THIS_ float value) PURE;
254 STDMETHOD(GetFloat)(THIS_ float *value) PURE;
255 STDMETHOD(SetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
256 STDMETHOD(GetFloatArray)(THIS_ float *values, UINT offset, UINT count) PURE;
257 STDMETHOD(SetInt)(THIS_ int value) PURE;
258 STDMETHOD(GetInt)(THIS_ int *value) PURE;
259 STDMETHOD(SetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
260 STDMETHOD(GetIntArray)(THIS_ int *values, UINT offset, UINT count) PURE;
261 STDMETHOD(SetBool)(THIS_ BOOL value) PURE;
262 STDMETHOD(GetBool)(THIS_ BOOL *value) PURE;
263 STDMETHOD(SetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
264 STDMETHOD(GetBoolArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
266 #undef INTERFACE
268 DEFINE_GUID(IID_ID3D10EffectVectorVariable, 0x62b98c44, 0x1f82, 0x4c67, 0xbc, 0xd0, 0x72, 0xcf, 0x8f, 0x21, 0x7e, 0x81);
270 #define INTERFACE ID3D10EffectVectorVariable
271 DECLARE_INTERFACE_(ID3D10EffectVectorVariable, ID3D10EffectVariable)
273 /* ID3D10EffectVariable methods */
274 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
275 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
276 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
277 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
278 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
279 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
280 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
281 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
282 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
283 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
284 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
285 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
286 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
287 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
288 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
289 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
290 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
291 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
292 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
293 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
294 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
295 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
296 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
297 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
298 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
299 /* ID3D10EffectVectorVariable methods */
300 STDMETHOD(SetBoolVector)(THIS_ BOOL *value) PURE;
301 STDMETHOD(SetIntVector)(THIS_ int *value) PURE;
302 STDMETHOD(SetFloatVector)(THIS_ float *value) PURE;
303 STDMETHOD(GetBoolVector)(THIS_ BOOL *value) PURE;
304 STDMETHOD(GetIntVector)(THIS_ int *value) PURE;
305 STDMETHOD(GetFloatVector)(THIS_ float *value) PURE;
306 STDMETHOD(SetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
307 STDMETHOD(SetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE;
308 STDMETHOD(SetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE;
309 STDMETHOD(GetBoolVectorArray)(THIS_ BOOL *values, UINT offset, UINT count) PURE;
310 STDMETHOD(GetIntVectorArray)(THIS_ int *values, UINT offset, UINT count) PURE;
311 STDMETHOD(GetFloatVectorArray)(THIS_ float *values, UINT offset, UINT count) PURE;
313 #undef INTERFACE
315 DEFINE_GUID(IID_ID3D10EffectMatrixVariable, 0x50666c24, 0xb82f, 0x4eed, 0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0);
317 #define INTERFACE ID3D10EffectMatrixVariable
318 DECLARE_INTERFACE_(ID3D10EffectMatrixVariable, ID3D10EffectVariable)
320 /* ID3D10EffectVariable methods */
321 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
322 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
323 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
324 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
325 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
326 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
327 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
328 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
329 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
330 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
331 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
332 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
333 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
334 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
335 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
336 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
337 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
338 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
339 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
340 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
341 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
342 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
343 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
344 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
345 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
346 /* ID3D10EffectMatrixVariable methods */
347 STDMETHOD(SetMatrix)(THIS_ float *data) PURE;
348 STDMETHOD(GetMatrix)(THIS_ float *data) PURE;
349 STDMETHOD(SetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
350 STDMETHOD(GetMatrixArray)(THIS_ float *data, UINT offset, UINT count) PURE;
351 STDMETHOD(SetMatrixTranspose)(THIS_ float *data) PURE;
352 STDMETHOD(GetMatrixTranspose)(THIS_ float *data) PURE;
353 STDMETHOD(SetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
354 STDMETHOD(GetMatrixTransposeArray)(THIS_ float *data, UINT offset, UINT count) PURE;
356 #undef INTERFACE
358 DEFINE_GUID(IID_ID3D10EffectStringVariable, 0x71417501, 0x8df9, 0x4e0a, 0xa7, 0x8a, 0x25, 0x5f, 0x97, 0x56, 0xba, 0xff);
360 #define INTERFACE ID3D10EffectStringVariable
361 DECLARE_INTERFACE_(ID3D10EffectStringVariable, ID3D10EffectVariable)
363 /* ID3D10EffectVariable methods */
364 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
365 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
366 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
367 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
368 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
369 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
370 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
371 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
372 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
373 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
374 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
375 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
376 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
377 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
378 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
379 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
380 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
381 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
382 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
383 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
384 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
385 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
386 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
387 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
388 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
389 /* ID3D10EffectStringVariable methods */
390 STDMETHOD(GetString)(THIS_ LPCSTR *str) PURE;
391 STDMETHOD(GetStringArray)(THIS_ LPCSTR *strs, UINT offset, UINT count) PURE;
393 #undef INTERFACE
395 DEFINE_GUID(IID_ID3D10EffectShaderResourceVariable,
396 0xc0a7157b, 0xd872, 0x4b1d, 0x80, 0x73, 0xef, 0xc2, 0xac, 0xd4, 0xb1, 0xfc);
398 #define INTERFACE ID3D10EffectShaderResourceVariable
399 DECLARE_INTERFACE_(ID3D10EffectShaderResourceVariable, ID3D10EffectVariable)
401 /* ID3D10EffectVariable methods */
402 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
403 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
404 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
405 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
406 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
407 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
408 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
409 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
410 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
411 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
412 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
413 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
414 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
415 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
416 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
417 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
418 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
419 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
420 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
421 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
422 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
423 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
424 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
425 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
426 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
427 /* ID3D10EffectShaderResourceVariable methods */
428 STDMETHOD(SetResource)(THIS_ ID3D10ShaderResourceView *resource) PURE;
429 STDMETHOD(GetResource)(THIS_ ID3D10ShaderResourceView **resource) PURE;
430 STDMETHOD(SetResourceArray)(THIS_ ID3D10ShaderResourceView **resources, UINT offset, UINT count) PURE;
431 STDMETHOD(GetResourceArray)(THIS_ ID3D10ShaderResourceView **resources, UINT offset, UINT count) PURE;
433 #undef INTERFACE
435 DEFINE_GUID(IID_ID3D10EffectRenderTargetViewVariable,
436 0x28ca0cc3, 0xc2c9, 0x40bb, 0xb5, 0x7f, 0x67, 0xb7, 0x37, 0x12, 0x2b, 0x17);
438 #define INTERFACE ID3D10EffectRenderTargetViewVariable
439 DECLARE_INTERFACE_(ID3D10EffectRenderTargetViewVariable, ID3D10EffectVariable)
441 /* ID3D10EffectVariable methods */
442 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
443 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
444 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
445 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
446 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
447 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
448 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
449 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
450 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
451 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
452 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
453 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
454 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
455 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
456 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
457 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
458 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
459 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
460 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
461 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
462 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
463 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
464 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
465 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
466 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
467 /* ID3D10EffectRenderTargetViewVariable methods */
468 STDMETHOD(SetRenderTarget)(THIS_ ID3D10RenderTargetView *view) PURE;
469 STDMETHOD(GetRenderTarget)(THIS_ ID3D10RenderTargetView **view) PURE;
470 STDMETHOD(SetRenderTargetArray)(THIS_ ID3D10RenderTargetView **views, UINT offset, UINT count) PURE;
471 STDMETHOD(GetRenderTargetArray)(THIS_ ID3D10RenderTargetView **views, UINT offset, UINT count) PURE;
473 #undef INTERFACE
475 DEFINE_GUID(IID_ID3D10EffectDepthStencilViewVariable,
476 0x3e02c918, 0xcc79, 0x4985, 0xb6, 0x22, 0x2d, 0x92, 0xad, 0x70, 0x16, 0x23);
478 #define INTERFACE ID3D10EffectDepthStencilViewVariable
479 DECLARE_INTERFACE_(ID3D10EffectDepthStencilViewVariable, ID3D10EffectVariable)
481 /* ID3D10EffectVariable methods */
482 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
483 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
484 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
485 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
486 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
487 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
488 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
489 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
490 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
491 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
492 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
493 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
494 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
495 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
496 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
497 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
498 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
499 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
500 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
501 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
502 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
503 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
504 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
505 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
506 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
507 /* ID3D10EffectDepthStencilViewVariable methods */
508 STDMETHOD(SetDepthStencil)(THIS_ ID3D10DepthStencilView *view) PURE;
509 STDMETHOD(GetDepthStencil)(THIS_ ID3D10DepthStencilView **view) PURE;
510 STDMETHOD(SetDepthStencilArray)(THIS_ ID3D10DepthStencilView **views, UINT offset, UINT count) PURE;
511 STDMETHOD(GetDepthStencilArray)(THIS_ ID3D10DepthStencilView **views, UINT offset, UINT count) PURE;
513 #undef INTERFACE
515 DEFINE_GUID(IID_ID3D10EffectShaderVariable, 0x80849279, 0xc799, 0x4797, 0x8c, 0x33, 0x04, 0x07, 0xa0, 0x7d, 0x9e, 0x06);
517 #define INTERFACE ID3D10EffectShaderVariable
518 DECLARE_INTERFACE_(ID3D10EffectShaderVariable, ID3D10EffectVariable)
520 /* ID3D10EffectVariable methods */
521 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
522 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
523 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
524 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
525 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
526 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
527 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
528 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
529 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
530 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
531 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
532 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
533 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
534 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
535 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
536 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
537 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
538 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
539 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
540 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
541 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
542 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
543 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
544 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
545 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
546 /* ID3D10EffectShaderVariable methods */
547 STDMETHOD(GetShaderDesc)(THIS_ UINT index, D3D10_EFFECT_SHADER_DESC *desc) PURE;
548 STDMETHOD(GetVertexShader)(THIS_ UINT index, ID3D10VertexShader **shader) PURE;
549 STDMETHOD(GetGeometryShader)(THIS_ UINT index, ID3D10GeometryShader **shader) PURE;
550 STDMETHOD(GetPixelShader)(THIS_ UINT index, ID3D10PixelShader **shader) PURE;
551 STDMETHOD(GetInputSignatureElementDesc)(THIS_ UINT shader_index, UINT element_index,
552 D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
553 STDMETHOD(GetOutputSignatureElementDesc)(THIS_ UINT shader_index, UINT element_index,
554 D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
556 #undef INTERFACE
558 DEFINE_GUID(IID_ID3D10EffectBlendVariable, 0x1fcd2294, 0xdf6d, 0x4eae, 0x86, 0xb3, 0x0e, 0x91, 0x60, 0xcf, 0xb0, 0x7b);
560 #define INTERFACE ID3D10EffectBlendVariable
561 DECLARE_INTERFACE_(ID3D10EffectBlendVariable, ID3D10EffectVariable)
563 /* ID3D10EffectVariable methods */
564 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
565 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
566 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
567 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
568 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
569 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
570 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
571 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
572 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
573 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
574 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
575 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
576 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
577 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
578 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
579 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
580 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
581 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
582 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
583 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
584 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
585 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
586 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
587 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
588 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
589 /* ID3D10EffectBlendVariable methods */
590 STDMETHOD(GetBlendState)(THIS_ UINT index, ID3D10BlendState **blend_state) PURE;
591 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_BLEND_DESC *desc) PURE;
593 #undef INTERFACE
595 DEFINE_GUID(IID_ID3D10EffectDepthStencilVariable,
596 0xaf482368, 0x330a, 0x46a5, 0x9a, 0x5c, 0x01, 0xc7, 0x1a, 0xf2, 0x4c, 0x8d);
598 #define INTERFACE ID3D10EffectDepthStencilVariable
599 DECLARE_INTERFACE_(ID3D10EffectDepthStencilVariable, ID3D10EffectVariable)
601 /* ID3D10EffectVariable methods */
602 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
603 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
604 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
605 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
606 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
607 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
608 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
609 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
610 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
611 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
612 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
613 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
614 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
615 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
616 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
617 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
618 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
619 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
620 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
621 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
622 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
623 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
624 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
625 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
626 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
627 /* ID3D10EffectDepthStencilVariable methods */
628 STDMETHOD(GetDepthStencilState)(THIS_ UINT index, ID3D10DepthStencilState **depth_stencil_state) PURE;
629 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_DEPTH_STENCIL_DESC *desc) PURE;
631 #undef INTERFACE
633 DEFINE_GUID(IID_ID3D10EffectRasterizerVariable,
634 0x21af9f0e, 0x4d94, 0x4ea9, 0x97, 0x85, 0x2c, 0xb7, 0x6b, 0x8c, 0x0b, 0x34);
636 #define INTERFACE ID3D10EffectRasterizerVariable
637 DECLARE_INTERFACE_(ID3D10EffectRasterizerVariable, ID3D10EffectVariable)
639 /* ID3D10EffectVariable methods */
640 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
641 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
642 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
643 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
644 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
645 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
646 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
647 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
648 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
649 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
650 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
651 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
652 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
653 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
654 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
655 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
656 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
657 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
658 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
659 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
660 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
661 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
662 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
663 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
664 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
665 /* ID3D10EffectRasterizerVariable methods */
666 STDMETHOD(GetRasterizerState)(THIS_ UINT index, ID3D10RasterizerState **rasterizer_state) PURE;
667 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_RASTERIZER_DESC *desc) PURE;
669 #undef INTERFACE
671 DEFINE_GUID(IID_ID3D10EffectSamplerVariable,
672 0x6530d5c7, 0x07e9, 0x4271, 0xa4, 0x18, 0xe7, 0xce, 0x4b, 0xd1, 0xe4, 0x80);
674 #define INTERFACE ID3D10EffectSamplerVariable
675 DECLARE_INTERFACE_(ID3D10EffectSamplerVariable, ID3D10EffectVariable)
677 /* ID3D10EffectVariable methods */
678 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
679 STDMETHOD_(struct ID3D10EffectType *, GetType)(THIS) PURE;
680 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *desc) PURE;
681 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
682 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
683 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByIndex)(THIS_ UINT index) PURE;
684 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberByName)(THIS_ LPCSTR name) PURE;
685 STDMETHOD_(struct ID3D10EffectVariable *, GetMemberBySemantic)(THIS_ LPCSTR semantic) PURE;
686 STDMETHOD_(struct ID3D10EffectVariable *, GetElement)(THIS_ UINT index) PURE;
687 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetParentConstantBuffer)(THIS) PURE;
688 STDMETHOD_(struct ID3D10EffectScalarVariable *, AsScalar)(THIS) PURE;
689 STDMETHOD_(struct ID3D10EffectVectorVariable *, AsVector)(THIS) PURE;
690 STDMETHOD_(struct ID3D10EffectMatrixVariable *, AsMatrix)(THIS) PURE;
691 STDMETHOD_(struct ID3D10EffectStringVariable *, AsString)(THIS) PURE;
692 STDMETHOD_(struct ID3D10EffectShaderResourceVariable *, AsShaderResource)(THIS) PURE;
693 STDMETHOD_(struct ID3D10EffectRenderTargetViewVariable *, AsRenderTargetView)(THIS) PURE;
694 STDMETHOD_(struct ID3D10EffectDepthStencilViewVariable *, AsDepthStencilView)(THIS) PURE;
695 STDMETHOD_(struct ID3D10EffectConstantBuffer *, AsConstantBuffer)(THIS) PURE;
696 STDMETHOD_(struct ID3D10EffectShaderVariable *, AsShader)(THIS) PURE;
697 STDMETHOD_(struct ID3D10EffectBlendVariable *, AsBlend)(THIS) PURE;
698 STDMETHOD_(struct ID3D10EffectDepthStencilVariable *, AsDepthStencil)(THIS) PURE;
699 STDMETHOD_(struct ID3D10EffectRasterizerVariable *, AsRasterizer)(THIS) PURE;
700 STDMETHOD_(struct ID3D10EffectSamplerVariable *, AsSampler)(THIS) PURE;
701 STDMETHOD(SetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
702 STDMETHOD(GetRawValue)(THIS_ void *data, UINT offset, UINT count) PURE;
703 /* ID3D10EffectSamplerVariable methods */
704 STDMETHOD(GetSampler)(THIS_ UINT index, ID3D10SamplerState **sampler) PURE;
705 STDMETHOD(GetBackingStore)(THIS_ UINT index, D3D10_SAMPLER_DESC *desc) PURE;
707 #undef INTERFACE
709 DEFINE_GUID(IID_ID3D10EffectTechnique, 0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75);
711 #define INTERFACE ID3D10EffectTechnique
712 DECLARE_INTERFACE(ID3D10EffectTechnique)
714 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
715 STDMETHOD(GetDesc)(THIS_ D3D10_TECHNIQUE_DESC *desc) PURE;
716 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
717 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
718 STDMETHOD_(struct ID3D10EffectPass *, GetPassByIndex)(THIS_ UINT index) PURE;
719 STDMETHOD_(struct ID3D10EffectPass *, GetPassByName)(THIS_ LPCSTR name) PURE;
720 STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *mask) PURE;
722 #undef INTERFACE
724 DEFINE_GUID(IID_ID3D10Effect, 0x51b0ca8b, 0xec0b, 0x4519, 0x87, 0x0d, 0x8e, 0xe1, 0xcb, 0x50, 0x17, 0xc7);
726 #define INTERFACE ID3D10Effect
727 DECLARE_INTERFACE_(ID3D10Effect, IUnknown)
729 /* IUnknown methods */
730 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *object) PURE;
731 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
732 STDMETHOD_(ULONG, Release)(THIS) PURE;
733 /* ID3D10Effect methods */
734 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
735 STDMETHOD_(BOOL, IsPool)(THIS) PURE;
736 STDMETHOD(GetDevice)(THIS_ ID3D10Device **device) PURE;
737 STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_DESC *desc) PURE;
738 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetConstantBufferByIndex)(THIS_ UINT index) PURE;
739 STDMETHOD_(struct ID3D10EffectConstantBuffer *, GetConstantBufferByName)(THIS_ LPCSTR name) PURE;
740 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableByIndex)(THIS_ UINT index) PURE;
741 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableByName)(THIS_ LPCSTR name) PURE;
742 STDMETHOD_(struct ID3D10EffectVariable *, GetVariableBySemantic)(THIS_ LPCSTR semantic) PURE;
743 STDMETHOD_(struct ID3D10EffectTechnique *, GetTechniqueByIndex)(THIS_ UINT index) PURE;
744 STDMETHOD_(struct ID3D10EffectTechnique *, GetTechniqueByName)(THIS_ LPCSTR name) PURE;
745 STDMETHOD(Optimize)(THIS) PURE;
746 STDMETHOD_(BOOL, IsOptimized)(THIS) PURE;
748 #undef INTERFACE
750 DEFINE_GUID(IID_ID3D10EffectPool, 0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33);
752 #define INTERFACE ID3D10EffectPool
753 DECLARE_INTERFACE_(ID3D10EffectPool, IUnknown)
755 /* IUnknown methods */
756 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *object) PURE;
757 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
758 STDMETHOD_(ULONG, Release)(THIS) PURE;
759 /* ID3D10EffectPool methods */
760 STDMETHOD_(struct ID3D10Effect *, AsEffect)(THIS) PURE;
762 #undef INTERFACE
764 DEFINE_GUID(IID_ID3D10EffectPass, 0x5cfbeb89, 0x1a06, 0x46e0, 0xb2, 0x82, 0xe3, 0xf9, 0xbf, 0xa3, 0x6a, 0x54);
766 #define INTERFACE ID3D10EffectPass
767 DECLARE_INTERFACE(ID3D10EffectPass)
769 STDMETHOD_(BOOL, IsValid)(THIS) PURE;
770 STDMETHOD(GetDesc)(THIS_ D3D10_PASS_DESC *desc) PURE;
771 STDMETHOD(GetVertexShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
772 STDMETHOD(GetGeometryShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
773 STDMETHOD(GetPixelShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *desc) PURE;
774 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByIndex)(THIS_ UINT index) PURE;
775 STDMETHOD_(struct ID3D10EffectVariable *, GetAnnotationByName)(THIS_ LPCSTR name) PURE;
776 STDMETHOD(Apply)(THIS_ UINT flags) PURE;
777 STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *mask) PURE;
779 #undef INTERFACE
781 #ifdef __cplusplus
782 extern "C" {
783 #endif
785 HRESULT WINAPI D3D10CreateEffectFromMemory(void *data, SIZE_T data_size, UINT flags,
786 ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3D10Effect **effect);
788 #ifdef __cplusplus
790 #endif
792 #endif /* __WINE_D3D10EFFECT_H */