d3d11_1.h 218 KB

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