d3d11_4.h 201 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759
  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__ 475
  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. #ifndef __ID3D11VideoDevice2_FWD_DEFINED__
  49. #define __ID3D11VideoDevice2_FWD_DEFINED__
  50. typedef interface ID3D11VideoDevice2 ID3D11VideoDevice2;
  51. #endif /* __ID3D11VideoDevice2_FWD_DEFINED__ */
  52. #ifndef __ID3D11VideoContext3_FWD_DEFINED__
  53. #define __ID3D11VideoContext3_FWD_DEFINED__
  54. typedef interface ID3D11VideoContext3 ID3D11VideoContext3;
  55. #endif /* __ID3D11VideoContext3_FWD_DEFINED__ */
  56. /* header files for imported files */
  57. #include "oaidl.h"
  58. #include "ocidl.h"
  59. #include "dxgi1_5.h"
  60. #include "d3dcommon.h"
  61. #include "d3d11_3.h"
  62. #ifdef __cplusplus
  63. extern "C"{
  64. #endif
  65. /* interface __MIDL_itf_d3d11_4_0000_0000 */
  66. /* [local] */
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #include "d3d11_3.h" //
  71. #ifdef __cplusplus
  72. extern "C"{
  73. #endif
  74. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0000_v0_0_c_ifspec;
  75. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0000_v0_0_s_ifspec;
  76. #ifndef __ID3D11Device4_INTERFACE_DEFINED__
  77. #define __ID3D11Device4_INTERFACE_DEFINED__
  78. /* interface ID3D11Device4 */
  79. /* [unique][local][object][uuid] */
  80. EXTERN_C const IID IID_ID3D11Device4;
  81. #if defined(__cplusplus) && !defined(CINTERFACE)
  82. MIDL_INTERFACE("8992ab71-02e6-4b8d-ba48-b056dcda42c4")
  83. ID3D11Device4 : public ID3D11Device3
  84. {
  85. public:
  86. virtual HRESULT STDMETHODCALLTYPE RegisterDeviceRemovedEvent(
  87. /* [annotation] */
  88. _In_ HANDLE hEvent,
  89. /* [annotation] */
  90. _Out_ DWORD *pdwCookie) = 0;
  91. virtual void STDMETHODCALLTYPE UnregisterDeviceRemoved(
  92. /* [annotation] */
  93. _In_ DWORD dwCookie) = 0;
  94. };
  95. #else /* C style interface */
  96. typedef struct ID3D11Device4Vtbl
  97. {
  98. BEGIN_INTERFACE
  99. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  100. ID3D11Device4 * This,
  101. /* [in] */ REFIID riid,
  102. /* [annotation][iid_is][out] */
  103. _COM_Outptr_ void **ppvObject);
  104. ULONG ( STDMETHODCALLTYPE *AddRef )(
  105. ID3D11Device4 * This);
  106. ULONG ( STDMETHODCALLTYPE *Release )(
  107. ID3D11Device4 * This);
  108. HRESULT ( STDMETHODCALLTYPE *CreateBuffer )(
  109. ID3D11Device4 * This,
  110. /* [annotation] */
  111. _In_ const D3D11_BUFFER_DESC *pDesc,
  112. /* [annotation] */
  113. _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData,
  114. /* [annotation] */
  115. _COM_Outptr_opt_ ID3D11Buffer **ppBuffer);
  116. HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )(
  117. ID3D11Device4 * This,
  118. /* [annotation] */
  119. _In_ const D3D11_TEXTURE1D_DESC *pDesc,
  120. /* [annotation] */
  121. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  122. /* [annotation] */
  123. _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D);
  124. HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )(
  125. ID3D11Device4 * This,
  126. /* [annotation] */
  127. _In_ const D3D11_TEXTURE2D_DESC *pDesc,
  128. /* [annotation] */
  129. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  130. /* [annotation] */
  131. _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D);
  132. HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )(
  133. ID3D11Device4 * This,
  134. /* [annotation] */
  135. _In_ const D3D11_TEXTURE3D_DESC *pDesc,
  136. /* [annotation] */
  137. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  138. /* [annotation] */
  139. _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D);
  140. HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  141. ID3D11Device4 * This,
  142. /* [annotation] */
  143. _In_ ID3D11Resource *pResource,
  144. /* [annotation] */
  145. _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
  146. /* [annotation] */
  147. _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView);
  148. HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  149. ID3D11Device4 * This,
  150. /* [annotation] */
  151. _In_ ID3D11Resource *pResource,
  152. /* [annotation] */
  153. _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  154. /* [annotation] */
  155. _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView);
  156. HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  157. ID3D11Device4 * This,
  158. /* [annotation] */
  159. _In_ ID3D11Resource *pResource,
  160. /* [annotation] */
  161. _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
  162. /* [annotation] */
  163. _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView);
  164. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  165. ID3D11Device4 * This,
  166. /* [annotation] */
  167. _In_ ID3D11Resource *pResource,
  168. /* [annotation] */
  169. _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
  170. /* [annotation] */
  171. _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView);
  172. HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )(
  173. ID3D11Device4 * This,
  174. /* [annotation] */
  175. _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
  176. /* [annotation] */
  177. _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements,
  178. /* [annotation] */
  179. _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature,
  180. /* [annotation] */
  181. _In_ SIZE_T BytecodeLength,
  182. /* [annotation] */
  183. _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout);
  184. HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )(
  185. ID3D11Device4 * This,
  186. /* [annotation] */
  187. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  188. /* [annotation] */
  189. _In_ SIZE_T BytecodeLength,
  190. /* [annotation] */
  191. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  192. /* [annotation] */
  193. _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader);
  194. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )(
  195. ID3D11Device4 * This,
  196. /* [annotation] */
  197. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  198. /* [annotation] */
  199. _In_ SIZE_T BytecodeLength,
  200. /* [annotation] */
  201. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  202. /* [annotation] */
  203. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  204. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )(
  205. ID3D11Device4 * This,
  206. /* [annotation] */
  207. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  208. /* [annotation] */
  209. _In_ SIZE_T BytecodeLength,
  210. /* [annotation] */
  211. _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
  212. /* [annotation] */
  213. _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries,
  214. /* [annotation] */
  215. _In_reads_opt_(NumStrides) const UINT *pBufferStrides,
  216. /* [annotation] */
  217. _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides,
  218. /* [annotation] */
  219. _In_ UINT RasterizedStream,
  220. /* [annotation] */
  221. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  222. /* [annotation] */
  223. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  224. HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )(
  225. ID3D11Device4 * This,
  226. /* [annotation] */
  227. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  228. /* [annotation] */
  229. _In_ SIZE_T BytecodeLength,
  230. /* [annotation] */
  231. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  232. /* [annotation] */
  233. _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader);
  234. HRESULT ( STDMETHODCALLTYPE *CreateHullShader )(
  235. ID3D11Device4 * This,
  236. /* [annotation] */
  237. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  238. /* [annotation] */
  239. _In_ SIZE_T BytecodeLength,
  240. /* [annotation] */
  241. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  242. /* [annotation] */
  243. _COM_Outptr_opt_ ID3D11HullShader **ppHullShader);
  244. HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )(
  245. ID3D11Device4 * This,
  246. /* [annotation] */
  247. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  248. /* [annotation] */
  249. _In_ SIZE_T BytecodeLength,
  250. /* [annotation] */
  251. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  252. /* [annotation] */
  253. _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader);
  254. HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )(
  255. ID3D11Device4 * This,
  256. /* [annotation] */
  257. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  258. /* [annotation] */
  259. _In_ SIZE_T BytecodeLength,
  260. /* [annotation] */
  261. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  262. /* [annotation] */
  263. _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader);
  264. HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )(
  265. ID3D11Device4 * This,
  266. /* [annotation] */
  267. _COM_Outptr_ ID3D11ClassLinkage **ppLinkage);
  268. HRESULT ( STDMETHODCALLTYPE *CreateBlendState )(
  269. ID3D11Device4 * This,
  270. /* [annotation] */
  271. _In_ const D3D11_BLEND_DESC *pBlendStateDesc,
  272. /* [annotation] */
  273. _COM_Outptr_opt_ ID3D11BlendState **ppBlendState);
  274. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )(
  275. ID3D11Device4 * This,
  276. /* [annotation] */
  277. _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
  278. /* [annotation] */
  279. _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState);
  280. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )(
  281. ID3D11Device4 * This,
  282. /* [annotation] */
  283. _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc,
  284. /* [annotation] */
  285. _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState);
  286. HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )(
  287. ID3D11Device4 * This,
  288. /* [annotation] */
  289. _In_ const D3D11_SAMPLER_DESC *pSamplerDesc,
  290. /* [annotation] */
  291. _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState);
  292. HRESULT ( STDMETHODCALLTYPE *CreateQuery )(
  293. ID3D11Device4 * This,
  294. /* [annotation] */
  295. _In_ const D3D11_QUERY_DESC *pQueryDesc,
  296. /* [annotation] */
  297. _COM_Outptr_opt_ ID3D11Query **ppQuery);
  298. HRESULT ( STDMETHODCALLTYPE *CreatePredicate )(
  299. ID3D11Device4 * This,
  300. /* [annotation] */
  301. _In_ const D3D11_QUERY_DESC *pPredicateDesc,
  302. /* [annotation] */
  303. _COM_Outptr_opt_ ID3D11Predicate **ppPredicate);
  304. HRESULT ( STDMETHODCALLTYPE *CreateCounter )(
  305. ID3D11Device4 * This,
  306. /* [annotation] */
  307. _In_ const D3D11_COUNTER_DESC *pCounterDesc,
  308. /* [annotation] */
  309. _COM_Outptr_opt_ ID3D11Counter **ppCounter);
  310. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )(
  311. ID3D11Device4 * This,
  312. UINT ContextFlags,
  313. /* [annotation] */
  314. _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext);
  315. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )(
  316. ID3D11Device4 * This,
  317. /* [annotation] */
  318. _In_ HANDLE hResource,
  319. /* [annotation] */
  320. _In_ REFIID ReturnedInterface,
  321. /* [annotation] */
  322. _COM_Outptr_opt_ void **ppResource);
  323. HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )(
  324. ID3D11Device4 * This,
  325. /* [annotation] */
  326. _In_ DXGI_FORMAT Format,
  327. /* [annotation] */
  328. _Out_ UINT *pFormatSupport);
  329. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )(
  330. ID3D11Device4 * This,
  331. /* [annotation] */
  332. _In_ DXGI_FORMAT Format,
  333. /* [annotation] */
  334. _In_ UINT SampleCount,
  335. /* [annotation] */
  336. _Out_ UINT *pNumQualityLevels);
  337. void ( STDMETHODCALLTYPE *CheckCounterInfo )(
  338. ID3D11Device4 * This,
  339. /* [annotation] */
  340. _Out_ D3D11_COUNTER_INFO *pCounterInfo);
  341. HRESULT ( STDMETHODCALLTYPE *CheckCounter )(
  342. ID3D11Device4 * This,
  343. /* [annotation] */
  344. _In_ const D3D11_COUNTER_DESC *pDesc,
  345. /* [annotation] */
  346. _Out_ D3D11_COUNTER_TYPE *pType,
  347. /* [annotation] */
  348. _Out_ UINT *pActiveCounters,
  349. /* [annotation] */
  350. _Out_writes_opt_(*pNameLength) LPSTR szName,
  351. /* [annotation] */
  352. _Inout_opt_ UINT *pNameLength,
  353. /* [annotation] */
  354. _Out_writes_opt_(*pUnitsLength) LPSTR szUnits,
  355. /* [annotation] */
  356. _Inout_opt_ UINT *pUnitsLength,
  357. /* [annotation] */
  358. _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription,
  359. /* [annotation] */
  360. _Inout_opt_ UINT *pDescriptionLength);
  361. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  362. ID3D11Device4 * This,
  363. D3D11_FEATURE Feature,
  364. /* [annotation] */
  365. _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  366. UINT FeatureSupportDataSize);
  367. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  368. ID3D11Device4 * This,
  369. /* [annotation] */
  370. _In_ REFGUID guid,
  371. /* [annotation] */
  372. _Inout_ UINT *pDataSize,
  373. /* [annotation] */
  374. _Out_writes_bytes_opt_(*pDataSize) void *pData);
  375. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  376. ID3D11Device4 * This,
  377. /* [annotation] */
  378. _In_ REFGUID guid,
  379. /* [annotation] */
  380. _In_ UINT DataSize,
  381. /* [annotation] */
  382. _In_reads_bytes_opt_(DataSize) const void *pData);
  383. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  384. ID3D11Device4 * This,
  385. /* [annotation] */
  386. _In_ REFGUID guid,
  387. /* [annotation] */
  388. _In_opt_ const IUnknown *pData);
  389. D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )(
  390. ID3D11Device4 * This);
  391. UINT ( STDMETHODCALLTYPE *GetCreationFlags )(
  392. ID3D11Device4 * This);
  393. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  394. ID3D11Device4 * This);
  395. void ( STDMETHODCALLTYPE *GetImmediateContext )(
  396. ID3D11Device4 * This,
  397. /* [annotation] */
  398. _Outptr_ ID3D11DeviceContext **ppImmediateContext);
  399. HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )(
  400. ID3D11Device4 * This,
  401. UINT RaiseFlags);
  402. UINT ( STDMETHODCALLTYPE *GetExceptionMode )(
  403. ID3D11Device4 * This);
  404. void ( STDMETHODCALLTYPE *GetImmediateContext1 )(
  405. ID3D11Device4 * This,
  406. /* [annotation] */
  407. _Outptr_ ID3D11DeviceContext1 **ppImmediateContext);
  408. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )(
  409. ID3D11Device4 * This,
  410. UINT ContextFlags,
  411. /* [annotation] */
  412. _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext);
  413. HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )(
  414. ID3D11Device4 * This,
  415. /* [annotation] */
  416. _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc,
  417. /* [annotation] */
  418. _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState);
  419. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )(
  420. ID3D11Device4 * This,
  421. /* [annotation] */
  422. _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc,
  423. /* [annotation] */
  424. _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState);
  425. HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )(
  426. ID3D11Device4 * This,
  427. UINT Flags,
  428. /* [annotation] */
  429. _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels,
  430. UINT FeatureLevels,
  431. UINT SDKVersion,
  432. REFIID EmulatedInterface,
  433. /* [annotation] */
  434. _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel,
  435. /* [annotation] */
  436. _Out_opt_ ID3DDeviceContextState **ppContextState);
  437. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )(
  438. ID3D11Device4 * This,
  439. /* [annotation] */
  440. _In_ HANDLE hResource,
  441. /* [annotation] */
  442. _In_ REFIID returnedInterface,
  443. /* [annotation] */
  444. _COM_Outptr_ void **ppResource);
  445. HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )(
  446. ID3D11Device4 * This,
  447. /* [annotation] */
  448. _In_ LPCWSTR lpName,
  449. /* [annotation] */
  450. _In_ DWORD dwDesiredAccess,
  451. /* [annotation] */
  452. _In_ REFIID returnedInterface,
  453. /* [annotation] */
  454. _COM_Outptr_ void **ppResource);
  455. void ( STDMETHODCALLTYPE *GetImmediateContext2 )(
  456. ID3D11Device4 * This,
  457. /* [annotation] */
  458. _Outptr_ ID3D11DeviceContext2 **ppImmediateContext);
  459. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext2 )(
  460. ID3D11Device4 * This,
  461. UINT ContextFlags,
  462. /* [annotation] */
  463. _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext);
  464. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  465. ID3D11Device4 * This,
  466. /* [annotation] */
  467. _In_ ID3D11Resource *pTiledResource,
  468. /* [annotation] */
  469. _Out_opt_ UINT *pNumTilesForEntireResource,
  470. /* [annotation] */
  471. _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc,
  472. /* [annotation] */
  473. _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  474. /* [annotation] */
  475. _Inout_opt_ UINT *pNumSubresourceTilings,
  476. /* [annotation] */
  477. _In_ UINT FirstSubresourceTilingToGet,
  478. /* [annotation] */
  479. _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  480. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels1 )(
  481. ID3D11Device4 * This,
  482. /* [annotation] */
  483. _In_ DXGI_FORMAT Format,
  484. /* [annotation] */
  485. _In_ UINT SampleCount,
  486. /* [annotation] */
  487. _In_ UINT Flags,
  488. /* [annotation] */
  489. _Out_ UINT *pNumQualityLevels);
  490. HRESULT ( STDMETHODCALLTYPE *CreateTexture2D1 )(
  491. ID3D11Device4 * This,
  492. /* [annotation] */
  493. _In_ const D3D11_TEXTURE2D_DESC1 *pDesc1,
  494. /* [annotation] */
  495. _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels * pDesc1->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  496. /* [annotation] */
  497. _COM_Outptr_opt_ ID3D11Texture2D1 **ppTexture2D);
  498. HRESULT ( STDMETHODCALLTYPE *CreateTexture3D1 )(
  499. ID3D11Device4 * This,
  500. /* [annotation] */
  501. _In_ const D3D11_TEXTURE3D_DESC1 *pDesc1,
  502. /* [annotation] */
  503. _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  504. /* [annotation] */
  505. _COM_Outptr_opt_ ID3D11Texture3D1 **ppTexture3D);
  506. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState2 )(
  507. ID3D11Device4 * This,
  508. /* [annotation] */
  509. _In_ const D3D11_RASTERIZER_DESC2 *pRasterizerDesc,
  510. /* [annotation] */
  511. _COM_Outptr_opt_ ID3D11RasterizerState2 **ppRasterizerState);
  512. HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView1 )(
  513. ID3D11Device4 * This,
  514. /* [annotation] */
  515. _In_ ID3D11Resource *pResource,
  516. /* [annotation] */
  517. _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC1 *pDesc1,
  518. /* [annotation] */
  519. _COM_Outptr_opt_ ID3D11ShaderResourceView1 **ppSRView1);
  520. HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView1 )(
  521. ID3D11Device4 * This,
  522. /* [annotation] */
  523. _In_ ID3D11Resource *pResource,
  524. /* [annotation] */
  525. _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC1 *pDesc1,
  526. /* [annotation] */
  527. _COM_Outptr_opt_ ID3D11UnorderedAccessView1 **ppUAView1);
  528. HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView1 )(
  529. ID3D11Device4 * This,
  530. /* [annotation] */
  531. _In_ ID3D11Resource *pResource,
  532. /* [annotation] */
  533. _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC1 *pDesc1,
  534. /* [annotation] */
  535. _COM_Outptr_opt_ ID3D11RenderTargetView1 **ppRTView1);
  536. HRESULT ( STDMETHODCALLTYPE *CreateQuery1 )(
  537. ID3D11Device4 * This,
  538. /* [annotation] */
  539. _In_ const D3D11_QUERY_DESC1 *pQueryDesc1,
  540. /* [annotation] */
  541. _COM_Outptr_opt_ ID3D11Query1 **ppQuery1);
  542. void ( STDMETHODCALLTYPE *GetImmediateContext3 )(
  543. ID3D11Device4 * This,
  544. /* [annotation] */
  545. _Outptr_ ID3D11DeviceContext3 **ppImmediateContext);
  546. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext3 )(
  547. ID3D11Device4 * This,
  548. UINT ContextFlags,
  549. /* [annotation] */
  550. _COM_Outptr_opt_ ID3D11DeviceContext3 **ppDeferredContext);
  551. void ( STDMETHODCALLTYPE *WriteToSubresource )(
  552. ID3D11Device4 * This,
  553. /* [annotation] */
  554. _In_ ID3D11Resource *pDstResource,
  555. /* [annotation] */
  556. _In_ UINT DstSubresource,
  557. /* [annotation] */
  558. _In_opt_ const D3D11_BOX *pDstBox,
  559. /* [annotation] */
  560. _In_ const void *pSrcData,
  561. /* [annotation] */
  562. _In_ UINT SrcRowPitch,
  563. /* [annotation] */
  564. _In_ UINT SrcDepthPitch);
  565. void ( STDMETHODCALLTYPE *ReadFromSubresource )(
  566. ID3D11Device4 * This,
  567. /* [annotation] */
  568. _Out_ void *pDstData,
  569. /* [annotation] */
  570. _In_ UINT DstRowPitch,
  571. /* [annotation] */
  572. _In_ UINT DstDepthPitch,
  573. /* [annotation] */
  574. _In_ ID3D11Resource *pSrcResource,
  575. /* [annotation] */
  576. _In_ UINT SrcSubresource,
  577. /* [annotation] */
  578. _In_opt_ const D3D11_BOX *pSrcBox);
  579. HRESULT ( STDMETHODCALLTYPE *RegisterDeviceRemovedEvent )(
  580. ID3D11Device4 * This,
  581. /* [annotation] */
  582. _In_ HANDLE hEvent,
  583. /* [annotation] */
  584. _Out_ DWORD *pdwCookie);
  585. void ( STDMETHODCALLTYPE *UnregisterDeviceRemoved )(
  586. ID3D11Device4 * This,
  587. /* [annotation] */
  588. _In_ DWORD dwCookie);
  589. END_INTERFACE
  590. } ID3D11Device4Vtbl;
  591. interface ID3D11Device4
  592. {
  593. CONST_VTBL struct ID3D11Device4Vtbl *lpVtbl;
  594. };
  595. #ifdef COBJMACROS
  596. #define ID3D11Device4_QueryInterface(This,riid,ppvObject) \
  597. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  598. #define ID3D11Device4_AddRef(This) \
  599. ( (This)->lpVtbl -> AddRef(This) )
  600. #define ID3D11Device4_Release(This) \
  601. ( (This)->lpVtbl -> Release(This) )
  602. #define ID3D11Device4_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \
  603. ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) )
  604. #define ID3D11Device4_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \
  605. ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) )
  606. #define ID3D11Device4_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \
  607. ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) )
  608. #define ID3D11Device4_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \
  609. ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) )
  610. #define ID3D11Device4_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \
  611. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) )
  612. #define ID3D11Device4_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \
  613. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) )
  614. #define ID3D11Device4_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \
  615. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) )
  616. #define ID3D11Device4_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \
  617. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) )
  618. #define ID3D11Device4_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \
  619. ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) )
  620. #define ID3D11Device4_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \
  621. ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) )
  622. #define ID3D11Device4_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \
  623. ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) )
  624. #define ID3D11Device4_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \
  625. ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) )
  626. #define ID3D11Device4_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \
  627. ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) )
  628. #define ID3D11Device4_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \
  629. ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) )
  630. #define ID3D11Device4_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \
  631. ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) )
  632. #define ID3D11Device4_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \
  633. ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) )
  634. #define ID3D11Device4_CreateClassLinkage(This,ppLinkage) \
  635. ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) )
  636. #define ID3D11Device4_CreateBlendState(This,pBlendStateDesc,ppBlendState) \
  637. ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) )
  638. #define ID3D11Device4_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \
  639. ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) )
  640. #define ID3D11Device4_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \
  641. ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) )
  642. #define ID3D11Device4_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \
  643. ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) )
  644. #define ID3D11Device4_CreateQuery(This,pQueryDesc,ppQuery) \
  645. ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) )
  646. #define ID3D11Device4_CreatePredicate(This,pPredicateDesc,ppPredicate) \
  647. ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) )
  648. #define ID3D11Device4_CreateCounter(This,pCounterDesc,ppCounter) \
  649. ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) )
  650. #define ID3D11Device4_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \
  651. ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) )
  652. #define ID3D11Device4_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \
  653. ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) )
  654. #define ID3D11Device4_CheckFormatSupport(This,Format,pFormatSupport) \
  655. ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) )
  656. #define ID3D11Device4_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \
  657. ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) )
  658. #define ID3D11Device4_CheckCounterInfo(This,pCounterInfo) \
  659. ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) )
  660. #define ID3D11Device4_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \
  661. ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) )
  662. #define ID3D11Device4_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  663. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  664. #define ID3D11Device4_GetPrivateData(This,guid,pDataSize,pData) \
  665. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  666. #define ID3D11Device4_SetPrivateData(This,guid,DataSize,pData) \
  667. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  668. #define ID3D11Device4_SetPrivateDataInterface(This,guid,pData) \
  669. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  670. #define ID3D11Device4_GetFeatureLevel(This) \
  671. ( (This)->lpVtbl -> GetFeatureLevel(This) )
  672. #define ID3D11Device4_GetCreationFlags(This) \
  673. ( (This)->lpVtbl -> GetCreationFlags(This) )
  674. #define ID3D11Device4_GetDeviceRemovedReason(This) \
  675. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  676. #define ID3D11Device4_GetImmediateContext(This,ppImmediateContext) \
  677. ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) )
  678. #define ID3D11Device4_SetExceptionMode(This,RaiseFlags) \
  679. ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) )
  680. #define ID3D11Device4_GetExceptionMode(This) \
  681. ( (This)->lpVtbl -> GetExceptionMode(This) )
  682. #define ID3D11Device4_GetImmediateContext1(This,ppImmediateContext) \
  683. ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) )
  684. #define ID3D11Device4_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \
  685. ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) )
  686. #define ID3D11Device4_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \
  687. ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) )
  688. #define ID3D11Device4_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \
  689. ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) )
  690. #define ID3D11Device4_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \
  691. ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) )
  692. #define ID3D11Device4_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \
  693. ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) )
  694. #define ID3D11Device4_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \
  695. ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) )
  696. #define ID3D11Device4_GetImmediateContext2(This,ppImmediateContext) \
  697. ( (This)->lpVtbl -> GetImmediateContext2(This,ppImmediateContext) )
  698. #define ID3D11Device4_CreateDeferredContext2(This,ContextFlags,ppDeferredContext) \
  699. ( (This)->lpVtbl -> CreateDeferredContext2(This,ContextFlags,ppDeferredContext) )
  700. #define ID3D11Device4_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  701. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  702. #define ID3D11Device4_CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) \
  703. ( (This)->lpVtbl -> CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) )
  704. #define ID3D11Device4_CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) \
  705. ( (This)->lpVtbl -> CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) )
  706. #define ID3D11Device4_CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) \
  707. ( (This)->lpVtbl -> CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) )
  708. #define ID3D11Device4_CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) \
  709. ( (This)->lpVtbl -> CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) )
  710. #define ID3D11Device4_CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) \
  711. ( (This)->lpVtbl -> CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) )
  712. #define ID3D11Device4_CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) \
  713. ( (This)->lpVtbl -> CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) )
  714. #define ID3D11Device4_CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) \
  715. ( (This)->lpVtbl -> CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) )
  716. #define ID3D11Device4_CreateQuery1(This,pQueryDesc1,ppQuery1) \
  717. ( (This)->lpVtbl -> CreateQuery1(This,pQueryDesc1,ppQuery1) )
  718. #define ID3D11Device4_GetImmediateContext3(This,ppImmediateContext) \
  719. ( (This)->lpVtbl -> GetImmediateContext3(This,ppImmediateContext) )
  720. #define ID3D11Device4_CreateDeferredContext3(This,ContextFlags,ppDeferredContext) \
  721. ( (This)->lpVtbl -> CreateDeferredContext3(This,ContextFlags,ppDeferredContext) )
  722. #define ID3D11Device4_WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  723. ( (This)->lpVtbl -> WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  724. #define ID3D11Device4_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) \
  725. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) )
  726. #define ID3D11Device4_RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) \
  727. ( (This)->lpVtbl -> RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) )
  728. #define ID3D11Device4_UnregisterDeviceRemoved(This,dwCookie) \
  729. ( (This)->lpVtbl -> UnregisterDeviceRemoved(This,dwCookie) )
  730. #endif /* COBJMACROS */
  731. #endif /* C style interface */
  732. #endif /* __ID3D11Device4_INTERFACE_DEFINED__ */
  733. #ifndef __ID3D11Device5_INTERFACE_DEFINED__
  734. #define __ID3D11Device5_INTERFACE_DEFINED__
  735. /* interface ID3D11Device5 */
  736. /* [unique][local][object][uuid] */
  737. EXTERN_C const IID IID_ID3D11Device5;
  738. #if defined(__cplusplus) && !defined(CINTERFACE)
  739. MIDL_INTERFACE("8ffde202-a0e7-45df-9e01-e837801b5ea0")
  740. ID3D11Device5 : public ID3D11Device4
  741. {
  742. public:
  743. virtual HRESULT STDMETHODCALLTYPE OpenSharedFence(
  744. /* [annotation] */
  745. _In_ HANDLE hFence,
  746. /* [annotation] */
  747. _In_ REFIID ReturnedInterface,
  748. /* [annotation] */
  749. _COM_Outptr_opt_ void **ppFence) = 0;
  750. virtual HRESULT STDMETHODCALLTYPE CreateFence(
  751. /* [annotation] */
  752. _In_ UINT64 InitialValue,
  753. /* [annotation] */
  754. _In_ D3D11_FENCE_FLAG Flags,
  755. /* [annotation] */
  756. _In_ REFIID ReturnedInterface,
  757. /* [annotation] */
  758. _COM_Outptr_opt_ void **ppFence) = 0;
  759. };
  760. #else /* C style interface */
  761. typedef struct ID3D11Device5Vtbl
  762. {
  763. BEGIN_INTERFACE
  764. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  765. ID3D11Device5 * This,
  766. /* [in] */ REFIID riid,
  767. /* [annotation][iid_is][out] */
  768. _COM_Outptr_ void **ppvObject);
  769. ULONG ( STDMETHODCALLTYPE *AddRef )(
  770. ID3D11Device5 * This);
  771. ULONG ( STDMETHODCALLTYPE *Release )(
  772. ID3D11Device5 * This);
  773. HRESULT ( STDMETHODCALLTYPE *CreateBuffer )(
  774. ID3D11Device5 * This,
  775. /* [annotation] */
  776. _In_ const D3D11_BUFFER_DESC *pDesc,
  777. /* [annotation] */
  778. _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData,
  779. /* [annotation] */
  780. _COM_Outptr_opt_ ID3D11Buffer **ppBuffer);
  781. HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )(
  782. ID3D11Device5 * This,
  783. /* [annotation] */
  784. _In_ const D3D11_TEXTURE1D_DESC *pDesc,
  785. /* [annotation] */
  786. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  787. /* [annotation] */
  788. _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D);
  789. HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )(
  790. ID3D11Device5 * This,
  791. /* [annotation] */
  792. _In_ const D3D11_TEXTURE2D_DESC *pDesc,
  793. /* [annotation] */
  794. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  795. /* [annotation] */
  796. _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D);
  797. HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )(
  798. ID3D11Device5 * This,
  799. /* [annotation] */
  800. _In_ const D3D11_TEXTURE3D_DESC *pDesc,
  801. /* [annotation] */
  802. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  803. /* [annotation] */
  804. _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D);
  805. HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  806. ID3D11Device5 * This,
  807. /* [annotation] */
  808. _In_ ID3D11Resource *pResource,
  809. /* [annotation] */
  810. _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
  811. /* [annotation] */
  812. _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView);
  813. HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  814. ID3D11Device5 * This,
  815. /* [annotation] */
  816. _In_ ID3D11Resource *pResource,
  817. /* [annotation] */
  818. _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  819. /* [annotation] */
  820. _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView);
  821. HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  822. ID3D11Device5 * This,
  823. /* [annotation] */
  824. _In_ ID3D11Resource *pResource,
  825. /* [annotation] */
  826. _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
  827. /* [annotation] */
  828. _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView);
  829. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  830. ID3D11Device5 * This,
  831. /* [annotation] */
  832. _In_ ID3D11Resource *pResource,
  833. /* [annotation] */
  834. _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
  835. /* [annotation] */
  836. _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView);
  837. HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )(
  838. ID3D11Device5 * This,
  839. /* [annotation] */
  840. _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
  841. /* [annotation] */
  842. _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements,
  843. /* [annotation] */
  844. _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature,
  845. /* [annotation] */
  846. _In_ SIZE_T BytecodeLength,
  847. /* [annotation] */
  848. _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout);
  849. HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )(
  850. ID3D11Device5 * This,
  851. /* [annotation] */
  852. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  853. /* [annotation] */
  854. _In_ SIZE_T BytecodeLength,
  855. /* [annotation] */
  856. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  857. /* [annotation] */
  858. _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader);
  859. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )(
  860. ID3D11Device5 * This,
  861. /* [annotation] */
  862. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  863. /* [annotation] */
  864. _In_ SIZE_T BytecodeLength,
  865. /* [annotation] */
  866. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  867. /* [annotation] */
  868. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  869. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )(
  870. ID3D11Device5 * This,
  871. /* [annotation] */
  872. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  873. /* [annotation] */
  874. _In_ SIZE_T BytecodeLength,
  875. /* [annotation] */
  876. _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
  877. /* [annotation] */
  878. _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries,
  879. /* [annotation] */
  880. _In_reads_opt_(NumStrides) const UINT *pBufferStrides,
  881. /* [annotation] */
  882. _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides,
  883. /* [annotation] */
  884. _In_ UINT RasterizedStream,
  885. /* [annotation] */
  886. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  887. /* [annotation] */
  888. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  889. HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )(
  890. ID3D11Device5 * This,
  891. /* [annotation] */
  892. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  893. /* [annotation] */
  894. _In_ SIZE_T BytecodeLength,
  895. /* [annotation] */
  896. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  897. /* [annotation] */
  898. _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader);
  899. HRESULT ( STDMETHODCALLTYPE *CreateHullShader )(
  900. ID3D11Device5 * This,
  901. /* [annotation] */
  902. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  903. /* [annotation] */
  904. _In_ SIZE_T BytecodeLength,
  905. /* [annotation] */
  906. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  907. /* [annotation] */
  908. _COM_Outptr_opt_ ID3D11HullShader **ppHullShader);
  909. HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )(
  910. ID3D11Device5 * This,
  911. /* [annotation] */
  912. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  913. /* [annotation] */
  914. _In_ SIZE_T BytecodeLength,
  915. /* [annotation] */
  916. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  917. /* [annotation] */
  918. _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader);
  919. HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )(
  920. ID3D11Device5 * This,
  921. /* [annotation] */
  922. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  923. /* [annotation] */
  924. _In_ SIZE_T BytecodeLength,
  925. /* [annotation] */
  926. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  927. /* [annotation] */
  928. _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader);
  929. HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )(
  930. ID3D11Device5 * This,
  931. /* [annotation] */
  932. _COM_Outptr_ ID3D11ClassLinkage **ppLinkage);
  933. HRESULT ( STDMETHODCALLTYPE *CreateBlendState )(
  934. ID3D11Device5 * This,
  935. /* [annotation] */
  936. _In_ const D3D11_BLEND_DESC *pBlendStateDesc,
  937. /* [annotation] */
  938. _COM_Outptr_opt_ ID3D11BlendState **ppBlendState);
  939. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )(
  940. ID3D11Device5 * This,
  941. /* [annotation] */
  942. _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
  943. /* [annotation] */
  944. _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState);
  945. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )(
  946. ID3D11Device5 * This,
  947. /* [annotation] */
  948. _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc,
  949. /* [annotation] */
  950. _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState);
  951. HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )(
  952. ID3D11Device5 * This,
  953. /* [annotation] */
  954. _In_ const D3D11_SAMPLER_DESC *pSamplerDesc,
  955. /* [annotation] */
  956. _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState);
  957. HRESULT ( STDMETHODCALLTYPE *CreateQuery )(
  958. ID3D11Device5 * This,
  959. /* [annotation] */
  960. _In_ const D3D11_QUERY_DESC *pQueryDesc,
  961. /* [annotation] */
  962. _COM_Outptr_opt_ ID3D11Query **ppQuery);
  963. HRESULT ( STDMETHODCALLTYPE *CreatePredicate )(
  964. ID3D11Device5 * This,
  965. /* [annotation] */
  966. _In_ const D3D11_QUERY_DESC *pPredicateDesc,
  967. /* [annotation] */
  968. _COM_Outptr_opt_ ID3D11Predicate **ppPredicate);
  969. HRESULT ( STDMETHODCALLTYPE *CreateCounter )(
  970. ID3D11Device5 * This,
  971. /* [annotation] */
  972. _In_ const D3D11_COUNTER_DESC *pCounterDesc,
  973. /* [annotation] */
  974. _COM_Outptr_opt_ ID3D11Counter **ppCounter);
  975. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )(
  976. ID3D11Device5 * This,
  977. UINT ContextFlags,
  978. /* [annotation] */
  979. _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext);
  980. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )(
  981. ID3D11Device5 * This,
  982. /* [annotation] */
  983. _In_ HANDLE hResource,
  984. /* [annotation] */
  985. _In_ REFIID ReturnedInterface,
  986. /* [annotation] */
  987. _COM_Outptr_opt_ void **ppResource);
  988. HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )(
  989. ID3D11Device5 * This,
  990. /* [annotation] */
  991. _In_ DXGI_FORMAT Format,
  992. /* [annotation] */
  993. _Out_ UINT *pFormatSupport);
  994. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )(
  995. ID3D11Device5 * This,
  996. /* [annotation] */
  997. _In_ DXGI_FORMAT Format,
  998. /* [annotation] */
  999. _In_ UINT SampleCount,
  1000. /* [annotation] */
  1001. _Out_ UINT *pNumQualityLevels);
  1002. void ( STDMETHODCALLTYPE *CheckCounterInfo )(
  1003. ID3D11Device5 * This,
  1004. /* [annotation] */
  1005. _Out_ D3D11_COUNTER_INFO *pCounterInfo);
  1006. HRESULT ( STDMETHODCALLTYPE *CheckCounter )(
  1007. ID3D11Device5 * This,
  1008. /* [annotation] */
  1009. _In_ const D3D11_COUNTER_DESC *pDesc,
  1010. /* [annotation] */
  1011. _Out_ D3D11_COUNTER_TYPE *pType,
  1012. /* [annotation] */
  1013. _Out_ UINT *pActiveCounters,
  1014. /* [annotation] */
  1015. _Out_writes_opt_(*pNameLength) LPSTR szName,
  1016. /* [annotation] */
  1017. _Inout_opt_ UINT *pNameLength,
  1018. /* [annotation] */
  1019. _Out_writes_opt_(*pUnitsLength) LPSTR szUnits,
  1020. /* [annotation] */
  1021. _Inout_opt_ UINT *pUnitsLength,
  1022. /* [annotation] */
  1023. _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription,
  1024. /* [annotation] */
  1025. _Inout_opt_ UINT *pDescriptionLength);
  1026. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  1027. ID3D11Device5 * This,
  1028. D3D11_FEATURE Feature,
  1029. /* [annotation] */
  1030. _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  1031. UINT FeatureSupportDataSize);
  1032. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1033. ID3D11Device5 * This,
  1034. /* [annotation] */
  1035. _In_ REFGUID guid,
  1036. /* [annotation] */
  1037. _Inout_ UINT *pDataSize,
  1038. /* [annotation] */
  1039. _Out_writes_bytes_opt_(*pDataSize) void *pData);
  1040. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1041. ID3D11Device5 * This,
  1042. /* [annotation] */
  1043. _In_ REFGUID guid,
  1044. /* [annotation] */
  1045. _In_ UINT DataSize,
  1046. /* [annotation] */
  1047. _In_reads_bytes_opt_(DataSize) const void *pData);
  1048. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1049. ID3D11Device5 * This,
  1050. /* [annotation] */
  1051. _In_ REFGUID guid,
  1052. /* [annotation] */
  1053. _In_opt_ const IUnknown *pData);
  1054. D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )(
  1055. ID3D11Device5 * This);
  1056. UINT ( STDMETHODCALLTYPE *GetCreationFlags )(
  1057. ID3D11Device5 * This);
  1058. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  1059. ID3D11Device5 * This);
  1060. void ( STDMETHODCALLTYPE *GetImmediateContext )(
  1061. ID3D11Device5 * This,
  1062. /* [annotation] */
  1063. _Outptr_ ID3D11DeviceContext **ppImmediateContext);
  1064. HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )(
  1065. ID3D11Device5 * This,
  1066. UINT RaiseFlags);
  1067. UINT ( STDMETHODCALLTYPE *GetExceptionMode )(
  1068. ID3D11Device5 * This);
  1069. void ( STDMETHODCALLTYPE *GetImmediateContext1 )(
  1070. ID3D11Device5 * This,
  1071. /* [annotation] */
  1072. _Outptr_ ID3D11DeviceContext1 **ppImmediateContext);
  1073. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )(
  1074. ID3D11Device5 * This,
  1075. UINT ContextFlags,
  1076. /* [annotation] */
  1077. _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext);
  1078. HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )(
  1079. ID3D11Device5 * This,
  1080. /* [annotation] */
  1081. _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc,
  1082. /* [annotation] */
  1083. _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState);
  1084. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )(
  1085. ID3D11Device5 * This,
  1086. /* [annotation] */
  1087. _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc,
  1088. /* [annotation] */
  1089. _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState);
  1090. HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )(
  1091. ID3D11Device5 * This,
  1092. UINT Flags,
  1093. /* [annotation] */
  1094. _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels,
  1095. UINT FeatureLevels,
  1096. UINT SDKVersion,
  1097. REFIID EmulatedInterface,
  1098. /* [annotation] */
  1099. _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel,
  1100. /* [annotation] */
  1101. _Out_opt_ ID3DDeviceContextState **ppContextState);
  1102. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )(
  1103. ID3D11Device5 * This,
  1104. /* [annotation] */
  1105. _In_ HANDLE hResource,
  1106. /* [annotation] */
  1107. _In_ REFIID returnedInterface,
  1108. /* [annotation] */
  1109. _COM_Outptr_ void **ppResource);
  1110. HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )(
  1111. ID3D11Device5 * This,
  1112. /* [annotation] */
  1113. _In_ LPCWSTR lpName,
  1114. /* [annotation] */
  1115. _In_ DWORD dwDesiredAccess,
  1116. /* [annotation] */
  1117. _In_ REFIID returnedInterface,
  1118. /* [annotation] */
  1119. _COM_Outptr_ void **ppResource);
  1120. void ( STDMETHODCALLTYPE *GetImmediateContext2 )(
  1121. ID3D11Device5 * This,
  1122. /* [annotation] */
  1123. _Outptr_ ID3D11DeviceContext2 **ppImmediateContext);
  1124. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext2 )(
  1125. ID3D11Device5 * This,
  1126. UINT ContextFlags,
  1127. /* [annotation] */
  1128. _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext);
  1129. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  1130. ID3D11Device5 * This,
  1131. /* [annotation] */
  1132. _In_ ID3D11Resource *pTiledResource,
  1133. /* [annotation] */
  1134. _Out_opt_ UINT *pNumTilesForEntireResource,
  1135. /* [annotation] */
  1136. _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc,
  1137. /* [annotation] */
  1138. _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  1139. /* [annotation] */
  1140. _Inout_opt_ UINT *pNumSubresourceTilings,
  1141. /* [annotation] */
  1142. _In_ UINT FirstSubresourceTilingToGet,
  1143. /* [annotation] */
  1144. _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  1145. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels1 )(
  1146. ID3D11Device5 * This,
  1147. /* [annotation] */
  1148. _In_ DXGI_FORMAT Format,
  1149. /* [annotation] */
  1150. _In_ UINT SampleCount,
  1151. /* [annotation] */
  1152. _In_ UINT Flags,
  1153. /* [annotation] */
  1154. _Out_ UINT *pNumQualityLevels);
  1155. HRESULT ( STDMETHODCALLTYPE *CreateTexture2D1 )(
  1156. ID3D11Device5 * This,
  1157. /* [annotation] */
  1158. _In_ const D3D11_TEXTURE2D_DESC1 *pDesc1,
  1159. /* [annotation] */
  1160. _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels * pDesc1->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  1161. /* [annotation] */
  1162. _COM_Outptr_opt_ ID3D11Texture2D1 **ppTexture2D);
  1163. HRESULT ( STDMETHODCALLTYPE *CreateTexture3D1 )(
  1164. ID3D11Device5 * This,
  1165. /* [annotation] */
  1166. _In_ const D3D11_TEXTURE3D_DESC1 *pDesc1,
  1167. /* [annotation] */
  1168. _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  1169. /* [annotation] */
  1170. _COM_Outptr_opt_ ID3D11Texture3D1 **ppTexture3D);
  1171. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState2 )(
  1172. ID3D11Device5 * This,
  1173. /* [annotation] */
  1174. _In_ const D3D11_RASTERIZER_DESC2 *pRasterizerDesc,
  1175. /* [annotation] */
  1176. _COM_Outptr_opt_ ID3D11RasterizerState2 **ppRasterizerState);
  1177. HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView1 )(
  1178. ID3D11Device5 * This,
  1179. /* [annotation] */
  1180. _In_ ID3D11Resource *pResource,
  1181. /* [annotation] */
  1182. _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC1 *pDesc1,
  1183. /* [annotation] */
  1184. _COM_Outptr_opt_ ID3D11ShaderResourceView1 **ppSRView1);
  1185. HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView1 )(
  1186. ID3D11Device5 * This,
  1187. /* [annotation] */
  1188. _In_ ID3D11Resource *pResource,
  1189. /* [annotation] */
  1190. _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC1 *pDesc1,
  1191. /* [annotation] */
  1192. _COM_Outptr_opt_ ID3D11UnorderedAccessView1 **ppUAView1);
  1193. HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView1 )(
  1194. ID3D11Device5 * This,
  1195. /* [annotation] */
  1196. _In_ ID3D11Resource *pResource,
  1197. /* [annotation] */
  1198. _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC1 *pDesc1,
  1199. /* [annotation] */
  1200. _COM_Outptr_opt_ ID3D11RenderTargetView1 **ppRTView1);
  1201. HRESULT ( STDMETHODCALLTYPE *CreateQuery1 )(
  1202. ID3D11Device5 * This,
  1203. /* [annotation] */
  1204. _In_ const D3D11_QUERY_DESC1 *pQueryDesc1,
  1205. /* [annotation] */
  1206. _COM_Outptr_opt_ ID3D11Query1 **ppQuery1);
  1207. void ( STDMETHODCALLTYPE *GetImmediateContext3 )(
  1208. ID3D11Device5 * This,
  1209. /* [annotation] */
  1210. _Outptr_ ID3D11DeviceContext3 **ppImmediateContext);
  1211. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext3 )(
  1212. ID3D11Device5 * This,
  1213. UINT ContextFlags,
  1214. /* [annotation] */
  1215. _COM_Outptr_opt_ ID3D11DeviceContext3 **ppDeferredContext);
  1216. void ( STDMETHODCALLTYPE *WriteToSubresource )(
  1217. ID3D11Device5 * This,
  1218. /* [annotation] */
  1219. _In_ ID3D11Resource *pDstResource,
  1220. /* [annotation] */
  1221. _In_ UINT DstSubresource,
  1222. /* [annotation] */
  1223. _In_opt_ const D3D11_BOX *pDstBox,
  1224. /* [annotation] */
  1225. _In_ const void *pSrcData,
  1226. /* [annotation] */
  1227. _In_ UINT SrcRowPitch,
  1228. /* [annotation] */
  1229. _In_ UINT SrcDepthPitch);
  1230. void ( STDMETHODCALLTYPE *ReadFromSubresource )(
  1231. ID3D11Device5 * This,
  1232. /* [annotation] */
  1233. _Out_ void *pDstData,
  1234. /* [annotation] */
  1235. _In_ UINT DstRowPitch,
  1236. /* [annotation] */
  1237. _In_ UINT DstDepthPitch,
  1238. /* [annotation] */
  1239. _In_ ID3D11Resource *pSrcResource,
  1240. /* [annotation] */
  1241. _In_ UINT SrcSubresource,
  1242. /* [annotation] */
  1243. _In_opt_ const D3D11_BOX *pSrcBox);
  1244. HRESULT ( STDMETHODCALLTYPE *RegisterDeviceRemovedEvent )(
  1245. ID3D11Device5 * This,
  1246. /* [annotation] */
  1247. _In_ HANDLE hEvent,
  1248. /* [annotation] */
  1249. _Out_ DWORD *pdwCookie);
  1250. void ( STDMETHODCALLTYPE *UnregisterDeviceRemoved )(
  1251. ID3D11Device5 * This,
  1252. /* [annotation] */
  1253. _In_ DWORD dwCookie);
  1254. HRESULT ( STDMETHODCALLTYPE *OpenSharedFence )(
  1255. ID3D11Device5 * This,
  1256. /* [annotation] */
  1257. _In_ HANDLE hFence,
  1258. /* [annotation] */
  1259. _In_ REFIID ReturnedInterface,
  1260. /* [annotation] */
  1261. _COM_Outptr_opt_ void **ppFence);
  1262. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  1263. ID3D11Device5 * This,
  1264. /* [annotation] */
  1265. _In_ UINT64 InitialValue,
  1266. /* [annotation] */
  1267. _In_ D3D11_FENCE_FLAG Flags,
  1268. /* [annotation] */
  1269. _In_ REFIID ReturnedInterface,
  1270. /* [annotation] */
  1271. _COM_Outptr_opt_ void **ppFence);
  1272. END_INTERFACE
  1273. } ID3D11Device5Vtbl;
  1274. interface ID3D11Device5
  1275. {
  1276. CONST_VTBL struct ID3D11Device5Vtbl *lpVtbl;
  1277. };
  1278. #ifdef COBJMACROS
  1279. #define ID3D11Device5_QueryInterface(This,riid,ppvObject) \
  1280. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1281. #define ID3D11Device5_AddRef(This) \
  1282. ( (This)->lpVtbl -> AddRef(This) )
  1283. #define ID3D11Device5_Release(This) \
  1284. ( (This)->lpVtbl -> Release(This) )
  1285. #define ID3D11Device5_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \
  1286. ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) )
  1287. #define ID3D11Device5_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \
  1288. ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) )
  1289. #define ID3D11Device5_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \
  1290. ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) )
  1291. #define ID3D11Device5_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \
  1292. ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) )
  1293. #define ID3D11Device5_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \
  1294. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) )
  1295. #define ID3D11Device5_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \
  1296. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) )
  1297. #define ID3D11Device5_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \
  1298. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) )
  1299. #define ID3D11Device5_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \
  1300. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) )
  1301. #define ID3D11Device5_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \
  1302. ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) )
  1303. #define ID3D11Device5_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \
  1304. ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) )
  1305. #define ID3D11Device5_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \
  1306. ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) )
  1307. #define ID3D11Device5_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \
  1308. ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) )
  1309. #define ID3D11Device5_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \
  1310. ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) )
  1311. #define ID3D11Device5_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \
  1312. ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) )
  1313. #define ID3D11Device5_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \
  1314. ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) )
  1315. #define ID3D11Device5_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \
  1316. ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) )
  1317. #define ID3D11Device5_CreateClassLinkage(This,ppLinkage) \
  1318. ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) )
  1319. #define ID3D11Device5_CreateBlendState(This,pBlendStateDesc,ppBlendState) \
  1320. ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) )
  1321. #define ID3D11Device5_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \
  1322. ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) )
  1323. #define ID3D11Device5_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \
  1324. ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) )
  1325. #define ID3D11Device5_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \
  1326. ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) )
  1327. #define ID3D11Device5_CreateQuery(This,pQueryDesc,ppQuery) \
  1328. ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) )
  1329. #define ID3D11Device5_CreatePredicate(This,pPredicateDesc,ppPredicate) \
  1330. ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) )
  1331. #define ID3D11Device5_CreateCounter(This,pCounterDesc,ppCounter) \
  1332. ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) )
  1333. #define ID3D11Device5_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \
  1334. ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) )
  1335. #define ID3D11Device5_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \
  1336. ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) )
  1337. #define ID3D11Device5_CheckFormatSupport(This,Format,pFormatSupport) \
  1338. ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) )
  1339. #define ID3D11Device5_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \
  1340. ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) )
  1341. #define ID3D11Device5_CheckCounterInfo(This,pCounterInfo) \
  1342. ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) )
  1343. #define ID3D11Device5_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \
  1344. ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) )
  1345. #define ID3D11Device5_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  1346. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  1347. #define ID3D11Device5_GetPrivateData(This,guid,pDataSize,pData) \
  1348. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1349. #define ID3D11Device5_SetPrivateData(This,guid,DataSize,pData) \
  1350. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1351. #define ID3D11Device5_SetPrivateDataInterface(This,guid,pData) \
  1352. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1353. #define ID3D11Device5_GetFeatureLevel(This) \
  1354. ( (This)->lpVtbl -> GetFeatureLevel(This) )
  1355. #define ID3D11Device5_GetCreationFlags(This) \
  1356. ( (This)->lpVtbl -> GetCreationFlags(This) )
  1357. #define ID3D11Device5_GetDeviceRemovedReason(This) \
  1358. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  1359. #define ID3D11Device5_GetImmediateContext(This,ppImmediateContext) \
  1360. ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) )
  1361. #define ID3D11Device5_SetExceptionMode(This,RaiseFlags) \
  1362. ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) )
  1363. #define ID3D11Device5_GetExceptionMode(This) \
  1364. ( (This)->lpVtbl -> GetExceptionMode(This) )
  1365. #define ID3D11Device5_GetImmediateContext1(This,ppImmediateContext) \
  1366. ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) )
  1367. #define ID3D11Device5_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \
  1368. ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) )
  1369. #define ID3D11Device5_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \
  1370. ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) )
  1371. #define ID3D11Device5_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \
  1372. ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) )
  1373. #define ID3D11Device5_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \
  1374. ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) )
  1375. #define ID3D11Device5_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \
  1376. ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) )
  1377. #define ID3D11Device5_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \
  1378. ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) )
  1379. #define ID3D11Device5_GetImmediateContext2(This,ppImmediateContext) \
  1380. ( (This)->lpVtbl -> GetImmediateContext2(This,ppImmediateContext) )
  1381. #define ID3D11Device5_CreateDeferredContext2(This,ContextFlags,ppDeferredContext) \
  1382. ( (This)->lpVtbl -> CreateDeferredContext2(This,ContextFlags,ppDeferredContext) )
  1383. #define ID3D11Device5_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  1384. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  1385. #define ID3D11Device5_CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) \
  1386. ( (This)->lpVtbl -> CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) )
  1387. #define ID3D11Device5_CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) \
  1388. ( (This)->lpVtbl -> CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) )
  1389. #define ID3D11Device5_CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) \
  1390. ( (This)->lpVtbl -> CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) )
  1391. #define ID3D11Device5_CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) \
  1392. ( (This)->lpVtbl -> CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) )
  1393. #define ID3D11Device5_CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) \
  1394. ( (This)->lpVtbl -> CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) )
  1395. #define ID3D11Device5_CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) \
  1396. ( (This)->lpVtbl -> CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) )
  1397. #define ID3D11Device5_CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) \
  1398. ( (This)->lpVtbl -> CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) )
  1399. #define ID3D11Device5_CreateQuery1(This,pQueryDesc1,ppQuery1) \
  1400. ( (This)->lpVtbl -> CreateQuery1(This,pQueryDesc1,ppQuery1) )
  1401. #define ID3D11Device5_GetImmediateContext3(This,ppImmediateContext) \
  1402. ( (This)->lpVtbl -> GetImmediateContext3(This,ppImmediateContext) )
  1403. #define ID3D11Device5_CreateDeferredContext3(This,ContextFlags,ppDeferredContext) \
  1404. ( (This)->lpVtbl -> CreateDeferredContext3(This,ContextFlags,ppDeferredContext) )
  1405. #define ID3D11Device5_WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  1406. ( (This)->lpVtbl -> WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  1407. #define ID3D11Device5_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) \
  1408. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) )
  1409. #define ID3D11Device5_RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) \
  1410. ( (This)->lpVtbl -> RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) )
  1411. #define ID3D11Device5_UnregisterDeviceRemoved(This,dwCookie) \
  1412. ( (This)->lpVtbl -> UnregisterDeviceRemoved(This,dwCookie) )
  1413. #define ID3D11Device5_OpenSharedFence(This,hFence,ReturnedInterface,ppFence) \
  1414. ( (This)->lpVtbl -> OpenSharedFence(This,hFence,ReturnedInterface,ppFence) )
  1415. #define ID3D11Device5_CreateFence(This,InitialValue,Flags,ReturnedInterface,ppFence) \
  1416. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,ReturnedInterface,ppFence) )
  1417. #endif /* COBJMACROS */
  1418. #endif /* C style interface */
  1419. #endif /* __ID3D11Device5_INTERFACE_DEFINED__ */
  1420. #ifndef __ID3D11Multithread_INTERFACE_DEFINED__
  1421. #define __ID3D11Multithread_INTERFACE_DEFINED__
  1422. /* interface ID3D11Multithread */
  1423. /* [unique][local][object][uuid] */
  1424. EXTERN_C const IID IID_ID3D11Multithread;
  1425. #if defined(__cplusplus) && !defined(CINTERFACE)
  1426. MIDL_INTERFACE("9B7E4E00-342C-4106-A19F-4F2704F689F0")
  1427. ID3D11Multithread : public IUnknown
  1428. {
  1429. public:
  1430. virtual void STDMETHODCALLTYPE Enter( void) = 0;
  1431. virtual void STDMETHODCALLTYPE Leave( void) = 0;
  1432. virtual BOOL STDMETHODCALLTYPE SetMultithreadProtected(
  1433. /* [annotation] */
  1434. _In_ BOOL bMTProtect) = 0;
  1435. virtual BOOL STDMETHODCALLTYPE GetMultithreadProtected( void) = 0;
  1436. };
  1437. #else /* C style interface */
  1438. typedef struct ID3D11MultithreadVtbl
  1439. {
  1440. BEGIN_INTERFACE
  1441. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1442. ID3D11Multithread * This,
  1443. /* [in] */ REFIID riid,
  1444. /* [annotation][iid_is][out] */
  1445. _COM_Outptr_ void **ppvObject);
  1446. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1447. ID3D11Multithread * This);
  1448. ULONG ( STDMETHODCALLTYPE *Release )(
  1449. ID3D11Multithread * This);
  1450. void ( STDMETHODCALLTYPE *Enter )(
  1451. ID3D11Multithread * This);
  1452. void ( STDMETHODCALLTYPE *Leave )(
  1453. ID3D11Multithread * This);
  1454. BOOL ( STDMETHODCALLTYPE *SetMultithreadProtected )(
  1455. ID3D11Multithread * This,
  1456. /* [annotation] */
  1457. _In_ BOOL bMTProtect);
  1458. BOOL ( STDMETHODCALLTYPE *GetMultithreadProtected )(
  1459. ID3D11Multithread * This);
  1460. END_INTERFACE
  1461. } ID3D11MultithreadVtbl;
  1462. interface ID3D11Multithread
  1463. {
  1464. CONST_VTBL struct ID3D11MultithreadVtbl *lpVtbl;
  1465. };
  1466. #ifdef COBJMACROS
  1467. #define ID3D11Multithread_QueryInterface(This,riid,ppvObject) \
  1468. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1469. #define ID3D11Multithread_AddRef(This) \
  1470. ( (This)->lpVtbl -> AddRef(This) )
  1471. #define ID3D11Multithread_Release(This) \
  1472. ( (This)->lpVtbl -> Release(This) )
  1473. #define ID3D11Multithread_Enter(This) \
  1474. ( (This)->lpVtbl -> Enter(This) )
  1475. #define ID3D11Multithread_Leave(This) \
  1476. ( (This)->lpVtbl -> Leave(This) )
  1477. #define ID3D11Multithread_SetMultithreadProtected(This,bMTProtect) \
  1478. ( (This)->lpVtbl -> SetMultithreadProtected(This,bMTProtect) )
  1479. #define ID3D11Multithread_GetMultithreadProtected(This) \
  1480. ( (This)->lpVtbl -> GetMultithreadProtected(This) )
  1481. #endif /* COBJMACROS */
  1482. #endif /* C style interface */
  1483. #endif /* __ID3D11Multithread_INTERFACE_DEFINED__ */
  1484. #ifndef __ID3D11VideoContext2_INTERFACE_DEFINED__
  1485. #define __ID3D11VideoContext2_INTERFACE_DEFINED__
  1486. /* interface ID3D11VideoContext2 */
  1487. /* [unique][local][object][uuid] */
  1488. EXTERN_C const IID IID_ID3D11VideoContext2;
  1489. #if defined(__cplusplus) && !defined(CINTERFACE)
  1490. MIDL_INTERFACE("C4E7374C-6243-4D1B-AE87-52B4F740E261")
  1491. ID3D11VideoContext2 : public ID3D11VideoContext1
  1492. {
  1493. public:
  1494. virtual void STDMETHODCALLTYPE VideoProcessorSetOutputHDRMetaData(
  1495. /* [annotation] */
  1496. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1497. /* [annotation] */
  1498. _In_ DXGI_HDR_METADATA_TYPE Type,
  1499. /* [annotation] */
  1500. _In_ UINT Size,
  1501. /* [annotation] */
  1502. _In_reads_bytes_opt_(Size) const void *pHDRMetaData) = 0;
  1503. virtual void STDMETHODCALLTYPE VideoProcessorGetOutputHDRMetaData(
  1504. /* [annotation] */
  1505. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1506. /* [annotation] */
  1507. _Out_ DXGI_HDR_METADATA_TYPE *pType,
  1508. /* [annotation] */
  1509. _In_ UINT Size,
  1510. /* [annotation] */
  1511. _Out_writes_bytes_opt_(Size) void *pMetaData) = 0;
  1512. virtual void STDMETHODCALLTYPE VideoProcessorSetStreamHDRMetaData(
  1513. /* [annotation] */
  1514. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1515. /* [annotation] */
  1516. _In_ UINT StreamIndex,
  1517. /* [annotation] */
  1518. _In_ DXGI_HDR_METADATA_TYPE Type,
  1519. /* [annotation] */
  1520. _In_ UINT Size,
  1521. /* [annotation] */
  1522. _In_reads_bytes_opt_(Size) const void *pHDRMetaData) = 0;
  1523. virtual void STDMETHODCALLTYPE VideoProcessorGetStreamHDRMetaData(
  1524. /* [annotation] */
  1525. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1526. /* [annotation] */
  1527. _In_ UINT StreamIndex,
  1528. /* [annotation] */
  1529. _Out_ DXGI_HDR_METADATA_TYPE *pType,
  1530. /* [annotation] */
  1531. _In_ UINT Size,
  1532. /* [annotation] */
  1533. _Out_writes_bytes_opt_(Size) void *pMetaData) = 0;
  1534. };
  1535. #else /* C style interface */
  1536. typedef struct ID3D11VideoContext2Vtbl
  1537. {
  1538. BEGIN_INTERFACE
  1539. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1540. ID3D11VideoContext2 * This,
  1541. /* [in] */ REFIID riid,
  1542. /* [annotation][iid_is][out] */
  1543. _COM_Outptr_ void **ppvObject);
  1544. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1545. ID3D11VideoContext2 * This);
  1546. ULONG ( STDMETHODCALLTYPE *Release )(
  1547. ID3D11VideoContext2 * This);
  1548. void ( STDMETHODCALLTYPE *GetDevice )(
  1549. ID3D11VideoContext2 * This,
  1550. /* [annotation] */
  1551. _Outptr_ ID3D11Device **ppDevice);
  1552. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1553. ID3D11VideoContext2 * This,
  1554. /* [annotation] */
  1555. _In_ REFGUID guid,
  1556. /* [annotation] */
  1557. _Inout_ UINT *pDataSize,
  1558. /* [annotation] */
  1559. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1560. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1561. ID3D11VideoContext2 * This,
  1562. /* [annotation] */
  1563. _In_ REFGUID guid,
  1564. /* [annotation] */
  1565. _In_ UINT DataSize,
  1566. /* [annotation] */
  1567. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1568. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1569. ID3D11VideoContext2 * This,
  1570. /* [annotation] */
  1571. _In_ REFGUID guid,
  1572. /* [annotation] */
  1573. _In_opt_ const IUnknown *pData);
  1574. HRESULT ( STDMETHODCALLTYPE *GetDecoderBuffer )(
  1575. ID3D11VideoContext2 * This,
  1576. /* [annotation] */
  1577. _In_ ID3D11VideoDecoder *pDecoder,
  1578. D3D11_VIDEO_DECODER_BUFFER_TYPE Type,
  1579. /* [annotation] */
  1580. _Out_ UINT *pBufferSize,
  1581. /* [annotation] */
  1582. _Outptr_result_bytebuffer_(*pBufferSize) void **ppBuffer);
  1583. HRESULT ( STDMETHODCALLTYPE *ReleaseDecoderBuffer )(
  1584. ID3D11VideoContext2 * This,
  1585. /* [annotation] */
  1586. _In_ ID3D11VideoDecoder *pDecoder,
  1587. /* [annotation] */
  1588. _In_ D3D11_VIDEO_DECODER_BUFFER_TYPE Type);
  1589. HRESULT ( STDMETHODCALLTYPE *DecoderBeginFrame )(
  1590. ID3D11VideoContext2 * This,
  1591. /* [annotation] */
  1592. _In_ ID3D11VideoDecoder *pDecoder,
  1593. /* [annotation] */
  1594. _In_ ID3D11VideoDecoderOutputView *pView,
  1595. UINT ContentKeySize,
  1596. /* [annotation] */
  1597. _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey);
  1598. HRESULT ( STDMETHODCALLTYPE *DecoderEndFrame )(
  1599. ID3D11VideoContext2 * This,
  1600. /* [annotation] */
  1601. _In_ ID3D11VideoDecoder *pDecoder);
  1602. HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers )(
  1603. ID3D11VideoContext2 * This,
  1604. /* [annotation] */
  1605. _In_ ID3D11VideoDecoder *pDecoder,
  1606. /* [annotation] */
  1607. _In_ UINT NumBuffers,
  1608. /* [annotation] */
  1609. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC *pBufferDesc);
  1610. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *DecoderExtension )(
  1611. ID3D11VideoContext2 * This,
  1612. /* [annotation] */
  1613. _In_ ID3D11VideoDecoder *pDecoder,
  1614. /* [annotation] */
  1615. _In_ const D3D11_VIDEO_DECODER_EXTENSION *pExtensionData);
  1616. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputTargetRect )(
  1617. ID3D11VideoContext2 * This,
  1618. /* [annotation] */
  1619. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1620. /* [annotation] */
  1621. _In_ BOOL Enable,
  1622. /* [annotation] */
  1623. _In_opt_ const RECT *pRect);
  1624. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputBackgroundColor )(
  1625. ID3D11VideoContext2 * This,
  1626. /* [annotation] */
  1627. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1628. /* [annotation] */
  1629. _In_ BOOL YCbCr,
  1630. /* [annotation] */
  1631. _In_ const D3D11_VIDEO_COLOR *pColor);
  1632. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace )(
  1633. ID3D11VideoContext2 * This,
  1634. /* [annotation] */
  1635. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1636. /* [annotation] */
  1637. _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  1638. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputAlphaFillMode )(
  1639. ID3D11VideoContext2 * This,
  1640. /* [annotation] */
  1641. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1642. /* [annotation] */
  1643. _In_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE AlphaFillMode,
  1644. /* [annotation] */
  1645. _In_ UINT StreamIndex);
  1646. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputConstriction )(
  1647. ID3D11VideoContext2 * This,
  1648. /* [annotation] */
  1649. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1650. /* [annotation] */
  1651. _In_ BOOL Enable,
  1652. /* [annotation] */
  1653. _In_ SIZE Size);
  1654. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputStereoMode )(
  1655. ID3D11VideoContext2 * This,
  1656. /* [annotation] */
  1657. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1658. /* [annotation] */
  1659. _In_ BOOL Enable);
  1660. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetOutputExtension )(
  1661. ID3D11VideoContext2 * This,
  1662. /* [annotation] */
  1663. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1664. /* [annotation] */
  1665. _In_ const GUID *pExtensionGuid,
  1666. /* [annotation] */
  1667. _In_ UINT DataSize,
  1668. /* [annotation] */
  1669. _In_ void *pData);
  1670. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputTargetRect )(
  1671. ID3D11VideoContext2 * This,
  1672. /* [annotation] */
  1673. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1674. /* [annotation] */
  1675. _Out_ BOOL *Enabled,
  1676. /* [annotation] */
  1677. _Out_ RECT *pRect);
  1678. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputBackgroundColor )(
  1679. ID3D11VideoContext2 * This,
  1680. /* [annotation] */
  1681. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1682. /* [annotation] */
  1683. _Out_ BOOL *pYCbCr,
  1684. /* [annotation] */
  1685. _Out_ D3D11_VIDEO_COLOR *pColor);
  1686. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace )(
  1687. ID3D11VideoContext2 * This,
  1688. /* [annotation] */
  1689. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1690. /* [annotation] */
  1691. _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  1692. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputAlphaFillMode )(
  1693. ID3D11VideoContext2 * This,
  1694. /* [annotation] */
  1695. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1696. /* [annotation] */
  1697. _Out_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *pAlphaFillMode,
  1698. /* [annotation] */
  1699. _Out_ UINT *pStreamIndex);
  1700. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputConstriction )(
  1701. ID3D11VideoContext2 * This,
  1702. /* [annotation] */
  1703. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1704. /* [annotation] */
  1705. _Out_ BOOL *pEnabled,
  1706. /* [annotation] */
  1707. _Out_ SIZE *pSize);
  1708. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputStereoMode )(
  1709. ID3D11VideoContext2 * This,
  1710. /* [annotation] */
  1711. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1712. /* [annotation] */
  1713. _Out_ BOOL *pEnabled);
  1714. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetOutputExtension )(
  1715. ID3D11VideoContext2 * This,
  1716. /* [annotation] */
  1717. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1718. /* [annotation] */
  1719. _In_ const GUID *pExtensionGuid,
  1720. /* [annotation] */
  1721. _In_ UINT DataSize,
  1722. /* [annotation] */
  1723. _Out_writes_bytes_(DataSize) void *pData);
  1724. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFrameFormat )(
  1725. ID3D11VideoContext2 * This,
  1726. /* [annotation] */
  1727. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1728. /* [annotation] */
  1729. _In_ UINT StreamIndex,
  1730. /* [annotation] */
  1731. _In_ D3D11_VIDEO_FRAME_FORMAT FrameFormat);
  1732. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace )(
  1733. ID3D11VideoContext2 * This,
  1734. /* [annotation] */
  1735. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1736. /* [annotation] */
  1737. _In_ UINT StreamIndex,
  1738. /* [annotation] */
  1739. _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  1740. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamOutputRate )(
  1741. ID3D11VideoContext2 * This,
  1742. /* [annotation] */
  1743. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1744. /* [annotation] */
  1745. _In_ UINT StreamIndex,
  1746. /* [annotation] */
  1747. _In_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate,
  1748. /* [annotation] */
  1749. _In_ BOOL RepeatFrame,
  1750. /* [annotation] */
  1751. _In_opt_ const DXGI_RATIONAL *pCustomRate);
  1752. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamSourceRect )(
  1753. ID3D11VideoContext2 * This,
  1754. /* [annotation] */
  1755. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1756. /* [annotation] */
  1757. _In_ UINT StreamIndex,
  1758. /* [annotation] */
  1759. _In_ BOOL Enable,
  1760. /* [annotation] */
  1761. _In_opt_ const RECT *pRect);
  1762. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamDestRect )(
  1763. ID3D11VideoContext2 * This,
  1764. /* [annotation] */
  1765. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1766. /* [annotation] */
  1767. _In_ UINT StreamIndex,
  1768. /* [annotation] */
  1769. _In_ BOOL Enable,
  1770. /* [annotation] */
  1771. _In_opt_ const RECT *pRect);
  1772. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAlpha )(
  1773. ID3D11VideoContext2 * This,
  1774. /* [annotation] */
  1775. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1776. /* [annotation] */
  1777. _In_ UINT StreamIndex,
  1778. /* [annotation] */
  1779. _In_ BOOL Enable,
  1780. /* [annotation] */
  1781. _In_ FLOAT Alpha);
  1782. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPalette )(
  1783. ID3D11VideoContext2 * This,
  1784. /* [annotation] */
  1785. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1786. /* [annotation] */
  1787. _In_ UINT StreamIndex,
  1788. /* [annotation] */
  1789. _In_ UINT Count,
  1790. /* [annotation] */
  1791. _In_reads_opt_(Count) const UINT *pEntries);
  1792. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPixelAspectRatio )(
  1793. ID3D11VideoContext2 * This,
  1794. /* [annotation] */
  1795. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1796. /* [annotation] */
  1797. _In_ UINT StreamIndex,
  1798. /* [annotation] */
  1799. _In_ BOOL Enable,
  1800. /* [annotation] */
  1801. _In_opt_ const DXGI_RATIONAL *pSourceAspectRatio,
  1802. /* [annotation] */
  1803. _In_opt_ const DXGI_RATIONAL *pDestinationAspectRatio);
  1804. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamLumaKey )(
  1805. ID3D11VideoContext2 * This,
  1806. /* [annotation] */
  1807. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1808. /* [annotation] */
  1809. _In_ UINT StreamIndex,
  1810. /* [annotation] */
  1811. _In_ BOOL Enable,
  1812. /* [annotation] */
  1813. _In_ FLOAT Lower,
  1814. /* [annotation] */
  1815. _In_ FLOAT Upper);
  1816. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamStereoFormat )(
  1817. ID3D11VideoContext2 * This,
  1818. /* [annotation] */
  1819. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1820. /* [annotation] */
  1821. _In_ UINT StreamIndex,
  1822. /* [annotation] */
  1823. _In_ BOOL Enable,
  1824. /* [annotation] */
  1825. _In_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format,
  1826. /* [annotation] */
  1827. _In_ BOOL LeftViewFrame0,
  1828. /* [annotation] */
  1829. _In_ BOOL BaseViewFrame0,
  1830. /* [annotation] */
  1831. _In_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode,
  1832. /* [annotation] */
  1833. _In_ int MonoOffset);
  1834. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAutoProcessingMode )(
  1835. ID3D11VideoContext2 * This,
  1836. /* [annotation] */
  1837. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1838. /* [annotation] */
  1839. _In_ UINT StreamIndex,
  1840. /* [annotation] */
  1841. _In_ BOOL Enable);
  1842. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFilter )(
  1843. ID3D11VideoContext2 * This,
  1844. /* [annotation] */
  1845. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1846. /* [annotation] */
  1847. _In_ UINT StreamIndex,
  1848. /* [annotation] */
  1849. _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter,
  1850. /* [annotation] */
  1851. _In_ BOOL Enable,
  1852. /* [annotation] */
  1853. _In_ int Level);
  1854. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetStreamExtension )(
  1855. ID3D11VideoContext2 * This,
  1856. /* [annotation] */
  1857. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1858. /* [annotation] */
  1859. _In_ UINT StreamIndex,
  1860. /* [annotation] */
  1861. _In_ const GUID *pExtensionGuid,
  1862. /* [annotation] */
  1863. _In_ UINT DataSize,
  1864. /* [annotation] */
  1865. _In_ void *pData);
  1866. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFrameFormat )(
  1867. ID3D11VideoContext2 * This,
  1868. /* [annotation] */
  1869. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1870. /* [annotation] */
  1871. _In_ UINT StreamIndex,
  1872. /* [annotation] */
  1873. _Out_ D3D11_VIDEO_FRAME_FORMAT *pFrameFormat);
  1874. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace )(
  1875. ID3D11VideoContext2 * This,
  1876. /* [annotation] */
  1877. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1878. /* [annotation] */
  1879. _In_ UINT StreamIndex,
  1880. /* [annotation] */
  1881. _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  1882. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamOutputRate )(
  1883. ID3D11VideoContext2 * This,
  1884. /* [annotation] */
  1885. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1886. /* [annotation] */
  1887. _In_ UINT StreamIndex,
  1888. /* [annotation] */
  1889. _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *pOutputRate,
  1890. /* [annotation] */
  1891. _Out_ BOOL *pRepeatFrame,
  1892. /* [annotation] */
  1893. _Out_ DXGI_RATIONAL *pCustomRate);
  1894. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamSourceRect )(
  1895. ID3D11VideoContext2 * This,
  1896. /* [annotation] */
  1897. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1898. /* [annotation] */
  1899. _In_ UINT StreamIndex,
  1900. /* [annotation] */
  1901. _Out_ BOOL *pEnabled,
  1902. /* [annotation] */
  1903. _Out_ RECT *pRect);
  1904. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamDestRect )(
  1905. ID3D11VideoContext2 * This,
  1906. /* [annotation] */
  1907. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1908. /* [annotation] */
  1909. _In_ UINT StreamIndex,
  1910. /* [annotation] */
  1911. _Out_ BOOL *pEnabled,
  1912. /* [annotation] */
  1913. _Out_ RECT *pRect);
  1914. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAlpha )(
  1915. ID3D11VideoContext2 * This,
  1916. /* [annotation] */
  1917. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1918. /* [annotation] */
  1919. _In_ UINT StreamIndex,
  1920. /* [annotation] */
  1921. _Out_ BOOL *pEnabled,
  1922. /* [annotation] */
  1923. _Out_ FLOAT *pAlpha);
  1924. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPalette )(
  1925. ID3D11VideoContext2 * This,
  1926. /* [annotation] */
  1927. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1928. /* [annotation] */
  1929. _In_ UINT StreamIndex,
  1930. /* [annotation] */
  1931. _In_ UINT Count,
  1932. /* [annotation] */
  1933. _Out_writes_(Count) UINT *pEntries);
  1934. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPixelAspectRatio )(
  1935. ID3D11VideoContext2 * This,
  1936. /* [annotation] */
  1937. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1938. /* [annotation] */
  1939. _In_ UINT StreamIndex,
  1940. /* [annotation] */
  1941. _Out_ BOOL *pEnabled,
  1942. /* [annotation] */
  1943. _Out_ DXGI_RATIONAL *pSourceAspectRatio,
  1944. /* [annotation] */
  1945. _Out_ DXGI_RATIONAL *pDestinationAspectRatio);
  1946. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamLumaKey )(
  1947. ID3D11VideoContext2 * This,
  1948. /* [annotation] */
  1949. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1950. /* [annotation] */
  1951. _In_ UINT StreamIndex,
  1952. /* [annotation] */
  1953. _Out_ BOOL *pEnabled,
  1954. /* [annotation] */
  1955. _Out_ FLOAT *pLower,
  1956. /* [annotation] */
  1957. _Out_ FLOAT *pUpper);
  1958. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamStereoFormat )(
  1959. ID3D11VideoContext2 * This,
  1960. /* [annotation] */
  1961. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1962. /* [annotation] */
  1963. _In_ UINT StreamIndex,
  1964. /* [annotation] */
  1965. _Out_ BOOL *pEnable,
  1966. /* [annotation] */
  1967. _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *pFormat,
  1968. /* [annotation] */
  1969. _Out_ BOOL *pLeftViewFrame0,
  1970. /* [annotation] */
  1971. _Out_ BOOL *pBaseViewFrame0,
  1972. /* [annotation] */
  1973. _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *pFlipMode,
  1974. /* [annotation] */
  1975. _Out_ int *MonoOffset);
  1976. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAutoProcessingMode )(
  1977. ID3D11VideoContext2 * This,
  1978. /* [annotation] */
  1979. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1980. /* [annotation] */
  1981. _In_ UINT StreamIndex,
  1982. /* [annotation] */
  1983. _Out_ BOOL *pEnabled);
  1984. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFilter )(
  1985. ID3D11VideoContext2 * This,
  1986. /* [annotation] */
  1987. _In_ ID3D11VideoProcessor *pVideoProcessor,
  1988. /* [annotation] */
  1989. _In_ UINT StreamIndex,
  1990. /* [annotation] */
  1991. _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter,
  1992. /* [annotation] */
  1993. _Out_ BOOL *pEnabled,
  1994. /* [annotation] */
  1995. _Out_ int *pLevel);
  1996. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetStreamExtension )(
  1997. ID3D11VideoContext2 * This,
  1998. /* [annotation] */
  1999. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2000. /* [annotation] */
  2001. _In_ UINT StreamIndex,
  2002. /* [annotation] */
  2003. _In_ const GUID *pExtensionGuid,
  2004. /* [annotation] */
  2005. _In_ UINT DataSize,
  2006. /* [annotation] */
  2007. _Out_writes_bytes_(DataSize) void *pData);
  2008. HRESULT ( STDMETHODCALLTYPE *VideoProcessorBlt )(
  2009. ID3D11VideoContext2 * This,
  2010. /* [annotation] */
  2011. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2012. /* [annotation] */
  2013. _In_ ID3D11VideoProcessorOutputView *pView,
  2014. /* [annotation] */
  2015. _In_ UINT OutputFrame,
  2016. /* [annotation] */
  2017. _In_ UINT StreamCount,
  2018. /* [annotation] */
  2019. _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM *pStreams);
  2020. HRESULT ( STDMETHODCALLTYPE *NegotiateCryptoSessionKeyExchange )(
  2021. ID3D11VideoContext2 * This,
  2022. /* [annotation] */
  2023. _In_ ID3D11CryptoSession *pCryptoSession,
  2024. /* [annotation] */
  2025. _In_ UINT DataSize,
  2026. /* [annotation] */
  2027. _Inout_updates_bytes_(DataSize) void *pData);
  2028. void ( STDMETHODCALLTYPE *EncryptionBlt )(
  2029. ID3D11VideoContext2 * This,
  2030. /* [annotation] */
  2031. _In_ ID3D11CryptoSession *pCryptoSession,
  2032. /* [annotation] */
  2033. _In_ ID3D11Texture2D *pSrcSurface,
  2034. /* [annotation] */
  2035. _In_ ID3D11Texture2D *pDstSurface,
  2036. /* [annotation] */
  2037. _In_ UINT IVSize,
  2038. /* [annotation] */
  2039. _Inout_opt_bytecount_(IVSize) void *pIV);
  2040. void ( STDMETHODCALLTYPE *DecryptionBlt )(
  2041. ID3D11VideoContext2 * This,
  2042. /* [annotation] */
  2043. _In_ ID3D11CryptoSession *pCryptoSession,
  2044. /* [annotation] */
  2045. _In_ ID3D11Texture2D *pSrcSurface,
  2046. /* [annotation] */
  2047. _In_ ID3D11Texture2D *pDstSurface,
  2048. /* [annotation] */
  2049. _In_opt_ D3D11_ENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo,
  2050. /* [annotation] */
  2051. _In_ UINT ContentKeySize,
  2052. /* [annotation] */
  2053. _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey,
  2054. /* [annotation] */
  2055. _In_ UINT IVSize,
  2056. /* [annotation] */
  2057. _Inout_opt_bytecount_(IVSize) void *pIV);
  2058. void ( STDMETHODCALLTYPE *StartSessionKeyRefresh )(
  2059. ID3D11VideoContext2 * This,
  2060. /* [annotation] */
  2061. _In_ ID3D11CryptoSession *pCryptoSession,
  2062. /* [annotation] */
  2063. _In_ UINT RandomNumberSize,
  2064. /* [annotation] */
  2065. _Out_writes_bytes_(RandomNumberSize) void *pRandomNumber);
  2066. void ( STDMETHODCALLTYPE *FinishSessionKeyRefresh )(
  2067. ID3D11VideoContext2 * This,
  2068. /* [annotation] */
  2069. _In_ ID3D11CryptoSession *pCryptoSession);
  2070. HRESULT ( STDMETHODCALLTYPE *GetEncryptionBltKey )(
  2071. ID3D11VideoContext2 * This,
  2072. /* [annotation] */
  2073. _In_ ID3D11CryptoSession *pCryptoSession,
  2074. /* [annotation] */
  2075. _In_ UINT KeySize,
  2076. /* [annotation] */
  2077. _Out_writes_bytes_(KeySize) void *pReadbackKey);
  2078. HRESULT ( STDMETHODCALLTYPE *NegotiateAuthenticatedChannelKeyExchange )(
  2079. ID3D11VideoContext2 * This,
  2080. /* [annotation] */
  2081. _In_ ID3D11AuthenticatedChannel *pChannel,
  2082. /* [annotation] */
  2083. _In_ UINT DataSize,
  2084. /* [annotation] */
  2085. _Inout_updates_bytes_(DataSize) void *pData);
  2086. HRESULT ( STDMETHODCALLTYPE *QueryAuthenticatedChannel )(
  2087. ID3D11VideoContext2 * This,
  2088. /* [annotation] */
  2089. _In_ ID3D11AuthenticatedChannel *pChannel,
  2090. /* [annotation] */
  2091. _In_ UINT InputSize,
  2092. /* [annotation] */
  2093. _In_reads_bytes_(InputSize) const void *pInput,
  2094. /* [annotation] */
  2095. _In_ UINT OutputSize,
  2096. /* [annotation] */
  2097. _Out_writes_bytes_(OutputSize) void *pOutput);
  2098. HRESULT ( STDMETHODCALLTYPE *ConfigureAuthenticatedChannel )(
  2099. ID3D11VideoContext2 * This,
  2100. /* [annotation] */
  2101. _In_ ID3D11AuthenticatedChannel *pChannel,
  2102. /* [annotation] */
  2103. _In_ UINT InputSize,
  2104. /* [annotation] */
  2105. _In_reads_bytes_(InputSize) const void *pInput,
  2106. /* [annotation] */
  2107. _Out_ D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *pOutput);
  2108. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamRotation )(
  2109. ID3D11VideoContext2 * This,
  2110. /* [annotation] */
  2111. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2112. /* [annotation] */
  2113. _In_ UINT StreamIndex,
  2114. /* [annotation] */
  2115. _In_ BOOL Enable,
  2116. /* [annotation] */
  2117. _In_ D3D11_VIDEO_PROCESSOR_ROTATION Rotation);
  2118. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamRotation )(
  2119. ID3D11VideoContext2 * This,
  2120. /* [annotation] */
  2121. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2122. /* [annotation] */
  2123. _In_ UINT StreamIndex,
  2124. /* [annotation] */
  2125. _Out_ BOOL *pEnable,
  2126. /* [annotation] */
  2127. _Out_ D3D11_VIDEO_PROCESSOR_ROTATION *pRotation);
  2128. HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers1 )(
  2129. ID3D11VideoContext2 * This,
  2130. /* [annotation] */
  2131. _In_ ID3D11VideoDecoder *pDecoder,
  2132. /* [annotation] */
  2133. _In_ UINT NumBuffers,
  2134. /* [annotation] */
  2135. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC1 *pBufferDesc);
  2136. HRESULT ( STDMETHODCALLTYPE *GetDataForNewHardwareKey )(
  2137. ID3D11VideoContext2 * This,
  2138. /* [annotation] */
  2139. _In_ ID3D11CryptoSession *pCryptoSession,
  2140. /* [annotation] */
  2141. _In_ UINT PrivateInputSize,
  2142. /* [annotation] */
  2143. _In_reads_(PrivateInputSize) const void *pPrivatInputData,
  2144. /* [annotation] */
  2145. _Out_ UINT64 *pPrivateOutputData);
  2146. HRESULT ( STDMETHODCALLTYPE *CheckCryptoSessionStatus )(
  2147. ID3D11VideoContext2 * This,
  2148. /* [annotation] */
  2149. _In_ ID3D11CryptoSession *pCryptoSession,
  2150. /* [annotation] */
  2151. _Out_ D3D11_CRYPTO_SESSION_STATUS *pStatus);
  2152. HRESULT ( STDMETHODCALLTYPE *DecoderEnableDownsampling )(
  2153. ID3D11VideoContext2 * This,
  2154. /* [annotation] */
  2155. _In_ ID3D11VideoDecoder *pDecoder,
  2156. /* [annotation] */
  2157. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  2158. /* [annotation] */
  2159. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc,
  2160. /* [annotation] */
  2161. _In_ UINT ReferenceFrameCount);
  2162. HRESULT ( STDMETHODCALLTYPE *DecoderUpdateDownsampling )(
  2163. ID3D11VideoContext2 * This,
  2164. /* [annotation] */
  2165. _In_ ID3D11VideoDecoder *pDecoder,
  2166. /* [annotation] */
  2167. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc);
  2168. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace1 )(
  2169. ID3D11VideoContext2 * This,
  2170. /* [annotation] */
  2171. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2172. /* [annotation] */
  2173. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace);
  2174. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputShaderUsage )(
  2175. ID3D11VideoContext2 * This,
  2176. /* [annotation] */
  2177. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2178. /* [annotation] */
  2179. _In_ BOOL ShaderUsage);
  2180. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace1 )(
  2181. ID3D11VideoContext2 * This,
  2182. /* [annotation] */
  2183. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2184. /* [annotation] */
  2185. _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace);
  2186. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputShaderUsage )(
  2187. ID3D11VideoContext2 * This,
  2188. /* [annotation] */
  2189. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2190. /* [annotation] */
  2191. _Out_ BOOL *pShaderUsage);
  2192. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace1 )(
  2193. ID3D11VideoContext2 * This,
  2194. /* [annotation] */
  2195. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2196. /* [annotation] */
  2197. _In_ UINT StreamIndex,
  2198. /* [annotation] */
  2199. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace);
  2200. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamMirror )(
  2201. ID3D11VideoContext2 * This,
  2202. /* [annotation] */
  2203. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2204. /* [annotation] */
  2205. _In_ UINT StreamIndex,
  2206. /* [annotation] */
  2207. _In_ BOOL Enable,
  2208. /* [annotation] */
  2209. _In_ BOOL FlipHorizontal,
  2210. /* [annotation] */
  2211. _In_ BOOL FlipVertical);
  2212. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace1 )(
  2213. ID3D11VideoContext2 * This,
  2214. /* [annotation] */
  2215. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2216. /* [annotation] */
  2217. _In_ UINT StreamIndex,
  2218. /* [annotation] */
  2219. _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace);
  2220. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamMirror )(
  2221. ID3D11VideoContext2 * This,
  2222. /* [annotation] */
  2223. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2224. /* [annotation] */
  2225. _In_ UINT StreamIndex,
  2226. /* [annotation] */
  2227. _Out_ BOOL *pEnable,
  2228. /* [annotation] */
  2229. _Out_ BOOL *pFlipHorizontal,
  2230. /* [annotation] */
  2231. _Out_ BOOL *pFlipVertical);
  2232. HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetBehaviorHints )(
  2233. ID3D11VideoContext2 * This,
  2234. /* [annotation] */
  2235. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2236. /* [annotation] */
  2237. _In_ UINT OutputWidth,
  2238. /* [annotation] */
  2239. _In_ UINT OutputHeight,
  2240. /* [annotation] */
  2241. _In_ DXGI_FORMAT OutputFormat,
  2242. /* [annotation] */
  2243. _In_ UINT StreamCount,
  2244. /* [annotation] */
  2245. _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT *pStreams,
  2246. /* [annotation] */
  2247. _Out_ UINT *pBehaviorHints);
  2248. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputHDRMetaData )(
  2249. ID3D11VideoContext2 * This,
  2250. /* [annotation] */
  2251. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2252. /* [annotation] */
  2253. _In_ DXGI_HDR_METADATA_TYPE Type,
  2254. /* [annotation] */
  2255. _In_ UINT Size,
  2256. /* [annotation] */
  2257. _In_reads_bytes_opt_(Size) const void *pHDRMetaData);
  2258. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputHDRMetaData )(
  2259. ID3D11VideoContext2 * This,
  2260. /* [annotation] */
  2261. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2262. /* [annotation] */
  2263. _Out_ DXGI_HDR_METADATA_TYPE *pType,
  2264. /* [annotation] */
  2265. _In_ UINT Size,
  2266. /* [annotation] */
  2267. _Out_writes_bytes_opt_(Size) void *pMetaData);
  2268. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamHDRMetaData )(
  2269. ID3D11VideoContext2 * This,
  2270. /* [annotation] */
  2271. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2272. /* [annotation] */
  2273. _In_ UINT StreamIndex,
  2274. /* [annotation] */
  2275. _In_ DXGI_HDR_METADATA_TYPE Type,
  2276. /* [annotation] */
  2277. _In_ UINT Size,
  2278. /* [annotation] */
  2279. _In_reads_bytes_opt_(Size) const void *pHDRMetaData);
  2280. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamHDRMetaData )(
  2281. ID3D11VideoContext2 * This,
  2282. /* [annotation] */
  2283. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2284. /* [annotation] */
  2285. _In_ UINT StreamIndex,
  2286. /* [annotation] */
  2287. _Out_ DXGI_HDR_METADATA_TYPE *pType,
  2288. /* [annotation] */
  2289. _In_ UINT Size,
  2290. /* [annotation] */
  2291. _Out_writes_bytes_opt_(Size) void *pMetaData);
  2292. END_INTERFACE
  2293. } ID3D11VideoContext2Vtbl;
  2294. interface ID3D11VideoContext2
  2295. {
  2296. CONST_VTBL struct ID3D11VideoContext2Vtbl *lpVtbl;
  2297. };
  2298. #ifdef COBJMACROS
  2299. #define ID3D11VideoContext2_QueryInterface(This,riid,ppvObject) \
  2300. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  2301. #define ID3D11VideoContext2_AddRef(This) \
  2302. ( (This)->lpVtbl -> AddRef(This) )
  2303. #define ID3D11VideoContext2_Release(This) \
  2304. ( (This)->lpVtbl -> Release(This) )
  2305. #define ID3D11VideoContext2_GetDevice(This,ppDevice) \
  2306. ( (This)->lpVtbl -> GetDevice(This,ppDevice) )
  2307. #define ID3D11VideoContext2_GetPrivateData(This,guid,pDataSize,pData) \
  2308. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  2309. #define ID3D11VideoContext2_SetPrivateData(This,guid,DataSize,pData) \
  2310. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  2311. #define ID3D11VideoContext2_SetPrivateDataInterface(This,guid,pData) \
  2312. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  2313. #define ID3D11VideoContext2_GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) \
  2314. ( (This)->lpVtbl -> GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) )
  2315. #define ID3D11VideoContext2_ReleaseDecoderBuffer(This,pDecoder,Type) \
  2316. ( (This)->lpVtbl -> ReleaseDecoderBuffer(This,pDecoder,Type) )
  2317. #define ID3D11VideoContext2_DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) \
  2318. ( (This)->lpVtbl -> DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) )
  2319. #define ID3D11VideoContext2_DecoderEndFrame(This,pDecoder) \
  2320. ( (This)->lpVtbl -> DecoderEndFrame(This,pDecoder) )
  2321. #define ID3D11VideoContext2_SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) \
  2322. ( (This)->lpVtbl -> SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) )
  2323. #define ID3D11VideoContext2_DecoderExtension(This,pDecoder,pExtensionData) \
  2324. ( (This)->lpVtbl -> DecoderExtension(This,pDecoder,pExtensionData) )
  2325. #define ID3D11VideoContext2_VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) \
  2326. ( (This)->lpVtbl -> VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) )
  2327. #define ID3D11VideoContext2_VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) \
  2328. ( (This)->lpVtbl -> VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) )
  2329. #define ID3D11VideoContext2_VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) \
  2330. ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) )
  2331. #define ID3D11VideoContext2_VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) \
  2332. ( (This)->lpVtbl -> VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) )
  2333. #define ID3D11VideoContext2_VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) \
  2334. ( (This)->lpVtbl -> VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) )
  2335. #define ID3D11VideoContext2_VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) \
  2336. ( (This)->lpVtbl -> VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) )
  2337. #define ID3D11VideoContext2_VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \
  2338. ( (This)->lpVtbl -> VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) )
  2339. #define ID3D11VideoContext2_VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) \
  2340. ( (This)->lpVtbl -> VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) )
  2341. #define ID3D11VideoContext2_VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) \
  2342. ( (This)->lpVtbl -> VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) )
  2343. #define ID3D11VideoContext2_VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) \
  2344. ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) )
  2345. #define ID3D11VideoContext2_VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) \
  2346. ( (This)->lpVtbl -> VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) )
  2347. #define ID3D11VideoContext2_VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) \
  2348. ( (This)->lpVtbl -> VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) )
  2349. #define ID3D11VideoContext2_VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) \
  2350. ( (This)->lpVtbl -> VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) )
  2351. #define ID3D11VideoContext2_VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \
  2352. ( (This)->lpVtbl -> VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) )
  2353. #define ID3D11VideoContext2_VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) \
  2354. ( (This)->lpVtbl -> VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) )
  2355. #define ID3D11VideoContext2_VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \
  2356. ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) )
  2357. #define ID3D11VideoContext2_VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) \
  2358. ( (This)->lpVtbl -> VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) )
  2359. #define ID3D11VideoContext2_VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \
  2360. ( (This)->lpVtbl -> VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) )
  2361. #define ID3D11VideoContext2_VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \
  2362. ( (This)->lpVtbl -> VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) )
  2363. #define ID3D11VideoContext2_VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) \
  2364. ( (This)->lpVtbl -> VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) )
  2365. #define ID3D11VideoContext2_VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \
  2366. ( (This)->lpVtbl -> VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) )
  2367. #define ID3D11VideoContext2_VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) \
  2368. ( (This)->lpVtbl -> VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) )
  2369. #define ID3D11VideoContext2_VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) \
  2370. ( (This)->lpVtbl -> VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) )
  2371. #define ID3D11VideoContext2_VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) \
  2372. ( (This)->lpVtbl -> VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) )
  2373. #define ID3D11VideoContext2_VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) \
  2374. ( (This)->lpVtbl -> VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) )
  2375. #define ID3D11VideoContext2_VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) \
  2376. ( (This)->lpVtbl -> VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) )
  2377. #define ID3D11VideoContext2_VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \
  2378. ( (This)->lpVtbl -> VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) )
  2379. #define ID3D11VideoContext2_VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) \
  2380. ( (This)->lpVtbl -> VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) )
  2381. #define ID3D11VideoContext2_VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \
  2382. ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) )
  2383. #define ID3D11VideoContext2_VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) \
  2384. ( (This)->lpVtbl -> VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) )
  2385. #define ID3D11VideoContext2_VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \
  2386. ( (This)->lpVtbl -> VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) )
  2387. #define ID3D11VideoContext2_VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \
  2388. ( (This)->lpVtbl -> VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) )
  2389. #define ID3D11VideoContext2_VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) \
  2390. ( (This)->lpVtbl -> VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) )
  2391. #define ID3D11VideoContext2_VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \
  2392. ( (This)->lpVtbl -> VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) )
  2393. #define ID3D11VideoContext2_VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) \
  2394. ( (This)->lpVtbl -> VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) )
  2395. #define ID3D11VideoContext2_VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) \
  2396. ( (This)->lpVtbl -> VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) )
  2397. #define ID3D11VideoContext2_VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) \
  2398. ( (This)->lpVtbl -> VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) )
  2399. #define ID3D11VideoContext2_VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) \
  2400. ( (This)->lpVtbl -> VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) )
  2401. #define ID3D11VideoContext2_VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) \
  2402. ( (This)->lpVtbl -> VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) )
  2403. #define ID3D11VideoContext2_VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \
  2404. ( (This)->lpVtbl -> VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) )
  2405. #define ID3D11VideoContext2_VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) \
  2406. ( (This)->lpVtbl -> VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) )
  2407. #define ID3D11VideoContext2_NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) \
  2408. ( (This)->lpVtbl -> NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) )
  2409. #define ID3D11VideoContext2_EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) \
  2410. ( (This)->lpVtbl -> EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) )
  2411. #define ID3D11VideoContext2_DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) \
  2412. ( (This)->lpVtbl -> DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) )
  2413. #define ID3D11VideoContext2_StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) \
  2414. ( (This)->lpVtbl -> StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) )
  2415. #define ID3D11VideoContext2_FinishSessionKeyRefresh(This,pCryptoSession) \
  2416. ( (This)->lpVtbl -> FinishSessionKeyRefresh(This,pCryptoSession) )
  2417. #define ID3D11VideoContext2_GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) \
  2418. ( (This)->lpVtbl -> GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) )
  2419. #define ID3D11VideoContext2_NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) \
  2420. ( (This)->lpVtbl -> NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) )
  2421. #define ID3D11VideoContext2_QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) \
  2422. ( (This)->lpVtbl -> QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) )
  2423. #define ID3D11VideoContext2_ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) \
  2424. ( (This)->lpVtbl -> ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) )
  2425. #define ID3D11VideoContext2_VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) \
  2426. ( (This)->lpVtbl -> VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) )
  2427. #define ID3D11VideoContext2_VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) \
  2428. ( (This)->lpVtbl -> VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) )
  2429. #define ID3D11VideoContext2_SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) \
  2430. ( (This)->lpVtbl -> SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) )
  2431. #define ID3D11VideoContext2_GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) \
  2432. ( (This)->lpVtbl -> GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) )
  2433. #define ID3D11VideoContext2_CheckCryptoSessionStatus(This,pCryptoSession,pStatus) \
  2434. ( (This)->lpVtbl -> CheckCryptoSessionStatus(This,pCryptoSession,pStatus) )
  2435. #define ID3D11VideoContext2_DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) \
  2436. ( (This)->lpVtbl -> DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) )
  2437. #define ID3D11VideoContext2_DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) \
  2438. ( (This)->lpVtbl -> DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) )
  2439. #define ID3D11VideoContext2_VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) \
  2440. ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) )
  2441. #define ID3D11VideoContext2_VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) \
  2442. ( (This)->lpVtbl -> VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) )
  2443. #define ID3D11VideoContext2_VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) \
  2444. ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) )
  2445. #define ID3D11VideoContext2_VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) \
  2446. ( (This)->lpVtbl -> VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) )
  2447. #define ID3D11VideoContext2_VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) \
  2448. ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) )
  2449. #define ID3D11VideoContext2_VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) \
  2450. ( (This)->lpVtbl -> VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) )
  2451. #define ID3D11VideoContext2_VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) \
  2452. ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) )
  2453. #define ID3D11VideoContext2_VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) \
  2454. ( (This)->lpVtbl -> VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) )
  2455. #define ID3D11VideoContext2_VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) \
  2456. ( (This)->lpVtbl -> VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) )
  2457. #define ID3D11VideoContext2_VideoProcessorSetOutputHDRMetaData(This,pVideoProcessor,Type,Size,pHDRMetaData) \
  2458. ( (This)->lpVtbl -> VideoProcessorSetOutputHDRMetaData(This,pVideoProcessor,Type,Size,pHDRMetaData) )
  2459. #define ID3D11VideoContext2_VideoProcessorGetOutputHDRMetaData(This,pVideoProcessor,pType,Size,pMetaData) \
  2460. ( (This)->lpVtbl -> VideoProcessorGetOutputHDRMetaData(This,pVideoProcessor,pType,Size,pMetaData) )
  2461. #define ID3D11VideoContext2_VideoProcessorSetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,Type,Size,pHDRMetaData) \
  2462. ( (This)->lpVtbl -> VideoProcessorSetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,Type,Size,pHDRMetaData) )
  2463. #define ID3D11VideoContext2_VideoProcessorGetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,pType,Size,pMetaData) \
  2464. ( (This)->lpVtbl -> VideoProcessorGetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,pType,Size,pMetaData) )
  2465. #endif /* COBJMACROS */
  2466. #endif /* C style interface */
  2467. #endif /* __ID3D11VideoContext2_INTERFACE_DEFINED__ */
  2468. /* interface __MIDL_itf_d3d11_4_0000_0004 */
  2469. /* [local] */
  2470. typedef
  2471. enum D3D11_FEATURE_VIDEO
  2472. {
  2473. D3D11_FEATURE_VIDEO_DECODER_HISTOGRAM = 0
  2474. } D3D11_FEATURE_VIDEO;
  2475. typedef
  2476. enum D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT
  2477. {
  2478. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_Y = 0,
  2479. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_U = 1,
  2480. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_V = 2,
  2481. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_R = 0,
  2482. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_G = 1,
  2483. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_B = 2,
  2484. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_A = 3
  2485. } D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT;
  2486. typedef
  2487. enum D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS
  2488. {
  2489. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_NONE = 0,
  2490. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_Y = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_Y ) ,
  2491. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_U = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_U ) ,
  2492. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_V = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_V ) ,
  2493. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_R = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_R ) ,
  2494. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_G = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_G ) ,
  2495. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_B = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_B ) ,
  2496. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_A = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_A )
  2497. } D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS;
  2498. DEFINE_ENUM_FLAG_OPERATORS(D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS );
  2499. typedef struct D3D11_FEATURE_DATA_VIDEO_DECODER_HISTOGRAM
  2500. {
  2501. D3D11_VIDEO_DECODER_DESC DecoderDesc;
  2502. D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS Components;
  2503. UINT BinCount;
  2504. UINT CounterBitDepth;
  2505. } D3D11_FEATURE_DATA_VIDEO_DECODER_HISTOGRAM;
  2506. typedef
  2507. enum D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS
  2508. {
  2509. D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAG_NONE = 0
  2510. } D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS;
  2511. DEFINE_ENUM_FLAG_OPERATORS(D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS );
  2512. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0004_v0_0_c_ifspec;
  2513. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0004_v0_0_s_ifspec;
  2514. #ifndef __ID3D11VideoDevice2_INTERFACE_DEFINED__
  2515. #define __ID3D11VideoDevice2_INTERFACE_DEFINED__
  2516. /* interface ID3D11VideoDevice2 */
  2517. /* [unique][local][object][uuid] */
  2518. EXTERN_C const IID IID_ID3D11VideoDevice2;
  2519. #if defined(__cplusplus) && !defined(CINTERFACE)
  2520. MIDL_INTERFACE("59C0CB01-35F0-4A70-8F67-87905C906A53")
  2521. ID3D11VideoDevice2 : public ID3D11VideoDevice1
  2522. {
  2523. public:
  2524. virtual HRESULT STDMETHODCALLTYPE CheckFeatureSupport(
  2525. D3D11_FEATURE_VIDEO Feature,
  2526. /* [annotation] */
  2527. _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  2528. UINT FeatureSupportDataSize) = 0;
  2529. virtual HRESULT STDMETHODCALLTYPE NegotiateCryptoSessionKeyExchangeMT(
  2530. /* [annotation] */
  2531. _In_ ID3D11CryptoSession *pCryptoSession,
  2532. /* [annotation] */
  2533. _In_ D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS flags,
  2534. /* [annotation] */
  2535. _In_ UINT DataSize,
  2536. /* [annotation] */
  2537. _Inout_updates_bytes_(DataSize) void *pData) = 0;
  2538. };
  2539. #else /* C style interface */
  2540. typedef struct ID3D11VideoDevice2Vtbl
  2541. {
  2542. BEGIN_INTERFACE
  2543. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2544. ID3D11VideoDevice2 * This,
  2545. /* [in] */ REFIID riid,
  2546. /* [annotation][iid_is][out] */
  2547. _COM_Outptr_ void **ppvObject);
  2548. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2549. ID3D11VideoDevice2 * This);
  2550. ULONG ( STDMETHODCALLTYPE *Release )(
  2551. ID3D11VideoDevice2 * This);
  2552. HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )(
  2553. ID3D11VideoDevice2 * This,
  2554. /* [annotation] */
  2555. _In_ const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
  2556. /* [annotation] */
  2557. _In_ const D3D11_VIDEO_DECODER_CONFIG *pConfig,
  2558. /* [annotation] */
  2559. _COM_Outptr_ ID3D11VideoDecoder **ppDecoder);
  2560. HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )(
  2561. ID3D11VideoDevice2 * This,
  2562. /* [annotation] */
  2563. _In_ ID3D11VideoProcessorEnumerator *pEnum,
  2564. /* [annotation] */
  2565. _In_ UINT RateConversionIndex,
  2566. /* [annotation] */
  2567. _COM_Outptr_ ID3D11VideoProcessor **ppVideoProcessor);
  2568. HRESULT ( STDMETHODCALLTYPE *CreateAuthenticatedChannel )(
  2569. ID3D11VideoDevice2 * This,
  2570. /* [annotation] */
  2571. _In_ D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
  2572. /* [annotation] */
  2573. _COM_Outptr_ ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
  2574. HRESULT ( STDMETHODCALLTYPE *CreateCryptoSession )(
  2575. ID3D11VideoDevice2 * This,
  2576. /* [annotation] */
  2577. _In_ const GUID *pCryptoType,
  2578. /* [annotation] */
  2579. _In_opt_ const GUID *pDecoderProfile,
  2580. /* [annotation] */
  2581. _In_ const GUID *pKeyExchangeType,
  2582. /* [annotation] */
  2583. _COM_Outptr_ ID3D11CryptoSession **ppCryptoSession);
  2584. HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderOutputView )(
  2585. ID3D11VideoDevice2 * This,
  2586. /* [annotation] */
  2587. _In_ ID3D11Resource *pResource,
  2588. /* [annotation] */
  2589. _In_ const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
  2590. /* [annotation] */
  2591. _COM_Outptr_opt_ ID3D11VideoDecoderOutputView **ppVDOVView);
  2592. HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorInputView )(
  2593. ID3D11VideoDevice2 * This,
  2594. /* [annotation] */
  2595. _In_ ID3D11Resource *pResource,
  2596. /* [annotation] */
  2597. _In_ ID3D11VideoProcessorEnumerator *pEnum,
  2598. /* [annotation] */
  2599. _In_ const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
  2600. /* [annotation] */
  2601. _COM_Outptr_opt_ ID3D11VideoProcessorInputView **ppVPIView);
  2602. HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorOutputView )(
  2603. ID3D11VideoDevice2 * This,
  2604. /* [annotation] */
  2605. _In_ ID3D11Resource *pResource,
  2606. /* [annotation] */
  2607. _In_ ID3D11VideoProcessorEnumerator *pEnum,
  2608. /* [annotation] */
  2609. _In_ const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
  2610. /* [annotation] */
  2611. _COM_Outptr_opt_ ID3D11VideoProcessorOutputView **ppVPOView);
  2612. HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorEnumerator )(
  2613. ID3D11VideoDevice2 * This,
  2614. /* [annotation] */
  2615. _In_ const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
  2616. /* [annotation] */
  2617. _COM_Outptr_ ID3D11VideoProcessorEnumerator **ppEnum);
  2618. UINT ( STDMETHODCALLTYPE *GetVideoDecoderProfileCount )(
  2619. ID3D11VideoDevice2 * This);
  2620. HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderProfile )(
  2621. ID3D11VideoDevice2 * This,
  2622. /* [annotation] */
  2623. _In_ UINT Index,
  2624. /* [annotation] */
  2625. _Out_ GUID *pDecoderProfile);
  2626. HRESULT ( STDMETHODCALLTYPE *CheckVideoDecoderFormat )(
  2627. ID3D11VideoDevice2 * This,
  2628. /* [annotation] */
  2629. _In_ const GUID *pDecoderProfile,
  2630. /* [annotation] */
  2631. _In_ DXGI_FORMAT Format,
  2632. /* [annotation] */
  2633. _Out_ BOOL *pSupported);
  2634. HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderConfigCount )(
  2635. ID3D11VideoDevice2 * This,
  2636. /* [annotation] */
  2637. _In_ const D3D11_VIDEO_DECODER_DESC *pDesc,
  2638. /* [annotation] */
  2639. _Out_ UINT *pCount);
  2640. HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderConfig )(
  2641. ID3D11VideoDevice2 * This,
  2642. /* [annotation] */
  2643. _In_ const D3D11_VIDEO_DECODER_DESC *pDesc,
  2644. /* [annotation] */
  2645. _In_ UINT Index,
  2646. /* [annotation] */
  2647. _Out_ D3D11_VIDEO_DECODER_CONFIG *pConfig);
  2648. HRESULT ( STDMETHODCALLTYPE *GetContentProtectionCaps )(
  2649. ID3D11VideoDevice2 * This,
  2650. /* [annotation] */
  2651. _In_opt_ const GUID *pCryptoType,
  2652. /* [annotation] */
  2653. _In_opt_ const GUID *pDecoderProfile,
  2654. /* [annotation] */
  2655. _Out_ D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
  2656. HRESULT ( STDMETHODCALLTYPE *CheckCryptoKeyExchange )(
  2657. ID3D11VideoDevice2 * This,
  2658. /* [annotation] */
  2659. _In_ const GUID *pCryptoType,
  2660. /* [annotation] */
  2661. _In_opt_ const GUID *pDecoderProfile,
  2662. /* [annotation] */
  2663. _In_ UINT Index,
  2664. /* [annotation] */
  2665. _Out_ GUID *pKeyExchangeType);
  2666. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  2667. ID3D11VideoDevice2 * This,
  2668. /* [annotation] */
  2669. _In_ REFGUID guid,
  2670. /* [annotation] */
  2671. _In_ UINT DataSize,
  2672. /* [annotation] */
  2673. _In_reads_bytes_opt_(DataSize) const void *pData);
  2674. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  2675. ID3D11VideoDevice2 * This,
  2676. /* [annotation] */
  2677. _In_ REFGUID guid,
  2678. /* [annotation] */
  2679. _In_opt_ const IUnknown *pData);
  2680. HRESULT ( STDMETHODCALLTYPE *GetCryptoSessionPrivateDataSize )(
  2681. ID3D11VideoDevice2 * This,
  2682. /* [annotation] */
  2683. _In_ const GUID *pCryptoType,
  2684. /* [annotation] */
  2685. _In_opt_ const GUID *pDecoderProfile,
  2686. /* [annotation] */
  2687. _In_ const GUID *pKeyExchangeType,
  2688. /* [annotation] */
  2689. _Out_ UINT *pPrivateInputSize,
  2690. /* [annotation] */
  2691. _Out_ UINT *pPrivateOutputSize);
  2692. HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderCaps )(
  2693. ID3D11VideoDevice2 * This,
  2694. /* [annotation] */
  2695. _In_ const GUID *pDecoderProfile,
  2696. /* [annotation] */
  2697. _In_ UINT SampleWidth,
  2698. /* [annotation] */
  2699. _In_ UINT SampleHeight,
  2700. /* [annotation] */
  2701. _In_ const DXGI_RATIONAL *pFrameRate,
  2702. /* [annotation] */
  2703. _In_ UINT BitRate,
  2704. /* [annotation] */
  2705. _In_opt_ const GUID *pCryptoType,
  2706. /* [annotation] */
  2707. _Out_ UINT *pDecoderCaps);
  2708. HRESULT ( STDMETHODCALLTYPE *CheckVideoDecoderDownsampling )(
  2709. ID3D11VideoDevice2 * This,
  2710. /* [annotation] */
  2711. _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc,
  2712. /* [annotation] */
  2713. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  2714. /* [annotation] */
  2715. _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig,
  2716. /* [annotation] */
  2717. _In_ const DXGI_RATIONAL *pFrameRate,
  2718. /* [annotation] */
  2719. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc,
  2720. /* [annotation] */
  2721. _Out_ BOOL *pSupported,
  2722. /* [annotation] */
  2723. _Out_ BOOL *pRealTimeHint);
  2724. HRESULT ( STDMETHODCALLTYPE *RecommendVideoDecoderDownsampleParameters )(
  2725. ID3D11VideoDevice2 * This,
  2726. /* [annotation] */
  2727. _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc,
  2728. /* [annotation] */
  2729. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  2730. /* [annotation] */
  2731. _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig,
  2732. /* [annotation] */
  2733. _In_ const DXGI_RATIONAL *pFrameRate,
  2734. /* [annotation] */
  2735. _Out_ D3D11_VIDEO_SAMPLE_DESC *pRecommendedOutputDesc);
  2736. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  2737. ID3D11VideoDevice2 * This,
  2738. D3D11_FEATURE_VIDEO Feature,
  2739. /* [annotation] */
  2740. _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  2741. UINT FeatureSupportDataSize);
  2742. HRESULT ( STDMETHODCALLTYPE *NegotiateCryptoSessionKeyExchangeMT )(
  2743. ID3D11VideoDevice2 * This,
  2744. /* [annotation] */
  2745. _In_ ID3D11CryptoSession *pCryptoSession,
  2746. /* [annotation] */
  2747. _In_ D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS flags,
  2748. /* [annotation] */
  2749. _In_ UINT DataSize,
  2750. /* [annotation] */
  2751. _Inout_updates_bytes_(DataSize) void *pData);
  2752. END_INTERFACE
  2753. } ID3D11VideoDevice2Vtbl;
  2754. interface ID3D11VideoDevice2
  2755. {
  2756. CONST_VTBL struct ID3D11VideoDevice2Vtbl *lpVtbl;
  2757. };
  2758. #ifdef COBJMACROS
  2759. #define ID3D11VideoDevice2_QueryInterface(This,riid,ppvObject) \
  2760. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  2761. #define ID3D11VideoDevice2_AddRef(This) \
  2762. ( (This)->lpVtbl -> AddRef(This) )
  2763. #define ID3D11VideoDevice2_Release(This) \
  2764. ( (This)->lpVtbl -> Release(This) )
  2765. #define ID3D11VideoDevice2_CreateVideoDecoder(This,pVideoDesc,pConfig,ppDecoder) \
  2766. ( (This)->lpVtbl -> CreateVideoDecoder(This,pVideoDesc,pConfig,ppDecoder) )
  2767. #define ID3D11VideoDevice2_CreateVideoProcessor(This,pEnum,RateConversionIndex,ppVideoProcessor) \
  2768. ( (This)->lpVtbl -> CreateVideoProcessor(This,pEnum,RateConversionIndex,ppVideoProcessor) )
  2769. #define ID3D11VideoDevice2_CreateAuthenticatedChannel(This,ChannelType,ppAuthenticatedChannel) \
  2770. ( (This)->lpVtbl -> CreateAuthenticatedChannel(This,ChannelType,ppAuthenticatedChannel) )
  2771. #define ID3D11VideoDevice2_CreateCryptoSession(This,pCryptoType,pDecoderProfile,pKeyExchangeType,ppCryptoSession) \
  2772. ( (This)->lpVtbl -> CreateCryptoSession(This,pCryptoType,pDecoderProfile,pKeyExchangeType,ppCryptoSession) )
  2773. #define ID3D11VideoDevice2_CreateVideoDecoderOutputView(This,pResource,pDesc,ppVDOVView) \
  2774. ( (This)->lpVtbl -> CreateVideoDecoderOutputView(This,pResource,pDesc,ppVDOVView) )
  2775. #define ID3D11VideoDevice2_CreateVideoProcessorInputView(This,pResource,pEnum,pDesc,ppVPIView) \
  2776. ( (This)->lpVtbl -> CreateVideoProcessorInputView(This,pResource,pEnum,pDesc,ppVPIView) )
  2777. #define ID3D11VideoDevice2_CreateVideoProcessorOutputView(This,pResource,pEnum,pDesc,ppVPOView) \
  2778. ( (This)->lpVtbl -> CreateVideoProcessorOutputView(This,pResource,pEnum,pDesc,ppVPOView) )
  2779. #define ID3D11VideoDevice2_CreateVideoProcessorEnumerator(This,pDesc,ppEnum) \
  2780. ( (This)->lpVtbl -> CreateVideoProcessorEnumerator(This,pDesc,ppEnum) )
  2781. #define ID3D11VideoDevice2_GetVideoDecoderProfileCount(This) \
  2782. ( (This)->lpVtbl -> GetVideoDecoderProfileCount(This) )
  2783. #define ID3D11VideoDevice2_GetVideoDecoderProfile(This,Index,pDecoderProfile) \
  2784. ( (This)->lpVtbl -> GetVideoDecoderProfile(This,Index,pDecoderProfile) )
  2785. #define ID3D11VideoDevice2_CheckVideoDecoderFormat(This,pDecoderProfile,Format,pSupported) \
  2786. ( (This)->lpVtbl -> CheckVideoDecoderFormat(This,pDecoderProfile,Format,pSupported) )
  2787. #define ID3D11VideoDevice2_GetVideoDecoderConfigCount(This,pDesc,pCount) \
  2788. ( (This)->lpVtbl -> GetVideoDecoderConfigCount(This,pDesc,pCount) )
  2789. #define ID3D11VideoDevice2_GetVideoDecoderConfig(This,pDesc,Index,pConfig) \
  2790. ( (This)->lpVtbl -> GetVideoDecoderConfig(This,pDesc,Index,pConfig) )
  2791. #define ID3D11VideoDevice2_GetContentProtectionCaps(This,pCryptoType,pDecoderProfile,pCaps) \
  2792. ( (This)->lpVtbl -> GetContentProtectionCaps(This,pCryptoType,pDecoderProfile,pCaps) )
  2793. #define ID3D11VideoDevice2_CheckCryptoKeyExchange(This,pCryptoType,pDecoderProfile,Index,pKeyExchangeType) \
  2794. ( (This)->lpVtbl -> CheckCryptoKeyExchange(This,pCryptoType,pDecoderProfile,Index,pKeyExchangeType) )
  2795. #define ID3D11VideoDevice2_SetPrivateData(This,guid,DataSize,pData) \
  2796. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  2797. #define ID3D11VideoDevice2_SetPrivateDataInterface(This,guid,pData) \
  2798. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  2799. #define ID3D11VideoDevice2_GetCryptoSessionPrivateDataSize(This,pCryptoType,pDecoderProfile,pKeyExchangeType,pPrivateInputSize,pPrivateOutputSize) \
  2800. ( (This)->lpVtbl -> GetCryptoSessionPrivateDataSize(This,pCryptoType,pDecoderProfile,pKeyExchangeType,pPrivateInputSize,pPrivateOutputSize) )
  2801. #define ID3D11VideoDevice2_GetVideoDecoderCaps(This,pDecoderProfile,SampleWidth,SampleHeight,pFrameRate,BitRate,pCryptoType,pDecoderCaps) \
  2802. ( (This)->lpVtbl -> GetVideoDecoderCaps(This,pDecoderProfile,SampleWidth,SampleHeight,pFrameRate,BitRate,pCryptoType,pDecoderCaps) )
  2803. #define ID3D11VideoDevice2_CheckVideoDecoderDownsampling(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pOutputDesc,pSupported,pRealTimeHint) \
  2804. ( (This)->lpVtbl -> CheckVideoDecoderDownsampling(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pOutputDesc,pSupported,pRealTimeHint) )
  2805. #define ID3D11VideoDevice2_RecommendVideoDecoderDownsampleParameters(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pRecommendedOutputDesc) \
  2806. ( (This)->lpVtbl -> RecommendVideoDecoderDownsampleParameters(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pRecommendedOutputDesc) )
  2807. #define ID3D11VideoDevice2_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  2808. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  2809. #define ID3D11VideoDevice2_NegotiateCryptoSessionKeyExchangeMT(This,pCryptoSession,flags,DataSize,pData) \
  2810. ( (This)->lpVtbl -> NegotiateCryptoSessionKeyExchangeMT(This,pCryptoSession,flags,DataSize,pData) )
  2811. #endif /* COBJMACROS */
  2812. #endif /* C style interface */
  2813. #endif /* __ID3D11VideoDevice2_INTERFACE_DEFINED__ */
  2814. /* interface __MIDL_itf_d3d11_4_0000_0005 */
  2815. /* [local] */
  2816. typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC2
  2817. {
  2818. D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
  2819. UINT DataOffset;
  2820. UINT DataSize;
  2821. /* [annotation] */
  2822. _Field_size_opt_(IVSize) void *pIV;
  2823. UINT IVSize;
  2824. /* [annotation] */
  2825. _Field_size_opt_(SubSampleMappingCount) D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK *pSubSampleMappingBlock;
  2826. UINT SubSampleMappingCount;
  2827. UINT cBlocksStripeEncrypted;
  2828. UINT cBlocksStripeClear;
  2829. } D3D11_VIDEO_DECODER_BUFFER_DESC2;
  2830. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0005_v0_0_c_ifspec;
  2831. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0005_v0_0_s_ifspec;
  2832. #ifndef __ID3D11VideoContext3_INTERFACE_DEFINED__
  2833. #define __ID3D11VideoContext3_INTERFACE_DEFINED__
  2834. /* interface ID3D11VideoContext3 */
  2835. /* [unique][local][object][uuid] */
  2836. EXTERN_C const IID IID_ID3D11VideoContext3;
  2837. #if defined(__cplusplus) && !defined(CINTERFACE)
  2838. MIDL_INTERFACE("A9E2FAA0-CB39-418F-A0B7-D8AAD4DE672E")
  2839. ID3D11VideoContext3 : public ID3D11VideoContext2
  2840. {
  2841. public:
  2842. virtual HRESULT STDMETHODCALLTYPE DecoderBeginFrame1(
  2843. /* [annotation] */
  2844. _In_ ID3D11VideoDecoder *pDecoder,
  2845. /* [annotation] */
  2846. _In_ ID3D11VideoDecoderOutputView *pView,
  2847. UINT ContentKeySize,
  2848. /* [annotation] */
  2849. _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey,
  2850. /* [annotation] */
  2851. _In_range_(0, D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS) UINT NumComponentHistograms,
  2852. /* [annotation] */
  2853. _In_reads_opt_(NumComponentHistograms) const UINT *pHistogramOffsets,
  2854. /* [annotation] */
  2855. _In_reads_opt_(NumComponentHistograms) ID3D11Buffer *const *ppHistogramBuffers) = 0;
  2856. virtual HRESULT STDMETHODCALLTYPE SubmitDecoderBuffers2(
  2857. /* [annotation] */
  2858. _In_ ID3D11VideoDecoder *pDecoder,
  2859. /* [annotation] */
  2860. _In_ UINT NumBuffers,
  2861. /* [annotation] */
  2862. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC2 *pBufferDesc) = 0;
  2863. };
  2864. #else /* C style interface */
  2865. typedef struct ID3D11VideoContext3Vtbl
  2866. {
  2867. BEGIN_INTERFACE
  2868. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2869. ID3D11VideoContext3 * This,
  2870. /* [in] */ REFIID riid,
  2871. /* [annotation][iid_is][out] */
  2872. _COM_Outptr_ void **ppvObject);
  2873. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2874. ID3D11VideoContext3 * This);
  2875. ULONG ( STDMETHODCALLTYPE *Release )(
  2876. ID3D11VideoContext3 * This);
  2877. void ( STDMETHODCALLTYPE *GetDevice )(
  2878. ID3D11VideoContext3 * This,
  2879. /* [annotation] */
  2880. _Outptr_ ID3D11Device **ppDevice);
  2881. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  2882. ID3D11VideoContext3 * This,
  2883. /* [annotation] */
  2884. _In_ REFGUID guid,
  2885. /* [annotation] */
  2886. _Inout_ UINT *pDataSize,
  2887. /* [annotation] */
  2888. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  2889. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  2890. ID3D11VideoContext3 * This,
  2891. /* [annotation] */
  2892. _In_ REFGUID guid,
  2893. /* [annotation] */
  2894. _In_ UINT DataSize,
  2895. /* [annotation] */
  2896. _In_reads_bytes_opt_( DataSize ) const void *pData);
  2897. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  2898. ID3D11VideoContext3 * This,
  2899. /* [annotation] */
  2900. _In_ REFGUID guid,
  2901. /* [annotation] */
  2902. _In_opt_ const IUnknown *pData);
  2903. HRESULT ( STDMETHODCALLTYPE *GetDecoderBuffer )(
  2904. ID3D11VideoContext3 * This,
  2905. /* [annotation] */
  2906. _In_ ID3D11VideoDecoder *pDecoder,
  2907. D3D11_VIDEO_DECODER_BUFFER_TYPE Type,
  2908. /* [annotation] */
  2909. _Out_ UINT *pBufferSize,
  2910. /* [annotation] */
  2911. _Outptr_result_bytebuffer_(*pBufferSize) void **ppBuffer);
  2912. HRESULT ( STDMETHODCALLTYPE *ReleaseDecoderBuffer )(
  2913. ID3D11VideoContext3 * This,
  2914. /* [annotation] */
  2915. _In_ ID3D11VideoDecoder *pDecoder,
  2916. /* [annotation] */
  2917. _In_ D3D11_VIDEO_DECODER_BUFFER_TYPE Type);
  2918. HRESULT ( STDMETHODCALLTYPE *DecoderBeginFrame )(
  2919. ID3D11VideoContext3 * This,
  2920. /* [annotation] */
  2921. _In_ ID3D11VideoDecoder *pDecoder,
  2922. /* [annotation] */
  2923. _In_ ID3D11VideoDecoderOutputView *pView,
  2924. UINT ContentKeySize,
  2925. /* [annotation] */
  2926. _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey);
  2927. HRESULT ( STDMETHODCALLTYPE *DecoderEndFrame )(
  2928. ID3D11VideoContext3 * This,
  2929. /* [annotation] */
  2930. _In_ ID3D11VideoDecoder *pDecoder);
  2931. HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers )(
  2932. ID3D11VideoContext3 * This,
  2933. /* [annotation] */
  2934. _In_ ID3D11VideoDecoder *pDecoder,
  2935. /* [annotation] */
  2936. _In_ UINT NumBuffers,
  2937. /* [annotation] */
  2938. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC *pBufferDesc);
  2939. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *DecoderExtension )(
  2940. ID3D11VideoContext3 * This,
  2941. /* [annotation] */
  2942. _In_ ID3D11VideoDecoder *pDecoder,
  2943. /* [annotation] */
  2944. _In_ const D3D11_VIDEO_DECODER_EXTENSION *pExtensionData);
  2945. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputTargetRect )(
  2946. ID3D11VideoContext3 * This,
  2947. /* [annotation] */
  2948. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2949. /* [annotation] */
  2950. _In_ BOOL Enable,
  2951. /* [annotation] */
  2952. _In_opt_ const RECT *pRect);
  2953. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputBackgroundColor )(
  2954. ID3D11VideoContext3 * This,
  2955. /* [annotation] */
  2956. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2957. /* [annotation] */
  2958. _In_ BOOL YCbCr,
  2959. /* [annotation] */
  2960. _In_ const D3D11_VIDEO_COLOR *pColor);
  2961. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace )(
  2962. ID3D11VideoContext3 * This,
  2963. /* [annotation] */
  2964. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2965. /* [annotation] */
  2966. _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  2967. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputAlphaFillMode )(
  2968. ID3D11VideoContext3 * This,
  2969. /* [annotation] */
  2970. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2971. /* [annotation] */
  2972. _In_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE AlphaFillMode,
  2973. /* [annotation] */
  2974. _In_ UINT StreamIndex);
  2975. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputConstriction )(
  2976. ID3D11VideoContext3 * This,
  2977. /* [annotation] */
  2978. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2979. /* [annotation] */
  2980. _In_ BOOL Enable,
  2981. /* [annotation] */
  2982. _In_ SIZE Size);
  2983. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputStereoMode )(
  2984. ID3D11VideoContext3 * This,
  2985. /* [annotation] */
  2986. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2987. /* [annotation] */
  2988. _In_ BOOL Enable);
  2989. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetOutputExtension )(
  2990. ID3D11VideoContext3 * This,
  2991. /* [annotation] */
  2992. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2993. /* [annotation] */
  2994. _In_ const GUID *pExtensionGuid,
  2995. /* [annotation] */
  2996. _In_ UINT DataSize,
  2997. /* [annotation] */
  2998. _In_ void *pData);
  2999. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputTargetRect )(
  3000. ID3D11VideoContext3 * This,
  3001. /* [annotation] */
  3002. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3003. /* [annotation] */
  3004. _Out_ BOOL *Enabled,
  3005. /* [annotation] */
  3006. _Out_ RECT *pRect);
  3007. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputBackgroundColor )(
  3008. ID3D11VideoContext3 * This,
  3009. /* [annotation] */
  3010. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3011. /* [annotation] */
  3012. _Out_ BOOL *pYCbCr,
  3013. /* [annotation] */
  3014. _Out_ D3D11_VIDEO_COLOR *pColor);
  3015. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace )(
  3016. ID3D11VideoContext3 * This,
  3017. /* [annotation] */
  3018. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3019. /* [annotation] */
  3020. _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  3021. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputAlphaFillMode )(
  3022. ID3D11VideoContext3 * This,
  3023. /* [annotation] */
  3024. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3025. /* [annotation] */
  3026. _Out_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *pAlphaFillMode,
  3027. /* [annotation] */
  3028. _Out_ UINT *pStreamIndex);
  3029. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputConstriction )(
  3030. ID3D11VideoContext3 * This,
  3031. /* [annotation] */
  3032. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3033. /* [annotation] */
  3034. _Out_ BOOL *pEnabled,
  3035. /* [annotation] */
  3036. _Out_ SIZE *pSize);
  3037. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputStereoMode )(
  3038. ID3D11VideoContext3 * This,
  3039. /* [annotation] */
  3040. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3041. /* [annotation] */
  3042. _Out_ BOOL *pEnabled);
  3043. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetOutputExtension )(
  3044. ID3D11VideoContext3 * This,
  3045. /* [annotation] */
  3046. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3047. /* [annotation] */
  3048. _In_ const GUID *pExtensionGuid,
  3049. /* [annotation] */
  3050. _In_ UINT DataSize,
  3051. /* [annotation] */
  3052. _Out_writes_bytes_(DataSize) void *pData);
  3053. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFrameFormat )(
  3054. ID3D11VideoContext3 * This,
  3055. /* [annotation] */
  3056. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3057. /* [annotation] */
  3058. _In_ UINT StreamIndex,
  3059. /* [annotation] */
  3060. _In_ D3D11_VIDEO_FRAME_FORMAT FrameFormat);
  3061. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace )(
  3062. ID3D11VideoContext3 * This,
  3063. /* [annotation] */
  3064. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3065. /* [annotation] */
  3066. _In_ UINT StreamIndex,
  3067. /* [annotation] */
  3068. _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  3069. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamOutputRate )(
  3070. ID3D11VideoContext3 * This,
  3071. /* [annotation] */
  3072. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3073. /* [annotation] */
  3074. _In_ UINT StreamIndex,
  3075. /* [annotation] */
  3076. _In_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate,
  3077. /* [annotation] */
  3078. _In_ BOOL RepeatFrame,
  3079. /* [annotation] */
  3080. _In_opt_ const DXGI_RATIONAL *pCustomRate);
  3081. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamSourceRect )(
  3082. ID3D11VideoContext3 * This,
  3083. /* [annotation] */
  3084. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3085. /* [annotation] */
  3086. _In_ UINT StreamIndex,
  3087. /* [annotation] */
  3088. _In_ BOOL Enable,
  3089. /* [annotation] */
  3090. _In_opt_ const RECT *pRect);
  3091. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamDestRect )(
  3092. ID3D11VideoContext3 * This,
  3093. /* [annotation] */
  3094. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3095. /* [annotation] */
  3096. _In_ UINT StreamIndex,
  3097. /* [annotation] */
  3098. _In_ BOOL Enable,
  3099. /* [annotation] */
  3100. _In_opt_ const RECT *pRect);
  3101. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAlpha )(
  3102. ID3D11VideoContext3 * This,
  3103. /* [annotation] */
  3104. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3105. /* [annotation] */
  3106. _In_ UINT StreamIndex,
  3107. /* [annotation] */
  3108. _In_ BOOL Enable,
  3109. /* [annotation] */
  3110. _In_ FLOAT Alpha);
  3111. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPalette )(
  3112. ID3D11VideoContext3 * This,
  3113. /* [annotation] */
  3114. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3115. /* [annotation] */
  3116. _In_ UINT StreamIndex,
  3117. /* [annotation] */
  3118. _In_ UINT Count,
  3119. /* [annotation] */
  3120. _In_reads_opt_(Count) const UINT *pEntries);
  3121. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPixelAspectRatio )(
  3122. ID3D11VideoContext3 * This,
  3123. /* [annotation] */
  3124. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3125. /* [annotation] */
  3126. _In_ UINT StreamIndex,
  3127. /* [annotation] */
  3128. _In_ BOOL Enable,
  3129. /* [annotation] */
  3130. _In_opt_ const DXGI_RATIONAL *pSourceAspectRatio,
  3131. /* [annotation] */
  3132. _In_opt_ const DXGI_RATIONAL *pDestinationAspectRatio);
  3133. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamLumaKey )(
  3134. ID3D11VideoContext3 * This,
  3135. /* [annotation] */
  3136. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3137. /* [annotation] */
  3138. _In_ UINT StreamIndex,
  3139. /* [annotation] */
  3140. _In_ BOOL Enable,
  3141. /* [annotation] */
  3142. _In_ FLOAT Lower,
  3143. /* [annotation] */
  3144. _In_ FLOAT Upper);
  3145. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamStereoFormat )(
  3146. ID3D11VideoContext3 * This,
  3147. /* [annotation] */
  3148. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3149. /* [annotation] */
  3150. _In_ UINT StreamIndex,
  3151. /* [annotation] */
  3152. _In_ BOOL Enable,
  3153. /* [annotation] */
  3154. _In_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format,
  3155. /* [annotation] */
  3156. _In_ BOOL LeftViewFrame0,
  3157. /* [annotation] */
  3158. _In_ BOOL BaseViewFrame0,
  3159. /* [annotation] */
  3160. _In_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode,
  3161. /* [annotation] */
  3162. _In_ int MonoOffset);
  3163. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAutoProcessingMode )(
  3164. ID3D11VideoContext3 * This,
  3165. /* [annotation] */
  3166. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3167. /* [annotation] */
  3168. _In_ UINT StreamIndex,
  3169. /* [annotation] */
  3170. _In_ BOOL Enable);
  3171. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFilter )(
  3172. ID3D11VideoContext3 * This,
  3173. /* [annotation] */
  3174. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3175. /* [annotation] */
  3176. _In_ UINT StreamIndex,
  3177. /* [annotation] */
  3178. _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter,
  3179. /* [annotation] */
  3180. _In_ BOOL Enable,
  3181. /* [annotation] */
  3182. _In_ int Level);
  3183. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetStreamExtension )(
  3184. ID3D11VideoContext3 * This,
  3185. /* [annotation] */
  3186. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3187. /* [annotation] */
  3188. _In_ UINT StreamIndex,
  3189. /* [annotation] */
  3190. _In_ const GUID *pExtensionGuid,
  3191. /* [annotation] */
  3192. _In_ UINT DataSize,
  3193. /* [annotation] */
  3194. _In_ void *pData);
  3195. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFrameFormat )(
  3196. ID3D11VideoContext3 * This,
  3197. /* [annotation] */
  3198. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3199. /* [annotation] */
  3200. _In_ UINT StreamIndex,
  3201. /* [annotation] */
  3202. _Out_ D3D11_VIDEO_FRAME_FORMAT *pFrameFormat);
  3203. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace )(
  3204. ID3D11VideoContext3 * This,
  3205. /* [annotation] */
  3206. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3207. /* [annotation] */
  3208. _In_ UINT StreamIndex,
  3209. /* [annotation] */
  3210. _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  3211. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamOutputRate )(
  3212. ID3D11VideoContext3 * This,
  3213. /* [annotation] */
  3214. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3215. /* [annotation] */
  3216. _In_ UINT StreamIndex,
  3217. /* [annotation] */
  3218. _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *pOutputRate,
  3219. /* [annotation] */
  3220. _Out_ BOOL *pRepeatFrame,
  3221. /* [annotation] */
  3222. _Out_ DXGI_RATIONAL *pCustomRate);
  3223. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamSourceRect )(
  3224. ID3D11VideoContext3 * This,
  3225. /* [annotation] */
  3226. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3227. /* [annotation] */
  3228. _In_ UINT StreamIndex,
  3229. /* [annotation] */
  3230. _Out_ BOOL *pEnabled,
  3231. /* [annotation] */
  3232. _Out_ RECT *pRect);
  3233. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamDestRect )(
  3234. ID3D11VideoContext3 * This,
  3235. /* [annotation] */
  3236. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3237. /* [annotation] */
  3238. _In_ UINT StreamIndex,
  3239. /* [annotation] */
  3240. _Out_ BOOL *pEnabled,
  3241. /* [annotation] */
  3242. _Out_ RECT *pRect);
  3243. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAlpha )(
  3244. ID3D11VideoContext3 * This,
  3245. /* [annotation] */
  3246. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3247. /* [annotation] */
  3248. _In_ UINT StreamIndex,
  3249. /* [annotation] */
  3250. _Out_ BOOL *pEnabled,
  3251. /* [annotation] */
  3252. _Out_ FLOAT *pAlpha);
  3253. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPalette )(
  3254. ID3D11VideoContext3 * This,
  3255. /* [annotation] */
  3256. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3257. /* [annotation] */
  3258. _In_ UINT StreamIndex,
  3259. /* [annotation] */
  3260. _In_ UINT Count,
  3261. /* [annotation] */
  3262. _Out_writes_(Count) UINT *pEntries);
  3263. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPixelAspectRatio )(
  3264. ID3D11VideoContext3 * This,
  3265. /* [annotation] */
  3266. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3267. /* [annotation] */
  3268. _In_ UINT StreamIndex,
  3269. /* [annotation] */
  3270. _Out_ BOOL *pEnabled,
  3271. /* [annotation] */
  3272. _Out_ DXGI_RATIONAL *pSourceAspectRatio,
  3273. /* [annotation] */
  3274. _Out_ DXGI_RATIONAL *pDestinationAspectRatio);
  3275. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamLumaKey )(
  3276. ID3D11VideoContext3 * This,
  3277. /* [annotation] */
  3278. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3279. /* [annotation] */
  3280. _In_ UINT StreamIndex,
  3281. /* [annotation] */
  3282. _Out_ BOOL *pEnabled,
  3283. /* [annotation] */
  3284. _Out_ FLOAT *pLower,
  3285. /* [annotation] */
  3286. _Out_ FLOAT *pUpper);
  3287. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamStereoFormat )(
  3288. ID3D11VideoContext3 * This,
  3289. /* [annotation] */
  3290. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3291. /* [annotation] */
  3292. _In_ UINT StreamIndex,
  3293. /* [annotation] */
  3294. _Out_ BOOL *pEnable,
  3295. /* [annotation] */
  3296. _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *pFormat,
  3297. /* [annotation] */
  3298. _Out_ BOOL *pLeftViewFrame0,
  3299. /* [annotation] */
  3300. _Out_ BOOL *pBaseViewFrame0,
  3301. /* [annotation] */
  3302. _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *pFlipMode,
  3303. /* [annotation] */
  3304. _Out_ int *MonoOffset);
  3305. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAutoProcessingMode )(
  3306. ID3D11VideoContext3 * This,
  3307. /* [annotation] */
  3308. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3309. /* [annotation] */
  3310. _In_ UINT StreamIndex,
  3311. /* [annotation] */
  3312. _Out_ BOOL *pEnabled);
  3313. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFilter )(
  3314. ID3D11VideoContext3 * This,
  3315. /* [annotation] */
  3316. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3317. /* [annotation] */
  3318. _In_ UINT StreamIndex,
  3319. /* [annotation] */
  3320. _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter,
  3321. /* [annotation] */
  3322. _Out_ BOOL *pEnabled,
  3323. /* [annotation] */
  3324. _Out_ int *pLevel);
  3325. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetStreamExtension )(
  3326. ID3D11VideoContext3 * This,
  3327. /* [annotation] */
  3328. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3329. /* [annotation] */
  3330. _In_ UINT StreamIndex,
  3331. /* [annotation] */
  3332. _In_ const GUID *pExtensionGuid,
  3333. /* [annotation] */
  3334. _In_ UINT DataSize,
  3335. /* [annotation] */
  3336. _Out_writes_bytes_(DataSize) void *pData);
  3337. HRESULT ( STDMETHODCALLTYPE *VideoProcessorBlt )(
  3338. ID3D11VideoContext3 * This,
  3339. /* [annotation] */
  3340. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3341. /* [annotation] */
  3342. _In_ ID3D11VideoProcessorOutputView *pView,
  3343. /* [annotation] */
  3344. _In_ UINT OutputFrame,
  3345. /* [annotation] */
  3346. _In_ UINT StreamCount,
  3347. /* [annotation] */
  3348. _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM *pStreams);
  3349. HRESULT ( STDMETHODCALLTYPE *NegotiateCryptoSessionKeyExchange )(
  3350. ID3D11VideoContext3 * This,
  3351. /* [annotation] */
  3352. _In_ ID3D11CryptoSession *pCryptoSession,
  3353. /* [annotation] */
  3354. _In_ UINT DataSize,
  3355. /* [annotation] */
  3356. _Inout_updates_bytes_(DataSize) void *pData);
  3357. void ( STDMETHODCALLTYPE *EncryptionBlt )(
  3358. ID3D11VideoContext3 * This,
  3359. /* [annotation] */
  3360. _In_ ID3D11CryptoSession *pCryptoSession,
  3361. /* [annotation] */
  3362. _In_ ID3D11Texture2D *pSrcSurface,
  3363. /* [annotation] */
  3364. _In_ ID3D11Texture2D *pDstSurface,
  3365. /* [annotation] */
  3366. _In_ UINT IVSize,
  3367. /* [annotation] */
  3368. _Inout_opt_bytecount_(IVSize) void *pIV);
  3369. void ( STDMETHODCALLTYPE *DecryptionBlt )(
  3370. ID3D11VideoContext3 * This,
  3371. /* [annotation] */
  3372. _In_ ID3D11CryptoSession *pCryptoSession,
  3373. /* [annotation] */
  3374. _In_ ID3D11Texture2D *pSrcSurface,
  3375. /* [annotation] */
  3376. _In_ ID3D11Texture2D *pDstSurface,
  3377. /* [annotation] */
  3378. _In_opt_ D3D11_ENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo,
  3379. /* [annotation] */
  3380. _In_ UINT ContentKeySize,
  3381. /* [annotation] */
  3382. _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey,
  3383. /* [annotation] */
  3384. _In_ UINT IVSize,
  3385. /* [annotation] */
  3386. _Inout_opt_bytecount_(IVSize) void *pIV);
  3387. void ( STDMETHODCALLTYPE *StartSessionKeyRefresh )(
  3388. ID3D11VideoContext3 * This,
  3389. /* [annotation] */
  3390. _In_ ID3D11CryptoSession *pCryptoSession,
  3391. /* [annotation] */
  3392. _In_ UINT RandomNumberSize,
  3393. /* [annotation] */
  3394. _Out_writes_bytes_(RandomNumberSize) void *pRandomNumber);
  3395. void ( STDMETHODCALLTYPE *FinishSessionKeyRefresh )(
  3396. ID3D11VideoContext3 * This,
  3397. /* [annotation] */
  3398. _In_ ID3D11CryptoSession *pCryptoSession);
  3399. HRESULT ( STDMETHODCALLTYPE *GetEncryptionBltKey )(
  3400. ID3D11VideoContext3 * This,
  3401. /* [annotation] */
  3402. _In_ ID3D11CryptoSession *pCryptoSession,
  3403. /* [annotation] */
  3404. _In_ UINT KeySize,
  3405. /* [annotation] */
  3406. _Out_writes_bytes_(KeySize) void *pReadbackKey);
  3407. HRESULT ( STDMETHODCALLTYPE *NegotiateAuthenticatedChannelKeyExchange )(
  3408. ID3D11VideoContext3 * This,
  3409. /* [annotation] */
  3410. _In_ ID3D11AuthenticatedChannel *pChannel,
  3411. /* [annotation] */
  3412. _In_ UINT DataSize,
  3413. /* [annotation] */
  3414. _Inout_updates_bytes_(DataSize) void *pData);
  3415. HRESULT ( STDMETHODCALLTYPE *QueryAuthenticatedChannel )(
  3416. ID3D11VideoContext3 * This,
  3417. /* [annotation] */
  3418. _In_ ID3D11AuthenticatedChannel *pChannel,
  3419. /* [annotation] */
  3420. _In_ UINT InputSize,
  3421. /* [annotation] */
  3422. _In_reads_bytes_(InputSize) const void *pInput,
  3423. /* [annotation] */
  3424. _In_ UINT OutputSize,
  3425. /* [annotation] */
  3426. _Out_writes_bytes_(OutputSize) void *pOutput);
  3427. HRESULT ( STDMETHODCALLTYPE *ConfigureAuthenticatedChannel )(
  3428. ID3D11VideoContext3 * This,
  3429. /* [annotation] */
  3430. _In_ ID3D11AuthenticatedChannel *pChannel,
  3431. /* [annotation] */
  3432. _In_ UINT InputSize,
  3433. /* [annotation] */
  3434. _In_reads_bytes_(InputSize) const void *pInput,
  3435. /* [annotation] */
  3436. _Out_ D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *pOutput);
  3437. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamRotation )(
  3438. ID3D11VideoContext3 * This,
  3439. /* [annotation] */
  3440. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3441. /* [annotation] */
  3442. _In_ UINT StreamIndex,
  3443. /* [annotation] */
  3444. _In_ BOOL Enable,
  3445. /* [annotation] */
  3446. _In_ D3D11_VIDEO_PROCESSOR_ROTATION Rotation);
  3447. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamRotation )(
  3448. ID3D11VideoContext3 * This,
  3449. /* [annotation] */
  3450. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3451. /* [annotation] */
  3452. _In_ UINT StreamIndex,
  3453. /* [annotation] */
  3454. _Out_ BOOL *pEnable,
  3455. /* [annotation] */
  3456. _Out_ D3D11_VIDEO_PROCESSOR_ROTATION *pRotation);
  3457. HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers1 )(
  3458. ID3D11VideoContext3 * This,
  3459. /* [annotation] */
  3460. _In_ ID3D11VideoDecoder *pDecoder,
  3461. /* [annotation] */
  3462. _In_ UINT NumBuffers,
  3463. /* [annotation] */
  3464. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC1 *pBufferDesc);
  3465. HRESULT ( STDMETHODCALLTYPE *GetDataForNewHardwareKey )(
  3466. ID3D11VideoContext3 * This,
  3467. /* [annotation] */
  3468. _In_ ID3D11CryptoSession *pCryptoSession,
  3469. /* [annotation] */
  3470. _In_ UINT PrivateInputSize,
  3471. /* [annotation] */
  3472. _In_reads_(PrivateInputSize) const void *pPrivatInputData,
  3473. /* [annotation] */
  3474. _Out_ UINT64 *pPrivateOutputData);
  3475. HRESULT ( STDMETHODCALLTYPE *CheckCryptoSessionStatus )(
  3476. ID3D11VideoContext3 * This,
  3477. /* [annotation] */
  3478. _In_ ID3D11CryptoSession *pCryptoSession,
  3479. /* [annotation] */
  3480. _Out_ D3D11_CRYPTO_SESSION_STATUS *pStatus);
  3481. HRESULT ( STDMETHODCALLTYPE *DecoderEnableDownsampling )(
  3482. ID3D11VideoContext3 * This,
  3483. /* [annotation] */
  3484. _In_ ID3D11VideoDecoder *pDecoder,
  3485. /* [annotation] */
  3486. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  3487. /* [annotation] */
  3488. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc,
  3489. /* [annotation] */
  3490. _In_ UINT ReferenceFrameCount);
  3491. HRESULT ( STDMETHODCALLTYPE *DecoderUpdateDownsampling )(
  3492. ID3D11VideoContext3 * This,
  3493. /* [annotation] */
  3494. _In_ ID3D11VideoDecoder *pDecoder,
  3495. /* [annotation] */
  3496. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc);
  3497. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace1 )(
  3498. ID3D11VideoContext3 * This,
  3499. /* [annotation] */
  3500. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3501. /* [annotation] */
  3502. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace);
  3503. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputShaderUsage )(
  3504. ID3D11VideoContext3 * This,
  3505. /* [annotation] */
  3506. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3507. /* [annotation] */
  3508. _In_ BOOL ShaderUsage);
  3509. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace1 )(
  3510. ID3D11VideoContext3 * This,
  3511. /* [annotation] */
  3512. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3513. /* [annotation] */
  3514. _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace);
  3515. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputShaderUsage )(
  3516. ID3D11VideoContext3 * This,
  3517. /* [annotation] */
  3518. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3519. /* [annotation] */
  3520. _Out_ BOOL *pShaderUsage);
  3521. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace1 )(
  3522. ID3D11VideoContext3 * This,
  3523. /* [annotation] */
  3524. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3525. /* [annotation] */
  3526. _In_ UINT StreamIndex,
  3527. /* [annotation] */
  3528. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace);
  3529. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamMirror )(
  3530. ID3D11VideoContext3 * This,
  3531. /* [annotation] */
  3532. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3533. /* [annotation] */
  3534. _In_ UINT StreamIndex,
  3535. /* [annotation] */
  3536. _In_ BOOL Enable,
  3537. /* [annotation] */
  3538. _In_ BOOL FlipHorizontal,
  3539. /* [annotation] */
  3540. _In_ BOOL FlipVertical);
  3541. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace1 )(
  3542. ID3D11VideoContext3 * This,
  3543. /* [annotation] */
  3544. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3545. /* [annotation] */
  3546. _In_ UINT StreamIndex,
  3547. /* [annotation] */
  3548. _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace);
  3549. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamMirror )(
  3550. ID3D11VideoContext3 * This,
  3551. /* [annotation] */
  3552. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3553. /* [annotation] */
  3554. _In_ UINT StreamIndex,
  3555. /* [annotation] */
  3556. _Out_ BOOL *pEnable,
  3557. /* [annotation] */
  3558. _Out_ BOOL *pFlipHorizontal,
  3559. /* [annotation] */
  3560. _Out_ BOOL *pFlipVertical);
  3561. HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetBehaviorHints )(
  3562. ID3D11VideoContext3 * This,
  3563. /* [annotation] */
  3564. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3565. /* [annotation] */
  3566. _In_ UINT OutputWidth,
  3567. /* [annotation] */
  3568. _In_ UINT OutputHeight,
  3569. /* [annotation] */
  3570. _In_ DXGI_FORMAT OutputFormat,
  3571. /* [annotation] */
  3572. _In_ UINT StreamCount,
  3573. /* [annotation] */
  3574. _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT *pStreams,
  3575. /* [annotation] */
  3576. _Out_ UINT *pBehaviorHints);
  3577. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputHDRMetaData )(
  3578. ID3D11VideoContext3 * This,
  3579. /* [annotation] */
  3580. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3581. /* [annotation] */
  3582. _In_ DXGI_HDR_METADATA_TYPE Type,
  3583. /* [annotation] */
  3584. _In_ UINT Size,
  3585. /* [annotation] */
  3586. _In_reads_bytes_opt_(Size) const void *pHDRMetaData);
  3587. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputHDRMetaData )(
  3588. ID3D11VideoContext3 * This,
  3589. /* [annotation] */
  3590. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3591. /* [annotation] */
  3592. _Out_ DXGI_HDR_METADATA_TYPE *pType,
  3593. /* [annotation] */
  3594. _In_ UINT Size,
  3595. /* [annotation] */
  3596. _Out_writes_bytes_opt_(Size) void *pMetaData);
  3597. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamHDRMetaData )(
  3598. ID3D11VideoContext3 * This,
  3599. /* [annotation] */
  3600. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3601. /* [annotation] */
  3602. _In_ UINT StreamIndex,
  3603. /* [annotation] */
  3604. _In_ DXGI_HDR_METADATA_TYPE Type,
  3605. /* [annotation] */
  3606. _In_ UINT Size,
  3607. /* [annotation] */
  3608. _In_reads_bytes_opt_(Size) const void *pHDRMetaData);
  3609. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamHDRMetaData )(
  3610. ID3D11VideoContext3 * This,
  3611. /* [annotation] */
  3612. _In_ ID3D11VideoProcessor *pVideoProcessor,
  3613. /* [annotation] */
  3614. _In_ UINT StreamIndex,
  3615. /* [annotation] */
  3616. _Out_ DXGI_HDR_METADATA_TYPE *pType,
  3617. /* [annotation] */
  3618. _In_ UINT Size,
  3619. /* [annotation] */
  3620. _Out_writes_bytes_opt_(Size) void *pMetaData);
  3621. HRESULT ( STDMETHODCALLTYPE *DecoderBeginFrame1 )(
  3622. ID3D11VideoContext3 * This,
  3623. /* [annotation] */
  3624. _In_ ID3D11VideoDecoder *pDecoder,
  3625. /* [annotation] */
  3626. _In_ ID3D11VideoDecoderOutputView *pView,
  3627. UINT ContentKeySize,
  3628. /* [annotation] */
  3629. _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey,
  3630. /* [annotation] */
  3631. _In_range_(0, D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS) UINT NumComponentHistograms,
  3632. /* [annotation] */
  3633. _In_reads_opt_(NumComponentHistograms) const UINT *pHistogramOffsets,
  3634. /* [annotation] */
  3635. _In_reads_opt_(NumComponentHistograms) ID3D11Buffer *const *ppHistogramBuffers);
  3636. HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers2 )(
  3637. ID3D11VideoContext3 * This,
  3638. /* [annotation] */
  3639. _In_ ID3D11VideoDecoder *pDecoder,
  3640. /* [annotation] */
  3641. _In_ UINT NumBuffers,
  3642. /* [annotation] */
  3643. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC2 *pBufferDesc);
  3644. END_INTERFACE
  3645. } ID3D11VideoContext3Vtbl;
  3646. interface ID3D11VideoContext3
  3647. {
  3648. CONST_VTBL struct ID3D11VideoContext3Vtbl *lpVtbl;
  3649. };
  3650. #ifdef COBJMACROS
  3651. #define ID3D11VideoContext3_QueryInterface(This,riid,ppvObject) \
  3652. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3653. #define ID3D11VideoContext3_AddRef(This) \
  3654. ( (This)->lpVtbl -> AddRef(This) )
  3655. #define ID3D11VideoContext3_Release(This) \
  3656. ( (This)->lpVtbl -> Release(This) )
  3657. #define ID3D11VideoContext3_GetDevice(This,ppDevice) \
  3658. ( (This)->lpVtbl -> GetDevice(This,ppDevice) )
  3659. #define ID3D11VideoContext3_GetPrivateData(This,guid,pDataSize,pData) \
  3660. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3661. #define ID3D11VideoContext3_SetPrivateData(This,guid,DataSize,pData) \
  3662. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3663. #define ID3D11VideoContext3_SetPrivateDataInterface(This,guid,pData) \
  3664. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3665. #define ID3D11VideoContext3_GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) \
  3666. ( (This)->lpVtbl -> GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) )
  3667. #define ID3D11VideoContext3_ReleaseDecoderBuffer(This,pDecoder,Type) \
  3668. ( (This)->lpVtbl -> ReleaseDecoderBuffer(This,pDecoder,Type) )
  3669. #define ID3D11VideoContext3_DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) \
  3670. ( (This)->lpVtbl -> DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) )
  3671. #define ID3D11VideoContext3_DecoderEndFrame(This,pDecoder) \
  3672. ( (This)->lpVtbl -> DecoderEndFrame(This,pDecoder) )
  3673. #define ID3D11VideoContext3_SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) \
  3674. ( (This)->lpVtbl -> SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) )
  3675. #define ID3D11VideoContext3_DecoderExtension(This,pDecoder,pExtensionData) \
  3676. ( (This)->lpVtbl -> DecoderExtension(This,pDecoder,pExtensionData) )
  3677. #define ID3D11VideoContext3_VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) \
  3678. ( (This)->lpVtbl -> VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) )
  3679. #define ID3D11VideoContext3_VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) \
  3680. ( (This)->lpVtbl -> VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) )
  3681. #define ID3D11VideoContext3_VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) \
  3682. ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) )
  3683. #define ID3D11VideoContext3_VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) \
  3684. ( (This)->lpVtbl -> VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) )
  3685. #define ID3D11VideoContext3_VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) \
  3686. ( (This)->lpVtbl -> VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) )
  3687. #define ID3D11VideoContext3_VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) \
  3688. ( (This)->lpVtbl -> VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) )
  3689. #define ID3D11VideoContext3_VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \
  3690. ( (This)->lpVtbl -> VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) )
  3691. #define ID3D11VideoContext3_VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) \
  3692. ( (This)->lpVtbl -> VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) )
  3693. #define ID3D11VideoContext3_VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) \
  3694. ( (This)->lpVtbl -> VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) )
  3695. #define ID3D11VideoContext3_VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) \
  3696. ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) )
  3697. #define ID3D11VideoContext3_VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) \
  3698. ( (This)->lpVtbl -> VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) )
  3699. #define ID3D11VideoContext3_VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) \
  3700. ( (This)->lpVtbl -> VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) )
  3701. #define ID3D11VideoContext3_VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) \
  3702. ( (This)->lpVtbl -> VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) )
  3703. #define ID3D11VideoContext3_VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \
  3704. ( (This)->lpVtbl -> VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) )
  3705. #define ID3D11VideoContext3_VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) \
  3706. ( (This)->lpVtbl -> VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) )
  3707. #define ID3D11VideoContext3_VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \
  3708. ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) )
  3709. #define ID3D11VideoContext3_VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) \
  3710. ( (This)->lpVtbl -> VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) )
  3711. #define ID3D11VideoContext3_VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \
  3712. ( (This)->lpVtbl -> VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) )
  3713. #define ID3D11VideoContext3_VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \
  3714. ( (This)->lpVtbl -> VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) )
  3715. #define ID3D11VideoContext3_VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) \
  3716. ( (This)->lpVtbl -> VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) )
  3717. #define ID3D11VideoContext3_VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \
  3718. ( (This)->lpVtbl -> VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) )
  3719. #define ID3D11VideoContext3_VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) \
  3720. ( (This)->lpVtbl -> VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) )
  3721. #define ID3D11VideoContext3_VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) \
  3722. ( (This)->lpVtbl -> VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) )
  3723. #define ID3D11VideoContext3_VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) \
  3724. ( (This)->lpVtbl -> VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) )
  3725. #define ID3D11VideoContext3_VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) \
  3726. ( (This)->lpVtbl -> VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) )
  3727. #define ID3D11VideoContext3_VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) \
  3728. ( (This)->lpVtbl -> VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) )
  3729. #define ID3D11VideoContext3_VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \
  3730. ( (This)->lpVtbl -> VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) )
  3731. #define ID3D11VideoContext3_VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) \
  3732. ( (This)->lpVtbl -> VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) )
  3733. #define ID3D11VideoContext3_VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \
  3734. ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) )
  3735. #define ID3D11VideoContext3_VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) \
  3736. ( (This)->lpVtbl -> VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) )
  3737. #define ID3D11VideoContext3_VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \
  3738. ( (This)->lpVtbl -> VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) )
  3739. #define ID3D11VideoContext3_VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \
  3740. ( (This)->lpVtbl -> VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) )
  3741. #define ID3D11VideoContext3_VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) \
  3742. ( (This)->lpVtbl -> VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) )
  3743. #define ID3D11VideoContext3_VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \
  3744. ( (This)->lpVtbl -> VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) )
  3745. #define ID3D11VideoContext3_VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) \
  3746. ( (This)->lpVtbl -> VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) )
  3747. #define ID3D11VideoContext3_VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) \
  3748. ( (This)->lpVtbl -> VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) )
  3749. #define ID3D11VideoContext3_VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) \
  3750. ( (This)->lpVtbl -> VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) )
  3751. #define ID3D11VideoContext3_VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) \
  3752. ( (This)->lpVtbl -> VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) )
  3753. #define ID3D11VideoContext3_VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) \
  3754. ( (This)->lpVtbl -> VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) )
  3755. #define ID3D11VideoContext3_VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \
  3756. ( (This)->lpVtbl -> VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) )
  3757. #define ID3D11VideoContext3_VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) \
  3758. ( (This)->lpVtbl -> VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) )
  3759. #define ID3D11VideoContext3_NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) \
  3760. ( (This)->lpVtbl -> NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) )
  3761. #define ID3D11VideoContext3_EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) \
  3762. ( (This)->lpVtbl -> EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) )
  3763. #define ID3D11VideoContext3_DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) \
  3764. ( (This)->lpVtbl -> DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) )
  3765. #define ID3D11VideoContext3_StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) \
  3766. ( (This)->lpVtbl -> StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) )
  3767. #define ID3D11VideoContext3_FinishSessionKeyRefresh(This,pCryptoSession) \
  3768. ( (This)->lpVtbl -> FinishSessionKeyRefresh(This,pCryptoSession) )
  3769. #define ID3D11VideoContext3_GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) \
  3770. ( (This)->lpVtbl -> GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) )
  3771. #define ID3D11VideoContext3_NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) \
  3772. ( (This)->lpVtbl -> NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) )
  3773. #define ID3D11VideoContext3_QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) \
  3774. ( (This)->lpVtbl -> QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) )
  3775. #define ID3D11VideoContext3_ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) \
  3776. ( (This)->lpVtbl -> ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) )
  3777. #define ID3D11VideoContext3_VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) \
  3778. ( (This)->lpVtbl -> VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) )
  3779. #define ID3D11VideoContext3_VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) \
  3780. ( (This)->lpVtbl -> VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) )
  3781. #define ID3D11VideoContext3_SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) \
  3782. ( (This)->lpVtbl -> SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) )
  3783. #define ID3D11VideoContext3_GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) \
  3784. ( (This)->lpVtbl -> GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) )
  3785. #define ID3D11VideoContext3_CheckCryptoSessionStatus(This,pCryptoSession,pStatus) \
  3786. ( (This)->lpVtbl -> CheckCryptoSessionStatus(This,pCryptoSession,pStatus) )
  3787. #define ID3D11VideoContext3_DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) \
  3788. ( (This)->lpVtbl -> DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) )
  3789. #define ID3D11VideoContext3_DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) \
  3790. ( (This)->lpVtbl -> DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) )
  3791. #define ID3D11VideoContext3_VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) \
  3792. ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) )
  3793. #define ID3D11VideoContext3_VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) \
  3794. ( (This)->lpVtbl -> VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) )
  3795. #define ID3D11VideoContext3_VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) \
  3796. ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) )
  3797. #define ID3D11VideoContext3_VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) \
  3798. ( (This)->lpVtbl -> VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) )
  3799. #define ID3D11VideoContext3_VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) \
  3800. ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) )
  3801. #define ID3D11VideoContext3_VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) \
  3802. ( (This)->lpVtbl -> VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) )
  3803. #define ID3D11VideoContext3_VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) \
  3804. ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) )
  3805. #define ID3D11VideoContext3_VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) \
  3806. ( (This)->lpVtbl -> VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) )
  3807. #define ID3D11VideoContext3_VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) \
  3808. ( (This)->lpVtbl -> VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) )
  3809. #define ID3D11VideoContext3_VideoProcessorSetOutputHDRMetaData(This,pVideoProcessor,Type,Size,pHDRMetaData) \
  3810. ( (This)->lpVtbl -> VideoProcessorSetOutputHDRMetaData(This,pVideoProcessor,Type,Size,pHDRMetaData) )
  3811. #define ID3D11VideoContext3_VideoProcessorGetOutputHDRMetaData(This,pVideoProcessor,pType,Size,pMetaData) \
  3812. ( (This)->lpVtbl -> VideoProcessorGetOutputHDRMetaData(This,pVideoProcessor,pType,Size,pMetaData) )
  3813. #define ID3D11VideoContext3_VideoProcessorSetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,Type,Size,pHDRMetaData) \
  3814. ( (This)->lpVtbl -> VideoProcessorSetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,Type,Size,pHDRMetaData) )
  3815. #define ID3D11VideoContext3_VideoProcessorGetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,pType,Size,pMetaData) \
  3816. ( (This)->lpVtbl -> VideoProcessorGetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,pType,Size,pMetaData) )
  3817. #define ID3D11VideoContext3_DecoderBeginFrame1(This,pDecoder,pView,ContentKeySize,pContentKey,NumComponentHistograms,pHistogramOffsets,ppHistogramBuffers) \
  3818. ( (This)->lpVtbl -> DecoderBeginFrame1(This,pDecoder,pView,ContentKeySize,pContentKey,NumComponentHistograms,pHistogramOffsets,ppHistogramBuffers) )
  3819. #define ID3D11VideoContext3_SubmitDecoderBuffers2(This,pDecoder,NumBuffers,pBufferDesc) \
  3820. ( (This)->lpVtbl -> SubmitDecoderBuffers2(This,pDecoder,NumBuffers,pBufferDesc) )
  3821. #endif /* COBJMACROS */
  3822. #endif /* C style interface */
  3823. #endif /* __ID3D11VideoContext3_INTERFACE_DEFINED__ */
  3824. /* interface __MIDL_itf_d3d11_4_0000_0006 */
  3825. /* [local] */
  3826. typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS4
  3827. {
  3828. BOOL ExtendedNV12SharedTextureSupported;
  3829. } D3D11_FEATURE_DATA_D3D11_OPTIONS4;
  3830. DEFINE_GUID(IID_ID3D11Device4,0x8992ab71,0x02e6,0x4b8d,0xba,0x48,0xb0,0x56,0xdc,0xda,0x42,0xc4);
  3831. DEFINE_GUID(IID_ID3D11Device5,0x8ffde202,0xa0e7,0x45df,0x9e,0x01,0xe8,0x37,0x80,0x1b,0x5e,0xa0);
  3832. DEFINE_GUID(IID_ID3D11Multithread,0x9B7E4E00,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);
  3833. DEFINE_GUID(IID_ID3D11VideoContext2,0xC4E7374C,0x6243,0x4D1B,0xAE,0x87,0x52,0xB4,0xF7,0x40,0xE2,0x61);
  3834. DEFINE_GUID(IID_ID3D11VideoDevice2,0x59C0CB01,0x35F0,0x4A70,0x8F,0x67,0x87,0x90,0x5C,0x90,0x6A,0x53);
  3835. DEFINE_GUID(IID_ID3D11VideoContext3,0xA9E2FAA0,0xCB39,0x418F,0xA0,0xB7,0xD8,0xAA,0xD4,0xDE,0x67,0x2E);
  3836. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0006_v0_0_c_ifspec;
  3837. extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0006_v0_0_s_ifspec;
  3838. /* Additional Prototypes for ALL interfaces */
  3839. /* end of Additional Prototypes */
  3840. #ifdef __cplusplus
  3841. }
  3842. #endif
  3843. #endif