d3d11_2.h 121 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721
  1. /*-------------------------------------------------------------------------------------
  2. *
  3. * Copyright (c) Microsoft Corporation
  4. *
  5. *-------------------------------------------------------------------------------------*/
  6. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  7. /* File created by MIDL compiler version 8.01.0622 */
  8. /* @@MIDL_FILE_HEADING( ) */
  9. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  10. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  11. #define __REQUIRED_RPCNDR_H_VERSION__ 500
  12. #endif
  13. /* verify that the <rpcsal.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCSAL_H_VERSION__
  15. #define __REQUIRED_RPCSAL_H_VERSION__ 100
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif /* __RPCNDR_H_VERSION__ */
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __d3d11_2_h__
  27. #define __d3d11_2_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __ID3D11DeviceContext2_FWD_DEFINED__
  33. #define __ID3D11DeviceContext2_FWD_DEFINED__
  34. typedef interface ID3D11DeviceContext2 ID3D11DeviceContext2;
  35. #endif /* __ID3D11DeviceContext2_FWD_DEFINED__ */
  36. #ifndef __ID3D11Device2_FWD_DEFINED__
  37. #define __ID3D11Device2_FWD_DEFINED__
  38. typedef interface ID3D11Device2 ID3D11Device2;
  39. #endif /* __ID3D11Device2_FWD_DEFINED__ */
  40. /* header files for imported files */
  41. #include "oaidl.h"
  42. #include "ocidl.h"
  43. #include "dxgi1_3.h"
  44. #include "d3dcommon.h"
  45. #include "d3d11_1.h"
  46. #ifdef __cplusplus
  47. extern "C"{
  48. #endif
  49. /* interface __MIDL_itf_d3d11_2_0000_0000 */
  50. /* [local] */
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #include "d3d11_1.h" //
  55. #ifdef __cplusplus
  56. extern "C"{
  57. #endif
  58. typedef struct D3D11_TILED_RESOURCE_COORDINATE
  59. {
  60. UINT X;
  61. UINT Y;
  62. UINT Z;
  63. UINT Subresource;
  64. } D3D11_TILED_RESOURCE_COORDINATE;
  65. typedef struct D3D11_TILE_REGION_SIZE
  66. {
  67. UINT NumTiles;
  68. BOOL bUseBox;
  69. UINT Width;
  70. UINT16 Height;
  71. UINT16 Depth;
  72. } D3D11_TILE_REGION_SIZE;
  73. typedef
  74. enum D3D11_TILE_MAPPING_FLAG
  75. {
  76. D3D11_TILE_MAPPING_NO_OVERWRITE = 0x1
  77. } D3D11_TILE_MAPPING_FLAG;
  78. typedef
  79. enum D3D11_TILE_RANGE_FLAG
  80. {
  81. D3D11_TILE_RANGE_NULL = 0x1,
  82. D3D11_TILE_RANGE_SKIP = 0x2,
  83. D3D11_TILE_RANGE_REUSE_SINGLE_TILE = 0x4
  84. } D3D11_TILE_RANGE_FLAG;
  85. typedef struct D3D11_SUBRESOURCE_TILING
  86. {
  87. UINT WidthInTiles;
  88. UINT16 HeightInTiles;
  89. UINT16 DepthInTiles;
  90. UINT StartTileIndexInOverallResource;
  91. } D3D11_SUBRESOURCE_TILING;
  92. #define D3D11_PACKED_TILE ( 0xffffffff )
  93. typedef struct D3D11_TILE_SHAPE
  94. {
  95. UINT WidthInTexels;
  96. UINT HeightInTexels;
  97. UINT DepthInTexels;
  98. } D3D11_TILE_SHAPE;
  99. typedef struct D3D11_PACKED_MIP_DESC
  100. {
  101. UINT8 NumStandardMips;
  102. UINT8 NumPackedMips;
  103. UINT NumTilesForPackedMips;
  104. UINT StartTileIndexInOverallResource;
  105. } D3D11_PACKED_MIP_DESC;
  106. typedef
  107. enum D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG
  108. {
  109. D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_TILED_RESOURCE = 0x1
  110. } D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG;
  111. typedef
  112. enum D3D11_TILE_COPY_FLAG
  113. {
  114. D3D11_TILE_COPY_NO_OVERWRITE = 0x1,
  115. D3D11_TILE_COPY_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2,
  116. D3D11_TILE_COPY_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4
  117. } D3D11_TILE_COPY_FLAG;
  118. extern RPC_IF_HANDLE __MIDL_itf_d3d11_2_0000_0000_v0_0_c_ifspec;
  119. extern RPC_IF_HANDLE __MIDL_itf_d3d11_2_0000_0000_v0_0_s_ifspec;
  120. #ifndef __ID3D11DeviceContext2_INTERFACE_DEFINED__
  121. #define __ID3D11DeviceContext2_INTERFACE_DEFINED__
  122. /* interface ID3D11DeviceContext2 */
  123. /* [unique][local][object][uuid] */
  124. EXTERN_C const IID IID_ID3D11DeviceContext2;
  125. #if defined(__cplusplus) && !defined(CINTERFACE)
  126. MIDL_INTERFACE("420d5b32-b90c-4da4-bef0-359f6a24a83a")
  127. ID3D11DeviceContext2 : public ID3D11DeviceContext1
  128. {
  129. public:
  130. virtual HRESULT STDMETHODCALLTYPE UpdateTileMappings(
  131. /* [annotation] */
  132. _In_ ID3D11Resource *pTiledResource,
  133. /* [annotation] */
  134. _In_ UINT NumTiledResourceRegions,
  135. /* [annotation] */
  136. _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILED_RESOURCE_COORDINATE *pTiledResourceRegionStartCoordinates,
  137. /* [annotation] */
  138. _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILE_REGION_SIZE *pTiledResourceRegionSizes,
  139. /* [annotation] */
  140. _In_opt_ ID3D11Buffer *pTilePool,
  141. /* [annotation] */
  142. _In_ UINT NumRanges,
  143. /* [annotation] */
  144. _In_reads_opt_(NumRanges) const UINT *pRangeFlags,
  145. /* [annotation] */
  146. _In_reads_opt_(NumRanges) const UINT *pTilePoolStartOffsets,
  147. /* [annotation] */
  148. _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts,
  149. /* [annotation] */
  150. _In_ UINT Flags) = 0;
  151. virtual HRESULT STDMETHODCALLTYPE CopyTileMappings(
  152. /* [annotation] */
  153. _In_ ID3D11Resource *pDestTiledResource,
  154. /* [annotation] */
  155. _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestRegionStartCoordinate,
  156. /* [annotation] */
  157. _In_ ID3D11Resource *pSourceTiledResource,
  158. /* [annotation] */
  159. _In_ const D3D11_TILED_RESOURCE_COORDINATE *pSourceRegionStartCoordinate,
  160. /* [annotation] */
  161. _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize,
  162. /* [annotation] */
  163. _In_ UINT Flags) = 0;
  164. virtual void STDMETHODCALLTYPE CopyTiles(
  165. /* [annotation] */
  166. _In_ ID3D11Resource *pTiledResource,
  167. /* [annotation] */
  168. _In_ const D3D11_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  169. /* [annotation] */
  170. _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize,
  171. /* [annotation] */
  172. _In_ ID3D11Buffer *pBuffer,
  173. /* [annotation] */
  174. _In_ UINT64 BufferStartOffsetInBytes,
  175. /* [annotation] */
  176. _In_ UINT Flags) = 0;
  177. virtual void STDMETHODCALLTYPE UpdateTiles(
  178. /* [annotation] */
  179. _In_ ID3D11Resource *pDestTiledResource,
  180. /* [annotation] */
  181. _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestTileRegionStartCoordinate,
  182. /* [annotation] */
  183. _In_ const D3D11_TILE_REGION_SIZE *pDestTileRegionSize,
  184. /* [annotation] */
  185. _In_ const void *pSourceTileData,
  186. /* [annotation] */
  187. _In_ UINT Flags) = 0;
  188. virtual HRESULT STDMETHODCALLTYPE ResizeTilePool(
  189. /* [annotation] */
  190. _In_ ID3D11Buffer *pTilePool,
  191. /* [annotation] */
  192. _In_ UINT64 NewSizeInBytes) = 0;
  193. virtual void STDMETHODCALLTYPE TiledResourceBarrier(
  194. /* [annotation] */
  195. _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessBeforeBarrier,
  196. /* [annotation] */
  197. _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessAfterBarrier) = 0;
  198. virtual BOOL STDMETHODCALLTYPE IsAnnotationEnabled( void) = 0;
  199. virtual void STDMETHODCALLTYPE SetMarkerInt(
  200. /* [annotation] */
  201. _In_ LPCWSTR pLabel,
  202. INT Data) = 0;
  203. virtual void STDMETHODCALLTYPE BeginEventInt(
  204. /* [annotation] */
  205. _In_ LPCWSTR pLabel,
  206. INT Data) = 0;
  207. virtual void STDMETHODCALLTYPE EndEvent( void) = 0;
  208. };
  209. #else /* C style interface */
  210. typedef struct ID3D11DeviceContext2Vtbl
  211. {
  212. BEGIN_INTERFACE
  213. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  214. ID3D11DeviceContext2 * This,
  215. /* [in] */ REFIID riid,
  216. /* [annotation][iid_is][out] */
  217. _COM_Outptr_ void **ppvObject);
  218. ULONG ( STDMETHODCALLTYPE *AddRef )(
  219. ID3D11DeviceContext2 * This);
  220. ULONG ( STDMETHODCALLTYPE *Release )(
  221. ID3D11DeviceContext2 * This);
  222. void ( STDMETHODCALLTYPE *GetDevice )(
  223. ID3D11DeviceContext2 * This,
  224. /* [annotation] */
  225. _Outptr_ ID3D11Device **ppDevice);
  226. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  227. ID3D11DeviceContext2 * This,
  228. /* [annotation] */
  229. _In_ REFGUID guid,
  230. /* [annotation] */
  231. _Inout_ UINT *pDataSize,
  232. /* [annotation] */
  233. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  234. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  235. ID3D11DeviceContext2 * This,
  236. /* [annotation] */
  237. _In_ REFGUID guid,
  238. /* [annotation] */
  239. _In_ UINT DataSize,
  240. /* [annotation] */
  241. _In_reads_bytes_opt_( DataSize ) const void *pData);
  242. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  243. ID3D11DeviceContext2 * This,
  244. /* [annotation] */
  245. _In_ REFGUID guid,
  246. /* [annotation] */
  247. _In_opt_ const IUnknown *pData);
  248. void ( STDMETHODCALLTYPE *VSSetConstantBuffers )(
  249. ID3D11DeviceContext2 * This,
  250. /* [annotation] */
  251. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  252. /* [annotation] */
  253. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  254. /* [annotation] */
  255. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  256. void ( STDMETHODCALLTYPE *PSSetShaderResources )(
  257. ID3D11DeviceContext2 * This,
  258. /* [annotation] */
  259. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  260. /* [annotation] */
  261. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  262. /* [annotation] */
  263. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  264. void ( STDMETHODCALLTYPE *PSSetShader )(
  265. ID3D11DeviceContext2 * This,
  266. /* [annotation] */
  267. _In_opt_ ID3D11PixelShader *pPixelShader,
  268. /* [annotation] */
  269. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  270. UINT NumClassInstances);
  271. void ( STDMETHODCALLTYPE *PSSetSamplers )(
  272. ID3D11DeviceContext2 * This,
  273. /* [annotation] */
  274. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  275. /* [annotation] */
  276. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  277. /* [annotation] */
  278. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  279. void ( STDMETHODCALLTYPE *VSSetShader )(
  280. ID3D11DeviceContext2 * This,
  281. /* [annotation] */
  282. _In_opt_ ID3D11VertexShader *pVertexShader,
  283. /* [annotation] */
  284. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  285. UINT NumClassInstances);
  286. void ( STDMETHODCALLTYPE *DrawIndexed )(
  287. ID3D11DeviceContext2 * This,
  288. /* [annotation] */
  289. _In_ UINT IndexCount,
  290. /* [annotation] */
  291. _In_ UINT StartIndexLocation,
  292. /* [annotation] */
  293. _In_ INT BaseVertexLocation);
  294. void ( STDMETHODCALLTYPE *Draw )(
  295. ID3D11DeviceContext2 * This,
  296. /* [annotation] */
  297. _In_ UINT VertexCount,
  298. /* [annotation] */
  299. _In_ UINT StartVertexLocation);
  300. HRESULT ( STDMETHODCALLTYPE *Map )(
  301. ID3D11DeviceContext2 * This,
  302. /* [annotation] */
  303. _In_ ID3D11Resource *pResource,
  304. /* [annotation] */
  305. _In_ UINT Subresource,
  306. /* [annotation] */
  307. _In_ D3D11_MAP MapType,
  308. /* [annotation] */
  309. _In_ UINT MapFlags,
  310. /* [annotation] */
  311. _Out_opt_ D3D11_MAPPED_SUBRESOURCE *pMappedResource);
  312. void ( STDMETHODCALLTYPE *Unmap )(
  313. ID3D11DeviceContext2 * This,
  314. /* [annotation] */
  315. _In_ ID3D11Resource *pResource,
  316. /* [annotation] */
  317. _In_ UINT Subresource);
  318. void ( STDMETHODCALLTYPE *PSSetConstantBuffers )(
  319. ID3D11DeviceContext2 * This,
  320. /* [annotation] */
  321. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  322. /* [annotation] */
  323. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  324. /* [annotation] */
  325. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  326. void ( STDMETHODCALLTYPE *IASetInputLayout )(
  327. ID3D11DeviceContext2 * This,
  328. /* [annotation] */
  329. _In_opt_ ID3D11InputLayout *pInputLayout);
  330. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  331. ID3D11DeviceContext2 * This,
  332. /* [annotation] */
  333. _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  334. /* [annotation] */
  335. _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  336. /* [annotation] */
  337. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppVertexBuffers,
  338. /* [annotation] */
  339. _In_reads_opt_(NumBuffers) const UINT *pStrides,
  340. /* [annotation] */
  341. _In_reads_opt_(NumBuffers) const UINT *pOffsets);
  342. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  343. ID3D11DeviceContext2 * This,
  344. /* [annotation] */
  345. _In_opt_ ID3D11Buffer *pIndexBuffer,
  346. /* [annotation] */
  347. _In_ DXGI_FORMAT Format,
  348. /* [annotation] */
  349. _In_ UINT Offset);
  350. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  351. ID3D11DeviceContext2 * This,
  352. /* [annotation] */
  353. _In_ UINT IndexCountPerInstance,
  354. /* [annotation] */
  355. _In_ UINT InstanceCount,
  356. /* [annotation] */
  357. _In_ UINT StartIndexLocation,
  358. /* [annotation] */
  359. _In_ INT BaseVertexLocation,
  360. /* [annotation] */
  361. _In_ UINT StartInstanceLocation);
  362. void ( STDMETHODCALLTYPE *DrawInstanced )(
  363. ID3D11DeviceContext2 * This,
  364. /* [annotation] */
  365. _In_ UINT VertexCountPerInstance,
  366. /* [annotation] */
  367. _In_ UINT InstanceCount,
  368. /* [annotation] */
  369. _In_ UINT StartVertexLocation,
  370. /* [annotation] */
  371. _In_ UINT StartInstanceLocation);
  372. void ( STDMETHODCALLTYPE *GSSetConstantBuffers )(
  373. ID3D11DeviceContext2 * This,
  374. /* [annotation] */
  375. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  376. /* [annotation] */
  377. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  378. /* [annotation] */
  379. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  380. void ( STDMETHODCALLTYPE *GSSetShader )(
  381. ID3D11DeviceContext2 * This,
  382. /* [annotation] */
  383. _In_opt_ ID3D11GeometryShader *pShader,
  384. /* [annotation] */
  385. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  386. UINT NumClassInstances);
  387. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  388. ID3D11DeviceContext2 * This,
  389. /* [annotation] */
  390. _In_ D3D11_PRIMITIVE_TOPOLOGY Topology);
  391. void ( STDMETHODCALLTYPE *VSSetShaderResources )(
  392. ID3D11DeviceContext2 * This,
  393. /* [annotation] */
  394. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  395. /* [annotation] */
  396. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  397. /* [annotation] */
  398. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  399. void ( STDMETHODCALLTYPE *VSSetSamplers )(
  400. ID3D11DeviceContext2 * This,
  401. /* [annotation] */
  402. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  403. /* [annotation] */
  404. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  405. /* [annotation] */
  406. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  407. void ( STDMETHODCALLTYPE *Begin )(
  408. ID3D11DeviceContext2 * This,
  409. /* [annotation] */
  410. _In_ ID3D11Asynchronous *pAsync);
  411. void ( STDMETHODCALLTYPE *End )(
  412. ID3D11DeviceContext2 * This,
  413. /* [annotation] */
  414. _In_ ID3D11Asynchronous *pAsync);
  415. HRESULT ( STDMETHODCALLTYPE *GetData )(
  416. ID3D11DeviceContext2 * This,
  417. /* [annotation] */
  418. _In_ ID3D11Asynchronous *pAsync,
  419. /* [annotation] */
  420. _Out_writes_bytes_opt_( DataSize ) void *pData,
  421. /* [annotation] */
  422. _In_ UINT DataSize,
  423. /* [annotation] */
  424. _In_ UINT GetDataFlags);
  425. void ( STDMETHODCALLTYPE *SetPredication )(
  426. ID3D11DeviceContext2 * This,
  427. /* [annotation] */
  428. _In_opt_ ID3D11Predicate *pPredicate,
  429. /* [annotation] */
  430. _In_ BOOL PredicateValue);
  431. void ( STDMETHODCALLTYPE *GSSetShaderResources )(
  432. ID3D11DeviceContext2 * This,
  433. /* [annotation] */
  434. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  435. /* [annotation] */
  436. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  437. /* [annotation] */
  438. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  439. void ( STDMETHODCALLTYPE *GSSetSamplers )(
  440. ID3D11DeviceContext2 * This,
  441. /* [annotation] */
  442. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  443. /* [annotation] */
  444. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  445. /* [annotation] */
  446. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  447. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  448. ID3D11DeviceContext2 * This,
  449. /* [annotation] */
  450. _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews,
  451. /* [annotation] */
  452. _In_reads_opt_(NumViews) ID3D11RenderTargetView *const *ppRenderTargetViews,
  453. /* [annotation] */
  454. _In_opt_ ID3D11DepthStencilView *pDepthStencilView);
  455. void ( STDMETHODCALLTYPE *OMSetRenderTargetsAndUnorderedAccessViews )(
  456. ID3D11DeviceContext2 * This,
  457. /* [annotation] */
  458. _In_ UINT NumRTVs,
  459. /* [annotation] */
  460. _In_reads_opt_(NumRTVs) ID3D11RenderTargetView *const *ppRenderTargetViews,
  461. /* [annotation] */
  462. _In_opt_ ID3D11DepthStencilView *pDepthStencilView,
  463. /* [annotation] */
  464. _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT UAVStartSlot,
  465. /* [annotation] */
  466. _In_ UINT NumUAVs,
  467. /* [annotation] */
  468. _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
  469. /* [annotation] */
  470. _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts);
  471. void ( STDMETHODCALLTYPE *OMSetBlendState )(
  472. ID3D11DeviceContext2 * This,
  473. /* [annotation] */
  474. _In_opt_ ID3D11BlendState *pBlendState,
  475. /* [annotation] */
  476. _In_opt_ const FLOAT BlendFactor[ 4 ],
  477. /* [annotation] */
  478. _In_ UINT SampleMask);
  479. void ( STDMETHODCALLTYPE *OMSetDepthStencilState )(
  480. ID3D11DeviceContext2 * This,
  481. /* [annotation] */
  482. _In_opt_ ID3D11DepthStencilState *pDepthStencilState,
  483. /* [annotation] */
  484. _In_ UINT StencilRef);
  485. void ( STDMETHODCALLTYPE *SOSetTargets )(
  486. ID3D11DeviceContext2 * This,
  487. /* [annotation] */
  488. _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT) UINT NumBuffers,
  489. /* [annotation] */
  490. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppSOTargets,
  491. /* [annotation] */
  492. _In_reads_opt_(NumBuffers) const UINT *pOffsets);
  493. void ( STDMETHODCALLTYPE *DrawAuto )(
  494. ID3D11DeviceContext2 * This);
  495. void ( STDMETHODCALLTYPE *DrawIndexedInstancedIndirect )(
  496. ID3D11DeviceContext2 * This,
  497. /* [annotation] */
  498. _In_ ID3D11Buffer *pBufferForArgs,
  499. /* [annotation] */
  500. _In_ UINT AlignedByteOffsetForArgs);
  501. void ( STDMETHODCALLTYPE *DrawInstancedIndirect )(
  502. ID3D11DeviceContext2 * This,
  503. /* [annotation] */
  504. _In_ ID3D11Buffer *pBufferForArgs,
  505. /* [annotation] */
  506. _In_ UINT AlignedByteOffsetForArgs);
  507. void ( STDMETHODCALLTYPE *Dispatch )(
  508. ID3D11DeviceContext2 * This,
  509. /* [annotation] */
  510. _In_ UINT ThreadGroupCountX,
  511. /* [annotation] */
  512. _In_ UINT ThreadGroupCountY,
  513. /* [annotation] */
  514. _In_ UINT ThreadGroupCountZ);
  515. void ( STDMETHODCALLTYPE *DispatchIndirect )(
  516. ID3D11DeviceContext2 * This,
  517. /* [annotation] */
  518. _In_ ID3D11Buffer *pBufferForArgs,
  519. /* [annotation] */
  520. _In_ UINT AlignedByteOffsetForArgs);
  521. void ( STDMETHODCALLTYPE *RSSetState )(
  522. ID3D11DeviceContext2 * This,
  523. /* [annotation] */
  524. _In_opt_ ID3D11RasterizerState *pRasterizerState);
  525. void ( STDMETHODCALLTYPE *RSSetViewports )(
  526. ID3D11DeviceContext2 * This,
  527. /* [annotation] */
  528. _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  529. /* [annotation] */
  530. _In_reads_opt_(NumViewports) const D3D11_VIEWPORT *pViewports);
  531. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  532. ID3D11DeviceContext2 * This,
  533. /* [annotation] */
  534. _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  535. /* [annotation] */
  536. _In_reads_opt_(NumRects) const D3D11_RECT *pRects);
  537. void ( STDMETHODCALLTYPE *CopySubresourceRegion )(
  538. ID3D11DeviceContext2 * This,
  539. /* [annotation] */
  540. _In_ ID3D11Resource *pDstResource,
  541. /* [annotation] */
  542. _In_ UINT DstSubresource,
  543. /* [annotation] */
  544. _In_ UINT DstX,
  545. /* [annotation] */
  546. _In_ UINT DstY,
  547. /* [annotation] */
  548. _In_ UINT DstZ,
  549. /* [annotation] */
  550. _In_ ID3D11Resource *pSrcResource,
  551. /* [annotation] */
  552. _In_ UINT SrcSubresource,
  553. /* [annotation] */
  554. _In_opt_ const D3D11_BOX *pSrcBox);
  555. void ( STDMETHODCALLTYPE *CopyResource )(
  556. ID3D11DeviceContext2 * This,
  557. /* [annotation] */
  558. _In_ ID3D11Resource *pDstResource,
  559. /* [annotation] */
  560. _In_ ID3D11Resource *pSrcResource);
  561. void ( STDMETHODCALLTYPE *UpdateSubresource )(
  562. ID3D11DeviceContext2 * This,
  563. /* [annotation] */
  564. _In_ ID3D11Resource *pDstResource,
  565. /* [annotation] */
  566. _In_ UINT DstSubresource,
  567. /* [annotation] */
  568. _In_opt_ const D3D11_BOX *pDstBox,
  569. /* [annotation] */
  570. _In_ const void *pSrcData,
  571. /* [annotation] */
  572. _In_ UINT SrcRowPitch,
  573. /* [annotation] */
  574. _In_ UINT SrcDepthPitch);
  575. void ( STDMETHODCALLTYPE *CopyStructureCount )(
  576. ID3D11DeviceContext2 * This,
  577. /* [annotation] */
  578. _In_ ID3D11Buffer *pDstBuffer,
  579. /* [annotation] */
  580. _In_ UINT DstAlignedByteOffset,
  581. /* [annotation] */
  582. _In_ ID3D11UnorderedAccessView *pSrcView);
  583. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  584. ID3D11DeviceContext2 * This,
  585. /* [annotation] */
  586. _In_ ID3D11RenderTargetView *pRenderTargetView,
  587. /* [annotation] */
  588. _In_ const FLOAT ColorRGBA[ 4 ]);
  589. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  590. ID3D11DeviceContext2 * This,
  591. /* [annotation] */
  592. _In_ ID3D11UnorderedAccessView *pUnorderedAccessView,
  593. /* [annotation] */
  594. _In_ const UINT Values[ 4 ]);
  595. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  596. ID3D11DeviceContext2 * This,
  597. /* [annotation] */
  598. _In_ ID3D11UnorderedAccessView *pUnorderedAccessView,
  599. /* [annotation] */
  600. _In_ const FLOAT Values[ 4 ]);
  601. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  602. ID3D11DeviceContext2 * This,
  603. /* [annotation] */
  604. _In_ ID3D11DepthStencilView *pDepthStencilView,
  605. /* [annotation] */
  606. _In_ UINT ClearFlags,
  607. /* [annotation] */
  608. _In_ FLOAT Depth,
  609. /* [annotation] */
  610. _In_ UINT8 Stencil);
  611. void ( STDMETHODCALLTYPE *GenerateMips )(
  612. ID3D11DeviceContext2 * This,
  613. /* [annotation] */
  614. _In_ ID3D11ShaderResourceView *pShaderResourceView);
  615. void ( STDMETHODCALLTYPE *SetResourceMinLOD )(
  616. ID3D11DeviceContext2 * This,
  617. /* [annotation] */
  618. _In_ ID3D11Resource *pResource,
  619. FLOAT MinLOD);
  620. FLOAT ( STDMETHODCALLTYPE *GetResourceMinLOD )(
  621. ID3D11DeviceContext2 * This,
  622. /* [annotation] */
  623. _In_ ID3D11Resource *pResource);
  624. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  625. ID3D11DeviceContext2 * This,
  626. /* [annotation] */
  627. _In_ ID3D11Resource *pDstResource,
  628. /* [annotation] */
  629. _In_ UINT DstSubresource,
  630. /* [annotation] */
  631. _In_ ID3D11Resource *pSrcResource,
  632. /* [annotation] */
  633. _In_ UINT SrcSubresource,
  634. /* [annotation] */
  635. _In_ DXGI_FORMAT Format);
  636. void ( STDMETHODCALLTYPE *ExecuteCommandList )(
  637. ID3D11DeviceContext2 * This,
  638. /* [annotation] */
  639. _In_ ID3D11CommandList *pCommandList,
  640. BOOL RestoreContextState);
  641. void ( STDMETHODCALLTYPE *HSSetShaderResources )(
  642. ID3D11DeviceContext2 * This,
  643. /* [annotation] */
  644. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  645. /* [annotation] */
  646. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  647. /* [annotation] */
  648. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  649. void ( STDMETHODCALLTYPE *HSSetShader )(
  650. ID3D11DeviceContext2 * This,
  651. /* [annotation] */
  652. _In_opt_ ID3D11HullShader *pHullShader,
  653. /* [annotation] */
  654. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  655. UINT NumClassInstances);
  656. void ( STDMETHODCALLTYPE *HSSetSamplers )(
  657. ID3D11DeviceContext2 * This,
  658. /* [annotation] */
  659. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  660. /* [annotation] */
  661. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  662. /* [annotation] */
  663. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  664. void ( STDMETHODCALLTYPE *HSSetConstantBuffers )(
  665. ID3D11DeviceContext2 * This,
  666. /* [annotation] */
  667. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  668. /* [annotation] */
  669. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  670. /* [annotation] */
  671. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  672. void ( STDMETHODCALLTYPE *DSSetShaderResources )(
  673. ID3D11DeviceContext2 * This,
  674. /* [annotation] */
  675. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  676. /* [annotation] */
  677. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  678. /* [annotation] */
  679. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  680. void ( STDMETHODCALLTYPE *DSSetShader )(
  681. ID3D11DeviceContext2 * This,
  682. /* [annotation] */
  683. _In_opt_ ID3D11DomainShader *pDomainShader,
  684. /* [annotation] */
  685. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  686. UINT NumClassInstances);
  687. void ( STDMETHODCALLTYPE *DSSetSamplers )(
  688. ID3D11DeviceContext2 * This,
  689. /* [annotation] */
  690. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  691. /* [annotation] */
  692. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  693. /* [annotation] */
  694. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  695. void ( STDMETHODCALLTYPE *DSSetConstantBuffers )(
  696. ID3D11DeviceContext2 * This,
  697. /* [annotation] */
  698. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  699. /* [annotation] */
  700. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  701. /* [annotation] */
  702. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  703. void ( STDMETHODCALLTYPE *CSSetShaderResources )(
  704. ID3D11DeviceContext2 * This,
  705. /* [annotation] */
  706. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  707. /* [annotation] */
  708. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  709. /* [annotation] */
  710. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  711. void ( STDMETHODCALLTYPE *CSSetUnorderedAccessViews )(
  712. ID3D11DeviceContext2 * This,
  713. /* [annotation] */
  714. _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot,
  715. /* [annotation] */
  716. _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs,
  717. /* [annotation] */
  718. _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
  719. /* [annotation] */
  720. _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts);
  721. void ( STDMETHODCALLTYPE *CSSetShader )(
  722. ID3D11DeviceContext2 * This,
  723. /* [annotation] */
  724. _In_opt_ ID3D11ComputeShader *pComputeShader,
  725. /* [annotation] */
  726. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  727. UINT NumClassInstances);
  728. void ( STDMETHODCALLTYPE *CSSetSamplers )(
  729. ID3D11DeviceContext2 * This,
  730. /* [annotation] */
  731. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  732. /* [annotation] */
  733. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  734. /* [annotation] */
  735. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  736. void ( STDMETHODCALLTYPE *CSSetConstantBuffers )(
  737. ID3D11DeviceContext2 * This,
  738. /* [annotation] */
  739. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  740. /* [annotation] */
  741. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  742. /* [annotation] */
  743. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  744. void ( STDMETHODCALLTYPE *VSGetConstantBuffers )(
  745. ID3D11DeviceContext2 * This,
  746. /* [annotation] */
  747. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  748. /* [annotation] */
  749. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  750. /* [annotation] */
  751. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  752. void ( STDMETHODCALLTYPE *PSGetShaderResources )(
  753. ID3D11DeviceContext2 * This,
  754. /* [annotation] */
  755. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  756. /* [annotation] */
  757. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  758. /* [annotation] */
  759. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  760. void ( STDMETHODCALLTYPE *PSGetShader )(
  761. ID3D11DeviceContext2 * This,
  762. /* [annotation] */
  763. _Outptr_result_maybenull_ ID3D11PixelShader **ppPixelShader,
  764. /* [annotation] */
  765. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  766. /* [annotation] */
  767. _Inout_opt_ UINT *pNumClassInstances);
  768. void ( STDMETHODCALLTYPE *PSGetSamplers )(
  769. ID3D11DeviceContext2 * This,
  770. /* [annotation] */
  771. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  772. /* [annotation] */
  773. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  774. /* [annotation] */
  775. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  776. void ( STDMETHODCALLTYPE *VSGetShader )(
  777. ID3D11DeviceContext2 * This,
  778. /* [annotation] */
  779. _Outptr_result_maybenull_ ID3D11VertexShader **ppVertexShader,
  780. /* [annotation] */
  781. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  782. /* [annotation] */
  783. _Inout_opt_ UINT *pNumClassInstances);
  784. void ( STDMETHODCALLTYPE *PSGetConstantBuffers )(
  785. ID3D11DeviceContext2 * This,
  786. /* [annotation] */
  787. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  788. /* [annotation] */
  789. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  790. /* [annotation] */
  791. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  792. void ( STDMETHODCALLTYPE *IAGetInputLayout )(
  793. ID3D11DeviceContext2 * This,
  794. /* [annotation] */
  795. _Outptr_result_maybenull_ ID3D11InputLayout **ppInputLayout);
  796. void ( STDMETHODCALLTYPE *IAGetVertexBuffers )(
  797. ID3D11DeviceContext2 * This,
  798. /* [annotation] */
  799. _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  800. /* [annotation] */
  801. _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  802. /* [annotation] */
  803. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppVertexBuffers,
  804. /* [annotation] */
  805. _Out_writes_opt_(NumBuffers) UINT *pStrides,
  806. /* [annotation] */
  807. _Out_writes_opt_(NumBuffers) UINT *pOffsets);
  808. void ( STDMETHODCALLTYPE *IAGetIndexBuffer )(
  809. ID3D11DeviceContext2 * This,
  810. /* [annotation] */
  811. _Outptr_opt_result_maybenull_ ID3D11Buffer **pIndexBuffer,
  812. /* [annotation] */
  813. _Out_opt_ DXGI_FORMAT *Format,
  814. /* [annotation] */
  815. _Out_opt_ UINT *Offset);
  816. void ( STDMETHODCALLTYPE *GSGetConstantBuffers )(
  817. ID3D11DeviceContext2 * This,
  818. /* [annotation] */
  819. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  820. /* [annotation] */
  821. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  822. /* [annotation] */
  823. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  824. void ( STDMETHODCALLTYPE *GSGetShader )(
  825. ID3D11DeviceContext2 * This,
  826. /* [annotation] */
  827. _Outptr_result_maybenull_ ID3D11GeometryShader **ppGeometryShader,
  828. /* [annotation] */
  829. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  830. /* [annotation] */
  831. _Inout_opt_ UINT *pNumClassInstances);
  832. void ( STDMETHODCALLTYPE *IAGetPrimitiveTopology )(
  833. ID3D11DeviceContext2 * This,
  834. /* [annotation] */
  835. _Out_ D3D11_PRIMITIVE_TOPOLOGY *pTopology);
  836. void ( STDMETHODCALLTYPE *VSGetShaderResources )(
  837. ID3D11DeviceContext2 * This,
  838. /* [annotation] */
  839. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  840. /* [annotation] */
  841. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  842. /* [annotation] */
  843. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  844. void ( STDMETHODCALLTYPE *VSGetSamplers )(
  845. ID3D11DeviceContext2 * This,
  846. /* [annotation] */
  847. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  848. /* [annotation] */
  849. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  850. /* [annotation] */
  851. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  852. void ( STDMETHODCALLTYPE *GetPredication )(
  853. ID3D11DeviceContext2 * This,
  854. /* [annotation] */
  855. _Outptr_opt_result_maybenull_ ID3D11Predicate **ppPredicate,
  856. /* [annotation] */
  857. _Out_opt_ BOOL *pPredicateValue);
  858. void ( STDMETHODCALLTYPE *GSGetShaderResources )(
  859. ID3D11DeviceContext2 * This,
  860. /* [annotation] */
  861. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  862. /* [annotation] */
  863. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  864. /* [annotation] */
  865. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  866. void ( STDMETHODCALLTYPE *GSGetSamplers )(
  867. ID3D11DeviceContext2 * This,
  868. /* [annotation] */
  869. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  870. /* [annotation] */
  871. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  872. /* [annotation] */
  873. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  874. void ( STDMETHODCALLTYPE *OMGetRenderTargets )(
  875. ID3D11DeviceContext2 * This,
  876. /* [annotation] */
  877. _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews,
  878. /* [annotation] */
  879. _Out_writes_opt_(NumViews) ID3D11RenderTargetView **ppRenderTargetViews,
  880. /* [annotation] */
  881. _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView);
  882. void ( STDMETHODCALLTYPE *OMGetRenderTargetsAndUnorderedAccessViews )(
  883. ID3D11DeviceContext2 * This,
  884. /* [annotation] */
  885. _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumRTVs,
  886. /* [annotation] */
  887. _Out_writes_opt_(NumRTVs) ID3D11RenderTargetView **ppRenderTargetViews,
  888. /* [annotation] */
  889. _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView,
  890. /* [annotation] */
  891. _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - 1 ) UINT UAVStartSlot,
  892. /* [annotation] */
  893. _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot ) UINT NumUAVs,
  894. /* [annotation] */
  895. _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews);
  896. void ( STDMETHODCALLTYPE *OMGetBlendState )(
  897. ID3D11DeviceContext2 * This,
  898. /* [annotation] */
  899. _Outptr_opt_result_maybenull_ ID3D11BlendState **ppBlendState,
  900. /* [annotation] */
  901. _Out_opt_ FLOAT BlendFactor[ 4 ],
  902. /* [annotation] */
  903. _Out_opt_ UINT *pSampleMask);
  904. void ( STDMETHODCALLTYPE *OMGetDepthStencilState )(
  905. ID3D11DeviceContext2 * This,
  906. /* [annotation] */
  907. _Outptr_opt_result_maybenull_ ID3D11DepthStencilState **ppDepthStencilState,
  908. /* [annotation] */
  909. _Out_opt_ UINT *pStencilRef);
  910. void ( STDMETHODCALLTYPE *SOGetTargets )(
  911. ID3D11DeviceContext2 * This,
  912. /* [annotation] */
  913. _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers,
  914. /* [annotation] */
  915. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppSOTargets);
  916. void ( STDMETHODCALLTYPE *RSGetState )(
  917. ID3D11DeviceContext2 * This,
  918. /* [annotation] */
  919. _Outptr_result_maybenull_ ID3D11RasterizerState **ppRasterizerState);
  920. void ( STDMETHODCALLTYPE *RSGetViewports )(
  921. ID3D11DeviceContext2 * This,
  922. /* [annotation] */
  923. _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumViewports,
  924. /* [annotation] */
  925. _Out_writes_opt_(*pNumViewports) D3D11_VIEWPORT *pViewports);
  926. void ( STDMETHODCALLTYPE *RSGetScissorRects )(
  927. ID3D11DeviceContext2 * This,
  928. /* [annotation] */
  929. _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumRects,
  930. /* [annotation] */
  931. _Out_writes_opt_(*pNumRects) D3D11_RECT *pRects);
  932. void ( STDMETHODCALLTYPE *HSGetShaderResources )(
  933. ID3D11DeviceContext2 * This,
  934. /* [annotation] */
  935. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  936. /* [annotation] */
  937. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  938. /* [annotation] */
  939. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  940. void ( STDMETHODCALLTYPE *HSGetShader )(
  941. ID3D11DeviceContext2 * This,
  942. /* [annotation] */
  943. _Outptr_result_maybenull_ ID3D11HullShader **ppHullShader,
  944. /* [annotation] */
  945. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  946. /* [annotation] */
  947. _Inout_opt_ UINT *pNumClassInstances);
  948. void ( STDMETHODCALLTYPE *HSGetSamplers )(
  949. ID3D11DeviceContext2 * This,
  950. /* [annotation] */
  951. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  952. /* [annotation] */
  953. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  954. /* [annotation] */
  955. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  956. void ( STDMETHODCALLTYPE *HSGetConstantBuffers )(
  957. ID3D11DeviceContext2 * This,
  958. /* [annotation] */
  959. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  960. /* [annotation] */
  961. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  962. /* [annotation] */
  963. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  964. void ( STDMETHODCALLTYPE *DSGetShaderResources )(
  965. ID3D11DeviceContext2 * This,
  966. /* [annotation] */
  967. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  968. /* [annotation] */
  969. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  970. /* [annotation] */
  971. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  972. void ( STDMETHODCALLTYPE *DSGetShader )(
  973. ID3D11DeviceContext2 * This,
  974. /* [annotation] */
  975. _Outptr_result_maybenull_ ID3D11DomainShader **ppDomainShader,
  976. /* [annotation] */
  977. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  978. /* [annotation] */
  979. _Inout_opt_ UINT *pNumClassInstances);
  980. void ( STDMETHODCALLTYPE *DSGetSamplers )(
  981. ID3D11DeviceContext2 * This,
  982. /* [annotation] */
  983. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  984. /* [annotation] */
  985. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  986. /* [annotation] */
  987. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  988. void ( STDMETHODCALLTYPE *DSGetConstantBuffers )(
  989. ID3D11DeviceContext2 * This,
  990. /* [annotation] */
  991. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  992. /* [annotation] */
  993. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  994. /* [annotation] */
  995. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  996. void ( STDMETHODCALLTYPE *CSGetShaderResources )(
  997. ID3D11DeviceContext2 * This,
  998. /* [annotation] */
  999. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1000. /* [annotation] */
  1001. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  1002. /* [annotation] */
  1003. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  1004. void ( STDMETHODCALLTYPE *CSGetUnorderedAccessViews )(
  1005. ID3D11DeviceContext2 * This,
  1006. /* [annotation] */
  1007. _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot,
  1008. /* [annotation] */
  1009. _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs,
  1010. /* [annotation] */
  1011. _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews);
  1012. void ( STDMETHODCALLTYPE *CSGetShader )(
  1013. ID3D11DeviceContext2 * This,
  1014. /* [annotation] */
  1015. _Outptr_result_maybenull_ ID3D11ComputeShader **ppComputeShader,
  1016. /* [annotation] */
  1017. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  1018. /* [annotation] */
  1019. _Inout_opt_ UINT *pNumClassInstances);
  1020. void ( STDMETHODCALLTYPE *CSGetSamplers )(
  1021. ID3D11DeviceContext2 * This,
  1022. /* [annotation] */
  1023. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  1024. /* [annotation] */
  1025. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  1026. /* [annotation] */
  1027. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  1028. void ( STDMETHODCALLTYPE *CSGetConstantBuffers )(
  1029. ID3D11DeviceContext2 * This,
  1030. /* [annotation] */
  1031. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1032. /* [annotation] */
  1033. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1034. /* [annotation] */
  1035. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  1036. void ( STDMETHODCALLTYPE *ClearState )(
  1037. ID3D11DeviceContext2 * This);
  1038. void ( STDMETHODCALLTYPE *Flush )(
  1039. ID3D11DeviceContext2 * This);
  1040. D3D11_DEVICE_CONTEXT_TYPE ( STDMETHODCALLTYPE *GetType )(
  1041. ID3D11DeviceContext2 * This);
  1042. UINT ( STDMETHODCALLTYPE *GetContextFlags )(
  1043. ID3D11DeviceContext2 * This);
  1044. HRESULT ( STDMETHODCALLTYPE *FinishCommandList )(
  1045. ID3D11DeviceContext2 * This,
  1046. BOOL RestoreDeferredContextState,
  1047. /* [annotation] */
  1048. _COM_Outptr_opt_ ID3D11CommandList **ppCommandList);
  1049. void ( STDMETHODCALLTYPE *CopySubresourceRegion1 )(
  1050. ID3D11DeviceContext2 * This,
  1051. /* [annotation] */
  1052. _In_ ID3D11Resource *pDstResource,
  1053. /* [annotation] */
  1054. _In_ UINT DstSubresource,
  1055. /* [annotation] */
  1056. _In_ UINT DstX,
  1057. /* [annotation] */
  1058. _In_ UINT DstY,
  1059. /* [annotation] */
  1060. _In_ UINT DstZ,
  1061. /* [annotation] */
  1062. _In_ ID3D11Resource *pSrcResource,
  1063. /* [annotation] */
  1064. _In_ UINT SrcSubresource,
  1065. /* [annotation] */
  1066. _In_opt_ const D3D11_BOX *pSrcBox,
  1067. /* [annotation] */
  1068. _In_ UINT CopyFlags);
  1069. void ( STDMETHODCALLTYPE *UpdateSubresource1 )(
  1070. ID3D11DeviceContext2 * This,
  1071. /* [annotation] */
  1072. _In_ ID3D11Resource *pDstResource,
  1073. /* [annotation] */
  1074. _In_ UINT DstSubresource,
  1075. /* [annotation] */
  1076. _In_opt_ const D3D11_BOX *pDstBox,
  1077. /* [annotation] */
  1078. _In_ const void *pSrcData,
  1079. /* [annotation] */
  1080. _In_ UINT SrcRowPitch,
  1081. /* [annotation] */
  1082. _In_ UINT SrcDepthPitch,
  1083. /* [annotation] */
  1084. _In_ UINT CopyFlags);
  1085. void ( STDMETHODCALLTYPE *DiscardResource )(
  1086. ID3D11DeviceContext2 * This,
  1087. /* [annotation] */
  1088. _In_ ID3D11Resource *pResource);
  1089. void ( STDMETHODCALLTYPE *DiscardView )(
  1090. ID3D11DeviceContext2 * This,
  1091. /* [annotation] */
  1092. _In_ ID3D11View *pResourceView);
  1093. void ( STDMETHODCALLTYPE *VSSetConstantBuffers1 )(
  1094. ID3D11DeviceContext2 * This,
  1095. /* [annotation] */
  1096. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1097. /* [annotation] */
  1098. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1099. /* [annotation] */
  1100. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1101. /* [annotation] */
  1102. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1103. /* [annotation] */
  1104. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1105. void ( STDMETHODCALLTYPE *HSSetConstantBuffers1 )(
  1106. ID3D11DeviceContext2 * This,
  1107. /* [annotation] */
  1108. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1109. /* [annotation] */
  1110. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1111. /* [annotation] */
  1112. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1113. /* [annotation] */
  1114. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1115. /* [annotation] */
  1116. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1117. void ( STDMETHODCALLTYPE *DSSetConstantBuffers1 )(
  1118. ID3D11DeviceContext2 * This,
  1119. /* [annotation] */
  1120. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1121. /* [annotation] */
  1122. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1123. /* [annotation] */
  1124. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1125. /* [annotation] */
  1126. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1127. /* [annotation] */
  1128. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1129. void ( STDMETHODCALLTYPE *GSSetConstantBuffers1 )(
  1130. ID3D11DeviceContext2 * This,
  1131. /* [annotation] */
  1132. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1133. /* [annotation] */
  1134. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1135. /* [annotation] */
  1136. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1137. /* [annotation] */
  1138. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1139. /* [annotation] */
  1140. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1141. void ( STDMETHODCALLTYPE *PSSetConstantBuffers1 )(
  1142. ID3D11DeviceContext2 * This,
  1143. /* [annotation] */
  1144. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1145. /* [annotation] */
  1146. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1147. /* [annotation] */
  1148. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1149. /* [annotation] */
  1150. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1151. /* [annotation] */
  1152. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1153. void ( STDMETHODCALLTYPE *CSSetConstantBuffers1 )(
  1154. ID3D11DeviceContext2 * This,
  1155. /* [annotation] */
  1156. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1157. /* [annotation] */
  1158. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1159. /* [annotation] */
  1160. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1161. /* [annotation] */
  1162. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1163. /* [annotation] */
  1164. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1165. void ( STDMETHODCALLTYPE *VSGetConstantBuffers1 )(
  1166. ID3D11DeviceContext2 * This,
  1167. /* [annotation] */
  1168. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1169. /* [annotation] */
  1170. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1171. /* [annotation] */
  1172. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1173. /* [annotation] */
  1174. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1175. /* [annotation] */
  1176. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1177. void ( STDMETHODCALLTYPE *HSGetConstantBuffers1 )(
  1178. ID3D11DeviceContext2 * This,
  1179. /* [annotation] */
  1180. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1181. /* [annotation] */
  1182. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1183. /* [annotation] */
  1184. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1185. /* [annotation] */
  1186. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1187. /* [annotation] */
  1188. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1189. void ( STDMETHODCALLTYPE *DSGetConstantBuffers1 )(
  1190. ID3D11DeviceContext2 * This,
  1191. /* [annotation] */
  1192. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1193. /* [annotation] */
  1194. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1195. /* [annotation] */
  1196. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1197. /* [annotation] */
  1198. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1199. /* [annotation] */
  1200. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1201. void ( STDMETHODCALLTYPE *GSGetConstantBuffers1 )(
  1202. ID3D11DeviceContext2 * This,
  1203. /* [annotation] */
  1204. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1205. /* [annotation] */
  1206. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1207. /* [annotation] */
  1208. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1209. /* [annotation] */
  1210. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1211. /* [annotation] */
  1212. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1213. void ( STDMETHODCALLTYPE *PSGetConstantBuffers1 )(
  1214. ID3D11DeviceContext2 * This,
  1215. /* [annotation] */
  1216. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1217. /* [annotation] */
  1218. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1219. /* [annotation] */
  1220. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1221. /* [annotation] */
  1222. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1223. /* [annotation] */
  1224. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1225. void ( STDMETHODCALLTYPE *CSGetConstantBuffers1 )(
  1226. ID3D11DeviceContext2 * This,
  1227. /* [annotation] */
  1228. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1229. /* [annotation] */
  1230. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1231. /* [annotation] */
  1232. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1233. /* [annotation] */
  1234. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1235. /* [annotation] */
  1236. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1237. void ( STDMETHODCALLTYPE *SwapDeviceContextState )(
  1238. ID3D11DeviceContext2 * This,
  1239. /* [annotation] */
  1240. _In_ ID3DDeviceContextState *pState,
  1241. /* [annotation] */
  1242. _Outptr_opt_ ID3DDeviceContextState **ppPreviousState);
  1243. void ( STDMETHODCALLTYPE *ClearView )(
  1244. ID3D11DeviceContext2 * This,
  1245. /* [annotation] */
  1246. _In_ ID3D11View *pView,
  1247. /* [annotation] */
  1248. _In_ const FLOAT Color[ 4 ],
  1249. /* [annotation] */
  1250. _In_reads_opt_(NumRects) const D3D11_RECT *pRect,
  1251. UINT NumRects);
  1252. void ( STDMETHODCALLTYPE *DiscardView1 )(
  1253. ID3D11DeviceContext2 * This,
  1254. /* [annotation] */
  1255. _In_ ID3D11View *pResourceView,
  1256. /* [annotation] */
  1257. _In_reads_opt_(NumRects) const D3D11_RECT *pRects,
  1258. UINT NumRects);
  1259. HRESULT ( STDMETHODCALLTYPE *UpdateTileMappings )(
  1260. ID3D11DeviceContext2 * This,
  1261. /* [annotation] */
  1262. _In_ ID3D11Resource *pTiledResource,
  1263. /* [annotation] */
  1264. _In_ UINT NumTiledResourceRegions,
  1265. /* [annotation] */
  1266. _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILED_RESOURCE_COORDINATE *pTiledResourceRegionStartCoordinates,
  1267. /* [annotation] */
  1268. _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILE_REGION_SIZE *pTiledResourceRegionSizes,
  1269. /* [annotation] */
  1270. _In_opt_ ID3D11Buffer *pTilePool,
  1271. /* [annotation] */
  1272. _In_ UINT NumRanges,
  1273. /* [annotation] */
  1274. _In_reads_opt_(NumRanges) const UINT *pRangeFlags,
  1275. /* [annotation] */
  1276. _In_reads_opt_(NumRanges) const UINT *pTilePoolStartOffsets,
  1277. /* [annotation] */
  1278. _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts,
  1279. /* [annotation] */
  1280. _In_ UINT Flags);
  1281. HRESULT ( STDMETHODCALLTYPE *CopyTileMappings )(
  1282. ID3D11DeviceContext2 * This,
  1283. /* [annotation] */
  1284. _In_ ID3D11Resource *pDestTiledResource,
  1285. /* [annotation] */
  1286. _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestRegionStartCoordinate,
  1287. /* [annotation] */
  1288. _In_ ID3D11Resource *pSourceTiledResource,
  1289. /* [annotation] */
  1290. _In_ const D3D11_TILED_RESOURCE_COORDINATE *pSourceRegionStartCoordinate,
  1291. /* [annotation] */
  1292. _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize,
  1293. /* [annotation] */
  1294. _In_ UINT Flags);
  1295. void ( STDMETHODCALLTYPE *CopyTiles )(
  1296. ID3D11DeviceContext2 * This,
  1297. /* [annotation] */
  1298. _In_ ID3D11Resource *pTiledResource,
  1299. /* [annotation] */
  1300. _In_ const D3D11_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  1301. /* [annotation] */
  1302. _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize,
  1303. /* [annotation] */
  1304. _In_ ID3D11Buffer *pBuffer,
  1305. /* [annotation] */
  1306. _In_ UINT64 BufferStartOffsetInBytes,
  1307. /* [annotation] */
  1308. _In_ UINT Flags);
  1309. void ( STDMETHODCALLTYPE *UpdateTiles )(
  1310. ID3D11DeviceContext2 * This,
  1311. /* [annotation] */
  1312. _In_ ID3D11Resource *pDestTiledResource,
  1313. /* [annotation] */
  1314. _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestTileRegionStartCoordinate,
  1315. /* [annotation] */
  1316. _In_ const D3D11_TILE_REGION_SIZE *pDestTileRegionSize,
  1317. /* [annotation] */
  1318. _In_ const void *pSourceTileData,
  1319. /* [annotation] */
  1320. _In_ UINT Flags);
  1321. HRESULT ( STDMETHODCALLTYPE *ResizeTilePool )(
  1322. ID3D11DeviceContext2 * This,
  1323. /* [annotation] */
  1324. _In_ ID3D11Buffer *pTilePool,
  1325. /* [annotation] */
  1326. _In_ UINT64 NewSizeInBytes);
  1327. void ( STDMETHODCALLTYPE *TiledResourceBarrier )(
  1328. ID3D11DeviceContext2 * This,
  1329. /* [annotation] */
  1330. _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessBeforeBarrier,
  1331. /* [annotation] */
  1332. _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessAfterBarrier);
  1333. BOOL ( STDMETHODCALLTYPE *IsAnnotationEnabled )(
  1334. ID3D11DeviceContext2 * This);
  1335. void ( STDMETHODCALLTYPE *SetMarkerInt )(
  1336. ID3D11DeviceContext2 * This,
  1337. /* [annotation] */
  1338. _In_ LPCWSTR pLabel,
  1339. INT Data);
  1340. void ( STDMETHODCALLTYPE *BeginEventInt )(
  1341. ID3D11DeviceContext2 * This,
  1342. /* [annotation] */
  1343. _In_ LPCWSTR pLabel,
  1344. INT Data);
  1345. void ( STDMETHODCALLTYPE *EndEvent )(
  1346. ID3D11DeviceContext2 * This);
  1347. END_INTERFACE
  1348. } ID3D11DeviceContext2Vtbl;
  1349. interface ID3D11DeviceContext2
  1350. {
  1351. CONST_VTBL struct ID3D11DeviceContext2Vtbl *lpVtbl;
  1352. };
  1353. #ifdef COBJMACROS
  1354. #define ID3D11DeviceContext2_QueryInterface(This,riid,ppvObject) \
  1355. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1356. #define ID3D11DeviceContext2_AddRef(This) \
  1357. ( (This)->lpVtbl -> AddRef(This) )
  1358. #define ID3D11DeviceContext2_Release(This) \
  1359. ( (This)->lpVtbl -> Release(This) )
  1360. #define ID3D11DeviceContext2_GetDevice(This,ppDevice) \
  1361. ( (This)->lpVtbl -> GetDevice(This,ppDevice) )
  1362. #define ID3D11DeviceContext2_GetPrivateData(This,guid,pDataSize,pData) \
  1363. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1364. #define ID3D11DeviceContext2_SetPrivateData(This,guid,DataSize,pData) \
  1365. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1366. #define ID3D11DeviceContext2_SetPrivateDataInterface(This,guid,pData) \
  1367. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1368. #define ID3D11DeviceContext2_VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1369. ( (This)->lpVtbl -> VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1370. #define ID3D11DeviceContext2_PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1371. ( (This)->lpVtbl -> PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1372. #define ID3D11DeviceContext2_PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) \
  1373. ( (This)->lpVtbl -> PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) )
  1374. #define ID3D11DeviceContext2_PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1375. ( (This)->lpVtbl -> PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1376. #define ID3D11DeviceContext2_VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) \
  1377. ( (This)->lpVtbl -> VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) )
  1378. #define ID3D11DeviceContext2_DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) \
  1379. ( (This)->lpVtbl -> DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) )
  1380. #define ID3D11DeviceContext2_Draw(This,VertexCount,StartVertexLocation) \
  1381. ( (This)->lpVtbl -> Draw(This,VertexCount,StartVertexLocation) )
  1382. #define ID3D11DeviceContext2_Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) \
  1383. ( (This)->lpVtbl -> Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) )
  1384. #define ID3D11DeviceContext2_Unmap(This,pResource,Subresource) \
  1385. ( (This)->lpVtbl -> Unmap(This,pResource,Subresource) )
  1386. #define ID3D11DeviceContext2_PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1387. ( (This)->lpVtbl -> PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1388. #define ID3D11DeviceContext2_IASetInputLayout(This,pInputLayout) \
  1389. ( (This)->lpVtbl -> IASetInputLayout(This,pInputLayout) )
  1390. #define ID3D11DeviceContext2_IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \
  1391. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) )
  1392. #define ID3D11DeviceContext2_IASetIndexBuffer(This,pIndexBuffer,Format,Offset) \
  1393. ( (This)->lpVtbl -> IASetIndexBuffer(This,pIndexBuffer,Format,Offset) )
  1394. #define ID3D11DeviceContext2_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  1395. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  1396. #define ID3D11DeviceContext2_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  1397. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  1398. #define ID3D11DeviceContext2_GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1399. ( (This)->lpVtbl -> GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1400. #define ID3D11DeviceContext2_GSSetShader(This,pShader,ppClassInstances,NumClassInstances) \
  1401. ( (This)->lpVtbl -> GSSetShader(This,pShader,ppClassInstances,NumClassInstances) )
  1402. #define ID3D11DeviceContext2_IASetPrimitiveTopology(This,Topology) \
  1403. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,Topology) )
  1404. #define ID3D11DeviceContext2_VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1405. ( (This)->lpVtbl -> VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1406. #define ID3D11DeviceContext2_VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1407. ( (This)->lpVtbl -> VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1408. #define ID3D11DeviceContext2_Begin(This,pAsync) \
  1409. ( (This)->lpVtbl -> Begin(This,pAsync) )
  1410. #define ID3D11DeviceContext2_End(This,pAsync) \
  1411. ( (This)->lpVtbl -> End(This,pAsync) )
  1412. #define ID3D11DeviceContext2_GetData(This,pAsync,pData,DataSize,GetDataFlags) \
  1413. ( (This)->lpVtbl -> GetData(This,pAsync,pData,DataSize,GetDataFlags) )
  1414. #define ID3D11DeviceContext2_SetPredication(This,pPredicate,PredicateValue) \
  1415. ( (This)->lpVtbl -> SetPredication(This,pPredicate,PredicateValue) )
  1416. #define ID3D11DeviceContext2_GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1417. ( (This)->lpVtbl -> GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1418. #define ID3D11DeviceContext2_GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1419. ( (This)->lpVtbl -> GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1420. #define ID3D11DeviceContext2_OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) \
  1421. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) )
  1422. #define ID3D11DeviceContext2_OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \
  1423. ( (This)->lpVtbl -> OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) )
  1424. #define ID3D11DeviceContext2_OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) \
  1425. ( (This)->lpVtbl -> OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) )
  1426. #define ID3D11DeviceContext2_OMSetDepthStencilState(This,pDepthStencilState,StencilRef) \
  1427. ( (This)->lpVtbl -> OMSetDepthStencilState(This,pDepthStencilState,StencilRef) )
  1428. #define ID3D11DeviceContext2_SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) \
  1429. ( (This)->lpVtbl -> SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) )
  1430. #define ID3D11DeviceContext2_DrawAuto(This) \
  1431. ( (This)->lpVtbl -> DrawAuto(This) )
  1432. #define ID3D11DeviceContext2_DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \
  1433. ( (This)->lpVtbl -> DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) )
  1434. #define ID3D11DeviceContext2_DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \
  1435. ( (This)->lpVtbl -> DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) )
  1436. #define ID3D11DeviceContext2_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  1437. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  1438. #define ID3D11DeviceContext2_DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \
  1439. ( (This)->lpVtbl -> DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) )
  1440. #define ID3D11DeviceContext2_RSSetState(This,pRasterizerState) \
  1441. ( (This)->lpVtbl -> RSSetState(This,pRasterizerState) )
  1442. #define ID3D11DeviceContext2_RSSetViewports(This,NumViewports,pViewports) \
  1443. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  1444. #define ID3D11DeviceContext2_RSSetScissorRects(This,NumRects,pRects) \
  1445. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  1446. #define ID3D11DeviceContext2_CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) \
  1447. ( (This)->lpVtbl -> CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) )
  1448. #define ID3D11DeviceContext2_CopyResource(This,pDstResource,pSrcResource) \
  1449. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  1450. #define ID3D11DeviceContext2_UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  1451. ( (This)->lpVtbl -> UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  1452. #define ID3D11DeviceContext2_CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) \
  1453. ( (This)->lpVtbl -> CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) )
  1454. #define ID3D11DeviceContext2_ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) \
  1455. ( (This)->lpVtbl -> ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) )
  1456. #define ID3D11DeviceContext2_ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) \
  1457. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) )
  1458. #define ID3D11DeviceContext2_ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) \
  1459. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) )
  1460. #define ID3D11DeviceContext2_ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) \
  1461. ( (This)->lpVtbl -> ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) )
  1462. #define ID3D11DeviceContext2_GenerateMips(This,pShaderResourceView) \
  1463. ( (This)->lpVtbl -> GenerateMips(This,pShaderResourceView) )
  1464. #define ID3D11DeviceContext2_SetResourceMinLOD(This,pResource,MinLOD) \
  1465. ( (This)->lpVtbl -> SetResourceMinLOD(This,pResource,MinLOD) )
  1466. #define ID3D11DeviceContext2_GetResourceMinLOD(This,pResource) \
  1467. ( (This)->lpVtbl -> GetResourceMinLOD(This,pResource) )
  1468. #define ID3D11DeviceContext2_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  1469. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  1470. #define ID3D11DeviceContext2_ExecuteCommandList(This,pCommandList,RestoreContextState) \
  1471. ( (This)->lpVtbl -> ExecuteCommandList(This,pCommandList,RestoreContextState) )
  1472. #define ID3D11DeviceContext2_HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1473. ( (This)->lpVtbl -> HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1474. #define ID3D11DeviceContext2_HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) \
  1475. ( (This)->lpVtbl -> HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) )
  1476. #define ID3D11DeviceContext2_HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1477. ( (This)->lpVtbl -> HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1478. #define ID3D11DeviceContext2_HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1479. ( (This)->lpVtbl -> HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1480. #define ID3D11DeviceContext2_DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1481. ( (This)->lpVtbl -> DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1482. #define ID3D11DeviceContext2_DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) \
  1483. ( (This)->lpVtbl -> DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) )
  1484. #define ID3D11DeviceContext2_DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1485. ( (This)->lpVtbl -> DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1486. #define ID3D11DeviceContext2_DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1487. ( (This)->lpVtbl -> DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1488. #define ID3D11DeviceContext2_CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1489. ( (This)->lpVtbl -> CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1490. #define ID3D11DeviceContext2_CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \
  1491. ( (This)->lpVtbl -> CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) )
  1492. #define ID3D11DeviceContext2_CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) \
  1493. ( (This)->lpVtbl -> CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) )
  1494. #define ID3D11DeviceContext2_CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1495. ( (This)->lpVtbl -> CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1496. #define ID3D11DeviceContext2_CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1497. ( (This)->lpVtbl -> CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1498. #define ID3D11DeviceContext2_VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1499. ( (This)->lpVtbl -> VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1500. #define ID3D11DeviceContext2_PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1501. ( (This)->lpVtbl -> PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1502. #define ID3D11DeviceContext2_PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) \
  1503. ( (This)->lpVtbl -> PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) )
  1504. #define ID3D11DeviceContext2_PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1505. ( (This)->lpVtbl -> PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1506. #define ID3D11DeviceContext2_VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) \
  1507. ( (This)->lpVtbl -> VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) )
  1508. #define ID3D11DeviceContext2_PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1509. ( (This)->lpVtbl -> PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1510. #define ID3D11DeviceContext2_IAGetInputLayout(This,ppInputLayout) \
  1511. ( (This)->lpVtbl -> IAGetInputLayout(This,ppInputLayout) )
  1512. #define ID3D11DeviceContext2_IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \
  1513. ( (This)->lpVtbl -> IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) )
  1514. #define ID3D11DeviceContext2_IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) \
  1515. ( (This)->lpVtbl -> IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) )
  1516. #define ID3D11DeviceContext2_GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1517. ( (This)->lpVtbl -> GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1518. #define ID3D11DeviceContext2_GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) \
  1519. ( (This)->lpVtbl -> GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) )
  1520. #define ID3D11DeviceContext2_IAGetPrimitiveTopology(This,pTopology) \
  1521. ( (This)->lpVtbl -> IAGetPrimitiveTopology(This,pTopology) )
  1522. #define ID3D11DeviceContext2_VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1523. ( (This)->lpVtbl -> VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1524. #define ID3D11DeviceContext2_VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1525. ( (This)->lpVtbl -> VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1526. #define ID3D11DeviceContext2_GetPredication(This,ppPredicate,pPredicateValue) \
  1527. ( (This)->lpVtbl -> GetPredication(This,ppPredicate,pPredicateValue) )
  1528. #define ID3D11DeviceContext2_GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1529. ( (This)->lpVtbl -> GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1530. #define ID3D11DeviceContext2_GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1531. ( (This)->lpVtbl -> GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1532. #define ID3D11DeviceContext2_OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) \
  1533. ( (This)->lpVtbl -> OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) )
  1534. #define ID3D11DeviceContext2_OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) \
  1535. ( (This)->lpVtbl -> OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) )
  1536. #define ID3D11DeviceContext2_OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) \
  1537. ( (This)->lpVtbl -> OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) )
  1538. #define ID3D11DeviceContext2_OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) \
  1539. ( (This)->lpVtbl -> OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) )
  1540. #define ID3D11DeviceContext2_SOGetTargets(This,NumBuffers,ppSOTargets) \
  1541. ( (This)->lpVtbl -> SOGetTargets(This,NumBuffers,ppSOTargets) )
  1542. #define ID3D11DeviceContext2_RSGetState(This,ppRasterizerState) \
  1543. ( (This)->lpVtbl -> RSGetState(This,ppRasterizerState) )
  1544. #define ID3D11DeviceContext2_RSGetViewports(This,pNumViewports,pViewports) \
  1545. ( (This)->lpVtbl -> RSGetViewports(This,pNumViewports,pViewports) )
  1546. #define ID3D11DeviceContext2_RSGetScissorRects(This,pNumRects,pRects) \
  1547. ( (This)->lpVtbl -> RSGetScissorRects(This,pNumRects,pRects) )
  1548. #define ID3D11DeviceContext2_HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1549. ( (This)->lpVtbl -> HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1550. #define ID3D11DeviceContext2_HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) \
  1551. ( (This)->lpVtbl -> HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) )
  1552. #define ID3D11DeviceContext2_HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1553. ( (This)->lpVtbl -> HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1554. #define ID3D11DeviceContext2_HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1555. ( (This)->lpVtbl -> HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1556. #define ID3D11DeviceContext2_DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1557. ( (This)->lpVtbl -> DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1558. #define ID3D11DeviceContext2_DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) \
  1559. ( (This)->lpVtbl -> DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) )
  1560. #define ID3D11DeviceContext2_DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1561. ( (This)->lpVtbl -> DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1562. #define ID3D11DeviceContext2_DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1563. ( (This)->lpVtbl -> DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1564. #define ID3D11DeviceContext2_CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1565. ( (This)->lpVtbl -> CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1566. #define ID3D11DeviceContext2_CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) \
  1567. ( (This)->lpVtbl -> CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) )
  1568. #define ID3D11DeviceContext2_CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) \
  1569. ( (This)->lpVtbl -> CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) )
  1570. #define ID3D11DeviceContext2_CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1571. ( (This)->lpVtbl -> CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1572. #define ID3D11DeviceContext2_CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1573. ( (This)->lpVtbl -> CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1574. #define ID3D11DeviceContext2_ClearState(This) \
  1575. ( (This)->lpVtbl -> ClearState(This) )
  1576. #define ID3D11DeviceContext2_Flush(This) \
  1577. ( (This)->lpVtbl -> Flush(This) )
  1578. #define ID3D11DeviceContext2_GetType(This) \
  1579. ( (This)->lpVtbl -> GetType(This) )
  1580. #define ID3D11DeviceContext2_GetContextFlags(This) \
  1581. ( (This)->lpVtbl -> GetContextFlags(This) )
  1582. #define ID3D11DeviceContext2_FinishCommandList(This,RestoreDeferredContextState,ppCommandList) \
  1583. ( (This)->lpVtbl -> FinishCommandList(This,RestoreDeferredContextState,ppCommandList) )
  1584. #define ID3D11DeviceContext2_CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) \
  1585. ( (This)->lpVtbl -> CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) )
  1586. #define ID3D11DeviceContext2_UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) \
  1587. ( (This)->lpVtbl -> UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) )
  1588. #define ID3D11DeviceContext2_DiscardResource(This,pResource) \
  1589. ( (This)->lpVtbl -> DiscardResource(This,pResource) )
  1590. #define ID3D11DeviceContext2_DiscardView(This,pResourceView) \
  1591. ( (This)->lpVtbl -> DiscardView(This,pResourceView) )
  1592. #define ID3D11DeviceContext2_VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1593. ( (This)->lpVtbl -> VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1594. #define ID3D11DeviceContext2_HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1595. ( (This)->lpVtbl -> HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1596. #define ID3D11DeviceContext2_DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1597. ( (This)->lpVtbl -> DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1598. #define ID3D11DeviceContext2_GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1599. ( (This)->lpVtbl -> GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1600. #define ID3D11DeviceContext2_PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1601. ( (This)->lpVtbl -> PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1602. #define ID3D11DeviceContext2_CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1603. ( (This)->lpVtbl -> CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1604. #define ID3D11DeviceContext2_VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1605. ( (This)->lpVtbl -> VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1606. #define ID3D11DeviceContext2_HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1607. ( (This)->lpVtbl -> HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1608. #define ID3D11DeviceContext2_DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1609. ( (This)->lpVtbl -> DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1610. #define ID3D11DeviceContext2_GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1611. ( (This)->lpVtbl -> GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1612. #define ID3D11DeviceContext2_PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1613. ( (This)->lpVtbl -> PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1614. #define ID3D11DeviceContext2_CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1615. ( (This)->lpVtbl -> CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1616. #define ID3D11DeviceContext2_SwapDeviceContextState(This,pState,ppPreviousState) \
  1617. ( (This)->lpVtbl -> SwapDeviceContextState(This,pState,ppPreviousState) )
  1618. #define ID3D11DeviceContext2_ClearView(This,pView,Color,pRect,NumRects) \
  1619. ( (This)->lpVtbl -> ClearView(This,pView,Color,pRect,NumRects) )
  1620. #define ID3D11DeviceContext2_DiscardView1(This,pResourceView,pRects,NumRects) \
  1621. ( (This)->lpVtbl -> DiscardView1(This,pResourceView,pRects,NumRects) )
  1622. #define ID3D11DeviceContext2_UpdateTileMappings(This,pTiledResource,NumTiledResourceRegions,pTiledResourceRegionStartCoordinates,pTiledResourceRegionSizes,pTilePool,NumRanges,pRangeFlags,pTilePoolStartOffsets,pRangeTileCounts,Flags) \
  1623. ( (This)->lpVtbl -> UpdateTileMappings(This,pTiledResource,NumTiledResourceRegions,pTiledResourceRegionStartCoordinates,pTiledResourceRegionSizes,pTilePool,NumRanges,pRangeFlags,pTilePoolStartOffsets,pRangeTileCounts,Flags) )
  1624. #define ID3D11DeviceContext2_CopyTileMappings(This,pDestTiledResource,pDestRegionStartCoordinate,pSourceTiledResource,pSourceRegionStartCoordinate,pTileRegionSize,Flags) \
  1625. ( (This)->lpVtbl -> CopyTileMappings(This,pDestTiledResource,pDestRegionStartCoordinate,pSourceTiledResource,pSourceRegionStartCoordinate,pTileRegionSize,Flags) )
  1626. #define ID3D11DeviceContext2_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  1627. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  1628. #define ID3D11DeviceContext2_UpdateTiles(This,pDestTiledResource,pDestTileRegionStartCoordinate,pDestTileRegionSize,pSourceTileData,Flags) \
  1629. ( (This)->lpVtbl -> UpdateTiles(This,pDestTiledResource,pDestTileRegionStartCoordinate,pDestTileRegionSize,pSourceTileData,Flags) )
  1630. #define ID3D11DeviceContext2_ResizeTilePool(This,pTilePool,NewSizeInBytes) \
  1631. ( (This)->lpVtbl -> ResizeTilePool(This,pTilePool,NewSizeInBytes) )
  1632. #define ID3D11DeviceContext2_TiledResourceBarrier(This,pTiledResourceOrViewAccessBeforeBarrier,pTiledResourceOrViewAccessAfterBarrier) \
  1633. ( (This)->lpVtbl -> TiledResourceBarrier(This,pTiledResourceOrViewAccessBeforeBarrier,pTiledResourceOrViewAccessAfterBarrier) )
  1634. #define ID3D11DeviceContext2_IsAnnotationEnabled(This) \
  1635. ( (This)->lpVtbl -> IsAnnotationEnabled(This) )
  1636. #define ID3D11DeviceContext2_SetMarkerInt(This,pLabel,Data) \
  1637. ( (This)->lpVtbl -> SetMarkerInt(This,pLabel,Data) )
  1638. #define ID3D11DeviceContext2_BeginEventInt(This,pLabel,Data) \
  1639. ( (This)->lpVtbl -> BeginEventInt(This,pLabel,Data) )
  1640. #define ID3D11DeviceContext2_EndEvent(This) \
  1641. ( (This)->lpVtbl -> EndEvent(This) )
  1642. #endif /* COBJMACROS */
  1643. #endif /* C style interface */
  1644. #endif /* __ID3D11DeviceContext2_INTERFACE_DEFINED__ */
  1645. #ifndef __ID3D11Device2_INTERFACE_DEFINED__
  1646. #define __ID3D11Device2_INTERFACE_DEFINED__
  1647. /* interface ID3D11Device2 */
  1648. /* [unique][local][object][uuid] */
  1649. EXTERN_C const IID IID_ID3D11Device2;
  1650. #if defined(__cplusplus) && !defined(CINTERFACE)
  1651. MIDL_INTERFACE("9d06dffa-d1e5-4d07-83a8-1bb123f2f841")
  1652. ID3D11Device2 : public ID3D11Device1
  1653. {
  1654. public:
  1655. virtual void STDMETHODCALLTYPE GetImmediateContext2(
  1656. /* [annotation] */
  1657. _Outptr_ ID3D11DeviceContext2 **ppImmediateContext) = 0;
  1658. virtual HRESULT STDMETHODCALLTYPE CreateDeferredContext2(
  1659. UINT ContextFlags,
  1660. /* [annotation] */
  1661. _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext) = 0;
  1662. virtual void STDMETHODCALLTYPE GetResourceTiling(
  1663. /* [annotation] */
  1664. _In_ ID3D11Resource *pTiledResource,
  1665. /* [annotation] */
  1666. _Out_opt_ UINT *pNumTilesForEntireResource,
  1667. /* [annotation] */
  1668. _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc,
  1669. /* [annotation] */
  1670. _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  1671. /* [annotation] */
  1672. _Inout_opt_ UINT *pNumSubresourceTilings,
  1673. /* [annotation] */
  1674. _In_ UINT FirstSubresourceTilingToGet,
  1675. /* [annotation] */
  1676. _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips) = 0;
  1677. virtual HRESULT STDMETHODCALLTYPE CheckMultisampleQualityLevels1(
  1678. /* [annotation] */
  1679. _In_ DXGI_FORMAT Format,
  1680. /* [annotation] */
  1681. _In_ UINT SampleCount,
  1682. /* [annotation] */
  1683. _In_ UINT Flags,
  1684. /* [annotation] */
  1685. _Out_ UINT *pNumQualityLevels) = 0;
  1686. };
  1687. #else /* C style interface */
  1688. typedef struct ID3D11Device2Vtbl
  1689. {
  1690. BEGIN_INTERFACE
  1691. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1692. ID3D11Device2 * This,
  1693. /* [in] */ REFIID riid,
  1694. /* [annotation][iid_is][out] */
  1695. _COM_Outptr_ void **ppvObject);
  1696. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1697. ID3D11Device2 * This);
  1698. ULONG ( STDMETHODCALLTYPE *Release )(
  1699. ID3D11Device2 * This);
  1700. HRESULT ( STDMETHODCALLTYPE *CreateBuffer )(
  1701. ID3D11Device2 * This,
  1702. /* [annotation] */
  1703. _In_ const D3D11_BUFFER_DESC *pDesc,
  1704. /* [annotation] */
  1705. _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData,
  1706. /* [annotation] */
  1707. _COM_Outptr_opt_ ID3D11Buffer **ppBuffer);
  1708. HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )(
  1709. ID3D11Device2 * This,
  1710. /* [annotation] */
  1711. _In_ const D3D11_TEXTURE1D_DESC *pDesc,
  1712. /* [annotation] */
  1713. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  1714. /* [annotation] */
  1715. _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D);
  1716. HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )(
  1717. ID3D11Device2 * This,
  1718. /* [annotation] */
  1719. _In_ const D3D11_TEXTURE2D_DESC *pDesc,
  1720. /* [annotation] */
  1721. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  1722. /* [annotation] */
  1723. _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D);
  1724. HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )(
  1725. ID3D11Device2 * This,
  1726. /* [annotation] */
  1727. _In_ const D3D11_TEXTURE3D_DESC *pDesc,
  1728. /* [annotation] */
  1729. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  1730. /* [annotation] */
  1731. _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D);
  1732. HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  1733. ID3D11Device2 * This,
  1734. /* [annotation] */
  1735. _In_ ID3D11Resource *pResource,
  1736. /* [annotation] */
  1737. _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
  1738. /* [annotation] */
  1739. _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView);
  1740. HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  1741. ID3D11Device2 * This,
  1742. /* [annotation] */
  1743. _In_ ID3D11Resource *pResource,
  1744. /* [annotation] */
  1745. _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  1746. /* [annotation] */
  1747. _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView);
  1748. HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  1749. ID3D11Device2 * This,
  1750. /* [annotation] */
  1751. _In_ ID3D11Resource *pResource,
  1752. /* [annotation] */
  1753. _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
  1754. /* [annotation] */
  1755. _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView);
  1756. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  1757. ID3D11Device2 * This,
  1758. /* [annotation] */
  1759. _In_ ID3D11Resource *pResource,
  1760. /* [annotation] */
  1761. _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
  1762. /* [annotation] */
  1763. _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView);
  1764. HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )(
  1765. ID3D11Device2 * This,
  1766. /* [annotation] */
  1767. _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
  1768. /* [annotation] */
  1769. _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements,
  1770. /* [annotation] */
  1771. _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature,
  1772. /* [annotation] */
  1773. _In_ SIZE_T BytecodeLength,
  1774. /* [annotation] */
  1775. _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout);
  1776. HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )(
  1777. ID3D11Device2 * This,
  1778. /* [annotation] */
  1779. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  1780. /* [annotation] */
  1781. _In_ SIZE_T BytecodeLength,
  1782. /* [annotation] */
  1783. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  1784. /* [annotation] */
  1785. _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader);
  1786. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )(
  1787. ID3D11Device2 * This,
  1788. /* [annotation] */
  1789. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  1790. /* [annotation] */
  1791. _In_ SIZE_T BytecodeLength,
  1792. /* [annotation] */
  1793. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  1794. /* [annotation] */
  1795. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  1796. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )(
  1797. ID3D11Device2 * This,
  1798. /* [annotation] */
  1799. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  1800. /* [annotation] */
  1801. _In_ SIZE_T BytecodeLength,
  1802. /* [annotation] */
  1803. _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
  1804. /* [annotation] */
  1805. _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries,
  1806. /* [annotation] */
  1807. _In_reads_opt_(NumStrides) const UINT *pBufferStrides,
  1808. /* [annotation] */
  1809. _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides,
  1810. /* [annotation] */
  1811. _In_ UINT RasterizedStream,
  1812. /* [annotation] */
  1813. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  1814. /* [annotation] */
  1815. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  1816. HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )(
  1817. ID3D11Device2 * This,
  1818. /* [annotation] */
  1819. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  1820. /* [annotation] */
  1821. _In_ SIZE_T BytecodeLength,
  1822. /* [annotation] */
  1823. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  1824. /* [annotation] */
  1825. _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader);
  1826. HRESULT ( STDMETHODCALLTYPE *CreateHullShader )(
  1827. ID3D11Device2 * This,
  1828. /* [annotation] */
  1829. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  1830. /* [annotation] */
  1831. _In_ SIZE_T BytecodeLength,
  1832. /* [annotation] */
  1833. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  1834. /* [annotation] */
  1835. _COM_Outptr_opt_ ID3D11HullShader **ppHullShader);
  1836. HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )(
  1837. ID3D11Device2 * This,
  1838. /* [annotation] */
  1839. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  1840. /* [annotation] */
  1841. _In_ SIZE_T BytecodeLength,
  1842. /* [annotation] */
  1843. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  1844. /* [annotation] */
  1845. _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader);
  1846. HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )(
  1847. ID3D11Device2 * This,
  1848. /* [annotation] */
  1849. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  1850. /* [annotation] */
  1851. _In_ SIZE_T BytecodeLength,
  1852. /* [annotation] */
  1853. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  1854. /* [annotation] */
  1855. _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader);
  1856. HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )(
  1857. ID3D11Device2 * This,
  1858. /* [annotation] */
  1859. _COM_Outptr_ ID3D11ClassLinkage **ppLinkage);
  1860. HRESULT ( STDMETHODCALLTYPE *CreateBlendState )(
  1861. ID3D11Device2 * This,
  1862. /* [annotation] */
  1863. _In_ const D3D11_BLEND_DESC *pBlendStateDesc,
  1864. /* [annotation] */
  1865. _COM_Outptr_opt_ ID3D11BlendState **ppBlendState);
  1866. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )(
  1867. ID3D11Device2 * This,
  1868. /* [annotation] */
  1869. _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
  1870. /* [annotation] */
  1871. _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState);
  1872. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )(
  1873. ID3D11Device2 * This,
  1874. /* [annotation] */
  1875. _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc,
  1876. /* [annotation] */
  1877. _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState);
  1878. HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )(
  1879. ID3D11Device2 * This,
  1880. /* [annotation] */
  1881. _In_ const D3D11_SAMPLER_DESC *pSamplerDesc,
  1882. /* [annotation] */
  1883. _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState);
  1884. HRESULT ( STDMETHODCALLTYPE *CreateQuery )(
  1885. ID3D11Device2 * This,
  1886. /* [annotation] */
  1887. _In_ const D3D11_QUERY_DESC *pQueryDesc,
  1888. /* [annotation] */
  1889. _COM_Outptr_opt_ ID3D11Query **ppQuery);
  1890. HRESULT ( STDMETHODCALLTYPE *CreatePredicate )(
  1891. ID3D11Device2 * This,
  1892. /* [annotation] */
  1893. _In_ const D3D11_QUERY_DESC *pPredicateDesc,
  1894. /* [annotation] */
  1895. _COM_Outptr_opt_ ID3D11Predicate **ppPredicate);
  1896. HRESULT ( STDMETHODCALLTYPE *CreateCounter )(
  1897. ID3D11Device2 * This,
  1898. /* [annotation] */
  1899. _In_ const D3D11_COUNTER_DESC *pCounterDesc,
  1900. /* [annotation] */
  1901. _COM_Outptr_opt_ ID3D11Counter **ppCounter);
  1902. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )(
  1903. ID3D11Device2 * This,
  1904. UINT ContextFlags,
  1905. /* [annotation] */
  1906. _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext);
  1907. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )(
  1908. ID3D11Device2 * This,
  1909. /* [annotation] */
  1910. _In_ HANDLE hResource,
  1911. /* [annotation] */
  1912. _In_ REFIID ReturnedInterface,
  1913. /* [annotation] */
  1914. _COM_Outptr_opt_ void **ppResource);
  1915. HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )(
  1916. ID3D11Device2 * This,
  1917. /* [annotation] */
  1918. _In_ DXGI_FORMAT Format,
  1919. /* [annotation] */
  1920. _Out_ UINT *pFormatSupport);
  1921. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )(
  1922. ID3D11Device2 * This,
  1923. /* [annotation] */
  1924. _In_ DXGI_FORMAT Format,
  1925. /* [annotation] */
  1926. _In_ UINT SampleCount,
  1927. /* [annotation] */
  1928. _Out_ UINT *pNumQualityLevels);
  1929. void ( STDMETHODCALLTYPE *CheckCounterInfo )(
  1930. ID3D11Device2 * This,
  1931. /* [annotation] */
  1932. _Out_ D3D11_COUNTER_INFO *pCounterInfo);
  1933. HRESULT ( STDMETHODCALLTYPE *CheckCounter )(
  1934. ID3D11Device2 * This,
  1935. /* [annotation] */
  1936. _In_ const D3D11_COUNTER_DESC *pDesc,
  1937. /* [annotation] */
  1938. _Out_ D3D11_COUNTER_TYPE *pType,
  1939. /* [annotation] */
  1940. _Out_ UINT *pActiveCounters,
  1941. /* [annotation] */
  1942. _Out_writes_opt_(*pNameLength) LPSTR szName,
  1943. /* [annotation] */
  1944. _Inout_opt_ UINT *pNameLength,
  1945. /* [annotation] */
  1946. _Out_writes_opt_(*pUnitsLength) LPSTR szUnits,
  1947. /* [annotation] */
  1948. _Inout_opt_ UINT *pUnitsLength,
  1949. /* [annotation] */
  1950. _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription,
  1951. /* [annotation] */
  1952. _Inout_opt_ UINT *pDescriptionLength);
  1953. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  1954. ID3D11Device2 * This,
  1955. D3D11_FEATURE Feature,
  1956. /* [annotation] */
  1957. _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  1958. UINT FeatureSupportDataSize);
  1959. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1960. ID3D11Device2 * This,
  1961. /* [annotation] */
  1962. _In_ REFGUID guid,
  1963. /* [annotation] */
  1964. _Inout_ UINT *pDataSize,
  1965. /* [annotation] */
  1966. _Out_writes_bytes_opt_(*pDataSize) void *pData);
  1967. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1968. ID3D11Device2 * This,
  1969. /* [annotation] */
  1970. _In_ REFGUID guid,
  1971. /* [annotation] */
  1972. _In_ UINT DataSize,
  1973. /* [annotation] */
  1974. _In_reads_bytes_opt_(DataSize) const void *pData);
  1975. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1976. ID3D11Device2 * This,
  1977. /* [annotation] */
  1978. _In_ REFGUID guid,
  1979. /* [annotation] */
  1980. _In_opt_ const IUnknown *pData);
  1981. D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )(
  1982. ID3D11Device2 * This);
  1983. UINT ( STDMETHODCALLTYPE *GetCreationFlags )(
  1984. ID3D11Device2 * This);
  1985. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  1986. ID3D11Device2 * This);
  1987. void ( STDMETHODCALLTYPE *GetImmediateContext )(
  1988. ID3D11Device2 * This,
  1989. /* [annotation] */
  1990. _Outptr_ ID3D11DeviceContext **ppImmediateContext);
  1991. HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )(
  1992. ID3D11Device2 * This,
  1993. UINT RaiseFlags);
  1994. UINT ( STDMETHODCALLTYPE *GetExceptionMode )(
  1995. ID3D11Device2 * This);
  1996. void ( STDMETHODCALLTYPE *GetImmediateContext1 )(
  1997. ID3D11Device2 * This,
  1998. /* [annotation] */
  1999. _Outptr_ ID3D11DeviceContext1 **ppImmediateContext);
  2000. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )(
  2001. ID3D11Device2 * This,
  2002. UINT ContextFlags,
  2003. /* [annotation] */
  2004. _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext);
  2005. HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )(
  2006. ID3D11Device2 * This,
  2007. /* [annotation] */
  2008. _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc,
  2009. /* [annotation] */
  2010. _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState);
  2011. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )(
  2012. ID3D11Device2 * This,
  2013. /* [annotation] */
  2014. _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc,
  2015. /* [annotation] */
  2016. _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState);
  2017. HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )(
  2018. ID3D11Device2 * This,
  2019. UINT Flags,
  2020. /* [annotation] */
  2021. _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels,
  2022. UINT FeatureLevels,
  2023. UINT SDKVersion,
  2024. REFIID EmulatedInterface,
  2025. /* [annotation] */
  2026. _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel,
  2027. /* [annotation] */
  2028. _Out_opt_ ID3DDeviceContextState **ppContextState);
  2029. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )(
  2030. ID3D11Device2 * This,
  2031. /* [annotation] */
  2032. _In_ HANDLE hResource,
  2033. /* [annotation] */
  2034. _In_ REFIID returnedInterface,
  2035. /* [annotation] */
  2036. _COM_Outptr_ void **ppResource);
  2037. HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )(
  2038. ID3D11Device2 * This,
  2039. /* [annotation] */
  2040. _In_ LPCWSTR lpName,
  2041. /* [annotation] */
  2042. _In_ DWORD dwDesiredAccess,
  2043. /* [annotation] */
  2044. _In_ REFIID returnedInterface,
  2045. /* [annotation] */
  2046. _COM_Outptr_ void **ppResource);
  2047. void ( STDMETHODCALLTYPE *GetImmediateContext2 )(
  2048. ID3D11Device2 * This,
  2049. /* [annotation] */
  2050. _Outptr_ ID3D11DeviceContext2 **ppImmediateContext);
  2051. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext2 )(
  2052. ID3D11Device2 * This,
  2053. UINT ContextFlags,
  2054. /* [annotation] */
  2055. _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext);
  2056. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  2057. ID3D11Device2 * This,
  2058. /* [annotation] */
  2059. _In_ ID3D11Resource *pTiledResource,
  2060. /* [annotation] */
  2061. _Out_opt_ UINT *pNumTilesForEntireResource,
  2062. /* [annotation] */
  2063. _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc,
  2064. /* [annotation] */
  2065. _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  2066. /* [annotation] */
  2067. _Inout_opt_ UINT *pNumSubresourceTilings,
  2068. /* [annotation] */
  2069. _In_ UINT FirstSubresourceTilingToGet,
  2070. /* [annotation] */
  2071. _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  2072. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels1 )(
  2073. ID3D11Device2 * This,
  2074. /* [annotation] */
  2075. _In_ DXGI_FORMAT Format,
  2076. /* [annotation] */
  2077. _In_ UINT SampleCount,
  2078. /* [annotation] */
  2079. _In_ UINT Flags,
  2080. /* [annotation] */
  2081. _Out_ UINT *pNumQualityLevels);
  2082. END_INTERFACE
  2083. } ID3D11Device2Vtbl;
  2084. interface ID3D11Device2
  2085. {
  2086. CONST_VTBL struct ID3D11Device2Vtbl *lpVtbl;
  2087. };
  2088. #ifdef COBJMACROS
  2089. #define ID3D11Device2_QueryInterface(This,riid,ppvObject) \
  2090. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  2091. #define ID3D11Device2_AddRef(This) \
  2092. ( (This)->lpVtbl -> AddRef(This) )
  2093. #define ID3D11Device2_Release(This) \
  2094. ( (This)->lpVtbl -> Release(This) )
  2095. #define ID3D11Device2_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \
  2096. ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) )
  2097. #define ID3D11Device2_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \
  2098. ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) )
  2099. #define ID3D11Device2_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \
  2100. ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) )
  2101. #define ID3D11Device2_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \
  2102. ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) )
  2103. #define ID3D11Device2_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \
  2104. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) )
  2105. #define ID3D11Device2_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \
  2106. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) )
  2107. #define ID3D11Device2_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \
  2108. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) )
  2109. #define ID3D11Device2_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \
  2110. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) )
  2111. #define ID3D11Device2_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \
  2112. ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) )
  2113. #define ID3D11Device2_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \
  2114. ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) )
  2115. #define ID3D11Device2_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \
  2116. ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) )
  2117. #define ID3D11Device2_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \
  2118. ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) )
  2119. #define ID3D11Device2_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \
  2120. ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) )
  2121. #define ID3D11Device2_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \
  2122. ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) )
  2123. #define ID3D11Device2_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \
  2124. ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) )
  2125. #define ID3D11Device2_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \
  2126. ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) )
  2127. #define ID3D11Device2_CreateClassLinkage(This,ppLinkage) \
  2128. ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) )
  2129. #define ID3D11Device2_CreateBlendState(This,pBlendStateDesc,ppBlendState) \
  2130. ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) )
  2131. #define ID3D11Device2_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \
  2132. ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) )
  2133. #define ID3D11Device2_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \
  2134. ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) )
  2135. #define ID3D11Device2_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \
  2136. ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) )
  2137. #define ID3D11Device2_CreateQuery(This,pQueryDesc,ppQuery) \
  2138. ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) )
  2139. #define ID3D11Device2_CreatePredicate(This,pPredicateDesc,ppPredicate) \
  2140. ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) )
  2141. #define ID3D11Device2_CreateCounter(This,pCounterDesc,ppCounter) \
  2142. ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) )
  2143. #define ID3D11Device2_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \
  2144. ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) )
  2145. #define ID3D11Device2_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \
  2146. ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) )
  2147. #define ID3D11Device2_CheckFormatSupport(This,Format,pFormatSupport) \
  2148. ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) )
  2149. #define ID3D11Device2_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \
  2150. ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) )
  2151. #define ID3D11Device2_CheckCounterInfo(This,pCounterInfo) \
  2152. ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) )
  2153. #define ID3D11Device2_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \
  2154. ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) )
  2155. #define ID3D11Device2_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  2156. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  2157. #define ID3D11Device2_GetPrivateData(This,guid,pDataSize,pData) \
  2158. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  2159. #define ID3D11Device2_SetPrivateData(This,guid,DataSize,pData) \
  2160. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  2161. #define ID3D11Device2_SetPrivateDataInterface(This,guid,pData) \
  2162. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  2163. #define ID3D11Device2_GetFeatureLevel(This) \
  2164. ( (This)->lpVtbl -> GetFeatureLevel(This) )
  2165. #define ID3D11Device2_GetCreationFlags(This) \
  2166. ( (This)->lpVtbl -> GetCreationFlags(This) )
  2167. #define ID3D11Device2_GetDeviceRemovedReason(This) \
  2168. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  2169. #define ID3D11Device2_GetImmediateContext(This,ppImmediateContext) \
  2170. ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) )
  2171. #define ID3D11Device2_SetExceptionMode(This,RaiseFlags) \
  2172. ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) )
  2173. #define ID3D11Device2_GetExceptionMode(This) \
  2174. ( (This)->lpVtbl -> GetExceptionMode(This) )
  2175. #define ID3D11Device2_GetImmediateContext1(This,ppImmediateContext) \
  2176. ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) )
  2177. #define ID3D11Device2_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \
  2178. ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) )
  2179. #define ID3D11Device2_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \
  2180. ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) )
  2181. #define ID3D11Device2_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \
  2182. ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) )
  2183. #define ID3D11Device2_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \
  2184. ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) )
  2185. #define ID3D11Device2_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \
  2186. ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) )
  2187. #define ID3D11Device2_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \
  2188. ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) )
  2189. #define ID3D11Device2_GetImmediateContext2(This,ppImmediateContext) \
  2190. ( (This)->lpVtbl -> GetImmediateContext2(This,ppImmediateContext) )
  2191. #define ID3D11Device2_CreateDeferredContext2(This,ContextFlags,ppDeferredContext) \
  2192. ( (This)->lpVtbl -> CreateDeferredContext2(This,ContextFlags,ppDeferredContext) )
  2193. #define ID3D11Device2_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  2194. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  2195. #define ID3D11Device2_CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) \
  2196. ( (This)->lpVtbl -> CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) )
  2197. #endif /* COBJMACROS */
  2198. #endif /* C style interface */
  2199. #endif /* __ID3D11Device2_INTERFACE_DEFINED__ */
  2200. /* interface __MIDL_itf_d3d11_2_0000_0002 */
  2201. /* [local] */
  2202. DEFINE_GUID(IID_ID3D11DeviceContext2,0x420d5b32,0xb90c,0x4da4,0xbe,0xf0,0x35,0x9f,0x6a,0x24,0xa8,0x3a);
  2203. DEFINE_GUID(IID_ID3D11Device2,0x9d06dffa,0xd1e5,0x4d07,0x83,0xa8,0x1b,0xb1,0x23,0xf2,0xf8,0x41);
  2204. extern RPC_IF_HANDLE __MIDL_itf_d3d11_2_0000_0002_v0_0_c_ifspec;
  2205. extern RPC_IF_HANDLE __MIDL_itf_d3d11_2_0000_0002_v0_0_s_ifspec;
  2206. /* Additional Prototypes for ALL interfaces */
  2207. /* end of Additional Prototypes */
  2208. #ifdef __cplusplus
  2209. }
  2210. #endif
  2211. #endif