d3d10effect.h 49 KB

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