d3d11_1.h 218 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220
  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_1_h__
  27. #define __d3d11_1_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __ID3D11BlendState1_FWD_DEFINED__
  33. #define __ID3D11BlendState1_FWD_DEFINED__
  34. typedef interface ID3D11BlendState1 ID3D11BlendState1;
  35. #endif /* __ID3D11BlendState1_FWD_DEFINED__ */
  36. #ifndef __ID3D11RasterizerState1_FWD_DEFINED__
  37. #define __ID3D11RasterizerState1_FWD_DEFINED__
  38. typedef interface ID3D11RasterizerState1 ID3D11RasterizerState1;
  39. #endif /* __ID3D11RasterizerState1_FWD_DEFINED__ */
  40. #ifndef __ID3DDeviceContextState_FWD_DEFINED__
  41. #define __ID3DDeviceContextState_FWD_DEFINED__
  42. typedef interface ID3DDeviceContextState ID3DDeviceContextState;
  43. #endif /* __ID3DDeviceContextState_FWD_DEFINED__ */
  44. #ifndef __ID3D11DeviceContext1_FWD_DEFINED__
  45. #define __ID3D11DeviceContext1_FWD_DEFINED__
  46. typedef interface ID3D11DeviceContext1 ID3D11DeviceContext1;
  47. #endif /* __ID3D11DeviceContext1_FWD_DEFINED__ */
  48. #ifndef __ID3D11VideoContext1_FWD_DEFINED__
  49. #define __ID3D11VideoContext1_FWD_DEFINED__
  50. typedef interface ID3D11VideoContext1 ID3D11VideoContext1;
  51. #endif /* __ID3D11VideoContext1_FWD_DEFINED__ */
  52. #ifndef __ID3D11VideoDevice1_FWD_DEFINED__
  53. #define __ID3D11VideoDevice1_FWD_DEFINED__
  54. typedef interface ID3D11VideoDevice1 ID3D11VideoDevice1;
  55. #endif /* __ID3D11VideoDevice1_FWD_DEFINED__ */
  56. #ifndef __ID3D11VideoProcessorEnumerator1_FWD_DEFINED__
  57. #define __ID3D11VideoProcessorEnumerator1_FWD_DEFINED__
  58. typedef interface ID3D11VideoProcessorEnumerator1 ID3D11VideoProcessorEnumerator1;
  59. #endif /* __ID3D11VideoProcessorEnumerator1_FWD_DEFINED__ */
  60. #ifndef __ID3D11Device1_FWD_DEFINED__
  61. #define __ID3D11Device1_FWD_DEFINED__
  62. typedef interface ID3D11Device1 ID3D11Device1;
  63. #endif /* __ID3D11Device1_FWD_DEFINED__ */
  64. #ifndef __ID3DUserDefinedAnnotation_FWD_DEFINED__
  65. #define __ID3DUserDefinedAnnotation_FWD_DEFINED__
  66. typedef interface ID3DUserDefinedAnnotation ID3DUserDefinedAnnotation;
  67. #endif /* __ID3DUserDefinedAnnotation_FWD_DEFINED__ */
  68. /* header files for imported files */
  69. #include "oaidl.h"
  70. #include "ocidl.h"
  71. #include "dxgi1_2.h"
  72. #include "d3dcommon.h"
  73. #ifdef __cplusplus
  74. extern "C"{
  75. #endif
  76. /* interface __MIDL_itf_d3d11_1_0000_0000 */
  77. /* [local] */
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #include "d3d11.h" //
  82. #ifdef __cplusplus
  83. extern "C"{
  84. #endif
  85. typedef
  86. enum D3D11_COPY_FLAGS
  87. {
  88. D3D11_COPY_NO_OVERWRITE = 0x1,
  89. D3D11_COPY_DISCARD = 0x2
  90. } D3D11_COPY_FLAGS;
  91. typedef
  92. enum D3D11_LOGIC_OP
  93. {
  94. D3D11_LOGIC_OP_CLEAR = 0,
  95. D3D11_LOGIC_OP_SET = ( D3D11_LOGIC_OP_CLEAR + 1 ) ,
  96. D3D11_LOGIC_OP_COPY = ( D3D11_LOGIC_OP_SET + 1 ) ,
  97. D3D11_LOGIC_OP_COPY_INVERTED = ( D3D11_LOGIC_OP_COPY + 1 ) ,
  98. D3D11_LOGIC_OP_NOOP = ( D3D11_LOGIC_OP_COPY_INVERTED + 1 ) ,
  99. D3D11_LOGIC_OP_INVERT = ( D3D11_LOGIC_OP_NOOP + 1 ) ,
  100. D3D11_LOGIC_OP_AND = ( D3D11_LOGIC_OP_INVERT + 1 ) ,
  101. D3D11_LOGIC_OP_NAND = ( D3D11_LOGIC_OP_AND + 1 ) ,
  102. D3D11_LOGIC_OP_OR = ( D3D11_LOGIC_OP_NAND + 1 ) ,
  103. D3D11_LOGIC_OP_NOR = ( D3D11_LOGIC_OP_OR + 1 ) ,
  104. D3D11_LOGIC_OP_XOR = ( D3D11_LOGIC_OP_NOR + 1 ) ,
  105. D3D11_LOGIC_OP_EQUIV = ( D3D11_LOGIC_OP_XOR + 1 ) ,
  106. D3D11_LOGIC_OP_AND_REVERSE = ( D3D11_LOGIC_OP_EQUIV + 1 ) ,
  107. D3D11_LOGIC_OP_AND_INVERTED = ( D3D11_LOGIC_OP_AND_REVERSE + 1 ) ,
  108. D3D11_LOGIC_OP_OR_REVERSE = ( D3D11_LOGIC_OP_AND_INVERTED + 1 ) ,
  109. D3D11_LOGIC_OP_OR_INVERTED = ( D3D11_LOGIC_OP_OR_REVERSE + 1 )
  110. } D3D11_LOGIC_OP;
  111. typedef struct D3D11_RENDER_TARGET_BLEND_DESC1
  112. {
  113. BOOL BlendEnable;
  114. BOOL LogicOpEnable;
  115. D3D11_BLEND SrcBlend;
  116. D3D11_BLEND DestBlend;
  117. D3D11_BLEND_OP BlendOp;
  118. D3D11_BLEND SrcBlendAlpha;
  119. D3D11_BLEND DestBlendAlpha;
  120. D3D11_BLEND_OP BlendOpAlpha;
  121. D3D11_LOGIC_OP LogicOp;
  122. UINT8 RenderTargetWriteMask;
  123. } D3D11_RENDER_TARGET_BLEND_DESC1;
  124. typedef struct D3D11_BLEND_DESC1
  125. {
  126. BOOL AlphaToCoverageEnable;
  127. BOOL IndependentBlendEnable;
  128. D3D11_RENDER_TARGET_BLEND_DESC1 RenderTarget[ 8 ];
  129. } D3D11_BLEND_DESC1;
  130. /* Note, the array size for RenderTarget[] above is D3D11_SIMULTANEOUS_RENDERTARGET_COUNT.
  131. IDL processing/generation of this header replaces the define; this comment is merely explaining what happened. */
  132. #if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )
  133. }
  134. struct CD3D11_BLEND_DESC1 : public D3D11_BLEND_DESC1
  135. {
  136. CD3D11_BLEND_DESC1() = default;
  137. explicit CD3D11_BLEND_DESC1( const D3D11_BLEND_DESC1& o ) :
  138. D3D11_BLEND_DESC1( o )
  139. {}
  140. explicit CD3D11_BLEND_DESC1( CD3D11_DEFAULT )
  141. {
  142. AlphaToCoverageEnable = FALSE;
  143. IndependentBlendEnable = FALSE;
  144. const D3D11_RENDER_TARGET_BLEND_DESC1 defaultRenderTargetBlendDesc =
  145. {
  146. FALSE,FALSE,
  147. D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD,
  148. D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD,
  149. D3D11_LOGIC_OP_NOOP,
  150. D3D11_COLOR_WRITE_ENABLE_ALL,
  151. };
  152. for (UINT i = 0; i < D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; ++i)
  153. RenderTarget[ i ] = defaultRenderTargetBlendDesc;
  154. }
  155. ~CD3D11_BLEND_DESC1() {}
  156. operator const D3D11_BLEND_DESC1&() const { return *this; }
  157. };
  158. extern "C"{
  159. #endif
  160. extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0000_v0_0_c_ifspec;
  161. extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0000_v0_0_s_ifspec;
  162. #ifndef __ID3D11BlendState1_INTERFACE_DEFINED__
  163. #define __ID3D11BlendState1_INTERFACE_DEFINED__
  164. /* interface ID3D11BlendState1 */
  165. /* [unique][local][object][uuid] */
  166. EXTERN_C const IID IID_ID3D11BlendState1;
  167. #if defined(__cplusplus) && !defined(CINTERFACE)
  168. MIDL_INTERFACE("cc86fabe-da55-401d-85e7-e3c9de2877e9")
  169. ID3D11BlendState1 : public ID3D11BlendState
  170. {
  171. public:
  172. virtual void STDMETHODCALLTYPE GetDesc1(
  173. /* [annotation] */
  174. _Out_ D3D11_BLEND_DESC1 *pDesc) = 0;
  175. };
  176. #else /* C style interface */
  177. typedef struct ID3D11BlendState1Vtbl
  178. {
  179. BEGIN_INTERFACE
  180. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  181. ID3D11BlendState1 * This,
  182. /* [in] */ REFIID riid,
  183. /* [annotation][iid_is][out] */
  184. _COM_Outptr_ void **ppvObject);
  185. ULONG ( STDMETHODCALLTYPE *AddRef )(
  186. ID3D11BlendState1 * This);
  187. ULONG ( STDMETHODCALLTYPE *Release )(
  188. ID3D11BlendState1 * This);
  189. void ( STDMETHODCALLTYPE *GetDevice )(
  190. ID3D11BlendState1 * This,
  191. /* [annotation] */
  192. _Outptr_ ID3D11Device **ppDevice);
  193. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  194. ID3D11BlendState1 * This,
  195. /* [annotation] */
  196. _In_ REFGUID guid,
  197. /* [annotation] */
  198. _Inout_ UINT *pDataSize,
  199. /* [annotation] */
  200. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  201. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  202. ID3D11BlendState1 * This,
  203. /* [annotation] */
  204. _In_ REFGUID guid,
  205. /* [annotation] */
  206. _In_ UINT DataSize,
  207. /* [annotation] */
  208. _In_reads_bytes_opt_( DataSize ) const void *pData);
  209. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  210. ID3D11BlendState1 * This,
  211. /* [annotation] */
  212. _In_ REFGUID guid,
  213. /* [annotation] */
  214. _In_opt_ const IUnknown *pData);
  215. void ( STDMETHODCALLTYPE *GetDesc )(
  216. ID3D11BlendState1 * This,
  217. /* [annotation] */
  218. _Out_ D3D11_BLEND_DESC *pDesc);
  219. void ( STDMETHODCALLTYPE *GetDesc1 )(
  220. ID3D11BlendState1 * This,
  221. /* [annotation] */
  222. _Out_ D3D11_BLEND_DESC1 *pDesc);
  223. END_INTERFACE
  224. } ID3D11BlendState1Vtbl;
  225. interface ID3D11BlendState1
  226. {
  227. CONST_VTBL struct ID3D11BlendState1Vtbl *lpVtbl;
  228. };
  229. #ifdef COBJMACROS
  230. #define ID3D11BlendState1_QueryInterface(This,riid,ppvObject) \
  231. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  232. #define ID3D11BlendState1_AddRef(This) \
  233. ( (This)->lpVtbl -> AddRef(This) )
  234. #define ID3D11BlendState1_Release(This) \
  235. ( (This)->lpVtbl -> Release(This) )
  236. #define ID3D11BlendState1_GetDevice(This,ppDevice) \
  237. ( (This)->lpVtbl -> GetDevice(This,ppDevice) )
  238. #define ID3D11BlendState1_GetPrivateData(This,guid,pDataSize,pData) \
  239. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  240. #define ID3D11BlendState1_SetPrivateData(This,guid,DataSize,pData) \
  241. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  242. #define ID3D11BlendState1_SetPrivateDataInterface(This,guid,pData) \
  243. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  244. #define ID3D11BlendState1_GetDesc(This,pDesc) \
  245. ( (This)->lpVtbl -> GetDesc(This,pDesc) )
  246. #define ID3D11BlendState1_GetDesc1(This,pDesc) \
  247. ( (This)->lpVtbl -> GetDesc1(This,pDesc) )
  248. #endif /* COBJMACROS */
  249. #endif /* C style interface */
  250. #endif /* __ID3D11BlendState1_INTERFACE_DEFINED__ */
  251. /* interface __MIDL_itf_d3d11_1_0000_0001 */
  252. /* [local] */
  253. typedef struct D3D11_RASTERIZER_DESC1
  254. {
  255. D3D11_FILL_MODE FillMode;
  256. D3D11_CULL_MODE CullMode;
  257. BOOL FrontCounterClockwise;
  258. INT DepthBias;
  259. FLOAT DepthBiasClamp;
  260. FLOAT SlopeScaledDepthBias;
  261. BOOL DepthClipEnable;
  262. BOOL ScissorEnable;
  263. BOOL MultisampleEnable;
  264. BOOL AntialiasedLineEnable;
  265. UINT ForcedSampleCount;
  266. } D3D11_RASTERIZER_DESC1;
  267. #if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )
  268. }
  269. struct CD3D11_RASTERIZER_DESC1 : public D3D11_RASTERIZER_DESC1
  270. {
  271. CD3D11_RASTERIZER_DESC1() = default;
  272. explicit CD3D11_RASTERIZER_DESC1( const D3D11_RASTERIZER_DESC1& o ) :
  273. D3D11_RASTERIZER_DESC1( o )
  274. {}
  275. explicit CD3D11_RASTERIZER_DESC1( CD3D11_DEFAULT )
  276. {
  277. FillMode = D3D11_FILL_SOLID;
  278. CullMode = D3D11_CULL_BACK;
  279. FrontCounterClockwise = FALSE;
  280. DepthBias = D3D11_DEFAULT_DEPTH_BIAS;
  281. DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;
  282. SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;
  283. DepthClipEnable = TRUE;
  284. ScissorEnable = FALSE;
  285. MultisampleEnable = FALSE;
  286. AntialiasedLineEnable = FALSE;
  287. ForcedSampleCount = 0;
  288. }
  289. explicit CD3D11_RASTERIZER_DESC1(
  290. D3D11_FILL_MODE fillMode,
  291. D3D11_CULL_MODE cullMode,
  292. BOOL frontCounterClockwise,
  293. INT depthBias,
  294. FLOAT depthBiasClamp,
  295. FLOAT slopeScaledDepthBias,
  296. BOOL depthClipEnable,
  297. BOOL scissorEnable,
  298. BOOL multisampleEnable,
  299. BOOL antialiasedLineEnable,
  300. UINT forcedSampleCount )
  301. {
  302. FillMode = fillMode;
  303. CullMode = cullMode;
  304. FrontCounterClockwise = frontCounterClockwise;
  305. DepthBias = depthBias;
  306. DepthBiasClamp = depthBiasClamp;
  307. SlopeScaledDepthBias = slopeScaledDepthBias;
  308. DepthClipEnable = depthClipEnable;
  309. ScissorEnable = scissorEnable;
  310. MultisampleEnable = multisampleEnable;
  311. AntialiasedLineEnable = antialiasedLineEnable;
  312. ForcedSampleCount = forcedSampleCount;
  313. }
  314. ~CD3D11_RASTERIZER_DESC1() {}
  315. operator const D3D11_RASTERIZER_DESC1&() const { return *this; }
  316. };
  317. extern "C"{
  318. #endif
  319. extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0001_v0_0_c_ifspec;
  320. extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0001_v0_0_s_ifspec;
  321. #ifndef __ID3D11RasterizerState1_INTERFACE_DEFINED__
  322. #define __ID3D11RasterizerState1_INTERFACE_DEFINED__
  323. /* interface ID3D11RasterizerState1 */
  324. /* [unique][local][object][uuid] */
  325. EXTERN_C const IID IID_ID3D11RasterizerState1;
  326. #if defined(__cplusplus) && !defined(CINTERFACE)
  327. MIDL_INTERFACE("1217d7a6-5039-418c-b042-9cbe256afd6e")
  328. ID3D11RasterizerState1 : public ID3D11RasterizerState
  329. {
  330. public:
  331. virtual void STDMETHODCALLTYPE GetDesc1(
  332. /* [annotation] */
  333. _Out_ D3D11_RASTERIZER_DESC1 *pDesc) = 0;
  334. };
  335. #else /* C style interface */
  336. typedef struct ID3D11RasterizerState1Vtbl
  337. {
  338. BEGIN_INTERFACE
  339. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  340. ID3D11RasterizerState1 * This,
  341. /* [in] */ REFIID riid,
  342. /* [annotation][iid_is][out] */
  343. _COM_Outptr_ void **ppvObject);
  344. ULONG ( STDMETHODCALLTYPE *AddRef )(
  345. ID3D11RasterizerState1 * This);
  346. ULONG ( STDMETHODCALLTYPE *Release )(
  347. ID3D11RasterizerState1 * This);
  348. void ( STDMETHODCALLTYPE *GetDevice )(
  349. ID3D11RasterizerState1 * This,
  350. /* [annotation] */
  351. _Outptr_ ID3D11Device **ppDevice);
  352. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  353. ID3D11RasterizerState1 * This,
  354. /* [annotation] */
  355. _In_ REFGUID guid,
  356. /* [annotation] */
  357. _Inout_ UINT *pDataSize,
  358. /* [annotation] */
  359. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  360. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  361. ID3D11RasterizerState1 * This,
  362. /* [annotation] */
  363. _In_ REFGUID guid,
  364. /* [annotation] */
  365. _In_ UINT DataSize,
  366. /* [annotation] */
  367. _In_reads_bytes_opt_( DataSize ) const void *pData);
  368. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  369. ID3D11RasterizerState1 * This,
  370. /* [annotation] */
  371. _In_ REFGUID guid,
  372. /* [annotation] */
  373. _In_opt_ const IUnknown *pData);
  374. void ( STDMETHODCALLTYPE *GetDesc )(
  375. ID3D11RasterizerState1 * This,
  376. /* [annotation] */
  377. _Out_ D3D11_RASTERIZER_DESC *pDesc);
  378. void ( STDMETHODCALLTYPE *GetDesc1 )(
  379. ID3D11RasterizerState1 * This,
  380. /* [annotation] */
  381. _Out_ D3D11_RASTERIZER_DESC1 *pDesc);
  382. END_INTERFACE
  383. } ID3D11RasterizerState1Vtbl;
  384. interface ID3D11RasterizerState1
  385. {
  386. CONST_VTBL struct ID3D11RasterizerState1Vtbl *lpVtbl;
  387. };
  388. #ifdef COBJMACROS
  389. #define ID3D11RasterizerState1_QueryInterface(This,riid,ppvObject) \
  390. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  391. #define ID3D11RasterizerState1_AddRef(This) \
  392. ( (This)->lpVtbl -> AddRef(This) )
  393. #define ID3D11RasterizerState1_Release(This) \
  394. ( (This)->lpVtbl -> Release(This) )
  395. #define ID3D11RasterizerState1_GetDevice(This,ppDevice) \
  396. ( (This)->lpVtbl -> GetDevice(This,ppDevice) )
  397. #define ID3D11RasterizerState1_GetPrivateData(This,guid,pDataSize,pData) \
  398. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  399. #define ID3D11RasterizerState1_SetPrivateData(This,guid,DataSize,pData) \
  400. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  401. #define ID3D11RasterizerState1_SetPrivateDataInterface(This,guid,pData) \
  402. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  403. #define ID3D11RasterizerState1_GetDesc(This,pDesc) \
  404. ( (This)->lpVtbl -> GetDesc(This,pDesc) )
  405. #define ID3D11RasterizerState1_GetDesc1(This,pDesc) \
  406. ( (This)->lpVtbl -> GetDesc1(This,pDesc) )
  407. #endif /* COBJMACROS */
  408. #endif /* C style interface */
  409. #endif /* __ID3D11RasterizerState1_INTERFACE_DEFINED__ */
  410. /* interface __MIDL_itf_d3d11_1_0000_0002 */
  411. /* [local] */
  412. typedef
  413. enum D3D11_1_CREATE_DEVICE_CONTEXT_STATE_FLAG
  414. {
  415. D3D11_1_CREATE_DEVICE_CONTEXT_STATE_SINGLETHREADED = 0x1
  416. } D3D11_1_CREATE_DEVICE_CONTEXT_STATE_FLAG;
  417. extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0002_v0_0_c_ifspec;
  418. extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0002_v0_0_s_ifspec;
  419. #ifndef __ID3DDeviceContextState_INTERFACE_DEFINED__
  420. #define __ID3DDeviceContextState_INTERFACE_DEFINED__
  421. /* interface ID3DDeviceContextState */
  422. /* [unique][local][object][uuid] */
  423. EXTERN_C const IID IID_ID3DDeviceContextState;
  424. #if defined(__cplusplus) && !defined(CINTERFACE)
  425. MIDL_INTERFACE("5c1e0d8a-7c23-48f9-8c59-a92958ceff11")
  426. ID3DDeviceContextState : public ID3D11DeviceChild
  427. {
  428. public:
  429. };
  430. #else /* C style interface */
  431. typedef struct ID3DDeviceContextStateVtbl
  432. {
  433. BEGIN_INTERFACE
  434. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  435. ID3DDeviceContextState * This,
  436. /* [in] */ REFIID riid,
  437. /* [annotation][iid_is][out] */
  438. _COM_Outptr_ void **ppvObject);
  439. ULONG ( STDMETHODCALLTYPE *AddRef )(
  440. ID3DDeviceContextState * This);
  441. ULONG ( STDMETHODCALLTYPE *Release )(
  442. ID3DDeviceContextState * This);
  443. void ( STDMETHODCALLTYPE *GetDevice )(
  444. ID3DDeviceContextState * This,
  445. /* [annotation] */
  446. _Outptr_ ID3D11Device **ppDevice);
  447. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  448. ID3DDeviceContextState * This,
  449. /* [annotation] */
  450. _In_ REFGUID guid,
  451. /* [annotation] */
  452. _Inout_ UINT *pDataSize,
  453. /* [annotation] */
  454. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  455. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  456. ID3DDeviceContextState * This,
  457. /* [annotation] */
  458. _In_ REFGUID guid,
  459. /* [annotation] */
  460. _In_ UINT DataSize,
  461. /* [annotation] */
  462. _In_reads_bytes_opt_( DataSize ) const void *pData);
  463. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  464. ID3DDeviceContextState * This,
  465. /* [annotation] */
  466. _In_ REFGUID guid,
  467. /* [annotation] */
  468. _In_opt_ const IUnknown *pData);
  469. END_INTERFACE
  470. } ID3DDeviceContextStateVtbl;
  471. interface ID3DDeviceContextState
  472. {
  473. CONST_VTBL struct ID3DDeviceContextStateVtbl *lpVtbl;
  474. };
  475. #ifdef COBJMACROS
  476. #define ID3DDeviceContextState_QueryInterface(This,riid,ppvObject) \
  477. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  478. #define ID3DDeviceContextState_AddRef(This) \
  479. ( (This)->lpVtbl -> AddRef(This) )
  480. #define ID3DDeviceContextState_Release(This) \
  481. ( (This)->lpVtbl -> Release(This) )
  482. #define ID3DDeviceContextState_GetDevice(This,ppDevice) \
  483. ( (This)->lpVtbl -> GetDevice(This,ppDevice) )
  484. #define ID3DDeviceContextState_GetPrivateData(This,guid,pDataSize,pData) \
  485. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  486. #define ID3DDeviceContextState_SetPrivateData(This,guid,DataSize,pData) \
  487. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  488. #define ID3DDeviceContextState_SetPrivateDataInterface(This,guid,pData) \
  489. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  490. #endif /* COBJMACROS */
  491. #endif /* C style interface */
  492. #endif /* __ID3DDeviceContextState_INTERFACE_DEFINED__ */
  493. #ifndef __ID3D11DeviceContext1_INTERFACE_DEFINED__
  494. #define __ID3D11DeviceContext1_INTERFACE_DEFINED__
  495. /* interface ID3D11DeviceContext1 */
  496. /* [unique][local][object][uuid] */
  497. EXTERN_C const IID IID_ID3D11DeviceContext1;
  498. #if defined(__cplusplus) && !defined(CINTERFACE)
  499. MIDL_INTERFACE("bb2c6faa-b5fb-4082-8e6b-388b8cfa90e1")
  500. ID3D11DeviceContext1 : public ID3D11DeviceContext
  501. {
  502. public:
  503. virtual void STDMETHODCALLTYPE CopySubresourceRegion1(
  504. /* [annotation] */
  505. _In_ ID3D11Resource *pDstResource,
  506. /* [annotation] */
  507. _In_ UINT DstSubresource,
  508. /* [annotation] */
  509. _In_ UINT DstX,
  510. /* [annotation] */
  511. _In_ UINT DstY,
  512. /* [annotation] */
  513. _In_ UINT DstZ,
  514. /* [annotation] */
  515. _In_ ID3D11Resource *pSrcResource,
  516. /* [annotation] */
  517. _In_ UINT SrcSubresource,
  518. /* [annotation] */
  519. _In_opt_ const D3D11_BOX *pSrcBox,
  520. /* [annotation] */
  521. _In_ UINT CopyFlags) = 0;
  522. virtual void STDMETHODCALLTYPE UpdateSubresource1(
  523. /* [annotation] */
  524. _In_ ID3D11Resource *pDstResource,
  525. /* [annotation] */
  526. _In_ UINT DstSubresource,
  527. /* [annotation] */
  528. _In_opt_ const D3D11_BOX *pDstBox,
  529. /* [annotation] */
  530. _In_ const void *pSrcData,
  531. /* [annotation] */
  532. _In_ UINT SrcRowPitch,
  533. /* [annotation] */
  534. _In_ UINT SrcDepthPitch,
  535. /* [annotation] */
  536. _In_ UINT CopyFlags) = 0;
  537. virtual void STDMETHODCALLTYPE DiscardResource(
  538. /* [annotation] */
  539. _In_ ID3D11Resource *pResource) = 0;
  540. virtual void STDMETHODCALLTYPE DiscardView(
  541. /* [annotation] */
  542. _In_ ID3D11View *pResourceView) = 0;
  543. virtual void STDMETHODCALLTYPE VSSetConstantBuffers1(
  544. /* [annotation] */
  545. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  546. /* [annotation] */
  547. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  548. /* [annotation] */
  549. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  550. /* [annotation] */
  551. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  552. /* [annotation] */
  553. _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0;
  554. virtual void STDMETHODCALLTYPE HSSetConstantBuffers1(
  555. /* [annotation] */
  556. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  557. /* [annotation] */
  558. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  559. /* [annotation] */
  560. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  561. /* [annotation] */
  562. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  563. /* [annotation] */
  564. _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0;
  565. virtual void STDMETHODCALLTYPE DSSetConstantBuffers1(
  566. /* [annotation] */
  567. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  568. /* [annotation] */
  569. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  570. /* [annotation] */
  571. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  572. /* [annotation] */
  573. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  574. /* [annotation] */
  575. _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0;
  576. virtual void STDMETHODCALLTYPE GSSetConstantBuffers1(
  577. /* [annotation] */
  578. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  579. /* [annotation] */
  580. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  581. /* [annotation] */
  582. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  583. /* [annotation] */
  584. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  585. /* [annotation] */
  586. _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0;
  587. virtual void STDMETHODCALLTYPE PSSetConstantBuffers1(
  588. /* [annotation] */
  589. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  590. /* [annotation] */
  591. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  592. /* [annotation] */
  593. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  594. /* [annotation] */
  595. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  596. /* [annotation] */
  597. _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0;
  598. virtual void STDMETHODCALLTYPE CSSetConstantBuffers1(
  599. /* [annotation] */
  600. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  601. /* [annotation] */
  602. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  603. /* [annotation] */
  604. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  605. /* [annotation] */
  606. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  607. /* [annotation] */
  608. _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0;
  609. virtual void STDMETHODCALLTYPE VSGetConstantBuffers1(
  610. /* [annotation] */
  611. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  612. /* [annotation] */
  613. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  614. /* [annotation] */
  615. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  616. /* [annotation] */
  617. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  618. /* [annotation] */
  619. _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0;
  620. virtual void STDMETHODCALLTYPE HSGetConstantBuffers1(
  621. /* [annotation] */
  622. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  623. /* [annotation] */
  624. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  625. /* [annotation] */
  626. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  627. /* [annotation] */
  628. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  629. /* [annotation] */
  630. _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0;
  631. virtual void STDMETHODCALLTYPE DSGetConstantBuffers1(
  632. /* [annotation] */
  633. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  634. /* [annotation] */
  635. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  636. /* [annotation] */
  637. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  638. /* [annotation] */
  639. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  640. /* [annotation] */
  641. _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0;
  642. virtual void STDMETHODCALLTYPE GSGetConstantBuffers1(
  643. /* [annotation] */
  644. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  645. /* [annotation] */
  646. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  647. /* [annotation] */
  648. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  649. /* [annotation] */
  650. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  651. /* [annotation] */
  652. _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0;
  653. virtual void STDMETHODCALLTYPE PSGetConstantBuffers1(
  654. /* [annotation] */
  655. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  656. /* [annotation] */
  657. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  658. /* [annotation] */
  659. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  660. /* [annotation] */
  661. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  662. /* [annotation] */
  663. _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0;
  664. virtual void STDMETHODCALLTYPE CSGetConstantBuffers1(
  665. /* [annotation] */
  666. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  667. /* [annotation] */
  668. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  669. /* [annotation] */
  670. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  671. /* [annotation] */
  672. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  673. /* [annotation] */
  674. _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0;
  675. virtual void STDMETHODCALLTYPE SwapDeviceContextState(
  676. /* [annotation] */
  677. _In_ ID3DDeviceContextState *pState,
  678. /* [annotation] */
  679. _Outptr_opt_ ID3DDeviceContextState **ppPreviousState) = 0;
  680. virtual void STDMETHODCALLTYPE ClearView(
  681. /* [annotation] */
  682. _In_ ID3D11View *pView,
  683. /* [annotation] */
  684. _In_ const FLOAT Color[ 4 ],
  685. /* [annotation] */
  686. _In_reads_opt_(NumRects) const D3D11_RECT *pRect,
  687. UINT NumRects) = 0;
  688. virtual void STDMETHODCALLTYPE DiscardView1(
  689. /* [annotation] */
  690. _In_ ID3D11View *pResourceView,
  691. /* [annotation] */
  692. _In_reads_opt_(NumRects) const D3D11_RECT *pRects,
  693. UINT NumRects) = 0;
  694. };
  695. #else /* C style interface */
  696. typedef struct ID3D11DeviceContext1Vtbl
  697. {
  698. BEGIN_INTERFACE
  699. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  700. ID3D11DeviceContext1 * This,
  701. /* [in] */ REFIID riid,
  702. /* [annotation][iid_is][out] */
  703. _COM_Outptr_ void **ppvObject);
  704. ULONG ( STDMETHODCALLTYPE *AddRef )(
  705. ID3D11DeviceContext1 * This);
  706. ULONG ( STDMETHODCALLTYPE *Release )(
  707. ID3D11DeviceContext1 * This);
  708. void ( STDMETHODCALLTYPE *GetDevice )(
  709. ID3D11DeviceContext1 * This,
  710. /* [annotation] */
  711. _Outptr_ ID3D11Device **ppDevice);
  712. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  713. ID3D11DeviceContext1 * This,
  714. /* [annotation] */
  715. _In_ REFGUID guid,
  716. /* [annotation] */
  717. _Inout_ UINT *pDataSize,
  718. /* [annotation] */
  719. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  720. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  721. ID3D11DeviceContext1 * This,
  722. /* [annotation] */
  723. _In_ REFGUID guid,
  724. /* [annotation] */
  725. _In_ UINT DataSize,
  726. /* [annotation] */
  727. _In_reads_bytes_opt_( DataSize ) const void *pData);
  728. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  729. ID3D11DeviceContext1 * This,
  730. /* [annotation] */
  731. _In_ REFGUID guid,
  732. /* [annotation] */
  733. _In_opt_ const IUnknown *pData);
  734. void ( STDMETHODCALLTYPE *VSSetConstantBuffers )(
  735. ID3D11DeviceContext1 * This,
  736. /* [annotation] */
  737. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  738. /* [annotation] */
  739. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  740. /* [annotation] */
  741. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  742. void ( STDMETHODCALLTYPE *PSSetShaderResources )(
  743. ID3D11DeviceContext1 * This,
  744. /* [annotation] */
  745. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  746. /* [annotation] */
  747. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  748. /* [annotation] */
  749. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  750. void ( STDMETHODCALLTYPE *PSSetShader )(
  751. ID3D11DeviceContext1 * This,
  752. /* [annotation] */
  753. _In_opt_ ID3D11PixelShader *pPixelShader,
  754. /* [annotation] */
  755. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  756. UINT NumClassInstances);
  757. void ( STDMETHODCALLTYPE *PSSetSamplers )(
  758. ID3D11DeviceContext1 * This,
  759. /* [annotation] */
  760. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  761. /* [annotation] */
  762. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  763. /* [annotation] */
  764. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  765. void ( STDMETHODCALLTYPE *VSSetShader )(
  766. ID3D11DeviceContext1 * This,
  767. /* [annotation] */
  768. _In_opt_ ID3D11VertexShader *pVertexShader,
  769. /* [annotation] */
  770. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  771. UINT NumClassInstances);
  772. void ( STDMETHODCALLTYPE *DrawIndexed )(
  773. ID3D11DeviceContext1 * This,
  774. /* [annotation] */
  775. _In_ UINT IndexCount,
  776. /* [annotation] */
  777. _In_ UINT StartIndexLocation,
  778. /* [annotation] */
  779. _In_ INT BaseVertexLocation);
  780. void ( STDMETHODCALLTYPE *Draw )(
  781. ID3D11DeviceContext1 * This,
  782. /* [annotation] */
  783. _In_ UINT VertexCount,
  784. /* [annotation] */
  785. _In_ UINT StartVertexLocation);
  786. HRESULT ( STDMETHODCALLTYPE *Map )(
  787. ID3D11DeviceContext1 * This,
  788. /* [annotation] */
  789. _In_ ID3D11Resource *pResource,
  790. /* [annotation] */
  791. _In_ UINT Subresource,
  792. /* [annotation] */
  793. _In_ D3D11_MAP MapType,
  794. /* [annotation] */
  795. _In_ UINT MapFlags,
  796. /* [annotation] */
  797. _Out_opt_ D3D11_MAPPED_SUBRESOURCE *pMappedResource);
  798. void ( STDMETHODCALLTYPE *Unmap )(
  799. ID3D11DeviceContext1 * This,
  800. /* [annotation] */
  801. _In_ ID3D11Resource *pResource,
  802. /* [annotation] */
  803. _In_ UINT Subresource);
  804. void ( STDMETHODCALLTYPE *PSSetConstantBuffers )(
  805. ID3D11DeviceContext1 * This,
  806. /* [annotation] */
  807. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  808. /* [annotation] */
  809. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  810. /* [annotation] */
  811. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  812. void ( STDMETHODCALLTYPE *IASetInputLayout )(
  813. ID3D11DeviceContext1 * This,
  814. /* [annotation] */
  815. _In_opt_ ID3D11InputLayout *pInputLayout);
  816. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  817. ID3D11DeviceContext1 * This,
  818. /* [annotation] */
  819. _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  820. /* [annotation] */
  821. _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  822. /* [annotation] */
  823. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppVertexBuffers,
  824. /* [annotation] */
  825. _In_reads_opt_(NumBuffers) const UINT *pStrides,
  826. /* [annotation] */
  827. _In_reads_opt_(NumBuffers) const UINT *pOffsets);
  828. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  829. ID3D11DeviceContext1 * This,
  830. /* [annotation] */
  831. _In_opt_ ID3D11Buffer *pIndexBuffer,
  832. /* [annotation] */
  833. _In_ DXGI_FORMAT Format,
  834. /* [annotation] */
  835. _In_ UINT Offset);
  836. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  837. ID3D11DeviceContext1 * This,
  838. /* [annotation] */
  839. _In_ UINT IndexCountPerInstance,
  840. /* [annotation] */
  841. _In_ UINT InstanceCount,
  842. /* [annotation] */
  843. _In_ UINT StartIndexLocation,
  844. /* [annotation] */
  845. _In_ INT BaseVertexLocation,
  846. /* [annotation] */
  847. _In_ UINT StartInstanceLocation);
  848. void ( STDMETHODCALLTYPE *DrawInstanced )(
  849. ID3D11DeviceContext1 * This,
  850. /* [annotation] */
  851. _In_ UINT VertexCountPerInstance,
  852. /* [annotation] */
  853. _In_ UINT InstanceCount,
  854. /* [annotation] */
  855. _In_ UINT StartVertexLocation,
  856. /* [annotation] */
  857. _In_ UINT StartInstanceLocation);
  858. void ( STDMETHODCALLTYPE *GSSetConstantBuffers )(
  859. ID3D11DeviceContext1 * This,
  860. /* [annotation] */
  861. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  862. /* [annotation] */
  863. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  864. /* [annotation] */
  865. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  866. void ( STDMETHODCALLTYPE *GSSetShader )(
  867. ID3D11DeviceContext1 * This,
  868. /* [annotation] */
  869. _In_opt_ ID3D11GeometryShader *pShader,
  870. /* [annotation] */
  871. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  872. UINT NumClassInstances);
  873. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  874. ID3D11DeviceContext1 * This,
  875. /* [annotation] */
  876. _In_ D3D11_PRIMITIVE_TOPOLOGY Topology);
  877. void ( STDMETHODCALLTYPE *VSSetShaderResources )(
  878. ID3D11DeviceContext1 * This,
  879. /* [annotation] */
  880. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  881. /* [annotation] */
  882. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  883. /* [annotation] */
  884. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  885. void ( STDMETHODCALLTYPE *VSSetSamplers )(
  886. ID3D11DeviceContext1 * This,
  887. /* [annotation] */
  888. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  889. /* [annotation] */
  890. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  891. /* [annotation] */
  892. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  893. void ( STDMETHODCALLTYPE *Begin )(
  894. ID3D11DeviceContext1 * This,
  895. /* [annotation] */
  896. _In_ ID3D11Asynchronous *pAsync);
  897. void ( STDMETHODCALLTYPE *End )(
  898. ID3D11DeviceContext1 * This,
  899. /* [annotation] */
  900. _In_ ID3D11Asynchronous *pAsync);
  901. HRESULT ( STDMETHODCALLTYPE *GetData )(
  902. ID3D11DeviceContext1 * This,
  903. /* [annotation] */
  904. _In_ ID3D11Asynchronous *pAsync,
  905. /* [annotation] */
  906. _Out_writes_bytes_opt_( DataSize ) void *pData,
  907. /* [annotation] */
  908. _In_ UINT DataSize,
  909. /* [annotation] */
  910. _In_ UINT GetDataFlags);
  911. void ( STDMETHODCALLTYPE *SetPredication )(
  912. ID3D11DeviceContext1 * This,
  913. /* [annotation] */
  914. _In_opt_ ID3D11Predicate *pPredicate,
  915. /* [annotation] */
  916. _In_ BOOL PredicateValue);
  917. void ( STDMETHODCALLTYPE *GSSetShaderResources )(
  918. ID3D11DeviceContext1 * This,
  919. /* [annotation] */
  920. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  921. /* [annotation] */
  922. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  923. /* [annotation] */
  924. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  925. void ( STDMETHODCALLTYPE *GSSetSamplers )(
  926. ID3D11DeviceContext1 * This,
  927. /* [annotation] */
  928. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  929. /* [annotation] */
  930. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  931. /* [annotation] */
  932. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  933. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  934. ID3D11DeviceContext1 * This,
  935. /* [annotation] */
  936. _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews,
  937. /* [annotation] */
  938. _In_reads_opt_(NumViews) ID3D11RenderTargetView *const *ppRenderTargetViews,
  939. /* [annotation] */
  940. _In_opt_ ID3D11DepthStencilView *pDepthStencilView);
  941. void ( STDMETHODCALLTYPE *OMSetRenderTargetsAndUnorderedAccessViews )(
  942. ID3D11DeviceContext1 * This,
  943. /* [annotation] */
  944. _In_ UINT NumRTVs,
  945. /* [annotation] */
  946. _In_reads_opt_(NumRTVs) ID3D11RenderTargetView *const *ppRenderTargetViews,
  947. /* [annotation] */
  948. _In_opt_ ID3D11DepthStencilView *pDepthStencilView,
  949. /* [annotation] */
  950. _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT UAVStartSlot,
  951. /* [annotation] */
  952. _In_ UINT NumUAVs,
  953. /* [annotation] */
  954. _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
  955. /* [annotation] */
  956. _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts);
  957. void ( STDMETHODCALLTYPE *OMSetBlendState )(
  958. ID3D11DeviceContext1 * This,
  959. /* [annotation] */
  960. _In_opt_ ID3D11BlendState *pBlendState,
  961. /* [annotation] */
  962. _In_opt_ const FLOAT BlendFactor[ 4 ],
  963. /* [annotation] */
  964. _In_ UINT SampleMask);
  965. void ( STDMETHODCALLTYPE *OMSetDepthStencilState )(
  966. ID3D11DeviceContext1 * This,
  967. /* [annotation] */
  968. _In_opt_ ID3D11DepthStencilState *pDepthStencilState,
  969. /* [annotation] */
  970. _In_ UINT StencilRef);
  971. void ( STDMETHODCALLTYPE *SOSetTargets )(
  972. ID3D11DeviceContext1 * This,
  973. /* [annotation] */
  974. _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT) UINT NumBuffers,
  975. /* [annotation] */
  976. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppSOTargets,
  977. /* [annotation] */
  978. _In_reads_opt_(NumBuffers) const UINT *pOffsets);
  979. void ( STDMETHODCALLTYPE *DrawAuto )(
  980. ID3D11DeviceContext1 * This);
  981. void ( STDMETHODCALLTYPE *DrawIndexedInstancedIndirect )(
  982. ID3D11DeviceContext1 * This,
  983. /* [annotation] */
  984. _In_ ID3D11Buffer *pBufferForArgs,
  985. /* [annotation] */
  986. _In_ UINT AlignedByteOffsetForArgs);
  987. void ( STDMETHODCALLTYPE *DrawInstancedIndirect )(
  988. ID3D11DeviceContext1 * This,
  989. /* [annotation] */
  990. _In_ ID3D11Buffer *pBufferForArgs,
  991. /* [annotation] */
  992. _In_ UINT AlignedByteOffsetForArgs);
  993. void ( STDMETHODCALLTYPE *Dispatch )(
  994. ID3D11DeviceContext1 * This,
  995. /* [annotation] */
  996. _In_ UINT ThreadGroupCountX,
  997. /* [annotation] */
  998. _In_ UINT ThreadGroupCountY,
  999. /* [annotation] */
  1000. _In_ UINT ThreadGroupCountZ);
  1001. void ( STDMETHODCALLTYPE *DispatchIndirect )(
  1002. ID3D11DeviceContext1 * This,
  1003. /* [annotation] */
  1004. _In_ ID3D11Buffer *pBufferForArgs,
  1005. /* [annotation] */
  1006. _In_ UINT AlignedByteOffsetForArgs);
  1007. void ( STDMETHODCALLTYPE *RSSetState )(
  1008. ID3D11DeviceContext1 * This,
  1009. /* [annotation] */
  1010. _In_opt_ ID3D11RasterizerState *pRasterizerState);
  1011. void ( STDMETHODCALLTYPE *RSSetViewports )(
  1012. ID3D11DeviceContext1 * This,
  1013. /* [annotation] */
  1014. _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  1015. /* [annotation] */
  1016. _In_reads_opt_(NumViewports) const D3D11_VIEWPORT *pViewports);
  1017. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  1018. ID3D11DeviceContext1 * This,
  1019. /* [annotation] */
  1020. _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  1021. /* [annotation] */
  1022. _In_reads_opt_(NumRects) const D3D11_RECT *pRects);
  1023. void ( STDMETHODCALLTYPE *CopySubresourceRegion )(
  1024. ID3D11DeviceContext1 * This,
  1025. /* [annotation] */
  1026. _In_ ID3D11Resource *pDstResource,
  1027. /* [annotation] */
  1028. _In_ UINT DstSubresource,
  1029. /* [annotation] */
  1030. _In_ UINT DstX,
  1031. /* [annotation] */
  1032. _In_ UINT DstY,
  1033. /* [annotation] */
  1034. _In_ UINT DstZ,
  1035. /* [annotation] */
  1036. _In_ ID3D11Resource *pSrcResource,
  1037. /* [annotation] */
  1038. _In_ UINT SrcSubresource,
  1039. /* [annotation] */
  1040. _In_opt_ const D3D11_BOX *pSrcBox);
  1041. void ( STDMETHODCALLTYPE *CopyResource )(
  1042. ID3D11DeviceContext1 * This,
  1043. /* [annotation] */
  1044. _In_ ID3D11Resource *pDstResource,
  1045. /* [annotation] */
  1046. _In_ ID3D11Resource *pSrcResource);
  1047. void ( STDMETHODCALLTYPE *UpdateSubresource )(
  1048. ID3D11DeviceContext1 * This,
  1049. /* [annotation] */
  1050. _In_ ID3D11Resource *pDstResource,
  1051. /* [annotation] */
  1052. _In_ UINT DstSubresource,
  1053. /* [annotation] */
  1054. _In_opt_ const D3D11_BOX *pDstBox,
  1055. /* [annotation] */
  1056. _In_ const void *pSrcData,
  1057. /* [annotation] */
  1058. _In_ UINT SrcRowPitch,
  1059. /* [annotation] */
  1060. _In_ UINT SrcDepthPitch);
  1061. void ( STDMETHODCALLTYPE *CopyStructureCount )(
  1062. ID3D11DeviceContext1 * This,
  1063. /* [annotation] */
  1064. _In_ ID3D11Buffer *pDstBuffer,
  1065. /* [annotation] */
  1066. _In_ UINT DstAlignedByteOffset,
  1067. /* [annotation] */
  1068. _In_ ID3D11UnorderedAccessView *pSrcView);
  1069. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  1070. ID3D11DeviceContext1 * This,
  1071. /* [annotation] */
  1072. _In_ ID3D11RenderTargetView *pRenderTargetView,
  1073. /* [annotation] */
  1074. _In_ const FLOAT ColorRGBA[ 4 ]);
  1075. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  1076. ID3D11DeviceContext1 * This,
  1077. /* [annotation] */
  1078. _In_ ID3D11UnorderedAccessView *pUnorderedAccessView,
  1079. /* [annotation] */
  1080. _In_ const UINT Values[ 4 ]);
  1081. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  1082. ID3D11DeviceContext1 * This,
  1083. /* [annotation] */
  1084. _In_ ID3D11UnorderedAccessView *pUnorderedAccessView,
  1085. /* [annotation] */
  1086. _In_ const FLOAT Values[ 4 ]);
  1087. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  1088. ID3D11DeviceContext1 * This,
  1089. /* [annotation] */
  1090. _In_ ID3D11DepthStencilView *pDepthStencilView,
  1091. /* [annotation] */
  1092. _In_ UINT ClearFlags,
  1093. /* [annotation] */
  1094. _In_ FLOAT Depth,
  1095. /* [annotation] */
  1096. _In_ UINT8 Stencil);
  1097. void ( STDMETHODCALLTYPE *GenerateMips )(
  1098. ID3D11DeviceContext1 * This,
  1099. /* [annotation] */
  1100. _In_ ID3D11ShaderResourceView *pShaderResourceView);
  1101. void ( STDMETHODCALLTYPE *SetResourceMinLOD )(
  1102. ID3D11DeviceContext1 * This,
  1103. /* [annotation] */
  1104. _In_ ID3D11Resource *pResource,
  1105. FLOAT MinLOD);
  1106. FLOAT ( STDMETHODCALLTYPE *GetResourceMinLOD )(
  1107. ID3D11DeviceContext1 * This,
  1108. /* [annotation] */
  1109. _In_ ID3D11Resource *pResource);
  1110. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  1111. ID3D11DeviceContext1 * This,
  1112. /* [annotation] */
  1113. _In_ ID3D11Resource *pDstResource,
  1114. /* [annotation] */
  1115. _In_ UINT DstSubresource,
  1116. /* [annotation] */
  1117. _In_ ID3D11Resource *pSrcResource,
  1118. /* [annotation] */
  1119. _In_ UINT SrcSubresource,
  1120. /* [annotation] */
  1121. _In_ DXGI_FORMAT Format);
  1122. void ( STDMETHODCALLTYPE *ExecuteCommandList )(
  1123. ID3D11DeviceContext1 * This,
  1124. /* [annotation] */
  1125. _In_ ID3D11CommandList *pCommandList,
  1126. BOOL RestoreContextState);
  1127. void ( STDMETHODCALLTYPE *HSSetShaderResources )(
  1128. ID3D11DeviceContext1 * This,
  1129. /* [annotation] */
  1130. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1131. /* [annotation] */
  1132. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  1133. /* [annotation] */
  1134. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  1135. void ( STDMETHODCALLTYPE *HSSetShader )(
  1136. ID3D11DeviceContext1 * This,
  1137. /* [annotation] */
  1138. _In_opt_ ID3D11HullShader *pHullShader,
  1139. /* [annotation] */
  1140. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  1141. UINT NumClassInstances);
  1142. void ( STDMETHODCALLTYPE *HSSetSamplers )(
  1143. ID3D11DeviceContext1 * This,
  1144. /* [annotation] */
  1145. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  1146. /* [annotation] */
  1147. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  1148. /* [annotation] */
  1149. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  1150. void ( STDMETHODCALLTYPE *HSSetConstantBuffers )(
  1151. ID3D11DeviceContext1 * This,
  1152. /* [annotation] */
  1153. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1154. /* [annotation] */
  1155. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1156. /* [annotation] */
  1157. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  1158. void ( STDMETHODCALLTYPE *DSSetShaderResources )(
  1159. ID3D11DeviceContext1 * This,
  1160. /* [annotation] */
  1161. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1162. /* [annotation] */
  1163. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  1164. /* [annotation] */
  1165. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  1166. void ( STDMETHODCALLTYPE *DSSetShader )(
  1167. ID3D11DeviceContext1 * This,
  1168. /* [annotation] */
  1169. _In_opt_ ID3D11DomainShader *pDomainShader,
  1170. /* [annotation] */
  1171. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  1172. UINT NumClassInstances);
  1173. void ( STDMETHODCALLTYPE *DSSetSamplers )(
  1174. ID3D11DeviceContext1 * This,
  1175. /* [annotation] */
  1176. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  1177. /* [annotation] */
  1178. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  1179. /* [annotation] */
  1180. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  1181. void ( STDMETHODCALLTYPE *DSSetConstantBuffers )(
  1182. ID3D11DeviceContext1 * This,
  1183. /* [annotation] */
  1184. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1185. /* [annotation] */
  1186. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1187. /* [annotation] */
  1188. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  1189. void ( STDMETHODCALLTYPE *CSSetShaderResources )(
  1190. ID3D11DeviceContext1 * This,
  1191. /* [annotation] */
  1192. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1193. /* [annotation] */
  1194. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  1195. /* [annotation] */
  1196. _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews);
  1197. void ( STDMETHODCALLTYPE *CSSetUnorderedAccessViews )(
  1198. ID3D11DeviceContext1 * This,
  1199. /* [annotation] */
  1200. _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot,
  1201. /* [annotation] */
  1202. _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs,
  1203. /* [annotation] */
  1204. _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews,
  1205. /* [annotation] */
  1206. _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts);
  1207. void ( STDMETHODCALLTYPE *CSSetShader )(
  1208. ID3D11DeviceContext1 * This,
  1209. /* [annotation] */
  1210. _In_opt_ ID3D11ComputeShader *pComputeShader,
  1211. /* [annotation] */
  1212. _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances,
  1213. UINT NumClassInstances);
  1214. void ( STDMETHODCALLTYPE *CSSetSamplers )(
  1215. ID3D11DeviceContext1 * This,
  1216. /* [annotation] */
  1217. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  1218. /* [annotation] */
  1219. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  1220. /* [annotation] */
  1221. _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers);
  1222. void ( STDMETHODCALLTYPE *CSSetConstantBuffers )(
  1223. ID3D11DeviceContext1 * This,
  1224. /* [annotation] */
  1225. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1226. /* [annotation] */
  1227. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1228. /* [annotation] */
  1229. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers);
  1230. void ( STDMETHODCALLTYPE *VSGetConstantBuffers )(
  1231. ID3D11DeviceContext1 * This,
  1232. /* [annotation] */
  1233. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1234. /* [annotation] */
  1235. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1236. /* [annotation] */
  1237. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  1238. void ( STDMETHODCALLTYPE *PSGetShaderResources )(
  1239. ID3D11DeviceContext1 * This,
  1240. /* [annotation] */
  1241. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1242. /* [annotation] */
  1243. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  1244. /* [annotation] */
  1245. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  1246. void ( STDMETHODCALLTYPE *PSGetShader )(
  1247. ID3D11DeviceContext1 * This,
  1248. /* [annotation] */
  1249. _Outptr_result_maybenull_ ID3D11PixelShader **ppPixelShader,
  1250. /* [annotation] */
  1251. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  1252. /* [annotation] */
  1253. _Inout_opt_ UINT *pNumClassInstances);
  1254. void ( STDMETHODCALLTYPE *PSGetSamplers )(
  1255. ID3D11DeviceContext1 * This,
  1256. /* [annotation] */
  1257. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  1258. /* [annotation] */
  1259. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  1260. /* [annotation] */
  1261. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  1262. void ( STDMETHODCALLTYPE *VSGetShader )(
  1263. ID3D11DeviceContext1 * This,
  1264. /* [annotation] */
  1265. _Outptr_result_maybenull_ ID3D11VertexShader **ppVertexShader,
  1266. /* [annotation] */
  1267. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  1268. /* [annotation] */
  1269. _Inout_opt_ UINT *pNumClassInstances);
  1270. void ( STDMETHODCALLTYPE *PSGetConstantBuffers )(
  1271. ID3D11DeviceContext1 * This,
  1272. /* [annotation] */
  1273. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1274. /* [annotation] */
  1275. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1276. /* [annotation] */
  1277. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  1278. void ( STDMETHODCALLTYPE *IAGetInputLayout )(
  1279. ID3D11DeviceContext1 * This,
  1280. /* [annotation] */
  1281. _Outptr_result_maybenull_ ID3D11InputLayout **ppInputLayout);
  1282. void ( STDMETHODCALLTYPE *IAGetVertexBuffers )(
  1283. ID3D11DeviceContext1 * This,
  1284. /* [annotation] */
  1285. _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1286. /* [annotation] */
  1287. _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1288. /* [annotation] */
  1289. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppVertexBuffers,
  1290. /* [annotation] */
  1291. _Out_writes_opt_(NumBuffers) UINT *pStrides,
  1292. /* [annotation] */
  1293. _Out_writes_opt_(NumBuffers) UINT *pOffsets);
  1294. void ( STDMETHODCALLTYPE *IAGetIndexBuffer )(
  1295. ID3D11DeviceContext1 * This,
  1296. /* [annotation] */
  1297. _Outptr_opt_result_maybenull_ ID3D11Buffer **pIndexBuffer,
  1298. /* [annotation] */
  1299. _Out_opt_ DXGI_FORMAT *Format,
  1300. /* [annotation] */
  1301. _Out_opt_ UINT *Offset);
  1302. void ( STDMETHODCALLTYPE *GSGetConstantBuffers )(
  1303. ID3D11DeviceContext1 * This,
  1304. /* [annotation] */
  1305. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1306. /* [annotation] */
  1307. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1308. /* [annotation] */
  1309. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  1310. void ( STDMETHODCALLTYPE *GSGetShader )(
  1311. ID3D11DeviceContext1 * This,
  1312. /* [annotation] */
  1313. _Outptr_result_maybenull_ ID3D11GeometryShader **ppGeometryShader,
  1314. /* [annotation] */
  1315. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  1316. /* [annotation] */
  1317. _Inout_opt_ UINT *pNumClassInstances);
  1318. void ( STDMETHODCALLTYPE *IAGetPrimitiveTopology )(
  1319. ID3D11DeviceContext1 * This,
  1320. /* [annotation] */
  1321. _Out_ D3D11_PRIMITIVE_TOPOLOGY *pTopology);
  1322. void ( STDMETHODCALLTYPE *VSGetShaderResources )(
  1323. ID3D11DeviceContext1 * This,
  1324. /* [annotation] */
  1325. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1326. /* [annotation] */
  1327. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  1328. /* [annotation] */
  1329. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  1330. void ( STDMETHODCALLTYPE *VSGetSamplers )(
  1331. ID3D11DeviceContext1 * This,
  1332. /* [annotation] */
  1333. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  1334. /* [annotation] */
  1335. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  1336. /* [annotation] */
  1337. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  1338. void ( STDMETHODCALLTYPE *GetPredication )(
  1339. ID3D11DeviceContext1 * This,
  1340. /* [annotation] */
  1341. _Outptr_opt_result_maybenull_ ID3D11Predicate **ppPredicate,
  1342. /* [annotation] */
  1343. _Out_opt_ BOOL *pPredicateValue);
  1344. void ( STDMETHODCALLTYPE *GSGetShaderResources )(
  1345. ID3D11DeviceContext1 * This,
  1346. /* [annotation] */
  1347. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1348. /* [annotation] */
  1349. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  1350. /* [annotation] */
  1351. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  1352. void ( STDMETHODCALLTYPE *GSGetSamplers )(
  1353. ID3D11DeviceContext1 * This,
  1354. /* [annotation] */
  1355. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  1356. /* [annotation] */
  1357. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  1358. /* [annotation] */
  1359. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  1360. void ( STDMETHODCALLTYPE *OMGetRenderTargets )(
  1361. ID3D11DeviceContext1 * This,
  1362. /* [annotation] */
  1363. _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews,
  1364. /* [annotation] */
  1365. _Out_writes_opt_(NumViews) ID3D11RenderTargetView **ppRenderTargetViews,
  1366. /* [annotation] */
  1367. _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView);
  1368. void ( STDMETHODCALLTYPE *OMGetRenderTargetsAndUnorderedAccessViews )(
  1369. ID3D11DeviceContext1 * This,
  1370. /* [annotation] */
  1371. _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumRTVs,
  1372. /* [annotation] */
  1373. _Out_writes_opt_(NumRTVs) ID3D11RenderTargetView **ppRenderTargetViews,
  1374. /* [annotation] */
  1375. _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView,
  1376. /* [annotation] */
  1377. _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - 1 ) UINT UAVStartSlot,
  1378. /* [annotation] */
  1379. _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot ) UINT NumUAVs,
  1380. /* [annotation] */
  1381. _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews);
  1382. void ( STDMETHODCALLTYPE *OMGetBlendState )(
  1383. ID3D11DeviceContext1 * This,
  1384. /* [annotation] */
  1385. _Outptr_opt_result_maybenull_ ID3D11BlendState **ppBlendState,
  1386. /* [annotation] */
  1387. _Out_opt_ FLOAT BlendFactor[ 4 ],
  1388. /* [annotation] */
  1389. _Out_opt_ UINT *pSampleMask);
  1390. void ( STDMETHODCALLTYPE *OMGetDepthStencilState )(
  1391. ID3D11DeviceContext1 * This,
  1392. /* [annotation] */
  1393. _Outptr_opt_result_maybenull_ ID3D11DepthStencilState **ppDepthStencilState,
  1394. /* [annotation] */
  1395. _Out_opt_ UINT *pStencilRef);
  1396. void ( STDMETHODCALLTYPE *SOGetTargets )(
  1397. ID3D11DeviceContext1 * This,
  1398. /* [annotation] */
  1399. _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers,
  1400. /* [annotation] */
  1401. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppSOTargets);
  1402. void ( STDMETHODCALLTYPE *RSGetState )(
  1403. ID3D11DeviceContext1 * This,
  1404. /* [annotation] */
  1405. _Outptr_result_maybenull_ ID3D11RasterizerState **ppRasterizerState);
  1406. void ( STDMETHODCALLTYPE *RSGetViewports )(
  1407. ID3D11DeviceContext1 * This,
  1408. /* [annotation] */
  1409. _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumViewports,
  1410. /* [annotation] */
  1411. _Out_writes_opt_(*pNumViewports) D3D11_VIEWPORT *pViewports);
  1412. void ( STDMETHODCALLTYPE *RSGetScissorRects )(
  1413. ID3D11DeviceContext1 * This,
  1414. /* [annotation] */
  1415. _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumRects,
  1416. /* [annotation] */
  1417. _Out_writes_opt_(*pNumRects) D3D11_RECT *pRects);
  1418. void ( STDMETHODCALLTYPE *HSGetShaderResources )(
  1419. ID3D11DeviceContext1 * This,
  1420. /* [annotation] */
  1421. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1422. /* [annotation] */
  1423. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  1424. /* [annotation] */
  1425. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  1426. void ( STDMETHODCALLTYPE *HSGetShader )(
  1427. ID3D11DeviceContext1 * This,
  1428. /* [annotation] */
  1429. _Outptr_result_maybenull_ ID3D11HullShader **ppHullShader,
  1430. /* [annotation] */
  1431. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  1432. /* [annotation] */
  1433. _Inout_opt_ UINT *pNumClassInstances);
  1434. void ( STDMETHODCALLTYPE *HSGetSamplers )(
  1435. ID3D11DeviceContext1 * This,
  1436. /* [annotation] */
  1437. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  1438. /* [annotation] */
  1439. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  1440. /* [annotation] */
  1441. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  1442. void ( STDMETHODCALLTYPE *HSGetConstantBuffers )(
  1443. ID3D11DeviceContext1 * This,
  1444. /* [annotation] */
  1445. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1446. /* [annotation] */
  1447. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1448. /* [annotation] */
  1449. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  1450. void ( STDMETHODCALLTYPE *DSGetShaderResources )(
  1451. ID3D11DeviceContext1 * This,
  1452. /* [annotation] */
  1453. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1454. /* [annotation] */
  1455. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  1456. /* [annotation] */
  1457. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  1458. void ( STDMETHODCALLTYPE *DSGetShader )(
  1459. ID3D11DeviceContext1 * This,
  1460. /* [annotation] */
  1461. _Outptr_result_maybenull_ ID3D11DomainShader **ppDomainShader,
  1462. /* [annotation] */
  1463. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  1464. /* [annotation] */
  1465. _Inout_opt_ UINT *pNumClassInstances);
  1466. void ( STDMETHODCALLTYPE *DSGetSamplers )(
  1467. ID3D11DeviceContext1 * This,
  1468. /* [annotation] */
  1469. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  1470. /* [annotation] */
  1471. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  1472. /* [annotation] */
  1473. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  1474. void ( STDMETHODCALLTYPE *DSGetConstantBuffers )(
  1475. ID3D11DeviceContext1 * This,
  1476. /* [annotation] */
  1477. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1478. /* [annotation] */
  1479. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1480. /* [annotation] */
  1481. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  1482. void ( STDMETHODCALLTYPE *CSGetShaderResources )(
  1483. ID3D11DeviceContext1 * This,
  1484. /* [annotation] */
  1485. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot,
  1486. /* [annotation] */
  1487. _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews,
  1488. /* [annotation] */
  1489. _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews);
  1490. void ( STDMETHODCALLTYPE *CSGetUnorderedAccessViews )(
  1491. ID3D11DeviceContext1 * This,
  1492. /* [annotation] */
  1493. _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot,
  1494. /* [annotation] */
  1495. _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs,
  1496. /* [annotation] */
  1497. _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews);
  1498. void ( STDMETHODCALLTYPE *CSGetShader )(
  1499. ID3D11DeviceContext1 * This,
  1500. /* [annotation] */
  1501. _Outptr_result_maybenull_ ID3D11ComputeShader **ppComputeShader,
  1502. /* [annotation] */
  1503. _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances,
  1504. /* [annotation] */
  1505. _Inout_opt_ UINT *pNumClassInstances);
  1506. void ( STDMETHODCALLTYPE *CSGetSamplers )(
  1507. ID3D11DeviceContext1 * This,
  1508. /* [annotation] */
  1509. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot,
  1510. /* [annotation] */
  1511. _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers,
  1512. /* [annotation] */
  1513. _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers);
  1514. void ( STDMETHODCALLTYPE *CSGetConstantBuffers )(
  1515. ID3D11DeviceContext1 * This,
  1516. /* [annotation] */
  1517. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1518. /* [annotation] */
  1519. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1520. /* [annotation] */
  1521. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers);
  1522. void ( STDMETHODCALLTYPE *ClearState )(
  1523. ID3D11DeviceContext1 * This);
  1524. void ( STDMETHODCALLTYPE *Flush )(
  1525. ID3D11DeviceContext1 * This);
  1526. D3D11_DEVICE_CONTEXT_TYPE ( STDMETHODCALLTYPE *GetType )(
  1527. ID3D11DeviceContext1 * This);
  1528. UINT ( STDMETHODCALLTYPE *GetContextFlags )(
  1529. ID3D11DeviceContext1 * This);
  1530. HRESULT ( STDMETHODCALLTYPE *FinishCommandList )(
  1531. ID3D11DeviceContext1 * This,
  1532. BOOL RestoreDeferredContextState,
  1533. /* [annotation] */
  1534. _COM_Outptr_opt_ ID3D11CommandList **ppCommandList);
  1535. void ( STDMETHODCALLTYPE *CopySubresourceRegion1 )(
  1536. ID3D11DeviceContext1 * This,
  1537. /* [annotation] */
  1538. _In_ ID3D11Resource *pDstResource,
  1539. /* [annotation] */
  1540. _In_ UINT DstSubresource,
  1541. /* [annotation] */
  1542. _In_ UINT DstX,
  1543. /* [annotation] */
  1544. _In_ UINT DstY,
  1545. /* [annotation] */
  1546. _In_ UINT DstZ,
  1547. /* [annotation] */
  1548. _In_ ID3D11Resource *pSrcResource,
  1549. /* [annotation] */
  1550. _In_ UINT SrcSubresource,
  1551. /* [annotation] */
  1552. _In_opt_ const D3D11_BOX *pSrcBox,
  1553. /* [annotation] */
  1554. _In_ UINT CopyFlags);
  1555. void ( STDMETHODCALLTYPE *UpdateSubresource1 )(
  1556. ID3D11DeviceContext1 * This,
  1557. /* [annotation] */
  1558. _In_ ID3D11Resource *pDstResource,
  1559. /* [annotation] */
  1560. _In_ UINT DstSubresource,
  1561. /* [annotation] */
  1562. _In_opt_ const D3D11_BOX *pDstBox,
  1563. /* [annotation] */
  1564. _In_ const void *pSrcData,
  1565. /* [annotation] */
  1566. _In_ UINT SrcRowPitch,
  1567. /* [annotation] */
  1568. _In_ UINT SrcDepthPitch,
  1569. /* [annotation] */
  1570. _In_ UINT CopyFlags);
  1571. void ( STDMETHODCALLTYPE *DiscardResource )(
  1572. ID3D11DeviceContext1 * This,
  1573. /* [annotation] */
  1574. _In_ ID3D11Resource *pResource);
  1575. void ( STDMETHODCALLTYPE *DiscardView )(
  1576. ID3D11DeviceContext1 * This,
  1577. /* [annotation] */
  1578. _In_ ID3D11View *pResourceView);
  1579. void ( STDMETHODCALLTYPE *VSSetConstantBuffers1 )(
  1580. ID3D11DeviceContext1 * This,
  1581. /* [annotation] */
  1582. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1583. /* [annotation] */
  1584. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1585. /* [annotation] */
  1586. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1587. /* [annotation] */
  1588. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1589. /* [annotation] */
  1590. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1591. void ( STDMETHODCALLTYPE *HSSetConstantBuffers1 )(
  1592. ID3D11DeviceContext1 * This,
  1593. /* [annotation] */
  1594. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1595. /* [annotation] */
  1596. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1597. /* [annotation] */
  1598. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1599. /* [annotation] */
  1600. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1601. /* [annotation] */
  1602. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1603. void ( STDMETHODCALLTYPE *DSSetConstantBuffers1 )(
  1604. ID3D11DeviceContext1 * This,
  1605. /* [annotation] */
  1606. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1607. /* [annotation] */
  1608. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1609. /* [annotation] */
  1610. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1611. /* [annotation] */
  1612. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1613. /* [annotation] */
  1614. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1615. void ( STDMETHODCALLTYPE *GSSetConstantBuffers1 )(
  1616. ID3D11DeviceContext1 * This,
  1617. /* [annotation] */
  1618. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1619. /* [annotation] */
  1620. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1621. /* [annotation] */
  1622. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1623. /* [annotation] */
  1624. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1625. /* [annotation] */
  1626. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1627. void ( STDMETHODCALLTYPE *PSSetConstantBuffers1 )(
  1628. ID3D11DeviceContext1 * This,
  1629. /* [annotation] */
  1630. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1631. /* [annotation] */
  1632. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1633. /* [annotation] */
  1634. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1635. /* [annotation] */
  1636. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1637. /* [annotation] */
  1638. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1639. void ( STDMETHODCALLTYPE *CSSetConstantBuffers1 )(
  1640. ID3D11DeviceContext1 * This,
  1641. /* [annotation] */
  1642. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1643. /* [annotation] */
  1644. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1645. /* [annotation] */
  1646. _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers,
  1647. /* [annotation] */
  1648. _In_reads_opt_(NumBuffers) const UINT *pFirstConstant,
  1649. /* [annotation] */
  1650. _In_reads_opt_(NumBuffers) const UINT *pNumConstants);
  1651. void ( STDMETHODCALLTYPE *VSGetConstantBuffers1 )(
  1652. ID3D11DeviceContext1 * This,
  1653. /* [annotation] */
  1654. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1655. /* [annotation] */
  1656. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1657. /* [annotation] */
  1658. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1659. /* [annotation] */
  1660. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1661. /* [annotation] */
  1662. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1663. void ( STDMETHODCALLTYPE *HSGetConstantBuffers1 )(
  1664. ID3D11DeviceContext1 * This,
  1665. /* [annotation] */
  1666. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1667. /* [annotation] */
  1668. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1669. /* [annotation] */
  1670. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1671. /* [annotation] */
  1672. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1673. /* [annotation] */
  1674. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1675. void ( STDMETHODCALLTYPE *DSGetConstantBuffers1 )(
  1676. ID3D11DeviceContext1 * This,
  1677. /* [annotation] */
  1678. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1679. /* [annotation] */
  1680. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1681. /* [annotation] */
  1682. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1683. /* [annotation] */
  1684. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1685. /* [annotation] */
  1686. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1687. void ( STDMETHODCALLTYPE *GSGetConstantBuffers1 )(
  1688. ID3D11DeviceContext1 * This,
  1689. /* [annotation] */
  1690. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1691. /* [annotation] */
  1692. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1693. /* [annotation] */
  1694. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1695. /* [annotation] */
  1696. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1697. /* [annotation] */
  1698. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1699. void ( STDMETHODCALLTYPE *PSGetConstantBuffers1 )(
  1700. ID3D11DeviceContext1 * This,
  1701. /* [annotation] */
  1702. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1703. /* [annotation] */
  1704. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1705. /* [annotation] */
  1706. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1707. /* [annotation] */
  1708. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1709. /* [annotation] */
  1710. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1711. void ( STDMETHODCALLTYPE *CSGetConstantBuffers1 )(
  1712. ID3D11DeviceContext1 * This,
  1713. /* [annotation] */
  1714. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot,
  1715. /* [annotation] */
  1716. _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers,
  1717. /* [annotation] */
  1718. _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers,
  1719. /* [annotation] */
  1720. _Out_writes_opt_(NumBuffers) UINT *pFirstConstant,
  1721. /* [annotation] */
  1722. _Out_writes_opt_(NumBuffers) UINT *pNumConstants);
  1723. void ( STDMETHODCALLTYPE *SwapDeviceContextState )(
  1724. ID3D11DeviceContext1 * This,
  1725. /* [annotation] */
  1726. _In_ ID3DDeviceContextState *pState,
  1727. /* [annotation] */
  1728. _Outptr_opt_ ID3DDeviceContextState **ppPreviousState);
  1729. void ( STDMETHODCALLTYPE *ClearView )(
  1730. ID3D11DeviceContext1 * This,
  1731. /* [annotation] */
  1732. _In_ ID3D11View *pView,
  1733. /* [annotation] */
  1734. _In_ const FLOAT Color[ 4 ],
  1735. /* [annotation] */
  1736. _In_reads_opt_(NumRects) const D3D11_RECT *pRect,
  1737. UINT NumRects);
  1738. void ( STDMETHODCALLTYPE *DiscardView1 )(
  1739. ID3D11DeviceContext1 * This,
  1740. /* [annotation] */
  1741. _In_ ID3D11View *pResourceView,
  1742. /* [annotation] */
  1743. _In_reads_opt_(NumRects) const D3D11_RECT *pRects,
  1744. UINT NumRects);
  1745. END_INTERFACE
  1746. } ID3D11DeviceContext1Vtbl;
  1747. interface ID3D11DeviceContext1
  1748. {
  1749. CONST_VTBL struct ID3D11DeviceContext1Vtbl *lpVtbl;
  1750. };
  1751. #ifdef COBJMACROS
  1752. #define ID3D11DeviceContext1_QueryInterface(This,riid,ppvObject) \
  1753. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1754. #define ID3D11DeviceContext1_AddRef(This) \
  1755. ( (This)->lpVtbl -> AddRef(This) )
  1756. #define ID3D11DeviceContext1_Release(This) \
  1757. ( (This)->lpVtbl -> Release(This) )
  1758. #define ID3D11DeviceContext1_GetDevice(This,ppDevice) \
  1759. ( (This)->lpVtbl -> GetDevice(This,ppDevice) )
  1760. #define ID3D11DeviceContext1_GetPrivateData(This,guid,pDataSize,pData) \
  1761. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1762. #define ID3D11DeviceContext1_SetPrivateData(This,guid,DataSize,pData) \
  1763. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1764. #define ID3D11DeviceContext1_SetPrivateDataInterface(This,guid,pData) \
  1765. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1766. #define ID3D11DeviceContext1_VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1767. ( (This)->lpVtbl -> VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1768. #define ID3D11DeviceContext1_PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1769. ( (This)->lpVtbl -> PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1770. #define ID3D11DeviceContext1_PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) \
  1771. ( (This)->lpVtbl -> PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) )
  1772. #define ID3D11DeviceContext1_PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1773. ( (This)->lpVtbl -> PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1774. #define ID3D11DeviceContext1_VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) \
  1775. ( (This)->lpVtbl -> VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) )
  1776. #define ID3D11DeviceContext1_DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) \
  1777. ( (This)->lpVtbl -> DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) )
  1778. #define ID3D11DeviceContext1_Draw(This,VertexCount,StartVertexLocation) \
  1779. ( (This)->lpVtbl -> Draw(This,VertexCount,StartVertexLocation) )
  1780. #define ID3D11DeviceContext1_Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) \
  1781. ( (This)->lpVtbl -> Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) )
  1782. #define ID3D11DeviceContext1_Unmap(This,pResource,Subresource) \
  1783. ( (This)->lpVtbl -> Unmap(This,pResource,Subresource) )
  1784. #define ID3D11DeviceContext1_PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1785. ( (This)->lpVtbl -> PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1786. #define ID3D11DeviceContext1_IASetInputLayout(This,pInputLayout) \
  1787. ( (This)->lpVtbl -> IASetInputLayout(This,pInputLayout) )
  1788. #define ID3D11DeviceContext1_IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \
  1789. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) )
  1790. #define ID3D11DeviceContext1_IASetIndexBuffer(This,pIndexBuffer,Format,Offset) \
  1791. ( (This)->lpVtbl -> IASetIndexBuffer(This,pIndexBuffer,Format,Offset) )
  1792. #define ID3D11DeviceContext1_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  1793. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  1794. #define ID3D11DeviceContext1_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  1795. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  1796. #define ID3D11DeviceContext1_GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1797. ( (This)->lpVtbl -> GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1798. #define ID3D11DeviceContext1_GSSetShader(This,pShader,ppClassInstances,NumClassInstances) \
  1799. ( (This)->lpVtbl -> GSSetShader(This,pShader,ppClassInstances,NumClassInstances) )
  1800. #define ID3D11DeviceContext1_IASetPrimitiveTopology(This,Topology) \
  1801. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,Topology) )
  1802. #define ID3D11DeviceContext1_VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1803. ( (This)->lpVtbl -> VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1804. #define ID3D11DeviceContext1_VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1805. ( (This)->lpVtbl -> VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1806. #define ID3D11DeviceContext1_Begin(This,pAsync) \
  1807. ( (This)->lpVtbl -> Begin(This,pAsync) )
  1808. #define ID3D11DeviceContext1_End(This,pAsync) \
  1809. ( (This)->lpVtbl -> End(This,pAsync) )
  1810. #define ID3D11DeviceContext1_GetData(This,pAsync,pData,DataSize,GetDataFlags) \
  1811. ( (This)->lpVtbl -> GetData(This,pAsync,pData,DataSize,GetDataFlags) )
  1812. #define ID3D11DeviceContext1_SetPredication(This,pPredicate,PredicateValue) \
  1813. ( (This)->lpVtbl -> SetPredication(This,pPredicate,PredicateValue) )
  1814. #define ID3D11DeviceContext1_GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1815. ( (This)->lpVtbl -> GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1816. #define ID3D11DeviceContext1_GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1817. ( (This)->lpVtbl -> GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1818. #define ID3D11DeviceContext1_OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) \
  1819. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) )
  1820. #define ID3D11DeviceContext1_OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \
  1821. ( (This)->lpVtbl -> OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) )
  1822. #define ID3D11DeviceContext1_OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) \
  1823. ( (This)->lpVtbl -> OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) )
  1824. #define ID3D11DeviceContext1_OMSetDepthStencilState(This,pDepthStencilState,StencilRef) \
  1825. ( (This)->lpVtbl -> OMSetDepthStencilState(This,pDepthStencilState,StencilRef) )
  1826. #define ID3D11DeviceContext1_SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) \
  1827. ( (This)->lpVtbl -> SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) )
  1828. #define ID3D11DeviceContext1_DrawAuto(This) \
  1829. ( (This)->lpVtbl -> DrawAuto(This) )
  1830. #define ID3D11DeviceContext1_DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \
  1831. ( (This)->lpVtbl -> DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) )
  1832. #define ID3D11DeviceContext1_DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \
  1833. ( (This)->lpVtbl -> DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) )
  1834. #define ID3D11DeviceContext1_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  1835. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  1836. #define ID3D11DeviceContext1_DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \
  1837. ( (This)->lpVtbl -> DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) )
  1838. #define ID3D11DeviceContext1_RSSetState(This,pRasterizerState) \
  1839. ( (This)->lpVtbl -> RSSetState(This,pRasterizerState) )
  1840. #define ID3D11DeviceContext1_RSSetViewports(This,NumViewports,pViewports) \
  1841. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  1842. #define ID3D11DeviceContext1_RSSetScissorRects(This,NumRects,pRects) \
  1843. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  1844. #define ID3D11DeviceContext1_CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) \
  1845. ( (This)->lpVtbl -> CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) )
  1846. #define ID3D11DeviceContext1_CopyResource(This,pDstResource,pSrcResource) \
  1847. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  1848. #define ID3D11DeviceContext1_UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  1849. ( (This)->lpVtbl -> UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  1850. #define ID3D11DeviceContext1_CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) \
  1851. ( (This)->lpVtbl -> CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) )
  1852. #define ID3D11DeviceContext1_ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) \
  1853. ( (This)->lpVtbl -> ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) )
  1854. #define ID3D11DeviceContext1_ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) \
  1855. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) )
  1856. #define ID3D11DeviceContext1_ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) \
  1857. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) )
  1858. #define ID3D11DeviceContext1_ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) \
  1859. ( (This)->lpVtbl -> ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) )
  1860. #define ID3D11DeviceContext1_GenerateMips(This,pShaderResourceView) \
  1861. ( (This)->lpVtbl -> GenerateMips(This,pShaderResourceView) )
  1862. #define ID3D11DeviceContext1_SetResourceMinLOD(This,pResource,MinLOD) \
  1863. ( (This)->lpVtbl -> SetResourceMinLOD(This,pResource,MinLOD) )
  1864. #define ID3D11DeviceContext1_GetResourceMinLOD(This,pResource) \
  1865. ( (This)->lpVtbl -> GetResourceMinLOD(This,pResource) )
  1866. #define ID3D11DeviceContext1_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  1867. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  1868. #define ID3D11DeviceContext1_ExecuteCommandList(This,pCommandList,RestoreContextState) \
  1869. ( (This)->lpVtbl -> ExecuteCommandList(This,pCommandList,RestoreContextState) )
  1870. #define ID3D11DeviceContext1_HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1871. ( (This)->lpVtbl -> HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1872. #define ID3D11DeviceContext1_HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) \
  1873. ( (This)->lpVtbl -> HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) )
  1874. #define ID3D11DeviceContext1_HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1875. ( (This)->lpVtbl -> HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1876. #define ID3D11DeviceContext1_HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1877. ( (This)->lpVtbl -> HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1878. #define ID3D11DeviceContext1_DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1879. ( (This)->lpVtbl -> DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1880. #define ID3D11DeviceContext1_DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) \
  1881. ( (This)->lpVtbl -> DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) )
  1882. #define ID3D11DeviceContext1_DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1883. ( (This)->lpVtbl -> DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1884. #define ID3D11DeviceContext1_DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1885. ( (This)->lpVtbl -> DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1886. #define ID3D11DeviceContext1_CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1887. ( (This)->lpVtbl -> CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1888. #define ID3D11DeviceContext1_CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \
  1889. ( (This)->lpVtbl -> CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) )
  1890. #define ID3D11DeviceContext1_CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) \
  1891. ( (This)->lpVtbl -> CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) )
  1892. #define ID3D11DeviceContext1_CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1893. ( (This)->lpVtbl -> CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1894. #define ID3D11DeviceContext1_CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1895. ( (This)->lpVtbl -> CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1896. #define ID3D11DeviceContext1_VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1897. ( (This)->lpVtbl -> VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1898. #define ID3D11DeviceContext1_PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1899. ( (This)->lpVtbl -> PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1900. #define ID3D11DeviceContext1_PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) \
  1901. ( (This)->lpVtbl -> PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) )
  1902. #define ID3D11DeviceContext1_PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1903. ( (This)->lpVtbl -> PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1904. #define ID3D11DeviceContext1_VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) \
  1905. ( (This)->lpVtbl -> VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) )
  1906. #define ID3D11DeviceContext1_PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1907. ( (This)->lpVtbl -> PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1908. #define ID3D11DeviceContext1_IAGetInputLayout(This,ppInputLayout) \
  1909. ( (This)->lpVtbl -> IAGetInputLayout(This,ppInputLayout) )
  1910. #define ID3D11DeviceContext1_IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \
  1911. ( (This)->lpVtbl -> IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) )
  1912. #define ID3D11DeviceContext1_IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) \
  1913. ( (This)->lpVtbl -> IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) )
  1914. #define ID3D11DeviceContext1_GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1915. ( (This)->lpVtbl -> GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1916. #define ID3D11DeviceContext1_GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) \
  1917. ( (This)->lpVtbl -> GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) )
  1918. #define ID3D11DeviceContext1_IAGetPrimitiveTopology(This,pTopology) \
  1919. ( (This)->lpVtbl -> IAGetPrimitiveTopology(This,pTopology) )
  1920. #define ID3D11DeviceContext1_VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1921. ( (This)->lpVtbl -> VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1922. #define ID3D11DeviceContext1_VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1923. ( (This)->lpVtbl -> VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1924. #define ID3D11DeviceContext1_GetPredication(This,ppPredicate,pPredicateValue) \
  1925. ( (This)->lpVtbl -> GetPredication(This,ppPredicate,pPredicateValue) )
  1926. #define ID3D11DeviceContext1_GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1927. ( (This)->lpVtbl -> GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1928. #define ID3D11DeviceContext1_GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1929. ( (This)->lpVtbl -> GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1930. #define ID3D11DeviceContext1_OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) \
  1931. ( (This)->lpVtbl -> OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) )
  1932. #define ID3D11DeviceContext1_OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) \
  1933. ( (This)->lpVtbl -> OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) )
  1934. #define ID3D11DeviceContext1_OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) \
  1935. ( (This)->lpVtbl -> OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) )
  1936. #define ID3D11DeviceContext1_OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) \
  1937. ( (This)->lpVtbl -> OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) )
  1938. #define ID3D11DeviceContext1_SOGetTargets(This,NumBuffers,ppSOTargets) \
  1939. ( (This)->lpVtbl -> SOGetTargets(This,NumBuffers,ppSOTargets) )
  1940. #define ID3D11DeviceContext1_RSGetState(This,ppRasterizerState) \
  1941. ( (This)->lpVtbl -> RSGetState(This,ppRasterizerState) )
  1942. #define ID3D11DeviceContext1_RSGetViewports(This,pNumViewports,pViewports) \
  1943. ( (This)->lpVtbl -> RSGetViewports(This,pNumViewports,pViewports) )
  1944. #define ID3D11DeviceContext1_RSGetScissorRects(This,pNumRects,pRects) \
  1945. ( (This)->lpVtbl -> RSGetScissorRects(This,pNumRects,pRects) )
  1946. #define ID3D11DeviceContext1_HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1947. ( (This)->lpVtbl -> HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1948. #define ID3D11DeviceContext1_HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) \
  1949. ( (This)->lpVtbl -> HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) )
  1950. #define ID3D11DeviceContext1_HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1951. ( (This)->lpVtbl -> HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1952. #define ID3D11DeviceContext1_HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1953. ( (This)->lpVtbl -> HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1954. #define ID3D11DeviceContext1_DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1955. ( (This)->lpVtbl -> DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1956. #define ID3D11DeviceContext1_DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) \
  1957. ( (This)->lpVtbl -> DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) )
  1958. #define ID3D11DeviceContext1_DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1959. ( (This)->lpVtbl -> DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1960. #define ID3D11DeviceContext1_DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1961. ( (This)->lpVtbl -> DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1962. #define ID3D11DeviceContext1_CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \
  1963. ( (This)->lpVtbl -> CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) )
  1964. #define ID3D11DeviceContext1_CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) \
  1965. ( (This)->lpVtbl -> CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) )
  1966. #define ID3D11DeviceContext1_CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) \
  1967. ( (This)->lpVtbl -> CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) )
  1968. #define ID3D11DeviceContext1_CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \
  1969. ( (This)->lpVtbl -> CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) )
  1970. #define ID3D11DeviceContext1_CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \
  1971. ( (This)->lpVtbl -> CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) )
  1972. #define ID3D11DeviceContext1_ClearState(This) \
  1973. ( (This)->lpVtbl -> ClearState(This) )
  1974. #define ID3D11DeviceContext1_Flush(This) \
  1975. ( (This)->lpVtbl -> Flush(This) )
  1976. #define ID3D11DeviceContext1_GetType(This) \
  1977. ( (This)->lpVtbl -> GetType(This) )
  1978. #define ID3D11DeviceContext1_GetContextFlags(This) \
  1979. ( (This)->lpVtbl -> GetContextFlags(This) )
  1980. #define ID3D11DeviceContext1_FinishCommandList(This,RestoreDeferredContextState,ppCommandList) \
  1981. ( (This)->lpVtbl -> FinishCommandList(This,RestoreDeferredContextState,ppCommandList) )
  1982. #define ID3D11DeviceContext1_CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) \
  1983. ( (This)->lpVtbl -> CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) )
  1984. #define ID3D11DeviceContext1_UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) \
  1985. ( (This)->lpVtbl -> UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) )
  1986. #define ID3D11DeviceContext1_DiscardResource(This,pResource) \
  1987. ( (This)->lpVtbl -> DiscardResource(This,pResource) )
  1988. #define ID3D11DeviceContext1_DiscardView(This,pResourceView) \
  1989. ( (This)->lpVtbl -> DiscardView(This,pResourceView) )
  1990. #define ID3D11DeviceContext1_VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1991. ( (This)->lpVtbl -> VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1992. #define ID3D11DeviceContext1_HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1993. ( (This)->lpVtbl -> HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1994. #define ID3D11DeviceContext1_DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1995. ( (This)->lpVtbl -> DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1996. #define ID3D11DeviceContext1_GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1997. ( (This)->lpVtbl -> GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  1998. #define ID3D11DeviceContext1_PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  1999. ( (This)->lpVtbl -> PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  2000. #define ID3D11DeviceContext1_CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  2001. ( (This)->lpVtbl -> CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  2002. #define ID3D11DeviceContext1_VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  2003. ( (This)->lpVtbl -> VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  2004. #define ID3D11DeviceContext1_HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  2005. ( (This)->lpVtbl -> HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  2006. #define ID3D11DeviceContext1_DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  2007. ( (This)->lpVtbl -> DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  2008. #define ID3D11DeviceContext1_GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  2009. ( (This)->lpVtbl -> GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  2010. #define ID3D11DeviceContext1_PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  2011. ( (This)->lpVtbl -> PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  2012. #define ID3D11DeviceContext1_CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \
  2013. ( (This)->lpVtbl -> CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) )
  2014. #define ID3D11DeviceContext1_SwapDeviceContextState(This,pState,ppPreviousState) \
  2015. ( (This)->lpVtbl -> SwapDeviceContextState(This,pState,ppPreviousState) )
  2016. #define ID3D11DeviceContext1_ClearView(This,pView,Color,pRect,NumRects) \
  2017. ( (This)->lpVtbl -> ClearView(This,pView,Color,pRect,NumRects) )
  2018. #define ID3D11DeviceContext1_DiscardView1(This,pResourceView,pRects,NumRects) \
  2019. ( (This)->lpVtbl -> DiscardView1(This,pResourceView,pRects,NumRects) )
  2020. #endif /* COBJMACROS */
  2021. #endif /* C style interface */
  2022. #endif /* __ID3D11DeviceContext1_INTERFACE_DEFINED__ */
  2023. /* interface __MIDL_itf_d3d11_1_0000_0004 */
  2024. /* [local] */
  2025. typedef struct D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK
  2026. {
  2027. UINT ClearSize;
  2028. UINT EncryptedSize;
  2029. } D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK;
  2030. typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC1
  2031. {
  2032. D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType;
  2033. UINT DataOffset;
  2034. UINT DataSize;
  2035. /* [annotation] */
  2036. _Field_size_opt_(IVSize) void *pIV;
  2037. UINT IVSize;
  2038. /* [annotation] */
  2039. _Field_size_opt_(SubSampleMappingCount) D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK *pSubSampleMappingBlock;
  2040. UINT SubSampleMappingCount;
  2041. } D3D11_VIDEO_DECODER_BUFFER_DESC1;
  2042. typedef struct D3D11_VIDEO_DECODER_BEGIN_FRAME_CRYPTO_SESSION
  2043. {
  2044. ID3D11CryptoSession *pCryptoSession;
  2045. UINT BlobSize;
  2046. /* [annotation] */
  2047. _Field_size_opt_(BlobSize) void *pBlob;
  2048. GUID *pKeyInfoId;
  2049. UINT PrivateDataSize;
  2050. /* [annotation] */
  2051. _Field_size_opt_(PrivateDataSize) void *pPrivateData;
  2052. } D3D11_VIDEO_DECODER_BEGIN_FRAME_CRYPTO_SESSION;
  2053. typedef
  2054. enum D3D11_VIDEO_DECODER_CAPS
  2055. {
  2056. D3D11_VIDEO_DECODER_CAPS_DOWNSAMPLE = 0x1,
  2057. D3D11_VIDEO_DECODER_CAPS_NON_REAL_TIME = 0x2,
  2058. D3D11_VIDEO_DECODER_CAPS_DOWNSAMPLE_DYNAMIC = 0x4,
  2059. D3D11_VIDEO_DECODER_CAPS_DOWNSAMPLE_REQUIRED = 0x8,
  2060. D3D11_VIDEO_DECODER_CAPS_UNSUPPORTED = 0x10
  2061. } D3D11_VIDEO_DECODER_CAPS;
  2062. typedef
  2063. enum D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINTS
  2064. {
  2065. D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_MULTIPLANE_OVERLAY_ROTATION = 0x1,
  2066. D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_MULTIPLANE_OVERLAY_RESIZE = 0x2,
  2067. D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_MULTIPLANE_OVERLAY_COLOR_SPACE_CONVERSION = 0x4,
  2068. D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_TRIPLE_BUFFER_OUTPUT = 0x8
  2069. } D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINTS;
  2070. typedef struct D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT
  2071. {
  2072. BOOL Enable;
  2073. UINT Width;
  2074. UINT Height;
  2075. DXGI_FORMAT Format;
  2076. } D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT;
  2077. typedef
  2078. enum D3D11_CRYPTO_SESSION_STATUS
  2079. {
  2080. D3D11_CRYPTO_SESSION_STATUS_OK = 0,
  2081. D3D11_CRYPTO_SESSION_STATUS_KEY_LOST = 1,
  2082. D3D11_CRYPTO_SESSION_STATUS_KEY_AND_CONTENT_LOST = 2
  2083. } D3D11_CRYPTO_SESSION_STATUS;
  2084. typedef struct D3D11_KEY_EXCHANGE_HW_PROTECTION_INPUT_DATA
  2085. {
  2086. UINT PrivateDataSize;
  2087. UINT HWProtectionDataSize;
  2088. BYTE pbInput[ 4 ];
  2089. } D3D11_KEY_EXCHANGE_HW_PROTECTION_INPUT_DATA;
  2090. typedef struct D3D11_KEY_EXCHANGE_HW_PROTECTION_OUTPUT_DATA
  2091. {
  2092. UINT PrivateDataSize;
  2093. UINT MaxHWProtectionDataSize;
  2094. UINT HWProtectionDataSize;
  2095. UINT64 TransportTime;
  2096. UINT64 ExecutionTime;
  2097. BYTE pbOutput[ 4 ];
  2098. } D3D11_KEY_EXCHANGE_HW_PROTECTION_OUTPUT_DATA;
  2099. typedef struct D3D11_KEY_EXCHANGE_HW_PROTECTION_DATA
  2100. {
  2101. UINT HWProtectionFunctionID;
  2102. D3D11_KEY_EXCHANGE_HW_PROTECTION_INPUT_DATA *pInputData;
  2103. D3D11_KEY_EXCHANGE_HW_PROTECTION_OUTPUT_DATA *pOutputData;
  2104. HRESULT Status;
  2105. } D3D11_KEY_EXCHANGE_HW_PROTECTION_DATA;
  2106. typedef struct D3D11_VIDEO_SAMPLE_DESC
  2107. {
  2108. UINT Width;
  2109. UINT Height;
  2110. DXGI_FORMAT Format;
  2111. DXGI_COLOR_SPACE_TYPE ColorSpace;
  2112. } D3D11_VIDEO_SAMPLE_DESC;
  2113. extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0004_v0_0_c_ifspec;
  2114. extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0004_v0_0_s_ifspec;
  2115. #ifndef __ID3D11VideoContext1_INTERFACE_DEFINED__
  2116. #define __ID3D11VideoContext1_INTERFACE_DEFINED__
  2117. /* interface ID3D11VideoContext1 */
  2118. /* [unique][local][object][uuid] */
  2119. EXTERN_C const IID IID_ID3D11VideoContext1;
  2120. #if defined(__cplusplus) && !defined(CINTERFACE)
  2121. MIDL_INTERFACE("A7F026DA-A5F8-4487-A564-15E34357651E")
  2122. ID3D11VideoContext1 : public ID3D11VideoContext
  2123. {
  2124. public:
  2125. virtual HRESULT STDMETHODCALLTYPE SubmitDecoderBuffers1(
  2126. /* [annotation] */
  2127. _In_ ID3D11VideoDecoder *pDecoder,
  2128. /* [annotation] */
  2129. _In_ UINT NumBuffers,
  2130. /* [annotation] */
  2131. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC1 *pBufferDesc) = 0;
  2132. virtual HRESULT STDMETHODCALLTYPE GetDataForNewHardwareKey(
  2133. /* [annotation] */
  2134. _In_ ID3D11CryptoSession *pCryptoSession,
  2135. /* [annotation] */
  2136. _In_ UINT PrivateInputSize,
  2137. /* [annotation] */
  2138. _In_reads_(PrivateInputSize) const void *pPrivatInputData,
  2139. /* [annotation] */
  2140. _Out_ UINT64 *pPrivateOutputData) = 0;
  2141. virtual HRESULT STDMETHODCALLTYPE CheckCryptoSessionStatus(
  2142. /* [annotation] */
  2143. _In_ ID3D11CryptoSession *pCryptoSession,
  2144. /* [annotation] */
  2145. _Out_ D3D11_CRYPTO_SESSION_STATUS *pStatus) = 0;
  2146. virtual HRESULT STDMETHODCALLTYPE DecoderEnableDownsampling(
  2147. /* [annotation] */
  2148. _In_ ID3D11VideoDecoder *pDecoder,
  2149. /* [annotation] */
  2150. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  2151. /* [annotation] */
  2152. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc,
  2153. /* [annotation] */
  2154. _In_ UINT ReferenceFrameCount) = 0;
  2155. virtual HRESULT STDMETHODCALLTYPE DecoderUpdateDownsampling(
  2156. /* [annotation] */
  2157. _In_ ID3D11VideoDecoder *pDecoder,
  2158. /* [annotation] */
  2159. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc) = 0;
  2160. virtual void STDMETHODCALLTYPE VideoProcessorSetOutputColorSpace1(
  2161. /* [annotation] */
  2162. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2163. /* [annotation] */
  2164. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace) = 0;
  2165. virtual void STDMETHODCALLTYPE VideoProcessorSetOutputShaderUsage(
  2166. /* [annotation] */
  2167. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2168. /* [annotation] */
  2169. _In_ BOOL ShaderUsage) = 0;
  2170. virtual void STDMETHODCALLTYPE VideoProcessorGetOutputColorSpace1(
  2171. /* [annotation] */
  2172. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2173. /* [annotation] */
  2174. _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace) = 0;
  2175. virtual void STDMETHODCALLTYPE VideoProcessorGetOutputShaderUsage(
  2176. /* [annotation] */
  2177. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2178. /* [annotation] */
  2179. _Out_ BOOL *pShaderUsage) = 0;
  2180. virtual void STDMETHODCALLTYPE VideoProcessorSetStreamColorSpace1(
  2181. /* [annotation] */
  2182. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2183. /* [annotation] */
  2184. _In_ UINT StreamIndex,
  2185. /* [annotation] */
  2186. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace) = 0;
  2187. virtual void STDMETHODCALLTYPE VideoProcessorSetStreamMirror(
  2188. /* [annotation] */
  2189. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2190. /* [annotation] */
  2191. _In_ UINT StreamIndex,
  2192. /* [annotation] */
  2193. _In_ BOOL Enable,
  2194. /* [annotation] */
  2195. _In_ BOOL FlipHorizontal,
  2196. /* [annotation] */
  2197. _In_ BOOL FlipVertical) = 0;
  2198. virtual void STDMETHODCALLTYPE VideoProcessorGetStreamColorSpace1(
  2199. /* [annotation] */
  2200. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2201. /* [annotation] */
  2202. _In_ UINT StreamIndex,
  2203. /* [annotation] */
  2204. _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace) = 0;
  2205. virtual void STDMETHODCALLTYPE VideoProcessorGetStreamMirror(
  2206. /* [annotation] */
  2207. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2208. /* [annotation] */
  2209. _In_ UINT StreamIndex,
  2210. /* [annotation] */
  2211. _Out_ BOOL *pEnable,
  2212. /* [annotation] */
  2213. _Out_ BOOL *pFlipHorizontal,
  2214. /* [annotation] */
  2215. _Out_ BOOL *pFlipVertical) = 0;
  2216. virtual HRESULT STDMETHODCALLTYPE VideoProcessorGetBehaviorHints(
  2217. /* [annotation] */
  2218. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2219. /* [annotation] */
  2220. _In_ UINT OutputWidth,
  2221. /* [annotation] */
  2222. _In_ UINT OutputHeight,
  2223. /* [annotation] */
  2224. _In_ DXGI_FORMAT OutputFormat,
  2225. /* [annotation] */
  2226. _In_ UINT StreamCount,
  2227. /* [annotation] */
  2228. _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT *pStreams,
  2229. /* [annotation] */
  2230. _Out_ UINT *pBehaviorHints) = 0;
  2231. };
  2232. #else /* C style interface */
  2233. typedef struct ID3D11VideoContext1Vtbl
  2234. {
  2235. BEGIN_INTERFACE
  2236. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2237. ID3D11VideoContext1 * This,
  2238. /* [in] */ REFIID riid,
  2239. /* [annotation][iid_is][out] */
  2240. _COM_Outptr_ void **ppvObject);
  2241. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2242. ID3D11VideoContext1 * This);
  2243. ULONG ( STDMETHODCALLTYPE *Release )(
  2244. ID3D11VideoContext1 * This);
  2245. void ( STDMETHODCALLTYPE *GetDevice )(
  2246. ID3D11VideoContext1 * This,
  2247. /* [annotation] */
  2248. _Outptr_ ID3D11Device **ppDevice);
  2249. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  2250. ID3D11VideoContext1 * This,
  2251. /* [annotation] */
  2252. _In_ REFGUID guid,
  2253. /* [annotation] */
  2254. _Inout_ UINT *pDataSize,
  2255. /* [annotation] */
  2256. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  2257. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  2258. ID3D11VideoContext1 * This,
  2259. /* [annotation] */
  2260. _In_ REFGUID guid,
  2261. /* [annotation] */
  2262. _In_ UINT DataSize,
  2263. /* [annotation] */
  2264. _In_reads_bytes_opt_( DataSize ) const void *pData);
  2265. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  2266. ID3D11VideoContext1 * This,
  2267. /* [annotation] */
  2268. _In_ REFGUID guid,
  2269. /* [annotation] */
  2270. _In_opt_ const IUnknown *pData);
  2271. HRESULT ( STDMETHODCALLTYPE *GetDecoderBuffer )(
  2272. ID3D11VideoContext1 * This,
  2273. /* [annotation] */
  2274. _In_ ID3D11VideoDecoder *pDecoder,
  2275. D3D11_VIDEO_DECODER_BUFFER_TYPE Type,
  2276. /* [annotation] */
  2277. _Out_ UINT *pBufferSize,
  2278. /* [annotation] */
  2279. _Outptr_result_bytebuffer_(*pBufferSize) void **ppBuffer);
  2280. HRESULT ( STDMETHODCALLTYPE *ReleaseDecoderBuffer )(
  2281. ID3D11VideoContext1 * This,
  2282. /* [annotation] */
  2283. _In_ ID3D11VideoDecoder *pDecoder,
  2284. /* [annotation] */
  2285. _In_ D3D11_VIDEO_DECODER_BUFFER_TYPE Type);
  2286. HRESULT ( STDMETHODCALLTYPE *DecoderBeginFrame )(
  2287. ID3D11VideoContext1 * This,
  2288. /* [annotation] */
  2289. _In_ ID3D11VideoDecoder *pDecoder,
  2290. /* [annotation] */
  2291. _In_ ID3D11VideoDecoderOutputView *pView,
  2292. UINT ContentKeySize,
  2293. /* [annotation] */
  2294. _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey);
  2295. HRESULT ( STDMETHODCALLTYPE *DecoderEndFrame )(
  2296. ID3D11VideoContext1 * This,
  2297. /* [annotation] */
  2298. _In_ ID3D11VideoDecoder *pDecoder);
  2299. HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers )(
  2300. ID3D11VideoContext1 * This,
  2301. /* [annotation] */
  2302. _In_ ID3D11VideoDecoder *pDecoder,
  2303. /* [annotation] */
  2304. _In_ UINT NumBuffers,
  2305. /* [annotation] */
  2306. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC *pBufferDesc);
  2307. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *DecoderExtension )(
  2308. ID3D11VideoContext1 * This,
  2309. /* [annotation] */
  2310. _In_ ID3D11VideoDecoder *pDecoder,
  2311. /* [annotation] */
  2312. _In_ const D3D11_VIDEO_DECODER_EXTENSION *pExtensionData);
  2313. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputTargetRect )(
  2314. ID3D11VideoContext1 * This,
  2315. /* [annotation] */
  2316. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2317. /* [annotation] */
  2318. _In_ BOOL Enable,
  2319. /* [annotation] */
  2320. _In_opt_ const RECT *pRect);
  2321. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputBackgroundColor )(
  2322. ID3D11VideoContext1 * This,
  2323. /* [annotation] */
  2324. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2325. /* [annotation] */
  2326. _In_ BOOL YCbCr,
  2327. /* [annotation] */
  2328. _In_ const D3D11_VIDEO_COLOR *pColor);
  2329. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace )(
  2330. ID3D11VideoContext1 * This,
  2331. /* [annotation] */
  2332. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2333. /* [annotation] */
  2334. _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  2335. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputAlphaFillMode )(
  2336. ID3D11VideoContext1 * This,
  2337. /* [annotation] */
  2338. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2339. /* [annotation] */
  2340. _In_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE AlphaFillMode,
  2341. /* [annotation] */
  2342. _In_ UINT StreamIndex);
  2343. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputConstriction )(
  2344. ID3D11VideoContext1 * This,
  2345. /* [annotation] */
  2346. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2347. /* [annotation] */
  2348. _In_ BOOL Enable,
  2349. /* [annotation] */
  2350. _In_ SIZE Size);
  2351. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputStereoMode )(
  2352. ID3D11VideoContext1 * This,
  2353. /* [annotation] */
  2354. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2355. /* [annotation] */
  2356. _In_ BOOL Enable);
  2357. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetOutputExtension )(
  2358. ID3D11VideoContext1 * This,
  2359. /* [annotation] */
  2360. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2361. /* [annotation] */
  2362. _In_ const GUID *pExtensionGuid,
  2363. /* [annotation] */
  2364. _In_ UINT DataSize,
  2365. /* [annotation] */
  2366. _In_ void *pData);
  2367. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputTargetRect )(
  2368. ID3D11VideoContext1 * This,
  2369. /* [annotation] */
  2370. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2371. /* [annotation] */
  2372. _Out_ BOOL *Enabled,
  2373. /* [annotation] */
  2374. _Out_ RECT *pRect);
  2375. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputBackgroundColor )(
  2376. ID3D11VideoContext1 * This,
  2377. /* [annotation] */
  2378. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2379. /* [annotation] */
  2380. _Out_ BOOL *pYCbCr,
  2381. /* [annotation] */
  2382. _Out_ D3D11_VIDEO_COLOR *pColor);
  2383. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace )(
  2384. ID3D11VideoContext1 * This,
  2385. /* [annotation] */
  2386. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2387. /* [annotation] */
  2388. _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  2389. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputAlphaFillMode )(
  2390. ID3D11VideoContext1 * This,
  2391. /* [annotation] */
  2392. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2393. /* [annotation] */
  2394. _Out_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *pAlphaFillMode,
  2395. /* [annotation] */
  2396. _Out_ UINT *pStreamIndex);
  2397. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputConstriction )(
  2398. ID3D11VideoContext1 * This,
  2399. /* [annotation] */
  2400. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2401. /* [annotation] */
  2402. _Out_ BOOL *pEnabled,
  2403. /* [annotation] */
  2404. _Out_ SIZE *pSize);
  2405. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputStereoMode )(
  2406. ID3D11VideoContext1 * This,
  2407. /* [annotation] */
  2408. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2409. /* [annotation] */
  2410. _Out_ BOOL *pEnabled);
  2411. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetOutputExtension )(
  2412. ID3D11VideoContext1 * This,
  2413. /* [annotation] */
  2414. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2415. /* [annotation] */
  2416. _In_ const GUID *pExtensionGuid,
  2417. /* [annotation] */
  2418. _In_ UINT DataSize,
  2419. /* [annotation] */
  2420. _Out_writes_bytes_(DataSize) void *pData);
  2421. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFrameFormat )(
  2422. ID3D11VideoContext1 * This,
  2423. /* [annotation] */
  2424. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2425. /* [annotation] */
  2426. _In_ UINT StreamIndex,
  2427. /* [annotation] */
  2428. _In_ D3D11_VIDEO_FRAME_FORMAT FrameFormat);
  2429. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace )(
  2430. ID3D11VideoContext1 * This,
  2431. /* [annotation] */
  2432. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2433. /* [annotation] */
  2434. _In_ UINT StreamIndex,
  2435. /* [annotation] */
  2436. _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  2437. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamOutputRate )(
  2438. ID3D11VideoContext1 * This,
  2439. /* [annotation] */
  2440. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2441. /* [annotation] */
  2442. _In_ UINT StreamIndex,
  2443. /* [annotation] */
  2444. _In_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate,
  2445. /* [annotation] */
  2446. _In_ BOOL RepeatFrame,
  2447. /* [annotation] */
  2448. _In_opt_ const DXGI_RATIONAL *pCustomRate);
  2449. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamSourceRect )(
  2450. ID3D11VideoContext1 * This,
  2451. /* [annotation] */
  2452. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2453. /* [annotation] */
  2454. _In_ UINT StreamIndex,
  2455. /* [annotation] */
  2456. _In_ BOOL Enable,
  2457. /* [annotation] */
  2458. _In_opt_ const RECT *pRect);
  2459. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamDestRect )(
  2460. ID3D11VideoContext1 * This,
  2461. /* [annotation] */
  2462. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2463. /* [annotation] */
  2464. _In_ UINT StreamIndex,
  2465. /* [annotation] */
  2466. _In_ BOOL Enable,
  2467. /* [annotation] */
  2468. _In_opt_ const RECT *pRect);
  2469. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAlpha )(
  2470. ID3D11VideoContext1 * This,
  2471. /* [annotation] */
  2472. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2473. /* [annotation] */
  2474. _In_ UINT StreamIndex,
  2475. /* [annotation] */
  2476. _In_ BOOL Enable,
  2477. /* [annotation] */
  2478. _In_ FLOAT Alpha);
  2479. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPalette )(
  2480. ID3D11VideoContext1 * This,
  2481. /* [annotation] */
  2482. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2483. /* [annotation] */
  2484. _In_ UINT StreamIndex,
  2485. /* [annotation] */
  2486. _In_ UINT Count,
  2487. /* [annotation] */
  2488. _In_reads_opt_(Count) const UINT *pEntries);
  2489. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPixelAspectRatio )(
  2490. ID3D11VideoContext1 * This,
  2491. /* [annotation] */
  2492. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2493. /* [annotation] */
  2494. _In_ UINT StreamIndex,
  2495. /* [annotation] */
  2496. _In_ BOOL Enable,
  2497. /* [annotation] */
  2498. _In_opt_ const DXGI_RATIONAL *pSourceAspectRatio,
  2499. /* [annotation] */
  2500. _In_opt_ const DXGI_RATIONAL *pDestinationAspectRatio);
  2501. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamLumaKey )(
  2502. ID3D11VideoContext1 * This,
  2503. /* [annotation] */
  2504. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2505. /* [annotation] */
  2506. _In_ UINT StreamIndex,
  2507. /* [annotation] */
  2508. _In_ BOOL Enable,
  2509. /* [annotation] */
  2510. _In_ FLOAT Lower,
  2511. /* [annotation] */
  2512. _In_ FLOAT Upper);
  2513. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamStereoFormat )(
  2514. ID3D11VideoContext1 * This,
  2515. /* [annotation] */
  2516. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2517. /* [annotation] */
  2518. _In_ UINT StreamIndex,
  2519. /* [annotation] */
  2520. _In_ BOOL Enable,
  2521. /* [annotation] */
  2522. _In_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format,
  2523. /* [annotation] */
  2524. _In_ BOOL LeftViewFrame0,
  2525. /* [annotation] */
  2526. _In_ BOOL BaseViewFrame0,
  2527. /* [annotation] */
  2528. _In_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode,
  2529. /* [annotation] */
  2530. _In_ int MonoOffset);
  2531. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAutoProcessingMode )(
  2532. ID3D11VideoContext1 * This,
  2533. /* [annotation] */
  2534. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2535. /* [annotation] */
  2536. _In_ UINT StreamIndex,
  2537. /* [annotation] */
  2538. _In_ BOOL Enable);
  2539. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFilter )(
  2540. ID3D11VideoContext1 * This,
  2541. /* [annotation] */
  2542. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2543. /* [annotation] */
  2544. _In_ UINT StreamIndex,
  2545. /* [annotation] */
  2546. _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter,
  2547. /* [annotation] */
  2548. _In_ BOOL Enable,
  2549. /* [annotation] */
  2550. _In_ int Level);
  2551. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetStreamExtension )(
  2552. ID3D11VideoContext1 * This,
  2553. /* [annotation] */
  2554. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2555. /* [annotation] */
  2556. _In_ UINT StreamIndex,
  2557. /* [annotation] */
  2558. _In_ const GUID *pExtensionGuid,
  2559. /* [annotation] */
  2560. _In_ UINT DataSize,
  2561. /* [annotation] */
  2562. _In_ void *pData);
  2563. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFrameFormat )(
  2564. ID3D11VideoContext1 * This,
  2565. /* [annotation] */
  2566. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2567. /* [annotation] */
  2568. _In_ UINT StreamIndex,
  2569. /* [annotation] */
  2570. _Out_ D3D11_VIDEO_FRAME_FORMAT *pFrameFormat);
  2571. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace )(
  2572. ID3D11VideoContext1 * This,
  2573. /* [annotation] */
  2574. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2575. /* [annotation] */
  2576. _In_ UINT StreamIndex,
  2577. /* [annotation] */
  2578. _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace);
  2579. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamOutputRate )(
  2580. ID3D11VideoContext1 * This,
  2581. /* [annotation] */
  2582. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2583. /* [annotation] */
  2584. _In_ UINT StreamIndex,
  2585. /* [annotation] */
  2586. _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *pOutputRate,
  2587. /* [annotation] */
  2588. _Out_ BOOL *pRepeatFrame,
  2589. /* [annotation] */
  2590. _Out_ DXGI_RATIONAL *pCustomRate);
  2591. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamSourceRect )(
  2592. ID3D11VideoContext1 * This,
  2593. /* [annotation] */
  2594. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2595. /* [annotation] */
  2596. _In_ UINT StreamIndex,
  2597. /* [annotation] */
  2598. _Out_ BOOL *pEnabled,
  2599. /* [annotation] */
  2600. _Out_ RECT *pRect);
  2601. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamDestRect )(
  2602. ID3D11VideoContext1 * This,
  2603. /* [annotation] */
  2604. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2605. /* [annotation] */
  2606. _In_ UINT StreamIndex,
  2607. /* [annotation] */
  2608. _Out_ BOOL *pEnabled,
  2609. /* [annotation] */
  2610. _Out_ RECT *pRect);
  2611. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAlpha )(
  2612. ID3D11VideoContext1 * This,
  2613. /* [annotation] */
  2614. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2615. /* [annotation] */
  2616. _In_ UINT StreamIndex,
  2617. /* [annotation] */
  2618. _Out_ BOOL *pEnabled,
  2619. /* [annotation] */
  2620. _Out_ FLOAT *pAlpha);
  2621. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPalette )(
  2622. ID3D11VideoContext1 * This,
  2623. /* [annotation] */
  2624. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2625. /* [annotation] */
  2626. _In_ UINT StreamIndex,
  2627. /* [annotation] */
  2628. _In_ UINT Count,
  2629. /* [annotation] */
  2630. _Out_writes_(Count) UINT *pEntries);
  2631. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPixelAspectRatio )(
  2632. ID3D11VideoContext1 * This,
  2633. /* [annotation] */
  2634. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2635. /* [annotation] */
  2636. _In_ UINT StreamIndex,
  2637. /* [annotation] */
  2638. _Out_ BOOL *pEnabled,
  2639. /* [annotation] */
  2640. _Out_ DXGI_RATIONAL *pSourceAspectRatio,
  2641. /* [annotation] */
  2642. _Out_ DXGI_RATIONAL *pDestinationAspectRatio);
  2643. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamLumaKey )(
  2644. ID3D11VideoContext1 * This,
  2645. /* [annotation] */
  2646. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2647. /* [annotation] */
  2648. _In_ UINT StreamIndex,
  2649. /* [annotation] */
  2650. _Out_ BOOL *pEnabled,
  2651. /* [annotation] */
  2652. _Out_ FLOAT *pLower,
  2653. /* [annotation] */
  2654. _Out_ FLOAT *pUpper);
  2655. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamStereoFormat )(
  2656. ID3D11VideoContext1 * This,
  2657. /* [annotation] */
  2658. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2659. /* [annotation] */
  2660. _In_ UINT StreamIndex,
  2661. /* [annotation] */
  2662. _Out_ BOOL *pEnable,
  2663. /* [annotation] */
  2664. _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *pFormat,
  2665. /* [annotation] */
  2666. _Out_ BOOL *pLeftViewFrame0,
  2667. /* [annotation] */
  2668. _Out_ BOOL *pBaseViewFrame0,
  2669. /* [annotation] */
  2670. _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *pFlipMode,
  2671. /* [annotation] */
  2672. _Out_ int *MonoOffset);
  2673. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAutoProcessingMode )(
  2674. ID3D11VideoContext1 * This,
  2675. /* [annotation] */
  2676. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2677. /* [annotation] */
  2678. _In_ UINT StreamIndex,
  2679. /* [annotation] */
  2680. _Out_ BOOL *pEnabled);
  2681. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFilter )(
  2682. ID3D11VideoContext1 * This,
  2683. /* [annotation] */
  2684. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2685. /* [annotation] */
  2686. _In_ UINT StreamIndex,
  2687. /* [annotation] */
  2688. _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter,
  2689. /* [annotation] */
  2690. _Out_ BOOL *pEnabled,
  2691. /* [annotation] */
  2692. _Out_ int *pLevel);
  2693. APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetStreamExtension )(
  2694. ID3D11VideoContext1 * This,
  2695. /* [annotation] */
  2696. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2697. /* [annotation] */
  2698. _In_ UINT StreamIndex,
  2699. /* [annotation] */
  2700. _In_ const GUID *pExtensionGuid,
  2701. /* [annotation] */
  2702. _In_ UINT DataSize,
  2703. /* [annotation] */
  2704. _Out_writes_bytes_(DataSize) void *pData);
  2705. HRESULT ( STDMETHODCALLTYPE *VideoProcessorBlt )(
  2706. ID3D11VideoContext1 * This,
  2707. /* [annotation] */
  2708. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2709. /* [annotation] */
  2710. _In_ ID3D11VideoProcessorOutputView *pView,
  2711. /* [annotation] */
  2712. _In_ UINT OutputFrame,
  2713. /* [annotation] */
  2714. _In_ UINT StreamCount,
  2715. /* [annotation] */
  2716. _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM *pStreams);
  2717. HRESULT ( STDMETHODCALLTYPE *NegotiateCryptoSessionKeyExchange )(
  2718. ID3D11VideoContext1 * This,
  2719. /* [annotation] */
  2720. _In_ ID3D11CryptoSession *pCryptoSession,
  2721. /* [annotation] */
  2722. _In_ UINT DataSize,
  2723. /* [annotation] */
  2724. _Inout_updates_bytes_(DataSize) void *pData);
  2725. void ( STDMETHODCALLTYPE *EncryptionBlt )(
  2726. ID3D11VideoContext1 * This,
  2727. /* [annotation] */
  2728. _In_ ID3D11CryptoSession *pCryptoSession,
  2729. /* [annotation] */
  2730. _In_ ID3D11Texture2D *pSrcSurface,
  2731. /* [annotation] */
  2732. _In_ ID3D11Texture2D *pDstSurface,
  2733. /* [annotation] */
  2734. _In_ UINT IVSize,
  2735. /* [annotation] */
  2736. _Inout_opt_bytecount_(IVSize) void *pIV);
  2737. void ( STDMETHODCALLTYPE *DecryptionBlt )(
  2738. ID3D11VideoContext1 * This,
  2739. /* [annotation] */
  2740. _In_ ID3D11CryptoSession *pCryptoSession,
  2741. /* [annotation] */
  2742. _In_ ID3D11Texture2D *pSrcSurface,
  2743. /* [annotation] */
  2744. _In_ ID3D11Texture2D *pDstSurface,
  2745. /* [annotation] */
  2746. _In_opt_ D3D11_ENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo,
  2747. /* [annotation] */
  2748. _In_ UINT ContentKeySize,
  2749. /* [annotation] */
  2750. _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey,
  2751. /* [annotation] */
  2752. _In_ UINT IVSize,
  2753. /* [annotation] */
  2754. _Inout_opt_bytecount_(IVSize) void *pIV);
  2755. void ( STDMETHODCALLTYPE *StartSessionKeyRefresh )(
  2756. ID3D11VideoContext1 * This,
  2757. /* [annotation] */
  2758. _In_ ID3D11CryptoSession *pCryptoSession,
  2759. /* [annotation] */
  2760. _In_ UINT RandomNumberSize,
  2761. /* [annotation] */
  2762. _Out_writes_bytes_(RandomNumberSize) void *pRandomNumber);
  2763. void ( STDMETHODCALLTYPE *FinishSessionKeyRefresh )(
  2764. ID3D11VideoContext1 * This,
  2765. /* [annotation] */
  2766. _In_ ID3D11CryptoSession *pCryptoSession);
  2767. HRESULT ( STDMETHODCALLTYPE *GetEncryptionBltKey )(
  2768. ID3D11VideoContext1 * This,
  2769. /* [annotation] */
  2770. _In_ ID3D11CryptoSession *pCryptoSession,
  2771. /* [annotation] */
  2772. _In_ UINT KeySize,
  2773. /* [annotation] */
  2774. _Out_writes_bytes_(KeySize) void *pReadbackKey);
  2775. HRESULT ( STDMETHODCALLTYPE *NegotiateAuthenticatedChannelKeyExchange )(
  2776. ID3D11VideoContext1 * This,
  2777. /* [annotation] */
  2778. _In_ ID3D11AuthenticatedChannel *pChannel,
  2779. /* [annotation] */
  2780. _In_ UINT DataSize,
  2781. /* [annotation] */
  2782. _Inout_updates_bytes_(DataSize) void *pData);
  2783. HRESULT ( STDMETHODCALLTYPE *QueryAuthenticatedChannel )(
  2784. ID3D11VideoContext1 * This,
  2785. /* [annotation] */
  2786. _In_ ID3D11AuthenticatedChannel *pChannel,
  2787. /* [annotation] */
  2788. _In_ UINT InputSize,
  2789. /* [annotation] */
  2790. _In_reads_bytes_(InputSize) const void *pInput,
  2791. /* [annotation] */
  2792. _In_ UINT OutputSize,
  2793. /* [annotation] */
  2794. _Out_writes_bytes_(OutputSize) void *pOutput);
  2795. HRESULT ( STDMETHODCALLTYPE *ConfigureAuthenticatedChannel )(
  2796. ID3D11VideoContext1 * This,
  2797. /* [annotation] */
  2798. _In_ ID3D11AuthenticatedChannel *pChannel,
  2799. /* [annotation] */
  2800. _In_ UINT InputSize,
  2801. /* [annotation] */
  2802. _In_reads_bytes_(InputSize) const void *pInput,
  2803. /* [annotation] */
  2804. _Out_ D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *pOutput);
  2805. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamRotation )(
  2806. ID3D11VideoContext1 * This,
  2807. /* [annotation] */
  2808. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2809. /* [annotation] */
  2810. _In_ UINT StreamIndex,
  2811. /* [annotation] */
  2812. _In_ BOOL Enable,
  2813. /* [annotation] */
  2814. _In_ D3D11_VIDEO_PROCESSOR_ROTATION Rotation);
  2815. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamRotation )(
  2816. ID3D11VideoContext1 * This,
  2817. /* [annotation] */
  2818. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2819. /* [annotation] */
  2820. _In_ UINT StreamIndex,
  2821. /* [annotation] */
  2822. _Out_ BOOL *pEnable,
  2823. /* [annotation] */
  2824. _Out_ D3D11_VIDEO_PROCESSOR_ROTATION *pRotation);
  2825. HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers1 )(
  2826. ID3D11VideoContext1 * This,
  2827. /* [annotation] */
  2828. _In_ ID3D11VideoDecoder *pDecoder,
  2829. /* [annotation] */
  2830. _In_ UINT NumBuffers,
  2831. /* [annotation] */
  2832. _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC1 *pBufferDesc);
  2833. HRESULT ( STDMETHODCALLTYPE *GetDataForNewHardwareKey )(
  2834. ID3D11VideoContext1 * This,
  2835. /* [annotation] */
  2836. _In_ ID3D11CryptoSession *pCryptoSession,
  2837. /* [annotation] */
  2838. _In_ UINT PrivateInputSize,
  2839. /* [annotation] */
  2840. _In_reads_(PrivateInputSize) const void *pPrivatInputData,
  2841. /* [annotation] */
  2842. _Out_ UINT64 *pPrivateOutputData);
  2843. HRESULT ( STDMETHODCALLTYPE *CheckCryptoSessionStatus )(
  2844. ID3D11VideoContext1 * This,
  2845. /* [annotation] */
  2846. _In_ ID3D11CryptoSession *pCryptoSession,
  2847. /* [annotation] */
  2848. _Out_ D3D11_CRYPTO_SESSION_STATUS *pStatus);
  2849. HRESULT ( STDMETHODCALLTYPE *DecoderEnableDownsampling )(
  2850. ID3D11VideoContext1 * This,
  2851. /* [annotation] */
  2852. _In_ ID3D11VideoDecoder *pDecoder,
  2853. /* [annotation] */
  2854. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  2855. /* [annotation] */
  2856. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc,
  2857. /* [annotation] */
  2858. _In_ UINT ReferenceFrameCount);
  2859. HRESULT ( STDMETHODCALLTYPE *DecoderUpdateDownsampling )(
  2860. ID3D11VideoContext1 * This,
  2861. /* [annotation] */
  2862. _In_ ID3D11VideoDecoder *pDecoder,
  2863. /* [annotation] */
  2864. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc);
  2865. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace1 )(
  2866. ID3D11VideoContext1 * This,
  2867. /* [annotation] */
  2868. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2869. /* [annotation] */
  2870. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace);
  2871. void ( STDMETHODCALLTYPE *VideoProcessorSetOutputShaderUsage )(
  2872. ID3D11VideoContext1 * This,
  2873. /* [annotation] */
  2874. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2875. /* [annotation] */
  2876. _In_ BOOL ShaderUsage);
  2877. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace1 )(
  2878. ID3D11VideoContext1 * This,
  2879. /* [annotation] */
  2880. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2881. /* [annotation] */
  2882. _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace);
  2883. void ( STDMETHODCALLTYPE *VideoProcessorGetOutputShaderUsage )(
  2884. ID3D11VideoContext1 * This,
  2885. /* [annotation] */
  2886. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2887. /* [annotation] */
  2888. _Out_ BOOL *pShaderUsage);
  2889. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace1 )(
  2890. ID3D11VideoContext1 * This,
  2891. /* [annotation] */
  2892. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2893. /* [annotation] */
  2894. _In_ UINT StreamIndex,
  2895. /* [annotation] */
  2896. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace);
  2897. void ( STDMETHODCALLTYPE *VideoProcessorSetStreamMirror )(
  2898. ID3D11VideoContext1 * This,
  2899. /* [annotation] */
  2900. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2901. /* [annotation] */
  2902. _In_ UINT StreamIndex,
  2903. /* [annotation] */
  2904. _In_ BOOL Enable,
  2905. /* [annotation] */
  2906. _In_ BOOL FlipHorizontal,
  2907. /* [annotation] */
  2908. _In_ BOOL FlipVertical);
  2909. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace1 )(
  2910. ID3D11VideoContext1 * This,
  2911. /* [annotation] */
  2912. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2913. /* [annotation] */
  2914. _In_ UINT StreamIndex,
  2915. /* [annotation] */
  2916. _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace);
  2917. void ( STDMETHODCALLTYPE *VideoProcessorGetStreamMirror )(
  2918. ID3D11VideoContext1 * This,
  2919. /* [annotation] */
  2920. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2921. /* [annotation] */
  2922. _In_ UINT StreamIndex,
  2923. /* [annotation] */
  2924. _Out_ BOOL *pEnable,
  2925. /* [annotation] */
  2926. _Out_ BOOL *pFlipHorizontal,
  2927. /* [annotation] */
  2928. _Out_ BOOL *pFlipVertical);
  2929. HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetBehaviorHints )(
  2930. ID3D11VideoContext1 * This,
  2931. /* [annotation] */
  2932. _In_ ID3D11VideoProcessor *pVideoProcessor,
  2933. /* [annotation] */
  2934. _In_ UINT OutputWidth,
  2935. /* [annotation] */
  2936. _In_ UINT OutputHeight,
  2937. /* [annotation] */
  2938. _In_ DXGI_FORMAT OutputFormat,
  2939. /* [annotation] */
  2940. _In_ UINT StreamCount,
  2941. /* [annotation] */
  2942. _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT *pStreams,
  2943. /* [annotation] */
  2944. _Out_ UINT *pBehaviorHints);
  2945. END_INTERFACE
  2946. } ID3D11VideoContext1Vtbl;
  2947. interface ID3D11VideoContext1
  2948. {
  2949. CONST_VTBL struct ID3D11VideoContext1Vtbl *lpVtbl;
  2950. };
  2951. #ifdef COBJMACROS
  2952. #define ID3D11VideoContext1_QueryInterface(This,riid,ppvObject) \
  2953. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  2954. #define ID3D11VideoContext1_AddRef(This) \
  2955. ( (This)->lpVtbl -> AddRef(This) )
  2956. #define ID3D11VideoContext1_Release(This) \
  2957. ( (This)->lpVtbl -> Release(This) )
  2958. #define ID3D11VideoContext1_GetDevice(This,ppDevice) \
  2959. ( (This)->lpVtbl -> GetDevice(This,ppDevice) )
  2960. #define ID3D11VideoContext1_GetPrivateData(This,guid,pDataSize,pData) \
  2961. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  2962. #define ID3D11VideoContext1_SetPrivateData(This,guid,DataSize,pData) \
  2963. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  2964. #define ID3D11VideoContext1_SetPrivateDataInterface(This,guid,pData) \
  2965. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  2966. #define ID3D11VideoContext1_GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) \
  2967. ( (This)->lpVtbl -> GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) )
  2968. #define ID3D11VideoContext1_ReleaseDecoderBuffer(This,pDecoder,Type) \
  2969. ( (This)->lpVtbl -> ReleaseDecoderBuffer(This,pDecoder,Type) )
  2970. #define ID3D11VideoContext1_DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) \
  2971. ( (This)->lpVtbl -> DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) )
  2972. #define ID3D11VideoContext1_DecoderEndFrame(This,pDecoder) \
  2973. ( (This)->lpVtbl -> DecoderEndFrame(This,pDecoder) )
  2974. #define ID3D11VideoContext1_SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) \
  2975. ( (This)->lpVtbl -> SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) )
  2976. #define ID3D11VideoContext1_DecoderExtension(This,pDecoder,pExtensionData) \
  2977. ( (This)->lpVtbl -> DecoderExtension(This,pDecoder,pExtensionData) )
  2978. #define ID3D11VideoContext1_VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) \
  2979. ( (This)->lpVtbl -> VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) )
  2980. #define ID3D11VideoContext1_VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) \
  2981. ( (This)->lpVtbl -> VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) )
  2982. #define ID3D11VideoContext1_VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) \
  2983. ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) )
  2984. #define ID3D11VideoContext1_VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) \
  2985. ( (This)->lpVtbl -> VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) )
  2986. #define ID3D11VideoContext1_VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) \
  2987. ( (This)->lpVtbl -> VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) )
  2988. #define ID3D11VideoContext1_VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) \
  2989. ( (This)->lpVtbl -> VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) )
  2990. #define ID3D11VideoContext1_VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \
  2991. ( (This)->lpVtbl -> VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) )
  2992. #define ID3D11VideoContext1_VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) \
  2993. ( (This)->lpVtbl -> VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) )
  2994. #define ID3D11VideoContext1_VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) \
  2995. ( (This)->lpVtbl -> VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) )
  2996. #define ID3D11VideoContext1_VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) \
  2997. ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) )
  2998. #define ID3D11VideoContext1_VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) \
  2999. ( (This)->lpVtbl -> VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) )
  3000. #define ID3D11VideoContext1_VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) \
  3001. ( (This)->lpVtbl -> VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) )
  3002. #define ID3D11VideoContext1_VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) \
  3003. ( (This)->lpVtbl -> VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) )
  3004. #define ID3D11VideoContext1_VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \
  3005. ( (This)->lpVtbl -> VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) )
  3006. #define ID3D11VideoContext1_VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) \
  3007. ( (This)->lpVtbl -> VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) )
  3008. #define ID3D11VideoContext1_VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \
  3009. ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) )
  3010. #define ID3D11VideoContext1_VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) \
  3011. ( (This)->lpVtbl -> VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) )
  3012. #define ID3D11VideoContext1_VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \
  3013. ( (This)->lpVtbl -> VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) )
  3014. #define ID3D11VideoContext1_VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \
  3015. ( (This)->lpVtbl -> VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) )
  3016. #define ID3D11VideoContext1_VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) \
  3017. ( (This)->lpVtbl -> VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) )
  3018. #define ID3D11VideoContext1_VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \
  3019. ( (This)->lpVtbl -> VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) )
  3020. #define ID3D11VideoContext1_VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) \
  3021. ( (This)->lpVtbl -> VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) )
  3022. #define ID3D11VideoContext1_VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) \
  3023. ( (This)->lpVtbl -> VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) )
  3024. #define ID3D11VideoContext1_VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) \
  3025. ( (This)->lpVtbl -> VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) )
  3026. #define ID3D11VideoContext1_VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) \
  3027. ( (This)->lpVtbl -> VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) )
  3028. #define ID3D11VideoContext1_VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) \
  3029. ( (This)->lpVtbl -> VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) )
  3030. #define ID3D11VideoContext1_VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \
  3031. ( (This)->lpVtbl -> VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) )
  3032. #define ID3D11VideoContext1_VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) \
  3033. ( (This)->lpVtbl -> VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) )
  3034. #define ID3D11VideoContext1_VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \
  3035. ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) )
  3036. #define ID3D11VideoContext1_VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) \
  3037. ( (This)->lpVtbl -> VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) )
  3038. #define ID3D11VideoContext1_VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \
  3039. ( (This)->lpVtbl -> VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) )
  3040. #define ID3D11VideoContext1_VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \
  3041. ( (This)->lpVtbl -> VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) )
  3042. #define ID3D11VideoContext1_VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) \
  3043. ( (This)->lpVtbl -> VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) )
  3044. #define ID3D11VideoContext1_VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \
  3045. ( (This)->lpVtbl -> VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) )
  3046. #define ID3D11VideoContext1_VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) \
  3047. ( (This)->lpVtbl -> VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) )
  3048. #define ID3D11VideoContext1_VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) \
  3049. ( (This)->lpVtbl -> VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) )
  3050. #define ID3D11VideoContext1_VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) \
  3051. ( (This)->lpVtbl -> VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) )
  3052. #define ID3D11VideoContext1_VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) \
  3053. ( (This)->lpVtbl -> VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) )
  3054. #define ID3D11VideoContext1_VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) \
  3055. ( (This)->lpVtbl -> VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) )
  3056. #define ID3D11VideoContext1_VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \
  3057. ( (This)->lpVtbl -> VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) )
  3058. #define ID3D11VideoContext1_VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) \
  3059. ( (This)->lpVtbl -> VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) )
  3060. #define ID3D11VideoContext1_NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) \
  3061. ( (This)->lpVtbl -> NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) )
  3062. #define ID3D11VideoContext1_EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) \
  3063. ( (This)->lpVtbl -> EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) )
  3064. #define ID3D11VideoContext1_DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) \
  3065. ( (This)->lpVtbl -> DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) )
  3066. #define ID3D11VideoContext1_StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) \
  3067. ( (This)->lpVtbl -> StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) )
  3068. #define ID3D11VideoContext1_FinishSessionKeyRefresh(This,pCryptoSession) \
  3069. ( (This)->lpVtbl -> FinishSessionKeyRefresh(This,pCryptoSession) )
  3070. #define ID3D11VideoContext1_GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) \
  3071. ( (This)->lpVtbl -> GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) )
  3072. #define ID3D11VideoContext1_NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) \
  3073. ( (This)->lpVtbl -> NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) )
  3074. #define ID3D11VideoContext1_QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) \
  3075. ( (This)->lpVtbl -> QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) )
  3076. #define ID3D11VideoContext1_ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) \
  3077. ( (This)->lpVtbl -> ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) )
  3078. #define ID3D11VideoContext1_VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) \
  3079. ( (This)->lpVtbl -> VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) )
  3080. #define ID3D11VideoContext1_VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) \
  3081. ( (This)->lpVtbl -> VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) )
  3082. #define ID3D11VideoContext1_SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) \
  3083. ( (This)->lpVtbl -> SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) )
  3084. #define ID3D11VideoContext1_GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) \
  3085. ( (This)->lpVtbl -> GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) )
  3086. #define ID3D11VideoContext1_CheckCryptoSessionStatus(This,pCryptoSession,pStatus) \
  3087. ( (This)->lpVtbl -> CheckCryptoSessionStatus(This,pCryptoSession,pStatus) )
  3088. #define ID3D11VideoContext1_DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) \
  3089. ( (This)->lpVtbl -> DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) )
  3090. #define ID3D11VideoContext1_DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) \
  3091. ( (This)->lpVtbl -> DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) )
  3092. #define ID3D11VideoContext1_VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) \
  3093. ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) )
  3094. #define ID3D11VideoContext1_VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) \
  3095. ( (This)->lpVtbl -> VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) )
  3096. #define ID3D11VideoContext1_VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) \
  3097. ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) )
  3098. #define ID3D11VideoContext1_VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) \
  3099. ( (This)->lpVtbl -> VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) )
  3100. #define ID3D11VideoContext1_VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) \
  3101. ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) )
  3102. #define ID3D11VideoContext1_VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) \
  3103. ( (This)->lpVtbl -> VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) )
  3104. #define ID3D11VideoContext1_VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) \
  3105. ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) )
  3106. #define ID3D11VideoContext1_VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) \
  3107. ( (This)->lpVtbl -> VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) )
  3108. #define ID3D11VideoContext1_VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) \
  3109. ( (This)->lpVtbl -> VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) )
  3110. #endif /* COBJMACROS */
  3111. #endif /* C style interface */
  3112. #endif /* __ID3D11VideoContext1_INTERFACE_DEFINED__ */
  3113. #ifndef __ID3D11VideoDevice1_INTERFACE_DEFINED__
  3114. #define __ID3D11VideoDevice1_INTERFACE_DEFINED__
  3115. /* interface ID3D11VideoDevice1 */
  3116. /* [unique][local][object][uuid] */
  3117. EXTERN_C const IID IID_ID3D11VideoDevice1;
  3118. #if defined(__cplusplus) && !defined(CINTERFACE)
  3119. MIDL_INTERFACE("29DA1D51-1321-4454-804B-F5FC9F861F0F")
  3120. ID3D11VideoDevice1 : public ID3D11VideoDevice
  3121. {
  3122. public:
  3123. virtual HRESULT STDMETHODCALLTYPE GetCryptoSessionPrivateDataSize(
  3124. /* [annotation] */
  3125. _In_ const GUID *pCryptoType,
  3126. /* [annotation] */
  3127. _In_opt_ const GUID *pDecoderProfile,
  3128. /* [annotation] */
  3129. _In_ const GUID *pKeyExchangeType,
  3130. /* [annotation] */
  3131. _Out_ UINT *pPrivateInputSize,
  3132. /* [annotation] */
  3133. _Out_ UINT *pPrivateOutputSize) = 0;
  3134. virtual HRESULT STDMETHODCALLTYPE GetVideoDecoderCaps(
  3135. /* [annotation] */
  3136. _In_ const GUID *pDecoderProfile,
  3137. /* [annotation] */
  3138. _In_ UINT SampleWidth,
  3139. /* [annotation] */
  3140. _In_ UINT SampleHeight,
  3141. /* [annotation] */
  3142. _In_ const DXGI_RATIONAL *pFrameRate,
  3143. /* [annotation] */
  3144. _In_ UINT BitRate,
  3145. /* [annotation] */
  3146. _In_opt_ const GUID *pCryptoType,
  3147. /* [annotation] */
  3148. _Out_ UINT *pDecoderCaps) = 0;
  3149. virtual HRESULT STDMETHODCALLTYPE CheckVideoDecoderDownsampling(
  3150. /* [annotation] */
  3151. _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc,
  3152. /* [annotation] */
  3153. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  3154. /* [annotation] */
  3155. _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig,
  3156. /* [annotation] */
  3157. _In_ const DXGI_RATIONAL *pFrameRate,
  3158. /* [annotation] */
  3159. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc,
  3160. /* [annotation] */
  3161. _Out_ BOOL *pSupported,
  3162. /* [annotation] */
  3163. _Out_ BOOL *pRealTimeHint) = 0;
  3164. virtual HRESULT STDMETHODCALLTYPE RecommendVideoDecoderDownsampleParameters(
  3165. /* [annotation] */
  3166. _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc,
  3167. /* [annotation] */
  3168. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  3169. /* [annotation] */
  3170. _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig,
  3171. /* [annotation] */
  3172. _In_ const DXGI_RATIONAL *pFrameRate,
  3173. /* [annotation] */
  3174. _Out_ D3D11_VIDEO_SAMPLE_DESC *pRecommendedOutputDesc) = 0;
  3175. };
  3176. #else /* C style interface */
  3177. typedef struct ID3D11VideoDevice1Vtbl
  3178. {
  3179. BEGIN_INTERFACE
  3180. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3181. ID3D11VideoDevice1 * This,
  3182. /* [in] */ REFIID riid,
  3183. /* [annotation][iid_is][out] */
  3184. _COM_Outptr_ void **ppvObject);
  3185. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3186. ID3D11VideoDevice1 * This);
  3187. ULONG ( STDMETHODCALLTYPE *Release )(
  3188. ID3D11VideoDevice1 * This);
  3189. HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )(
  3190. ID3D11VideoDevice1 * This,
  3191. /* [annotation] */
  3192. _In_ const D3D11_VIDEO_DECODER_DESC *pVideoDesc,
  3193. /* [annotation] */
  3194. _In_ const D3D11_VIDEO_DECODER_CONFIG *pConfig,
  3195. /* [annotation] */
  3196. _COM_Outptr_ ID3D11VideoDecoder **ppDecoder);
  3197. HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )(
  3198. ID3D11VideoDevice1 * This,
  3199. /* [annotation] */
  3200. _In_ ID3D11VideoProcessorEnumerator *pEnum,
  3201. /* [annotation] */
  3202. _In_ UINT RateConversionIndex,
  3203. /* [annotation] */
  3204. _COM_Outptr_ ID3D11VideoProcessor **ppVideoProcessor);
  3205. HRESULT ( STDMETHODCALLTYPE *CreateAuthenticatedChannel )(
  3206. ID3D11VideoDevice1 * This,
  3207. /* [annotation] */
  3208. _In_ D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType,
  3209. /* [annotation] */
  3210. _COM_Outptr_ ID3D11AuthenticatedChannel **ppAuthenticatedChannel);
  3211. HRESULT ( STDMETHODCALLTYPE *CreateCryptoSession )(
  3212. ID3D11VideoDevice1 * This,
  3213. /* [annotation] */
  3214. _In_ const GUID *pCryptoType,
  3215. /* [annotation] */
  3216. _In_opt_ const GUID *pDecoderProfile,
  3217. /* [annotation] */
  3218. _In_ const GUID *pKeyExchangeType,
  3219. /* [annotation] */
  3220. _COM_Outptr_ ID3D11CryptoSession **ppCryptoSession);
  3221. HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderOutputView )(
  3222. ID3D11VideoDevice1 * This,
  3223. /* [annotation] */
  3224. _In_ ID3D11Resource *pResource,
  3225. /* [annotation] */
  3226. _In_ const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc,
  3227. /* [annotation] */
  3228. _COM_Outptr_opt_ ID3D11VideoDecoderOutputView **ppVDOVView);
  3229. HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorInputView )(
  3230. ID3D11VideoDevice1 * This,
  3231. /* [annotation] */
  3232. _In_ ID3D11Resource *pResource,
  3233. /* [annotation] */
  3234. _In_ ID3D11VideoProcessorEnumerator *pEnum,
  3235. /* [annotation] */
  3236. _In_ const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc,
  3237. /* [annotation] */
  3238. _COM_Outptr_opt_ ID3D11VideoProcessorInputView **ppVPIView);
  3239. HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorOutputView )(
  3240. ID3D11VideoDevice1 * This,
  3241. /* [annotation] */
  3242. _In_ ID3D11Resource *pResource,
  3243. /* [annotation] */
  3244. _In_ ID3D11VideoProcessorEnumerator *pEnum,
  3245. /* [annotation] */
  3246. _In_ const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
  3247. /* [annotation] */
  3248. _COM_Outptr_opt_ ID3D11VideoProcessorOutputView **ppVPOView);
  3249. HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorEnumerator )(
  3250. ID3D11VideoDevice1 * This,
  3251. /* [annotation] */
  3252. _In_ const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc,
  3253. /* [annotation] */
  3254. _COM_Outptr_ ID3D11VideoProcessorEnumerator **ppEnum);
  3255. UINT ( STDMETHODCALLTYPE *GetVideoDecoderProfileCount )(
  3256. ID3D11VideoDevice1 * This);
  3257. HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderProfile )(
  3258. ID3D11VideoDevice1 * This,
  3259. /* [annotation] */
  3260. _In_ UINT Index,
  3261. /* [annotation] */
  3262. _Out_ GUID *pDecoderProfile);
  3263. HRESULT ( STDMETHODCALLTYPE *CheckVideoDecoderFormat )(
  3264. ID3D11VideoDevice1 * This,
  3265. /* [annotation] */
  3266. _In_ const GUID *pDecoderProfile,
  3267. /* [annotation] */
  3268. _In_ DXGI_FORMAT Format,
  3269. /* [annotation] */
  3270. _Out_ BOOL *pSupported);
  3271. HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderConfigCount )(
  3272. ID3D11VideoDevice1 * This,
  3273. /* [annotation] */
  3274. _In_ const D3D11_VIDEO_DECODER_DESC *pDesc,
  3275. /* [annotation] */
  3276. _Out_ UINT *pCount);
  3277. HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderConfig )(
  3278. ID3D11VideoDevice1 * This,
  3279. /* [annotation] */
  3280. _In_ const D3D11_VIDEO_DECODER_DESC *pDesc,
  3281. /* [annotation] */
  3282. _In_ UINT Index,
  3283. /* [annotation] */
  3284. _Out_ D3D11_VIDEO_DECODER_CONFIG *pConfig);
  3285. HRESULT ( STDMETHODCALLTYPE *GetContentProtectionCaps )(
  3286. ID3D11VideoDevice1 * This,
  3287. /* [annotation] */
  3288. _In_opt_ const GUID *pCryptoType,
  3289. /* [annotation] */
  3290. _In_opt_ const GUID *pDecoderProfile,
  3291. /* [annotation] */
  3292. _Out_ D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps);
  3293. HRESULT ( STDMETHODCALLTYPE *CheckCryptoKeyExchange )(
  3294. ID3D11VideoDevice1 * This,
  3295. /* [annotation] */
  3296. _In_ const GUID *pCryptoType,
  3297. /* [annotation] */
  3298. _In_opt_ const GUID *pDecoderProfile,
  3299. /* [annotation] */
  3300. _In_ UINT Index,
  3301. /* [annotation] */
  3302. _Out_ GUID *pKeyExchangeType);
  3303. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3304. ID3D11VideoDevice1 * This,
  3305. /* [annotation] */
  3306. _In_ REFGUID guid,
  3307. /* [annotation] */
  3308. _In_ UINT DataSize,
  3309. /* [annotation] */
  3310. _In_reads_bytes_opt_(DataSize) const void *pData);
  3311. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3312. ID3D11VideoDevice1 * This,
  3313. /* [annotation] */
  3314. _In_ REFGUID guid,
  3315. /* [annotation] */
  3316. _In_opt_ const IUnknown *pData);
  3317. HRESULT ( STDMETHODCALLTYPE *GetCryptoSessionPrivateDataSize )(
  3318. ID3D11VideoDevice1 * This,
  3319. /* [annotation] */
  3320. _In_ const GUID *pCryptoType,
  3321. /* [annotation] */
  3322. _In_opt_ const GUID *pDecoderProfile,
  3323. /* [annotation] */
  3324. _In_ const GUID *pKeyExchangeType,
  3325. /* [annotation] */
  3326. _Out_ UINT *pPrivateInputSize,
  3327. /* [annotation] */
  3328. _Out_ UINT *pPrivateOutputSize);
  3329. HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderCaps )(
  3330. ID3D11VideoDevice1 * This,
  3331. /* [annotation] */
  3332. _In_ const GUID *pDecoderProfile,
  3333. /* [annotation] */
  3334. _In_ UINT SampleWidth,
  3335. /* [annotation] */
  3336. _In_ UINT SampleHeight,
  3337. /* [annotation] */
  3338. _In_ const DXGI_RATIONAL *pFrameRate,
  3339. /* [annotation] */
  3340. _In_ UINT BitRate,
  3341. /* [annotation] */
  3342. _In_opt_ const GUID *pCryptoType,
  3343. /* [annotation] */
  3344. _Out_ UINT *pDecoderCaps);
  3345. HRESULT ( STDMETHODCALLTYPE *CheckVideoDecoderDownsampling )(
  3346. ID3D11VideoDevice1 * This,
  3347. /* [annotation] */
  3348. _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc,
  3349. /* [annotation] */
  3350. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  3351. /* [annotation] */
  3352. _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig,
  3353. /* [annotation] */
  3354. _In_ const DXGI_RATIONAL *pFrameRate,
  3355. /* [annotation] */
  3356. _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc,
  3357. /* [annotation] */
  3358. _Out_ BOOL *pSupported,
  3359. /* [annotation] */
  3360. _Out_ BOOL *pRealTimeHint);
  3361. HRESULT ( STDMETHODCALLTYPE *RecommendVideoDecoderDownsampleParameters )(
  3362. ID3D11VideoDevice1 * This,
  3363. /* [annotation] */
  3364. _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc,
  3365. /* [annotation] */
  3366. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  3367. /* [annotation] */
  3368. _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig,
  3369. /* [annotation] */
  3370. _In_ const DXGI_RATIONAL *pFrameRate,
  3371. /* [annotation] */
  3372. _Out_ D3D11_VIDEO_SAMPLE_DESC *pRecommendedOutputDesc);
  3373. END_INTERFACE
  3374. } ID3D11VideoDevice1Vtbl;
  3375. interface ID3D11VideoDevice1
  3376. {
  3377. CONST_VTBL struct ID3D11VideoDevice1Vtbl *lpVtbl;
  3378. };
  3379. #ifdef COBJMACROS
  3380. #define ID3D11VideoDevice1_QueryInterface(This,riid,ppvObject) \
  3381. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3382. #define ID3D11VideoDevice1_AddRef(This) \
  3383. ( (This)->lpVtbl -> AddRef(This) )
  3384. #define ID3D11VideoDevice1_Release(This) \
  3385. ( (This)->lpVtbl -> Release(This) )
  3386. #define ID3D11VideoDevice1_CreateVideoDecoder(This,pVideoDesc,pConfig,ppDecoder) \
  3387. ( (This)->lpVtbl -> CreateVideoDecoder(This,pVideoDesc,pConfig,ppDecoder) )
  3388. #define ID3D11VideoDevice1_CreateVideoProcessor(This,pEnum,RateConversionIndex,ppVideoProcessor) \
  3389. ( (This)->lpVtbl -> CreateVideoProcessor(This,pEnum,RateConversionIndex,ppVideoProcessor) )
  3390. #define ID3D11VideoDevice1_CreateAuthenticatedChannel(This,ChannelType,ppAuthenticatedChannel) \
  3391. ( (This)->lpVtbl -> CreateAuthenticatedChannel(This,ChannelType,ppAuthenticatedChannel) )
  3392. #define ID3D11VideoDevice1_CreateCryptoSession(This,pCryptoType,pDecoderProfile,pKeyExchangeType,ppCryptoSession) \
  3393. ( (This)->lpVtbl -> CreateCryptoSession(This,pCryptoType,pDecoderProfile,pKeyExchangeType,ppCryptoSession) )
  3394. #define ID3D11VideoDevice1_CreateVideoDecoderOutputView(This,pResource,pDesc,ppVDOVView) \
  3395. ( (This)->lpVtbl -> CreateVideoDecoderOutputView(This,pResource,pDesc,ppVDOVView) )
  3396. #define ID3D11VideoDevice1_CreateVideoProcessorInputView(This,pResource,pEnum,pDesc,ppVPIView) \
  3397. ( (This)->lpVtbl -> CreateVideoProcessorInputView(This,pResource,pEnum,pDesc,ppVPIView) )
  3398. #define ID3D11VideoDevice1_CreateVideoProcessorOutputView(This,pResource,pEnum,pDesc,ppVPOView) \
  3399. ( (This)->lpVtbl -> CreateVideoProcessorOutputView(This,pResource,pEnum,pDesc,ppVPOView) )
  3400. #define ID3D11VideoDevice1_CreateVideoProcessorEnumerator(This,pDesc,ppEnum) \
  3401. ( (This)->lpVtbl -> CreateVideoProcessorEnumerator(This,pDesc,ppEnum) )
  3402. #define ID3D11VideoDevice1_GetVideoDecoderProfileCount(This) \
  3403. ( (This)->lpVtbl -> GetVideoDecoderProfileCount(This) )
  3404. #define ID3D11VideoDevice1_GetVideoDecoderProfile(This,Index,pDecoderProfile) \
  3405. ( (This)->lpVtbl -> GetVideoDecoderProfile(This,Index,pDecoderProfile) )
  3406. #define ID3D11VideoDevice1_CheckVideoDecoderFormat(This,pDecoderProfile,Format,pSupported) \
  3407. ( (This)->lpVtbl -> CheckVideoDecoderFormat(This,pDecoderProfile,Format,pSupported) )
  3408. #define ID3D11VideoDevice1_GetVideoDecoderConfigCount(This,pDesc,pCount) \
  3409. ( (This)->lpVtbl -> GetVideoDecoderConfigCount(This,pDesc,pCount) )
  3410. #define ID3D11VideoDevice1_GetVideoDecoderConfig(This,pDesc,Index,pConfig) \
  3411. ( (This)->lpVtbl -> GetVideoDecoderConfig(This,pDesc,Index,pConfig) )
  3412. #define ID3D11VideoDevice1_GetContentProtectionCaps(This,pCryptoType,pDecoderProfile,pCaps) \
  3413. ( (This)->lpVtbl -> GetContentProtectionCaps(This,pCryptoType,pDecoderProfile,pCaps) )
  3414. #define ID3D11VideoDevice1_CheckCryptoKeyExchange(This,pCryptoType,pDecoderProfile,Index,pKeyExchangeType) \
  3415. ( (This)->lpVtbl -> CheckCryptoKeyExchange(This,pCryptoType,pDecoderProfile,Index,pKeyExchangeType) )
  3416. #define ID3D11VideoDevice1_SetPrivateData(This,guid,DataSize,pData) \
  3417. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3418. #define ID3D11VideoDevice1_SetPrivateDataInterface(This,guid,pData) \
  3419. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3420. #define ID3D11VideoDevice1_GetCryptoSessionPrivateDataSize(This,pCryptoType,pDecoderProfile,pKeyExchangeType,pPrivateInputSize,pPrivateOutputSize) \
  3421. ( (This)->lpVtbl -> GetCryptoSessionPrivateDataSize(This,pCryptoType,pDecoderProfile,pKeyExchangeType,pPrivateInputSize,pPrivateOutputSize) )
  3422. #define ID3D11VideoDevice1_GetVideoDecoderCaps(This,pDecoderProfile,SampleWidth,SampleHeight,pFrameRate,BitRate,pCryptoType,pDecoderCaps) \
  3423. ( (This)->lpVtbl -> GetVideoDecoderCaps(This,pDecoderProfile,SampleWidth,SampleHeight,pFrameRate,BitRate,pCryptoType,pDecoderCaps) )
  3424. #define ID3D11VideoDevice1_CheckVideoDecoderDownsampling(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pOutputDesc,pSupported,pRealTimeHint) \
  3425. ( (This)->lpVtbl -> CheckVideoDecoderDownsampling(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pOutputDesc,pSupported,pRealTimeHint) )
  3426. #define ID3D11VideoDevice1_RecommendVideoDecoderDownsampleParameters(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pRecommendedOutputDesc) \
  3427. ( (This)->lpVtbl -> RecommendVideoDecoderDownsampleParameters(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pRecommendedOutputDesc) )
  3428. #endif /* COBJMACROS */
  3429. #endif /* C style interface */
  3430. #endif /* __ID3D11VideoDevice1_INTERFACE_DEFINED__ */
  3431. #ifndef __ID3D11VideoProcessorEnumerator1_INTERFACE_DEFINED__
  3432. #define __ID3D11VideoProcessorEnumerator1_INTERFACE_DEFINED__
  3433. /* interface ID3D11VideoProcessorEnumerator1 */
  3434. /* [unique][local][object][uuid] */
  3435. EXTERN_C const IID IID_ID3D11VideoProcessorEnumerator1;
  3436. #if defined(__cplusplus) && !defined(CINTERFACE)
  3437. MIDL_INTERFACE("465217F2-5568-43CF-B5B9-F61D54531CA1")
  3438. ID3D11VideoProcessorEnumerator1 : public ID3D11VideoProcessorEnumerator
  3439. {
  3440. public:
  3441. virtual HRESULT STDMETHODCALLTYPE CheckVideoProcessorFormatConversion(
  3442. /* [annotation] */
  3443. _In_ DXGI_FORMAT InputFormat,
  3444. /* [annotation] */
  3445. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  3446. /* [annotation] */
  3447. _In_ DXGI_FORMAT OutputFormat,
  3448. /* [annotation] */
  3449. _In_ DXGI_COLOR_SPACE_TYPE OutputColorSpace,
  3450. /* [annotation] */
  3451. _Out_ BOOL *pSupported) = 0;
  3452. };
  3453. #else /* C style interface */
  3454. typedef struct ID3D11VideoProcessorEnumerator1Vtbl
  3455. {
  3456. BEGIN_INTERFACE
  3457. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3458. ID3D11VideoProcessorEnumerator1 * This,
  3459. /* [in] */ REFIID riid,
  3460. /* [annotation][iid_is][out] */
  3461. _COM_Outptr_ void **ppvObject);
  3462. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3463. ID3D11VideoProcessorEnumerator1 * This);
  3464. ULONG ( STDMETHODCALLTYPE *Release )(
  3465. ID3D11VideoProcessorEnumerator1 * This);
  3466. void ( STDMETHODCALLTYPE *GetDevice )(
  3467. ID3D11VideoProcessorEnumerator1 * This,
  3468. /* [annotation] */
  3469. _Outptr_ ID3D11Device **ppDevice);
  3470. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3471. ID3D11VideoProcessorEnumerator1 * This,
  3472. /* [annotation] */
  3473. _In_ REFGUID guid,
  3474. /* [annotation] */
  3475. _Inout_ UINT *pDataSize,
  3476. /* [annotation] */
  3477. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3478. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3479. ID3D11VideoProcessorEnumerator1 * This,
  3480. /* [annotation] */
  3481. _In_ REFGUID guid,
  3482. /* [annotation] */
  3483. _In_ UINT DataSize,
  3484. /* [annotation] */
  3485. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3486. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3487. ID3D11VideoProcessorEnumerator1 * This,
  3488. /* [annotation] */
  3489. _In_ REFGUID guid,
  3490. /* [annotation] */
  3491. _In_opt_ const IUnknown *pData);
  3492. HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorContentDesc )(
  3493. ID3D11VideoProcessorEnumerator1 * This,
  3494. /* [annotation] */
  3495. _Out_ D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc);
  3496. HRESULT ( STDMETHODCALLTYPE *CheckVideoProcessorFormat )(
  3497. ID3D11VideoProcessorEnumerator1 * This,
  3498. /* [annotation] */
  3499. _In_ DXGI_FORMAT Format,
  3500. /* [annotation] */
  3501. _Out_ UINT *pFlags);
  3502. HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )(
  3503. ID3D11VideoProcessorEnumerator1 * This,
  3504. /* [annotation] */
  3505. _Out_ D3D11_VIDEO_PROCESSOR_CAPS *pCaps);
  3506. HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorRateConversionCaps )(
  3507. ID3D11VideoProcessorEnumerator1 * This,
  3508. /* [annotation] */
  3509. _In_ UINT TypeIndex,
  3510. /* [annotation] */
  3511. _Out_ D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps);
  3512. HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCustomRate )(
  3513. ID3D11VideoProcessorEnumerator1 * This,
  3514. /* [annotation] */
  3515. _In_ UINT TypeIndex,
  3516. /* [annotation] */
  3517. _In_ UINT CustomRateIndex,
  3518. /* [annotation] */
  3519. _Out_ D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate);
  3520. HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorFilterRange )(
  3521. ID3D11VideoProcessorEnumerator1 * This,
  3522. /* [annotation] */
  3523. _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter,
  3524. /* [annotation] */
  3525. _Out_ D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange);
  3526. HRESULT ( STDMETHODCALLTYPE *CheckVideoProcessorFormatConversion )(
  3527. ID3D11VideoProcessorEnumerator1 * This,
  3528. /* [annotation] */
  3529. _In_ DXGI_FORMAT InputFormat,
  3530. /* [annotation] */
  3531. _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace,
  3532. /* [annotation] */
  3533. _In_ DXGI_FORMAT OutputFormat,
  3534. /* [annotation] */
  3535. _In_ DXGI_COLOR_SPACE_TYPE OutputColorSpace,
  3536. /* [annotation] */
  3537. _Out_ BOOL *pSupported);
  3538. END_INTERFACE
  3539. } ID3D11VideoProcessorEnumerator1Vtbl;
  3540. interface ID3D11VideoProcessorEnumerator1
  3541. {
  3542. CONST_VTBL struct ID3D11VideoProcessorEnumerator1Vtbl *lpVtbl;
  3543. };
  3544. #ifdef COBJMACROS
  3545. #define ID3D11VideoProcessorEnumerator1_QueryInterface(This,riid,ppvObject) \
  3546. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3547. #define ID3D11VideoProcessorEnumerator1_AddRef(This) \
  3548. ( (This)->lpVtbl -> AddRef(This) )
  3549. #define ID3D11VideoProcessorEnumerator1_Release(This) \
  3550. ( (This)->lpVtbl -> Release(This) )
  3551. #define ID3D11VideoProcessorEnumerator1_GetDevice(This,ppDevice) \
  3552. ( (This)->lpVtbl -> GetDevice(This,ppDevice) )
  3553. #define ID3D11VideoProcessorEnumerator1_GetPrivateData(This,guid,pDataSize,pData) \
  3554. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3555. #define ID3D11VideoProcessorEnumerator1_SetPrivateData(This,guid,DataSize,pData) \
  3556. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3557. #define ID3D11VideoProcessorEnumerator1_SetPrivateDataInterface(This,guid,pData) \
  3558. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3559. #define ID3D11VideoProcessorEnumerator1_GetVideoProcessorContentDesc(This,pContentDesc) \
  3560. ( (This)->lpVtbl -> GetVideoProcessorContentDesc(This,pContentDesc) )
  3561. #define ID3D11VideoProcessorEnumerator1_CheckVideoProcessorFormat(This,Format,pFlags) \
  3562. ( (This)->lpVtbl -> CheckVideoProcessorFormat(This,Format,pFlags) )
  3563. #define ID3D11VideoProcessorEnumerator1_GetVideoProcessorCaps(This,pCaps) \
  3564. ( (This)->lpVtbl -> GetVideoProcessorCaps(This,pCaps) )
  3565. #define ID3D11VideoProcessorEnumerator1_GetVideoProcessorRateConversionCaps(This,TypeIndex,pCaps) \
  3566. ( (This)->lpVtbl -> GetVideoProcessorRateConversionCaps(This,TypeIndex,pCaps) )
  3567. #define ID3D11VideoProcessorEnumerator1_GetVideoProcessorCustomRate(This,TypeIndex,CustomRateIndex,pRate) \
  3568. ( (This)->lpVtbl -> GetVideoProcessorCustomRate(This,TypeIndex,CustomRateIndex,pRate) )
  3569. #define ID3D11VideoProcessorEnumerator1_GetVideoProcessorFilterRange(This,Filter,pRange) \
  3570. ( (This)->lpVtbl -> GetVideoProcessorFilterRange(This,Filter,pRange) )
  3571. #define ID3D11VideoProcessorEnumerator1_CheckVideoProcessorFormatConversion(This,InputFormat,InputColorSpace,OutputFormat,OutputColorSpace,pSupported) \
  3572. ( (This)->lpVtbl -> CheckVideoProcessorFormatConversion(This,InputFormat,InputColorSpace,OutputFormat,OutputColorSpace,pSupported) )
  3573. #endif /* COBJMACROS */
  3574. #endif /* C style interface */
  3575. #endif /* __ID3D11VideoProcessorEnumerator1_INTERFACE_DEFINED__ */
  3576. #ifndef __ID3D11Device1_INTERFACE_DEFINED__
  3577. #define __ID3D11Device1_INTERFACE_DEFINED__
  3578. /* interface ID3D11Device1 */
  3579. /* [unique][local][object][uuid] */
  3580. EXTERN_C const IID IID_ID3D11Device1;
  3581. #if defined(__cplusplus) && !defined(CINTERFACE)
  3582. MIDL_INTERFACE("a04bfb29-08ef-43d6-a49c-a9bdbdcbe686")
  3583. ID3D11Device1 : public ID3D11Device
  3584. {
  3585. public:
  3586. virtual void STDMETHODCALLTYPE GetImmediateContext1(
  3587. /* [annotation] */
  3588. _Outptr_ ID3D11DeviceContext1 **ppImmediateContext) = 0;
  3589. virtual HRESULT STDMETHODCALLTYPE CreateDeferredContext1(
  3590. UINT ContextFlags,
  3591. /* [annotation] */
  3592. _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext) = 0;
  3593. virtual HRESULT STDMETHODCALLTYPE CreateBlendState1(
  3594. /* [annotation] */
  3595. _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc,
  3596. /* [annotation] */
  3597. _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState) = 0;
  3598. virtual HRESULT STDMETHODCALLTYPE CreateRasterizerState1(
  3599. /* [annotation] */
  3600. _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc,
  3601. /* [annotation] */
  3602. _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState) = 0;
  3603. virtual HRESULT STDMETHODCALLTYPE CreateDeviceContextState(
  3604. UINT Flags,
  3605. /* [annotation] */
  3606. _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels,
  3607. UINT FeatureLevels,
  3608. UINT SDKVersion,
  3609. REFIID EmulatedInterface,
  3610. /* [annotation] */
  3611. _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel,
  3612. /* [annotation] */
  3613. _Out_opt_ ID3DDeviceContextState **ppContextState) = 0;
  3614. virtual HRESULT STDMETHODCALLTYPE OpenSharedResource1(
  3615. /* [annotation] */
  3616. _In_ HANDLE hResource,
  3617. /* [annotation] */
  3618. _In_ REFIID returnedInterface,
  3619. /* [annotation] */
  3620. _COM_Outptr_ void **ppResource) = 0;
  3621. virtual HRESULT STDMETHODCALLTYPE OpenSharedResourceByName(
  3622. /* [annotation] */
  3623. _In_ LPCWSTR lpName,
  3624. /* [annotation] */
  3625. _In_ DWORD dwDesiredAccess,
  3626. /* [annotation] */
  3627. _In_ REFIID returnedInterface,
  3628. /* [annotation] */
  3629. _COM_Outptr_ void **ppResource) = 0;
  3630. };
  3631. #else /* C style interface */
  3632. typedef struct ID3D11Device1Vtbl
  3633. {
  3634. BEGIN_INTERFACE
  3635. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3636. ID3D11Device1 * This,
  3637. /* [in] */ REFIID riid,
  3638. /* [annotation][iid_is][out] */
  3639. _COM_Outptr_ void **ppvObject);
  3640. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3641. ID3D11Device1 * This);
  3642. ULONG ( STDMETHODCALLTYPE *Release )(
  3643. ID3D11Device1 * This);
  3644. HRESULT ( STDMETHODCALLTYPE *CreateBuffer )(
  3645. ID3D11Device1 * This,
  3646. /* [annotation] */
  3647. _In_ const D3D11_BUFFER_DESC *pDesc,
  3648. /* [annotation] */
  3649. _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData,
  3650. /* [annotation] */
  3651. _COM_Outptr_opt_ ID3D11Buffer **ppBuffer);
  3652. HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )(
  3653. ID3D11Device1 * This,
  3654. /* [annotation] */
  3655. _In_ const D3D11_TEXTURE1D_DESC *pDesc,
  3656. /* [annotation] */
  3657. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  3658. /* [annotation] */
  3659. _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D);
  3660. HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )(
  3661. ID3D11Device1 * This,
  3662. /* [annotation] */
  3663. _In_ const D3D11_TEXTURE2D_DESC *pDesc,
  3664. /* [annotation] */
  3665. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  3666. /* [annotation] */
  3667. _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D);
  3668. HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )(
  3669. ID3D11Device1 * This,
  3670. /* [annotation] */
  3671. _In_ const D3D11_TEXTURE3D_DESC *pDesc,
  3672. /* [annotation] */
  3673. _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData,
  3674. /* [annotation] */
  3675. _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D);
  3676. HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  3677. ID3D11Device1 * This,
  3678. /* [annotation] */
  3679. _In_ ID3D11Resource *pResource,
  3680. /* [annotation] */
  3681. _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc,
  3682. /* [annotation] */
  3683. _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView);
  3684. HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  3685. ID3D11Device1 * This,
  3686. /* [annotation] */
  3687. _In_ ID3D11Resource *pResource,
  3688. /* [annotation] */
  3689. _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  3690. /* [annotation] */
  3691. _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView);
  3692. HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  3693. ID3D11Device1 * This,
  3694. /* [annotation] */
  3695. _In_ ID3D11Resource *pResource,
  3696. /* [annotation] */
  3697. _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
  3698. /* [annotation] */
  3699. _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView);
  3700. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  3701. ID3D11Device1 * This,
  3702. /* [annotation] */
  3703. _In_ ID3D11Resource *pResource,
  3704. /* [annotation] */
  3705. _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc,
  3706. /* [annotation] */
  3707. _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView);
  3708. HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )(
  3709. ID3D11Device1 * This,
  3710. /* [annotation] */
  3711. _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs,
  3712. /* [annotation] */
  3713. _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements,
  3714. /* [annotation] */
  3715. _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature,
  3716. /* [annotation] */
  3717. _In_ SIZE_T BytecodeLength,
  3718. /* [annotation] */
  3719. _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout);
  3720. HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )(
  3721. ID3D11Device1 * This,
  3722. /* [annotation] */
  3723. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  3724. /* [annotation] */
  3725. _In_ SIZE_T BytecodeLength,
  3726. /* [annotation] */
  3727. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  3728. /* [annotation] */
  3729. _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader);
  3730. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )(
  3731. ID3D11Device1 * This,
  3732. /* [annotation] */
  3733. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  3734. /* [annotation] */
  3735. _In_ SIZE_T BytecodeLength,
  3736. /* [annotation] */
  3737. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  3738. /* [annotation] */
  3739. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  3740. HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )(
  3741. ID3D11Device1 * This,
  3742. /* [annotation] */
  3743. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  3744. /* [annotation] */
  3745. _In_ SIZE_T BytecodeLength,
  3746. /* [annotation] */
  3747. _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration,
  3748. /* [annotation] */
  3749. _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries,
  3750. /* [annotation] */
  3751. _In_reads_opt_(NumStrides) const UINT *pBufferStrides,
  3752. /* [annotation] */
  3753. _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides,
  3754. /* [annotation] */
  3755. _In_ UINT RasterizedStream,
  3756. /* [annotation] */
  3757. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  3758. /* [annotation] */
  3759. _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader);
  3760. HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )(
  3761. ID3D11Device1 * This,
  3762. /* [annotation] */
  3763. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  3764. /* [annotation] */
  3765. _In_ SIZE_T BytecodeLength,
  3766. /* [annotation] */
  3767. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  3768. /* [annotation] */
  3769. _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader);
  3770. HRESULT ( STDMETHODCALLTYPE *CreateHullShader )(
  3771. ID3D11Device1 * This,
  3772. /* [annotation] */
  3773. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  3774. /* [annotation] */
  3775. _In_ SIZE_T BytecodeLength,
  3776. /* [annotation] */
  3777. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  3778. /* [annotation] */
  3779. _COM_Outptr_opt_ ID3D11HullShader **ppHullShader);
  3780. HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )(
  3781. ID3D11Device1 * This,
  3782. /* [annotation] */
  3783. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  3784. /* [annotation] */
  3785. _In_ SIZE_T BytecodeLength,
  3786. /* [annotation] */
  3787. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  3788. /* [annotation] */
  3789. _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader);
  3790. HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )(
  3791. ID3D11Device1 * This,
  3792. /* [annotation] */
  3793. _In_reads_(BytecodeLength) const void *pShaderBytecode,
  3794. /* [annotation] */
  3795. _In_ SIZE_T BytecodeLength,
  3796. /* [annotation] */
  3797. _In_opt_ ID3D11ClassLinkage *pClassLinkage,
  3798. /* [annotation] */
  3799. _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader);
  3800. HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )(
  3801. ID3D11Device1 * This,
  3802. /* [annotation] */
  3803. _COM_Outptr_ ID3D11ClassLinkage **ppLinkage);
  3804. HRESULT ( STDMETHODCALLTYPE *CreateBlendState )(
  3805. ID3D11Device1 * This,
  3806. /* [annotation] */
  3807. _In_ const D3D11_BLEND_DESC *pBlendStateDesc,
  3808. /* [annotation] */
  3809. _COM_Outptr_opt_ ID3D11BlendState **ppBlendState);
  3810. HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )(
  3811. ID3D11Device1 * This,
  3812. /* [annotation] */
  3813. _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc,
  3814. /* [annotation] */
  3815. _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState);
  3816. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )(
  3817. ID3D11Device1 * This,
  3818. /* [annotation] */
  3819. _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc,
  3820. /* [annotation] */
  3821. _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState);
  3822. HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )(
  3823. ID3D11Device1 * This,
  3824. /* [annotation] */
  3825. _In_ const D3D11_SAMPLER_DESC *pSamplerDesc,
  3826. /* [annotation] */
  3827. _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState);
  3828. HRESULT ( STDMETHODCALLTYPE *CreateQuery )(
  3829. ID3D11Device1 * This,
  3830. /* [annotation] */
  3831. _In_ const D3D11_QUERY_DESC *pQueryDesc,
  3832. /* [annotation] */
  3833. _COM_Outptr_opt_ ID3D11Query **ppQuery);
  3834. HRESULT ( STDMETHODCALLTYPE *CreatePredicate )(
  3835. ID3D11Device1 * This,
  3836. /* [annotation] */
  3837. _In_ const D3D11_QUERY_DESC *pPredicateDesc,
  3838. /* [annotation] */
  3839. _COM_Outptr_opt_ ID3D11Predicate **ppPredicate);
  3840. HRESULT ( STDMETHODCALLTYPE *CreateCounter )(
  3841. ID3D11Device1 * This,
  3842. /* [annotation] */
  3843. _In_ const D3D11_COUNTER_DESC *pCounterDesc,
  3844. /* [annotation] */
  3845. _COM_Outptr_opt_ ID3D11Counter **ppCounter);
  3846. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )(
  3847. ID3D11Device1 * This,
  3848. UINT ContextFlags,
  3849. /* [annotation] */
  3850. _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext);
  3851. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )(
  3852. ID3D11Device1 * This,
  3853. /* [annotation] */
  3854. _In_ HANDLE hResource,
  3855. /* [annotation] */
  3856. _In_ REFIID ReturnedInterface,
  3857. /* [annotation] */
  3858. _COM_Outptr_opt_ void **ppResource);
  3859. HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )(
  3860. ID3D11Device1 * This,
  3861. /* [annotation] */
  3862. _In_ DXGI_FORMAT Format,
  3863. /* [annotation] */
  3864. _Out_ UINT *pFormatSupport);
  3865. HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )(
  3866. ID3D11Device1 * This,
  3867. /* [annotation] */
  3868. _In_ DXGI_FORMAT Format,
  3869. /* [annotation] */
  3870. _In_ UINT SampleCount,
  3871. /* [annotation] */
  3872. _Out_ UINT *pNumQualityLevels);
  3873. void ( STDMETHODCALLTYPE *CheckCounterInfo )(
  3874. ID3D11Device1 * This,
  3875. /* [annotation] */
  3876. _Out_ D3D11_COUNTER_INFO *pCounterInfo);
  3877. HRESULT ( STDMETHODCALLTYPE *CheckCounter )(
  3878. ID3D11Device1 * This,
  3879. /* [annotation] */
  3880. _In_ const D3D11_COUNTER_DESC *pDesc,
  3881. /* [annotation] */
  3882. _Out_ D3D11_COUNTER_TYPE *pType,
  3883. /* [annotation] */
  3884. _Out_ UINT *pActiveCounters,
  3885. /* [annotation] */
  3886. _Out_writes_opt_(*pNameLength) LPSTR szName,
  3887. /* [annotation] */
  3888. _Inout_opt_ UINT *pNameLength,
  3889. /* [annotation] */
  3890. _Out_writes_opt_(*pUnitsLength) LPSTR szUnits,
  3891. /* [annotation] */
  3892. _Inout_opt_ UINT *pUnitsLength,
  3893. /* [annotation] */
  3894. _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription,
  3895. /* [annotation] */
  3896. _Inout_opt_ UINT *pDescriptionLength);
  3897. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  3898. ID3D11Device1 * This,
  3899. D3D11_FEATURE Feature,
  3900. /* [annotation] */
  3901. _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  3902. UINT FeatureSupportDataSize);
  3903. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3904. ID3D11Device1 * This,
  3905. /* [annotation] */
  3906. _In_ REFGUID guid,
  3907. /* [annotation] */
  3908. _Inout_ UINT *pDataSize,
  3909. /* [annotation] */
  3910. _Out_writes_bytes_opt_(*pDataSize) void *pData);
  3911. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3912. ID3D11Device1 * This,
  3913. /* [annotation] */
  3914. _In_ REFGUID guid,
  3915. /* [annotation] */
  3916. _In_ UINT DataSize,
  3917. /* [annotation] */
  3918. _In_reads_bytes_opt_(DataSize) const void *pData);
  3919. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3920. ID3D11Device1 * This,
  3921. /* [annotation] */
  3922. _In_ REFGUID guid,
  3923. /* [annotation] */
  3924. _In_opt_ const IUnknown *pData);
  3925. D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )(
  3926. ID3D11Device1 * This);
  3927. UINT ( STDMETHODCALLTYPE *GetCreationFlags )(
  3928. ID3D11Device1 * This);
  3929. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  3930. ID3D11Device1 * This);
  3931. void ( STDMETHODCALLTYPE *GetImmediateContext )(
  3932. ID3D11Device1 * This,
  3933. /* [annotation] */
  3934. _Outptr_ ID3D11DeviceContext **ppImmediateContext);
  3935. HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )(
  3936. ID3D11Device1 * This,
  3937. UINT RaiseFlags);
  3938. UINT ( STDMETHODCALLTYPE *GetExceptionMode )(
  3939. ID3D11Device1 * This);
  3940. void ( STDMETHODCALLTYPE *GetImmediateContext1 )(
  3941. ID3D11Device1 * This,
  3942. /* [annotation] */
  3943. _Outptr_ ID3D11DeviceContext1 **ppImmediateContext);
  3944. HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )(
  3945. ID3D11Device1 * This,
  3946. UINT ContextFlags,
  3947. /* [annotation] */
  3948. _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext);
  3949. HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )(
  3950. ID3D11Device1 * This,
  3951. /* [annotation] */
  3952. _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc,
  3953. /* [annotation] */
  3954. _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState);
  3955. HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )(
  3956. ID3D11Device1 * This,
  3957. /* [annotation] */
  3958. _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc,
  3959. /* [annotation] */
  3960. _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState);
  3961. HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )(
  3962. ID3D11Device1 * This,
  3963. UINT Flags,
  3964. /* [annotation] */
  3965. _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels,
  3966. UINT FeatureLevels,
  3967. UINT SDKVersion,
  3968. REFIID EmulatedInterface,
  3969. /* [annotation] */
  3970. _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel,
  3971. /* [annotation] */
  3972. _Out_opt_ ID3DDeviceContextState **ppContextState);
  3973. HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )(
  3974. ID3D11Device1 * This,
  3975. /* [annotation] */
  3976. _In_ HANDLE hResource,
  3977. /* [annotation] */
  3978. _In_ REFIID returnedInterface,
  3979. /* [annotation] */
  3980. _COM_Outptr_ void **ppResource);
  3981. HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )(
  3982. ID3D11Device1 * This,
  3983. /* [annotation] */
  3984. _In_ LPCWSTR lpName,
  3985. /* [annotation] */
  3986. _In_ DWORD dwDesiredAccess,
  3987. /* [annotation] */
  3988. _In_ REFIID returnedInterface,
  3989. /* [annotation] */
  3990. _COM_Outptr_ void **ppResource);
  3991. END_INTERFACE
  3992. } ID3D11Device1Vtbl;
  3993. interface ID3D11Device1
  3994. {
  3995. CONST_VTBL struct ID3D11Device1Vtbl *lpVtbl;
  3996. };
  3997. #ifdef COBJMACROS
  3998. #define ID3D11Device1_QueryInterface(This,riid,ppvObject) \
  3999. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4000. #define ID3D11Device1_AddRef(This) \
  4001. ( (This)->lpVtbl -> AddRef(This) )
  4002. #define ID3D11Device1_Release(This) \
  4003. ( (This)->lpVtbl -> Release(This) )
  4004. #define ID3D11Device1_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \
  4005. ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) )
  4006. #define ID3D11Device1_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \
  4007. ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) )
  4008. #define ID3D11Device1_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \
  4009. ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) )
  4010. #define ID3D11Device1_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \
  4011. ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) )
  4012. #define ID3D11Device1_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \
  4013. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) )
  4014. #define ID3D11Device1_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \
  4015. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) )
  4016. #define ID3D11Device1_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \
  4017. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) )
  4018. #define ID3D11Device1_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \
  4019. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) )
  4020. #define ID3D11Device1_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \
  4021. ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) )
  4022. #define ID3D11Device1_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \
  4023. ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) )
  4024. #define ID3D11Device1_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \
  4025. ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) )
  4026. #define ID3D11Device1_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \
  4027. ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) )
  4028. #define ID3D11Device1_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \
  4029. ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) )
  4030. #define ID3D11Device1_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \
  4031. ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) )
  4032. #define ID3D11Device1_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \
  4033. ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) )
  4034. #define ID3D11Device1_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \
  4035. ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) )
  4036. #define ID3D11Device1_CreateClassLinkage(This,ppLinkage) \
  4037. ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) )
  4038. #define ID3D11Device1_CreateBlendState(This,pBlendStateDesc,ppBlendState) \
  4039. ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) )
  4040. #define ID3D11Device1_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \
  4041. ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) )
  4042. #define ID3D11Device1_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \
  4043. ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) )
  4044. #define ID3D11Device1_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \
  4045. ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) )
  4046. #define ID3D11Device1_CreateQuery(This,pQueryDesc,ppQuery) \
  4047. ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) )
  4048. #define ID3D11Device1_CreatePredicate(This,pPredicateDesc,ppPredicate) \
  4049. ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) )
  4050. #define ID3D11Device1_CreateCounter(This,pCounterDesc,ppCounter) \
  4051. ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) )
  4052. #define ID3D11Device1_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \
  4053. ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) )
  4054. #define ID3D11Device1_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \
  4055. ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) )
  4056. #define ID3D11Device1_CheckFormatSupport(This,Format,pFormatSupport) \
  4057. ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) )
  4058. #define ID3D11Device1_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \
  4059. ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) )
  4060. #define ID3D11Device1_CheckCounterInfo(This,pCounterInfo) \
  4061. ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) )
  4062. #define ID3D11Device1_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \
  4063. ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) )
  4064. #define ID3D11Device1_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  4065. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  4066. #define ID3D11Device1_GetPrivateData(This,guid,pDataSize,pData) \
  4067. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4068. #define ID3D11Device1_SetPrivateData(This,guid,DataSize,pData) \
  4069. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4070. #define ID3D11Device1_SetPrivateDataInterface(This,guid,pData) \
  4071. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4072. #define ID3D11Device1_GetFeatureLevel(This) \
  4073. ( (This)->lpVtbl -> GetFeatureLevel(This) )
  4074. #define ID3D11Device1_GetCreationFlags(This) \
  4075. ( (This)->lpVtbl -> GetCreationFlags(This) )
  4076. #define ID3D11Device1_GetDeviceRemovedReason(This) \
  4077. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  4078. #define ID3D11Device1_GetImmediateContext(This,ppImmediateContext) \
  4079. ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) )
  4080. #define ID3D11Device1_SetExceptionMode(This,RaiseFlags) \
  4081. ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) )
  4082. #define ID3D11Device1_GetExceptionMode(This) \
  4083. ( (This)->lpVtbl -> GetExceptionMode(This) )
  4084. #define ID3D11Device1_GetImmediateContext1(This,ppImmediateContext) \
  4085. ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) )
  4086. #define ID3D11Device1_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \
  4087. ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) )
  4088. #define ID3D11Device1_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \
  4089. ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) )
  4090. #define ID3D11Device1_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \
  4091. ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) )
  4092. #define ID3D11Device1_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \
  4093. ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) )
  4094. #define ID3D11Device1_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \
  4095. ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) )
  4096. #define ID3D11Device1_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \
  4097. ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) )
  4098. #endif /* COBJMACROS */
  4099. #endif /* C style interface */
  4100. #endif /* __ID3D11Device1_INTERFACE_DEFINED__ */
  4101. #ifndef __ID3DUserDefinedAnnotation_INTERFACE_DEFINED__
  4102. #define __ID3DUserDefinedAnnotation_INTERFACE_DEFINED__
  4103. /* interface ID3DUserDefinedAnnotation */
  4104. /* [unique][local][object][uuid] */
  4105. EXTERN_C const IID IID_ID3DUserDefinedAnnotation;
  4106. #if defined(__cplusplus) && !defined(CINTERFACE)
  4107. MIDL_INTERFACE("b2daad8b-03d4-4dbf-95eb-32ab4b63d0ab")
  4108. ID3DUserDefinedAnnotation : public IUnknown
  4109. {
  4110. public:
  4111. virtual INT STDMETHODCALLTYPE BeginEvent(
  4112. /* [annotation] */
  4113. _In_ LPCWSTR Name) = 0;
  4114. virtual INT STDMETHODCALLTYPE EndEvent( void) = 0;
  4115. virtual void STDMETHODCALLTYPE SetMarker(
  4116. /* [annotation] */
  4117. _In_ LPCWSTR Name) = 0;
  4118. virtual BOOL STDMETHODCALLTYPE GetStatus( void) = 0;
  4119. };
  4120. #else /* C style interface */
  4121. typedef struct ID3DUserDefinedAnnotationVtbl
  4122. {
  4123. BEGIN_INTERFACE
  4124. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4125. ID3DUserDefinedAnnotation * This,
  4126. /* [in] */ REFIID riid,
  4127. /* [annotation][iid_is][out] */
  4128. _COM_Outptr_ void **ppvObject);
  4129. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4130. ID3DUserDefinedAnnotation * This);
  4131. ULONG ( STDMETHODCALLTYPE *Release )(
  4132. ID3DUserDefinedAnnotation * This);
  4133. INT ( STDMETHODCALLTYPE *BeginEvent )(
  4134. ID3DUserDefinedAnnotation * This,
  4135. /* [annotation] */
  4136. _In_ LPCWSTR Name);
  4137. INT ( STDMETHODCALLTYPE *EndEvent )(
  4138. ID3DUserDefinedAnnotation * This);
  4139. void ( STDMETHODCALLTYPE *SetMarker )(
  4140. ID3DUserDefinedAnnotation * This,
  4141. /* [annotation] */
  4142. _In_ LPCWSTR Name);
  4143. BOOL ( STDMETHODCALLTYPE *GetStatus )(
  4144. ID3DUserDefinedAnnotation * This);
  4145. END_INTERFACE
  4146. } ID3DUserDefinedAnnotationVtbl;
  4147. interface ID3DUserDefinedAnnotation
  4148. {
  4149. CONST_VTBL struct ID3DUserDefinedAnnotationVtbl *lpVtbl;
  4150. };
  4151. #ifdef COBJMACROS
  4152. #define ID3DUserDefinedAnnotation_QueryInterface(This,riid,ppvObject) \
  4153. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4154. #define ID3DUserDefinedAnnotation_AddRef(This) \
  4155. ( (This)->lpVtbl -> AddRef(This) )
  4156. #define ID3DUserDefinedAnnotation_Release(This) \
  4157. ( (This)->lpVtbl -> Release(This) )
  4158. #define ID3DUserDefinedAnnotation_BeginEvent(This,Name) \
  4159. ( (This)->lpVtbl -> BeginEvent(This,Name) )
  4160. #define ID3DUserDefinedAnnotation_EndEvent(This) \
  4161. ( (This)->lpVtbl -> EndEvent(This) )
  4162. #define ID3DUserDefinedAnnotation_SetMarker(This,Name) \
  4163. ( (This)->lpVtbl -> SetMarker(This,Name) )
  4164. #define ID3DUserDefinedAnnotation_GetStatus(This) \
  4165. ( (This)->lpVtbl -> GetStatus(This) )
  4166. #endif /* COBJMACROS */
  4167. #endif /* C style interface */
  4168. #endif /* __ID3DUserDefinedAnnotation_INTERFACE_DEFINED__ */
  4169. /* interface __MIDL_itf_d3d11_1_0000_0009 */
  4170. /* [local] */
  4171. DEFINE_GUID(IID_ID3D11BlendState1,0xcc86fabe,0xda55,0x401d,0x85,0xe7,0xe3,0xc9,0xde,0x28,0x77,0xe9);
  4172. DEFINE_GUID(IID_ID3D11RasterizerState1,0x1217d7a6,0x5039,0x418c,0xb0,0x42,0x9c,0xbe,0x25,0x6a,0xfd,0x6e);
  4173. DEFINE_GUID(IID_ID3DDeviceContextState,0x5c1e0d8a,0x7c23,0x48f9,0x8c,0x59,0xa9,0x29,0x58,0xce,0xff,0x11);
  4174. DEFINE_GUID(IID_ID3D11DeviceContext1,0xbb2c6faa,0xb5fb,0x4082,0x8e,0x6b,0x38,0x8b,0x8c,0xfa,0x90,0xe1);
  4175. DEFINE_GUID(IID_ID3D11VideoContext1,0xA7F026DA,0xA5F8,0x4487,0xA5,0x64,0x15,0xE3,0x43,0x57,0x65,0x1E);
  4176. DEFINE_GUID(IID_ID3D11VideoDevice1,0x29DA1D51,0x1321,0x4454,0x80,0x4B,0xF5,0xFC,0x9F,0x86,0x1F,0x0F);
  4177. DEFINE_GUID(IID_ID3D11VideoProcessorEnumerator1,0x465217F2,0x5568,0x43CF,0xB5,0xB9,0xF6,0x1D,0x54,0x53,0x1C,0xA1);
  4178. DEFINE_GUID(IID_ID3D11Device1,0xa04bfb29,0x08ef,0x43d6,0xa4,0x9c,0xa9,0xbd,0xbd,0xcb,0xe6,0x86);
  4179. DEFINE_GUID(IID_ID3DUserDefinedAnnotation,0xb2daad8b,0x03d4,0x4dbf,0x95,0xeb,0x32,0xab,0x4b,0x63,0xd0,0xab);
  4180. extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0009_v0_0_c_ifspec;
  4181. extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0009_v0_0_s_ifspec;
  4182. /* Additional Prototypes for ALL interfaces */
  4183. /* end of Additional Prototypes */
  4184. #ifdef __cplusplus
  4185. }
  4186. #endif
  4187. #endif