2
0

d3d11_4.h 129 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097
  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_4_h__
  27. #define __d3d11_4_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __ID3D11Device4_FWD_DEFINED__
  33. #define __ID3D11Device4_FWD_DEFINED__
  34. typedef interface ID3D11Device4 ID3D11Device4;
  35. #endif /* __ID3D11Device4_FWD_DEFINED__ */
  36. #ifndef __ID3D11Device5_FWD_DEFINED__
  37. #define __ID3D11Device5_FWD_DEFINED__
  38. typedef interface ID3D11Device5 ID3D11Device5;
  39. #endif /* __ID3D11Device5_FWD_DEFINED__ */
  40. #ifndef __ID3D11Multithread_FWD_DEFINED__
  41. #define __ID3D11Multithread_FWD_DEFINED__
  42. typedef interface ID3D11Multithread ID3D11Multithread;
  43. #endif /* __ID3D11Multithread_FWD_DEFINED__ */
  44. #ifndef __ID3D11VideoContext2_FWD_DEFINED__
  45. #define __ID3D11VideoContext2_FWD_DEFINED__
  46. typedef interface ID3D11VideoContext2 ID3D11VideoContext2;
  47. #endif /* __ID3D11VideoContext2_FWD_DEFINED__ */
  48. /* header files for imported files */
  49. #include "oaidl.h"
  50. #include "ocidl.h"
  51. #include "dxgi1_5.h"
  52. #include "d3dcommon.h"
  53. #include "d3d11_3.h"
  54. #ifdef __cplusplus
  55. extern "C"{
  56. #endif
  57. /* interface __MIDL_itf_d3d11_4_0000_0000 */
  58. /* [local] */
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62. #include "d3d11_3.h" //
  63. #ifdef __cplusplus
  64. extern "C"{
  65. #endif
  66. #pragma region App Family
  67. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
  68. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0000_v0_0_c_ifspec;
  69. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0000_v0_0_s_ifspec;
  70. #ifndef __ID3D11Device4_INTERFACE_DEFINED__
  71. #define __ID3D11Device4_INTERFACE_DEFINED__
  72. /* interface ID3D11Device4 */
  73. /* [unique][local][object][uuid] */
  74. EXTERN_C const IID IID_ID3D11Device4;
  75. #if defined(__cplusplus) && !defined(CINTERFACE)
  76. MIDL_INTERFACE("8992ab71-02e6-4b8d-ba48-b056dcda42c4")
  77. ID3D11Device4 : public ID3D11Device3
  78. {
  79. public:
  80. virtual HRESULT STDMETHODCALLTYPE RegisterDeviceRemovedEvent(
  81. /* [annotation] */
  82. _In_ HANDLE hEvent,
  83. /* [annotation] */
  84. _Out_ DWORD *pdwCookie) = 0;
  85. virtual void STDMETHODCALLTYPE UnregisterDeviceRemoved(
  86. /* [annotation] */
  87. _In_ DWORD dwCookie) = 0;
  88. };
  89. #else /* C style interface */
  90. typedef struct ID3D11Device4Vtbl
  91. {
  92. BEGIN_INTERFACE
  93. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  94. ID3D11Device4 * This,
  95. /* [in] */ REFIID riid,
  96. /* [annotation][iid_is][out] */
  97. _COM_Outptr_ void **ppvObject);
  98. ULONG ( STDMETHODCALLTYPE *AddRef )(
  99. ID3D11Device4 * This);
  100. ULONG ( STDMETHODCALLTYPE *Release )(
  101. ID3D11Device4 * This);
  102. HRESULT ( STDMETHODCALLTYPE *CreateBuffer )(
  103. ID3D11Device4 * This,
  104. /* [annotation] */
  105. _In_ const D3D11_BUFFER_DESC *pDesc,
  106. /* [annotation] */
  107. _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData,
  108. /* [annotation] */
  109. _COM_Outptr_opt_ ID3D11Buffer **ppBuffer);
  110. HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )(
  111. ID3D11Device4 * This,
  112. /* [annotation] */
  113. _In_ const D3D11_TEXTURE1D_DESC *pDesc,
  114. /* [annotation] */
  115. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  116. /* [annotation] */
  117. _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D);
  118. HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )(
  119. ID3D11Device4 * This,
  120. /* [annotation] */
  121. _In_ const D3D11_TEXTURE2D_DESC *pDesc,
  122. /* [annotation] */
  123. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  124. /* [annotation] */
  125. _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D);
  126. HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )(
  127. ID3D11Device4 * This,
  128. /* [annotation] */
  129. _In_ const D3D11_TEXTURE3D_DESC *pDesc,
  130. /* [annotation] */
  131. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  132. /* [annotation] */
  133. _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D);
  134. HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  135. ID3D11Device4 * This,
  136. /* [annotation] */
  137. _In_ ID3D11Resource *pResource,
  138. /* [annotation] */
  139. _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
  140. /* [annotation] */
  141. _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView);
  142. HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  143. ID3D11Device4 * This,
  144. /* [annotation] */
  145. _In_ ID3D11Resource *pResource,
  146. /* [annotation] */
  147. _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  148. /* [annotation] */
  149. _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView);
  150. HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  151. ID3D11Device4 * This,
  152. /* [annotation] */
  153. _In_ ID3D11Resource *pResource,
  154. /* [annotation] */
  155. _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
  156. /* [annotation] */
  157. _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView);
  158. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  159. ID3D11Device4 * This,
  160. /* [annotation] */
  161. _In_ ID3D11Resource *pResource,
  162. /* [annotation] */
  163. _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
  164. /* [annotation] */
  165. _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView);
  166. HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )(
  167. ID3D11Device4 * This,
  168. /* [annotation] */
  169. _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
  170. /* [annotation] */
  171. _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements,
  172. /* [annotation] */
  173. _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature,
  174. /* [annotation] */
  175. _In_ SIZE_T BytecodeLength,
  176. /* [annotation] */
  177. _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout);
  178. HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )(
  179. ID3D11Device4 * This,
  180. /* [annotation] */
  181. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  182. /* [annotation] */
  183. _In_ SIZE_T BytecodeLength,
  184. /* [annotation] */
  185. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  186. /* [annotation] */
  187. _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader);
  188. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )(
  189. ID3D11Device4 * This,
  190. /* [annotation] */
  191. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  192. /* [annotation] */
  193. _In_ SIZE_T BytecodeLength,
  194. /* [annotation] */
  195. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  196. /* [annotation] */
  197. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  198. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )(
  199. ID3D11Device4 * This,
  200. /* [annotation] */
  201. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  202. /* [annotation] */
  203. _In_ SIZE_T BytecodeLength,
  204. /* [annotation] */
  205. _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
  206. /* [annotation] */
  207. _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries,
  208. /* [annotation] */
  209. _In_reads_opt_(NumStrides) const UINT *pBufferStrides,
  210. /* [annotation] */
  211. _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides,
  212. /* [annotation] */
  213. _In_ UINT RasterizedStream,
  214. /* [annotation] */
  215. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  216. /* [annotation] */
  217. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  218. HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )(
  219. ID3D11Device4 * This,
  220. /* [annotation] */
  221. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  222. /* [annotation] */
  223. _In_ SIZE_T BytecodeLength,
  224. /* [annotation] */
  225. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  226. /* [annotation] */
  227. _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader);
  228. HRESULT ( STDMETHODCALLTYPE *CreateHullShader )(
  229. ID3D11Device4 * This,
  230. /* [annotation] */
  231. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  232. /* [annotation] */
  233. _In_ SIZE_T BytecodeLength,
  234. /* [annotation] */
  235. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  236. /* [annotation] */
  237. _COM_Outptr_opt_ ID3D11HullShader **ppHullShader);
  238. HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )(
  239. ID3D11Device4 * This,
  240. /* [annotation] */
  241. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  242. /* [annotation] */
  243. _In_ SIZE_T BytecodeLength,
  244. /* [annotation] */
  245. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  246. /* [annotation] */
  247. _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader);
  248. HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )(
  249. ID3D11Device4 * This,
  250. /* [annotation] */
  251. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  252. /* [annotation] */
  253. _In_ SIZE_T BytecodeLength,
  254. /* [annotation] */
  255. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  256. /* [annotation] */
  257. _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader);
  258. HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )(
  259. ID3D11Device4 * This,
  260. /* [annotation] */
  261. _COM_Outptr_ ID3D11ClassLinkage **ppLinkage);
  262. HRESULT ( STDMETHODCALLTYPE *CreateBlendState )(
  263. ID3D11Device4 * This,
  264. /* [annotation] */
  265. _In_ const D3D11_BLEND_DESC *pBlendStateDesc,
  266. /* [annotation] */
  267. _COM_Outptr_opt_ ID3D11BlendState **ppBlendState);
  268. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )(
  269. ID3D11Device4 * This,
  270. /* [annotation] */
  271. _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
  272. /* [annotation] */
  273. _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState);
  274. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )(
  275. ID3D11Device4 * This,
  276. /* [annotation] */
  277. _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc,
  278. /* [annotation] */
  279. _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState);
  280. HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )(
  281. ID3D11Device4 * This,
  282. /* [annotation] */
  283. _In_ const D3D11_SAMPLER_DESC *pSamplerDesc,
  284. /* [annotation] */
  285. _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState);
  286. HRESULT ( STDMETHODCALLTYPE *CreateQuery )(
  287. ID3D11Device4 * This,
  288. /* [annotation] */
  289. _In_ const D3D11_QUERY_DESC *pQueryDesc,
  290. /* [annotation] */
  291. _COM_Outptr_opt_ ID3D11Query **ppQuery);
  292. HRESULT ( STDMETHODCALLTYPE *CreatePredicate )(
  293. ID3D11Device4 * This,
  294. /* [annotation] */
  295. _In_ const D3D11_QUERY_DESC *pPredicateDesc,
  296. /* [annotation] */
  297. _COM_Outptr_opt_ ID3D11Predicate **ppPredicate);
  298. HRESULT ( STDMETHODCALLTYPE *CreateCounter )(
  299. ID3D11Device4 * This,
  300. /* [annotation] */
  301. _In_ const D3D11_COUNTER_DESC *pCounterDesc,
  302. /* [annotation] */
  303. _COM_Outptr_opt_ ID3D11Counter **ppCounter);
  304. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )(
  305. ID3D11Device4 * This,
  306. UINT ContextFlags,
  307. /* [annotation] */
  308. _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext);
  309. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )(
  310. ID3D11Device4 * This,
  311. /* [annotation] */
  312. _In_ HANDLE hResource,
  313. /* [annotation] */
  314. _In_ REFIID ReturnedInterface,
  315. /* [annotation] */
  316. _COM_Outptr_opt_ void **ppResource);
  317. HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )(
  318. ID3D11Device4 * This,
  319. /* [annotation] */
  320. _In_ DXGI_FORMAT Format,
  321. /* [annotation] */
  322. _Out_ UINT *pFormatSupport);
  323. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )(
  324. ID3D11Device4 * This,
  325. /* [annotation] */
  326. _In_ DXGI_FORMAT Format,
  327. /* [annotation] */
  328. _In_ UINT SampleCount,
  329. /* [annotation] */
  330. _Out_ UINT *pNumQualityLevels);
  331. void ( STDMETHODCALLTYPE *CheckCounterInfo )(
  332. ID3D11Device4 * This,
  333. /* [annotation] */
  334. _Out_ D3D11_COUNTER_INFO *pCounterInfo);
  335. HRESULT ( STDMETHODCALLTYPE *CheckCounter )(
  336. ID3D11Device4 * This,
  337. /* [annotation] */
  338. _In_ const D3D11_COUNTER_DESC *pDesc,
  339. /* [annotation] */
  340. _Out_ D3D11_COUNTER_TYPE *pType,
  341. /* [annotation] */
  342. _Out_ UINT *pActiveCounters,
  343. /* [annotation] */
  344. _Out_writes_opt_(*pNameLength) LPSTR szName,
  345. /* [annotation] */
  346. _Inout_opt_ UINT *pNameLength,
  347. /* [annotation] */
  348. _Out_writes_opt_(*pUnitsLength) LPSTR szUnits,
  349. /* [annotation] */
  350. _Inout_opt_ UINT *pUnitsLength,
  351. /* [annotation] */
  352. _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription,
  353. /* [annotation] */
  354. _Inout_opt_ UINT *pDescriptionLength);
  355. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  356. ID3D11Device4 * This,
  357. D3D11_FEATURE Feature,
  358. /* [annotation] */
  359. _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  360. UINT FeatureSupportDataSize);
  361. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  362. ID3D11Device4 * This,
  363. /* [annotation] */
  364. _In_ REFGUID guid,
  365. /* [annotation] */
  366. _Inout_ UINT *pDataSize,
  367. /* [annotation] */
  368. _Out_writes_bytes_opt_(*pDataSize) void *pData);
  369. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  370. ID3D11Device4 * This,
  371. /* [annotation] */
  372. _In_ REFGUID guid,
  373. /* [annotation] */
  374. _In_ UINT DataSize,
  375. /* [annotation] */
  376. _In_reads_bytes_opt_(DataSize) const void *pData);
  377. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  378. ID3D11Device4 * This,
  379. /* [annotation] */
  380. _In_ REFGUID guid,
  381. /* [annotation] */
  382. _In_opt_ const IUnknown *pData);
  383. D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )(
  384. ID3D11Device4 * This);
  385. UINT ( STDMETHODCALLTYPE *GetCreationFlags )(
  386. ID3D11Device4 * This);
  387. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  388. ID3D11Device4 * This);
  389. void ( STDMETHODCALLTYPE *GetImmediateContext )(
  390. ID3D11Device4 * This,
  391. /* [annotation] */
  392. _Outptr_ ID3D11DeviceContext **ppImmediateContext);
  393. HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )(
  394. ID3D11Device4 * This,
  395. UINT RaiseFlags);
  396. UINT ( STDMETHODCALLTYPE *GetExceptionMode )(
  397. ID3D11Device4 * This);
  398. void ( STDMETHODCALLTYPE *GetImmediateContext1 )(
  399. ID3D11Device4 * This,
  400. /* [annotation] */
  401. _Outptr_ ID3D11DeviceContext1 **ppImmediateContext);
  402. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )(
  403. ID3D11Device4 * This,
  404. UINT ContextFlags,
  405. /* [annotation] */
  406. _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext);
  407. HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )(
  408. ID3D11Device4 * This,
  409. /* [annotation] */
  410. _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc,
  411. /* [annotation] */
  412. _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState);
  413. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )(
  414. ID3D11Device4 * This,
  415. /* [annotation] */
  416. _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc,
  417. /* [annotation] */
  418. _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState);
  419. HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )(
  420. ID3D11Device4 * This,
  421. UINT Flags,
  422. /* [annotation] */
  423. _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels,
  424. UINT FeatureLevels,
  425. UINT SDKVersion,
  426. REFIID EmulatedInterface,
  427. /* [annotation] */
  428. _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel,
  429. /* [annotation] */
  430. _Out_opt_ ID3DDeviceContextState **ppContextState);
  431. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )(
  432. ID3D11Device4 * This,
  433. /* [annotation] */
  434. _In_ HANDLE hResource,
  435. /* [annotation] */
  436. _In_ REFIID returnedInterface,
  437. /* [annotation] */
  438. _COM_Outptr_ void **ppResource);
  439. HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )(
  440. ID3D11Device4 * This,
  441. /* [annotation] */
  442. _In_ LPCWSTR lpName,
  443. /* [annotation] */
  444. _In_ DWORD dwDesiredAccess,
  445. /* [annotation] */
  446. _In_ REFIID returnedInterface,
  447. /* [annotation] */
  448. _COM_Outptr_ void **ppResource);
  449. void ( STDMETHODCALLTYPE *GetImmediateContext2 )(
  450. ID3D11Device4 * This,
  451. /* [annotation] */
  452. _Outptr_ ID3D11DeviceContext2 **ppImmediateContext);
  453. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext2 )(
  454. ID3D11Device4 * This,
  455. UINT ContextFlags,
  456. /* [annotation] */
  457. _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext);
  458. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  459. ID3D11Device4 * This,
  460. /* [annotation] */
  461. _In_ ID3D11Resource *pTiledResource,
  462. /* [annotation] */
  463. _Out_opt_ UINT *pNumTilesForEntireResource,
  464. /* [annotation] */
  465. _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc,
  466. /* [annotation] */
  467. _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  468. /* [annotation] */
  469. _Inout_opt_ UINT *pNumSubresourceTilings,
  470. /* [annotation] */
  471. _In_ UINT FirstSubresourceTilingToGet,
  472. /* [annotation] */
  473. _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  474. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels1 )(
  475. ID3D11Device4 * This,
  476. /* [annotation] */
  477. _In_ DXGI_FORMAT Format,
  478. /* [annotation] */
  479. _In_ UINT SampleCount,
  480. /* [annotation] */
  481. _In_ UINT Flags,
  482. /* [annotation] */
  483. _Out_ UINT *pNumQualityLevels);
  484. HRESULT ( STDMETHODCALLTYPE *CreateTexture2D1 )(
  485. ID3D11Device4 * This,
  486. /* [annotation] */
  487. _In_ const D3D11_TEXTURE2D_DESC1 *pDesc1,
  488. /* [annotation] */
  489. _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels * pDesc1->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  490. /* [annotation] */
  491. _COM_Outptr_opt_ ID3D11Texture2D1 **ppTexture2D);
  492. HRESULT ( STDMETHODCALLTYPE *CreateTexture3D1 )(
  493. ID3D11Device4 * This,
  494. /* [annotation] */
  495. _In_ const D3D11_TEXTURE3D_DESC1 *pDesc1,
  496. /* [annotation] */
  497. _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  498. /* [annotation] */
  499. _COM_Outptr_opt_ ID3D11Texture3D1 **ppTexture3D);
  500. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState2 )(
  501. ID3D11Device4 * This,
  502. /* [annotation] */
  503. _In_ const D3D11_RASTERIZER_DESC2 *pRasterizerDesc,
  504. /* [annotation] */
  505. _COM_Outptr_opt_ ID3D11RasterizerState2 **ppRasterizerState);
  506. HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView1 )(
  507. ID3D11Device4 * This,
  508. /* [annotation] */
  509. _In_ ID3D11Resource *pResource,
  510. /* [annotation] */
  511. _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC1 *pDesc1,
  512. /* [annotation] */
  513. _COM_Outptr_opt_ ID3D11ShaderResourceView1 **ppSRView1);
  514. HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView1 )(
  515. ID3D11Device4 * This,
  516. /* [annotation] */
  517. _In_ ID3D11Resource *pResource,
  518. /* [annotation] */
  519. _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC1 *pDesc1,
  520. /* [annotation] */
  521. _COM_Outptr_opt_ ID3D11UnorderedAccessView1 **ppUAView1);
  522. HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView1 )(
  523. ID3D11Device4 * This,
  524. /* [annotation] */
  525. _In_ ID3D11Resource *pResource,
  526. /* [annotation] */
  527. _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC1 *pDesc1,
  528. /* [annotation] */
  529. _COM_Outptr_opt_ ID3D11RenderTargetView1 **ppRTView1);
  530. HRESULT ( STDMETHODCALLTYPE *CreateQuery1 )(
  531. ID3D11Device4 * This,
  532. /* [annotation] */
  533. _In_ const D3D11_QUERY_DESC1 *pQueryDesc1,
  534. /* [annotation] */
  535. _COM_Outptr_opt_ ID3D11Query1 **ppQuery1);
  536. void ( STDMETHODCALLTYPE *GetImmediateContext3 )(
  537. ID3D11Device4 * This,
  538. /* [annotation] */
  539. _Outptr_ ID3D11DeviceContext3 **ppImmediateContext);
  540. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext3 )(
  541. ID3D11Device4 * This,
  542. UINT ContextFlags,
  543. /* [annotation] */
  544. _COM_Outptr_opt_ ID3D11DeviceContext3 **ppDeferredContext);
  545. void ( STDMETHODCALLTYPE *WriteToSubresource )(
  546. ID3D11Device4 * This,
  547. /* [annotation] */
  548. _In_ ID3D11Resource *pDstResource,
  549. /* [annotation] */
  550. _In_ UINT DstSubresource,
  551. /* [annotation] */
  552. _In_opt_ const D3D11_BOX *pDstBox,
  553. /* [annotation] */
  554. _In_ const void *pSrcData,
  555. /* [annotation] */
  556. _In_ UINT SrcRowPitch,
  557. /* [annotation] */
  558. _In_ UINT SrcDepthPitch);
  559. void ( STDMETHODCALLTYPE *ReadFromSubresource )(
  560. ID3D11Device4 * This,
  561. /* [annotation] */
  562. _Out_ void *pDstData,
  563. /* [annotation] */
  564. _In_ UINT DstRowPitch,
  565. /* [annotation] */
  566. _In_ UINT DstDepthPitch,
  567. /* [annotation] */
  568. _In_ ID3D11Resource *pSrcResource,
  569. /* [annotation] */
  570. _In_ UINT SrcSubresource,
  571. /* [annotation] */
  572. _In_opt_ const D3D11_BOX *pSrcBox);
  573. HRESULT ( STDMETHODCALLTYPE *RegisterDeviceRemovedEvent )(
  574. ID3D11Device4 * This,
  575. /* [annotation] */
  576. _In_ HANDLE hEvent,
  577. /* [annotation] */
  578. _Out_ DWORD *pdwCookie);
  579. void ( STDMETHODCALLTYPE *UnregisterDeviceRemoved )(
  580. ID3D11Device4 * This,
  581. /* [annotation] */
  582. _In_ DWORD dwCookie);
  583. END_INTERFACE
  584. } ID3D11Device4Vtbl;
  585. interface ID3D11Device4
  586. {
  587. CONST_VTBL struct ID3D11Device4Vtbl *lpVtbl;
  588. };
  589. #ifdef COBJMACROS
  590. #define ID3D11Device4_QueryInterface(This,riid,ppvObject) \
  591. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  592. #define ID3D11Device4_AddRef(This) \
  593. ( (This)->lpVtbl -> AddRef(This) )
  594. #define ID3D11Device4_Release(This) \
  595. ( (This)->lpVtbl -> Release(This) )
  596. #define ID3D11Device4_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \
  597. ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) )
  598. #define ID3D11Device4_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \
  599. ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) )
  600. #define ID3D11Device4_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \
  601. ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) )
  602. #define ID3D11Device4_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \
  603. ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) )
  604. #define ID3D11Device4_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \
  605. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) )
  606. #define ID3D11Device4_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \
  607. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) )
  608. #define ID3D11Device4_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \
  609. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) )
  610. #define ID3D11Device4_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \
  611. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) )
  612. #define ID3D11Device4_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \
  613. ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) )
  614. #define ID3D11Device4_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \
  615. ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) )
  616. #define ID3D11Device4_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \
  617. ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) )
  618. #define ID3D11Device4_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \
  619. ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) )
  620. #define ID3D11Device4_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \
  621. ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) )
  622. #define ID3D11Device4_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \
  623. ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) )
  624. #define ID3D11Device4_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \
  625. ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) )
  626. #define ID3D11Device4_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \
  627. ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) )
  628. #define ID3D11Device4_CreateClassLinkage(This,ppLinkage) \
  629. ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) )
  630. #define ID3D11Device4_CreateBlendState(This,pBlendStateDesc,ppBlendState) \
  631. ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) )
  632. #define ID3D11Device4_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \
  633. ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) )
  634. #define ID3D11Device4_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \
  635. ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) )
  636. #define ID3D11Device4_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \
  637. ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) )
  638. #define ID3D11Device4_CreateQuery(This,pQueryDesc,ppQuery) \
  639. ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) )
  640. #define ID3D11Device4_CreatePredicate(This,pPredicateDesc,ppPredicate) \
  641. ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) )
  642. #define ID3D11Device4_CreateCounter(This,pCounterDesc,ppCounter) \
  643. ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) )
  644. #define ID3D11Device4_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \
  645. ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) )
  646. #define ID3D11Device4_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \
  647. ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) )
  648. #define ID3D11Device4_CheckFormatSupport(This,Format,pFormatSupport) \
  649. ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) )
  650. #define ID3D11Device4_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \
  651. ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) )
  652. #define ID3D11Device4_CheckCounterInfo(This,pCounterInfo) \
  653. ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) )
  654. #define ID3D11Device4_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \
  655. ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) )
  656. #define ID3D11Device4_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  657. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  658. #define ID3D11Device4_GetPrivateData(This,guid,pDataSize,pData) \
  659. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  660. #define ID3D11Device4_SetPrivateData(This,guid,DataSize,pData) \
  661. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  662. #define ID3D11Device4_SetPrivateDataInterface(This,guid,pData) \
  663. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  664. #define ID3D11Device4_GetFeatureLevel(This) \
  665. ( (This)->lpVtbl -> GetFeatureLevel(This) )
  666. #define ID3D11Device4_GetCreationFlags(This) \
  667. ( (This)->lpVtbl -> GetCreationFlags(This) )
  668. #define ID3D11Device4_GetDeviceRemovedReason(This) \
  669. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  670. #define ID3D11Device4_GetImmediateContext(This,ppImmediateContext) \
  671. ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) )
  672. #define ID3D11Device4_SetExceptionMode(This,RaiseFlags) \
  673. ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) )
  674. #define ID3D11Device4_GetExceptionMode(This) \
  675. ( (This)->lpVtbl -> GetExceptionMode(This) )
  676. #define ID3D11Device4_GetImmediateContext1(This,ppImmediateContext) \
  677. ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) )
  678. #define ID3D11Device4_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \
  679. ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) )
  680. #define ID3D11Device4_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \
  681. ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) )
  682. #define ID3D11Device4_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \
  683. ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) )
  684. #define ID3D11Device4_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \
  685. ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) )
  686. #define ID3D11Device4_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \
  687. ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) )
  688. #define ID3D11Device4_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \
  689. ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) )
  690. #define ID3D11Device4_GetImmediateContext2(This,ppImmediateContext) \
  691. ( (This)->lpVtbl -> GetImmediateContext2(This,ppImmediateContext) )
  692. #define ID3D11Device4_CreateDeferredContext2(This,ContextFlags,ppDeferredContext) \
  693. ( (This)->lpVtbl -> CreateDeferredContext2(This,ContextFlags,ppDeferredContext) )
  694. #define ID3D11Device4_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  695. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  696. #define ID3D11Device4_CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) \
  697. ( (This)->lpVtbl -> CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) )
  698. #define ID3D11Device4_CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) \
  699. ( (This)->lpVtbl -> CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) )
  700. #define ID3D11Device4_CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) \
  701. ( (This)->lpVtbl -> CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) )
  702. #define ID3D11Device4_CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) \
  703. ( (This)->lpVtbl -> CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) )
  704. #define ID3D11Device4_CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) \
  705. ( (This)->lpVtbl -> CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) )
  706. #define ID3D11Device4_CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) \
  707. ( (This)->lpVtbl -> CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) )
  708. #define ID3D11Device4_CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) \
  709. ( (This)->lpVtbl -> CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) )
  710. #define ID3D11Device4_CreateQuery1(This,pQueryDesc1,ppQuery1) \
  711. ( (This)->lpVtbl -> CreateQuery1(This,pQueryDesc1,ppQuery1) )
  712. #define ID3D11Device4_GetImmediateContext3(This,ppImmediateContext) \
  713. ( (This)->lpVtbl -> GetImmediateContext3(This,ppImmediateContext) )
  714. #define ID3D11Device4_CreateDeferredContext3(This,ContextFlags,ppDeferredContext) \
  715. ( (This)->lpVtbl -> CreateDeferredContext3(This,ContextFlags,ppDeferredContext) )
  716. #define ID3D11Device4_WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  717. ( (This)->lpVtbl -> WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  718. #define ID3D11Device4_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) \
  719. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) )
  720. #define ID3D11Device4_RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) \
  721. ( (This)->lpVtbl -> RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) )
  722. #define ID3D11Device4_UnregisterDeviceRemoved(This,dwCookie) \
  723. ( (This)->lpVtbl -> UnregisterDeviceRemoved(This,dwCookie) )
  724. #endif /* COBJMACROS */
  725. #endif /* C style interface */
  726. #endif /* __ID3D11Device4_INTERFACE_DEFINED__ */
  727. #ifndef __ID3D11Device5_INTERFACE_DEFINED__
  728. #define __ID3D11Device5_INTERFACE_DEFINED__
  729. /* interface ID3D11Device5 */
  730. /* [unique][local][object][uuid] */
  731. EXTERN_C const IID IID_ID3D11Device5;
  732. #if defined(__cplusplus) && !defined(CINTERFACE)
  733. MIDL_INTERFACE("8ffde202-a0e7-45df-9e01-e837801b5ea0")
  734. ID3D11Device5 : public ID3D11Device4
  735. {
  736. public:
  737. virtual HRESULT STDMETHODCALLTYPE OpenSharedFence(
  738. /* [annotation] */
  739. _In_ HANDLE hFence,
  740. /* [annotation] */
  741. _In_ REFIID ReturnedInterface,
  742. /* [annotation] */
  743. _COM_Outptr_opt_ void **ppFence) = 0;
  744. virtual HRESULT STDMETHODCALLTYPE CreateFence(
  745. /* [annotation] */
  746. _In_ UINT64 InitialValue,
  747. /* [annotation] */
  748. _In_ D3D11_FENCE_FLAG Flags,
  749. /* [annotation] */
  750. _In_ REFIID ReturnedInterface,
  751. /* [annotation] */
  752. _COM_Outptr_opt_ void **ppFence) = 0;
  753. };
  754. #else /* C style interface */
  755. typedef struct ID3D11Device5Vtbl
  756. {
  757. BEGIN_INTERFACE
  758. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  759. ID3D11Device5 * This,
  760. /* [in] */ REFIID riid,
  761. /* [annotation][iid_is][out] */
  762. _COM_Outptr_ void **ppvObject);
  763. ULONG ( STDMETHODCALLTYPE *AddRef )(
  764. ID3D11Device5 * This);
  765. ULONG ( STDMETHODCALLTYPE *Release )(
  766. ID3D11Device5 * This);
  767. HRESULT ( STDMETHODCALLTYPE *CreateBuffer )(
  768. ID3D11Device5 * This,
  769. /* [annotation] */
  770. _In_ const D3D11_BUFFER_DESC *pDesc,
  771. /* [annotation] */
  772. _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData,
  773. /* [annotation] */
  774. _COM_Outptr_opt_ ID3D11Buffer **ppBuffer);
  775. HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )(
  776. ID3D11Device5 * This,
  777. /* [annotation] */
  778. _In_ const D3D11_TEXTURE1D_DESC *pDesc,
  779. /* [annotation] */
  780. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  781. /* [annotation] */
  782. _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D);
  783. HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )(
  784. ID3D11Device5 * This,
  785. /* [annotation] */
  786. _In_ const D3D11_TEXTURE2D_DESC *pDesc,
  787. /* [annotation] */
  788. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  789. /* [annotation] */
  790. _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D);
  791. HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )(
  792. ID3D11Device5 * This,
  793. /* [annotation] */
  794. _In_ const D3D11_TEXTURE3D_DESC *pDesc,
  795. /* [annotation] */
  796. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  797. /* [annotation] */
  798. _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D);
  799. HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  800. ID3D11Device5 * This,
  801. /* [annotation] */
  802. _In_ ID3D11Resource *pResource,
  803. /* [annotation] */
  804. _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
  805. /* [annotation] */
  806. _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView);
  807. HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  808. ID3D11Device5 * This,
  809. /* [annotation] */
  810. _In_ ID3D11Resource *pResource,
  811. /* [annotation] */
  812. _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  813. /* [annotation] */
  814. _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView);
  815. HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  816. ID3D11Device5 * This,
  817. /* [annotation] */
  818. _In_ ID3D11Resource *pResource,
  819. /* [annotation] */
  820. _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
  821. /* [annotation] */
  822. _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView);
  823. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  824. ID3D11Device5 * This,
  825. /* [annotation] */
  826. _In_ ID3D11Resource *pResource,
  827. /* [annotation] */
  828. _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
  829. /* [annotation] */
  830. _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView);
  831. HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )(
  832. ID3D11Device5 * This,
  833. /* [annotation] */
  834. _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
  835. /* [annotation] */
  836. _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements,
  837. /* [annotation] */
  838. _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature,
  839. /* [annotation] */
  840. _In_ SIZE_T BytecodeLength,
  841. /* [annotation] */
  842. _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout);
  843. HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )(
  844. ID3D11Device5 * This,
  845. /* [annotation] */
  846. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  847. /* [annotation] */
  848. _In_ SIZE_T BytecodeLength,
  849. /* [annotation] */
  850. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  851. /* [annotation] */
  852. _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader);
  853. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )(
  854. ID3D11Device5 * This,
  855. /* [annotation] */
  856. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  857. /* [annotation] */
  858. _In_ SIZE_T BytecodeLength,
  859. /* [annotation] */
  860. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  861. /* [annotation] */
  862. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  863. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )(
  864. ID3D11Device5 * This,
  865. /* [annotation] */
  866. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  867. /* [annotation] */
  868. _In_ SIZE_T BytecodeLength,
  869. /* [annotation] */
  870. _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
  871. /* [annotation] */
  872. _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries,
  873. /* [annotation] */
  874. _In_reads_opt_(NumStrides) const UINT *pBufferStrides,
  875. /* [annotation] */
  876. _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides,
  877. /* [annotation] */
  878. _In_ UINT RasterizedStream,
  879. /* [annotation] */
  880. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  881. /* [annotation] */
  882. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  883. HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )(
  884. ID3D11Device5 * This,
  885. /* [annotation] */
  886. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  887. /* [annotation] */
  888. _In_ SIZE_T BytecodeLength,
  889. /* [annotation] */
  890. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  891. /* [annotation] */
  892. _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader);
  893. HRESULT ( STDMETHODCALLTYPE *CreateHullShader )(
  894. ID3D11Device5 * This,
  895. /* [annotation] */
  896. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  897. /* [annotation] */
  898. _In_ SIZE_T BytecodeLength,
  899. /* [annotation] */
  900. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  901. /* [annotation] */
  902. _COM_Outptr_opt_ ID3D11HullShader **ppHullShader);
  903. HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )(
  904. ID3D11Device5 * This,
  905. /* [annotation] */
  906. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  907. /* [annotation] */
  908. _In_ SIZE_T BytecodeLength,
  909. /* [annotation] */
  910. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  911. /* [annotation] */
  912. _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader);
  913. HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )(
  914. ID3D11Device5 * This,
  915. /* [annotation] */
  916. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  917. /* [annotation] */
  918. _In_ SIZE_T BytecodeLength,
  919. /* [annotation] */
  920. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  921. /* [annotation] */
  922. _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader);
  923. HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )(
  924. ID3D11Device5 * This,
  925. /* [annotation] */
  926. _COM_Outptr_ ID3D11ClassLinkage **ppLinkage);
  927. HRESULT ( STDMETHODCALLTYPE *CreateBlendState )(
  928. ID3D11Device5 * This,
  929. /* [annotation] */
  930. _In_ const D3D11_BLEND_DESC *pBlendStateDesc,
  931. /* [annotation] */
  932. _COM_Outptr_opt_ ID3D11BlendState **ppBlendState);
  933. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )(
  934. ID3D11Device5 * This,
  935. /* [annotation] */
  936. _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
  937. /* [annotation] */
  938. _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState);
  939. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )(
  940. ID3D11Device5 * This,
  941. /* [annotation] */
  942. _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc,
  943. /* [annotation] */
  944. _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState);
  945. HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )(
  946. ID3D11Device5 * This,
  947. /* [annotation] */
  948. _In_ const D3D11_SAMPLER_DESC *pSamplerDesc,
  949. /* [annotation] */
  950. _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState);
  951. HRESULT ( STDMETHODCALLTYPE *CreateQuery )(
  952. ID3D11Device5 * This,
  953. /* [annotation] */
  954. _In_ const D3D11_QUERY_DESC *pQueryDesc,
  955. /* [annotation] */
  956. _COM_Outptr_opt_ ID3D11Query **ppQuery);
  957. HRESULT ( STDMETHODCALLTYPE *CreatePredicate )(
  958. ID3D11Device5 * This,
  959. /* [annotation] */
  960. _In_ const D3D11_QUERY_DESC *pPredicateDesc,
  961. /* [annotation] */
  962. _COM_Outptr_opt_ ID3D11Predicate **ppPredicate);
  963. HRESULT ( STDMETHODCALLTYPE *CreateCounter )(
  964. ID3D11Device5 * This,
  965. /* [annotation] */
  966. _In_ const D3D11_COUNTER_DESC *pCounterDesc,
  967. /* [annotation] */
  968. _COM_Outptr_opt_ ID3D11Counter **ppCounter);
  969. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )(
  970. ID3D11Device5 * This,
  971. UINT ContextFlags,
  972. /* [annotation] */
  973. _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext);
  974. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )(
  975. ID3D11Device5 * This,
  976. /* [annotation] */
  977. _In_ HANDLE hResource,
  978. /* [annotation] */
  979. _In_ REFIID ReturnedInterface,
  980. /* [annotation] */
  981. _COM_Outptr_opt_ void **ppResource);
  982. HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )(
  983. ID3D11Device5 * This,
  984. /* [annotation] */
  985. _In_ DXGI_FORMAT Format,
  986. /* [annotation] */
  987. _Out_ UINT *pFormatSupport);
  988. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )(
  989. ID3D11Device5 * This,
  990. /* [annotation] */
  991. _In_ DXGI_FORMAT Format,
  992. /* [annotation] */
  993. _In_ UINT SampleCount,
  994. /* [annotation] */
  995. _Out_ UINT *pNumQualityLevels);
  996. void ( STDMETHODCALLTYPE *CheckCounterInfo )(
  997. ID3D11Device5 * This,
  998. /* [annotation] */
  999. _Out_ D3D11_COUNTER_INFO *pCounterInfo);
  1000. HRESULT ( STDMETHODCALLTYPE *CheckCounter )(
  1001. ID3D11Device5 * This,
  1002. /* [annotation] */
  1003. _In_ const D3D11_COUNTER_DESC *pDesc,
  1004. /* [annotation] */
  1005. _Out_ D3D11_COUNTER_TYPE *pType,
  1006. /* [annotation] */
  1007. _Out_ UINT *pActiveCounters,
  1008. /* [annotation] */
  1009. _Out_writes_opt_(*pNameLength) LPSTR szName,
  1010. /* [annotation] */
  1011. _Inout_opt_ UINT *pNameLength,
  1012. /* [annotation] */
  1013. _Out_writes_opt_(*pUnitsLength) LPSTR szUnits,
  1014. /* [annotation] */
  1015. _Inout_opt_ UINT *pUnitsLength,
  1016. /* [annotation] */
  1017. _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription,
  1018. /* [annotation] */
  1019. _Inout_opt_ UINT *pDescriptionLength);
  1020. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  1021. ID3D11Device5 * This,
  1022. D3D11_FEATURE Feature,
  1023. /* [annotation] */
  1024. _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  1025. UINT FeatureSupportDataSize);
  1026. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1027. ID3D11Device5 * This,
  1028. /* [annotation] */
  1029. _In_ REFGUID guid,
  1030. /* [annotation] */
  1031. _Inout_ UINT *pDataSize,
  1032. /* [annotation] */
  1033. _Out_writes_bytes_opt_(*pDataSize) void *pData);
  1034. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1035. ID3D11Device5 * This,
  1036. /* [annotation] */
  1037. _In_ REFGUID guid,
  1038. /* [annotation] */
  1039. _In_ UINT DataSize,
  1040. /* [annotation] */
  1041. _In_reads_bytes_opt_(DataSize) const void *pData);
  1042. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1043. ID3D11Device5 * This,
  1044. /* [annotation] */
  1045. _In_ REFGUID guid,
  1046. /* [annotation] */
  1047. _In_opt_ const IUnknown *pData);
  1048. D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )(
  1049. ID3D11Device5 * This);
  1050. UINT ( STDMETHODCALLTYPE *GetCreationFlags )(
  1051. ID3D11Device5 * This);
  1052. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  1053. ID3D11Device5 * This);
  1054. void ( STDMETHODCALLTYPE *GetImmediateContext )(
  1055. ID3D11Device5 * This,
  1056. /* [annotation] */
  1057. _Outptr_ ID3D11DeviceContext **ppImmediateContext);
  1058. HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )(
  1059. ID3D11Device5 * This,
  1060. UINT RaiseFlags);
  1061. UINT ( STDMETHODCALLTYPE *GetExceptionMode )(
  1062. ID3D11Device5 * This);
  1063. void ( STDMETHODCALLTYPE *GetImmediateContext1 )(
  1064. ID3D11Device5 * This,
  1065. /* [annotation] */
  1066. _Outptr_ ID3D11DeviceContext1 **ppImmediateContext);
  1067. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )(
  1068. ID3D11Device5 * This,
  1069. UINT ContextFlags,
  1070. /* [annotation] */
  1071. _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext);
  1072. HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )(
  1073. ID3D11Device5 * This,
  1074. /* [annotation] */
  1075. _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc,
  1076. /* [annotation] */
  1077. _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState);
  1078. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )(
  1079. ID3D11Device5 * This,
  1080. /* [annotation] */
  1081. _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc,
  1082. /* [annotation] */
  1083. _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState);
  1084. HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )(
  1085. ID3D11Device5 * This,
  1086. UINT Flags,
  1087. /* [annotation] */
  1088. _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels,
  1089. UINT FeatureLevels,
  1090. UINT SDKVersion,
  1091. REFIID EmulatedInterface,
  1092. /* [annotation] */
  1093. _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel,
  1094. /* [annotation] */
  1095. _Out_opt_ ID3DDeviceContextState **ppContextState);
  1096. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )(
  1097. ID3D11Device5 * This,
  1098. /* [annotation] */
  1099. _In_ HANDLE hResource,
  1100. /* [annotation] */
  1101. _In_ REFIID returnedInterface,
  1102. /* [annotation] */
  1103. _COM_Outptr_ void **ppResource);
  1104. HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )(
  1105. ID3D11Device5 * This,
  1106. /* [annotation] */
  1107. _In_ LPCWSTR lpName,
  1108. /* [annotation] */
  1109. _In_ DWORD dwDesiredAccess,
  1110. /* [annotation] */
  1111. _In_ REFIID returnedInterface,
  1112. /* [annotation] */
  1113. _COM_Outptr_ void **ppResource);
  1114. void ( STDMETHODCALLTYPE *GetImmediateContext2 )(
  1115. ID3D11Device5 * This,
  1116. /* [annotation] */
  1117. _Outptr_ ID3D11DeviceContext2 **ppImmediateContext);
  1118. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext2 )(
  1119. ID3D11Device5 * This,
  1120. UINT ContextFlags,
  1121. /* [annotation] */
  1122. _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext);
  1123. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  1124. ID3D11Device5 * This,
  1125. /* [annotation] */
  1126. _In_ ID3D11Resource *pTiledResource,
  1127. /* [annotation] */
  1128. _Out_opt_ UINT *pNumTilesForEntireResource,
  1129. /* [annotation] */
  1130. _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc,
  1131. /* [annotation] */
  1132. _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  1133. /* [annotation] */
  1134. _Inout_opt_ UINT *pNumSubresourceTilings,
  1135. /* [annotation] */
  1136. _In_ UINT FirstSubresourceTilingToGet,
  1137. /* [annotation] */
  1138. _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  1139. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels1 )(
  1140. ID3D11Device5 * This,
  1141. /* [annotation] */
  1142. _In_ DXGI_FORMAT Format,
  1143. /* [annotation] */
  1144. _In_ UINT SampleCount,
  1145. /* [annotation] */
  1146. _In_ UINT Flags,
  1147. /* [annotation] */
  1148. _Out_ UINT *pNumQualityLevels);
  1149. HRESULT ( STDMETHODCALLTYPE *CreateTexture2D1 )(
  1150. ID3D11Device5 * This,
  1151. /* [annotation] */
  1152. _In_ const D3D11_TEXTURE2D_DESC1 *pDesc1,
  1153. /* [annotation] */
  1154. _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels * pDesc1->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  1155. /* [annotation] */
  1156. _COM_Outptr_opt_ ID3D11Texture2D1 **ppTexture2D);
  1157. HRESULT ( STDMETHODCALLTYPE *CreateTexture3D1 )(
  1158. ID3D11Device5 * This,
  1159. /* [annotation] */
  1160. _In_ const D3D11_TEXTURE3D_DESC1 *pDesc1,
  1161. /* [annotation] */
  1162. _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  1163. /* [annotation] */
  1164. _COM_Outptr_opt_ ID3D11Texture3D1 **ppTexture3D);
  1165. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState2 )(
  1166. ID3D11Device5 * This,
  1167. /* [annotation] */
  1168. _In_ const D3D11_RASTERIZER_DESC2 *pRasterizerDesc,
  1169. /* [annotation] */
  1170. _COM_Outptr_opt_ ID3D11RasterizerState2 **ppRasterizerState);
  1171. HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView1 )(
  1172. ID3D11Device5 * This,
  1173. /* [annotation] */
  1174. _In_ ID3D11Resource *pResource,
  1175. /* [annotation] */
  1176. _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC1 *pDesc1,
  1177. /* [annotation] */
  1178. _COM_Outptr_opt_ ID3D11ShaderResourceView1 **ppSRView1);
  1179. HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView1 )(
  1180. ID3D11Device5 * This,
  1181. /* [annotation] */
  1182. _In_ ID3D11Resource *pResource,
  1183. /* [annotation] */
  1184. _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC1 *pDesc1,
  1185. /* [annotation] */
  1186. _COM_Outptr_opt_ ID3D11UnorderedAccessView1 **ppUAView1);
  1187. HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView1 )(
  1188. ID3D11Device5 * This,
  1189. /* [annotation] */
  1190. _In_ ID3D11Resource *pResource,
  1191. /* [annotation] */
  1192. _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC1 *pDesc1,
  1193. /* [annotation] */
  1194. _COM_Outptr_opt_ ID3D11RenderTargetView1 **ppRTView1);
  1195. HRESULT ( STDMETHODCALLTYPE *CreateQuery1 )(
  1196. ID3D11Device5 * This,
  1197. /* [annotation] */
  1198. _In_ const D3D11_QUERY_DESC1 *pQueryDesc1,
  1199. /* [annotation] */
  1200. _COM_Outptr_opt_ ID3D11Query1 **ppQuery1);
  1201. void ( STDMETHODCALLTYPE *GetImmediateContext3 )(
  1202. ID3D11Device5 * This,
  1203. /* [annotation] */
  1204. _Outptr_ ID3D11DeviceContext3 **ppImmediateContext);
  1205. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext3 )(
  1206. ID3D11Device5 * This,
  1207. UINT ContextFlags,
  1208. /* [annotation] */
  1209. _COM_Outptr_opt_ ID3D11DeviceContext3 **ppDeferredContext);
  1210. void ( STDMETHODCALLTYPE *WriteToSubresource )(
  1211. ID3D11Device5 * This,
  1212. /* [annotation] */
  1213. _In_ ID3D11Resource *pDstResource,
  1214. /* [annotation] */
  1215. _In_ UINT DstSubresource,
  1216. /* [annotation] */
  1217. _In_opt_ const D3D11_BOX *pDstBox,
  1218. /* [annotation] */
  1219. _In_ const void *pSrcData,
  1220. /* [annotation] */
  1221. _In_ UINT SrcRowPitch,
  1222. /* [annotation] */
  1223. _In_ UINT SrcDepthPitch);
  1224. void ( STDMETHODCALLTYPE *ReadFromSubresource )(
  1225. ID3D11Device5 * This,
  1226. /* [annotation] */
  1227. _Out_ void *pDstData,
  1228. /* [annotation] */
  1229. _In_ UINT DstRowPitch,
  1230. /* [annotation] */
  1231. _In_ UINT DstDepthPitch,
  1232. /* [annotation] */
  1233. _In_ ID3D11Resource *pSrcResource,
  1234. /* [annotation] */
  1235. _In_ UINT SrcSubresource,
  1236. /* [annotation] */
  1237. _In_opt_ const D3D11_BOX *pSrcBox);
  1238. HRESULT ( STDMETHODCALLTYPE *RegisterDeviceRemovedEvent )(
  1239. ID3D11Device5 * This,
  1240. /* [annotation] */
  1241. _In_ HANDLE hEvent,
  1242. /* [annotation] */
  1243. _Out_ DWORD *pdwCookie);
  1244. void ( STDMETHODCALLTYPE *UnregisterDeviceRemoved )(
  1245. ID3D11Device5 * This,
  1246. /* [annotation] */
  1247. _In_ DWORD dwCookie);
  1248. HRESULT ( STDMETHODCALLTYPE *OpenSharedFence )(
  1249. ID3D11Device5 * This,
  1250. /* [annotation] */
  1251. _In_ HANDLE hFence,
  1252. /* [annotation] */
  1253. _In_ REFIID ReturnedInterface,
  1254. /* [annotation] */
  1255. _COM_Outptr_opt_ void **ppFence);
  1256. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  1257. ID3D11Device5 * This,
  1258. /* [annotation] */
  1259. _In_ UINT64 InitialValue,
  1260. /* [annotation] */
  1261. _In_ D3D11_FENCE_FLAG Flags,
  1262. /* [annotation] */
  1263. _In_ REFIID ReturnedInterface,
  1264. /* [annotation] */
  1265. _COM_Outptr_opt_ void **ppFence);
  1266. END_INTERFACE
  1267. } ID3D11Device5Vtbl;
  1268. interface ID3D11Device5
  1269. {
  1270. CONST_VTBL struct ID3D11Device5Vtbl *lpVtbl;
  1271. };
  1272. #ifdef COBJMACROS
  1273. #define ID3D11Device5_QueryInterface(This,riid,ppvObject) \
  1274. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1275. #define ID3D11Device5_AddRef(This) \
  1276. ( (This)->lpVtbl -> AddRef(This) )
  1277. #define ID3D11Device5_Release(This) \
  1278. ( (This)->lpVtbl -> Release(This) )
  1279. #define ID3D11Device5_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \
  1280. ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) )
  1281. #define ID3D11Device5_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \
  1282. ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) )
  1283. #define ID3D11Device5_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \
  1284. ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) )
  1285. #define ID3D11Device5_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \
  1286. ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) )
  1287. #define ID3D11Device5_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \
  1288. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) )
  1289. #define ID3D11Device5_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \
  1290. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) )
  1291. #define ID3D11Device5_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \
  1292. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) )
  1293. #define ID3D11Device5_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \
  1294. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) )
  1295. #define ID3D11Device5_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \
  1296. ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) )
  1297. #define ID3D11Device5_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \
  1298. ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) )
  1299. #define ID3D11Device5_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \
  1300. ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) )
  1301. #define ID3D11Device5_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \
  1302. ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) )
  1303. #define ID3D11Device5_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \
  1304. ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) )
  1305. #define ID3D11Device5_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \
  1306. ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) )
  1307. #define ID3D11Device5_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \
  1308. ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) )
  1309. #define ID3D11Device5_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \
  1310. ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) )
  1311. #define ID3D11Device5_CreateClassLinkage(This,ppLinkage) \
  1312. ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) )
  1313. #define ID3D11Device5_CreateBlendState(This,pBlendStateDesc,ppBlendState) \
  1314. ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) )
  1315. #define ID3D11Device5_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \
  1316. ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) )
  1317. #define ID3D11Device5_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \
  1318. ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) )
  1319. #define ID3D11Device5_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \
  1320. ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) )
  1321. #define ID3D11Device5_CreateQuery(This,pQueryDesc,ppQuery) \
  1322. ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) )
  1323. #define ID3D11Device5_CreatePredicate(This,pPredicateDesc,ppPredicate) \
  1324. ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) )
  1325. #define ID3D11Device5_CreateCounter(This,pCounterDesc,ppCounter) \
  1326. ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) )
  1327. #define ID3D11Device5_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \
  1328. ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) )
  1329. #define ID3D11Device5_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \
  1330. ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) )
  1331. #define ID3D11Device5_CheckFormatSupport(This,Format,pFormatSupport) \
  1332. ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) )
  1333. #define ID3D11Device5_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \
  1334. ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) )
  1335. #define ID3D11Device5_CheckCounterInfo(This,pCounterInfo) \
  1336. ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) )
  1337. #define ID3D11Device5_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \
  1338. ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) )
  1339. #define ID3D11Device5_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  1340. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  1341. #define ID3D11Device5_GetPrivateData(This,guid,pDataSize,pData) \
  1342. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1343. #define ID3D11Device5_SetPrivateData(This,guid,DataSize,pData) \
  1344. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1345. #define ID3D11Device5_SetPrivateDataInterface(This,guid,pData) \
  1346. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1347. #define ID3D11Device5_GetFeatureLevel(This) \
  1348. ( (This)->lpVtbl -> GetFeatureLevel(This) )
  1349. #define ID3D11Device5_GetCreationFlags(This) \
  1350. ( (This)->lpVtbl -> GetCreationFlags(This) )
  1351. #define ID3D11Device5_GetDeviceRemovedReason(This) \
  1352. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  1353. #define ID3D11Device5_GetImmediateContext(This,ppImmediateContext) \
  1354. ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) )
  1355. #define ID3D11Device5_SetExceptionMode(This,RaiseFlags) \
  1356. ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) )
  1357. #define ID3D11Device5_GetExceptionMode(This) \
  1358. ( (This)->lpVtbl -> GetExceptionMode(This) )
  1359. #define ID3D11Device5_GetImmediateContext1(This,ppImmediateContext) \
  1360. ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) )
  1361. #define ID3D11Device5_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \
  1362. ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) )
  1363. #define ID3D11Device5_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \
  1364. ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) )
  1365. #define ID3D11Device5_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \
  1366. ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) )
  1367. #define ID3D11Device5_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \
  1368. ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) )
  1369. #define ID3D11Device5_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \
  1370. ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) )
  1371. #define ID3D11Device5_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \
  1372. ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) )
  1373. #define ID3D11Device5_GetImmediateContext2(This,ppImmediateContext) \
  1374. ( (This)->lpVtbl -> GetImmediateContext2(This,ppImmediateContext) )
  1375. #define ID3D11Device5_CreateDeferredContext2(This,ContextFlags,ppDeferredContext) \
  1376. ( (This)->lpVtbl -> CreateDeferredContext2(This,ContextFlags,ppDeferredContext) )
  1377. #define ID3D11Device5_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  1378. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  1379. #define ID3D11Device5_CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) \
  1380. ( (This)->lpVtbl -> CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) )
  1381. #define ID3D11Device5_CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) \
  1382. ( (This)->lpVtbl -> CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) )
  1383. #define ID3D11Device5_CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) \
  1384. ( (This)->lpVtbl -> CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) )
  1385. #define ID3D11Device5_CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) \
  1386. ( (This)->lpVtbl -> CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) )
  1387. #define ID3D11Device5_CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) \
  1388. ( (This)->lpVtbl -> CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) )
  1389. #define ID3D11Device5_CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) \
  1390. ( (This)->lpVtbl -> CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) )
  1391. #define ID3D11Device5_CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) \
  1392. ( (This)->lpVtbl -> CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) )
  1393. #define ID3D11Device5_CreateQuery1(This,pQueryDesc1,ppQuery1) \
  1394. ( (This)->lpVtbl -> CreateQuery1(This,pQueryDesc1,ppQuery1) )
  1395. #define ID3D11Device5_GetImmediateContext3(This,ppImmediateContext) \
  1396. ( (This)->lpVtbl -> GetImmediateContext3(This,ppImmediateContext) )
  1397. #define ID3D11Device5_CreateDeferredContext3(This,ContextFlags,ppDeferredContext) \
  1398. ( (This)->lpVtbl -> CreateDeferredContext3(This,ContextFlags,ppDeferredContext) )
  1399. #define ID3D11Device5_WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  1400. ( (This)->lpVtbl -> WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  1401. #define ID3D11Device5_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) \
  1402. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) )
  1403. #define ID3D11Device5_RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) \
  1404. ( (This)->lpVtbl -> RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) )
  1405. #define ID3D11Device5_UnregisterDeviceRemoved(This,dwCookie) \
  1406. ( (This)->lpVtbl -> UnregisterDeviceRemoved(This,dwCookie) )
  1407. #define ID3D11Device5_OpenSharedFence(This,hFence,ReturnedInterface,ppFence) \
  1408. ( (This)->lpVtbl -> OpenSharedFence(This,hFence,ReturnedInterface,ppFence) )
  1409. #define ID3D11Device5_CreateFence(This,InitialValue,Flags,ReturnedInterface,ppFence) \
  1410. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,ReturnedInterface,ppFence) )
  1411. #endif /* COBJMACROS */
  1412. #endif /* C style interface */
  1413. #endif /* __ID3D11Device5_INTERFACE_DEFINED__ */
  1414. #ifndef __ID3D11Multithread_INTERFACE_DEFINED__
  1415. #define __ID3D11Multithread_INTERFACE_DEFINED__
  1416. /* interface ID3D11Multithread */
  1417. /* [unique][local][object][uuid] */
  1418. EXTERN_C const IID IID_ID3D11Multithread;
  1419. #if defined(__cplusplus) && !defined(CINTERFACE)
  1420. MIDL_INTERFACE("9B7E4E00-342C-4106-A19F-4F2704F689F0")
  1421. ID3D11Multithread : public IUnknown
  1422. {
  1423. public:
  1424. virtual void STDMETHODCALLTYPE Enter( void) = 0;
  1425. virtual void STDMETHODCALLTYPE Leave( void) = 0;
  1426. virtual BOOL STDMETHODCALLTYPE SetMultithreadProtected(
  1427. /* [annotation] */
  1428. _In_ BOOL bMTProtect) = 0;
  1429. virtual BOOL STDMETHODCALLTYPE GetMultithreadProtected( void) = 0;
  1430. };
  1431. #else /* C style interface */
  1432. typedef struct ID3D11MultithreadVtbl
  1433. {
  1434. BEGIN_INTERFACE
  1435. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1436. ID3D11Multithread * This,
  1437. /* [in] */ REFIID riid,
  1438. /* [annotation][iid_is][out] */
  1439. _COM_Outptr_ void **ppvObject);
  1440. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1441. ID3D11Multithread * This);
  1442. ULONG ( STDMETHODCALLTYPE *Release )(
  1443. ID3D11Multithread * This);
  1444. void ( STDMETHODCALLTYPE *Enter )(
  1445. ID3D11Multithread * This);
  1446. void ( STDMETHODCALLTYPE *Leave )(
  1447. ID3D11Multithread * This);
  1448. BOOL ( STDMETHODCALLTYPE *SetMultithreadProtected )(
  1449. ID3D11Multithread * This,
  1450. /* [annotation] */
  1451. _In_ BOOL bMTProtect);
  1452. BOOL ( STDMETHODCALLTYPE *GetMultithreadProtected )(
  1453. ID3D11Multithread * This);
  1454. END_INTERFACE
  1455. } ID3D11MultithreadVtbl;
  1456. interface ID3D11Multithread
  1457. {
  1458. CONST_VTBL struct ID3D11MultithreadVtbl *lpVtbl;
  1459. };
  1460. #ifdef COBJMACROS
  1461. #define ID3D11Multithread_QueryInterface(This,riid,ppvObject) \
  1462. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1463. #define ID3D11Multithread_AddRef(This) \
  1464. ( (This)->lpVtbl -> AddRef(This) )
  1465. #define ID3D11Multithread_Release(This) \
  1466. ( (This)->lpVtbl -> Release(This) )
  1467. #define ID3D11Multithread_Enter(This) \
  1468. ( (This)->lpVtbl -> Enter(This) )
  1469. #define ID3D11Multithread_Leave(This) \
  1470. ( (This)->lpVtbl -> Leave(This) )
  1471. #define ID3D11Multithread_SetMultithreadProtected(This,bMTProtect) \
  1472. ( (This)->lpVtbl -> SetMultithreadProtected(This,bMTProtect) )
  1473. #define ID3D11Multithread_GetMultithreadProtected(This) \
  1474. ( (This)->lpVtbl -> GetMultithreadProtected(This) )
  1475. #endif /* COBJMACROS */
  1476. #endif /* C style interface */
  1477. #endif /* __ID3D11Multithread_INTERFACE_DEFINED__ */
  1478. #ifndef __ID3D11VideoContext2_INTERFACE_DEFINED__
  1479. #define __ID3D11VideoContext2_INTERFACE_DEFINED__
  1480. /* interface ID3D11VideoContext2 */
  1481. /* [unique][local][object][uuid] */
  1482. EXTERN_C const IID IID_ID3D11VideoContext2;
  1483. #if defined(__cplusplus) && !defined(CINTERFACE)
  1484. MIDL_INTERFACE("C4E7374C-6243-4D1B-AE87-52B4F740E261")
  1485. ID3D11VideoContext2 : public ID3D11VideoContext1
  1486. {
  1487. public:
  1488. virtual void STDMETHODCALLTYPE VideoProcessorSetOutputHDRMetaData(
  1489. /* [annotation] */
  1490. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1491. /* [annotation] */
  1492. _In_ DXGI_HDR_METADATA_TYPE Type,
  1493. /* [annotation] */
  1494. _In_ UINT Size,
  1495. /* [annotation] */
  1496. _In_reads_bytes_opt_(Size) const void *pHDRMetaData) = 0;
  1497. virtual void STDMETHODCALLTYPE VideoProcessorGetOutputHDRMetaData(
  1498. /* [annotation] */
  1499. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1500. /* [annotation] */
  1501. _Out_ DXGI_HDR_METADATA_TYPE *pType,
  1502. /* [annotation] */
  1503. _In_ UINT Size,
  1504. /* [annotation] */
  1505. _Out_writes_bytes_opt_(Size) void *pMetaData) = 0;
  1506. virtual void STDMETHODCALLTYPE VideoProcessorSetStreamHDRMetaData(
  1507. /* [annotation] */
  1508. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1509. /* [annotation] */
  1510. _In_ UINT StreamIndex,
  1511. /* [annotation] */
  1512. _In_ DXGI_HDR_METADATA_TYPE Type,
  1513. /* [annotation] */
  1514. _In_ UINT Size,
  1515. /* [annotation] */
  1516. _In_reads_bytes_opt_(Size) const void *pHDRMetaData) = 0;
  1517. virtual void STDMETHODCALLTYPE VideoProcessorGetStreamHDRMetaData(
  1518. /* [annotation] */
  1519. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1520. /* [annotation] */
  1521. _In_ UINT StreamIndex,
  1522. /* [annotation] */
  1523. _Out_ DXGI_HDR_METADATA_TYPE *pType,
  1524. /* [annotation] */
  1525. _In_ UINT Size,
  1526. /* [annotation] */
  1527. _Out_writes_bytes_opt_(Size) void *pMetaData) = 0;
  1528. };
  1529. #else /* C style interface */
  1530. typedef struct ID3D11VideoContext2Vtbl
  1531. {
  1532. BEGIN_INTERFACE
  1533. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1534. ID3D11VideoContext2 * This,
  1535. /* [in] */ REFIID riid,
  1536. /* [annotation][iid_is][out] */
  1537. _COM_Outptr_ void **ppvObject);
  1538. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1539. ID3D11VideoContext2 * This);
  1540. ULONG ( STDMETHODCALLTYPE *Release )(
  1541. ID3D11VideoContext2 * This);
  1542. void ( STDMETHODCALLTYPE *GetDevice )(
  1543. ID3D11VideoContext2 * This,
  1544. /* [annotation] */
  1545. _Outptr_ ID3D11Device **ppDevice);
  1546. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1547. ID3D11VideoContext2 * This,
  1548. /* [annotation] */
  1549. _In_ REFGUID guid,
  1550. /* [annotation] */
  1551. _Inout_ UINT *pDataSize,
  1552. /* [annotation] */
  1553. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1554. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1555. ID3D11VideoContext2 * This,
  1556. /* [annotation] */
  1557. _In_ REFGUID guid,
  1558. /* [annotation] */
  1559. _In_ UINT DataSize,
  1560. /* [annotation] */
  1561. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1562. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1563. ID3D11VideoContext2 * This,
  1564. /* [annotation] */
  1565. _In_ REFGUID guid,
  1566. /* [annotation] */
  1567. _In_opt_ const IUnknown *pData);
  1568. HRESULT ( STDMETHODCALLTYPE *GetDecoderBuffer )(
  1569. ID3D11VideoContext2 * This,
  1570. /* [annotation] */
  1571. _In_ ID3D11VideoDecoder *pDecoder,
  1572. D3D11_VIDEO_DECODER_BUFFER_TYPE Type,
  1573. /* [annotation] */
  1574. _Out_ UINT *pBufferSize,
  1575. /* [annotation] */
  1576. _Outptr_result_bytebuffer_(*pBufferSize) void **ppBuffer);
  1577. HRESULT ( STDMETHODCALLTYPE *ReleaseDecoderBuffer )(
  1578. ID3D11VideoContext2 * This,
  1579. /* [annotation] */
  1580. _In_ ID3D11VideoDecoder *pDecoder,
  1581. /* [annotation] */
  1582. _In_ D3D11_VIDEO_DECODER_BUFFER_TYPE Type);
  1583. HRESULT ( STDMETHODCALLTYPE *DecoderBeginFrame )(
  1584. ID3D11VideoContext2 * This,
  1585. /* [annotation] */
  1586. _In_ ID3D11VideoDecoder *pDecoder,
  1587. /* [annotation] */
  1588. _In_ ID3D11VideoDecoderOutputView *pView,
  1589. UINT ContentKeySize,
  1590. /* [annotation] */
  1591. _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey);
  1592. HRESULT ( STDMETHODCALLTYPE *DecoderEndFrame )(
  1593. ID3D11VideoContext2 * This,
  1594. /* [annotation] */
  1595. _In_ ID3D11VideoDecoder *pDecoder);
  1596. HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers )(
  1597. ID3D11VideoContext2 * This,
  1598. /* [annotation] */
  1599. _In_ ID3D11VideoDecoder *pDecoder,
  1600. /* [annotation] */
  1601. _In_ UINT NumBuffers,
  1602. /* [annotation] */
  1603. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC *pBufferDesc);
  1604. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *DecoderExtension )(
  1605. ID3D11VideoContext2 * This,
  1606. /* [annotation] */
  1607. _In_ ID3D11VideoDecoder *pDecoder,
  1608. /* [annotation] */
  1609. _In_ const D3D11_VIDEO_DECODER_EXTENSION *pExtensionData);
  1610. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputTargetRect )(
  1611. ID3D11VideoContext2 * This,
  1612. /* [annotation] */
  1613. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1614. /* [annotation] */
  1615. _In_ BOOL Enable,
  1616. /* [annotation] */
  1617. _In_opt_ const RECT *pRect);
  1618. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputBackgroundColor )(
  1619. ID3D11VideoContext2 * This,
  1620. /* [annotation] */
  1621. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1622. /* [annotation] */
  1623. _In_ BOOL YCbCr,
  1624. /* [annotation] */
  1625. _In_ const D3D11_VIDEO_COLOR *pColor);
  1626. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace )(
  1627. ID3D11VideoContext2 * This,
  1628. /* [annotation] */
  1629. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1630. /* [annotation] */
  1631. _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  1632. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputAlphaFillMode )(
  1633. ID3D11VideoContext2 * This,
  1634. /* [annotation] */
  1635. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1636. /* [annotation] */
  1637. _In_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE AlphaFillMode,
  1638. /* [annotation] */
  1639. _In_ UINT StreamIndex);
  1640. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputConstriction )(
  1641. ID3D11VideoContext2 * This,
  1642. /* [annotation] */
  1643. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1644. /* [annotation] */
  1645. _In_ BOOL Enable,
  1646. /* [annotation] */
  1647. _In_ SIZE Size);
  1648. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputStereoMode )(
  1649. ID3D11VideoContext2 * This,
  1650. /* [annotation] */
  1651. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1652. /* [annotation] */
  1653. _In_ BOOL Enable);
  1654. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetOutputExtension )(
  1655. ID3D11VideoContext2 * This,
  1656. /* [annotation] */
  1657. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1658. /* [annotation] */
  1659. _In_ const GUID *pExtensionGuid,
  1660. /* [annotation] */
  1661. _In_ UINT DataSize,
  1662. /* [annotation] */
  1663. _In_ void *pData);
  1664. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputTargetRect )(
  1665. ID3D11VideoContext2 * This,
  1666. /* [annotation] */
  1667. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1668. /* [annotation] */
  1669. _Out_ BOOL *Enabled,
  1670. /* [annotation] */
  1671. _Out_ RECT *pRect);
  1672. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputBackgroundColor )(
  1673. ID3D11VideoContext2 * This,
  1674. /* [annotation] */
  1675. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1676. /* [annotation] */
  1677. _Out_ BOOL *pYCbCr,
  1678. /* [annotation] */
  1679. _Out_ D3D11_VIDEO_COLOR *pColor);
  1680. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace )(
  1681. ID3D11VideoContext2 * This,
  1682. /* [annotation] */
  1683. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1684. /* [annotation] */
  1685. _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  1686. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputAlphaFillMode )(
  1687. ID3D11VideoContext2 * This,
  1688. /* [annotation] */
  1689. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1690. /* [annotation] */
  1691. _Out_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *pAlphaFillMode,
  1692. /* [annotation] */
  1693. _Out_ UINT *pStreamIndex);
  1694. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputConstriction )(
  1695. ID3D11VideoContext2 * This,
  1696. /* [annotation] */
  1697. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1698. /* [annotation] */
  1699. _Out_ BOOL *pEnabled,
  1700. /* [annotation] */
  1701. _Out_ SIZE *pSize);
  1702. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputStereoMode )(
  1703. ID3D11VideoContext2 * This,
  1704. /* [annotation] */
  1705. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1706. /* [annotation] */
  1707. _Out_ BOOL *pEnabled);
  1708. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetOutputExtension )(
  1709. ID3D11VideoContext2 * This,
  1710. /* [annotation] */
  1711. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1712. /* [annotation] */
  1713. _In_ const GUID *pExtensionGuid,
  1714. /* [annotation] */
  1715. _In_ UINT DataSize,
  1716. /* [annotation] */
  1717. _Out_writes_bytes_(DataSize) void *pData);
  1718. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFrameFormat )(
  1719. ID3D11VideoContext2 * This,
  1720. /* [annotation] */
  1721. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1722. /* [annotation] */
  1723. _In_ UINT StreamIndex,
  1724. /* [annotation] */
  1725. _In_ D3D11_VIDEO_FRAME_FORMAT FrameFormat);
  1726. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace )(
  1727. ID3D11VideoContext2 * This,
  1728. /* [annotation] */
  1729. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1730. /* [annotation] */
  1731. _In_ UINT StreamIndex,
  1732. /* [annotation] */
  1733. _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  1734. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamOutputRate )(
  1735. ID3D11VideoContext2 * This,
  1736. /* [annotation] */
  1737. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1738. /* [annotation] */
  1739. _In_ UINT StreamIndex,
  1740. /* [annotation] */
  1741. _In_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate,
  1742. /* [annotation] */
  1743. _In_ BOOL RepeatFrame,
  1744. /* [annotation] */
  1745. _In_opt_ const DXGI_RATIONAL *pCustomRate);
  1746. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamSourceRect )(
  1747. ID3D11VideoContext2 * This,
  1748. /* [annotation] */
  1749. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1750. /* [annotation] */
  1751. _In_ UINT StreamIndex,
  1752. /* [annotation] */
  1753. _In_ BOOL Enable,
  1754. /* [annotation] */
  1755. _In_opt_ const RECT *pRect);
  1756. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamDestRect )(
  1757. ID3D11VideoContext2 * This,
  1758. /* [annotation] */
  1759. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1760. /* [annotation] */
  1761. _In_ UINT StreamIndex,
  1762. /* [annotation] */
  1763. _In_ BOOL Enable,
  1764. /* [annotation] */
  1765. _In_opt_ const RECT *pRect);
  1766. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAlpha )(
  1767. ID3D11VideoContext2 * This,
  1768. /* [annotation] */
  1769. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1770. /* [annotation] */
  1771. _In_ UINT StreamIndex,
  1772. /* [annotation] */
  1773. _In_ BOOL Enable,
  1774. /* [annotation] */
  1775. _In_ FLOAT Alpha);
  1776. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPalette )(
  1777. ID3D11VideoContext2 * This,
  1778. /* [annotation] */
  1779. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1780. /* [annotation] */
  1781. _In_ UINT StreamIndex,
  1782. /* [annotation] */
  1783. _In_ UINT Count,
  1784. /* [annotation] */
  1785. _In_reads_opt_(Count) const UINT *pEntries);
  1786. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPixelAspectRatio )(
  1787. ID3D11VideoContext2 * This,
  1788. /* [annotation] */
  1789. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1790. /* [annotation] */
  1791. _In_ UINT StreamIndex,
  1792. /* [annotation] */
  1793. _In_ BOOL Enable,
  1794. /* [annotation] */
  1795. _In_opt_ const DXGI_RATIONAL *pSourceAspectRatio,
  1796. /* [annotation] */
  1797. _In_opt_ const DXGI_RATIONAL *pDestinationAspectRatio);
  1798. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamLumaKey )(
  1799. ID3D11VideoContext2 * This,
  1800. /* [annotation] */
  1801. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1802. /* [annotation] */
  1803. _In_ UINT StreamIndex,
  1804. /* [annotation] */
  1805. _In_ BOOL Enable,
  1806. /* [annotation] */
  1807. _In_ FLOAT Lower,
  1808. /* [annotation] */
  1809. _In_ FLOAT Upper);
  1810. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamStereoFormat )(
  1811. ID3D11VideoContext2 * This,
  1812. /* [annotation] */
  1813. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1814. /* [annotation] */
  1815. _In_ UINT StreamIndex,
  1816. /* [annotation] */
  1817. _In_ BOOL Enable,
  1818. /* [annotation] */
  1819. _In_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format,
  1820. /* [annotation] */
  1821. _In_ BOOL LeftViewFrame0,
  1822. /* [annotation] */
  1823. _In_ BOOL BaseViewFrame0,
  1824. /* [annotation] */
  1825. _In_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode,
  1826. /* [annotation] */
  1827. _In_ int MonoOffset);
  1828. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAutoProcessingMode )(
  1829. ID3D11VideoContext2 * This,
  1830. /* [annotation] */
  1831. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1832. /* [annotation] */
  1833. _In_ UINT StreamIndex,
  1834. /* [annotation] */
  1835. _In_ BOOL Enable);
  1836. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFilter )(
  1837. ID3D11VideoContext2 * This,
  1838. /* [annotation] */
  1839. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1840. /* [annotation] */
  1841. _In_ UINT StreamIndex,
  1842. /* [annotation] */
  1843. _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter,
  1844. /* [annotation] */
  1845. _In_ BOOL Enable,
  1846. /* [annotation] */
  1847. _In_ int Level);
  1848. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetStreamExtension )(
  1849. ID3D11VideoContext2 * This,
  1850. /* [annotation] */
  1851. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1852. /* [annotation] */
  1853. _In_ UINT StreamIndex,
  1854. /* [annotation] */
  1855. _In_ const GUID *pExtensionGuid,
  1856. /* [annotation] */
  1857. _In_ UINT DataSize,
  1858. /* [annotation] */
  1859. _In_ void *pData);
  1860. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFrameFormat )(
  1861. ID3D11VideoContext2 * This,
  1862. /* [annotation] */
  1863. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1864. /* [annotation] */
  1865. _In_ UINT StreamIndex,
  1866. /* [annotation] */
  1867. _Out_ D3D11_VIDEO_FRAME_FORMAT *pFrameFormat);
  1868. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace )(
  1869. ID3D11VideoContext2 * This,
  1870. /* [annotation] */
  1871. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1872. /* [annotation] */
  1873. _In_ UINT StreamIndex,
  1874. /* [annotation] */
  1875. _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  1876. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamOutputRate )(
  1877. ID3D11VideoContext2 * This,
  1878. /* [annotation] */
  1879. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1880. /* [annotation] */
  1881. _In_ UINT StreamIndex,
  1882. /* [annotation] */
  1883. _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *pOutputRate,
  1884. /* [annotation] */
  1885. _Out_ BOOL *pRepeatFrame,
  1886. /* [annotation] */
  1887. _Out_ DXGI_RATIONAL *pCustomRate);
  1888. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamSourceRect )(
  1889. ID3D11VideoContext2 * This,
  1890. /* [annotation] */
  1891. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1892. /* [annotation] */
  1893. _In_ UINT StreamIndex,
  1894. /* [annotation] */
  1895. _Out_ BOOL *pEnabled,
  1896. /* [annotation] */
  1897. _Out_ RECT *pRect);
  1898. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamDestRect )(
  1899. ID3D11VideoContext2 * This,
  1900. /* [annotation] */
  1901. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1902. /* [annotation] */
  1903. _In_ UINT StreamIndex,
  1904. /* [annotation] */
  1905. _Out_ BOOL *pEnabled,
  1906. /* [annotation] */
  1907. _Out_ RECT *pRect);
  1908. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAlpha )(
  1909. ID3D11VideoContext2 * This,
  1910. /* [annotation] */
  1911. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1912. /* [annotation] */
  1913. _In_ UINT StreamIndex,
  1914. /* [annotation] */
  1915. _Out_ BOOL *pEnabled,
  1916. /* [annotation] */
  1917. _Out_ FLOAT *pAlpha);
  1918. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPalette )(
  1919. ID3D11VideoContext2 * This,
  1920. /* [annotation] */
  1921. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1922. /* [annotation] */
  1923. _In_ UINT StreamIndex,
  1924. /* [annotation] */
  1925. _In_ UINT Count,
  1926. /* [annotation] */
  1927. _Out_writes_(Count) UINT *pEntries);
  1928. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPixelAspectRatio )(
  1929. ID3D11VideoContext2 * This,
  1930. /* [annotation] */
  1931. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1932. /* [annotation] */
  1933. _In_ UINT StreamIndex,
  1934. /* [annotation] */
  1935. _Out_ BOOL *pEnabled,
  1936. /* [annotation] */
  1937. _Out_ DXGI_RATIONAL *pSourceAspectRatio,
  1938. /* [annotation] */
  1939. _Out_ DXGI_RATIONAL *pDestinationAspectRatio);
  1940. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamLumaKey )(
  1941. ID3D11VideoContext2 * This,
  1942. /* [annotation] */
  1943. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1944. /* [annotation] */
  1945. _In_ UINT StreamIndex,
  1946. /* [annotation] */
  1947. _Out_ BOOL *pEnabled,
  1948. /* [annotation] */
  1949. _Out_ FLOAT *pLower,
  1950. /* [annotation] */
  1951. _Out_ FLOAT *pUpper);
  1952. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamStereoFormat )(
  1953. ID3D11VideoContext2 * This,
  1954. /* [annotation] */
  1955. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1956. /* [annotation] */
  1957. _In_ UINT StreamIndex,
  1958. /* [annotation] */
  1959. _Out_ BOOL *pEnable,
  1960. /* [annotation] */
  1961. _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *pFormat,
  1962. /* [annotation] */
  1963. _Out_ BOOL *pLeftViewFrame0,
  1964. /* [annotation] */
  1965. _Out_ BOOL *pBaseViewFrame0,
  1966. /* [annotation] */
  1967. _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *pFlipMode,
  1968. /* [annotation] */
  1969. _Out_ int *MonoOffset);
  1970. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAutoProcessingMode )(
  1971. ID3D11VideoContext2 * This,
  1972. /* [annotation] */
  1973. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1974. /* [annotation] */
  1975. _In_ UINT StreamIndex,
  1976. /* [annotation] */
  1977. _Out_ BOOL *pEnabled);
  1978. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFilter )(
  1979. ID3D11VideoContext2 * This,
  1980. /* [annotation] */
  1981. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1982. /* [annotation] */
  1983. _In_ UINT StreamIndex,
  1984. /* [annotation] */
  1985. _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter,
  1986. /* [annotation] */
  1987. _Out_ BOOL *pEnabled,
  1988. /* [annotation] */
  1989. _Out_ int *pLevel);
  1990. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetStreamExtension )(
  1991. ID3D11VideoContext2 * This,
  1992. /* [annotation] */
  1993. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1994. /* [annotation] */
  1995. _In_ UINT StreamIndex,
  1996. /* [annotation] */
  1997. _In_ const GUID *pExtensionGuid,
  1998. /* [annotation] */
  1999. _In_ UINT DataSize,
  2000. /* [annotation] */
  2001. _Out_writes_bytes_(DataSize) void *pData);
  2002. HRESULT ( STDMETHODCALLTYPE *VideoProcessorBlt )(
  2003. ID3D11VideoContext2 * This,
  2004. /* [annotation] */
  2005. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2006. /* [annotation] */
  2007. _In_ ID3D11VideoProcessorOutputView *pView,
  2008. /* [annotation] */
  2009. _In_ UINT OutputFrame,
  2010. /* [annotation] */
  2011. _In_ UINT StreamCount,
  2012. /* [annotation] */
  2013. _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM *pStreams);
  2014. HRESULT ( STDMETHODCALLTYPE *NegotiateCryptoSessionKeyExchange )(
  2015. ID3D11VideoContext2 * This,
  2016. /* [annotation] */
  2017. _In_ ID3D11CryptoSession *pCryptoSession,
  2018. /* [annotation] */
  2019. _In_ UINT DataSize,
  2020. /* [annotation] */
  2021. _Inout_updates_bytes_(DataSize) void *pData);
  2022. void ( STDMETHODCALLTYPE *EncryptionBlt )(
  2023. ID3D11VideoContext2 * This,
  2024. /* [annotation] */
  2025. _In_ ID3D11CryptoSession *pCryptoSession,
  2026. /* [annotation] */
  2027. _In_ ID3D11Texture2D *pSrcSurface,
  2028. /* [annotation] */
  2029. _In_ ID3D11Texture2D *pDstSurface,
  2030. /* [annotation] */
  2031. _In_ UINT IVSize,
  2032. /* [annotation] */
  2033. _Inout_opt_bytecount_(IVSize) void *pIV);
  2034. void ( STDMETHODCALLTYPE *DecryptionBlt )(
  2035. ID3D11VideoContext2 * This,
  2036. /* [annotation] */
  2037. _In_ ID3D11CryptoSession *pCryptoSession,
  2038. /* [annotation] */
  2039. _In_ ID3D11Texture2D *pSrcSurface,
  2040. /* [annotation] */
  2041. _In_ ID3D11Texture2D *pDstSurface,
  2042. /* [annotation] */
  2043. _In_opt_ D3D11_ENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo,
  2044. /* [annotation] */
  2045. _In_ UINT ContentKeySize,
  2046. /* [annotation] */
  2047. _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey,
  2048. /* [annotation] */
  2049. _In_ UINT IVSize,
  2050. /* [annotation] */
  2051. _Inout_opt_bytecount_(IVSize) void *pIV);
  2052. void ( STDMETHODCALLTYPE *StartSessionKeyRefresh )(
  2053. ID3D11VideoContext2 * This,
  2054. /* [annotation] */
  2055. _In_ ID3D11CryptoSession *pCryptoSession,
  2056. /* [annotation] */
  2057. _In_ UINT RandomNumberSize,
  2058. /* [annotation] */
  2059. _Out_writes_bytes_(RandomNumberSize) void *pRandomNumber);
  2060. void ( STDMETHODCALLTYPE *FinishSessionKeyRefresh )(
  2061. ID3D11VideoContext2 * This,
  2062. /* [annotation] */
  2063. _In_ ID3D11CryptoSession *pCryptoSession);
  2064. HRESULT ( STDMETHODCALLTYPE *GetEncryptionBltKey )(
  2065. ID3D11VideoContext2 * This,
  2066. /* [annotation] */
  2067. _In_ ID3D11CryptoSession *pCryptoSession,
  2068. /* [annotation] */
  2069. _In_ UINT KeySize,
  2070. /* [annotation] */
  2071. _Out_writes_bytes_(KeySize) void *pReadbackKey);
  2072. HRESULT ( STDMETHODCALLTYPE *NegotiateAuthenticatedChannelKeyExchange )(
  2073. ID3D11VideoContext2 * This,
  2074. /* [annotation] */
  2075. _In_ ID3D11AuthenticatedChannel *pChannel,
  2076. /* [annotation] */
  2077. _In_ UINT DataSize,
  2078. /* [annotation] */
  2079. _Inout_updates_bytes_(DataSize) void *pData);
  2080. HRESULT ( STDMETHODCALLTYPE *QueryAuthenticatedChannel )(
  2081. ID3D11VideoContext2 * This,
  2082. /* [annotation] */
  2083. _In_ ID3D11AuthenticatedChannel *pChannel,
  2084. /* [annotation] */
  2085. _In_ UINT InputSize,
  2086. /* [annotation] */
  2087. _In_reads_bytes_(InputSize) const void *pInput,
  2088. /* [annotation] */
  2089. _In_ UINT OutputSize,
  2090. /* [annotation] */
  2091. _Out_writes_bytes_(OutputSize) void *pOutput);
  2092. HRESULT ( STDMETHODCALLTYPE *ConfigureAuthenticatedChannel )(
  2093. ID3D11VideoContext2 * This,
  2094. /* [annotation] */
  2095. _In_ ID3D11AuthenticatedChannel *pChannel,
  2096. /* [annotation] */
  2097. _In_ UINT InputSize,
  2098. /* [annotation] */
  2099. _In_reads_bytes_(InputSize) const void *pInput,
  2100. /* [annotation] */
  2101. _Out_ D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *pOutput);
  2102. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamRotation )(
  2103. ID3D11VideoContext2 * This,
  2104. /* [annotation] */
  2105. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2106. /* [annotation] */
  2107. _In_ UINT StreamIndex,
  2108. /* [annotation] */
  2109. _In_ BOOL Enable,
  2110. /* [annotation] */
  2111. _In_ D3D11_VIDEO_PROCESSOR_ROTATION Rotation);
  2112. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamRotation )(
  2113. ID3D11VideoContext2 * This,
  2114. /* [annotation] */
  2115. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2116. /* [annotation] */
  2117. _In_ UINT StreamIndex,
  2118. /* [annotation] */
  2119. _Out_ BOOL *pEnable,
  2120. /* [annotation] */
  2121. _Out_ D3D11_VIDEO_PROCESSOR_ROTATION *pRotation);
  2122. HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers1 )(
  2123. ID3D11VideoContext2 * This,
  2124. /* [annotation] */
  2125. _In_ ID3D11VideoDecoder *pDecoder,
  2126. /* [annotation] */
  2127. _In_ UINT NumBuffers,
  2128. /* [annotation] */
  2129. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC1 *pBufferDesc);
  2130. HRESULT ( STDMETHODCALLTYPE *GetDataForNewHardwareKey )(
  2131. ID3D11VideoContext2 * This,
  2132. /* [annotation] */
  2133. _In_ ID3D11CryptoSession *pCryptoSession,
  2134. /* [annotation] */
  2135. _In_ UINT PrivateInputSize,
  2136. /* [annotation] */
  2137. _In_reads_(PrivateInputSize) const void *pPrivatInputData,
  2138. /* [annotation] */
  2139. _Out_ UINT64 *pPrivateOutputData);
  2140. HRESULT ( STDMETHODCALLTYPE *CheckCryptoSessionStatus )(
  2141. ID3D11VideoContext2 * This,
  2142. /* [annotation] */
  2143. _In_ ID3D11CryptoSession *pCryptoSession,
  2144. /* [annotation] */
  2145. _Out_ D3D11_CRYPTO_SESSION_STATUS *pStatus);
  2146. HRESULT ( STDMETHODCALLTYPE *DecoderEnableDownsampling )(
  2147. ID3D11VideoContext2 * This,
  2148. /* [annotation] */
  2149. _In_ ID3D11VideoDecoder *pDecoder,
  2150. /* [annotation] */
  2151. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  2152. /* [annotation] */
  2153. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc,
  2154. /* [annotation] */
  2155. _In_ UINT ReferenceFrameCount);
  2156. HRESULT ( STDMETHODCALLTYPE *DecoderUpdateDownsampling )(
  2157. ID3D11VideoContext2 * This,
  2158. /* [annotation] */
  2159. _In_ ID3D11VideoDecoder *pDecoder,
  2160. /* [annotation] */
  2161. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc);
  2162. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace1 )(
  2163. ID3D11VideoContext2 * This,
  2164. /* [annotation] */
  2165. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2166. /* [annotation] */
  2167. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace);
  2168. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputShaderUsage )(
  2169. ID3D11VideoContext2 * This,
  2170. /* [annotation] */
  2171. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2172. /* [annotation] */
  2173. _In_ BOOL ShaderUsage);
  2174. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace1 )(
  2175. ID3D11VideoContext2 * This,
  2176. /* [annotation] */
  2177. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2178. /* [annotation] */
  2179. _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace);
  2180. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputShaderUsage )(
  2181. ID3D11VideoContext2 * This,
  2182. /* [annotation] */
  2183. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2184. /* [annotation] */
  2185. _Out_ BOOL *pShaderUsage);
  2186. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace1 )(
  2187. ID3D11VideoContext2 * This,
  2188. /* [annotation] */
  2189. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2190. /* [annotation] */
  2191. _In_ UINT StreamIndex,
  2192. /* [annotation] */
  2193. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace);
  2194. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamMirror )(
  2195. ID3D11VideoContext2 * This,
  2196. /* [annotation] */
  2197. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2198. /* [annotation] */
  2199. _In_ UINT StreamIndex,
  2200. /* [annotation] */
  2201. _In_ BOOL Enable,
  2202. /* [annotation] */
  2203. _In_ BOOL FlipHorizontal,
  2204. /* [annotation] */
  2205. _In_ BOOL FlipVertical);
  2206. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace1 )(
  2207. ID3D11VideoContext2 * This,
  2208. /* [annotation] */
  2209. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2210. /* [annotation] */
  2211. _In_ UINT StreamIndex,
  2212. /* [annotation] */
  2213. _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace);
  2214. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamMirror )(
  2215. ID3D11VideoContext2 * This,
  2216. /* [annotation] */
  2217. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2218. /* [annotation] */
  2219. _In_ UINT StreamIndex,
  2220. /* [annotation] */
  2221. _Out_ BOOL *pEnable,
  2222. /* [annotation] */
  2223. _Out_ BOOL *pFlipHorizontal,
  2224. /* [annotation] */
  2225. _Out_ BOOL *pFlipVertical);
  2226. HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetBehaviorHints )(
  2227. ID3D11VideoContext2 * This,
  2228. /* [annotation] */
  2229. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2230. /* [annotation] */
  2231. _In_ UINT OutputWidth,
  2232. /* [annotation] */
  2233. _In_ UINT OutputHeight,
  2234. /* [annotation] */
  2235. _In_ DXGI_FORMAT OutputFormat,
  2236. /* [annotation] */
  2237. _In_ UINT StreamCount,
  2238. /* [annotation] */
  2239. _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT *pStreams,
  2240. /* [annotation] */
  2241. _Out_ UINT *pBehaviorHints);
  2242. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputHDRMetaData )(
  2243. ID3D11VideoContext2 * This,
  2244. /* [annotation] */
  2245. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2246. /* [annotation] */
  2247. _In_ DXGI_HDR_METADATA_TYPE Type,
  2248. /* [annotation] */
  2249. _In_ UINT Size,
  2250. /* [annotation] */
  2251. _In_reads_bytes_opt_(Size) const void *pHDRMetaData);
  2252. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputHDRMetaData )(
  2253. ID3D11VideoContext2 * This,
  2254. /* [annotation] */
  2255. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2256. /* [annotation] */
  2257. _Out_ DXGI_HDR_METADATA_TYPE *pType,
  2258. /* [annotation] */
  2259. _In_ UINT Size,
  2260. /* [annotation] */
  2261. _Out_writes_bytes_opt_(Size) void *pMetaData);
  2262. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamHDRMetaData )(
  2263. ID3D11VideoContext2 * This,
  2264. /* [annotation] */
  2265. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2266. /* [annotation] */
  2267. _In_ UINT StreamIndex,
  2268. /* [annotation] */
  2269. _In_ DXGI_HDR_METADATA_TYPE Type,
  2270. /* [annotation] */
  2271. _In_ UINT Size,
  2272. /* [annotation] */
  2273. _In_reads_bytes_opt_(Size) const void *pHDRMetaData);
  2274. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamHDRMetaData )(
  2275. ID3D11VideoContext2 * This,
  2276. /* [annotation] */
  2277. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2278. /* [annotation] */
  2279. _In_ UINT StreamIndex,
  2280. /* [annotation] */
  2281. _Out_ DXGI_HDR_METADATA_TYPE *pType,
  2282. /* [annotation] */
  2283. _In_ UINT Size,
  2284. /* [annotation] */
  2285. _Out_writes_bytes_opt_(Size) void *pMetaData);
  2286. END_INTERFACE
  2287. } ID3D11VideoContext2Vtbl;
  2288. interface ID3D11VideoContext2
  2289. {
  2290. CONST_VTBL struct ID3D11VideoContext2Vtbl *lpVtbl;
  2291. };
  2292. #ifdef COBJMACROS
  2293. #define ID3D11VideoContext2_QueryInterface(This,riid,ppvObject) \
  2294. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  2295. #define ID3D11VideoContext2_AddRef(This) \
  2296. ( (This)->lpVtbl -> AddRef(This) )
  2297. #define ID3D11VideoContext2_Release(This) \
  2298. ( (This)->lpVtbl -> Release(This) )
  2299. #define ID3D11VideoContext2_GetDevice(This,ppDevice) \
  2300. ( (This)->lpVtbl -> GetDevice(This,ppDevice) )
  2301. #define ID3D11VideoContext2_GetPrivateData(This,guid,pDataSize,pData) \
  2302. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  2303. #define ID3D11VideoContext2_SetPrivateData(This,guid,DataSize,pData) \
  2304. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  2305. #define ID3D11VideoContext2_SetPrivateDataInterface(This,guid,pData) \
  2306. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  2307. #define ID3D11VideoContext2_GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) \
  2308. ( (This)->lpVtbl -> GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) )
  2309. #define ID3D11VideoContext2_ReleaseDecoderBuffer(This,pDecoder,Type) \
  2310. ( (This)->lpVtbl -> ReleaseDecoderBuffer(This,pDecoder,Type) )
  2311. #define ID3D11VideoContext2_DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) \
  2312. ( (This)->lpVtbl -> DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) )
  2313. #define ID3D11VideoContext2_DecoderEndFrame(This,pDecoder) \
  2314. ( (This)->lpVtbl -> DecoderEndFrame(This,pDecoder) )
  2315. #define ID3D11VideoContext2_SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) \
  2316. ( (This)->lpVtbl -> SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) )
  2317. #define ID3D11VideoContext2_DecoderExtension(This,pDecoder,pExtensionData) \
  2318. ( (This)->lpVtbl -> DecoderExtension(This,pDecoder,pExtensionData) )
  2319. #define ID3D11VideoContext2_VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) \
  2320. ( (This)->lpVtbl -> VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) )
  2321. #define ID3D11VideoContext2_VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) \
  2322. ( (This)->lpVtbl -> VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) )
  2323. #define ID3D11VideoContext2_VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) \
  2324. ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) )
  2325. #define ID3D11VideoContext2_VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) \
  2326. ( (This)->lpVtbl -> VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) )
  2327. #define ID3D11VideoContext2_VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) \
  2328. ( (This)->lpVtbl -> VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) )
  2329. #define ID3D11VideoContext2_VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) \
  2330. ( (This)->lpVtbl -> VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) )
  2331. #define ID3D11VideoContext2_VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \
  2332. ( (This)->lpVtbl -> VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) )
  2333. #define ID3D11VideoContext2_VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) \
  2334. ( (This)->lpVtbl -> VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) )
  2335. #define ID3D11VideoContext2_VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) \
  2336. ( (This)->lpVtbl -> VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) )
  2337. #define ID3D11VideoContext2_VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) \
  2338. ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) )
  2339. #define ID3D11VideoContext2_VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) \
  2340. ( (This)->lpVtbl -> VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) )
  2341. #define ID3D11VideoContext2_VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) \
  2342. ( (This)->lpVtbl -> VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) )
  2343. #define ID3D11VideoContext2_VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) \
  2344. ( (This)->lpVtbl -> VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) )
  2345. #define ID3D11VideoContext2_VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \
  2346. ( (This)->lpVtbl -> VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) )
  2347. #define ID3D11VideoContext2_VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) \
  2348. ( (This)->lpVtbl -> VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) )
  2349. #define ID3D11VideoContext2_VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \
  2350. ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) )
  2351. #define ID3D11VideoContext2_VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) \
  2352. ( (This)->lpVtbl -> VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) )
  2353. #define ID3D11VideoContext2_VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \
  2354. ( (This)->lpVtbl -> VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) )
  2355. #define ID3D11VideoContext2_VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \
  2356. ( (This)->lpVtbl -> VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) )
  2357. #define ID3D11VideoContext2_VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) \
  2358. ( (This)->lpVtbl -> VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) )
  2359. #define ID3D11VideoContext2_VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \
  2360. ( (This)->lpVtbl -> VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) )
  2361. #define ID3D11VideoContext2_VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) \
  2362. ( (This)->lpVtbl -> VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) )
  2363. #define ID3D11VideoContext2_VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) \
  2364. ( (This)->lpVtbl -> VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) )
  2365. #define ID3D11VideoContext2_VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) \
  2366. ( (This)->lpVtbl -> VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) )
  2367. #define ID3D11VideoContext2_VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) \
  2368. ( (This)->lpVtbl -> VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) )
  2369. #define ID3D11VideoContext2_VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) \
  2370. ( (This)->lpVtbl -> VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) )
  2371. #define ID3D11VideoContext2_VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \
  2372. ( (This)->lpVtbl -> VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) )
  2373. #define ID3D11VideoContext2_VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) \
  2374. ( (This)->lpVtbl -> VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) )
  2375. #define ID3D11VideoContext2_VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \
  2376. ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) )
  2377. #define ID3D11VideoContext2_VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) \
  2378. ( (This)->lpVtbl -> VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) )
  2379. #define ID3D11VideoContext2_VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \
  2380. ( (This)->lpVtbl -> VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) )
  2381. #define ID3D11VideoContext2_VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \
  2382. ( (This)->lpVtbl -> VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) )
  2383. #define ID3D11VideoContext2_VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) \
  2384. ( (This)->lpVtbl -> VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) )
  2385. #define ID3D11VideoContext2_VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \
  2386. ( (This)->lpVtbl -> VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) )
  2387. #define ID3D11VideoContext2_VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) \
  2388. ( (This)->lpVtbl -> VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) )
  2389. #define ID3D11VideoContext2_VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) \
  2390. ( (This)->lpVtbl -> VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) )
  2391. #define ID3D11VideoContext2_VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) \
  2392. ( (This)->lpVtbl -> VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) )
  2393. #define ID3D11VideoContext2_VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) \
  2394. ( (This)->lpVtbl -> VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) )
  2395. #define ID3D11VideoContext2_VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) \
  2396. ( (This)->lpVtbl -> VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) )
  2397. #define ID3D11VideoContext2_VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \
  2398. ( (This)->lpVtbl -> VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) )
  2399. #define ID3D11VideoContext2_VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) \
  2400. ( (This)->lpVtbl -> VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) )
  2401. #define ID3D11VideoContext2_NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) \
  2402. ( (This)->lpVtbl -> NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) )
  2403. #define ID3D11VideoContext2_EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) \
  2404. ( (This)->lpVtbl -> EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) )
  2405. #define ID3D11VideoContext2_DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) \
  2406. ( (This)->lpVtbl -> DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) )
  2407. #define ID3D11VideoContext2_StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) \
  2408. ( (This)->lpVtbl -> StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) )
  2409. #define ID3D11VideoContext2_FinishSessionKeyRefresh(This,pCryptoSession) \
  2410. ( (This)->lpVtbl -> FinishSessionKeyRefresh(This,pCryptoSession) )
  2411. #define ID3D11VideoContext2_GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) \
  2412. ( (This)->lpVtbl -> GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) )
  2413. #define ID3D11VideoContext2_NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) \
  2414. ( (This)->lpVtbl -> NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) )
  2415. #define ID3D11VideoContext2_QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) \
  2416. ( (This)->lpVtbl -> QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) )
  2417. #define ID3D11VideoContext2_ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) \
  2418. ( (This)->lpVtbl -> ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) )
  2419. #define ID3D11VideoContext2_VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) \
  2420. ( (This)->lpVtbl -> VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) )
  2421. #define ID3D11VideoContext2_VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) \
  2422. ( (This)->lpVtbl -> VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) )
  2423. #define ID3D11VideoContext2_SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) \
  2424. ( (This)->lpVtbl -> SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) )
  2425. #define ID3D11VideoContext2_GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) \
  2426. ( (This)->lpVtbl -> GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) )
  2427. #define ID3D11VideoContext2_CheckCryptoSessionStatus(This,pCryptoSession,pStatus) \
  2428. ( (This)->lpVtbl -> CheckCryptoSessionStatus(This,pCryptoSession,pStatus) )
  2429. #define ID3D11VideoContext2_DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) \
  2430. ( (This)->lpVtbl -> DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) )
  2431. #define ID3D11VideoContext2_DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) \
  2432. ( (This)->lpVtbl -> DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) )
  2433. #define ID3D11VideoContext2_VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) \
  2434. ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) )
  2435. #define ID3D11VideoContext2_VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) \
  2436. ( (This)->lpVtbl -> VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) )
  2437. #define ID3D11VideoContext2_VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) \
  2438. ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) )
  2439. #define ID3D11VideoContext2_VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) \
  2440. ( (This)->lpVtbl -> VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) )
  2441. #define ID3D11VideoContext2_VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) \
  2442. ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) )
  2443. #define ID3D11VideoContext2_VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) \
  2444. ( (This)->lpVtbl -> VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) )
  2445. #define ID3D11VideoContext2_VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) \
  2446. ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) )
  2447. #define ID3D11VideoContext2_VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) \
  2448. ( (This)->lpVtbl -> VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) )
  2449. #define ID3D11VideoContext2_VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) \
  2450. ( (This)->lpVtbl -> VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) )
  2451. #define ID3D11VideoContext2_VideoProcessorSetOutputHDRMetaData(This,pVideoProcessor,Type,Size,pHDRMetaData) \
  2452. ( (This)->lpVtbl -> VideoProcessorSetOutputHDRMetaData(This,pVideoProcessor,Type,Size,pHDRMetaData) )
  2453. #define ID3D11VideoContext2_VideoProcessorGetOutputHDRMetaData(This,pVideoProcessor,pType,Size,pMetaData) \
  2454. ( (This)->lpVtbl -> VideoProcessorGetOutputHDRMetaData(This,pVideoProcessor,pType,Size,pMetaData) )
  2455. #define ID3D11VideoContext2_VideoProcessorSetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,Type,Size,pHDRMetaData) \
  2456. ( (This)->lpVtbl -> VideoProcessorSetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,Type,Size,pHDRMetaData) )
  2457. #define ID3D11VideoContext2_VideoProcessorGetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,pType,Size,pMetaData) \
  2458. ( (This)->lpVtbl -> VideoProcessorGetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,pType,Size,pMetaData) )
  2459. #endif /* COBJMACROS */
  2460. #endif /* C style interface */
  2461. #endif /* __ID3D11VideoContext2_INTERFACE_DEFINED__ */
  2462. /* interface __MIDL_itf_d3d11_4_0000_0004 */
  2463. /* [local] */
  2464. typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS4
  2465. {
  2466. BOOL ExtendedNV12SharedTextureSupported;
  2467. } D3D11_FEATURE_DATA_D3D11_OPTIONS4;
  2468. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
  2469. #pragma endregion
  2470. DEFINE_GUID(IID_ID3D11Device4,0x8992ab71,0x02e6,0x4b8d,0xba,0x48,0xb0,0x56,0xdc,0xda,0x42,0xc4);
  2471. DEFINE_GUID(IID_ID3D11Device5,0x8ffde202,0xa0e7,0x45df,0x9e,0x01,0xe8,0x37,0x80,0x1b,0x5e,0xa0);
  2472. DEFINE_GUID(IID_ID3D11Multithread,0x9B7E4E00,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);
  2473. DEFINE_GUID(IID_ID3D11VideoContext2,0xC4E7374C,0x6243,0x4D1B,0xAE,0x87,0x52,0xB4,0xF7,0x40,0xE2,0x61);
  2474. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0004_v0_0_c_ifspec;
  2475. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0004_v0_0_s_ifspec;
  2476. /* Additional Prototypes for ALL interfaces */
  2477. /* end of Additional Prototypes */
  2478. #ifdef __cplusplus
  2479. }
  2480. #endif
  2481. #endif