D3D10effect.h 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. //
  5. // File: D3D10Effect.h
  6. // Content: D3D10 Stateblock/Effect Types & APIs
  7. //
  8. //////////////////////////////////////////////////////////////////////////////
  9. #ifndef __D3D10EFFECT_H__
  10. #define __D3D10EFFECT_H__
  11. #include "d3d10.h"
  12. //////////////////////////////////////////////////////////////////////////////
  13. // File contents:
  14. //
  15. // 1) Stateblock enums, structs, interfaces, flat APIs
  16. // 2) Effect enums, structs, interfaces, flat APIs
  17. //////////////////////////////////////////////////////////////////////////////
  18. //----------------------------------------------------------------------------
  19. // D3D10_DEVICE_STATE_TYPES:
  20. //
  21. // Used in ID3D10StateBlockMask function calls
  22. //
  23. //----------------------------------------------------------------------------
  24. typedef enum _D3D10_DEVICE_STATE_TYPES
  25. {
  26. D3D10_DST_SO_BUFFERS=1, // Single-value state (atomical gets/sets)
  27. D3D10_DST_OM_RENDER_TARGETS, // Single-value state (atomical gets/sets)
  28. D3D10_DST_OM_DEPTH_STENCIL_STATE, // Single-value state
  29. D3D10_DST_OM_BLEND_STATE, // Single-value state
  30. D3D10_DST_VS, // Single-value state
  31. D3D10_DST_VS_SAMPLERS, // Count: D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT
  32. D3D10_DST_VS_SHADER_RESOURCES, // Count: D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
  33. D3D10_DST_VS_CONSTANT_BUFFERS, // Count:
  34. D3D10_DST_GS, // Single-value state
  35. D3D10_DST_GS_SAMPLERS, // Count: D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT
  36. D3D10_DST_GS_SHADER_RESOURCES, // Count: D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
  37. D3D10_DST_GS_CONSTANT_BUFFERS, // Count: D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
  38. D3D10_DST_PS, // Single-value state
  39. D3D10_DST_PS_SAMPLERS, // Count: D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT
  40. D3D10_DST_PS_SHADER_RESOURCES, // Count: D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
  41. D3D10_DST_PS_CONSTANT_BUFFERS, // Count: D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
  42. D3D10_DST_IA_VERTEX_BUFFERS, // Count: D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT
  43. D3D10_DST_IA_INDEX_BUFFER, // Single-value state
  44. D3D10_DST_IA_INPUT_LAYOUT, // Single-value state
  45. D3D10_DST_IA_PRIMITIVE_TOPOLOGY, // Single-value state
  46. D3D10_DST_RS_VIEWPORTS, // Single-value state (atomical gets/sets)
  47. D3D10_DST_RS_SCISSOR_RECTS, // Single-value state (atomical gets/sets)
  48. D3D10_DST_RS_RASTERIZER_STATE, // Single-value state
  49. D3D10_DST_PREDICATION, // Single-value state
  50. } D3D10_DEVICE_STATE_TYPES;
  51. //----------------------------------------------------------------------------
  52. // D3D10_DEVICE_STATE_TYPES:
  53. //
  54. // Used in ID3D10StateBlockMask function calls
  55. //
  56. //----------------------------------------------------------------------------
  57. #ifndef D3D10_BYTES_FROM_BITS
  58. #define D3D10_BYTES_FROM_BITS(x) (((x) + 7) / 8)
  59. #endif // D3D10_BYTES_FROM_BITS
  60. typedef struct _D3D10_STATE_BLOCK_MASK
  61. {
  62. BYTE VS;
  63. BYTE VSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
  64. BYTE VSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
  65. BYTE VSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
  66. BYTE GS;
  67. BYTE GSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
  68. BYTE GSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
  69. BYTE GSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
  70. BYTE PS;
  71. BYTE PSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)];
  72. BYTE PSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)];
  73. BYTE PSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)];
  74. BYTE IAVertexBuffers[D3D10_BYTES_FROM_BITS(D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT)];
  75. BYTE IAIndexBuffer;
  76. BYTE IAInputLayout;
  77. BYTE IAPrimitiveTopology;
  78. BYTE OMRenderTargets;
  79. BYTE OMDepthStencilState;
  80. BYTE OMBlendState;
  81. BYTE RSViewports;
  82. BYTE RSScissorRects;
  83. BYTE RSRasterizerState;
  84. BYTE SOBuffers;
  85. BYTE Predication;
  86. } D3D10_STATE_BLOCK_MASK;
  87. //////////////////////////////////////////////////////////////////////////////
  88. // ID3D10StateBlock //////////////////////////////////////////////////////////
  89. //////////////////////////////////////////////////////////////////////////////
  90. typedef interface ID3D10StateBlock ID3D10StateBlock;
  91. typedef interface ID3D10StateBlock *LPD3D10STATEBLOCK;
  92. // {0803425A-57F5-4dd6-9465-A87570834A08}
  93. DEFINE_GUID(IID_ID3D10StateBlock,
  94. 0x803425a, 0x57f5, 0x4dd6, 0x94, 0x65, 0xa8, 0x75, 0x70, 0x83, 0x4a, 0x8);
  95. #undef INTERFACE
  96. #define INTERFACE ID3D10StateBlock
  97. DECLARE_INTERFACE_(ID3D10StateBlock, IUnknown)
  98. {
  99. STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
  100. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  101. STDMETHOD_(ULONG, Release)(THIS) PURE;
  102. STDMETHOD(Capture)(THIS) PURE;
  103. STDMETHOD(Apply)(THIS) PURE;
  104. STDMETHOD(ReleaseAllDeviceObjects)(THIS) PURE;
  105. STDMETHOD(GetDevice)(THIS_ ID3D10Device **ppDevice) PURE;
  106. };
  107. #ifdef __cplusplus
  108. extern "C" {
  109. #endif //__cplusplus
  110. //----------------------------------------------------------------------------
  111. // D3D10_STATE_BLOCK_MASK and manipulation functions
  112. // -------------------------------------------------
  113. //
  114. // These functions exist to facilitate working with the D3D10_STATE_BLOCK_MASK
  115. // structure.
  116. //
  117. // D3D10_STATE_BLOCK_MASK *pResult or *pMask
  118. // The state block mask to operate on
  119. //
  120. // D3D10_STATE_BLOCK_MASK *pA, *pB
  121. // The source state block masks for the binary union/intersect/difference
  122. // operations.
  123. //
  124. // D3D10_DEVICE_STATE_TYPES StateType
  125. // The specific state type to enable/disable/query
  126. //
  127. // UINT RangeStart, RangeLength, Entry
  128. // The specific bit or range of bits for a given state type to operate on.
  129. // Consult the comments for D3D10_DEVICE_STATE_TYPES and
  130. // D3D10_STATE_BLOCK_MASK for information on the valid bit ranges for
  131. // each state.
  132. //
  133. //----------------------------------------------------------------------------
  134. HRESULT WINAPI D3D10StateBlockMaskUnion(D3D10_STATE_BLOCK_MASK *pA, D3D10_STATE_BLOCK_MASK *pB, D3D10_STATE_BLOCK_MASK *pResult);
  135. HRESULT WINAPI D3D10StateBlockMaskIntersect(D3D10_STATE_BLOCK_MASK *pA, D3D10_STATE_BLOCK_MASK *pB, D3D10_STATE_BLOCK_MASK *pResult);
  136. HRESULT WINAPI D3D10StateBlockMaskDifference(D3D10_STATE_BLOCK_MASK *pA, D3D10_STATE_BLOCK_MASK *pB, D3D10_STATE_BLOCK_MASK *pResult);
  137. HRESULT WINAPI D3D10StateBlockMaskEnableCapture(D3D10_STATE_BLOCK_MASK *pMask, D3D10_DEVICE_STATE_TYPES StateType, UINT RangeStart, UINT RangeLength);
  138. HRESULT WINAPI D3D10StateBlockMaskDisableCapture(D3D10_STATE_BLOCK_MASK *pMask, D3D10_DEVICE_STATE_TYPES StateType, UINT RangeStart, UINT RangeLength);
  139. HRESULT WINAPI D3D10StateBlockMaskEnableAll(D3D10_STATE_BLOCK_MASK *pMask);
  140. HRESULT WINAPI D3D10StateBlockMaskDisableAll(D3D10_STATE_BLOCK_MASK *pMask);
  141. BOOL WINAPI D3D10StateBlockMaskGetSetting(D3D10_STATE_BLOCK_MASK *pMask, D3D10_DEVICE_STATE_TYPES StateType, UINT Entry);
  142. //----------------------------------------------------------------------------
  143. // D3D10CreateStateBlock
  144. // ---------------------
  145. //
  146. // Creates a state block object based on the mask settings specified
  147. // in a D3D10_STATE_BLOCK_MASK structure.
  148. //
  149. // ID3D10Device *pDevice
  150. // The device interface to associate with this state block
  151. //
  152. // D3D10_STATE_BLOCK_MASK *pStateBlockMask
  153. // A bit mask whose settings are used to generate a state block
  154. // object.
  155. //
  156. // ID3D10StateBlock **ppStateBlock
  157. // The resulting state block object. This object will save/restore
  158. // only those pieces of state that were set in the state block
  159. // bit mask
  160. //----------------------------------------------------------------------------
  161. HRESULT WINAPI D3D10CreateStateBlock(ID3D10Device *pDevice, D3D10_STATE_BLOCK_MASK *pStateBlockMask, ID3D10StateBlock **ppStateBlock);
  162. #ifdef __cplusplus
  163. }
  164. #endif //__cplusplus
  165. //----------------------------------------------------------------------------
  166. // D3D10_COMPILE & D3D10_EFFECT flags:
  167. // -------------------------------------
  168. //
  169. // These flags are passed in when creating an effect, and affect
  170. // either compilation behavior or runtime effect behavior
  171. //
  172. // D3D10_EFFECT_COMPILE_CHILD_EFFECT
  173. // Compile this .fx file to a child effect. Child effects have no initializers
  174. // for any shared values as these are initialied in the master effect (pool).
  175. //
  176. // D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS
  177. // By default, performance mode is enabled. Performance mode disallows
  178. // mutable state objects by preventing non-literal expressions from appearing in
  179. // state object definitions. Specifying this flag will disable the mode and allow
  180. // for mutable state objects.
  181. //
  182. // D3D10_EFFECT_SINGLE_THREADED
  183. // Do not attempt to synchronize with other threads loading effects into the
  184. // same pool.
  185. //
  186. //----------------------------------------------------------------------------
  187. #define D3D10_EFFECT_COMPILE_CHILD_EFFECT (1 << 0)
  188. #define D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS (1 << 1)
  189. #define D3D10_EFFECT_SINGLE_THREADED (1 << 3)
  190. //----------------------------------------------------------------------------
  191. // D3D10_EFFECT_VARIABLE flags:
  192. // ----------------------------
  193. //
  194. // These flags describe an effect variable (global or annotation),
  195. // and are returned in D3D10_EFFECT_VARIABLE_DESC::Flags.
  196. //
  197. // D3D10_EFFECT_VARIABLE_POOLED
  198. // Indicates that the this variable or constant buffer resides
  199. // in an effect pool. If this flag is not set, then the variable resides
  200. // in a standalone effect (if ID3D10Effect::GetPool returns NULL)
  201. // or a child effect (if ID3D10Effect::GetPool returns non-NULL)
  202. //
  203. // D3D10_EFFECT_VARIABLE_ANNOTATION
  204. // Indicates that this is an annotation on a technique, pass, or global
  205. // variable. Otherwise, this is a global variable. Annotations cannot
  206. // be shared.
  207. //
  208. // D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT
  209. // Indicates that the variable has been explicitly bound using the
  210. // register keyword.
  211. //----------------------------------------------------------------------------
  212. #define D3D10_EFFECT_VARIABLE_POOLED (1 << 0)
  213. #define D3D10_EFFECT_VARIABLE_ANNOTATION (1 << 1)
  214. #define D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT (1 << 2)
  215. //////////////////////////////////////////////////////////////////////////////
  216. // ID3D10EffectType //////////////////////////////////////////////////////////
  217. //////////////////////////////////////////////////////////////////////////////
  218. //----------------------------------------------------------------------------
  219. // D3D10_EFFECT_TYPE_DESC:
  220. //
  221. // Retrieved by ID3D10EffectType::GetDesc()
  222. //----------------------------------------------------------------------------
  223. typedef struct _D3D10_EFFECT_TYPE_DESC
  224. {
  225. LPCSTR TypeName; // Name of the type
  226. // (e.g. "float4" or "MyStruct")
  227. D3D10_SHADER_VARIABLE_CLASS Class; // (e.g. scalar, vector, object, etc.)
  228. D3D10_SHADER_VARIABLE_TYPE Type; // (e.g. float, texture, vertexshader, etc.)
  229. UINT Elements; // Number of elements in this type
  230. // (0 if not an array)
  231. UINT Members; // Number of members
  232. // (0 if not a structure)
  233. UINT Rows; // Number of rows in this type
  234. // (0 if not a numeric primitive)
  235. UINT Columns; // Number of columns in this type
  236. // (0 if not a numeric primitive)
  237. UINT PackedSize; // Number of bytes required to represent
  238. // this data type, when tightly packed
  239. UINT UnpackedSize; // Number of bytes occupied by this data
  240. // type, when laid out in a constant buffer
  241. UINT Stride; // Number of bytes to seek between elements,
  242. // when laid out in a constant buffer
  243. } D3D10_EFFECT_TYPE_DESC;
  244. typedef interface ID3D10EffectType ID3D10EffectType;
  245. typedef interface ID3D10EffectType *LPD3D10EFFECTTYPE;
  246. // {4E9E1DDC-CD9D-4772-A837-00180B9B88FD}
  247. DEFINE_GUID(IID_ID3D10EffectType,
  248. 0x4e9e1ddc, 0xcd9d, 0x4772, 0xa8, 0x37, 0x0, 0x18, 0xb, 0x9b, 0x88, 0xfd);
  249. #undef INTERFACE
  250. #define INTERFACE ID3D10EffectType
  251. DECLARE_INTERFACE(ID3D10EffectType)
  252. {
  253. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  254. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_TYPE_DESC *pDesc) PURE;
  255. STDMETHOD_(ID3D10EffectType*, GetMemberTypeByIndex)(THIS_ UINT Index) PURE;
  256. STDMETHOD_(ID3D10EffectType*, GetMemberTypeByName)(THIS_ LPCSTR Name) PURE;
  257. STDMETHOD_(ID3D10EffectType*, GetMemberTypeBySemantic)(THIS_ LPCSTR Semantic) PURE;
  258. STDMETHOD_(LPCSTR, GetMemberName)(THIS_ UINT Index) PURE;
  259. STDMETHOD_(LPCSTR, GetMemberSemantic)(THIS_ UINT Index) PURE;
  260. };
  261. //////////////////////////////////////////////////////////////////////////////
  262. // ID3D10EffectVariable //////////////////////////////////////////////////////
  263. //////////////////////////////////////////////////////////////////////////////
  264. //----------------------------------------------------------------------------
  265. // D3D10_EFFECT_VARIABLE_DESC:
  266. //
  267. // Retrieved by ID3D10EffectVariable::GetDesc()
  268. //----------------------------------------------------------------------------
  269. typedef struct _D3D10_EFFECT_VARIABLE_DESC
  270. {
  271. LPCSTR Name; // Name of this variable, annotation,
  272. // or structure member
  273. LPCSTR Semantic; // Semantic string of this variable
  274. // or structure member (NULL for
  275. // annotations or if not present)
  276. UINT Flags; // D3D10_EFFECT_VARIABLE_* flags
  277. UINT Annotations; // Number of annotations on this variable
  278. // (always 0 for annotations)
  279. UINT BufferOffset; // Offset into containing cbuffer or tbuffer
  280. // (always 0 for annotations or variables
  281. // not in constant buffers)
  282. UINT ExplicitBindPoint; // Used if the variable has been explicitly bound
  283. // using the register keyword. Check Flags for
  284. // D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT;
  285. } D3D10_EFFECT_VARIABLE_DESC;
  286. typedef interface ID3D10EffectVariable ID3D10EffectVariable;
  287. typedef interface ID3D10EffectVariable *LPD3D10EFFECTVARIABLE;
  288. // {AE897105-00E6-45bf-BB8E-281DD6DB8E1B}
  289. DEFINE_GUID(IID_ID3D10EffectVariable,
  290. 0xae897105, 0xe6, 0x45bf, 0xbb, 0x8e, 0x28, 0x1d, 0xd6, 0xdb, 0x8e, 0x1b);
  291. #undef INTERFACE
  292. #define INTERFACE ID3D10EffectVariable
  293. // Forward defines
  294. typedef interface ID3D10EffectScalarVariable ID3D10EffectScalarVariable;
  295. typedef interface ID3D10EffectVectorVariable ID3D10EffectVectorVariable;
  296. typedef interface ID3D10EffectMatrixVariable ID3D10EffectMatrixVariable;
  297. typedef interface ID3D10EffectStringVariable ID3D10EffectStringVariable;
  298. typedef interface ID3D10EffectShaderResourceVariable ID3D10EffectShaderResourceVariable;
  299. typedef interface ID3D10EffectRenderTargetViewVariable ID3D10EffectRenderTargetViewVariable;
  300. typedef interface ID3D10EffectDepthStencilViewVariable ID3D10EffectDepthStencilViewVariable;
  301. typedef interface ID3D10EffectConstantBuffer ID3D10EffectConstantBuffer;
  302. typedef interface ID3D10EffectShaderVariable ID3D10EffectShaderVariable;
  303. typedef interface ID3D10EffectBlendVariable ID3D10EffectBlendVariable;
  304. typedef interface ID3D10EffectDepthStencilVariable ID3D10EffectDepthStencilVariable;
  305. typedef interface ID3D10EffectRasterizerVariable ID3D10EffectRasterizerVariable;
  306. typedef interface ID3D10EffectSamplerVariable ID3D10EffectSamplerVariable;
  307. DECLARE_INTERFACE(ID3D10EffectVariable)
  308. {
  309. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  310. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  311. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  312. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  313. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  314. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  315. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  316. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  317. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  318. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  319. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  320. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  321. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  322. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  323. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  324. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  325. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  326. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  327. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  328. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  329. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  330. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  331. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  332. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  333. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  334. };
  335. //////////////////////////////////////////////////////////////////////////////
  336. // ID3D10EffectScalarVariable ////////////////////////////////////////////////
  337. //////////////////////////////////////////////////////////////////////////////
  338. typedef interface ID3D10EffectScalarVariable ID3D10EffectScalarVariable;
  339. typedef interface ID3D10EffectScalarVariable *LPD3D10EFFECTSCALARVARIABLE;
  340. // {00E48F7B-D2C8-49e8-A86C-022DEE53431F}
  341. DEFINE_GUID(IID_ID3D10EffectScalarVariable,
  342. 0xe48f7b, 0xd2c8, 0x49e8, 0xa8, 0x6c, 0x2, 0x2d, 0xee, 0x53, 0x43, 0x1f);
  343. #undef INTERFACE
  344. #define INTERFACE ID3D10EffectScalarVariable
  345. DECLARE_INTERFACE_(ID3D10EffectScalarVariable, ID3D10EffectVariable)
  346. {
  347. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  348. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  349. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  350. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  351. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  352. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  353. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  354. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  355. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  356. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  357. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  358. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  359. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  360. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  361. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  362. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  363. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  364. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  365. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  366. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  367. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  368. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  369. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  370. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT ByteOffset, UINT ByteCount) PURE;
  371. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT ByteOffset, UINT ByteCount) PURE;
  372. STDMETHOD(SetFloat)(THIS_ float Value) PURE;
  373. STDMETHOD(GetFloat)(THIS_ float *pValue) PURE;
  374. STDMETHOD(SetFloatArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE;
  375. STDMETHOD(GetFloatArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE;
  376. STDMETHOD(SetInt)(THIS_ int Value) PURE;
  377. STDMETHOD(GetInt)(THIS_ int *pValue) PURE;
  378. STDMETHOD(SetIntArray)(THIS_ int *pData, UINT Offset, UINT Count) PURE;
  379. STDMETHOD(GetIntArray)(THIS_ int *pData, UINT Offset, UINT Count) PURE;
  380. STDMETHOD(SetBool)(THIS_ BOOL Value) PURE;
  381. STDMETHOD(GetBool)(THIS_ BOOL *pValue) PURE;
  382. STDMETHOD(SetBoolArray)(THIS_ BOOL *pData, UINT Offset, UINT Count) PURE;
  383. STDMETHOD(GetBoolArray)(THIS_ BOOL *pData, UINT Offset, UINT Count) PURE;
  384. };
  385. //////////////////////////////////////////////////////////////////////////////
  386. // ID3D10EffectVectorVariable ////////////////////////////////////////////////
  387. //////////////////////////////////////////////////////////////////////////////
  388. typedef interface ID3D10EffectVectorVariable ID3D10EffectVectorVariable;
  389. typedef interface ID3D10EffectVectorVariable *LPD3D10EFFECTVECTORVARIABLE;
  390. // {62B98C44-1F82-4c67-BCD0-72CF8F217E81}
  391. DEFINE_GUID(IID_ID3D10EffectVectorVariable,
  392. 0x62b98c44, 0x1f82, 0x4c67, 0xbc, 0xd0, 0x72, 0xcf, 0x8f, 0x21, 0x7e, 0x81);
  393. #undef INTERFACE
  394. #define INTERFACE ID3D10EffectVectorVariable
  395. DECLARE_INTERFACE_(ID3D10EffectVectorVariable, ID3D10EffectVariable)
  396. {
  397. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  398. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  399. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  400. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  401. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  402. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  403. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  404. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  405. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  406. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  407. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  408. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  409. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  410. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  411. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  412. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  413. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  414. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  415. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  416. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  417. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  418. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  419. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  420. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT ByteOffset, UINT ByteCount) PURE;
  421. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT ByteOffset, UINT ByteCount) PURE;
  422. STDMETHOD(SetBoolVector) (THIS_ BOOL *pData) PURE;
  423. STDMETHOD(SetIntVector) (THIS_ int *pData) PURE;
  424. STDMETHOD(SetFloatVector)(THIS_ float *pData) PURE;
  425. STDMETHOD(GetBoolVector) (THIS_ BOOL *pData) PURE;
  426. STDMETHOD(GetIntVector) (THIS_ int *pData) PURE;
  427. STDMETHOD(GetFloatVector)(THIS_ float *pData) PURE;
  428. STDMETHOD(SetBoolVectorArray) (THIS_ BOOL *pData, UINT Offset, UINT Count) PURE;
  429. STDMETHOD(SetIntVectorArray) (THIS_ int *pData, UINT Offset, UINT Count) PURE;
  430. STDMETHOD(SetFloatVectorArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE;
  431. STDMETHOD(GetBoolVectorArray) (THIS_ BOOL *pData, UINT Offset, UINT Count) PURE;
  432. STDMETHOD(GetIntVectorArray) (THIS_ int *pData, UINT Offset, UINT Count) PURE;
  433. STDMETHOD(GetFloatVectorArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE;
  434. };
  435. //////////////////////////////////////////////////////////////////////////////
  436. // ID3D10EffectMatrixVariable ////////////////////////////////////////////////
  437. //////////////////////////////////////////////////////////////////////////////
  438. typedef interface ID3D10EffectMatrixVariable ID3D10EffectMatrixVariable;
  439. typedef interface ID3D10EffectMatrixVariable *LPD3D10EFFECTMATRIXVARIABLE;
  440. // {50666C24-B82F-4eed-A172-5B6E7E8522E0}
  441. DEFINE_GUID(IID_ID3D10EffectMatrixVariable,
  442. 0x50666c24, 0xb82f, 0x4eed, 0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0);
  443. #undef INTERFACE
  444. #define INTERFACE ID3D10EffectMatrixVariable
  445. DECLARE_INTERFACE_(ID3D10EffectMatrixVariable, ID3D10EffectVariable)
  446. {
  447. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  448. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  449. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  450. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  451. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  452. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  453. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  454. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  455. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  456. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  457. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  458. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  459. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  460. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  461. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  462. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  463. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  464. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  465. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  466. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  467. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  468. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  469. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  470. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT ByteOffset, UINT ByteCount) PURE;
  471. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT ByteOffset, UINT ByteCount) PURE;
  472. STDMETHOD(SetMatrix)(THIS_ float *pData) PURE;
  473. STDMETHOD(GetMatrix)(THIS_ float *pData) PURE;
  474. STDMETHOD(SetMatrixArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE;
  475. STDMETHOD(GetMatrixArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE;
  476. STDMETHOD(SetMatrixTranspose)(THIS_ float *pData) PURE;
  477. STDMETHOD(GetMatrixTranspose)(THIS_ float *pData) PURE;
  478. STDMETHOD(SetMatrixTransposeArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE;
  479. STDMETHOD(GetMatrixTransposeArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE;
  480. };
  481. //////////////////////////////////////////////////////////////////////////////
  482. // ID3D10EffectStringVariable ////////////////////////////////////////////////
  483. //////////////////////////////////////////////////////////////////////////////
  484. typedef interface ID3D10EffectStringVariable ID3D10EffectStringVariable;
  485. typedef interface ID3D10EffectStringVariable *LPD3D10EFFECTSTRINGVARIABLE;
  486. // {71417501-8DF9-4e0a-A78A-255F9756BAFF}
  487. DEFINE_GUID(IID_ID3D10EffectStringVariable,
  488. 0x71417501, 0x8df9, 0x4e0a, 0xa7, 0x8a, 0x25, 0x5f, 0x97, 0x56, 0xba, 0xff);
  489. #undef INTERFACE
  490. #define INTERFACE ID3D10EffectStringVariable
  491. DECLARE_INTERFACE_(ID3D10EffectStringVariable, ID3D10EffectVariable)
  492. {
  493. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  494. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  495. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  496. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  497. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  498. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  499. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  500. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  501. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  502. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  503. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  504. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  505. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  506. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  507. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  508. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  509. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  510. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  511. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  512. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  513. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  514. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  515. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  516. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  517. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  518. STDMETHOD(GetString)(THIS_ LPCSTR *ppString) PURE;
  519. STDMETHOD(GetStringArray)(THIS_ LPCSTR *ppStrings, UINT Offset, UINT Count) PURE;
  520. };
  521. //////////////////////////////////////////////////////////////////////////////
  522. // ID3D10EffectShaderResourceVariable ////////////////////////////////////////
  523. //////////////////////////////////////////////////////////////////////////////
  524. typedef interface ID3D10EffectShaderResourceVariable ID3D10EffectShaderResourceVariable;
  525. typedef interface ID3D10EffectShaderResourceVariable *LPD3D10EFFECTSHADERRESOURCEVARIABLE;
  526. // {C0A7157B-D872-4b1d-8073-EFC2ACD4B1FC}
  527. DEFINE_GUID(IID_ID3D10EffectShaderResourceVariable,
  528. 0xc0a7157b, 0xd872, 0x4b1d, 0x80, 0x73, 0xef, 0xc2, 0xac, 0xd4, 0xb1, 0xfc);
  529. #undef INTERFACE
  530. #define INTERFACE ID3D10EffectShaderResourceVariable
  531. DECLARE_INTERFACE_(ID3D10EffectShaderResourceVariable, ID3D10EffectVariable)
  532. {
  533. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  534. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  535. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  536. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  537. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  538. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  539. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  540. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  541. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  542. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  543. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  544. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  545. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  546. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  547. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  548. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  549. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  550. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  551. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  552. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  553. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  554. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  555. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  556. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  557. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  558. STDMETHOD(SetResource)(THIS_ ID3D10ShaderResourceView *pResource) PURE;
  559. STDMETHOD(GetResource)(THIS_ ID3D10ShaderResourceView **ppResource) PURE;
  560. STDMETHOD(SetResourceArray)(THIS_ ID3D10ShaderResourceView **ppResources, UINT Offset, UINT Count) PURE;
  561. STDMETHOD(GetResourceArray)(THIS_ ID3D10ShaderResourceView **ppResources, UINT Offset, UINT Count) PURE;
  562. };
  563. //////////////////////////////////////////////////////////////////////////////
  564. // ID3D10EffectRenderTargetViewVariable //////////////////////////////////////
  565. //////////////////////////////////////////////////////////////////////////////
  566. typedef interface ID3D10EffectRenderTargetViewVariable ID3D10EffectRenderTargetViewVariable;
  567. typedef interface ID3D10EffectRenderTargetViewVariable *LPD3D10EFFECTRENDERTARGETVIEWVARIABLE;
  568. // {28CA0CC3-C2C9-40bb-B57F-67B737122B17}
  569. DEFINE_GUID(IID_ID3D10EffectRenderTargetViewVariable,
  570. 0x28ca0cc3, 0xc2c9, 0x40bb, 0xb5, 0x7f, 0x67, 0xb7, 0x37, 0x12, 0x2b, 0x17);
  571. #undef INTERFACE
  572. #define INTERFACE ID3D10EffectRenderTargetViewVariable
  573. DECLARE_INTERFACE_(ID3D10EffectRenderTargetViewVariable, ID3D10EffectVariable)
  574. {
  575. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  576. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  577. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  578. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  579. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  580. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  581. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  582. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  583. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  584. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  585. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  586. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  587. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  588. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  589. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  590. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  591. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  592. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  593. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  594. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  595. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  596. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  597. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  598. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  599. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  600. STDMETHOD(SetRenderTarget)(THIS_ ID3D10RenderTargetView *pResource) PURE;
  601. STDMETHOD(GetRenderTarget)(THIS_ ID3D10RenderTargetView **ppResource) PURE;
  602. STDMETHOD(SetRenderTargetArray)(THIS_ ID3D10RenderTargetView **ppResources, UINT Offset, UINT Count) PURE;
  603. STDMETHOD(GetRenderTargetArray)(THIS_ ID3D10RenderTargetView **ppResources, UINT Offset, UINT Count) PURE;
  604. };
  605. //////////////////////////////////////////////////////////////////////////////
  606. // ID3D10EffectDepthStencilViewVariable //////////////////////////////////////
  607. //////////////////////////////////////////////////////////////////////////////
  608. typedef interface ID3D10EffectDepthStencilViewVariable ID3D10EffectDepthStencilViewVariable;
  609. typedef interface ID3D10EffectDepthStencilViewVariable *LPD3D10EFFECTDEPTHSTENCILVIEWVARIABLE;
  610. // {3E02C918-CC79-4985-B622-2D92AD701623}
  611. DEFINE_GUID(IID_ID3D10EffectDepthStencilViewVariable,
  612. 0x3e02c918, 0xcc79, 0x4985, 0xb6, 0x22, 0x2d, 0x92, 0xad, 0x70, 0x16, 0x23);
  613. #undef INTERFACE
  614. #define INTERFACE ID3D10EffectDepthStencilViewVariable
  615. DECLARE_INTERFACE_(ID3D10EffectDepthStencilViewVariable, ID3D10EffectVariable)
  616. {
  617. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  618. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  619. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  620. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  621. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  622. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  623. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  624. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  625. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  626. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  627. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  628. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  629. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  630. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  631. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  632. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  633. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  634. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  635. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  636. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  637. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  638. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  639. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  640. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  641. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  642. STDMETHOD(SetDepthStencil)(THIS_ ID3D10DepthStencilView *pResource) PURE;
  643. STDMETHOD(GetDepthStencil)(THIS_ ID3D10DepthStencilView **ppResource) PURE;
  644. STDMETHOD(SetDepthStencilArray)(THIS_ ID3D10DepthStencilView **ppResources, UINT Offset, UINT Count) PURE;
  645. STDMETHOD(GetDepthStencilArray)(THIS_ ID3D10DepthStencilView **ppResources, UINT Offset, UINT Count) PURE;
  646. };
  647. //////////////////////////////////////////////////////////////////////////////
  648. // ID3D10EffectConstantBuffer ////////////////////////////////////////////////
  649. //////////////////////////////////////////////////////////////////////////////
  650. typedef interface ID3D10EffectConstantBuffer ID3D10EffectConstantBuffer;
  651. typedef interface ID3D10EffectConstantBuffer *LPD3D10EFFECTCONSTANTBUFFER;
  652. // {56648F4D-CC8B-4444-A5AD-B5A3D76E91B3}
  653. DEFINE_GUID(IID_ID3D10EffectConstantBuffer,
  654. 0x56648f4d, 0xcc8b, 0x4444, 0xa5, 0xad, 0xb5, 0xa3, 0xd7, 0x6e, 0x91, 0xb3);
  655. #undef INTERFACE
  656. #define INTERFACE ID3D10EffectConstantBuffer
  657. DECLARE_INTERFACE_(ID3D10EffectConstantBuffer, ID3D10EffectVariable)
  658. {
  659. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  660. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  661. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  662. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  663. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  664. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  665. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  666. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  667. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  668. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  669. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  670. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  671. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  672. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  673. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  674. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  675. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  676. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  677. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  678. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  679. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  680. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  681. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  682. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  683. STDMETHOD(SetConstantBuffer)(THIS_ ID3D10Buffer *pConstantBuffer) PURE;
  684. STDMETHOD(GetConstantBuffer)(THIS_ ID3D10Buffer **ppConstantBuffer) PURE;
  685. STDMETHOD(SetTextureBuffer)(THIS_ ID3D10ShaderResourceView *pTextureBuffer) PURE;
  686. STDMETHOD(GetTextureBuffer)(THIS_ ID3D10ShaderResourceView **ppTextureBuffer) PURE;
  687. };
  688. //////////////////////////////////////////////////////////////////////////////
  689. // ID3D10EffectShaderVariable ////////////////////////////////////////////////
  690. //////////////////////////////////////////////////////////////////////////////
  691. //----------------------------------------------------------------------------
  692. // D3D10_EFFECT_SHADER_DESC:
  693. //
  694. // Retrieved by ID3D10EffectShaderVariable::GetShaderDesc()
  695. //----------------------------------------------------------------------------
  696. typedef struct _D3D10_EFFECT_SHADER_DESC
  697. {
  698. CONST BYTE *pInputSignature; // Passed into CreateInputLayout,
  699. // valid on VS and GS only
  700. BOOL IsInline; // Is this an anonymous shader variable
  701. // resulting from an inline shader assignment?
  702. // -- The following fields are not valid after Optimize() --
  703. CONST BYTE *pBytecode; // Shader bytecode
  704. UINT BytecodeLength;
  705. LPCSTR SODecl; // Stream out declaration string (for GS with SO)
  706. UINT NumInputSignatureEntries; // Number of entries in the input signature
  707. UINT NumOutputSignatureEntries; // Number of entries in the output signature
  708. } D3D10_EFFECT_SHADER_DESC;
  709. typedef interface ID3D10EffectShaderVariable ID3D10EffectShaderVariable;
  710. typedef interface ID3D10EffectShaderVariable *LPD3D10EFFECTSHADERVARIABLE;
  711. // {80849279-C799-4797-8C33-0407A07D9E06}
  712. DEFINE_GUID(IID_ID3D10EffectShaderVariable,
  713. 0x80849279, 0xc799, 0x4797, 0x8c, 0x33, 0x4, 0x7, 0xa0, 0x7d, 0x9e, 0x6);
  714. #undef INTERFACE
  715. #define INTERFACE ID3D10EffectShaderVariable
  716. DECLARE_INTERFACE_(ID3D10EffectShaderVariable, ID3D10EffectVariable)
  717. {
  718. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  719. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  720. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  721. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  722. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  723. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  724. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  725. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  726. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  727. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  728. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  729. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  730. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  731. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  732. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  733. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  734. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  735. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  736. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  737. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  738. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  739. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  740. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  741. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  742. STDMETHOD(GetShaderDesc)(THIS_ UINT ShaderIndex, D3D10_EFFECT_SHADER_DESC *pDesc) PURE;
  743. STDMETHOD(GetVertexShader)(THIS_ UINT ShaderIndex, ID3D10VertexShader **ppVS) PURE;
  744. STDMETHOD(GetGeometryShader)(THIS_ UINT ShaderIndex, ID3D10GeometryShader **ppGS) PURE;
  745. STDMETHOD(GetPixelShader)(THIS_ UINT ShaderIndex, ID3D10PixelShader **ppPS) PURE;
  746. STDMETHOD(GetInputSignatureElementDesc)(THIS_ UINT ShaderIndex, UINT Element, D3D10_SIGNATURE_PARAMETER_DESC *pDesc) PURE;
  747. STDMETHOD(GetOutputSignatureElementDesc)(THIS_ UINT ShaderIndex, UINT Element, D3D10_SIGNATURE_PARAMETER_DESC *pDesc) PURE;
  748. };
  749. //////////////////////////////////////////////////////////////////////////////
  750. // ID3D10EffectBlendVariable /////////////////////////////////////////////////
  751. //////////////////////////////////////////////////////////////////////////////
  752. typedef interface ID3D10EffectBlendVariable ID3D10EffectBlendVariable;
  753. typedef interface ID3D10EffectBlendVariable *LPD3D10EFFECTBLENDVARIABLE;
  754. // {1FCD2294-DF6D-4eae-86B3-0E9160CFB07B}
  755. DEFINE_GUID(IID_ID3D10EffectBlendVariable,
  756. 0x1fcd2294, 0xdf6d, 0x4eae, 0x86, 0xb3, 0xe, 0x91, 0x60, 0xcf, 0xb0, 0x7b);
  757. #undef INTERFACE
  758. #define INTERFACE ID3D10EffectBlendVariable
  759. DECLARE_INTERFACE_(ID3D10EffectBlendVariable, ID3D10EffectVariable)
  760. {
  761. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  762. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  763. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  764. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  765. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  766. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  767. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  768. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  769. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  770. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  771. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  772. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  773. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  774. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  775. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  776. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  777. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  778. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  779. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  780. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  781. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  782. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  783. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  784. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  785. STDMETHOD(GetBlendState)(THIS_ UINT Index, ID3D10BlendState **ppBlendState) PURE;
  786. STDMETHOD(GetBackingStore)(THIS_ UINT Index, D3D10_BLEND_DESC *pBlendDesc) PURE;
  787. };
  788. //////////////////////////////////////////////////////////////////////////////
  789. // ID3D10EffectDepthStencilVariable //////////////////////////////////////////
  790. //////////////////////////////////////////////////////////////////////////////
  791. typedef interface ID3D10EffectDepthStencilVariable ID3D10EffectDepthStencilVariable;
  792. typedef interface ID3D10EffectDepthStencilVariable *LPD3D10EFFECTDEPTHSTENCILVARIABLE;
  793. // {AF482368-330A-46a5-9A5C-01C71AF24C8D}
  794. DEFINE_GUID(IID_ID3D10EffectDepthStencilVariable,
  795. 0xaf482368, 0x330a, 0x46a5, 0x9a, 0x5c, 0x1, 0xc7, 0x1a, 0xf2, 0x4c, 0x8d);
  796. #undef INTERFACE
  797. #define INTERFACE ID3D10EffectDepthStencilVariable
  798. DECLARE_INTERFACE_(ID3D10EffectDepthStencilVariable, ID3D10EffectVariable)
  799. {
  800. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  801. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  802. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  803. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  804. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  805. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  806. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  807. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  808. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  809. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  810. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  811. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  812. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  813. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  814. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  815. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  816. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  817. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  818. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  819. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  820. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  821. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  822. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  823. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  824. STDMETHOD(GetDepthStencilState)(THIS_ UINT Index, ID3D10DepthStencilState **ppDepthStencilState) PURE;
  825. STDMETHOD(GetBackingStore)(THIS_ UINT Index, D3D10_DEPTH_STENCIL_DESC *pDepthStencilDesc) PURE;
  826. };
  827. //////////////////////////////////////////////////////////////////////////////
  828. // ID3D10EffectRasterizerVariable ////////////////////////////////////////////
  829. //////////////////////////////////////////////////////////////////////////////
  830. typedef interface ID3D10EffectRasterizerVariable ID3D10EffectRasterizerVariable;
  831. typedef interface ID3D10EffectRasterizerVariable *LPD3D10EFFECTRASTERIZERVARIABLE;
  832. // {21AF9F0E-4D94-4ea9-9785-2CB76B8C0B34}
  833. DEFINE_GUID(IID_ID3D10EffectRasterizerVariable,
  834. 0x21af9f0e, 0x4d94, 0x4ea9, 0x97, 0x85, 0x2c, 0xb7, 0x6b, 0x8c, 0xb, 0x34);
  835. #undef INTERFACE
  836. #define INTERFACE ID3D10EffectRasterizerVariable
  837. DECLARE_INTERFACE_(ID3D10EffectRasterizerVariable, ID3D10EffectVariable)
  838. {
  839. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  840. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  841. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  842. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  843. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  844. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  845. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  846. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  847. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  848. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  849. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  850. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  851. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  852. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  853. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  854. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  855. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  856. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  857. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  858. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  859. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  860. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  861. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  862. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  863. STDMETHOD(GetRasterizerState)(THIS_ UINT Index, ID3D10RasterizerState **ppRasterizerState) PURE;
  864. STDMETHOD(GetBackingStore)(THIS_ UINT Index, D3D10_RASTERIZER_DESC *pRasterizerDesc) PURE;
  865. };
  866. //////////////////////////////////////////////////////////////////////////////
  867. // ID3D10EffectSamplerVariable ///////////////////////////////////////////////
  868. //////////////////////////////////////////////////////////////////////////////
  869. typedef interface ID3D10EffectSamplerVariable ID3D10EffectSamplerVariable;
  870. typedef interface ID3D10EffectSamplerVariable *LPD3D10EFFECTSAMPLERVARIABLE;
  871. // {6530D5C7-07E9-4271-A418-E7CE4BD1E480}
  872. DEFINE_GUID(IID_ID3D10EffectSamplerVariable,
  873. 0x6530d5c7, 0x7e9, 0x4271, 0xa4, 0x18, 0xe7, 0xce, 0x4b, 0xd1, 0xe4, 0x80);
  874. #undef INTERFACE
  875. #define INTERFACE ID3D10EffectSamplerVariable
  876. DECLARE_INTERFACE_(ID3D10EffectSamplerVariable, ID3D10EffectVariable)
  877. {
  878. STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE;
  879. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE;
  880. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  881. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  882. STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE;
  883. STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE;
  884. STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE;
  885. STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE;
  886. STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE;
  887. STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE;
  888. STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE;
  889. STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE;
  890. STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE;
  891. STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE;
  892. STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE;
  893. STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE;
  894. STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE;
  895. STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE;
  896. STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE;
  897. STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE;
  898. STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE;
  899. STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE;
  900. STDMETHOD(SetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  901. STDMETHOD(GetRawValue)(THIS_ void *pData, UINT Offset, UINT Count) PURE;
  902. STDMETHOD(GetSampler)(THIS_ UINT Index, ID3D10SamplerState **ppSampler) PURE;
  903. STDMETHOD(GetBackingStore)(THIS_ UINT Index, D3D10_SAMPLER_DESC *pSamplerDesc) PURE;
  904. };
  905. //////////////////////////////////////////////////////////////////////////////
  906. // ID3D10EffectPass //////////////////////////////////////////////////////////
  907. //////////////////////////////////////////////////////////////////////////////
  908. //----------------------------------------------------------------------------
  909. // D3D10_PASS_DESC:
  910. //
  911. // Retrieved by ID3D10EffectPass::GetDesc()
  912. //----------------------------------------------------------------------------
  913. typedef struct _D3D10_PASS_DESC
  914. {
  915. LPCSTR Name; // Name of this pass (NULL if not anonymous)
  916. UINT Annotations; // Number of annotations on this pass
  917. BYTE *pIAInputSignature; // Signature from VS or GS (if there is no VS)
  918. // or NULL if neither exists
  919. SIZE_T IAInputSignatureSize; // Singature size in bytes
  920. UINT StencilRef; // Specified in SetDepthStencilState()
  921. UINT SampleMask; // Specified in SetBlendState()
  922. FLOAT BlendFactor[4]; // Specified in SetBlendState()
  923. } D3D10_PASS_DESC;
  924. //----------------------------------------------------------------------------
  925. // D3D10_PASS_SHADER_DESC:
  926. //
  927. // Retrieved by ID3D10EffectPass::Get**ShaderDesc()
  928. //----------------------------------------------------------------------------
  929. typedef struct _D3D10_PASS_SHADER_DESC
  930. {
  931. ID3D10EffectShaderVariable *pShaderVariable; // The variable that this shader came from.
  932. // If this is an inline shader assignment,
  933. // the returned interface will be an
  934. // anonymous shader variable, which is
  935. // not retrievable any other way. It's
  936. // name in the variable description will
  937. // be "$Anonymous".
  938. // If there is no assignment of this type in
  939. // the pass block, pShaderVariable != NULL,
  940. // but pShaderVariable->IsValid() == FALSE.
  941. UINT ShaderIndex; // The element of pShaderVariable (if an array)
  942. // or 0 if not applicable
  943. } D3D10_PASS_SHADER_DESC;
  944. typedef interface ID3D10EffectPass ID3D10EffectPass;
  945. typedef interface ID3D10EffectPass *LPD3D10EFFECTPASS;
  946. // {5CFBEB89-1A06-46e0-B282-E3F9BFA36A54}
  947. DEFINE_GUID(IID_ID3D10EffectPass,
  948. 0x5cfbeb89, 0x1a06, 0x46e0, 0xb2, 0x82, 0xe3, 0xf9, 0xbf, 0xa3, 0x6a, 0x54);
  949. #undef INTERFACE
  950. #define INTERFACE ID3D10EffectPass
  951. DECLARE_INTERFACE(ID3D10EffectPass)
  952. {
  953. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  954. STDMETHOD(GetDesc)(THIS_ D3D10_PASS_DESC *pDesc) PURE;
  955. STDMETHOD(GetVertexShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *pDesc) PURE;
  956. STDMETHOD(GetGeometryShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *pDesc) PURE;
  957. STDMETHOD(GetPixelShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *pDesc) PURE;
  958. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  959. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  960. STDMETHOD(Apply)(THIS_ UINT Flags) PURE;
  961. STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *pStateBlockMask) PURE;
  962. };
  963. //////////////////////////////////////////////////////////////////////////////
  964. // ID3D10EffectTechnique /////////////////////////////////////////////////////
  965. //////////////////////////////////////////////////////////////////////////////
  966. //----------------------------------------------------------------------------
  967. // D3D10_TECHNIQUE_DESC:
  968. //
  969. // Retrieved by ID3D10EffectTechnique::GetDesc()
  970. //----------------------------------------------------------------------------
  971. typedef struct _D3D10_TECHNIQUE_DESC
  972. {
  973. LPCSTR Name; // Name of this technique (NULL if not anonymous)
  974. UINT Passes; // Number of passes contained within
  975. UINT Annotations; // Number of annotations on this technique
  976. } D3D10_TECHNIQUE_DESC;
  977. typedef interface ID3D10EffectTechnique ID3D10EffectTechnique;
  978. typedef interface ID3D10EffectTechnique *LPD3D10EFFECTTECHNIQUE;
  979. // {DB122CE8-D1C9-4292-B237-24ED3DE8B175}
  980. DEFINE_GUID(IID_ID3D10EffectTechnique,
  981. 0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75);
  982. #undef INTERFACE
  983. #define INTERFACE ID3D10EffectTechnique
  984. DECLARE_INTERFACE(ID3D10EffectTechnique)
  985. {
  986. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  987. STDMETHOD(GetDesc)(THIS_ D3D10_TECHNIQUE_DESC *pDesc) PURE;
  988. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
  989. STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
  990. STDMETHOD_(ID3D10EffectPass*, GetPassByIndex)(THIS_ UINT Index) PURE;
  991. STDMETHOD_(ID3D10EffectPass*, GetPassByName)(THIS_ LPCSTR Name) PURE;
  992. STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *pStateBlockMask) PURE;
  993. };
  994. //////////////////////////////////////////////////////////////////////////////
  995. // ID3D10Effect //////////////////////////////////////////////////////////////
  996. //////////////////////////////////////////////////////////////////////////////
  997. //----------------------------------------------------------------------------
  998. // D3D10_EFFECT_DESC:
  999. //
  1000. // Retrieved by ID3D10Effect::GetDesc()
  1001. //----------------------------------------------------------------------------
  1002. typedef struct _D3D10_EFFECT_DESC
  1003. {
  1004. BOOL IsChildEffect; // TRUE if this is a child effect,
  1005. // FALSE if this is standalone or an effect pool.
  1006. UINT ConstantBuffers; // Number of constant buffers in this effect,
  1007. // excluding the effect pool.
  1008. UINT SharedConstantBuffers; // Number of constant buffers shared in this
  1009. // effect's pool.
  1010. UINT GlobalVariables; // Number of global variables in this effect,
  1011. // excluding the effect pool.
  1012. UINT SharedGlobalVariables; // Number of global variables shared in this
  1013. // effect's pool.
  1014. UINT Techniques; // Number of techniques in this effect,
  1015. // excluding the effect pool.
  1016. } D3D10_EFFECT_DESC;
  1017. typedef interface ID3D10Effect ID3D10Effect;
  1018. typedef interface ID3D10Effect *LPD3D10EFFECT;
  1019. // {51B0CA8B-EC0B-4519-870D-8EE1CB5017C7}
  1020. DEFINE_GUID(IID_ID3D10Effect,
  1021. 0x51b0ca8b, 0xec0b, 0x4519, 0x87, 0xd, 0x8e, 0xe1, 0xcb, 0x50, 0x17, 0xc7);
  1022. #undef INTERFACE
  1023. #define INTERFACE ID3D10Effect
  1024. DECLARE_INTERFACE_(ID3D10Effect, IUnknown)
  1025. {
  1026. // IUnknown
  1027. STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
  1028. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  1029. STDMETHOD_(ULONG, Release)(THIS) PURE;
  1030. STDMETHOD_(BOOL, IsValid)(THIS) PURE;
  1031. STDMETHOD_(BOOL, IsPool)(THIS) PURE;
  1032. // Managing D3D Device
  1033. STDMETHOD(GetDevice)(THIS_ ID3D10Device** ppDevice) PURE;
  1034. // New Reflection APIs
  1035. STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_DESC *pDesc) PURE;
  1036. STDMETHOD_(ID3D10EffectConstantBuffer*, GetConstantBufferByIndex)(THIS_ UINT Index) PURE;
  1037. STDMETHOD_(ID3D10EffectConstantBuffer*, GetConstantBufferByName)(THIS_ LPCSTR Name) PURE;
  1038. STDMETHOD_(ID3D10EffectVariable*, GetVariableByIndex)(THIS_ UINT Index) PURE;
  1039. STDMETHOD_(ID3D10EffectVariable*, GetVariableByName)(THIS_ LPCSTR Name) PURE;
  1040. STDMETHOD_(ID3D10EffectVariable*, GetVariableBySemantic)(THIS_ LPCSTR Semantic) PURE;
  1041. STDMETHOD_(ID3D10EffectTechnique*, GetTechniqueByIndex)(THIS_ UINT Index) PURE;
  1042. STDMETHOD_(ID3D10EffectTechnique*, GetTechniqueByName)(THIS_ LPCSTR Name) PURE;
  1043. STDMETHOD(Optimize)(THIS) PURE;
  1044. STDMETHOD_(BOOL, IsOptimized)(THIS) PURE;
  1045. };
  1046. //////////////////////////////////////////////////////////////////////////////
  1047. // ID3D10EffectPool //////////////////////////////////////////////////////////
  1048. //////////////////////////////////////////////////////////////////////////////
  1049. typedef interface ID3D10EffectPool ID3D10EffectPool;
  1050. typedef interface ID3D10EffectPool *LPD3D10EFFECTPOOL;
  1051. // {9537AB04-3250-412e-8213-FCD2F8677933}
  1052. DEFINE_GUID(IID_ID3D10EffectPool,
  1053. 0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33);
  1054. #undef INTERFACE
  1055. #define INTERFACE ID3D10EffectPool
  1056. DECLARE_INTERFACE_(ID3D10EffectPool, IUnknown)
  1057. {
  1058. // IUnknown
  1059. STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
  1060. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  1061. STDMETHOD_(ULONG, Release)(THIS) PURE;
  1062. STDMETHOD_(ID3D10Effect*, AsEffect)(THIS) PURE;
  1063. // No public methods
  1064. };
  1065. //////////////////////////////////////////////////////////////////////////////
  1066. // APIs //////////////////////////////////////////////////////////////////////
  1067. //////////////////////////////////////////////////////////////////////////////
  1068. #ifdef __cplusplus
  1069. extern "C" {
  1070. #endif //__cplusplus
  1071. //----------------------------------------------------------------------------
  1072. // D3D10CreateEffectFromXXXX:
  1073. // --------------------------
  1074. // Creates an effect from a binary effect or file
  1075. //
  1076. // Parameters:
  1077. //
  1078. // [in]
  1079. //
  1080. //
  1081. // pData
  1082. // Blob of effect data, either ASCII (uncompiled, for D3D10CompileEffectFromMemory) or binary (compiled, for D3D10CreateEffect*)
  1083. // DataLength
  1084. // Length of the data blob
  1085. //
  1086. // pSrcFileName
  1087. // Name of the ASCII Effect file pData was obtained from
  1088. //
  1089. // pDefines
  1090. // Optional NULL-terminated array of preprocessor macro definitions.
  1091. // pInclude
  1092. // Optional interface pointer to use for handling #include directives.
  1093. // If this parameter is NULL, #includes will be honored when compiling
  1094. // from file, and will error when compiling from resource or memory.
  1095. // HLSLFlags
  1096. // Compilation flags pertaining to shaders and data types, honored by
  1097. // the HLSL compiler
  1098. // FXFlags
  1099. // Compilation flags pertaining to Effect compilation, honored
  1100. // by the Effect compiler
  1101. // pDevice
  1102. // Pointer to the D3D10 device on which to create Effect resources
  1103. // pEffectPool
  1104. // Pointer to an Effect pool to share variables with or NULL
  1105. //
  1106. // [out]
  1107. //
  1108. // ppEffect
  1109. // Address of the newly created Effect interface
  1110. // ppEffectPool
  1111. // Address of the newly created Effect pool interface
  1112. // ppErrors
  1113. // If non-NULL, address of a buffer with error messages that occurred
  1114. // during parsing or compilation
  1115. //
  1116. //----------------------------------------------------------------------------
  1117. HRESULT WINAPI D3D10CompileEffectFromMemory(void *pData, SIZE_T DataLength, LPCSTR pSrcFileName, CONST D3D10_SHADER_MACRO *pDefines,
  1118. ID3D10Include *pInclude, UINT HLSLFlags, UINT FXFlags,
  1119. ID3D10Blob **ppCompiledEffect, ID3D10Blob **ppErrors);
  1120. HRESULT WINAPI D3D10CreateEffectFromMemory(void *pData, SIZE_T DataLength, UINT FXFlags, ID3D10Device *pDevice,
  1121. ID3D10EffectPool *pEffectPool, ID3D10Effect **ppEffect);
  1122. HRESULT WINAPI D3D10CreateEffectPoolFromMemory(void *pData, SIZE_T DataLength, UINT FXFlags, ID3D10Device *pDevice,
  1123. ID3D10EffectPool **ppEffectPool);
  1124. //----------------------------------------------------------------------------
  1125. // D3D10DisassembleEffect:
  1126. // -----------------------
  1127. // Takes an effect interface, and returns a buffer containing text assembly.
  1128. //
  1129. // Parameters:
  1130. // pEffect
  1131. // Pointer to the runtime effect interface.
  1132. // EnableColorCode
  1133. // Emit HTML tags for color coding the output?
  1134. // ppDisassembly
  1135. // Returns a buffer containing the disassembled effect.
  1136. //----------------------------------------------------------------------------
  1137. HRESULT WINAPI D3D10DisassembleEffect(ID3D10Effect *pEffect, BOOL EnableColorCode, ID3D10Blob **ppDisassembly);
  1138. #ifdef __cplusplus
  1139. }
  1140. #endif //__cplusplus
  1141. #endif //__D3D10EFFECT_H__