d3d12.h 1.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949
  1. /*-------------------------------------------------------------------------------------
  2. *
  3. * Copyright (c) Microsoft Corporation
  4. * Licensed under the MIT license
  5. *
  6. *-------------------------------------------------------------------------------------*/
  7. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  8. /* File created by MIDL compiler version 8.01.0628 */
  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 __d3d12_h__
  27. #define __d3d12_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. #ifndef DECLSPEC_XFGVIRT
  32. #if defined(_CONTROL_FLOW_GUARD_XFG)
  33. #define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
  34. #else
  35. #define DECLSPEC_XFGVIRT(base, func)
  36. #endif
  37. #endif
  38. #ifndef _In_opt_count_
  39. #define _In_opt_count_(x)
  40. #endif
  41. #ifndef _In_count_
  42. #define _In_count_(x)
  43. #endif
  44. /* Forward Declarations */
  45. #ifndef __ID3D12Object_FWD_DEFINED__
  46. #define __ID3D12Object_FWD_DEFINED__
  47. typedef interface ID3D12Object ID3D12Object;
  48. #endif /* __ID3D12Object_FWD_DEFINED__ */
  49. #ifndef __ID3D12DeviceChild_FWD_DEFINED__
  50. #define __ID3D12DeviceChild_FWD_DEFINED__
  51. typedef interface ID3D12DeviceChild ID3D12DeviceChild;
  52. #endif /* __ID3D12DeviceChild_FWD_DEFINED__ */
  53. #ifndef __ID3D12RootSignature_FWD_DEFINED__
  54. #define __ID3D12RootSignature_FWD_DEFINED__
  55. typedef interface ID3D12RootSignature ID3D12RootSignature;
  56. #endif /* __ID3D12RootSignature_FWD_DEFINED__ */
  57. #ifndef __ID3D12RootSignatureDeserializer_FWD_DEFINED__
  58. #define __ID3D12RootSignatureDeserializer_FWD_DEFINED__
  59. typedef interface ID3D12RootSignatureDeserializer ID3D12RootSignatureDeserializer;
  60. #endif /* __ID3D12RootSignatureDeserializer_FWD_DEFINED__ */
  61. #ifndef __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__
  62. #define __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__
  63. typedef interface ID3D12VersionedRootSignatureDeserializer ID3D12VersionedRootSignatureDeserializer;
  64. #endif /* __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__ */
  65. #ifndef __ID3D12Pageable_FWD_DEFINED__
  66. #define __ID3D12Pageable_FWD_DEFINED__
  67. typedef interface ID3D12Pageable ID3D12Pageable;
  68. #endif /* __ID3D12Pageable_FWD_DEFINED__ */
  69. #ifndef __ID3D12Heap_FWD_DEFINED__
  70. #define __ID3D12Heap_FWD_DEFINED__
  71. typedef interface ID3D12Heap ID3D12Heap;
  72. #endif /* __ID3D12Heap_FWD_DEFINED__ */
  73. #ifndef __ID3D12Resource_FWD_DEFINED__
  74. #define __ID3D12Resource_FWD_DEFINED__
  75. typedef interface ID3D12Resource ID3D12Resource;
  76. #endif /* __ID3D12Resource_FWD_DEFINED__ */
  77. #ifndef __ID3D12CommandAllocator_FWD_DEFINED__
  78. #define __ID3D12CommandAllocator_FWD_DEFINED__
  79. typedef interface ID3D12CommandAllocator ID3D12CommandAllocator;
  80. #endif /* __ID3D12CommandAllocator_FWD_DEFINED__ */
  81. #ifndef __ID3D12Fence_FWD_DEFINED__
  82. #define __ID3D12Fence_FWD_DEFINED__
  83. typedef interface ID3D12Fence ID3D12Fence;
  84. #endif /* __ID3D12Fence_FWD_DEFINED__ */
  85. #ifndef __ID3D12Fence1_FWD_DEFINED__
  86. #define __ID3D12Fence1_FWD_DEFINED__
  87. typedef interface ID3D12Fence1 ID3D12Fence1;
  88. #endif /* __ID3D12Fence1_FWD_DEFINED__ */
  89. #ifndef __ID3D12PipelineState_FWD_DEFINED__
  90. #define __ID3D12PipelineState_FWD_DEFINED__
  91. typedef interface ID3D12PipelineState ID3D12PipelineState;
  92. #endif /* __ID3D12PipelineState_FWD_DEFINED__ */
  93. #ifndef __ID3D12DescriptorHeap_FWD_DEFINED__
  94. #define __ID3D12DescriptorHeap_FWD_DEFINED__
  95. typedef interface ID3D12DescriptorHeap ID3D12DescriptorHeap;
  96. #endif /* __ID3D12DescriptorHeap_FWD_DEFINED__ */
  97. #ifndef __ID3D12QueryHeap_FWD_DEFINED__
  98. #define __ID3D12QueryHeap_FWD_DEFINED__
  99. typedef interface ID3D12QueryHeap ID3D12QueryHeap;
  100. #endif /* __ID3D12QueryHeap_FWD_DEFINED__ */
  101. #ifndef __ID3D12CommandSignature_FWD_DEFINED__
  102. #define __ID3D12CommandSignature_FWD_DEFINED__
  103. typedef interface ID3D12CommandSignature ID3D12CommandSignature;
  104. #endif /* __ID3D12CommandSignature_FWD_DEFINED__ */
  105. #ifndef __ID3D12CommandList_FWD_DEFINED__
  106. #define __ID3D12CommandList_FWD_DEFINED__
  107. typedef interface ID3D12CommandList ID3D12CommandList;
  108. #endif /* __ID3D12CommandList_FWD_DEFINED__ */
  109. #ifndef __ID3D12GraphicsCommandList_FWD_DEFINED__
  110. #define __ID3D12GraphicsCommandList_FWD_DEFINED__
  111. typedef interface ID3D12GraphicsCommandList ID3D12GraphicsCommandList;
  112. #endif /* __ID3D12GraphicsCommandList_FWD_DEFINED__ */
  113. #ifndef __ID3D12GraphicsCommandList1_FWD_DEFINED__
  114. #define __ID3D12GraphicsCommandList1_FWD_DEFINED__
  115. typedef interface ID3D12GraphicsCommandList1 ID3D12GraphicsCommandList1;
  116. #endif /* __ID3D12GraphicsCommandList1_FWD_DEFINED__ */
  117. #ifndef __ID3D12GraphicsCommandList2_FWD_DEFINED__
  118. #define __ID3D12GraphicsCommandList2_FWD_DEFINED__
  119. typedef interface ID3D12GraphicsCommandList2 ID3D12GraphicsCommandList2;
  120. #endif /* __ID3D12GraphicsCommandList2_FWD_DEFINED__ */
  121. #ifndef __ID3D12CommandQueue_FWD_DEFINED__
  122. #define __ID3D12CommandQueue_FWD_DEFINED__
  123. typedef interface ID3D12CommandQueue ID3D12CommandQueue;
  124. #endif /* __ID3D12CommandQueue_FWD_DEFINED__ */
  125. #ifndef __ID3D12Device_FWD_DEFINED__
  126. #define __ID3D12Device_FWD_DEFINED__
  127. typedef interface ID3D12Device ID3D12Device;
  128. #endif /* __ID3D12Device_FWD_DEFINED__ */
  129. #ifndef __ID3D12PipelineLibrary_FWD_DEFINED__
  130. #define __ID3D12PipelineLibrary_FWD_DEFINED__
  131. typedef interface ID3D12PipelineLibrary ID3D12PipelineLibrary;
  132. #endif /* __ID3D12PipelineLibrary_FWD_DEFINED__ */
  133. #ifndef __ID3D12PipelineLibrary1_FWD_DEFINED__
  134. #define __ID3D12PipelineLibrary1_FWD_DEFINED__
  135. typedef interface ID3D12PipelineLibrary1 ID3D12PipelineLibrary1;
  136. #endif /* __ID3D12PipelineLibrary1_FWD_DEFINED__ */
  137. #ifndef __ID3D12Device1_FWD_DEFINED__
  138. #define __ID3D12Device1_FWD_DEFINED__
  139. typedef interface ID3D12Device1 ID3D12Device1;
  140. #endif /* __ID3D12Device1_FWD_DEFINED__ */
  141. #ifndef __ID3D12Device2_FWD_DEFINED__
  142. #define __ID3D12Device2_FWD_DEFINED__
  143. typedef interface ID3D12Device2 ID3D12Device2;
  144. #endif /* __ID3D12Device2_FWD_DEFINED__ */
  145. #ifndef __ID3D12Device3_FWD_DEFINED__
  146. #define __ID3D12Device3_FWD_DEFINED__
  147. typedef interface ID3D12Device3 ID3D12Device3;
  148. #endif /* __ID3D12Device3_FWD_DEFINED__ */
  149. #ifndef __ID3D12ProtectedSession_FWD_DEFINED__
  150. #define __ID3D12ProtectedSession_FWD_DEFINED__
  151. typedef interface ID3D12ProtectedSession ID3D12ProtectedSession;
  152. #endif /* __ID3D12ProtectedSession_FWD_DEFINED__ */
  153. #ifndef __ID3D12ProtectedResourceSession_FWD_DEFINED__
  154. #define __ID3D12ProtectedResourceSession_FWD_DEFINED__
  155. typedef interface ID3D12ProtectedResourceSession ID3D12ProtectedResourceSession;
  156. #endif /* __ID3D12ProtectedResourceSession_FWD_DEFINED__ */
  157. #ifndef __ID3D12Device4_FWD_DEFINED__
  158. #define __ID3D12Device4_FWD_DEFINED__
  159. typedef interface ID3D12Device4 ID3D12Device4;
  160. #endif /* __ID3D12Device4_FWD_DEFINED__ */
  161. #ifndef __ID3D12LifetimeOwner_FWD_DEFINED__
  162. #define __ID3D12LifetimeOwner_FWD_DEFINED__
  163. typedef interface ID3D12LifetimeOwner ID3D12LifetimeOwner;
  164. #endif /* __ID3D12LifetimeOwner_FWD_DEFINED__ */
  165. #ifndef __ID3D12SwapChainAssistant_FWD_DEFINED__
  166. #define __ID3D12SwapChainAssistant_FWD_DEFINED__
  167. typedef interface ID3D12SwapChainAssistant ID3D12SwapChainAssistant;
  168. #endif /* __ID3D12SwapChainAssistant_FWD_DEFINED__ */
  169. #ifndef __ID3D12LifetimeTracker_FWD_DEFINED__
  170. #define __ID3D12LifetimeTracker_FWD_DEFINED__
  171. typedef interface ID3D12LifetimeTracker ID3D12LifetimeTracker;
  172. #endif /* __ID3D12LifetimeTracker_FWD_DEFINED__ */
  173. #ifndef __ID3D12StateObject_FWD_DEFINED__
  174. #define __ID3D12StateObject_FWD_DEFINED__
  175. typedef interface ID3D12StateObject ID3D12StateObject;
  176. #endif /* __ID3D12StateObject_FWD_DEFINED__ */
  177. #ifndef __ID3D12StateObjectProperties_FWD_DEFINED__
  178. #define __ID3D12StateObjectProperties_FWD_DEFINED__
  179. typedef interface ID3D12StateObjectProperties ID3D12StateObjectProperties;
  180. #endif /* __ID3D12StateObjectProperties_FWD_DEFINED__ */
  181. #ifndef __ID3D12StateObjectProperties1_FWD_DEFINED__
  182. #define __ID3D12StateObjectProperties1_FWD_DEFINED__
  183. typedef interface ID3D12StateObjectProperties1 ID3D12StateObjectProperties1;
  184. #endif /* __ID3D12StateObjectProperties1_FWD_DEFINED__ */
  185. #ifndef __ID3D12WorkGraphProperties_FWD_DEFINED__
  186. #define __ID3D12WorkGraphProperties_FWD_DEFINED__
  187. typedef interface ID3D12WorkGraphProperties ID3D12WorkGraphProperties;
  188. #endif /* __ID3D12WorkGraphProperties_FWD_DEFINED__ */
  189. #ifndef __ID3D12Device5_FWD_DEFINED__
  190. #define __ID3D12Device5_FWD_DEFINED__
  191. typedef interface ID3D12Device5 ID3D12Device5;
  192. #endif /* __ID3D12Device5_FWD_DEFINED__ */
  193. #ifndef __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__
  194. #define __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__
  195. typedef interface ID3D12DeviceRemovedExtendedDataSettings ID3D12DeviceRemovedExtendedDataSettings;
  196. #endif /* __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__ */
  197. #ifndef __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__
  198. #define __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__
  199. typedef interface ID3D12DeviceRemovedExtendedDataSettings1 ID3D12DeviceRemovedExtendedDataSettings1;
  200. #endif /* __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__ */
  201. #ifndef __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__
  202. #define __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__
  203. typedef interface ID3D12DeviceRemovedExtendedDataSettings2 ID3D12DeviceRemovedExtendedDataSettings2;
  204. #endif /* __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__ */
  205. #ifndef __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__
  206. #define __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__
  207. typedef interface ID3D12DeviceRemovedExtendedData ID3D12DeviceRemovedExtendedData;
  208. #endif /* __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__ */
  209. #ifndef __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__
  210. #define __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__
  211. typedef interface ID3D12DeviceRemovedExtendedData1 ID3D12DeviceRemovedExtendedData1;
  212. #endif /* __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__ */
  213. #ifndef __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__
  214. #define __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__
  215. typedef interface ID3D12DeviceRemovedExtendedData2 ID3D12DeviceRemovedExtendedData2;
  216. #endif /* __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__ */
  217. #ifndef __ID3D12Device6_FWD_DEFINED__
  218. #define __ID3D12Device6_FWD_DEFINED__
  219. typedef interface ID3D12Device6 ID3D12Device6;
  220. #endif /* __ID3D12Device6_FWD_DEFINED__ */
  221. #ifndef __ID3D12ProtectedResourceSession1_FWD_DEFINED__
  222. #define __ID3D12ProtectedResourceSession1_FWD_DEFINED__
  223. typedef interface ID3D12ProtectedResourceSession1 ID3D12ProtectedResourceSession1;
  224. #endif /* __ID3D12ProtectedResourceSession1_FWD_DEFINED__ */
  225. #ifndef __ID3D12Device7_FWD_DEFINED__
  226. #define __ID3D12Device7_FWD_DEFINED__
  227. typedef interface ID3D12Device7 ID3D12Device7;
  228. #endif /* __ID3D12Device7_FWD_DEFINED__ */
  229. #ifndef __ID3D12Device8_FWD_DEFINED__
  230. #define __ID3D12Device8_FWD_DEFINED__
  231. typedef interface ID3D12Device8 ID3D12Device8;
  232. #endif /* __ID3D12Device8_FWD_DEFINED__ */
  233. #ifndef __ID3D12Resource1_FWD_DEFINED__
  234. #define __ID3D12Resource1_FWD_DEFINED__
  235. typedef interface ID3D12Resource1 ID3D12Resource1;
  236. #endif /* __ID3D12Resource1_FWD_DEFINED__ */
  237. #ifndef __ID3D12Resource2_FWD_DEFINED__
  238. #define __ID3D12Resource2_FWD_DEFINED__
  239. typedef interface ID3D12Resource2 ID3D12Resource2;
  240. #endif /* __ID3D12Resource2_FWD_DEFINED__ */
  241. #ifndef __ID3D12Heap1_FWD_DEFINED__
  242. #define __ID3D12Heap1_FWD_DEFINED__
  243. typedef interface ID3D12Heap1 ID3D12Heap1;
  244. #endif /* __ID3D12Heap1_FWD_DEFINED__ */
  245. #ifndef __ID3D12GraphicsCommandList3_FWD_DEFINED__
  246. #define __ID3D12GraphicsCommandList3_FWD_DEFINED__
  247. typedef interface ID3D12GraphicsCommandList3 ID3D12GraphicsCommandList3;
  248. #endif /* __ID3D12GraphicsCommandList3_FWD_DEFINED__ */
  249. #ifndef __ID3D12MetaCommand_FWD_DEFINED__
  250. #define __ID3D12MetaCommand_FWD_DEFINED__
  251. typedef interface ID3D12MetaCommand ID3D12MetaCommand;
  252. #endif /* __ID3D12MetaCommand_FWD_DEFINED__ */
  253. #ifndef __ID3D12GraphicsCommandList4_FWD_DEFINED__
  254. #define __ID3D12GraphicsCommandList4_FWD_DEFINED__
  255. typedef interface ID3D12GraphicsCommandList4 ID3D12GraphicsCommandList4;
  256. #endif /* __ID3D12GraphicsCommandList4_FWD_DEFINED__ */
  257. #ifndef __ID3D12ShaderCacheSession_FWD_DEFINED__
  258. #define __ID3D12ShaderCacheSession_FWD_DEFINED__
  259. typedef interface ID3D12ShaderCacheSession ID3D12ShaderCacheSession;
  260. #endif /* __ID3D12ShaderCacheSession_FWD_DEFINED__ */
  261. #ifndef __ID3D12Device9_FWD_DEFINED__
  262. #define __ID3D12Device9_FWD_DEFINED__
  263. typedef interface ID3D12Device9 ID3D12Device9;
  264. #endif /* __ID3D12Device9_FWD_DEFINED__ */
  265. #ifndef __ID3D12Device10_FWD_DEFINED__
  266. #define __ID3D12Device10_FWD_DEFINED__
  267. typedef interface ID3D12Device10 ID3D12Device10;
  268. #endif /* __ID3D12Device10_FWD_DEFINED__ */
  269. #ifndef __ID3D12Device11_FWD_DEFINED__
  270. #define __ID3D12Device11_FWD_DEFINED__
  271. typedef interface ID3D12Device11 ID3D12Device11;
  272. #endif /* __ID3D12Device11_FWD_DEFINED__ */
  273. #ifndef __ID3D12Device12_FWD_DEFINED__
  274. #define __ID3D12Device12_FWD_DEFINED__
  275. typedef interface ID3D12Device12 ID3D12Device12;
  276. #endif /* __ID3D12Device12_FWD_DEFINED__ */
  277. #ifndef __ID3D12Device13_FWD_DEFINED__
  278. #define __ID3D12Device13_FWD_DEFINED__
  279. typedef interface ID3D12Device13 ID3D12Device13;
  280. #endif /* __ID3D12Device13_FWD_DEFINED__ */
  281. #ifndef __ID3D12Device14_FWD_DEFINED__
  282. #define __ID3D12Device14_FWD_DEFINED__
  283. typedef interface ID3D12Device14 ID3D12Device14;
  284. #endif /* __ID3D12Device14_FWD_DEFINED__ */
  285. #ifndef __ID3D12VirtualizationGuestDevice_FWD_DEFINED__
  286. #define __ID3D12VirtualizationGuestDevice_FWD_DEFINED__
  287. typedef interface ID3D12VirtualizationGuestDevice ID3D12VirtualizationGuestDevice;
  288. #endif /* __ID3D12VirtualizationGuestDevice_FWD_DEFINED__ */
  289. #ifndef __ID3D12Tools_FWD_DEFINED__
  290. #define __ID3D12Tools_FWD_DEFINED__
  291. typedef interface ID3D12Tools ID3D12Tools;
  292. #endif /* __ID3D12Tools_FWD_DEFINED__ */
  293. #ifndef __ID3D12SDKConfiguration_FWD_DEFINED__
  294. #define __ID3D12SDKConfiguration_FWD_DEFINED__
  295. typedef interface ID3D12SDKConfiguration ID3D12SDKConfiguration;
  296. #endif /* __ID3D12SDKConfiguration_FWD_DEFINED__ */
  297. #ifndef __ID3D12SDKConfiguration1_FWD_DEFINED__
  298. #define __ID3D12SDKConfiguration1_FWD_DEFINED__
  299. typedef interface ID3D12SDKConfiguration1 ID3D12SDKConfiguration1;
  300. #endif /* __ID3D12SDKConfiguration1_FWD_DEFINED__ */
  301. #ifndef __ID3D12DeviceFactory_FWD_DEFINED__
  302. #define __ID3D12DeviceFactory_FWD_DEFINED__
  303. typedef interface ID3D12DeviceFactory ID3D12DeviceFactory;
  304. #endif /* __ID3D12DeviceFactory_FWD_DEFINED__ */
  305. #ifndef __ID3D12DeviceConfiguration_FWD_DEFINED__
  306. #define __ID3D12DeviceConfiguration_FWD_DEFINED__
  307. typedef interface ID3D12DeviceConfiguration ID3D12DeviceConfiguration;
  308. #endif /* __ID3D12DeviceConfiguration_FWD_DEFINED__ */
  309. #ifndef __ID3D12DeviceConfiguration1_FWD_DEFINED__
  310. #define __ID3D12DeviceConfiguration1_FWD_DEFINED__
  311. typedef interface ID3D12DeviceConfiguration1 ID3D12DeviceConfiguration1;
  312. #endif /* __ID3D12DeviceConfiguration1_FWD_DEFINED__ */
  313. #ifndef __ID3D12GraphicsCommandList5_FWD_DEFINED__
  314. #define __ID3D12GraphicsCommandList5_FWD_DEFINED__
  315. typedef interface ID3D12GraphicsCommandList5 ID3D12GraphicsCommandList5;
  316. #endif /* __ID3D12GraphicsCommandList5_FWD_DEFINED__ */
  317. #ifndef __ID3D12GraphicsCommandList6_FWD_DEFINED__
  318. #define __ID3D12GraphicsCommandList6_FWD_DEFINED__
  319. typedef interface ID3D12GraphicsCommandList6 ID3D12GraphicsCommandList6;
  320. #endif /* __ID3D12GraphicsCommandList6_FWD_DEFINED__ */
  321. #ifndef __ID3D12GraphicsCommandList7_FWD_DEFINED__
  322. #define __ID3D12GraphicsCommandList7_FWD_DEFINED__
  323. typedef interface ID3D12GraphicsCommandList7 ID3D12GraphicsCommandList7;
  324. #endif /* __ID3D12GraphicsCommandList7_FWD_DEFINED__ */
  325. #ifndef __ID3D12GraphicsCommandList8_FWD_DEFINED__
  326. #define __ID3D12GraphicsCommandList8_FWD_DEFINED__
  327. typedef interface ID3D12GraphicsCommandList8 ID3D12GraphicsCommandList8;
  328. #endif /* __ID3D12GraphicsCommandList8_FWD_DEFINED__ */
  329. #ifndef __ID3D12GraphicsCommandList9_FWD_DEFINED__
  330. #define __ID3D12GraphicsCommandList9_FWD_DEFINED__
  331. typedef interface ID3D12GraphicsCommandList9 ID3D12GraphicsCommandList9;
  332. #endif /* __ID3D12GraphicsCommandList9_FWD_DEFINED__ */
  333. #ifndef __ID3D12GraphicsCommandList10_FWD_DEFINED__
  334. #define __ID3D12GraphicsCommandList10_FWD_DEFINED__
  335. typedef interface ID3D12GraphicsCommandList10 ID3D12GraphicsCommandList10;
  336. #endif /* __ID3D12GraphicsCommandList10_FWD_DEFINED__ */
  337. #ifndef __ID3D12GBVDiagnostics_FWD_DEFINED__
  338. #define __ID3D12GBVDiagnostics_FWD_DEFINED__
  339. typedef interface ID3D12GBVDiagnostics ID3D12GBVDiagnostics;
  340. #endif /* __ID3D12GBVDiagnostics_FWD_DEFINED__ */
  341. /* header files for imported files */
  342. #include "oaidl.h"
  343. #include "ocidl.h"
  344. #include "dxgicommon.h"
  345. #include "dxgiformat.h"
  346. #include "d3dcommon.h"
  347. #ifdef __cplusplus
  348. extern "C"{
  349. #endif
  350. /* interface __MIDL_itf_d3d12_0000_0000 */
  351. /* [local] */
  352. #include <winapifamily.h>
  353. #ifdef _MSC_VER
  354. #pragma region App Family
  355. #endif
  356. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)
  357. #ifndef _D3D12_CONSTANTS
  358. #define _D3D12_CONSTANTS
  359. #define D3D12_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )
  360. #define D3D12_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )
  361. #define D3D12_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )
  362. #define D3D12_APPEND_ALIGNED_ELEMENT ( 0xffffffff )
  363. #define D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )
  364. #define D3D12_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )
  365. #define D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )
  366. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )
  367. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )
  368. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )
  369. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )
  370. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 )
  371. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )
  372. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )
  373. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )
  374. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )
  375. #define D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )
  376. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )
  377. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )
  378. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )
  379. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )
  380. #define D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )
  381. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )
  382. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )
  383. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )
  384. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )
  385. #define D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )
  386. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )
  387. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )
  388. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )
  389. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )
  390. #define D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )
  391. #define D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )
  392. #define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )
  393. #define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  394. #define D3D12_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )
  395. #define D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )
  396. #define D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )
  397. #define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )
  398. #define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )
  399. #define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )
  400. #define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )
  401. #define D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT ( 256 )
  402. #define D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 )
  403. #define D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 )
  404. #define D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 )
  405. #define D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 )
  406. #define D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 )
  407. #define D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 )
  408. #define D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 )
  409. #define D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 )
  410. #define D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 )
  411. #define D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 )
  412. #define D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 )
  413. #define D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 )
  414. #define D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 )
  415. #define D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 )
  416. #define D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 )
  417. #define D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 )
  418. #define D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 )
  419. #define D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 )
  420. #define D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 )
  421. #define D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 )
  422. #define D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 )
  423. #define D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 )
  424. #define D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 )
  425. #define D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 )
  426. #define D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 )
  427. #define D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 )
  428. #define D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 )
  429. #define D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 )
  430. #define D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 )
  431. #define D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 )
  432. #define D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 )
  433. #define D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 )
  434. #define D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 )
  435. #define D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 )
  436. #define D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 )
  437. #define D3D12_CS_4_X_THREAD_GROUP_MAX_X ( 768 )
  438. #define D3D12_CS_4_X_THREAD_GROUP_MAX_Y ( 768 )
  439. #define D3D12_CS_4_X_UAV_REGISTER_COUNT ( 1 )
  440. #define D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 )
  441. #define D3D12_CS_TGSM_REGISTER_COUNT ( 8192 )
  442. #define D3D12_CS_TGSM_REGISTER_READS_PER_INST ( 1 )
  443. #define D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 )
  444. #define D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 )
  445. #define D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 )
  446. #define D3D12_CS_THREADGROUPID_REGISTER_COUNT ( 1 )
  447. #define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 )
  448. #define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 )
  449. #define D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 )
  450. #define D3D12_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 )
  451. #define D3D12_CS_THREADID_REGISTER_COMPONENTS ( 3 )
  452. #define D3D12_CS_THREADID_REGISTER_COUNT ( 1 )
  453. #define D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 )
  454. #define D3D12_CS_THREAD_GROUP_MAX_X ( 1024 )
  455. #define D3D12_CS_THREAD_GROUP_MAX_Y ( 1024 )
  456. #define D3D12_CS_THREAD_GROUP_MAX_Z ( 64 )
  457. #define D3D12_CS_THREAD_GROUP_MIN_X ( 1 )
  458. #define D3D12_CS_THREAD_GROUP_MIN_Y ( 1 )
  459. #define D3D12_CS_THREAD_GROUP_MIN_Z ( 1 )
  460. #define D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 )
  461. #define D3D12_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )
  462. #define D3D12_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )
  463. #define D3D12_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )
  464. #define D3D12_DEFAULT_BLEND_FACTOR_RED ( 1.0f )
  465. #define D3D12_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )
  466. #define D3D12_DEFAULT_DEPTH_BIAS ( 0 )
  467. #define D3D12_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )
  468. #define D3D12_DEFAULT_MAX_ANISOTROPY ( 16 )
  469. #define D3D12_DEFAULT_MIP_LOD_BIAS ( 0.0f )
  470. #define D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 4194304 )
  471. #define D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )
  472. #define D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )
  473. #define D3D12_DEFAULT_SAMPLE_MASK ( 0xffffffff )
  474. #define D3D12_DEFAULT_SCISSOR_ENDX ( 0 )
  475. #define D3D12_DEFAULT_SCISSOR_ENDY ( 0 )
  476. #define D3D12_DEFAULT_SCISSOR_STARTX ( 0 )
  477. #define D3D12_DEFAULT_SCISSOR_STARTY ( 0 )
  478. #define D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )
  479. #define D3D12_DEFAULT_STENCIL_READ_MASK ( 0xff )
  480. #define D3D12_DEFAULT_STENCIL_REFERENCE ( 0 )
  481. #define D3D12_DEFAULT_STENCIL_WRITE_MASK ( 0xff )
  482. #define D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )
  483. #define D3D12_DEFAULT_VIEWPORT_HEIGHT ( 0 )
  484. #define D3D12_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )
  485. #define D3D12_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )
  486. #define D3D12_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )
  487. #define D3D12_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )
  488. #define D3D12_DEFAULT_VIEWPORT_WIDTH ( 0 )
  489. #define D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND ( 0xffffffff )
  490. #define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END ( 0xfffffff7 )
  491. #define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )
  492. #define D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )
  493. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )
  494. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  495. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 )
  496. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )
  497. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )
  498. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 )
  499. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  500. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 )
  501. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 )
  502. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 )
  503. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )
  504. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  505. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )
  506. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )
  507. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )
  508. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )
  509. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  510. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )
  511. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )
  512. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )
  513. #define D3D12_DS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  514. #define D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  515. #define D3D12_DS_OUTPUT_REGISTER_COUNT ( 32 )
  516. #define D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )
  517. #define D3D12_FLOAT32_MAX ( 3.402823466e+38f )
  518. #define D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )
  519. #define D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )
  520. #define D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )
  521. #define D3D12_FLOAT_TO_SRGB_OFFSET ( 0.055f )
  522. #define D3D12_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )
  523. #define D3D12_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )
  524. #define D3D12_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )
  525. #define D3D12_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )
  526. #define D3D12_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )
  527. #define D3D12_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )
  528. #define D3D12_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )
  529. #define D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 )
  530. #define D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 )
  531. #define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )
  532. #define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  533. #define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 )
  534. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )
  535. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  536. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )
  537. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )
  538. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )
  539. #define D3D12_GS_INPUT_REGISTER_COMPONENTS ( 4 )
  540. #define D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  541. #define D3D12_GS_INPUT_REGISTER_COUNT ( 32 )
  542. #define D3D12_GS_INPUT_REGISTER_READS_PER_INST ( 2 )
  543. #define D3D12_GS_INPUT_REGISTER_READ_PORTS ( 1 )
  544. #define D3D12_GS_INPUT_REGISTER_VERTICES ( 32 )
  545. #define D3D12_GS_MAX_INSTANCE_COUNT ( 32 )
  546. #define D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 )
  547. #define D3D12_GS_OUTPUT_ELEMENTS ( 32 )
  548. #define D3D12_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  549. #define D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  550. #define D3D12_GS_OUTPUT_REGISTER_COUNT ( 32 )
  551. #define D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 )
  552. #define D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 )
  553. #define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )
  554. #define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  555. #define D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )
  556. #define D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )
  557. #define D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )
  558. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )
  559. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  560. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 )
  561. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )
  562. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )
  563. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )
  564. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  565. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 )
  566. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )
  567. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )
  568. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )
  569. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  570. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )
  571. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )
  572. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )
  573. #define D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )
  574. #define D3D12_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )
  575. #define D3D12_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )
  576. #define D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )
  577. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 )
  578. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  579. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 )
  580. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 )
  581. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 )
  582. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )
  583. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  584. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )
  585. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )
  586. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )
  587. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 )
  588. #define D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )
  589. #define D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )
  590. #define D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )
  591. #define D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )
  592. #define D3D12_IA_INSTANCE_ID_BIT_COUNT ( 32 )
  593. #define D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )
  594. #define D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 )
  595. #define D3D12_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )
  596. #define D3D12_IA_VERTEX_ID_BIT_COUNT ( 32 )
  597. #define D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )
  598. #define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )
  599. #define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )
  600. #define D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )
  601. #define D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )
  602. #define D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff )
  603. #define D3D12_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff )
  604. #define D3D12_LINEAR_GAMMA ( 1.0f )
  605. #define D3D12_MAJOR_VERSION ( 12 )
  606. #define D3D12_MAX_BORDER_COLOR_COMPONENT ( 1.0f )
  607. #define D3D12_MAX_DEPTH ( 1.0f )
  608. #define D3D12_MAX_LIVE_STATIC_SAMPLERS ( 2032 )
  609. #define D3D12_MAX_MAXANISOTROPY ( 16 )
  610. #define D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )
  611. #define D3D12_MAX_POSITION_VALUE ( 3.402823466e+34f )
  612. #define D3D12_MAX_ROOT_COST ( 64 )
  613. #define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 ( 1000000 )
  614. #define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 ( 1000000 )
  615. #define D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE ( 2048 )
  616. #define D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )
  617. #define D3D12_MAX_VIEW_INSTANCE_COUNT ( 4 )
  618. #define D3D12_MINOR_VERSION ( 0 )
  619. #define D3D12_MIN_BORDER_COLOR_COMPONENT ( 0.0f )
  620. #define D3D12_MIN_DEPTH ( 0.0f )
  621. #define D3D12_MIN_MAXANISOTROPY ( 0 )
  622. #define D3D12_MIP_LOD_BIAS_MAX ( 15.99f )
  623. #define D3D12_MIP_LOD_BIAS_MIN ( -16.0f )
  624. #define D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 )
  625. #define D3D12_MIP_LOD_RANGE_BIT_COUNT ( 8 )
  626. #define D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )
  627. #define D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )
  628. #define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )
  629. #define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff8 )
  630. #define D3D12_PACKED_TILE ( 0xffffffff )
  631. #define D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )
  632. #define D3D12_PREVIEW_SDK_VERSION ( 714 )
  633. #define D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )
  634. #define D3D12_PS_CS_UAV_REGISTER_COMPONENTS ( 1 )
  635. #define D3D12_PS_CS_UAV_REGISTER_COUNT ( 8 )
  636. #define D3D12_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 )
  637. #define D3D12_PS_CS_UAV_REGISTER_READ_PORTS ( 1 )
  638. #define D3D12_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )
  639. #define D3D12_PS_FRONTFACING_FALSE_VALUE ( 0 )
  640. #define D3D12_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )
  641. #define D3D12_PS_INPUT_REGISTER_COMPONENTS ( 4 )
  642. #define D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  643. #define D3D12_PS_INPUT_REGISTER_COUNT ( 32 )
  644. #define D3D12_PS_INPUT_REGISTER_READS_PER_INST ( 2 )
  645. #define D3D12_PS_INPUT_REGISTER_READ_PORTS ( 1 )
  646. #define D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )
  647. #define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )
  648. #define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  649. #define D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )
  650. #define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )
  651. #define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  652. #define D3D12_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )
  653. #define D3D12_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  654. #define D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  655. #define D3D12_PS_OUTPUT_REGISTER_COUNT ( 8 )
  656. #define D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )
  657. #define D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 )
  658. #define D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT ( 8 )
  659. #define D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT ( 256 )
  660. #define D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT ( 16 )
  661. #define D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES ( 32 )
  662. #define D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH ( 31 )
  663. #define D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )
  664. #define D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )
  665. #define D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 536870912 )
  666. #define D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS ( 1073741824 )
  667. #define D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE ( 4096 )
  668. #define D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT ( 32 )
  669. #define D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT ( 64 )
  670. #define D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT ( 16 )
  671. #define D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 )
  672. #define D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )
  673. #define D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )
  674. #define D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 )
  675. #define D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )
  676. #define D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )
  677. #define D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 )
  678. #define D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )
  679. #define D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )
  680. #define D3D12_REQ_MAXANISOTROPY ( 16 )
  681. #define D3D12_REQ_MIP_LEVELS ( 15 )
  682. #define D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )
  683. #define D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 )
  684. #define D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 )
  685. #define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 )
  686. #define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )
  687. #define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 )
  688. #define D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 )
  689. #define D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 )
  690. #define D3D12_REQ_SUBRESOURCES ( 30720 )
  691. #define D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 )
  692. #define D3D12_REQ_TEXTURE1D_U_DIMENSION ( 16384 )
  693. #define D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 )
  694. #define D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 )
  695. #define D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )
  696. #define D3D12_REQ_TEXTURECUBE_DIMENSION ( 16384 )
  697. #define D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )
  698. #define D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES ( 0xffffffff )
  699. #define D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT ( 2 )
  700. #define D3D12_SDK_VERSION ( 614 )
  701. #define D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES ( 32 )
  702. #define D3D12_SHADER_MAJOR_VERSION ( 5 )
  703. #define D3D12_SHADER_MAX_INSTANCES ( 65535 )
  704. #define D3D12_SHADER_MAX_INTERFACES ( 253 )
  705. #define D3D12_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 )
  706. #define D3D12_SHADER_MAX_TYPES ( 65535 )
  707. #define D3D12_SHADER_MINOR_VERSION ( 1 )
  708. #define D3D12_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )
  709. #define D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )
  710. #define D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )
  711. #define D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )
  712. #define D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT ( 4096 )
  713. #define D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )
  714. #define D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 )
  715. #define D3D12_SO_BUFFER_SLOT_COUNT ( 4 )
  716. #define D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )
  717. #define D3D12_SO_NO_RASTERIZED_STREAM ( 0xffffffff )
  718. #define D3D12_SO_OUTPUT_COMPONENT_COUNT ( 128 )
  719. #define D3D12_SO_STREAM_COUNT ( 4 )
  720. #define D3D12_SPEC_DATE_DAY ( 14 )
  721. #define D3D12_SPEC_DATE_MONTH ( 11 )
  722. #define D3D12_SPEC_DATE_YEAR ( 2014 )
  723. #define D3D12_SPEC_VERSION ( 1.16 )
  724. #define D3D12_SRGB_GAMMA ( 2.2f )
  725. #define D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )
  726. #define D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )
  727. #define D3D12_SRGB_TO_FLOAT_EXPONENT ( 2.4f )
  728. #define D3D12_SRGB_TO_FLOAT_OFFSET ( 0.055f )
  729. #define D3D12_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )
  730. #define D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )
  731. #define D3D12_STANDARD_COMPONENT_BIT_COUNT ( 32 )
  732. #define D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )
  733. #define D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )
  734. #define D3D12_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )
  735. #define D3D12_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )
  736. #define D3D12_STANDARD_VECTOR_SIZE ( 4 )
  737. #define D3D12_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )
  738. #define D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )
  739. #define D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )
  740. #define D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 )
  741. #define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )
  742. #define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )
  743. #define D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 )
  744. #define D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 )
  745. #define D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 )
  746. #define D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 )
  747. #define D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 )
  748. #define D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 )
  749. #define D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 )
  750. #define D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )
  751. #define D3D12_TEXTURE_DATA_PITCH_ALIGNMENT ( 256 )
  752. #define D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT ( 512 )
  753. #define D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 )
  754. #define D3D12_TRACKED_WORKLOAD_MAX_INSTANCES ( 32 )
  755. #define D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT ( 4096 )
  756. #define D3D12_UAV_SLOT_COUNT ( 64 )
  757. #define D3D12_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )
  758. #define D3D12_VIDEO_DECODE_MAX_ARGUMENTS ( 10 )
  759. #define D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS ( 4 )
  760. #define D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT ( 256 )
  761. #define D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT ( 256 )
  762. #define D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN ( 0xffffffff )
  763. #define D3D12_VIDEO_ENCODER_AV1_INVALID_DPB_RESOURCE_INDEX ( 0xff )
  764. #define D3D12_VIDEO_ENCODER_AV1_MAX_TILE_COLS ( 64 )
  765. #define D3D12_VIDEO_ENCODER_AV1_MAX_TILE_ROWS ( 64 )
  766. #define D3D12_VIDEO_ENCODER_AV1_SUPERRES_DENOM_MIN ( 9 )
  767. #define D3D12_VIDEO_ENCODER_AV1_SUPERRES_NUM ( 8 )
  768. #define D3D12_VIDEO_PROCESS_MAX_FILTERS ( 32 )
  769. #define D3D12_VIDEO_PROCESS_STEREO_VIEWS ( 2 )
  770. #define D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )
  771. #define D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )
  772. #define D3D12_VIEWPORT_BOUNDS_MAX ( 32767 )
  773. #define D3D12_VIEWPORT_BOUNDS_MIN ( -32768 )
  774. #define D3D12_VS_INPUT_REGISTER_COMPONENTS ( 4 )
  775. #define D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  776. #define D3D12_VS_INPUT_REGISTER_COUNT ( 32 )
  777. #define D3D12_VS_INPUT_REGISTER_READS_PER_INST ( 2 )
  778. #define D3D12_VS_INPUT_REGISTER_READ_PORTS ( 1 )
  779. #define D3D12_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  780. #define D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  781. #define D3D12_VS_OUTPUT_REGISTER_COUNT ( 32 )
  782. #define D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )
  783. #define D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )
  784. #define D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )
  785. #define D3D12_WORK_GRAPHS_BACKING_MEMORY_ALIGNMENT_IN_BYTES ( 8 )
  786. #define D3D12_WORK_GRAPHS_MAX_NODE_DEPTH ( 32 )
  787. #endif
  788. typedef UINT64 D3D12_GPU_VIRTUAL_ADDRESS;
  789. typedef
  790. enum D3D12_COMMAND_LIST_TYPE
  791. {
  792. D3D12_COMMAND_LIST_TYPE_DIRECT = 0,
  793. D3D12_COMMAND_LIST_TYPE_BUNDLE = 1,
  794. D3D12_COMMAND_LIST_TYPE_COMPUTE = 2,
  795. D3D12_COMMAND_LIST_TYPE_COPY = 3,
  796. D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE = 4,
  797. D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS = 5,
  798. D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE = 6,
  799. D3D12_COMMAND_LIST_TYPE_NONE = -1
  800. } D3D12_COMMAND_LIST_TYPE;
  801. typedef
  802. enum D3D12_COMMAND_QUEUE_FLAGS
  803. {
  804. D3D12_COMMAND_QUEUE_FLAG_NONE = 0,
  805. D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT = 0x1
  806. } D3D12_COMMAND_QUEUE_FLAGS;
  807. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_QUEUE_FLAGS )
  808. typedef
  809. enum D3D12_COMMAND_QUEUE_PRIORITY
  810. {
  811. D3D12_COMMAND_QUEUE_PRIORITY_NORMAL = 0,
  812. D3D12_COMMAND_QUEUE_PRIORITY_HIGH = 100,
  813. D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME = 10000
  814. } D3D12_COMMAND_QUEUE_PRIORITY;
  815. typedef struct D3D12_COMMAND_QUEUE_DESC
  816. {
  817. D3D12_COMMAND_LIST_TYPE Type;
  818. INT Priority;
  819. D3D12_COMMAND_QUEUE_FLAGS Flags;
  820. UINT NodeMask;
  821. } D3D12_COMMAND_QUEUE_DESC;
  822. typedef
  823. enum D3D12_PRIMITIVE_TOPOLOGY_TYPE
  824. {
  825. D3D12_PRIMITIVE_TOPOLOGY_TYPE_UNDEFINED = 0,
  826. D3D12_PRIMITIVE_TOPOLOGY_TYPE_POINT = 1,
  827. D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE = 2,
  828. D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE = 3,
  829. D3D12_PRIMITIVE_TOPOLOGY_TYPE_PATCH = 4
  830. } D3D12_PRIMITIVE_TOPOLOGY_TYPE;
  831. typedef
  832. enum D3D12_INPUT_CLASSIFICATION
  833. {
  834. D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA = 0,
  835. D3D12_INPUT_CLASSIFICATION_PER_INSTANCE_DATA = 1
  836. } D3D12_INPUT_CLASSIFICATION;
  837. typedef struct D3D12_INPUT_ELEMENT_DESC
  838. {
  839. LPCSTR SemanticName;
  840. UINT SemanticIndex;
  841. DXGI_FORMAT Format;
  842. UINT InputSlot;
  843. UINT AlignedByteOffset;
  844. D3D12_INPUT_CLASSIFICATION InputSlotClass;
  845. UINT InstanceDataStepRate;
  846. } D3D12_INPUT_ELEMENT_DESC;
  847. typedef
  848. enum D3D12_FILL_MODE
  849. {
  850. D3D12_FILL_MODE_WIREFRAME = 2,
  851. D3D12_FILL_MODE_SOLID = 3
  852. } D3D12_FILL_MODE;
  853. typedef D3D_PRIMITIVE_TOPOLOGY D3D12_PRIMITIVE_TOPOLOGY;
  854. typedef D3D_PRIMITIVE D3D12_PRIMITIVE;
  855. typedef
  856. enum D3D12_CULL_MODE
  857. {
  858. D3D12_CULL_MODE_NONE = 1,
  859. D3D12_CULL_MODE_FRONT = 2,
  860. D3D12_CULL_MODE_BACK = 3
  861. } D3D12_CULL_MODE;
  862. typedef struct D3D12_SO_DECLARATION_ENTRY
  863. {
  864. UINT Stream;
  865. LPCSTR SemanticName;
  866. UINT SemanticIndex;
  867. BYTE StartComponent;
  868. BYTE ComponentCount;
  869. BYTE OutputSlot;
  870. } D3D12_SO_DECLARATION_ENTRY;
  871. typedef struct D3D12_VIEWPORT
  872. {
  873. FLOAT TopLeftX;
  874. FLOAT TopLeftY;
  875. FLOAT Width;
  876. FLOAT Height;
  877. FLOAT MinDepth;
  878. FLOAT MaxDepth;
  879. } D3D12_VIEWPORT;
  880. typedef RECT D3D12_RECT;
  881. typedef struct D3D12_BOX
  882. {
  883. UINT left;
  884. UINT top;
  885. UINT front;
  886. UINT right;
  887. UINT bottom;
  888. UINT back;
  889. } D3D12_BOX;
  890. typedef
  891. enum D3D12_COMPARISON_FUNC
  892. {
  893. D3D12_COMPARISON_FUNC_NONE = 0,
  894. D3D12_COMPARISON_FUNC_NEVER = 1,
  895. D3D12_COMPARISON_FUNC_LESS = 2,
  896. D3D12_COMPARISON_FUNC_EQUAL = 3,
  897. D3D12_COMPARISON_FUNC_LESS_EQUAL = 4,
  898. D3D12_COMPARISON_FUNC_GREATER = 5,
  899. D3D12_COMPARISON_FUNC_NOT_EQUAL = 6,
  900. D3D12_COMPARISON_FUNC_GREATER_EQUAL = 7,
  901. D3D12_COMPARISON_FUNC_ALWAYS = 8
  902. } D3D12_COMPARISON_FUNC;
  903. typedef
  904. enum D3D12_DEPTH_WRITE_MASK
  905. {
  906. D3D12_DEPTH_WRITE_MASK_ZERO = 0,
  907. D3D12_DEPTH_WRITE_MASK_ALL = 1
  908. } D3D12_DEPTH_WRITE_MASK;
  909. typedef
  910. enum D3D12_STENCIL_OP
  911. {
  912. D3D12_STENCIL_OP_KEEP = 1,
  913. D3D12_STENCIL_OP_ZERO = 2,
  914. D3D12_STENCIL_OP_REPLACE = 3,
  915. D3D12_STENCIL_OP_INCR_SAT = 4,
  916. D3D12_STENCIL_OP_DECR_SAT = 5,
  917. D3D12_STENCIL_OP_INVERT = 6,
  918. D3D12_STENCIL_OP_INCR = 7,
  919. D3D12_STENCIL_OP_DECR = 8
  920. } D3D12_STENCIL_OP;
  921. typedef struct D3D12_DEPTH_STENCILOP_DESC
  922. {
  923. D3D12_STENCIL_OP StencilFailOp;
  924. D3D12_STENCIL_OP StencilDepthFailOp;
  925. D3D12_STENCIL_OP StencilPassOp;
  926. D3D12_COMPARISON_FUNC StencilFunc;
  927. } D3D12_DEPTH_STENCILOP_DESC;
  928. typedef struct D3D12_DEPTH_STENCIL_DESC
  929. {
  930. BOOL DepthEnable;
  931. D3D12_DEPTH_WRITE_MASK DepthWriteMask;
  932. D3D12_COMPARISON_FUNC DepthFunc;
  933. BOOL StencilEnable;
  934. UINT8 StencilReadMask;
  935. UINT8 StencilWriteMask;
  936. D3D12_DEPTH_STENCILOP_DESC FrontFace;
  937. D3D12_DEPTH_STENCILOP_DESC BackFace;
  938. } D3D12_DEPTH_STENCIL_DESC;
  939. typedef struct D3D12_DEPTH_STENCIL_DESC1
  940. {
  941. BOOL DepthEnable;
  942. D3D12_DEPTH_WRITE_MASK DepthWriteMask;
  943. D3D12_COMPARISON_FUNC DepthFunc;
  944. BOOL StencilEnable;
  945. UINT8 StencilReadMask;
  946. UINT8 StencilWriteMask;
  947. D3D12_DEPTH_STENCILOP_DESC FrontFace;
  948. D3D12_DEPTH_STENCILOP_DESC BackFace;
  949. BOOL DepthBoundsTestEnable;
  950. } D3D12_DEPTH_STENCIL_DESC1;
  951. typedef struct D3D12_DEPTH_STENCILOP_DESC1
  952. {
  953. D3D12_STENCIL_OP StencilFailOp;
  954. D3D12_STENCIL_OP StencilDepthFailOp;
  955. D3D12_STENCIL_OP StencilPassOp;
  956. D3D12_COMPARISON_FUNC StencilFunc;
  957. UINT8 StencilReadMask;
  958. UINT8 StencilWriteMask;
  959. } D3D12_DEPTH_STENCILOP_DESC1;
  960. typedef struct D3D12_DEPTH_STENCIL_DESC2
  961. {
  962. BOOL DepthEnable;
  963. D3D12_DEPTH_WRITE_MASK DepthWriteMask;
  964. D3D12_COMPARISON_FUNC DepthFunc;
  965. BOOL StencilEnable;
  966. D3D12_DEPTH_STENCILOP_DESC1 FrontFace;
  967. D3D12_DEPTH_STENCILOP_DESC1 BackFace;
  968. BOOL DepthBoundsTestEnable;
  969. } D3D12_DEPTH_STENCIL_DESC2;
  970. typedef
  971. enum D3D12_BLEND
  972. {
  973. D3D12_BLEND_ZERO = 1,
  974. D3D12_BLEND_ONE = 2,
  975. D3D12_BLEND_SRC_COLOR = 3,
  976. D3D12_BLEND_INV_SRC_COLOR = 4,
  977. D3D12_BLEND_SRC_ALPHA = 5,
  978. D3D12_BLEND_INV_SRC_ALPHA = 6,
  979. D3D12_BLEND_DEST_ALPHA = 7,
  980. D3D12_BLEND_INV_DEST_ALPHA = 8,
  981. D3D12_BLEND_DEST_COLOR = 9,
  982. D3D12_BLEND_INV_DEST_COLOR = 10,
  983. D3D12_BLEND_SRC_ALPHA_SAT = 11,
  984. D3D12_BLEND_BLEND_FACTOR = 14,
  985. D3D12_BLEND_INV_BLEND_FACTOR = 15,
  986. D3D12_BLEND_SRC1_COLOR = 16,
  987. D3D12_BLEND_INV_SRC1_COLOR = 17,
  988. D3D12_BLEND_SRC1_ALPHA = 18,
  989. D3D12_BLEND_INV_SRC1_ALPHA = 19,
  990. D3D12_BLEND_ALPHA_FACTOR = 20,
  991. D3D12_BLEND_INV_ALPHA_FACTOR = 21
  992. } D3D12_BLEND;
  993. typedef
  994. enum D3D12_BLEND_OP
  995. {
  996. D3D12_BLEND_OP_ADD = 1,
  997. D3D12_BLEND_OP_SUBTRACT = 2,
  998. D3D12_BLEND_OP_REV_SUBTRACT = 3,
  999. D3D12_BLEND_OP_MIN = 4,
  1000. D3D12_BLEND_OP_MAX = 5
  1001. } D3D12_BLEND_OP;
  1002. typedef
  1003. enum D3D12_COLOR_WRITE_ENABLE
  1004. {
  1005. D3D12_COLOR_WRITE_ENABLE_RED = 1,
  1006. D3D12_COLOR_WRITE_ENABLE_GREEN = 2,
  1007. D3D12_COLOR_WRITE_ENABLE_BLUE = 4,
  1008. D3D12_COLOR_WRITE_ENABLE_ALPHA = 8,
  1009. D3D12_COLOR_WRITE_ENABLE_ALL = ( ( ( D3D12_COLOR_WRITE_ENABLE_RED | D3D12_COLOR_WRITE_ENABLE_GREEN ) | D3D12_COLOR_WRITE_ENABLE_BLUE ) | D3D12_COLOR_WRITE_ENABLE_ALPHA )
  1010. } D3D12_COLOR_WRITE_ENABLE;
  1011. typedef
  1012. enum D3D12_LOGIC_OP
  1013. {
  1014. D3D12_LOGIC_OP_CLEAR = 0,
  1015. D3D12_LOGIC_OP_SET = ( D3D12_LOGIC_OP_CLEAR + 1 ) ,
  1016. D3D12_LOGIC_OP_COPY = ( D3D12_LOGIC_OP_SET + 1 ) ,
  1017. D3D12_LOGIC_OP_COPY_INVERTED = ( D3D12_LOGIC_OP_COPY + 1 ) ,
  1018. D3D12_LOGIC_OP_NOOP = ( D3D12_LOGIC_OP_COPY_INVERTED + 1 ) ,
  1019. D3D12_LOGIC_OP_INVERT = ( D3D12_LOGIC_OP_NOOP + 1 ) ,
  1020. D3D12_LOGIC_OP_AND = ( D3D12_LOGIC_OP_INVERT + 1 ) ,
  1021. D3D12_LOGIC_OP_NAND = ( D3D12_LOGIC_OP_AND + 1 ) ,
  1022. D3D12_LOGIC_OP_OR = ( D3D12_LOGIC_OP_NAND + 1 ) ,
  1023. D3D12_LOGIC_OP_NOR = ( D3D12_LOGIC_OP_OR + 1 ) ,
  1024. D3D12_LOGIC_OP_XOR = ( D3D12_LOGIC_OP_NOR + 1 ) ,
  1025. D3D12_LOGIC_OP_EQUIV = ( D3D12_LOGIC_OP_XOR + 1 ) ,
  1026. D3D12_LOGIC_OP_AND_REVERSE = ( D3D12_LOGIC_OP_EQUIV + 1 ) ,
  1027. D3D12_LOGIC_OP_AND_INVERTED = ( D3D12_LOGIC_OP_AND_REVERSE + 1 ) ,
  1028. D3D12_LOGIC_OP_OR_REVERSE = ( D3D12_LOGIC_OP_AND_INVERTED + 1 ) ,
  1029. D3D12_LOGIC_OP_OR_INVERTED = ( D3D12_LOGIC_OP_OR_REVERSE + 1 )
  1030. } D3D12_LOGIC_OP;
  1031. typedef struct D3D12_RENDER_TARGET_BLEND_DESC
  1032. {
  1033. BOOL BlendEnable;
  1034. BOOL LogicOpEnable;
  1035. D3D12_BLEND SrcBlend;
  1036. D3D12_BLEND DestBlend;
  1037. D3D12_BLEND_OP BlendOp;
  1038. D3D12_BLEND SrcBlendAlpha;
  1039. D3D12_BLEND DestBlendAlpha;
  1040. D3D12_BLEND_OP BlendOpAlpha;
  1041. D3D12_LOGIC_OP LogicOp;
  1042. UINT8 RenderTargetWriteMask;
  1043. } D3D12_RENDER_TARGET_BLEND_DESC;
  1044. typedef struct D3D12_BLEND_DESC
  1045. {
  1046. BOOL AlphaToCoverageEnable;
  1047. BOOL IndependentBlendEnable;
  1048. D3D12_RENDER_TARGET_BLEND_DESC RenderTarget[ 8 ];
  1049. } D3D12_BLEND_DESC;
  1050. /* Note, the array size for RenderTarget[] above is D3D12_SIMULTANEOUS_RENDERTARGET_COUNT.
  1051. IDL processing/generation of this header replaces the define; this comment is merely explaining what happened. */
  1052. typedef
  1053. enum D3D12_CONSERVATIVE_RASTERIZATION_MODE
  1054. {
  1055. D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF = 0,
  1056. D3D12_CONSERVATIVE_RASTERIZATION_MODE_ON = 1
  1057. } D3D12_CONSERVATIVE_RASTERIZATION_MODE;
  1058. typedef struct D3D12_RASTERIZER_DESC
  1059. {
  1060. D3D12_FILL_MODE FillMode;
  1061. D3D12_CULL_MODE CullMode;
  1062. BOOL FrontCounterClockwise;
  1063. INT DepthBias;
  1064. FLOAT DepthBiasClamp;
  1065. FLOAT SlopeScaledDepthBias;
  1066. BOOL DepthClipEnable;
  1067. BOOL MultisampleEnable;
  1068. BOOL AntialiasedLineEnable;
  1069. UINT ForcedSampleCount;
  1070. D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster;
  1071. } D3D12_RASTERIZER_DESC;
  1072. typedef struct D3D12_RASTERIZER_DESC1
  1073. {
  1074. D3D12_FILL_MODE FillMode;
  1075. D3D12_CULL_MODE CullMode;
  1076. BOOL FrontCounterClockwise;
  1077. FLOAT DepthBias;
  1078. FLOAT DepthBiasClamp;
  1079. FLOAT SlopeScaledDepthBias;
  1080. BOOL DepthClipEnable;
  1081. BOOL MultisampleEnable;
  1082. BOOL AntialiasedLineEnable;
  1083. UINT ForcedSampleCount;
  1084. D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster;
  1085. } D3D12_RASTERIZER_DESC1;
  1086. typedef
  1087. enum D3D12_LINE_RASTERIZATION_MODE
  1088. {
  1089. D3D12_LINE_RASTERIZATION_MODE_ALIASED = 0,
  1090. D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED = ( D3D12_LINE_RASTERIZATION_MODE_ALIASED + 1 ) ,
  1091. D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE = ( D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED + 1 ) ,
  1092. D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_NARROW = ( D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE + 1 )
  1093. } D3D12_LINE_RASTERIZATION_MODE;
  1094. typedef struct D3D12_RASTERIZER_DESC2
  1095. {
  1096. D3D12_FILL_MODE FillMode;
  1097. D3D12_CULL_MODE CullMode;
  1098. BOOL FrontCounterClockwise;
  1099. FLOAT DepthBias;
  1100. FLOAT DepthBiasClamp;
  1101. FLOAT SlopeScaledDepthBias;
  1102. BOOL DepthClipEnable;
  1103. D3D12_LINE_RASTERIZATION_MODE LineRasterizationMode;
  1104. UINT ForcedSampleCount;
  1105. D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster;
  1106. } D3D12_RASTERIZER_DESC2;
  1107. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0000_v0_0_c_ifspec;
  1108. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0000_v0_0_s_ifspec;
  1109. #ifndef __ID3D12Object_INTERFACE_DEFINED__
  1110. #define __ID3D12Object_INTERFACE_DEFINED__
  1111. /* interface ID3D12Object */
  1112. /* [unique][local][object][uuid] */
  1113. EXTERN_C const IID IID_ID3D12Object;
  1114. #if defined(__cplusplus) && !defined(CINTERFACE)
  1115. MIDL_INTERFACE("c4fec28f-7966-4e95-9f94-f431cb56c3b8")
  1116. ID3D12Object : public IUnknown
  1117. {
  1118. public:
  1119. virtual HRESULT STDMETHODCALLTYPE GetPrivateData(
  1120. _In_ REFGUID guid,
  1121. _Inout_ UINT *pDataSize,
  1122. _Out_writes_bytes_opt_( *pDataSize ) void *pData) = 0;
  1123. virtual HRESULT STDMETHODCALLTYPE SetPrivateData(
  1124. _In_ REFGUID guid,
  1125. _In_ UINT DataSize,
  1126. _In_reads_bytes_opt_( DataSize ) const void *pData) = 0;
  1127. virtual HRESULT STDMETHODCALLTYPE SetPrivateDataInterface(
  1128. _In_ REFGUID guid,
  1129. _In_opt_ const IUnknown *pData) = 0;
  1130. virtual HRESULT STDMETHODCALLTYPE SetName(
  1131. _In_z_ LPCWSTR Name) = 0;
  1132. };
  1133. #else /* C style interface */
  1134. typedef struct ID3D12ObjectVtbl
  1135. {
  1136. BEGIN_INTERFACE
  1137. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  1138. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1139. ID3D12Object * This,
  1140. REFIID riid,
  1141. _COM_Outptr_ void **ppvObject);
  1142. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  1143. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1144. ID3D12Object * This);
  1145. DECLSPEC_XFGVIRT(IUnknown, Release)
  1146. ULONG ( STDMETHODCALLTYPE *Release )(
  1147. ID3D12Object * This);
  1148. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  1149. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1150. ID3D12Object * This,
  1151. _In_ REFGUID guid,
  1152. _Inout_ UINT *pDataSize,
  1153. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1154. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  1155. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1156. ID3D12Object * This,
  1157. _In_ REFGUID guid,
  1158. _In_ UINT DataSize,
  1159. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1160. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  1161. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1162. ID3D12Object * This,
  1163. _In_ REFGUID guid,
  1164. _In_opt_ const IUnknown *pData);
  1165. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  1166. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1167. ID3D12Object * This,
  1168. _In_z_ LPCWSTR Name);
  1169. END_INTERFACE
  1170. } ID3D12ObjectVtbl;
  1171. interface ID3D12Object
  1172. {
  1173. CONST_VTBL struct ID3D12ObjectVtbl *lpVtbl;
  1174. };
  1175. #ifdef COBJMACROS
  1176. #define ID3D12Object_QueryInterface(This,riid,ppvObject) \
  1177. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1178. #define ID3D12Object_AddRef(This) \
  1179. ( (This)->lpVtbl -> AddRef(This) )
  1180. #define ID3D12Object_Release(This) \
  1181. ( (This)->lpVtbl -> Release(This) )
  1182. #define ID3D12Object_GetPrivateData(This,guid,pDataSize,pData) \
  1183. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1184. #define ID3D12Object_SetPrivateData(This,guid,DataSize,pData) \
  1185. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1186. #define ID3D12Object_SetPrivateDataInterface(This,guid,pData) \
  1187. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1188. #define ID3D12Object_SetName(This,Name) \
  1189. ( (This)->lpVtbl -> SetName(This,Name) )
  1190. #endif /* COBJMACROS */
  1191. #endif /* C style interface */
  1192. #endif /* __ID3D12Object_INTERFACE_DEFINED__ */
  1193. #ifndef __ID3D12DeviceChild_INTERFACE_DEFINED__
  1194. #define __ID3D12DeviceChild_INTERFACE_DEFINED__
  1195. /* interface ID3D12DeviceChild */
  1196. /* [unique][local][object][uuid] */
  1197. EXTERN_C const IID IID_ID3D12DeviceChild;
  1198. #if defined(__cplusplus) && !defined(CINTERFACE)
  1199. MIDL_INTERFACE("905db94b-a00c-4140-9df5-2b64ca9ea357")
  1200. ID3D12DeviceChild : public ID3D12Object
  1201. {
  1202. public:
  1203. virtual HRESULT STDMETHODCALLTYPE GetDevice(
  1204. REFIID riid,
  1205. _COM_Outptr_opt_ void **ppvDevice) = 0;
  1206. };
  1207. #else /* C style interface */
  1208. typedef struct ID3D12DeviceChildVtbl
  1209. {
  1210. BEGIN_INTERFACE
  1211. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  1212. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1213. ID3D12DeviceChild * This,
  1214. REFIID riid,
  1215. _COM_Outptr_ void **ppvObject);
  1216. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  1217. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1218. ID3D12DeviceChild * This);
  1219. DECLSPEC_XFGVIRT(IUnknown, Release)
  1220. ULONG ( STDMETHODCALLTYPE *Release )(
  1221. ID3D12DeviceChild * This);
  1222. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  1223. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1224. ID3D12DeviceChild * This,
  1225. _In_ REFGUID guid,
  1226. _Inout_ UINT *pDataSize,
  1227. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1228. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  1229. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1230. ID3D12DeviceChild * This,
  1231. _In_ REFGUID guid,
  1232. _In_ UINT DataSize,
  1233. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1234. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  1235. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1236. ID3D12DeviceChild * This,
  1237. _In_ REFGUID guid,
  1238. _In_opt_ const IUnknown *pData);
  1239. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  1240. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1241. ID3D12DeviceChild * This,
  1242. _In_z_ LPCWSTR Name);
  1243. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  1244. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  1245. ID3D12DeviceChild * This,
  1246. REFIID riid,
  1247. _COM_Outptr_opt_ void **ppvDevice);
  1248. END_INTERFACE
  1249. } ID3D12DeviceChildVtbl;
  1250. interface ID3D12DeviceChild
  1251. {
  1252. CONST_VTBL struct ID3D12DeviceChildVtbl *lpVtbl;
  1253. };
  1254. #ifdef COBJMACROS
  1255. #define ID3D12DeviceChild_QueryInterface(This,riid,ppvObject) \
  1256. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1257. #define ID3D12DeviceChild_AddRef(This) \
  1258. ( (This)->lpVtbl -> AddRef(This) )
  1259. #define ID3D12DeviceChild_Release(This) \
  1260. ( (This)->lpVtbl -> Release(This) )
  1261. #define ID3D12DeviceChild_GetPrivateData(This,guid,pDataSize,pData) \
  1262. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1263. #define ID3D12DeviceChild_SetPrivateData(This,guid,DataSize,pData) \
  1264. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1265. #define ID3D12DeviceChild_SetPrivateDataInterface(This,guid,pData) \
  1266. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1267. #define ID3D12DeviceChild_SetName(This,Name) \
  1268. ( (This)->lpVtbl -> SetName(This,Name) )
  1269. #define ID3D12DeviceChild_GetDevice(This,riid,ppvDevice) \
  1270. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  1271. #endif /* COBJMACROS */
  1272. #endif /* C style interface */
  1273. #endif /* __ID3D12DeviceChild_INTERFACE_DEFINED__ */
  1274. #ifndef __ID3D12RootSignature_INTERFACE_DEFINED__
  1275. #define __ID3D12RootSignature_INTERFACE_DEFINED__
  1276. /* interface ID3D12RootSignature */
  1277. /* [unique][local][object][uuid] */
  1278. EXTERN_C const IID IID_ID3D12RootSignature;
  1279. #if defined(__cplusplus) && !defined(CINTERFACE)
  1280. MIDL_INTERFACE("c54a6b66-72df-4ee8-8be5-a946a1429214")
  1281. ID3D12RootSignature : public ID3D12DeviceChild
  1282. {
  1283. public:
  1284. };
  1285. #else /* C style interface */
  1286. typedef struct ID3D12RootSignatureVtbl
  1287. {
  1288. BEGIN_INTERFACE
  1289. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  1290. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1291. ID3D12RootSignature * This,
  1292. REFIID riid,
  1293. _COM_Outptr_ void **ppvObject);
  1294. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  1295. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1296. ID3D12RootSignature * This);
  1297. DECLSPEC_XFGVIRT(IUnknown, Release)
  1298. ULONG ( STDMETHODCALLTYPE *Release )(
  1299. ID3D12RootSignature * This);
  1300. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  1301. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1302. ID3D12RootSignature * This,
  1303. _In_ REFGUID guid,
  1304. _Inout_ UINT *pDataSize,
  1305. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1306. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  1307. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1308. ID3D12RootSignature * This,
  1309. _In_ REFGUID guid,
  1310. _In_ UINT DataSize,
  1311. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1312. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  1313. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1314. ID3D12RootSignature * This,
  1315. _In_ REFGUID guid,
  1316. _In_opt_ const IUnknown *pData);
  1317. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  1318. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1319. ID3D12RootSignature * This,
  1320. _In_z_ LPCWSTR Name);
  1321. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  1322. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  1323. ID3D12RootSignature * This,
  1324. REFIID riid,
  1325. _COM_Outptr_opt_ void **ppvDevice);
  1326. END_INTERFACE
  1327. } ID3D12RootSignatureVtbl;
  1328. interface ID3D12RootSignature
  1329. {
  1330. CONST_VTBL struct ID3D12RootSignatureVtbl *lpVtbl;
  1331. };
  1332. #ifdef COBJMACROS
  1333. #define ID3D12RootSignature_QueryInterface(This,riid,ppvObject) \
  1334. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1335. #define ID3D12RootSignature_AddRef(This) \
  1336. ( (This)->lpVtbl -> AddRef(This) )
  1337. #define ID3D12RootSignature_Release(This) \
  1338. ( (This)->lpVtbl -> Release(This) )
  1339. #define ID3D12RootSignature_GetPrivateData(This,guid,pDataSize,pData) \
  1340. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1341. #define ID3D12RootSignature_SetPrivateData(This,guid,DataSize,pData) \
  1342. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1343. #define ID3D12RootSignature_SetPrivateDataInterface(This,guid,pData) \
  1344. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1345. #define ID3D12RootSignature_SetName(This,Name) \
  1346. ( (This)->lpVtbl -> SetName(This,Name) )
  1347. #define ID3D12RootSignature_GetDevice(This,riid,ppvDevice) \
  1348. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  1349. #endif /* COBJMACROS */
  1350. #endif /* C style interface */
  1351. #endif /* __ID3D12RootSignature_INTERFACE_DEFINED__ */
  1352. /* interface __MIDL_itf_d3d12_0000_0001 */
  1353. /* [local] */
  1354. typedef struct D3D12_SHADER_BYTECODE
  1355. {
  1356. _Field_size_bytes_full_(BytecodeLength) const void *pShaderBytecode;
  1357. SIZE_T BytecodeLength;
  1358. } D3D12_SHADER_BYTECODE;
  1359. typedef struct D3D12_STREAM_OUTPUT_DESC
  1360. {
  1361. _Field_size_full_(NumEntries) const D3D12_SO_DECLARATION_ENTRY *pSODeclaration;
  1362. UINT NumEntries;
  1363. _Field_size_full_(NumStrides) const UINT *pBufferStrides;
  1364. UINT NumStrides;
  1365. UINT RasterizedStream;
  1366. } D3D12_STREAM_OUTPUT_DESC;
  1367. typedef struct D3D12_INPUT_LAYOUT_DESC
  1368. {
  1369. _Field_size_full_(NumElements) const D3D12_INPUT_ELEMENT_DESC *pInputElementDescs;
  1370. UINT NumElements;
  1371. } D3D12_INPUT_LAYOUT_DESC;
  1372. typedef
  1373. enum D3D12_INDEX_BUFFER_STRIP_CUT_VALUE
  1374. {
  1375. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_DISABLED = 0,
  1376. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFF = 1,
  1377. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFFFFFF = 2
  1378. } D3D12_INDEX_BUFFER_STRIP_CUT_VALUE;
  1379. typedef
  1380. enum D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS
  1381. {
  1382. D3D12_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff,
  1383. D3D12_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe
  1384. } D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS;
  1385. typedef struct D3D12_CACHED_PIPELINE_STATE
  1386. {
  1387. _Field_size_bytes_full_(CachedBlobSizeInBytes) const void *pCachedBlob;
  1388. SIZE_T CachedBlobSizeInBytes;
  1389. } D3D12_CACHED_PIPELINE_STATE;
  1390. typedef
  1391. enum D3D12_PIPELINE_STATE_FLAGS
  1392. {
  1393. D3D12_PIPELINE_STATE_FLAG_NONE = 0,
  1394. D3D12_PIPELINE_STATE_FLAG_TOOL_DEBUG = 0x1,
  1395. D3D12_PIPELINE_STATE_FLAG_DYNAMIC_DEPTH_BIAS = 0x4,
  1396. D3D12_PIPELINE_STATE_FLAG_DYNAMIC_INDEX_BUFFER_STRIP_CUT = 0x8
  1397. } D3D12_PIPELINE_STATE_FLAGS;
  1398. DEFINE_ENUM_FLAG_OPERATORS( D3D12_PIPELINE_STATE_FLAGS )
  1399. typedef struct D3D12_GRAPHICS_PIPELINE_STATE_DESC
  1400. {
  1401. ID3D12RootSignature *pRootSignature;
  1402. D3D12_SHADER_BYTECODE VS;
  1403. D3D12_SHADER_BYTECODE PS;
  1404. D3D12_SHADER_BYTECODE DS;
  1405. D3D12_SHADER_BYTECODE HS;
  1406. D3D12_SHADER_BYTECODE GS;
  1407. D3D12_STREAM_OUTPUT_DESC StreamOutput;
  1408. D3D12_BLEND_DESC BlendState;
  1409. UINT SampleMask;
  1410. D3D12_RASTERIZER_DESC RasterizerState;
  1411. D3D12_DEPTH_STENCIL_DESC DepthStencilState;
  1412. D3D12_INPUT_LAYOUT_DESC InputLayout;
  1413. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue;
  1414. D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType;
  1415. UINT NumRenderTargets;
  1416. DXGI_FORMAT RTVFormats[ 8 ];
  1417. DXGI_FORMAT DSVFormat;
  1418. DXGI_SAMPLE_DESC SampleDesc;
  1419. UINT NodeMask;
  1420. D3D12_CACHED_PIPELINE_STATE CachedPSO;
  1421. D3D12_PIPELINE_STATE_FLAGS Flags;
  1422. } D3D12_GRAPHICS_PIPELINE_STATE_DESC;
  1423. typedef struct D3D12_COMPUTE_PIPELINE_STATE_DESC
  1424. {
  1425. ID3D12RootSignature *pRootSignature;
  1426. D3D12_SHADER_BYTECODE CS;
  1427. UINT NodeMask;
  1428. D3D12_CACHED_PIPELINE_STATE CachedPSO;
  1429. D3D12_PIPELINE_STATE_FLAGS Flags;
  1430. } D3D12_COMPUTE_PIPELINE_STATE_DESC;
  1431. struct D3D12_RT_FORMAT_ARRAY
  1432. {
  1433. DXGI_FORMAT RTFormats[ 8 ];
  1434. UINT NumRenderTargets;
  1435. } ;
  1436. typedef struct D3D12_PIPELINE_STATE_STREAM_DESC
  1437. {
  1438. _In_ SIZE_T SizeInBytes;
  1439. _In_reads_(_Inexpressible_("Dependent on size of subobjects")) void *pPipelineStateSubobjectStream;
  1440. } D3D12_PIPELINE_STATE_STREAM_DESC;
  1441. typedef
  1442. enum D3D12_PIPELINE_STATE_SUBOBJECT_TYPE
  1443. {
  1444. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE = 0,
  1445. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE + 1 ) ,
  1446. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS + 1 ) ,
  1447. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS + 1 ) ,
  1448. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS + 1 ) ,
  1449. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS + 1 ) ,
  1450. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS + 1 ) ,
  1451. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS + 1 ) ,
  1452. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT + 1 ) ,
  1453. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND + 1 ) ,
  1454. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK + 1 ) ,
  1455. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER + 1 ) ,
  1456. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL + 1 ) ,
  1457. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT + 1 ) ,
  1458. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE + 1 ) ,
  1459. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY + 1 ) ,
  1460. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS + 1 ) ,
  1461. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT + 1 ) ,
  1462. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC + 1 ) ,
  1463. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK + 1 ) ,
  1464. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO + 1 ) ,
  1465. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS + 1 ) ,
  1466. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 + 1 ) ,
  1467. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS = 24,
  1468. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS = 25,
  1469. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 = 26,
  1470. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER1 = 27,
  1471. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2 = 28,
  1472. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MAX_VALID = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2 + 1 )
  1473. } D3D12_PIPELINE_STATE_SUBOBJECT_TYPE;
  1474. typedef
  1475. enum D3D12_FEATURE
  1476. {
  1477. D3D12_FEATURE_D3D12_OPTIONS = 0,
  1478. D3D12_FEATURE_ARCHITECTURE = 1,
  1479. D3D12_FEATURE_FEATURE_LEVELS = 2,
  1480. D3D12_FEATURE_FORMAT_SUPPORT = 3,
  1481. D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS = 4,
  1482. D3D12_FEATURE_FORMAT_INFO = 5,
  1483. D3D12_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT = 6,
  1484. D3D12_FEATURE_SHADER_MODEL = 7,
  1485. D3D12_FEATURE_D3D12_OPTIONS1 = 8,
  1486. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT = 10,
  1487. D3D12_FEATURE_ROOT_SIGNATURE = 12,
  1488. D3D12_FEATURE_ARCHITECTURE1 = 16,
  1489. D3D12_FEATURE_D3D12_OPTIONS2 = 18,
  1490. D3D12_FEATURE_SHADER_CACHE = 19,
  1491. D3D12_FEATURE_COMMAND_QUEUE_PRIORITY = 20,
  1492. D3D12_FEATURE_D3D12_OPTIONS3 = 21,
  1493. D3D12_FEATURE_EXISTING_HEAPS = 22,
  1494. D3D12_FEATURE_D3D12_OPTIONS4 = 23,
  1495. D3D12_FEATURE_SERIALIZATION = 24,
  1496. D3D12_FEATURE_CROSS_NODE = 25,
  1497. D3D12_FEATURE_D3D12_OPTIONS5 = 27,
  1498. D3D12_FEATURE_DISPLAYABLE = 28,
  1499. D3D12_FEATURE_D3D12_OPTIONS6 = 30,
  1500. D3D12_FEATURE_QUERY_META_COMMAND = 31,
  1501. D3D12_FEATURE_D3D12_OPTIONS7 = 32,
  1502. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPE_COUNT = 33,
  1503. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPES = 34,
  1504. D3D12_FEATURE_D3D12_OPTIONS8 = 36,
  1505. D3D12_FEATURE_D3D12_OPTIONS9 = 37,
  1506. D3D12_FEATURE_D3D12_OPTIONS10 = 39,
  1507. D3D12_FEATURE_D3D12_OPTIONS11 = 40,
  1508. D3D12_FEATURE_D3D12_OPTIONS12 = 41,
  1509. D3D12_FEATURE_D3D12_OPTIONS13 = 42,
  1510. D3D12_FEATURE_D3D12_OPTIONS14 = 43,
  1511. D3D12_FEATURE_D3D12_OPTIONS15 = 44,
  1512. D3D12_FEATURE_D3D12_OPTIONS16 = 45,
  1513. D3D12_FEATURE_D3D12_OPTIONS17 = 46,
  1514. D3D12_FEATURE_D3D12_OPTIONS18 = 47,
  1515. D3D12_FEATURE_D3D12_OPTIONS19 = 48,
  1516. D3D12_FEATURE_D3D12_OPTIONS20 = 49,
  1517. D3D12_FEATURE_PREDICATION = 50,
  1518. D3D12_FEATURE_PLACED_RESOURCE_SUPPORT_INFO = 51,
  1519. D3D12_FEATURE_HARDWARE_COPY = 52,
  1520. D3D12_FEATURE_D3D12_OPTIONS21 = 53
  1521. } D3D12_FEATURE;
  1522. typedef
  1523. enum D3D12_SHADER_MIN_PRECISION_SUPPORT
  1524. {
  1525. D3D12_SHADER_MIN_PRECISION_SUPPORT_NONE = 0,
  1526. D3D12_SHADER_MIN_PRECISION_SUPPORT_10_BIT = 0x1,
  1527. D3D12_SHADER_MIN_PRECISION_SUPPORT_16_BIT = 0x2
  1528. } D3D12_SHADER_MIN_PRECISION_SUPPORT;
  1529. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_MIN_PRECISION_SUPPORT )
  1530. typedef
  1531. enum D3D12_TILED_RESOURCES_TIER
  1532. {
  1533. D3D12_TILED_RESOURCES_TIER_NOT_SUPPORTED = 0,
  1534. D3D12_TILED_RESOURCES_TIER_1 = 1,
  1535. D3D12_TILED_RESOURCES_TIER_2 = 2,
  1536. D3D12_TILED_RESOURCES_TIER_3 = 3,
  1537. D3D12_TILED_RESOURCES_TIER_4 = 4
  1538. } D3D12_TILED_RESOURCES_TIER;
  1539. typedef
  1540. enum D3D12_RESOURCE_BINDING_TIER
  1541. {
  1542. D3D12_RESOURCE_BINDING_TIER_1 = 1,
  1543. D3D12_RESOURCE_BINDING_TIER_2 = 2,
  1544. D3D12_RESOURCE_BINDING_TIER_3 = 3
  1545. } D3D12_RESOURCE_BINDING_TIER;
  1546. typedef
  1547. enum D3D12_CONSERVATIVE_RASTERIZATION_TIER
  1548. {
  1549. D3D12_CONSERVATIVE_RASTERIZATION_TIER_NOT_SUPPORTED = 0,
  1550. D3D12_CONSERVATIVE_RASTERIZATION_TIER_1 = 1,
  1551. D3D12_CONSERVATIVE_RASTERIZATION_TIER_2 = 2,
  1552. D3D12_CONSERVATIVE_RASTERIZATION_TIER_3 = 3
  1553. } D3D12_CONSERVATIVE_RASTERIZATION_TIER;
  1554. typedef
  1555. enum D3D12_FORMAT_SUPPORT1
  1556. {
  1557. D3D12_FORMAT_SUPPORT1_NONE = 0,
  1558. D3D12_FORMAT_SUPPORT1_BUFFER = 0x1,
  1559. D3D12_FORMAT_SUPPORT1_IA_VERTEX_BUFFER = 0x2,
  1560. D3D12_FORMAT_SUPPORT1_IA_INDEX_BUFFER = 0x4,
  1561. D3D12_FORMAT_SUPPORT1_SO_BUFFER = 0x8,
  1562. D3D12_FORMAT_SUPPORT1_TEXTURE1D = 0x10,
  1563. D3D12_FORMAT_SUPPORT1_TEXTURE2D = 0x20,
  1564. D3D12_FORMAT_SUPPORT1_TEXTURE3D = 0x40,
  1565. D3D12_FORMAT_SUPPORT1_TEXTURECUBE = 0x80,
  1566. D3D12_FORMAT_SUPPORT1_SHADER_LOAD = 0x100,
  1567. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE = 0x200,
  1568. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_COMPARISON = 0x400,
  1569. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_MONO_TEXT = 0x800,
  1570. D3D12_FORMAT_SUPPORT1_MIP = 0x1000,
  1571. D3D12_FORMAT_SUPPORT1_RENDER_TARGET = 0x4000,
  1572. D3D12_FORMAT_SUPPORT1_BLENDABLE = 0x8000,
  1573. D3D12_FORMAT_SUPPORT1_DEPTH_STENCIL = 0x10000,
  1574. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RESOLVE = 0x40000,
  1575. D3D12_FORMAT_SUPPORT1_DISPLAY = 0x80000,
  1576. D3D12_FORMAT_SUPPORT1_CAST_WITHIN_BIT_LAYOUT = 0x100000,
  1577. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RENDERTARGET = 0x200000,
  1578. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_LOAD = 0x400000,
  1579. D3D12_FORMAT_SUPPORT1_SHADER_GATHER = 0x800000,
  1580. D3D12_FORMAT_SUPPORT1_BACK_BUFFER_CAST = 0x1000000,
  1581. D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW = 0x2000000,
  1582. D3D12_FORMAT_SUPPORT1_SHADER_GATHER_COMPARISON = 0x4000000,
  1583. D3D12_FORMAT_SUPPORT1_DECODER_OUTPUT = 0x8000000,
  1584. D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
  1585. D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_INPUT = 0x20000000,
  1586. D3D12_FORMAT_SUPPORT1_VIDEO_ENCODER = 0x40000000
  1587. } D3D12_FORMAT_SUPPORT1;
  1588. DEFINE_ENUM_FLAG_OPERATORS( D3D12_FORMAT_SUPPORT1 )
  1589. typedef
  1590. enum D3D12_FORMAT_SUPPORT2
  1591. {
  1592. D3D12_FORMAT_SUPPORT2_NONE = 0,
  1593. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x1,
  1594. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x2,
  1595. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x4,
  1596. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x8,
  1597. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x10,
  1598. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x20,
  1599. D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x40,
  1600. D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x80,
  1601. D3D12_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x100,
  1602. D3D12_FORMAT_SUPPORT2_TILED = 0x200,
  1603. D3D12_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x4000,
  1604. D3D12_FORMAT_SUPPORT2_SAMPLER_FEEDBACK = 0x8000
  1605. } D3D12_FORMAT_SUPPORT2;
  1606. DEFINE_ENUM_FLAG_OPERATORS( D3D12_FORMAT_SUPPORT2 )
  1607. typedef
  1608. enum D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS
  1609. {
  1610. D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_NONE = 0,
  1611. D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_TILED_RESOURCE = 0x1
  1612. } D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS;
  1613. DEFINE_ENUM_FLAG_OPERATORS( D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS )
  1614. typedef
  1615. enum D3D12_CROSS_NODE_SHARING_TIER
  1616. {
  1617. D3D12_CROSS_NODE_SHARING_TIER_NOT_SUPPORTED = 0,
  1618. D3D12_CROSS_NODE_SHARING_TIER_1_EMULATED = 1,
  1619. D3D12_CROSS_NODE_SHARING_TIER_1 = 2,
  1620. D3D12_CROSS_NODE_SHARING_TIER_2 = 3,
  1621. D3D12_CROSS_NODE_SHARING_TIER_3 = 4
  1622. } D3D12_CROSS_NODE_SHARING_TIER;
  1623. typedef
  1624. enum D3D12_RESOURCE_HEAP_TIER
  1625. {
  1626. D3D12_RESOURCE_HEAP_TIER_1 = 1,
  1627. D3D12_RESOURCE_HEAP_TIER_2 = 2
  1628. } D3D12_RESOURCE_HEAP_TIER;
  1629. typedef
  1630. enum D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER
  1631. {
  1632. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_NOT_SUPPORTED = 0,
  1633. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_1 = 1,
  1634. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_2 = 2
  1635. } D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER;
  1636. typedef
  1637. enum D3D12_VIEW_INSTANCING_TIER
  1638. {
  1639. D3D12_VIEW_INSTANCING_TIER_NOT_SUPPORTED = 0,
  1640. D3D12_VIEW_INSTANCING_TIER_1 = 1,
  1641. D3D12_VIEW_INSTANCING_TIER_2 = 2,
  1642. D3D12_VIEW_INSTANCING_TIER_3 = 3
  1643. } D3D12_VIEW_INSTANCING_TIER;
  1644. typedef
  1645. enum D3D12_WORK_GRAPHS_TIER
  1646. {
  1647. D3D12_WORK_GRAPHS_TIER_NOT_SUPPORTED = 0,
  1648. D3D12_WORK_GRAPHS_TIER_1_0 = 10
  1649. } D3D12_WORK_GRAPHS_TIER;
  1650. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS
  1651. {
  1652. _Out_ BOOL DoublePrecisionFloatShaderOps;
  1653. _Out_ BOOL OutputMergerLogicOp;
  1654. _Out_ D3D12_SHADER_MIN_PRECISION_SUPPORT MinPrecisionSupport;
  1655. _Out_ D3D12_TILED_RESOURCES_TIER TiledResourcesTier;
  1656. _Out_ D3D12_RESOURCE_BINDING_TIER ResourceBindingTier;
  1657. _Out_ BOOL PSSpecifiedStencilRefSupported;
  1658. _Out_ BOOL TypedUAVLoadAdditionalFormats;
  1659. _Out_ BOOL ROVsSupported;
  1660. _Out_ D3D12_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
  1661. _Out_ UINT MaxGPUVirtualAddressBitsPerResource;
  1662. _Out_ BOOL StandardSwizzle64KBSupported;
  1663. _Out_ D3D12_CROSS_NODE_SHARING_TIER CrossNodeSharingTier;
  1664. _Out_ BOOL CrossAdapterRowMajorTextureSupported;
  1665. _Out_ BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation;
  1666. _Out_ D3D12_RESOURCE_HEAP_TIER ResourceHeapTier;
  1667. } D3D12_FEATURE_DATA_D3D12_OPTIONS;
  1668. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS1
  1669. {
  1670. _Out_ BOOL WaveOps;
  1671. _Out_ UINT WaveLaneCountMin;
  1672. _Out_ UINT WaveLaneCountMax;
  1673. _Out_ UINT TotalLaneCount;
  1674. _Out_ BOOL ExpandedComputeResourceStates;
  1675. _Out_ BOOL Int64ShaderOps;
  1676. } D3D12_FEATURE_DATA_D3D12_OPTIONS1;
  1677. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS2
  1678. {
  1679. _Out_ BOOL DepthBoundsTestSupported;
  1680. _Out_ D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER ProgrammableSamplePositionsTier;
  1681. } D3D12_FEATURE_DATA_D3D12_OPTIONS2;
  1682. typedef
  1683. enum D3D_ROOT_SIGNATURE_VERSION
  1684. {
  1685. D3D_ROOT_SIGNATURE_VERSION_1 = 0x1,
  1686. D3D_ROOT_SIGNATURE_VERSION_1_0 = 0x1,
  1687. D3D_ROOT_SIGNATURE_VERSION_1_1 = 0x2,
  1688. D3D_ROOT_SIGNATURE_VERSION_1_2 = 0x3
  1689. } D3D_ROOT_SIGNATURE_VERSION;
  1690. typedef struct D3D12_FEATURE_DATA_ROOT_SIGNATURE
  1691. {
  1692. _Inout_ D3D_ROOT_SIGNATURE_VERSION HighestVersion;
  1693. } D3D12_FEATURE_DATA_ROOT_SIGNATURE;
  1694. typedef struct D3D12_FEATURE_DATA_ARCHITECTURE
  1695. {
  1696. _In_ UINT NodeIndex;
  1697. _Out_ BOOL TileBasedRenderer;
  1698. _Out_ BOOL UMA;
  1699. _Out_ BOOL CacheCoherentUMA;
  1700. } D3D12_FEATURE_DATA_ARCHITECTURE;
  1701. typedef struct D3D12_FEATURE_DATA_ARCHITECTURE1
  1702. {
  1703. _In_ UINT NodeIndex;
  1704. _Out_ BOOL TileBasedRenderer;
  1705. _Out_ BOOL UMA;
  1706. _Out_ BOOL CacheCoherentUMA;
  1707. _Out_ BOOL IsolatedMMU;
  1708. } D3D12_FEATURE_DATA_ARCHITECTURE1;
  1709. typedef struct D3D12_FEATURE_DATA_FEATURE_LEVELS
  1710. {
  1711. _In_ UINT NumFeatureLevels;
  1712. _In_reads_(NumFeatureLevels) const D3D_FEATURE_LEVEL *pFeatureLevelsRequested;
  1713. _Out_ D3D_FEATURE_LEVEL MaxSupportedFeatureLevel;
  1714. } D3D12_FEATURE_DATA_FEATURE_LEVELS;
  1715. typedef
  1716. enum D3D_SHADER_MODEL
  1717. {
  1718. D3D_SHADER_MODEL_NONE = 0,
  1719. D3D_SHADER_MODEL_5_1 = 0x51,
  1720. D3D_SHADER_MODEL_6_0 = 0x60,
  1721. D3D_SHADER_MODEL_6_1 = 0x61,
  1722. D3D_SHADER_MODEL_6_2 = 0x62,
  1723. D3D_SHADER_MODEL_6_3 = 0x63,
  1724. D3D_SHADER_MODEL_6_4 = 0x64,
  1725. D3D_SHADER_MODEL_6_5 = 0x65,
  1726. D3D_SHADER_MODEL_6_6 = 0x66,
  1727. D3D_SHADER_MODEL_6_7 = 0x67,
  1728. D3D_SHADER_MODEL_6_8 = 0x68,
  1729. D3D_SHADER_MODEL_6_9 = 0x69,
  1730. D3D_HIGHEST_SHADER_MODEL = D3D_SHADER_MODEL_6_9
  1731. } D3D_SHADER_MODEL;
  1732. typedef struct D3D12_FEATURE_DATA_SHADER_MODEL
  1733. {
  1734. _Inout_ D3D_SHADER_MODEL HighestShaderModel;
  1735. } D3D12_FEATURE_DATA_SHADER_MODEL;
  1736. typedef struct D3D12_FEATURE_DATA_FORMAT_SUPPORT
  1737. {
  1738. _In_ DXGI_FORMAT Format;
  1739. _Out_ D3D12_FORMAT_SUPPORT1 Support1;
  1740. _Out_ D3D12_FORMAT_SUPPORT2 Support2;
  1741. } D3D12_FEATURE_DATA_FORMAT_SUPPORT;
  1742. typedef struct D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS
  1743. {
  1744. _In_ DXGI_FORMAT Format;
  1745. _In_ UINT SampleCount;
  1746. _In_ D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS Flags;
  1747. _Out_ UINT NumQualityLevels;
  1748. } D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS;
  1749. typedef struct D3D12_FEATURE_DATA_FORMAT_INFO
  1750. {
  1751. DXGI_FORMAT Format;
  1752. UINT8 PlaneCount;
  1753. } D3D12_FEATURE_DATA_FORMAT_INFO;
  1754. typedef struct D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
  1755. {
  1756. UINT MaxGPUVirtualAddressBitsPerResource;
  1757. UINT MaxGPUVirtualAddressBitsPerProcess;
  1758. } D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
  1759. typedef
  1760. enum D3D12_SHADER_CACHE_SUPPORT_FLAGS
  1761. {
  1762. D3D12_SHADER_CACHE_SUPPORT_NONE = 0,
  1763. D3D12_SHADER_CACHE_SUPPORT_SINGLE_PSO = 0x1,
  1764. D3D12_SHADER_CACHE_SUPPORT_LIBRARY = 0x2,
  1765. D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x4,
  1766. D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x8,
  1767. D3D12_SHADER_CACHE_SUPPORT_DRIVER_MANAGED_CACHE = 0x10,
  1768. D3D12_SHADER_CACHE_SUPPORT_SHADER_CONTROL_CLEAR = 0x20,
  1769. D3D12_SHADER_CACHE_SUPPORT_SHADER_SESSION_DELETE = 0x40
  1770. } D3D12_SHADER_CACHE_SUPPORT_FLAGS;
  1771. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_SUPPORT_FLAGS )
  1772. typedef struct D3D12_FEATURE_DATA_SHADER_CACHE
  1773. {
  1774. _Out_ D3D12_SHADER_CACHE_SUPPORT_FLAGS SupportFlags;
  1775. } D3D12_FEATURE_DATA_SHADER_CACHE;
  1776. typedef struct D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY
  1777. {
  1778. _In_ D3D12_COMMAND_LIST_TYPE CommandListType;
  1779. _In_ UINT Priority;
  1780. _Out_ BOOL PriorityForTypeIsSupported;
  1781. } D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY;
  1782. typedef
  1783. enum D3D12_COMMAND_LIST_SUPPORT_FLAGS
  1784. {
  1785. D3D12_COMMAND_LIST_SUPPORT_FLAG_NONE = 0,
  1786. D3D12_COMMAND_LIST_SUPPORT_FLAG_DIRECT = ( 1 << D3D12_COMMAND_LIST_TYPE_DIRECT ) ,
  1787. D3D12_COMMAND_LIST_SUPPORT_FLAG_BUNDLE = ( 1 << D3D12_COMMAND_LIST_TYPE_BUNDLE ) ,
  1788. D3D12_COMMAND_LIST_SUPPORT_FLAG_COMPUTE = ( 1 << D3D12_COMMAND_LIST_TYPE_COMPUTE ) ,
  1789. D3D12_COMMAND_LIST_SUPPORT_FLAG_COPY = ( 1 << D3D12_COMMAND_LIST_TYPE_COPY ) ,
  1790. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_DECODE = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE ) ,
  1791. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_PROCESS = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS ) ,
  1792. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_ENCODE = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE )
  1793. } D3D12_COMMAND_LIST_SUPPORT_FLAGS;
  1794. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_LIST_SUPPORT_FLAGS )
  1795. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS3
  1796. {
  1797. _Out_ BOOL CopyQueueTimestampQueriesSupported;
  1798. _Out_ BOOL CastingFullyTypedFormatSupported;
  1799. _Out_ D3D12_COMMAND_LIST_SUPPORT_FLAGS WriteBufferImmediateSupportFlags;
  1800. _Out_ D3D12_VIEW_INSTANCING_TIER ViewInstancingTier;
  1801. _Out_ BOOL BarycentricsSupported;
  1802. } D3D12_FEATURE_DATA_D3D12_OPTIONS3;
  1803. typedef struct D3D12_FEATURE_DATA_EXISTING_HEAPS
  1804. {
  1805. _Out_ BOOL Supported;
  1806. } D3D12_FEATURE_DATA_EXISTING_HEAPS;
  1807. typedef
  1808. enum D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER
  1809. {
  1810. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 = 0,
  1811. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 = ( D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 + 1 ) ,
  1812. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_2 = ( D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 + 1 )
  1813. } D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER;
  1814. typedef struct D3D12_FEATURE_DATA_DISPLAYABLE
  1815. {
  1816. _Out_ BOOL DisplayableTexture;
  1817. _Out_ D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier;
  1818. } D3D12_FEATURE_DATA_DISPLAYABLE;
  1819. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS4
  1820. {
  1821. _Out_ BOOL MSAA64KBAlignedTextureSupported;
  1822. _Out_ D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier;
  1823. _Out_ BOOL Native16BitShaderOpsSupported;
  1824. } D3D12_FEATURE_DATA_D3D12_OPTIONS4;
  1825. typedef
  1826. enum D3D12_HEAP_SERIALIZATION_TIER
  1827. {
  1828. D3D12_HEAP_SERIALIZATION_TIER_0 = 0,
  1829. D3D12_HEAP_SERIALIZATION_TIER_10 = 10
  1830. } D3D12_HEAP_SERIALIZATION_TIER;
  1831. typedef struct D3D12_FEATURE_DATA_SERIALIZATION
  1832. {
  1833. _In_ UINT NodeIndex;
  1834. _Out_ D3D12_HEAP_SERIALIZATION_TIER HeapSerializationTier;
  1835. } D3D12_FEATURE_DATA_SERIALIZATION;
  1836. typedef struct D3D12_FEATURE_DATA_CROSS_NODE
  1837. {
  1838. D3D12_CROSS_NODE_SHARING_TIER SharingTier;
  1839. BOOL AtomicShaderInstructions;
  1840. } D3D12_FEATURE_DATA_CROSS_NODE;
  1841. typedef
  1842. enum D3D12_RENDER_PASS_TIER
  1843. {
  1844. D3D12_RENDER_PASS_TIER_0 = 0,
  1845. D3D12_RENDER_PASS_TIER_1 = 1,
  1846. D3D12_RENDER_PASS_TIER_2 = 2
  1847. } D3D12_RENDER_PASS_TIER;
  1848. typedef
  1849. enum D3D12_RAYTRACING_TIER
  1850. {
  1851. D3D12_RAYTRACING_TIER_NOT_SUPPORTED = 0,
  1852. D3D12_RAYTRACING_TIER_1_0 = 10,
  1853. D3D12_RAYTRACING_TIER_1_1 = 11
  1854. } D3D12_RAYTRACING_TIER;
  1855. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS5
  1856. {
  1857. _Out_ BOOL SRVOnlyTiledResourceTier3;
  1858. _Out_ D3D12_RENDER_PASS_TIER RenderPassesTier;
  1859. _Out_ D3D12_RAYTRACING_TIER RaytracingTier;
  1860. } D3D12_FEATURE_DATA_D3D12_OPTIONS5;
  1861. typedef
  1862. enum D3D12_VARIABLE_SHADING_RATE_TIER
  1863. {
  1864. D3D12_VARIABLE_SHADING_RATE_TIER_NOT_SUPPORTED = 0,
  1865. D3D12_VARIABLE_SHADING_RATE_TIER_1 = 1,
  1866. D3D12_VARIABLE_SHADING_RATE_TIER_2 = 2
  1867. } D3D12_VARIABLE_SHADING_RATE_TIER;
  1868. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS6
  1869. {
  1870. _Out_ BOOL AdditionalShadingRatesSupported;
  1871. _Out_ BOOL PerPrimitiveShadingRateSupportedWithViewportIndexing;
  1872. _Out_ D3D12_VARIABLE_SHADING_RATE_TIER VariableShadingRateTier;
  1873. _Out_ UINT ShadingRateImageTileSize;
  1874. _Out_ BOOL BackgroundProcessingSupported;
  1875. } D3D12_FEATURE_DATA_D3D12_OPTIONS6;
  1876. typedef
  1877. enum D3D12_MESH_SHADER_TIER
  1878. {
  1879. D3D12_MESH_SHADER_TIER_NOT_SUPPORTED = 0,
  1880. D3D12_MESH_SHADER_TIER_1 = 10
  1881. } D3D12_MESH_SHADER_TIER;
  1882. typedef
  1883. enum D3D12_SAMPLER_FEEDBACK_TIER
  1884. {
  1885. D3D12_SAMPLER_FEEDBACK_TIER_NOT_SUPPORTED = 0,
  1886. D3D12_SAMPLER_FEEDBACK_TIER_0_9 = 90,
  1887. D3D12_SAMPLER_FEEDBACK_TIER_1_0 = 100
  1888. } D3D12_SAMPLER_FEEDBACK_TIER;
  1889. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS7
  1890. {
  1891. _Out_ D3D12_MESH_SHADER_TIER MeshShaderTier;
  1892. _Out_ D3D12_SAMPLER_FEEDBACK_TIER SamplerFeedbackTier;
  1893. } D3D12_FEATURE_DATA_D3D12_OPTIONS7;
  1894. typedef struct D3D12_FEATURE_DATA_QUERY_META_COMMAND
  1895. {
  1896. _In_ GUID CommandId;
  1897. _In_ UINT NodeMask;
  1898. _Field_size_bytes_full_opt_( QueryInputDataSizeInBytes ) const void *pQueryInputData;
  1899. _In_ SIZE_T QueryInputDataSizeInBytes;
  1900. _Field_size_bytes_full_( QueryOutputDataSizeInBytes ) void *pQueryOutputData;
  1901. _In_ SIZE_T QueryOutputDataSizeInBytes;
  1902. } D3D12_FEATURE_DATA_QUERY_META_COMMAND;
  1903. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS8
  1904. {
  1905. _Out_ BOOL UnalignedBlockTexturesSupported;
  1906. } D3D12_FEATURE_DATA_D3D12_OPTIONS8;
  1907. typedef
  1908. enum D3D12_WAVE_MMA_TIER
  1909. {
  1910. D3D12_WAVE_MMA_TIER_NOT_SUPPORTED = 0,
  1911. D3D12_WAVE_MMA_TIER_1_0 = 10
  1912. } D3D12_WAVE_MMA_TIER;
  1913. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS9
  1914. {
  1915. _Out_ BOOL MeshShaderPipelineStatsSupported;
  1916. _Out_ BOOL MeshShaderSupportsFullRangeRenderTargetArrayIndex;
  1917. _Out_ BOOL AtomicInt64OnTypedResourceSupported;
  1918. _Out_ BOOL AtomicInt64OnGroupSharedSupported;
  1919. _Out_ BOOL DerivativesInMeshAndAmplificationShadersSupported;
  1920. _Out_ D3D12_WAVE_MMA_TIER WaveMMATier;
  1921. } D3D12_FEATURE_DATA_D3D12_OPTIONS9;
  1922. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS10
  1923. {
  1924. _Out_ BOOL VariableRateShadingSumCombinerSupported;
  1925. _Out_ BOOL MeshShaderPerPrimitiveShadingRateSupported;
  1926. } D3D12_FEATURE_DATA_D3D12_OPTIONS10;
  1927. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS11
  1928. {
  1929. _Out_ BOOL AtomicInt64OnDescriptorHeapResourceSupported;
  1930. } D3D12_FEATURE_DATA_D3D12_OPTIONS11;
  1931. typedef
  1932. enum D3D12_TRI_STATE
  1933. {
  1934. D3D12_TRI_STATE_UNKNOWN = -1,
  1935. D3D12_TRI_STATE_FALSE = 0,
  1936. D3D12_TRI_STATE_TRUE = 1
  1937. } D3D12_TRI_STATE;
  1938. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS12
  1939. {
  1940. _Out_ D3D12_TRI_STATE MSPrimitivesPipelineStatisticIncludesCulledPrimitives;
  1941. _Out_ BOOL EnhancedBarriersSupported;
  1942. _Out_ BOOL RelaxedFormatCastingSupported;
  1943. } D3D12_FEATURE_DATA_D3D12_OPTIONS12;
  1944. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS13
  1945. {
  1946. _Out_ BOOL UnrestrictedBufferTextureCopyPitchSupported;
  1947. _Out_ BOOL UnrestrictedVertexElementAlignmentSupported;
  1948. _Out_ BOOL InvertedViewportHeightFlipsYSupported;
  1949. _Out_ BOOL InvertedViewportDepthFlipsZSupported;
  1950. _Out_ BOOL TextureCopyBetweenDimensionsSupported;
  1951. _Out_ BOOL AlphaBlendFactorSupported;
  1952. } D3D12_FEATURE_DATA_D3D12_OPTIONS13;
  1953. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS14
  1954. {
  1955. _Out_ BOOL AdvancedTextureOpsSupported;
  1956. _Out_ BOOL WriteableMSAATexturesSupported;
  1957. _Out_ BOOL IndependentFrontAndBackStencilRefMaskSupported;
  1958. } D3D12_FEATURE_DATA_D3D12_OPTIONS14;
  1959. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS15
  1960. {
  1961. _Out_ BOOL TriangleFanSupported;
  1962. _Out_ BOOL DynamicIndexBufferStripCutSupported;
  1963. } D3D12_FEATURE_DATA_D3D12_OPTIONS15;
  1964. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS16
  1965. {
  1966. _Out_ BOOL DynamicDepthBiasSupported;
  1967. _Out_ BOOL GPUUploadHeapSupported;
  1968. } D3D12_FEATURE_DATA_D3D12_OPTIONS16;
  1969. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS17
  1970. {
  1971. _Out_ BOOL NonNormalizedCoordinateSamplersSupported;
  1972. _Out_ BOOL ManualWriteTrackingResourceSupported;
  1973. } D3D12_FEATURE_DATA_D3D12_OPTIONS17;
  1974. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS18
  1975. {
  1976. _Out_ BOOL RenderPassesValid;
  1977. } D3D12_FEATURE_DATA_D3D12_OPTIONS18;
  1978. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS19
  1979. {
  1980. BOOL MismatchingOutputDimensionsSupported;
  1981. UINT SupportedSampleCountsWithNoOutputs;
  1982. BOOL PointSamplingAddressesNeverRoundUp;
  1983. BOOL RasterizerDesc2Supported;
  1984. BOOL NarrowQuadrilateralLinesSupported;
  1985. BOOL AnisoFilterWithPointMipSupported;
  1986. UINT MaxSamplerDescriptorHeapSize;
  1987. UINT MaxSamplerDescriptorHeapSizeWithStaticSamplers;
  1988. UINT MaxViewDescriptorHeapSize;
  1989. _Out_ BOOL ComputeOnlyCustomHeapSupported;
  1990. } D3D12_FEATURE_DATA_D3D12_OPTIONS19;
  1991. typedef
  1992. enum D3D12_RECREATE_AT_TIER
  1993. {
  1994. D3D12_RECREATE_AT_TIER_NOT_SUPPORTED = 0,
  1995. D3D12_RECREATE_AT_TIER_1 = 1
  1996. } D3D12_RECREATE_AT_TIER;
  1997. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS20
  1998. {
  1999. _Out_ BOOL ComputeOnlyWriteWatchSupported;
  2000. D3D12_RECREATE_AT_TIER RecreateAtTier;
  2001. } D3D12_FEATURE_DATA_D3D12_OPTIONS20;
  2002. typedef
  2003. enum D3D12_EXECUTE_INDIRECT_TIER
  2004. {
  2005. D3D12_EXECUTE_INDIRECT_TIER_1_0 = 10,
  2006. D3D12_EXECUTE_INDIRECT_TIER_1_1 = 11
  2007. } D3D12_EXECUTE_INDIRECT_TIER;
  2008. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS21
  2009. {
  2010. _Out_ D3D12_WORK_GRAPHS_TIER WorkGraphsTier;
  2011. _Out_ D3D12_EXECUTE_INDIRECT_TIER ExecuteIndirectTier;
  2012. _Out_ BOOL SampleCmpGradientAndBiasSupported;
  2013. _Out_ BOOL ExtendedCommandInfoSupported;
  2014. } D3D12_FEATURE_DATA_D3D12_OPTIONS21;
  2015. typedef struct D3D12_FEATURE_DATA_PREDICATION
  2016. {
  2017. _Out_ BOOL Supported;
  2018. } D3D12_FEATURE_DATA_PREDICATION;
  2019. typedef struct D3D12_FEATURE_DATA_HARDWARE_COPY
  2020. {
  2021. _Out_ BOOL Supported;
  2022. } D3D12_FEATURE_DATA_HARDWARE_COPY;
  2023. typedef struct D3D12_RESOURCE_ALLOCATION_INFO
  2024. {
  2025. UINT64 SizeInBytes;
  2026. UINT64 Alignment;
  2027. } D3D12_RESOURCE_ALLOCATION_INFO;
  2028. typedef struct D3D12_RESOURCE_ALLOCATION_INFO1
  2029. {
  2030. UINT64 Offset;
  2031. UINT64 Alignment;
  2032. UINT64 SizeInBytes;
  2033. } D3D12_RESOURCE_ALLOCATION_INFO1;
  2034. typedef
  2035. enum D3D12_HEAP_TYPE
  2036. {
  2037. D3D12_HEAP_TYPE_DEFAULT = 1,
  2038. D3D12_HEAP_TYPE_UPLOAD = 2,
  2039. D3D12_HEAP_TYPE_READBACK = 3,
  2040. D3D12_HEAP_TYPE_CUSTOM = 4,
  2041. D3D12_HEAP_TYPE_GPU_UPLOAD = 5
  2042. } D3D12_HEAP_TYPE;
  2043. typedef
  2044. enum D3D12_CPU_PAGE_PROPERTY
  2045. {
  2046. D3D12_CPU_PAGE_PROPERTY_UNKNOWN = 0,
  2047. D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE = 1,
  2048. D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE = 2,
  2049. D3D12_CPU_PAGE_PROPERTY_WRITE_BACK = 3
  2050. } D3D12_CPU_PAGE_PROPERTY;
  2051. typedef
  2052. enum D3D12_MEMORY_POOL
  2053. {
  2054. D3D12_MEMORY_POOL_UNKNOWN = 0,
  2055. D3D12_MEMORY_POOL_L0 = 1,
  2056. D3D12_MEMORY_POOL_L1 = 2
  2057. } D3D12_MEMORY_POOL;
  2058. typedef struct D3D12_HEAP_PROPERTIES
  2059. {
  2060. D3D12_HEAP_TYPE Type;
  2061. D3D12_CPU_PAGE_PROPERTY CPUPageProperty;
  2062. D3D12_MEMORY_POOL MemoryPoolPreference;
  2063. UINT CreationNodeMask;
  2064. UINT VisibleNodeMask;
  2065. } D3D12_HEAP_PROPERTIES;
  2066. typedef
  2067. enum D3D12_HEAP_FLAGS
  2068. {
  2069. D3D12_HEAP_FLAG_NONE = 0,
  2070. D3D12_HEAP_FLAG_SHARED = 0x1,
  2071. D3D12_HEAP_FLAG_DENY_BUFFERS = 0x4,
  2072. D3D12_HEAP_FLAG_ALLOW_DISPLAY = 0x8,
  2073. D3D12_HEAP_FLAG_SHARED_CROSS_ADAPTER = 0x20,
  2074. D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES = 0x40,
  2075. D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES = 0x80,
  2076. D3D12_HEAP_FLAG_HARDWARE_PROTECTED = 0x100,
  2077. D3D12_HEAP_FLAG_ALLOW_WRITE_WATCH = 0x200,
  2078. D3D12_HEAP_FLAG_ALLOW_SHADER_ATOMICS = 0x400,
  2079. D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT = 0x800,
  2080. D3D12_HEAP_FLAG_CREATE_NOT_ZEROED = 0x1000,
  2081. D3D12_HEAP_FLAG_TOOLS_USE_MANUAL_WRITE_TRACKING = 0x2000,
  2082. D3D12_HEAP_FLAG_ALLOW_ALL_BUFFERS_AND_TEXTURES = 0,
  2083. D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS = 0xc0,
  2084. D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES = 0x44,
  2085. D3D12_HEAP_FLAG_ALLOW_ONLY_RT_DS_TEXTURES = 0x84
  2086. } D3D12_HEAP_FLAGS;
  2087. DEFINE_ENUM_FLAG_OPERATORS( D3D12_HEAP_FLAGS )
  2088. typedef struct D3D12_HEAP_DESC
  2089. {
  2090. UINT64 SizeInBytes;
  2091. D3D12_HEAP_PROPERTIES Properties;
  2092. UINT64 Alignment;
  2093. D3D12_HEAP_FLAGS Flags;
  2094. } D3D12_HEAP_DESC;
  2095. typedef
  2096. enum D3D12_RESOURCE_DIMENSION
  2097. {
  2098. D3D12_RESOURCE_DIMENSION_UNKNOWN = 0,
  2099. D3D12_RESOURCE_DIMENSION_BUFFER = 1,
  2100. D3D12_RESOURCE_DIMENSION_TEXTURE1D = 2,
  2101. D3D12_RESOURCE_DIMENSION_TEXTURE2D = 3,
  2102. D3D12_RESOURCE_DIMENSION_TEXTURE3D = 4
  2103. } D3D12_RESOURCE_DIMENSION;
  2104. typedef struct D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO
  2105. {
  2106. _In_ DXGI_FORMAT Format;
  2107. _In_ D3D12_RESOURCE_DIMENSION Dimension;
  2108. _In_ D3D12_HEAP_PROPERTIES DestHeapProperties;
  2109. _Out_ BOOL Supported;
  2110. } D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO;
  2111. typedef
  2112. enum D3D12_TEXTURE_LAYOUT
  2113. {
  2114. D3D12_TEXTURE_LAYOUT_UNKNOWN = 0,
  2115. D3D12_TEXTURE_LAYOUT_ROW_MAJOR = 1,
  2116. D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE = 2,
  2117. D3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE = 3
  2118. } D3D12_TEXTURE_LAYOUT;
  2119. typedef
  2120. enum D3D12_RESOURCE_FLAGS
  2121. {
  2122. D3D12_RESOURCE_FLAG_NONE = 0,
  2123. D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET = 0x1,
  2124. D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL = 0x2,
  2125. D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS = 0x4,
  2126. D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE = 0x8,
  2127. D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER = 0x10,
  2128. D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS = 0x20,
  2129. D3D12_RESOURCE_FLAG_VIDEO_DECODE_REFERENCE_ONLY = 0x40,
  2130. D3D12_RESOURCE_FLAG_VIDEO_ENCODE_REFERENCE_ONLY = 0x80,
  2131. D3D12_RESOURCE_FLAG_RAYTRACING_ACCELERATION_STRUCTURE = 0x100
  2132. } D3D12_RESOURCE_FLAGS;
  2133. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_FLAGS )
  2134. typedef struct D3D12_MIP_REGION
  2135. {
  2136. UINT Width;
  2137. UINT Height;
  2138. UINT Depth;
  2139. } D3D12_MIP_REGION;
  2140. typedef struct D3D12_RESOURCE_DESC
  2141. {
  2142. D3D12_RESOURCE_DIMENSION Dimension;
  2143. UINT64 Alignment;
  2144. UINT64 Width;
  2145. UINT Height;
  2146. UINT16 DepthOrArraySize;
  2147. UINT16 MipLevels;
  2148. DXGI_FORMAT Format;
  2149. DXGI_SAMPLE_DESC SampleDesc;
  2150. D3D12_TEXTURE_LAYOUT Layout;
  2151. D3D12_RESOURCE_FLAGS Flags;
  2152. } D3D12_RESOURCE_DESC;
  2153. typedef struct D3D12_RESOURCE_DESC1
  2154. {
  2155. D3D12_RESOURCE_DIMENSION Dimension;
  2156. UINT64 Alignment;
  2157. UINT64 Width;
  2158. UINT Height;
  2159. UINT16 DepthOrArraySize;
  2160. UINT16 MipLevels;
  2161. DXGI_FORMAT Format;
  2162. DXGI_SAMPLE_DESC SampleDesc;
  2163. D3D12_TEXTURE_LAYOUT Layout;
  2164. D3D12_RESOURCE_FLAGS Flags;
  2165. D3D12_MIP_REGION SamplerFeedbackMipRegion;
  2166. } D3D12_RESOURCE_DESC1;
  2167. typedef struct D3D12_DEPTH_STENCIL_VALUE
  2168. {
  2169. FLOAT Depth;
  2170. UINT8 Stencil;
  2171. } D3D12_DEPTH_STENCIL_VALUE;
  2172. typedef struct D3D12_CLEAR_VALUE
  2173. {
  2174. DXGI_FORMAT Format;
  2175. union
  2176. {
  2177. FLOAT Color[ 4 ];
  2178. D3D12_DEPTH_STENCIL_VALUE DepthStencil;
  2179. } ;
  2180. } D3D12_CLEAR_VALUE;
  2181. typedef struct D3D12_RANGE
  2182. {
  2183. SIZE_T Begin;
  2184. SIZE_T End;
  2185. } D3D12_RANGE;
  2186. typedef struct D3D12_RANGE_UINT64
  2187. {
  2188. UINT64 Begin;
  2189. UINT64 End;
  2190. } D3D12_RANGE_UINT64;
  2191. typedef struct D3D12_SUBRESOURCE_RANGE_UINT64
  2192. {
  2193. UINT Subresource;
  2194. D3D12_RANGE_UINT64 Range;
  2195. } D3D12_SUBRESOURCE_RANGE_UINT64;
  2196. typedef struct D3D12_SUBRESOURCE_INFO
  2197. {
  2198. UINT64 Offset;
  2199. UINT RowPitch;
  2200. UINT DepthPitch;
  2201. } D3D12_SUBRESOURCE_INFO;
  2202. typedef struct D3D12_TILED_RESOURCE_COORDINATE
  2203. {
  2204. UINT X;
  2205. UINT Y;
  2206. UINT Z;
  2207. UINT Subresource;
  2208. } D3D12_TILED_RESOURCE_COORDINATE;
  2209. typedef struct D3D12_TILE_REGION_SIZE
  2210. {
  2211. UINT NumTiles;
  2212. BOOL UseBox;
  2213. UINT Width;
  2214. UINT16 Height;
  2215. UINT16 Depth;
  2216. } D3D12_TILE_REGION_SIZE;
  2217. typedef
  2218. enum D3D12_TILE_RANGE_FLAGS
  2219. {
  2220. D3D12_TILE_RANGE_FLAG_NONE = 0,
  2221. D3D12_TILE_RANGE_FLAG_NULL = 1,
  2222. D3D12_TILE_RANGE_FLAG_SKIP = 2,
  2223. D3D12_TILE_RANGE_FLAG_REUSE_SINGLE_TILE = 4
  2224. } D3D12_TILE_RANGE_FLAGS;
  2225. typedef struct D3D12_SUBRESOURCE_TILING
  2226. {
  2227. UINT WidthInTiles;
  2228. UINT16 HeightInTiles;
  2229. UINT16 DepthInTiles;
  2230. UINT StartTileIndexInOverallResource;
  2231. } D3D12_SUBRESOURCE_TILING;
  2232. typedef struct D3D12_TILE_SHAPE
  2233. {
  2234. UINT WidthInTexels;
  2235. UINT HeightInTexels;
  2236. UINT DepthInTexels;
  2237. } D3D12_TILE_SHAPE;
  2238. typedef struct D3D12_PACKED_MIP_INFO
  2239. {
  2240. UINT8 NumStandardMips;
  2241. UINT8 NumPackedMips;
  2242. UINT NumTilesForPackedMips;
  2243. UINT StartTileIndexInOverallResource;
  2244. } D3D12_PACKED_MIP_INFO;
  2245. typedef
  2246. enum D3D12_TILE_MAPPING_FLAGS
  2247. {
  2248. D3D12_TILE_MAPPING_FLAG_NONE = 0,
  2249. D3D12_TILE_MAPPING_FLAG_NO_HAZARD = 0x1
  2250. } D3D12_TILE_MAPPING_FLAGS;
  2251. DEFINE_ENUM_FLAG_OPERATORS( D3D12_TILE_MAPPING_FLAGS )
  2252. typedef
  2253. enum D3D12_TILE_COPY_FLAGS
  2254. {
  2255. D3D12_TILE_COPY_FLAG_NONE = 0,
  2256. D3D12_TILE_COPY_FLAG_NO_HAZARD = 0x1,
  2257. D3D12_TILE_COPY_FLAG_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2,
  2258. D3D12_TILE_COPY_FLAG_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4
  2259. } D3D12_TILE_COPY_FLAGS;
  2260. DEFINE_ENUM_FLAG_OPERATORS( D3D12_TILE_COPY_FLAGS )
  2261. typedef
  2262. enum D3D12_RESOURCE_STATES
  2263. {
  2264. D3D12_RESOURCE_STATE_COMMON = 0,
  2265. D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER = 0x1,
  2266. D3D12_RESOURCE_STATE_INDEX_BUFFER = 0x2,
  2267. D3D12_RESOURCE_STATE_RENDER_TARGET = 0x4,
  2268. D3D12_RESOURCE_STATE_UNORDERED_ACCESS = 0x8,
  2269. D3D12_RESOURCE_STATE_DEPTH_WRITE = 0x10,
  2270. D3D12_RESOURCE_STATE_DEPTH_READ = 0x20,
  2271. D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE = 0x40,
  2272. D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE = 0x80,
  2273. D3D12_RESOURCE_STATE_STREAM_OUT = 0x100,
  2274. D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT = 0x200,
  2275. D3D12_RESOURCE_STATE_COPY_DEST = 0x400,
  2276. D3D12_RESOURCE_STATE_COPY_SOURCE = 0x800,
  2277. D3D12_RESOURCE_STATE_RESOLVE_DEST = 0x1000,
  2278. D3D12_RESOURCE_STATE_RESOLVE_SOURCE = 0x2000,
  2279. D3D12_RESOURCE_STATE_RAYTRACING_ACCELERATION_STRUCTURE = 0x400000,
  2280. D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE = 0x1000000,
  2281. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_8000 = 0x8000,
  2282. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_4000 = 0x4000,
  2283. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_100000 = 0x100000,
  2284. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_40000000 = 0x40000000,
  2285. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_80000000 = 0x80000000,
  2286. D3D12_RESOURCE_STATE_GENERIC_READ = ( ( ( ( ( 0x1 | 0x2 ) | 0x40 ) | 0x80 ) | 0x200 ) | 0x800 ) ,
  2287. D3D12_RESOURCE_STATE_ALL_SHADER_RESOURCE = ( 0x40 | 0x80 ) ,
  2288. D3D12_RESOURCE_STATE_PRESENT = 0,
  2289. D3D12_RESOURCE_STATE_PREDICATION = 0x200,
  2290. D3D12_RESOURCE_STATE_VIDEO_DECODE_READ = 0x10000,
  2291. D3D12_RESOURCE_STATE_VIDEO_DECODE_WRITE = 0x20000,
  2292. D3D12_RESOURCE_STATE_VIDEO_PROCESS_READ = 0x40000,
  2293. D3D12_RESOURCE_STATE_VIDEO_PROCESS_WRITE = 0x80000,
  2294. D3D12_RESOURCE_STATE_VIDEO_ENCODE_READ = 0x200000,
  2295. D3D12_RESOURCE_STATE_VIDEO_ENCODE_WRITE = 0x800000
  2296. } D3D12_RESOURCE_STATES;
  2297. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_STATES )
  2298. typedef
  2299. enum D3D12_RESOURCE_BARRIER_TYPE
  2300. {
  2301. D3D12_RESOURCE_BARRIER_TYPE_TRANSITION = 0,
  2302. D3D12_RESOURCE_BARRIER_TYPE_ALIASING = ( D3D12_RESOURCE_BARRIER_TYPE_TRANSITION + 1 ) ,
  2303. D3D12_RESOURCE_BARRIER_TYPE_UAV = ( D3D12_RESOURCE_BARRIER_TYPE_ALIASING + 1 )
  2304. } D3D12_RESOURCE_BARRIER_TYPE;
  2305. typedef struct D3D12_RESOURCE_TRANSITION_BARRIER
  2306. {
  2307. ID3D12Resource *pResource;
  2308. UINT Subresource;
  2309. D3D12_RESOURCE_STATES StateBefore;
  2310. D3D12_RESOURCE_STATES StateAfter;
  2311. } D3D12_RESOURCE_TRANSITION_BARRIER;
  2312. typedef struct D3D12_RESOURCE_ALIASING_BARRIER
  2313. {
  2314. ID3D12Resource *pResourceBefore;
  2315. ID3D12Resource *pResourceAfter;
  2316. } D3D12_RESOURCE_ALIASING_BARRIER;
  2317. typedef struct D3D12_RESOURCE_UAV_BARRIER
  2318. {
  2319. ID3D12Resource *pResource;
  2320. } D3D12_RESOURCE_UAV_BARRIER;
  2321. typedef
  2322. enum D3D12_RESOURCE_BARRIER_FLAGS
  2323. {
  2324. D3D12_RESOURCE_BARRIER_FLAG_NONE = 0,
  2325. D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY = 0x1,
  2326. D3D12_RESOURCE_BARRIER_FLAG_END_ONLY = 0x2
  2327. } D3D12_RESOURCE_BARRIER_FLAGS;
  2328. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_BARRIER_FLAGS )
  2329. typedef struct D3D12_RESOURCE_BARRIER
  2330. {
  2331. D3D12_RESOURCE_BARRIER_TYPE Type;
  2332. D3D12_RESOURCE_BARRIER_FLAGS Flags;
  2333. union
  2334. {
  2335. D3D12_RESOURCE_TRANSITION_BARRIER Transition;
  2336. D3D12_RESOURCE_ALIASING_BARRIER Aliasing;
  2337. D3D12_RESOURCE_UAV_BARRIER UAV;
  2338. } ;
  2339. } D3D12_RESOURCE_BARRIER;
  2340. typedef struct D3D12_SUBRESOURCE_FOOTPRINT
  2341. {
  2342. DXGI_FORMAT Format;
  2343. UINT Width;
  2344. UINT Height;
  2345. UINT Depth;
  2346. UINT RowPitch;
  2347. } D3D12_SUBRESOURCE_FOOTPRINT;
  2348. typedef struct D3D12_PLACED_SUBRESOURCE_FOOTPRINT
  2349. {
  2350. UINT64 Offset;
  2351. D3D12_SUBRESOURCE_FOOTPRINT Footprint;
  2352. } D3D12_PLACED_SUBRESOURCE_FOOTPRINT;
  2353. typedef
  2354. enum D3D12_TEXTURE_COPY_TYPE
  2355. {
  2356. D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX = 0,
  2357. D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT = 1
  2358. } D3D12_TEXTURE_COPY_TYPE;
  2359. typedef struct D3D12_TEXTURE_COPY_LOCATION
  2360. {
  2361. ID3D12Resource *pResource;
  2362. D3D12_TEXTURE_COPY_TYPE Type;
  2363. union
  2364. {
  2365. D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint;
  2366. UINT SubresourceIndex;
  2367. } ;
  2368. } D3D12_TEXTURE_COPY_LOCATION;
  2369. typedef
  2370. enum D3D12_RESOLVE_MODE
  2371. {
  2372. D3D12_RESOLVE_MODE_DECOMPRESS = 0,
  2373. D3D12_RESOLVE_MODE_MIN = 1,
  2374. D3D12_RESOLVE_MODE_MAX = 2,
  2375. D3D12_RESOLVE_MODE_AVERAGE = 3,
  2376. D3D12_RESOLVE_MODE_ENCODE_SAMPLER_FEEDBACK = 4,
  2377. D3D12_RESOLVE_MODE_DECODE_SAMPLER_FEEDBACK = 5
  2378. } D3D12_RESOLVE_MODE;
  2379. typedef struct D3D12_SAMPLE_POSITION
  2380. {
  2381. INT8 X;
  2382. INT8 Y;
  2383. } D3D12_SAMPLE_POSITION;
  2384. typedef struct D3D12_VIEW_INSTANCE_LOCATION
  2385. {
  2386. UINT ViewportArrayIndex;
  2387. UINT RenderTargetArrayIndex;
  2388. } D3D12_VIEW_INSTANCE_LOCATION;
  2389. typedef
  2390. enum D3D12_VIEW_INSTANCING_FLAGS
  2391. {
  2392. D3D12_VIEW_INSTANCING_FLAG_NONE = 0,
  2393. D3D12_VIEW_INSTANCING_FLAG_ENABLE_VIEW_INSTANCE_MASKING = 0x1
  2394. } D3D12_VIEW_INSTANCING_FLAGS;
  2395. DEFINE_ENUM_FLAG_OPERATORS( D3D12_VIEW_INSTANCING_FLAGS )
  2396. typedef struct D3D12_VIEW_INSTANCING_DESC
  2397. {
  2398. UINT ViewInstanceCount;
  2399. _Field_size_full_(ViewInstanceCount) const D3D12_VIEW_INSTANCE_LOCATION *pViewInstanceLocations;
  2400. D3D12_VIEW_INSTANCING_FLAGS Flags;
  2401. } D3D12_VIEW_INSTANCING_DESC;
  2402. typedef
  2403. enum D3D12_SHADER_COMPONENT_MAPPING
  2404. {
  2405. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_0 = 0,
  2406. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_1 = 1,
  2407. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_2 = 2,
  2408. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_3 = 3,
  2409. D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_0 = 4,
  2410. D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_1 = 5
  2411. } D3D12_SHADER_COMPONENT_MAPPING;
  2412. #define D3D12_SHADER_COMPONENT_MAPPING_MASK 0x7
  2413. #define D3D12_SHADER_COMPONENT_MAPPING_SHIFT 3
  2414. #define D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES (1<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*4))
  2415. #define D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(Src0,Src1,Src2,Src3) ((((Src0)&D3D12_SHADER_COMPONENT_MAPPING_MASK)| \
  2416. (((Src1)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<<D3D12_SHADER_COMPONENT_MAPPING_SHIFT)| \
  2417. (((Src2)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*2))| \
  2418. (((Src3)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*3))| \
  2419. D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES))
  2420. #define D3D12_DECODE_SHADER_4_COMPONENT_MAPPING(ComponentToExtract,Mapping) ((D3D12_SHADER_COMPONENT_MAPPING)(Mapping >> (D3D12_SHADER_COMPONENT_MAPPING_SHIFT*ComponentToExtract) & D3D12_SHADER_COMPONENT_MAPPING_MASK))
  2421. #define D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(0,1,2,3)
  2422. typedef
  2423. enum D3D12_BUFFER_SRV_FLAGS
  2424. {
  2425. D3D12_BUFFER_SRV_FLAG_NONE = 0,
  2426. D3D12_BUFFER_SRV_FLAG_RAW = 0x1
  2427. } D3D12_BUFFER_SRV_FLAGS;
  2428. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BUFFER_SRV_FLAGS )
  2429. typedef struct D3D12_BUFFER_SRV
  2430. {
  2431. UINT64 FirstElement;
  2432. UINT NumElements;
  2433. UINT StructureByteStride;
  2434. D3D12_BUFFER_SRV_FLAGS Flags;
  2435. } D3D12_BUFFER_SRV;
  2436. typedef struct D3D12_TEX1D_SRV
  2437. {
  2438. UINT MostDetailedMip;
  2439. UINT MipLevels;
  2440. FLOAT ResourceMinLODClamp;
  2441. } D3D12_TEX1D_SRV;
  2442. typedef struct D3D12_TEX1D_ARRAY_SRV
  2443. {
  2444. UINT MostDetailedMip;
  2445. UINT MipLevels;
  2446. UINT FirstArraySlice;
  2447. UINT ArraySize;
  2448. FLOAT ResourceMinLODClamp;
  2449. } D3D12_TEX1D_ARRAY_SRV;
  2450. typedef struct D3D12_TEX2D_SRV
  2451. {
  2452. UINT MostDetailedMip;
  2453. UINT MipLevels;
  2454. UINT PlaneSlice;
  2455. FLOAT ResourceMinLODClamp;
  2456. } D3D12_TEX2D_SRV;
  2457. typedef struct D3D12_TEX2D_ARRAY_SRV
  2458. {
  2459. UINT MostDetailedMip;
  2460. UINT MipLevels;
  2461. UINT FirstArraySlice;
  2462. UINT ArraySize;
  2463. UINT PlaneSlice;
  2464. FLOAT ResourceMinLODClamp;
  2465. } D3D12_TEX2D_ARRAY_SRV;
  2466. typedef struct D3D12_TEX3D_SRV
  2467. {
  2468. UINT MostDetailedMip;
  2469. UINT MipLevels;
  2470. FLOAT ResourceMinLODClamp;
  2471. } D3D12_TEX3D_SRV;
  2472. typedef struct D3D12_TEXCUBE_SRV
  2473. {
  2474. UINT MostDetailedMip;
  2475. UINT MipLevels;
  2476. FLOAT ResourceMinLODClamp;
  2477. } D3D12_TEXCUBE_SRV;
  2478. typedef struct D3D12_TEXCUBE_ARRAY_SRV
  2479. {
  2480. UINT MostDetailedMip;
  2481. UINT MipLevels;
  2482. UINT First2DArrayFace;
  2483. UINT NumCubes;
  2484. FLOAT ResourceMinLODClamp;
  2485. } D3D12_TEXCUBE_ARRAY_SRV;
  2486. typedef struct D3D12_TEX2DMS_SRV
  2487. {
  2488. UINT UnusedField_NothingToDefine;
  2489. } D3D12_TEX2DMS_SRV;
  2490. typedef struct D3D12_TEX2DMS_ARRAY_SRV
  2491. {
  2492. UINT FirstArraySlice;
  2493. UINT ArraySize;
  2494. } D3D12_TEX2DMS_ARRAY_SRV;
  2495. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV
  2496. {
  2497. D3D12_GPU_VIRTUAL_ADDRESS Location;
  2498. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV;
  2499. typedef
  2500. enum D3D12_SRV_DIMENSION
  2501. {
  2502. D3D12_SRV_DIMENSION_UNKNOWN = 0,
  2503. D3D12_SRV_DIMENSION_BUFFER = 1,
  2504. D3D12_SRV_DIMENSION_TEXTURE1D = 2,
  2505. D3D12_SRV_DIMENSION_TEXTURE1DARRAY = 3,
  2506. D3D12_SRV_DIMENSION_TEXTURE2D = 4,
  2507. D3D12_SRV_DIMENSION_TEXTURE2DARRAY = 5,
  2508. D3D12_SRV_DIMENSION_TEXTURE2DMS = 6,
  2509. D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY = 7,
  2510. D3D12_SRV_DIMENSION_TEXTURE3D = 8,
  2511. D3D12_SRV_DIMENSION_TEXTURECUBE = 9,
  2512. D3D12_SRV_DIMENSION_TEXTURECUBEARRAY = 10,
  2513. D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE = 11
  2514. } D3D12_SRV_DIMENSION;
  2515. typedef struct D3D12_SHADER_RESOURCE_VIEW_DESC
  2516. {
  2517. DXGI_FORMAT Format;
  2518. D3D12_SRV_DIMENSION ViewDimension;
  2519. UINT Shader4ComponentMapping;
  2520. union
  2521. {
  2522. D3D12_BUFFER_SRV Buffer;
  2523. D3D12_TEX1D_SRV Texture1D;
  2524. D3D12_TEX1D_ARRAY_SRV Texture1DArray;
  2525. D3D12_TEX2D_SRV Texture2D;
  2526. D3D12_TEX2D_ARRAY_SRV Texture2DArray;
  2527. D3D12_TEX2DMS_SRV Texture2DMS;
  2528. D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray;
  2529. D3D12_TEX3D_SRV Texture3D;
  2530. D3D12_TEXCUBE_SRV TextureCube;
  2531. D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray;
  2532. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV RaytracingAccelerationStructure;
  2533. } ;
  2534. } D3D12_SHADER_RESOURCE_VIEW_DESC;
  2535. typedef struct D3D12_CONSTANT_BUFFER_VIEW_DESC
  2536. {
  2537. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  2538. UINT SizeInBytes;
  2539. } D3D12_CONSTANT_BUFFER_VIEW_DESC;
  2540. typedef
  2541. enum D3D12_FILTER
  2542. {
  2543. D3D12_FILTER_MIN_MAG_MIP_POINT = 0,
  2544. D3D12_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x1,
  2545. D3D12_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x4,
  2546. D3D12_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x5,
  2547. D3D12_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
  2548. D3D12_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
  2549. D3D12_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
  2550. D3D12_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
  2551. D3D12_FILTER_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x54,
  2552. D3D12_FILTER_ANISOTROPIC = 0x55,
  2553. D3D12_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
  2554. D3D12_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
  2555. D3D12_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
  2556. D3D12_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
  2557. D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
  2558. D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
  2559. D3D12_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
  2560. D3D12_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
  2561. D3D12_FILTER_COMPARISON_MIN_MAG_ANISOTROPIC_MIP_POINT = 0xd4,
  2562. D3D12_FILTER_COMPARISON_ANISOTROPIC = 0xd5,
  2563. D3D12_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100,
  2564. D3D12_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101,
  2565. D3D12_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104,
  2566. D3D12_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105,
  2567. D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110,
  2568. D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111,
  2569. D3D12_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114,
  2570. D3D12_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115,
  2571. D3D12_FILTER_MINIMUM_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x154,
  2572. D3D12_FILTER_MINIMUM_ANISOTROPIC = 0x155,
  2573. D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180,
  2574. D3D12_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181,
  2575. D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184,
  2576. D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185,
  2577. D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190,
  2578. D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191,
  2579. D3D12_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194,
  2580. D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195,
  2581. D3D12_FILTER_MAXIMUM_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x1d4,
  2582. D3D12_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5
  2583. } D3D12_FILTER;
  2584. typedef
  2585. enum D3D12_FILTER_TYPE
  2586. {
  2587. D3D12_FILTER_TYPE_POINT = 0,
  2588. D3D12_FILTER_TYPE_LINEAR = 1
  2589. } D3D12_FILTER_TYPE;
  2590. typedef
  2591. enum D3D12_FILTER_REDUCTION_TYPE
  2592. {
  2593. D3D12_FILTER_REDUCTION_TYPE_STANDARD = 0,
  2594. D3D12_FILTER_REDUCTION_TYPE_COMPARISON = 1,
  2595. D3D12_FILTER_REDUCTION_TYPE_MINIMUM = 2,
  2596. D3D12_FILTER_REDUCTION_TYPE_MAXIMUM = 3
  2597. } D3D12_FILTER_REDUCTION_TYPE;
  2598. #define D3D12_FILTER_REDUCTION_TYPE_MASK ( 0x3 )
  2599. #define D3D12_FILTER_REDUCTION_TYPE_SHIFT ( 7 )
  2600. #define D3D12_FILTER_TYPE_MASK ( 0x3 )
  2601. #define D3D12_MIN_FILTER_SHIFT ( 4 )
  2602. #define D3D12_MAG_FILTER_SHIFT ( 2 )
  2603. #define D3D12_MIP_FILTER_SHIFT ( 0 )
  2604. #define D3D12_ANISOTROPIC_FILTERING_BIT ( 0x40 )
  2605. #define D3D12_ENCODE_BASIC_FILTER( min, mag, mip, reduction ) \
  2606. ( ( D3D12_FILTER ) ( \
  2607. ( ( ( min ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MIN_FILTER_SHIFT ) | \
  2608. ( ( ( mag ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MAG_FILTER_SHIFT ) | \
  2609. ( ( ( mip ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MIP_FILTER_SHIFT ) | \
  2610. ( ( ( reduction ) & D3D12_FILTER_REDUCTION_TYPE_MASK ) << D3D12_FILTER_REDUCTION_TYPE_SHIFT ) ) )
  2611. #define D3D12_ENCODE_ANISOTROPIC_FILTER( reduction ) \
  2612. ( ( D3D12_FILTER ) ( \
  2613. D3D12_ANISOTROPIC_FILTERING_BIT | \
  2614. D3D12_ENCODE_BASIC_FILTER( D3D12_FILTER_TYPE_LINEAR, \
  2615. D3D12_FILTER_TYPE_LINEAR, \
  2616. D3D12_FILTER_TYPE_LINEAR, \
  2617. reduction ) ) )
  2618. #define D3D12_ENCODE_MIN_MAG_ANISOTROPIC_MIP_POINT_FILTER( reduction ) \
  2619. ( ( D3D12_FILTER ) ( \
  2620. D3D12_ANISOTROPIC_FILTERING_BIT | \
  2621. D3D12_ENCODE_BASIC_FILTER( D3D12_FILTER_TYPE_LINEAR, \
  2622. D3D12_FILTER_TYPE_LINEAR, \
  2623. D3D12_FILTER_TYPE_POINT, \
  2624. reduction ) ) )
  2625. #define D3D12_DECODE_MIN_FILTER( D3D12Filter ) \
  2626. ( ( D3D12_FILTER_TYPE ) \
  2627. ( ( ( D3D12Filter ) >> D3D12_MIN_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) )
  2628. #define D3D12_DECODE_MAG_FILTER( D3D12Filter ) \
  2629. ( ( D3D12_FILTER_TYPE ) \
  2630. ( ( ( D3D12Filter ) >> D3D12_MAG_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) )
  2631. #define D3D12_DECODE_MIP_FILTER( D3D12Filter ) \
  2632. ( ( D3D12_FILTER_TYPE ) \
  2633. ( ( ( D3D12Filter ) >> D3D12_MIP_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) )
  2634. #define D3D12_DECODE_FILTER_REDUCTION( D3D12Filter ) \
  2635. ( ( D3D12_FILTER_REDUCTION_TYPE ) \
  2636. ( ( ( D3D12Filter ) >> D3D12_FILTER_REDUCTION_TYPE_SHIFT ) & D3D12_FILTER_REDUCTION_TYPE_MASK ) )
  2637. #define D3D12_DECODE_IS_COMPARISON_FILTER( D3D12Filter ) \
  2638. ( D3D12_DECODE_FILTER_REDUCTION( D3D12Filter ) == D3D12_FILTER_REDUCTION_TYPE_COMPARISON )
  2639. #define D3D12_DECODE_IS_ANISOTROPIC_FILTER( D3D12Filter ) \
  2640. ( ( ( D3D12Filter ) & D3D12_ANISOTROPIC_FILTERING_BIT ) && \
  2641. ( D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MIN_FILTER( D3D12Filter ) ) && \
  2642. ( D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MAG_FILTER( D3D12Filter ) ) )
  2643. typedef
  2644. enum D3D12_TEXTURE_ADDRESS_MODE
  2645. {
  2646. D3D12_TEXTURE_ADDRESS_MODE_WRAP = 1,
  2647. D3D12_TEXTURE_ADDRESS_MODE_MIRROR = 2,
  2648. D3D12_TEXTURE_ADDRESS_MODE_CLAMP = 3,
  2649. D3D12_TEXTURE_ADDRESS_MODE_BORDER = 4,
  2650. D3D12_TEXTURE_ADDRESS_MODE_MIRROR_ONCE = 5
  2651. } D3D12_TEXTURE_ADDRESS_MODE;
  2652. typedef struct D3D12_SAMPLER_DESC
  2653. {
  2654. D3D12_FILTER Filter;
  2655. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  2656. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  2657. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  2658. FLOAT MipLODBias;
  2659. UINT MaxAnisotropy;
  2660. D3D12_COMPARISON_FUNC ComparisonFunc;
  2661. FLOAT BorderColor[ 4 ];
  2662. FLOAT MinLOD;
  2663. FLOAT MaxLOD;
  2664. } D3D12_SAMPLER_DESC;
  2665. typedef
  2666. enum D3D12_SAMPLER_FLAGS
  2667. {
  2668. D3D12_SAMPLER_FLAG_NONE = 0,
  2669. D3D12_SAMPLER_FLAG_UINT_BORDER_COLOR = 0x1,
  2670. D3D12_SAMPLER_FLAG_NON_NORMALIZED_COORDINATES = 0x2
  2671. } D3D12_SAMPLER_FLAGS;
  2672. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SAMPLER_FLAGS )
  2673. typedef struct D3D12_SAMPLER_DESC2
  2674. {
  2675. D3D12_FILTER Filter;
  2676. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  2677. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  2678. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  2679. FLOAT MipLODBias;
  2680. UINT MaxAnisotropy;
  2681. D3D12_COMPARISON_FUNC ComparisonFunc;
  2682. union
  2683. {
  2684. FLOAT FloatBorderColor[ 4 ];
  2685. UINT UintBorderColor[ 4 ];
  2686. } ;
  2687. FLOAT MinLOD;
  2688. FLOAT MaxLOD;
  2689. D3D12_SAMPLER_FLAGS Flags;
  2690. } D3D12_SAMPLER_DESC2;
  2691. typedef
  2692. enum D3D12_BUFFER_UAV_FLAGS
  2693. {
  2694. D3D12_BUFFER_UAV_FLAG_NONE = 0,
  2695. D3D12_BUFFER_UAV_FLAG_RAW = 0x1
  2696. } D3D12_BUFFER_UAV_FLAGS;
  2697. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BUFFER_UAV_FLAGS )
  2698. typedef struct D3D12_BUFFER_UAV
  2699. {
  2700. UINT64 FirstElement;
  2701. UINT NumElements;
  2702. UINT StructureByteStride;
  2703. UINT64 CounterOffsetInBytes;
  2704. D3D12_BUFFER_UAV_FLAGS Flags;
  2705. } D3D12_BUFFER_UAV;
  2706. typedef struct D3D12_TEX1D_UAV
  2707. {
  2708. UINT MipSlice;
  2709. } D3D12_TEX1D_UAV;
  2710. typedef struct D3D12_TEX1D_ARRAY_UAV
  2711. {
  2712. UINT MipSlice;
  2713. UINT FirstArraySlice;
  2714. UINT ArraySize;
  2715. } D3D12_TEX1D_ARRAY_UAV;
  2716. typedef struct D3D12_TEX2D_UAV
  2717. {
  2718. UINT MipSlice;
  2719. UINT PlaneSlice;
  2720. } D3D12_TEX2D_UAV;
  2721. typedef struct D3D12_TEX2D_ARRAY_UAV
  2722. {
  2723. UINT MipSlice;
  2724. UINT FirstArraySlice;
  2725. UINT ArraySize;
  2726. UINT PlaneSlice;
  2727. } D3D12_TEX2D_ARRAY_UAV;
  2728. typedef struct D3D12_TEX2DMS_UAV
  2729. {
  2730. UINT UnusedField_NothingToDefine;
  2731. } D3D12_TEX2DMS_UAV;
  2732. typedef struct D3D12_TEX2DMS_ARRAY_UAV
  2733. {
  2734. UINT FirstArraySlice;
  2735. UINT ArraySize;
  2736. } D3D12_TEX2DMS_ARRAY_UAV;
  2737. typedef struct D3D12_TEX3D_UAV
  2738. {
  2739. UINT MipSlice;
  2740. UINT FirstWSlice;
  2741. UINT WSize;
  2742. } D3D12_TEX3D_UAV;
  2743. typedef
  2744. enum D3D12_UAV_DIMENSION
  2745. {
  2746. D3D12_UAV_DIMENSION_UNKNOWN = 0,
  2747. D3D12_UAV_DIMENSION_BUFFER = 1,
  2748. D3D12_UAV_DIMENSION_TEXTURE1D = 2,
  2749. D3D12_UAV_DIMENSION_TEXTURE1DARRAY = 3,
  2750. D3D12_UAV_DIMENSION_TEXTURE2D = 4,
  2751. D3D12_UAV_DIMENSION_TEXTURE2DARRAY = 5,
  2752. D3D12_UAV_DIMENSION_TEXTURE2DMS = 6,
  2753. D3D12_UAV_DIMENSION_TEXTURE2DMSARRAY = 7,
  2754. D3D12_UAV_DIMENSION_TEXTURE3D = 8
  2755. } D3D12_UAV_DIMENSION;
  2756. typedef struct D3D12_UNORDERED_ACCESS_VIEW_DESC
  2757. {
  2758. DXGI_FORMAT Format;
  2759. D3D12_UAV_DIMENSION ViewDimension;
  2760. union
  2761. {
  2762. D3D12_BUFFER_UAV Buffer;
  2763. D3D12_TEX1D_UAV Texture1D;
  2764. D3D12_TEX1D_ARRAY_UAV Texture1DArray;
  2765. D3D12_TEX2D_UAV Texture2D;
  2766. D3D12_TEX2D_ARRAY_UAV Texture2DArray;
  2767. D3D12_TEX2DMS_UAV Texture2DMS;
  2768. D3D12_TEX2DMS_ARRAY_UAV Texture2DMSArray;
  2769. D3D12_TEX3D_UAV Texture3D;
  2770. } ;
  2771. } D3D12_UNORDERED_ACCESS_VIEW_DESC;
  2772. typedef struct D3D12_BUFFER_RTV
  2773. {
  2774. UINT64 FirstElement;
  2775. UINT NumElements;
  2776. } D3D12_BUFFER_RTV;
  2777. typedef struct D3D12_TEX1D_RTV
  2778. {
  2779. UINT MipSlice;
  2780. } D3D12_TEX1D_RTV;
  2781. typedef struct D3D12_TEX1D_ARRAY_RTV
  2782. {
  2783. UINT MipSlice;
  2784. UINT FirstArraySlice;
  2785. UINT ArraySize;
  2786. } D3D12_TEX1D_ARRAY_RTV;
  2787. typedef struct D3D12_TEX2D_RTV
  2788. {
  2789. UINT MipSlice;
  2790. UINT PlaneSlice;
  2791. } D3D12_TEX2D_RTV;
  2792. typedef struct D3D12_TEX2DMS_RTV
  2793. {
  2794. UINT UnusedField_NothingToDefine;
  2795. } D3D12_TEX2DMS_RTV;
  2796. typedef struct D3D12_TEX2D_ARRAY_RTV
  2797. {
  2798. UINT MipSlice;
  2799. UINT FirstArraySlice;
  2800. UINT ArraySize;
  2801. UINT PlaneSlice;
  2802. } D3D12_TEX2D_ARRAY_RTV;
  2803. typedef struct D3D12_TEX2DMS_ARRAY_RTV
  2804. {
  2805. UINT FirstArraySlice;
  2806. UINT ArraySize;
  2807. } D3D12_TEX2DMS_ARRAY_RTV;
  2808. typedef struct D3D12_TEX3D_RTV
  2809. {
  2810. UINT MipSlice;
  2811. UINT FirstWSlice;
  2812. UINT WSize;
  2813. } D3D12_TEX3D_RTV;
  2814. typedef
  2815. enum D3D12_RTV_DIMENSION
  2816. {
  2817. D3D12_RTV_DIMENSION_UNKNOWN = 0,
  2818. D3D12_RTV_DIMENSION_BUFFER = 1,
  2819. D3D12_RTV_DIMENSION_TEXTURE1D = 2,
  2820. D3D12_RTV_DIMENSION_TEXTURE1DARRAY = 3,
  2821. D3D12_RTV_DIMENSION_TEXTURE2D = 4,
  2822. D3D12_RTV_DIMENSION_TEXTURE2DARRAY = 5,
  2823. D3D12_RTV_DIMENSION_TEXTURE2DMS = 6,
  2824. D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY = 7,
  2825. D3D12_RTV_DIMENSION_TEXTURE3D = 8
  2826. } D3D12_RTV_DIMENSION;
  2827. typedef struct D3D12_RENDER_TARGET_VIEW_DESC
  2828. {
  2829. DXGI_FORMAT Format;
  2830. D3D12_RTV_DIMENSION ViewDimension;
  2831. union
  2832. {
  2833. D3D12_BUFFER_RTV Buffer;
  2834. D3D12_TEX1D_RTV Texture1D;
  2835. D3D12_TEX1D_ARRAY_RTV Texture1DArray;
  2836. D3D12_TEX2D_RTV Texture2D;
  2837. D3D12_TEX2D_ARRAY_RTV Texture2DArray;
  2838. D3D12_TEX2DMS_RTV Texture2DMS;
  2839. D3D12_TEX2DMS_ARRAY_RTV Texture2DMSArray;
  2840. D3D12_TEX3D_RTV Texture3D;
  2841. } ;
  2842. } D3D12_RENDER_TARGET_VIEW_DESC;
  2843. typedef struct D3D12_TEX1D_DSV
  2844. {
  2845. UINT MipSlice;
  2846. } D3D12_TEX1D_DSV;
  2847. typedef struct D3D12_TEX1D_ARRAY_DSV
  2848. {
  2849. UINT MipSlice;
  2850. UINT FirstArraySlice;
  2851. UINT ArraySize;
  2852. } D3D12_TEX1D_ARRAY_DSV;
  2853. typedef struct D3D12_TEX2D_DSV
  2854. {
  2855. UINT MipSlice;
  2856. } D3D12_TEX2D_DSV;
  2857. typedef struct D3D12_TEX2D_ARRAY_DSV
  2858. {
  2859. UINT MipSlice;
  2860. UINT FirstArraySlice;
  2861. UINT ArraySize;
  2862. } D3D12_TEX2D_ARRAY_DSV;
  2863. typedef struct D3D12_TEX2DMS_DSV
  2864. {
  2865. UINT UnusedField_NothingToDefine;
  2866. } D3D12_TEX2DMS_DSV;
  2867. typedef struct D3D12_TEX2DMS_ARRAY_DSV
  2868. {
  2869. UINT FirstArraySlice;
  2870. UINT ArraySize;
  2871. } D3D12_TEX2DMS_ARRAY_DSV;
  2872. typedef
  2873. enum D3D12_DSV_FLAGS
  2874. {
  2875. D3D12_DSV_FLAG_NONE = 0,
  2876. D3D12_DSV_FLAG_READ_ONLY_DEPTH = 0x1,
  2877. D3D12_DSV_FLAG_READ_ONLY_STENCIL = 0x2
  2878. } D3D12_DSV_FLAGS;
  2879. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DSV_FLAGS )
  2880. typedef
  2881. enum D3D12_DSV_DIMENSION
  2882. {
  2883. D3D12_DSV_DIMENSION_UNKNOWN = 0,
  2884. D3D12_DSV_DIMENSION_TEXTURE1D = 1,
  2885. D3D12_DSV_DIMENSION_TEXTURE1DARRAY = 2,
  2886. D3D12_DSV_DIMENSION_TEXTURE2D = 3,
  2887. D3D12_DSV_DIMENSION_TEXTURE2DARRAY = 4,
  2888. D3D12_DSV_DIMENSION_TEXTURE2DMS = 5,
  2889. D3D12_DSV_DIMENSION_TEXTURE2DMSARRAY = 6
  2890. } D3D12_DSV_DIMENSION;
  2891. typedef struct D3D12_DEPTH_STENCIL_VIEW_DESC
  2892. {
  2893. DXGI_FORMAT Format;
  2894. D3D12_DSV_DIMENSION ViewDimension;
  2895. D3D12_DSV_FLAGS Flags;
  2896. union
  2897. {
  2898. D3D12_TEX1D_DSV Texture1D;
  2899. D3D12_TEX1D_ARRAY_DSV Texture1DArray;
  2900. D3D12_TEX2D_DSV Texture2D;
  2901. D3D12_TEX2D_ARRAY_DSV Texture2DArray;
  2902. D3D12_TEX2DMS_DSV Texture2DMS;
  2903. D3D12_TEX2DMS_ARRAY_DSV Texture2DMSArray;
  2904. } ;
  2905. } D3D12_DEPTH_STENCIL_VIEW_DESC;
  2906. typedef
  2907. enum D3D12_CLEAR_FLAGS
  2908. {
  2909. D3D12_CLEAR_FLAG_DEPTH = 0x1,
  2910. D3D12_CLEAR_FLAG_STENCIL = 0x2
  2911. } D3D12_CLEAR_FLAGS;
  2912. DEFINE_ENUM_FLAG_OPERATORS( D3D12_CLEAR_FLAGS )
  2913. typedef
  2914. enum D3D12_FENCE_FLAGS
  2915. {
  2916. D3D12_FENCE_FLAG_NONE = 0,
  2917. D3D12_FENCE_FLAG_SHARED = 0x1,
  2918. D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER = 0x2,
  2919. D3D12_FENCE_FLAG_NON_MONITORED = 0x4
  2920. } D3D12_FENCE_FLAGS;
  2921. DEFINE_ENUM_FLAG_OPERATORS( D3D12_FENCE_FLAGS )
  2922. typedef
  2923. enum D3D12_DESCRIPTOR_HEAP_TYPE
  2924. {
  2925. D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV = 0,
  2926. D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER = ( D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV + 1 ) ,
  2927. D3D12_DESCRIPTOR_HEAP_TYPE_RTV = ( D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER + 1 ) ,
  2928. D3D12_DESCRIPTOR_HEAP_TYPE_DSV = ( D3D12_DESCRIPTOR_HEAP_TYPE_RTV + 1 ) ,
  2929. D3D12_DESCRIPTOR_HEAP_TYPE_NUM_TYPES = ( D3D12_DESCRIPTOR_HEAP_TYPE_DSV + 1 )
  2930. } D3D12_DESCRIPTOR_HEAP_TYPE;
  2931. typedef
  2932. enum D3D12_DESCRIPTOR_HEAP_FLAGS
  2933. {
  2934. D3D12_DESCRIPTOR_HEAP_FLAG_NONE = 0,
  2935. D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE = 0x1
  2936. } D3D12_DESCRIPTOR_HEAP_FLAGS;
  2937. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DESCRIPTOR_HEAP_FLAGS )
  2938. typedef struct D3D12_DESCRIPTOR_HEAP_DESC
  2939. {
  2940. D3D12_DESCRIPTOR_HEAP_TYPE Type;
  2941. UINT NumDescriptors;
  2942. D3D12_DESCRIPTOR_HEAP_FLAGS Flags;
  2943. UINT NodeMask;
  2944. } D3D12_DESCRIPTOR_HEAP_DESC;
  2945. typedef
  2946. enum D3D12_DESCRIPTOR_RANGE_TYPE
  2947. {
  2948. D3D12_DESCRIPTOR_RANGE_TYPE_SRV = 0,
  2949. D3D12_DESCRIPTOR_RANGE_TYPE_UAV = ( D3D12_DESCRIPTOR_RANGE_TYPE_SRV + 1 ) ,
  2950. D3D12_DESCRIPTOR_RANGE_TYPE_CBV = ( D3D12_DESCRIPTOR_RANGE_TYPE_UAV + 1 ) ,
  2951. D3D12_DESCRIPTOR_RANGE_TYPE_SAMPLER = ( D3D12_DESCRIPTOR_RANGE_TYPE_CBV + 1 )
  2952. } D3D12_DESCRIPTOR_RANGE_TYPE;
  2953. typedef struct D3D12_DESCRIPTOR_RANGE
  2954. {
  2955. D3D12_DESCRIPTOR_RANGE_TYPE RangeType;
  2956. UINT NumDescriptors;
  2957. UINT BaseShaderRegister;
  2958. UINT RegisterSpace;
  2959. UINT OffsetInDescriptorsFromTableStart;
  2960. } D3D12_DESCRIPTOR_RANGE;
  2961. typedef struct D3D12_ROOT_DESCRIPTOR_TABLE
  2962. {
  2963. UINT NumDescriptorRanges;
  2964. _Field_size_full_(NumDescriptorRanges) const D3D12_DESCRIPTOR_RANGE *pDescriptorRanges;
  2965. } D3D12_ROOT_DESCRIPTOR_TABLE;
  2966. typedef struct D3D12_ROOT_CONSTANTS
  2967. {
  2968. UINT ShaderRegister;
  2969. UINT RegisterSpace;
  2970. UINT Num32BitValues;
  2971. } D3D12_ROOT_CONSTANTS;
  2972. typedef struct D3D12_ROOT_DESCRIPTOR
  2973. {
  2974. UINT ShaderRegister;
  2975. UINT RegisterSpace;
  2976. } D3D12_ROOT_DESCRIPTOR;
  2977. typedef
  2978. enum D3D12_SHADER_VISIBILITY
  2979. {
  2980. D3D12_SHADER_VISIBILITY_ALL = 0,
  2981. D3D12_SHADER_VISIBILITY_VERTEX = 1,
  2982. D3D12_SHADER_VISIBILITY_HULL = 2,
  2983. D3D12_SHADER_VISIBILITY_DOMAIN = 3,
  2984. D3D12_SHADER_VISIBILITY_GEOMETRY = 4,
  2985. D3D12_SHADER_VISIBILITY_PIXEL = 5,
  2986. D3D12_SHADER_VISIBILITY_AMPLIFICATION = 6,
  2987. D3D12_SHADER_VISIBILITY_MESH = 7
  2988. } D3D12_SHADER_VISIBILITY;
  2989. typedef
  2990. enum D3D12_ROOT_PARAMETER_TYPE
  2991. {
  2992. D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE = 0,
  2993. D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS = ( D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE + 1 ) ,
  2994. D3D12_ROOT_PARAMETER_TYPE_CBV = ( D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS + 1 ) ,
  2995. D3D12_ROOT_PARAMETER_TYPE_SRV = ( D3D12_ROOT_PARAMETER_TYPE_CBV + 1 ) ,
  2996. D3D12_ROOT_PARAMETER_TYPE_UAV = ( D3D12_ROOT_PARAMETER_TYPE_SRV + 1 )
  2997. } D3D12_ROOT_PARAMETER_TYPE;
  2998. typedef struct D3D12_ROOT_PARAMETER
  2999. {
  3000. D3D12_ROOT_PARAMETER_TYPE ParameterType;
  3001. union
  3002. {
  3003. D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable;
  3004. D3D12_ROOT_CONSTANTS Constants;
  3005. D3D12_ROOT_DESCRIPTOR Descriptor;
  3006. } ;
  3007. D3D12_SHADER_VISIBILITY ShaderVisibility;
  3008. } D3D12_ROOT_PARAMETER;
  3009. typedef
  3010. enum D3D12_ROOT_SIGNATURE_FLAGS
  3011. {
  3012. D3D12_ROOT_SIGNATURE_FLAG_NONE = 0,
  3013. D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT = 0x1,
  3014. D3D12_ROOT_SIGNATURE_FLAG_DENY_VERTEX_SHADER_ROOT_ACCESS = 0x2,
  3015. D3D12_ROOT_SIGNATURE_FLAG_DENY_HULL_SHADER_ROOT_ACCESS = 0x4,
  3016. D3D12_ROOT_SIGNATURE_FLAG_DENY_DOMAIN_SHADER_ROOT_ACCESS = 0x8,
  3017. D3D12_ROOT_SIGNATURE_FLAG_DENY_GEOMETRY_SHADER_ROOT_ACCESS = 0x10,
  3018. D3D12_ROOT_SIGNATURE_FLAG_DENY_PIXEL_SHADER_ROOT_ACCESS = 0x20,
  3019. D3D12_ROOT_SIGNATURE_FLAG_ALLOW_STREAM_OUTPUT = 0x40,
  3020. D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE = 0x80,
  3021. D3D12_ROOT_SIGNATURE_FLAG_DENY_AMPLIFICATION_SHADER_ROOT_ACCESS = 0x100,
  3022. D3D12_ROOT_SIGNATURE_FLAG_DENY_MESH_SHADER_ROOT_ACCESS = 0x200,
  3023. D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED = 0x400,
  3024. D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED = 0x800
  3025. } D3D12_ROOT_SIGNATURE_FLAGS;
  3026. DEFINE_ENUM_FLAG_OPERATORS( D3D12_ROOT_SIGNATURE_FLAGS )
  3027. typedef
  3028. enum D3D12_STATIC_BORDER_COLOR
  3029. {
  3030. D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK = 0,
  3031. D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK = ( D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK + 1 ) ,
  3032. D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK + 1 ) ,
  3033. D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE + 1 ) ,
  3034. D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE_UINT = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT + 1 )
  3035. } D3D12_STATIC_BORDER_COLOR;
  3036. typedef struct D3D12_STATIC_SAMPLER_DESC
  3037. {
  3038. D3D12_FILTER Filter;
  3039. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  3040. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  3041. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  3042. FLOAT MipLODBias;
  3043. UINT MaxAnisotropy;
  3044. D3D12_COMPARISON_FUNC ComparisonFunc;
  3045. D3D12_STATIC_BORDER_COLOR BorderColor;
  3046. FLOAT MinLOD;
  3047. FLOAT MaxLOD;
  3048. UINT ShaderRegister;
  3049. UINT RegisterSpace;
  3050. D3D12_SHADER_VISIBILITY ShaderVisibility;
  3051. } D3D12_STATIC_SAMPLER_DESC;
  3052. typedef struct D3D12_STATIC_SAMPLER_DESC1
  3053. {
  3054. D3D12_FILTER Filter;
  3055. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  3056. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  3057. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  3058. FLOAT MipLODBias;
  3059. UINT MaxAnisotropy;
  3060. D3D12_COMPARISON_FUNC ComparisonFunc;
  3061. D3D12_STATIC_BORDER_COLOR BorderColor;
  3062. FLOAT MinLOD;
  3063. FLOAT MaxLOD;
  3064. UINT ShaderRegister;
  3065. UINT RegisterSpace;
  3066. D3D12_SHADER_VISIBILITY ShaderVisibility;
  3067. D3D12_SAMPLER_FLAGS Flags;
  3068. } D3D12_STATIC_SAMPLER_DESC1;
  3069. typedef struct D3D12_ROOT_SIGNATURE_DESC
  3070. {
  3071. UINT NumParameters;
  3072. _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER *pParameters;
  3073. UINT NumStaticSamplers;
  3074. _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers;
  3075. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  3076. } D3D12_ROOT_SIGNATURE_DESC;
  3077. typedef
  3078. enum D3D12_DESCRIPTOR_RANGE_FLAGS
  3079. {
  3080. D3D12_DESCRIPTOR_RANGE_FLAG_NONE = 0,
  3081. D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_VOLATILE = 0x1,
  3082. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_VOLATILE = 0x2,
  3083. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4,
  3084. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC = 0x8,
  3085. D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS = 0x10000
  3086. } D3D12_DESCRIPTOR_RANGE_FLAGS;
  3087. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DESCRIPTOR_RANGE_FLAGS )
  3088. typedef struct D3D12_DESCRIPTOR_RANGE1
  3089. {
  3090. D3D12_DESCRIPTOR_RANGE_TYPE RangeType;
  3091. UINT NumDescriptors;
  3092. UINT BaseShaderRegister;
  3093. UINT RegisterSpace;
  3094. D3D12_DESCRIPTOR_RANGE_FLAGS Flags;
  3095. UINT OffsetInDescriptorsFromTableStart;
  3096. } D3D12_DESCRIPTOR_RANGE1;
  3097. typedef struct D3D12_ROOT_DESCRIPTOR_TABLE1
  3098. {
  3099. UINT NumDescriptorRanges;
  3100. _Field_size_full_(NumDescriptorRanges) const D3D12_DESCRIPTOR_RANGE1 *pDescriptorRanges;
  3101. } D3D12_ROOT_DESCRIPTOR_TABLE1;
  3102. typedef
  3103. enum D3D12_ROOT_DESCRIPTOR_FLAGS
  3104. {
  3105. D3D12_ROOT_DESCRIPTOR_FLAG_NONE = 0,
  3106. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_VOLATILE = 0x2,
  3107. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4,
  3108. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC = 0x8
  3109. } D3D12_ROOT_DESCRIPTOR_FLAGS;
  3110. DEFINE_ENUM_FLAG_OPERATORS( D3D12_ROOT_DESCRIPTOR_FLAGS )
  3111. typedef struct D3D12_ROOT_DESCRIPTOR1
  3112. {
  3113. UINT ShaderRegister;
  3114. UINT RegisterSpace;
  3115. D3D12_ROOT_DESCRIPTOR_FLAGS Flags;
  3116. } D3D12_ROOT_DESCRIPTOR1;
  3117. typedef struct D3D12_ROOT_PARAMETER1
  3118. {
  3119. D3D12_ROOT_PARAMETER_TYPE ParameterType;
  3120. union
  3121. {
  3122. D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable;
  3123. D3D12_ROOT_CONSTANTS Constants;
  3124. D3D12_ROOT_DESCRIPTOR1 Descriptor;
  3125. } ;
  3126. D3D12_SHADER_VISIBILITY ShaderVisibility;
  3127. } D3D12_ROOT_PARAMETER1;
  3128. typedef struct D3D12_ROOT_SIGNATURE_DESC1
  3129. {
  3130. UINT NumParameters;
  3131. _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER1 *pParameters;
  3132. UINT NumStaticSamplers;
  3133. _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers;
  3134. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  3135. } D3D12_ROOT_SIGNATURE_DESC1;
  3136. typedef struct D3D12_ROOT_SIGNATURE_DESC2
  3137. {
  3138. UINT NumParameters;
  3139. _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER1 *pParameters;
  3140. UINT NumStaticSamplers;
  3141. _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC1 *pStaticSamplers;
  3142. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  3143. } D3D12_ROOT_SIGNATURE_DESC2;
  3144. typedef struct D3D12_VERSIONED_ROOT_SIGNATURE_DESC
  3145. {
  3146. D3D_ROOT_SIGNATURE_VERSION Version;
  3147. union
  3148. {
  3149. D3D12_ROOT_SIGNATURE_DESC Desc_1_0;
  3150. D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1;
  3151. D3D12_ROOT_SIGNATURE_DESC2 Desc_1_2;
  3152. } ;
  3153. } D3D12_VERSIONED_ROOT_SIGNATURE_DESC;
  3154. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0001_v0_0_c_ifspec;
  3155. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0001_v0_0_s_ifspec;
  3156. #ifndef __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__
  3157. #define __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__
  3158. /* interface ID3D12RootSignatureDeserializer */
  3159. /* [unique][local][object][uuid] */
  3160. EXTERN_C const IID IID_ID3D12RootSignatureDeserializer;
  3161. #if defined(__cplusplus) && !defined(CINTERFACE)
  3162. MIDL_INTERFACE("34AB647B-3CC8-46AC-841B-C0965645C046")
  3163. ID3D12RootSignatureDeserializer : public IUnknown
  3164. {
  3165. public:
  3166. virtual const D3D12_ROOT_SIGNATURE_DESC *STDMETHODCALLTYPE GetRootSignatureDesc( void) = 0;
  3167. };
  3168. #else /* C style interface */
  3169. typedef struct ID3D12RootSignatureDeserializerVtbl
  3170. {
  3171. BEGIN_INTERFACE
  3172. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3173. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3174. ID3D12RootSignatureDeserializer * This,
  3175. REFIID riid,
  3176. _COM_Outptr_ void **ppvObject);
  3177. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3178. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3179. ID3D12RootSignatureDeserializer * This);
  3180. DECLSPEC_XFGVIRT(IUnknown, Release)
  3181. ULONG ( STDMETHODCALLTYPE *Release )(
  3182. ID3D12RootSignatureDeserializer * This);
  3183. DECLSPEC_XFGVIRT(ID3D12RootSignatureDeserializer, GetRootSignatureDesc)
  3184. const D3D12_ROOT_SIGNATURE_DESC *( STDMETHODCALLTYPE *GetRootSignatureDesc )(
  3185. ID3D12RootSignatureDeserializer * This);
  3186. END_INTERFACE
  3187. } ID3D12RootSignatureDeserializerVtbl;
  3188. interface ID3D12RootSignatureDeserializer
  3189. {
  3190. CONST_VTBL struct ID3D12RootSignatureDeserializerVtbl *lpVtbl;
  3191. };
  3192. #ifdef COBJMACROS
  3193. #define ID3D12RootSignatureDeserializer_QueryInterface(This,riid,ppvObject) \
  3194. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3195. #define ID3D12RootSignatureDeserializer_AddRef(This) \
  3196. ( (This)->lpVtbl -> AddRef(This) )
  3197. #define ID3D12RootSignatureDeserializer_Release(This) \
  3198. ( (This)->lpVtbl -> Release(This) )
  3199. #define ID3D12RootSignatureDeserializer_GetRootSignatureDesc(This) \
  3200. ( (This)->lpVtbl -> GetRootSignatureDesc(This) )
  3201. #endif /* COBJMACROS */
  3202. #endif /* C style interface */
  3203. #endif /* __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__ */
  3204. #ifndef __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__
  3205. #define __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__
  3206. /* interface ID3D12VersionedRootSignatureDeserializer */
  3207. /* [unique][local][object][uuid] */
  3208. EXTERN_C const IID IID_ID3D12VersionedRootSignatureDeserializer;
  3209. #if defined(__cplusplus) && !defined(CINTERFACE)
  3210. MIDL_INTERFACE("7F91CE67-090C-4BB7-B78E-ED8FF2E31DA0")
  3211. ID3D12VersionedRootSignatureDeserializer : public IUnknown
  3212. {
  3213. public:
  3214. virtual HRESULT STDMETHODCALLTYPE GetRootSignatureDescAtVersion(
  3215. D3D_ROOT_SIGNATURE_VERSION convertToVersion,
  3216. _Out_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **ppDesc) = 0;
  3217. virtual const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *STDMETHODCALLTYPE GetUnconvertedRootSignatureDesc( void) = 0;
  3218. };
  3219. #else /* C style interface */
  3220. typedef struct ID3D12VersionedRootSignatureDeserializerVtbl
  3221. {
  3222. BEGIN_INTERFACE
  3223. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3224. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3225. ID3D12VersionedRootSignatureDeserializer * This,
  3226. REFIID riid,
  3227. _COM_Outptr_ void **ppvObject);
  3228. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3229. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3230. ID3D12VersionedRootSignatureDeserializer * This);
  3231. DECLSPEC_XFGVIRT(IUnknown, Release)
  3232. ULONG ( STDMETHODCALLTYPE *Release )(
  3233. ID3D12VersionedRootSignatureDeserializer * This);
  3234. DECLSPEC_XFGVIRT(ID3D12VersionedRootSignatureDeserializer, GetRootSignatureDescAtVersion)
  3235. HRESULT ( STDMETHODCALLTYPE *GetRootSignatureDescAtVersion )(
  3236. ID3D12VersionedRootSignatureDeserializer * This,
  3237. D3D_ROOT_SIGNATURE_VERSION convertToVersion,
  3238. _Out_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **ppDesc);
  3239. DECLSPEC_XFGVIRT(ID3D12VersionedRootSignatureDeserializer, GetUnconvertedRootSignatureDesc)
  3240. const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *( STDMETHODCALLTYPE *GetUnconvertedRootSignatureDesc )(
  3241. ID3D12VersionedRootSignatureDeserializer * This);
  3242. END_INTERFACE
  3243. } ID3D12VersionedRootSignatureDeserializerVtbl;
  3244. interface ID3D12VersionedRootSignatureDeserializer
  3245. {
  3246. CONST_VTBL struct ID3D12VersionedRootSignatureDeserializerVtbl *lpVtbl;
  3247. };
  3248. #ifdef COBJMACROS
  3249. #define ID3D12VersionedRootSignatureDeserializer_QueryInterface(This,riid,ppvObject) \
  3250. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3251. #define ID3D12VersionedRootSignatureDeserializer_AddRef(This) \
  3252. ( (This)->lpVtbl -> AddRef(This) )
  3253. #define ID3D12VersionedRootSignatureDeserializer_Release(This) \
  3254. ( (This)->lpVtbl -> Release(This) )
  3255. #define ID3D12VersionedRootSignatureDeserializer_GetRootSignatureDescAtVersion(This,convertToVersion,ppDesc) \
  3256. ( (This)->lpVtbl -> GetRootSignatureDescAtVersion(This,convertToVersion,ppDesc) )
  3257. #define ID3D12VersionedRootSignatureDeserializer_GetUnconvertedRootSignatureDesc(This) \
  3258. ( (This)->lpVtbl -> GetUnconvertedRootSignatureDesc(This) )
  3259. #endif /* COBJMACROS */
  3260. #endif /* C style interface */
  3261. #endif /* __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__ */
  3262. /* interface __MIDL_itf_d3d12_0000_0003 */
  3263. /* [local] */
  3264. typedef HRESULT (WINAPI* PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(
  3265. _In_ const D3D12_ROOT_SIGNATURE_DESC* pRootSignature,
  3266. _In_ D3D_ROOT_SIGNATURE_VERSION Version,
  3267. _Out_ ID3DBlob** ppBlob,
  3268. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3269. HRESULT WINAPI D3D12SerializeRootSignature(
  3270. _In_ const D3D12_ROOT_SIGNATURE_DESC* pRootSignature,
  3271. _In_ D3D_ROOT_SIGNATURE_VERSION Version,
  3272. _Out_ ID3DBlob** ppBlob,
  3273. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3274. typedef HRESULT (WINAPI* PFN_D3D12_CREATE_ROOT_SIGNATURE_DESERIALIZER)(
  3275. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3276. _In_ SIZE_T SrcDataSizeInBytes,
  3277. _In_ REFIID pRootSignatureDeserializerInterface,
  3278. _Out_ void** ppRootSignatureDeserializer);
  3279. HRESULT WINAPI D3D12CreateRootSignatureDeserializer(
  3280. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3281. _In_ SIZE_T SrcDataSizeInBytes,
  3282. _In_ REFIID pRootSignatureDeserializerInterface,
  3283. _Out_ void** ppRootSignatureDeserializer);
  3284. typedef HRESULT (WINAPI* PFN_D3D12_SERIALIZE_VERSIONED_ROOT_SIGNATURE)(
  3285. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature,
  3286. _Out_ ID3DBlob** ppBlob,
  3287. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3288. HRESULT WINAPI D3D12SerializeVersionedRootSignature(
  3289. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature,
  3290. _Out_ ID3DBlob** ppBlob,
  3291. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3292. typedef HRESULT (WINAPI* PFN_D3D12_CREATE_VERSIONED_ROOT_SIGNATURE_DESERIALIZER)(
  3293. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3294. _In_ SIZE_T SrcDataSizeInBytes,
  3295. _In_ REFIID pRootSignatureDeserializerInterface,
  3296. _Out_ void** ppRootSignatureDeserializer);
  3297. HRESULT WINAPI D3D12CreateVersionedRootSignatureDeserializer(
  3298. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3299. _In_ SIZE_T SrcDataSizeInBytes,
  3300. _In_ REFIID pRootSignatureDeserializerInterface,
  3301. _Out_ void** ppRootSignatureDeserializer);
  3302. typedef struct D3D12_CPU_DESCRIPTOR_HANDLE
  3303. {
  3304. SIZE_T ptr;
  3305. } D3D12_CPU_DESCRIPTOR_HANDLE;
  3306. typedef struct D3D12_GPU_DESCRIPTOR_HANDLE
  3307. {
  3308. UINT64 ptr;
  3309. } D3D12_GPU_DESCRIPTOR_HANDLE;
  3310. // If rects are supplied in D3D12_DISCARD_REGION, below, the resource
  3311. // must have 2D subresources with all specified subresources the same dimension.
  3312. typedef struct D3D12_DISCARD_REGION
  3313. {
  3314. UINT NumRects;
  3315. _In_reads_(NumRects) const D3D12_RECT *pRects;
  3316. UINT FirstSubresource;
  3317. UINT NumSubresources;
  3318. } D3D12_DISCARD_REGION;
  3319. typedef
  3320. enum D3D12_QUERY_HEAP_TYPE
  3321. {
  3322. D3D12_QUERY_HEAP_TYPE_OCCLUSION = 0,
  3323. D3D12_QUERY_HEAP_TYPE_TIMESTAMP = 1,
  3324. D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS = 2,
  3325. D3D12_QUERY_HEAP_TYPE_SO_STATISTICS = 3,
  3326. D3D12_QUERY_HEAP_TYPE_VIDEO_DECODE_STATISTICS = 4,
  3327. D3D12_QUERY_HEAP_TYPE_COPY_QUEUE_TIMESTAMP = 5,
  3328. D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS1 = 7
  3329. } D3D12_QUERY_HEAP_TYPE;
  3330. typedef struct D3D12_QUERY_HEAP_DESC
  3331. {
  3332. D3D12_QUERY_HEAP_TYPE Type;
  3333. UINT Count;
  3334. UINT NodeMask;
  3335. } D3D12_QUERY_HEAP_DESC;
  3336. typedef
  3337. enum D3D12_QUERY_TYPE
  3338. {
  3339. D3D12_QUERY_TYPE_OCCLUSION = 0,
  3340. D3D12_QUERY_TYPE_BINARY_OCCLUSION = 1,
  3341. D3D12_QUERY_TYPE_TIMESTAMP = 2,
  3342. D3D12_QUERY_TYPE_PIPELINE_STATISTICS = 3,
  3343. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM0 = 4,
  3344. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM1 = 5,
  3345. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM2 = 6,
  3346. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM3 = 7,
  3347. D3D12_QUERY_TYPE_VIDEO_DECODE_STATISTICS = 8,
  3348. D3D12_QUERY_TYPE_PIPELINE_STATISTICS1 = 10
  3349. } D3D12_QUERY_TYPE;
  3350. typedef
  3351. enum D3D12_PREDICATION_OP
  3352. {
  3353. D3D12_PREDICATION_OP_EQUAL_ZERO = 0,
  3354. D3D12_PREDICATION_OP_NOT_EQUAL_ZERO = 1
  3355. } D3D12_PREDICATION_OP;
  3356. typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS
  3357. {
  3358. UINT64 IAVertices;
  3359. UINT64 IAPrimitives;
  3360. UINT64 VSInvocations;
  3361. UINT64 GSInvocations;
  3362. UINT64 GSPrimitives;
  3363. UINT64 CInvocations;
  3364. UINT64 CPrimitives;
  3365. UINT64 PSInvocations;
  3366. UINT64 HSInvocations;
  3367. UINT64 DSInvocations;
  3368. UINT64 CSInvocations;
  3369. } D3D12_QUERY_DATA_PIPELINE_STATISTICS;
  3370. typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS1
  3371. {
  3372. UINT64 IAVertices;
  3373. UINT64 IAPrimitives;
  3374. UINT64 VSInvocations;
  3375. UINT64 GSInvocations;
  3376. UINT64 GSPrimitives;
  3377. UINT64 CInvocations;
  3378. UINT64 CPrimitives;
  3379. UINT64 PSInvocations;
  3380. UINT64 HSInvocations;
  3381. UINT64 DSInvocations;
  3382. UINT64 CSInvocations;
  3383. UINT64 ASInvocations;
  3384. UINT64 MSInvocations;
  3385. UINT64 MSPrimitives;
  3386. } D3D12_QUERY_DATA_PIPELINE_STATISTICS1;
  3387. typedef struct D3D12_QUERY_DATA_SO_STATISTICS
  3388. {
  3389. UINT64 NumPrimitivesWritten;
  3390. UINT64 PrimitivesStorageNeeded;
  3391. } D3D12_QUERY_DATA_SO_STATISTICS;
  3392. typedef struct D3D12_STREAM_OUTPUT_BUFFER_VIEW
  3393. {
  3394. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  3395. UINT64 SizeInBytes;
  3396. D3D12_GPU_VIRTUAL_ADDRESS BufferFilledSizeLocation;
  3397. } D3D12_STREAM_OUTPUT_BUFFER_VIEW;
  3398. typedef struct D3D12_DRAW_ARGUMENTS
  3399. {
  3400. UINT VertexCountPerInstance;
  3401. UINT InstanceCount;
  3402. UINT StartVertexLocation;
  3403. UINT StartInstanceLocation;
  3404. } D3D12_DRAW_ARGUMENTS;
  3405. typedef struct D3D12_DRAW_INDEXED_ARGUMENTS
  3406. {
  3407. UINT IndexCountPerInstance;
  3408. UINT InstanceCount;
  3409. UINT StartIndexLocation;
  3410. INT BaseVertexLocation;
  3411. UINT StartInstanceLocation;
  3412. } D3D12_DRAW_INDEXED_ARGUMENTS;
  3413. typedef struct D3D12_DISPATCH_ARGUMENTS
  3414. {
  3415. UINT ThreadGroupCountX;
  3416. UINT ThreadGroupCountY;
  3417. UINT ThreadGroupCountZ;
  3418. } D3D12_DISPATCH_ARGUMENTS;
  3419. typedef struct D3D12_VERTEX_BUFFER_VIEW
  3420. {
  3421. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  3422. UINT SizeInBytes;
  3423. UINT StrideInBytes;
  3424. } D3D12_VERTEX_BUFFER_VIEW;
  3425. typedef struct D3D12_INDEX_BUFFER_VIEW
  3426. {
  3427. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  3428. UINT SizeInBytes;
  3429. DXGI_FORMAT Format;
  3430. } D3D12_INDEX_BUFFER_VIEW;
  3431. typedef
  3432. enum D3D12_INDIRECT_ARGUMENT_TYPE
  3433. {
  3434. D3D12_INDIRECT_ARGUMENT_TYPE_DRAW = 0,
  3435. D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED = ( D3D12_INDIRECT_ARGUMENT_TYPE_DRAW + 1 ) ,
  3436. D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH = ( D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED + 1 ) ,
  3437. D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH + 1 ) ,
  3438. D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW + 1 ) ,
  3439. D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT = ( D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW + 1 ) ,
  3440. D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT + 1 ) ,
  3441. D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW + 1 ) ,
  3442. D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW + 1 ) ,
  3443. D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS = ( D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW + 1 ) ,
  3444. D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS + 1 ) ,
  3445. D3D12_INDIRECT_ARGUMENT_TYPE_INCREMENTING_CONSTANT = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH + 1 )
  3446. } D3D12_INDIRECT_ARGUMENT_TYPE;
  3447. typedef struct D3D12_INDIRECT_ARGUMENT_DESC
  3448. {
  3449. D3D12_INDIRECT_ARGUMENT_TYPE Type;
  3450. union
  3451. {
  3452. struct
  3453. {
  3454. UINT Slot;
  3455. } VertexBuffer;
  3456. struct
  3457. {
  3458. UINT RootParameterIndex;
  3459. UINT DestOffsetIn32BitValues;
  3460. UINT Num32BitValuesToSet;
  3461. } Constant;
  3462. struct
  3463. {
  3464. UINT RootParameterIndex;
  3465. } ConstantBufferView;
  3466. struct
  3467. {
  3468. UINT RootParameterIndex;
  3469. } ShaderResourceView;
  3470. struct
  3471. {
  3472. UINT RootParameterIndex;
  3473. } UnorderedAccessView;
  3474. struct
  3475. {
  3476. UINT RootParameterIndex;
  3477. UINT DestOffsetIn32BitValues;
  3478. } IncrementingConstant;
  3479. } ;
  3480. } D3D12_INDIRECT_ARGUMENT_DESC;
  3481. typedef struct D3D12_COMMAND_SIGNATURE_DESC
  3482. {
  3483. UINT ByteStride;
  3484. UINT NumArgumentDescs;
  3485. _Field_size_full_(NumArgumentDescs) const D3D12_INDIRECT_ARGUMENT_DESC *pArgumentDescs;
  3486. UINT NodeMask;
  3487. } D3D12_COMMAND_SIGNATURE_DESC;
  3488. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0003_v0_0_c_ifspec;
  3489. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0003_v0_0_s_ifspec;
  3490. #ifndef __ID3D12Pageable_INTERFACE_DEFINED__
  3491. #define __ID3D12Pageable_INTERFACE_DEFINED__
  3492. /* interface ID3D12Pageable */
  3493. /* [unique][local][object][uuid] */
  3494. EXTERN_C const IID IID_ID3D12Pageable;
  3495. #if defined(__cplusplus) && !defined(CINTERFACE)
  3496. MIDL_INTERFACE("63ee58fb-1268-4835-86da-f008ce62f0d6")
  3497. ID3D12Pageable : public ID3D12DeviceChild
  3498. {
  3499. public:
  3500. };
  3501. #else /* C style interface */
  3502. typedef struct ID3D12PageableVtbl
  3503. {
  3504. BEGIN_INTERFACE
  3505. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3506. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3507. ID3D12Pageable * This,
  3508. REFIID riid,
  3509. _COM_Outptr_ void **ppvObject);
  3510. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3511. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3512. ID3D12Pageable * This);
  3513. DECLSPEC_XFGVIRT(IUnknown, Release)
  3514. ULONG ( STDMETHODCALLTYPE *Release )(
  3515. ID3D12Pageable * This);
  3516. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3517. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3518. ID3D12Pageable * This,
  3519. _In_ REFGUID guid,
  3520. _Inout_ UINT *pDataSize,
  3521. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3522. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3523. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3524. ID3D12Pageable * This,
  3525. _In_ REFGUID guid,
  3526. _In_ UINT DataSize,
  3527. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3528. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3529. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3530. ID3D12Pageable * This,
  3531. _In_ REFGUID guid,
  3532. _In_opt_ const IUnknown *pData);
  3533. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3534. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3535. ID3D12Pageable * This,
  3536. _In_z_ LPCWSTR Name);
  3537. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3538. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3539. ID3D12Pageable * This,
  3540. REFIID riid,
  3541. _COM_Outptr_opt_ void **ppvDevice);
  3542. END_INTERFACE
  3543. } ID3D12PageableVtbl;
  3544. interface ID3D12Pageable
  3545. {
  3546. CONST_VTBL struct ID3D12PageableVtbl *lpVtbl;
  3547. };
  3548. #ifdef COBJMACROS
  3549. #define ID3D12Pageable_QueryInterface(This,riid,ppvObject) \
  3550. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3551. #define ID3D12Pageable_AddRef(This) \
  3552. ( (This)->lpVtbl -> AddRef(This) )
  3553. #define ID3D12Pageable_Release(This) \
  3554. ( (This)->lpVtbl -> Release(This) )
  3555. #define ID3D12Pageable_GetPrivateData(This,guid,pDataSize,pData) \
  3556. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3557. #define ID3D12Pageable_SetPrivateData(This,guid,DataSize,pData) \
  3558. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3559. #define ID3D12Pageable_SetPrivateDataInterface(This,guid,pData) \
  3560. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3561. #define ID3D12Pageable_SetName(This,Name) \
  3562. ( (This)->lpVtbl -> SetName(This,Name) )
  3563. #define ID3D12Pageable_GetDevice(This,riid,ppvDevice) \
  3564. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3565. #endif /* COBJMACROS */
  3566. #endif /* C style interface */
  3567. #endif /* __ID3D12Pageable_INTERFACE_DEFINED__ */
  3568. #ifndef __ID3D12Heap_INTERFACE_DEFINED__
  3569. #define __ID3D12Heap_INTERFACE_DEFINED__
  3570. /* interface ID3D12Heap */
  3571. /* [unique][local][object][uuid] */
  3572. EXTERN_C const IID IID_ID3D12Heap;
  3573. #if defined(__cplusplus) && !defined(CINTERFACE)
  3574. MIDL_INTERFACE("6b3b2502-6e51-45b3-90ee-9884265e8df3")
  3575. ID3D12Heap : public ID3D12Pageable
  3576. {
  3577. public:
  3578. #if defined(_MSC_VER) || !defined(_WIN32)
  3579. virtual D3D12_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  3580. #else
  3581. virtual D3D12_HEAP_DESC *STDMETHODCALLTYPE GetDesc(
  3582. D3D12_HEAP_DESC * RetVal) = 0;
  3583. #endif
  3584. };
  3585. #else /* C style interface */
  3586. typedef struct ID3D12HeapVtbl
  3587. {
  3588. BEGIN_INTERFACE
  3589. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3590. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3591. ID3D12Heap * This,
  3592. REFIID riid,
  3593. _COM_Outptr_ void **ppvObject);
  3594. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3595. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3596. ID3D12Heap * This);
  3597. DECLSPEC_XFGVIRT(IUnknown, Release)
  3598. ULONG ( STDMETHODCALLTYPE *Release )(
  3599. ID3D12Heap * This);
  3600. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3601. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3602. ID3D12Heap * This,
  3603. _In_ REFGUID guid,
  3604. _Inout_ UINT *pDataSize,
  3605. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3606. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3607. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3608. ID3D12Heap * This,
  3609. _In_ REFGUID guid,
  3610. _In_ UINT DataSize,
  3611. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3612. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3613. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3614. ID3D12Heap * This,
  3615. _In_ REFGUID guid,
  3616. _In_opt_ const IUnknown *pData);
  3617. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3618. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3619. ID3D12Heap * This,
  3620. _In_z_ LPCWSTR Name);
  3621. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3622. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3623. ID3D12Heap * This,
  3624. REFIID riid,
  3625. _COM_Outptr_opt_ void **ppvDevice);
  3626. DECLSPEC_XFGVIRT(ID3D12Heap, GetDesc)
  3627. #if !defined(_WIN32)
  3628. D3D12_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )(
  3629. ID3D12Heap * This);
  3630. #else
  3631. D3D12_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )(
  3632. ID3D12Heap * This,
  3633. D3D12_HEAP_DESC * RetVal);
  3634. #endif
  3635. END_INTERFACE
  3636. } ID3D12HeapVtbl;
  3637. interface ID3D12Heap
  3638. {
  3639. CONST_VTBL struct ID3D12HeapVtbl *lpVtbl;
  3640. };
  3641. #ifdef COBJMACROS
  3642. #define ID3D12Heap_QueryInterface(This,riid,ppvObject) \
  3643. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3644. #define ID3D12Heap_AddRef(This) \
  3645. ( (This)->lpVtbl -> AddRef(This) )
  3646. #define ID3D12Heap_Release(This) \
  3647. ( (This)->lpVtbl -> Release(This) )
  3648. #define ID3D12Heap_GetPrivateData(This,guid,pDataSize,pData) \
  3649. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3650. #define ID3D12Heap_SetPrivateData(This,guid,DataSize,pData) \
  3651. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3652. #define ID3D12Heap_SetPrivateDataInterface(This,guid,pData) \
  3653. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3654. #define ID3D12Heap_SetName(This,Name) \
  3655. ( (This)->lpVtbl -> SetName(This,Name) )
  3656. #define ID3D12Heap_GetDevice(This,riid,ppvDevice) \
  3657. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3658. #if !defined(_WIN32)
  3659. #define ID3D12Heap_GetDesc(This) \
  3660. ( (This)->lpVtbl -> GetDesc(This) )
  3661. #else
  3662. #define ID3D12Heap_GetDesc(This,RetVal) \
  3663. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  3664. #endif
  3665. #endif /* COBJMACROS */
  3666. #endif /* C style interface */
  3667. #endif /* __ID3D12Heap_INTERFACE_DEFINED__ */
  3668. #ifndef __ID3D12Resource_INTERFACE_DEFINED__
  3669. #define __ID3D12Resource_INTERFACE_DEFINED__
  3670. /* interface ID3D12Resource */
  3671. /* [unique][local][object][uuid] */
  3672. EXTERN_C const IID IID_ID3D12Resource;
  3673. #if defined(__cplusplus) && !defined(CINTERFACE)
  3674. MIDL_INTERFACE("696442be-a72e-4059-bc79-5b5c98040fad")
  3675. ID3D12Resource : public ID3D12Pageable
  3676. {
  3677. public:
  3678. virtual HRESULT STDMETHODCALLTYPE Map(
  3679. UINT Subresource,
  3680. _In_opt_ const D3D12_RANGE *pReadRange,
  3681. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData) = 0;
  3682. virtual void STDMETHODCALLTYPE Unmap(
  3683. UINT Subresource,
  3684. _In_opt_ const D3D12_RANGE *pWrittenRange) = 0;
  3685. #if defined(_MSC_VER) || !defined(_WIN32)
  3686. virtual D3D12_RESOURCE_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  3687. #else
  3688. virtual D3D12_RESOURCE_DESC *STDMETHODCALLTYPE GetDesc(
  3689. D3D12_RESOURCE_DESC * RetVal) = 0;
  3690. #endif
  3691. virtual D3D12_GPU_VIRTUAL_ADDRESS STDMETHODCALLTYPE GetGPUVirtualAddress( void) = 0;
  3692. virtual HRESULT STDMETHODCALLTYPE WriteToSubresource(
  3693. UINT DstSubresource,
  3694. _In_opt_ const D3D12_BOX *pDstBox,
  3695. _In_ const void *pSrcData,
  3696. UINT SrcRowPitch,
  3697. UINT SrcDepthPitch) = 0;
  3698. virtual HRESULT STDMETHODCALLTYPE ReadFromSubresource(
  3699. _Out_ void *pDstData,
  3700. UINT DstRowPitch,
  3701. UINT DstDepthPitch,
  3702. UINT SrcSubresource,
  3703. _In_opt_ const D3D12_BOX *pSrcBox) = 0;
  3704. virtual HRESULT STDMETHODCALLTYPE GetHeapProperties(
  3705. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  3706. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags) = 0;
  3707. };
  3708. #else /* C style interface */
  3709. typedef struct ID3D12ResourceVtbl
  3710. {
  3711. BEGIN_INTERFACE
  3712. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3713. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3714. ID3D12Resource * This,
  3715. REFIID riid,
  3716. _COM_Outptr_ void **ppvObject);
  3717. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3718. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3719. ID3D12Resource * This);
  3720. DECLSPEC_XFGVIRT(IUnknown, Release)
  3721. ULONG ( STDMETHODCALLTYPE *Release )(
  3722. ID3D12Resource * This);
  3723. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3724. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3725. ID3D12Resource * This,
  3726. _In_ REFGUID guid,
  3727. _Inout_ UINT *pDataSize,
  3728. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3729. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3730. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3731. ID3D12Resource * This,
  3732. _In_ REFGUID guid,
  3733. _In_ UINT DataSize,
  3734. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3735. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3736. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3737. ID3D12Resource * This,
  3738. _In_ REFGUID guid,
  3739. _In_opt_ const IUnknown *pData);
  3740. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3741. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3742. ID3D12Resource * This,
  3743. _In_z_ LPCWSTR Name);
  3744. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3745. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3746. ID3D12Resource * This,
  3747. REFIID riid,
  3748. _COM_Outptr_opt_ void **ppvDevice);
  3749. DECLSPEC_XFGVIRT(ID3D12Resource, Map)
  3750. HRESULT ( STDMETHODCALLTYPE *Map )(
  3751. ID3D12Resource * This,
  3752. UINT Subresource,
  3753. _In_opt_ const D3D12_RANGE *pReadRange,
  3754. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData);
  3755. DECLSPEC_XFGVIRT(ID3D12Resource, Unmap)
  3756. void ( STDMETHODCALLTYPE *Unmap )(
  3757. ID3D12Resource * This,
  3758. UINT Subresource,
  3759. _In_opt_ const D3D12_RANGE *pWrittenRange);
  3760. DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc)
  3761. #if !defined(_WIN32)
  3762. D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  3763. ID3D12Resource * This);
  3764. #else
  3765. D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  3766. ID3D12Resource * This,
  3767. D3D12_RESOURCE_DESC * RetVal);
  3768. #endif
  3769. DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress)
  3770. D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )(
  3771. ID3D12Resource * This);
  3772. DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource)
  3773. HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )(
  3774. ID3D12Resource * This,
  3775. UINT DstSubresource,
  3776. _In_opt_ const D3D12_BOX *pDstBox,
  3777. _In_ const void *pSrcData,
  3778. UINT SrcRowPitch,
  3779. UINT SrcDepthPitch);
  3780. DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource)
  3781. HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )(
  3782. ID3D12Resource * This,
  3783. _Out_ void *pDstData,
  3784. UINT DstRowPitch,
  3785. UINT DstDepthPitch,
  3786. UINT SrcSubresource,
  3787. _In_opt_ const D3D12_BOX *pSrcBox);
  3788. DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties)
  3789. HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )(
  3790. ID3D12Resource * This,
  3791. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  3792. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags);
  3793. END_INTERFACE
  3794. } ID3D12ResourceVtbl;
  3795. interface ID3D12Resource
  3796. {
  3797. CONST_VTBL struct ID3D12ResourceVtbl *lpVtbl;
  3798. };
  3799. #ifdef COBJMACROS
  3800. #define ID3D12Resource_QueryInterface(This,riid,ppvObject) \
  3801. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3802. #define ID3D12Resource_AddRef(This) \
  3803. ( (This)->lpVtbl -> AddRef(This) )
  3804. #define ID3D12Resource_Release(This) \
  3805. ( (This)->lpVtbl -> Release(This) )
  3806. #define ID3D12Resource_GetPrivateData(This,guid,pDataSize,pData) \
  3807. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3808. #define ID3D12Resource_SetPrivateData(This,guid,DataSize,pData) \
  3809. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3810. #define ID3D12Resource_SetPrivateDataInterface(This,guid,pData) \
  3811. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3812. #define ID3D12Resource_SetName(This,Name) \
  3813. ( (This)->lpVtbl -> SetName(This,Name) )
  3814. #define ID3D12Resource_GetDevice(This,riid,ppvDevice) \
  3815. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3816. #define ID3D12Resource_Map(This,Subresource,pReadRange,ppData) \
  3817. ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) )
  3818. #define ID3D12Resource_Unmap(This,Subresource,pWrittenRange) \
  3819. ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) )
  3820. #if !defined(_WIN32)
  3821. #define ID3D12Resource_GetDesc(This) \
  3822. ( (This)->lpVtbl -> GetDesc(This) )
  3823. #else
  3824. #define ID3D12Resource_GetDesc(This,RetVal) \
  3825. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  3826. #endif
  3827. #define ID3D12Resource_GetGPUVirtualAddress(This) \
  3828. ( (This)->lpVtbl -> GetGPUVirtualAddress(This) )
  3829. #define ID3D12Resource_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  3830. ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  3831. #define ID3D12Resource_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \
  3832. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) )
  3833. #define ID3D12Resource_GetHeapProperties(This,pHeapProperties,pHeapFlags) \
  3834. ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) )
  3835. #endif /* COBJMACROS */
  3836. #endif /* C style interface */
  3837. #endif /* __ID3D12Resource_INTERFACE_DEFINED__ */
  3838. #ifndef __ID3D12CommandAllocator_INTERFACE_DEFINED__
  3839. #define __ID3D12CommandAllocator_INTERFACE_DEFINED__
  3840. /* interface ID3D12CommandAllocator */
  3841. /* [unique][local][object][uuid] */
  3842. EXTERN_C const IID IID_ID3D12CommandAllocator;
  3843. #if defined(__cplusplus) && !defined(CINTERFACE)
  3844. MIDL_INTERFACE("6102dee4-af59-4b09-b999-b44d73f09b24")
  3845. ID3D12CommandAllocator : public ID3D12Pageable
  3846. {
  3847. public:
  3848. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  3849. };
  3850. #else /* C style interface */
  3851. typedef struct ID3D12CommandAllocatorVtbl
  3852. {
  3853. BEGIN_INTERFACE
  3854. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3855. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3856. ID3D12CommandAllocator * This,
  3857. REFIID riid,
  3858. _COM_Outptr_ void **ppvObject);
  3859. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3860. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3861. ID3D12CommandAllocator * This);
  3862. DECLSPEC_XFGVIRT(IUnknown, Release)
  3863. ULONG ( STDMETHODCALLTYPE *Release )(
  3864. ID3D12CommandAllocator * This);
  3865. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3866. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3867. ID3D12CommandAllocator * This,
  3868. _In_ REFGUID guid,
  3869. _Inout_ UINT *pDataSize,
  3870. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3871. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3872. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3873. ID3D12CommandAllocator * This,
  3874. _In_ REFGUID guid,
  3875. _In_ UINT DataSize,
  3876. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3877. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3878. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3879. ID3D12CommandAllocator * This,
  3880. _In_ REFGUID guid,
  3881. _In_opt_ const IUnknown *pData);
  3882. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3883. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3884. ID3D12CommandAllocator * This,
  3885. _In_z_ LPCWSTR Name);
  3886. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3887. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3888. ID3D12CommandAllocator * This,
  3889. REFIID riid,
  3890. _COM_Outptr_opt_ void **ppvDevice);
  3891. DECLSPEC_XFGVIRT(ID3D12CommandAllocator, Reset)
  3892. HRESULT ( STDMETHODCALLTYPE *Reset )(
  3893. ID3D12CommandAllocator * This);
  3894. END_INTERFACE
  3895. } ID3D12CommandAllocatorVtbl;
  3896. interface ID3D12CommandAllocator
  3897. {
  3898. CONST_VTBL struct ID3D12CommandAllocatorVtbl *lpVtbl;
  3899. };
  3900. #ifdef COBJMACROS
  3901. #define ID3D12CommandAllocator_QueryInterface(This,riid,ppvObject) \
  3902. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3903. #define ID3D12CommandAllocator_AddRef(This) \
  3904. ( (This)->lpVtbl -> AddRef(This) )
  3905. #define ID3D12CommandAllocator_Release(This) \
  3906. ( (This)->lpVtbl -> Release(This) )
  3907. #define ID3D12CommandAllocator_GetPrivateData(This,guid,pDataSize,pData) \
  3908. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3909. #define ID3D12CommandAllocator_SetPrivateData(This,guid,DataSize,pData) \
  3910. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3911. #define ID3D12CommandAllocator_SetPrivateDataInterface(This,guid,pData) \
  3912. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3913. #define ID3D12CommandAllocator_SetName(This,Name) \
  3914. ( (This)->lpVtbl -> SetName(This,Name) )
  3915. #define ID3D12CommandAllocator_GetDevice(This,riid,ppvDevice) \
  3916. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3917. #define ID3D12CommandAllocator_Reset(This) \
  3918. ( (This)->lpVtbl -> Reset(This) )
  3919. #endif /* COBJMACROS */
  3920. #endif /* C style interface */
  3921. #endif /* __ID3D12CommandAllocator_INTERFACE_DEFINED__ */
  3922. #ifndef __ID3D12Fence_INTERFACE_DEFINED__
  3923. #define __ID3D12Fence_INTERFACE_DEFINED__
  3924. /* interface ID3D12Fence */
  3925. /* [unique][local][object][uuid] */
  3926. EXTERN_C const IID IID_ID3D12Fence;
  3927. #if defined(__cplusplus) && !defined(CINTERFACE)
  3928. MIDL_INTERFACE("0a753dcf-c4d8-4b91-adf6-be5a60d95a76")
  3929. ID3D12Fence : public ID3D12Pageable
  3930. {
  3931. public:
  3932. virtual UINT64 STDMETHODCALLTYPE GetCompletedValue( void) = 0;
  3933. virtual HRESULT STDMETHODCALLTYPE SetEventOnCompletion(
  3934. UINT64 Value,
  3935. HANDLE hEvent) = 0;
  3936. virtual HRESULT STDMETHODCALLTYPE Signal(
  3937. UINT64 Value) = 0;
  3938. };
  3939. #else /* C style interface */
  3940. typedef struct ID3D12FenceVtbl
  3941. {
  3942. BEGIN_INTERFACE
  3943. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3944. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3945. ID3D12Fence * This,
  3946. REFIID riid,
  3947. _COM_Outptr_ void **ppvObject);
  3948. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3949. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3950. ID3D12Fence * This);
  3951. DECLSPEC_XFGVIRT(IUnknown, Release)
  3952. ULONG ( STDMETHODCALLTYPE *Release )(
  3953. ID3D12Fence * This);
  3954. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3955. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3956. ID3D12Fence * This,
  3957. _In_ REFGUID guid,
  3958. _Inout_ UINT *pDataSize,
  3959. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3960. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3961. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3962. ID3D12Fence * This,
  3963. _In_ REFGUID guid,
  3964. _In_ UINT DataSize,
  3965. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3966. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3967. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3968. ID3D12Fence * This,
  3969. _In_ REFGUID guid,
  3970. _In_opt_ const IUnknown *pData);
  3971. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3972. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3973. ID3D12Fence * This,
  3974. _In_z_ LPCWSTR Name);
  3975. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3976. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3977. ID3D12Fence * This,
  3978. REFIID riid,
  3979. _COM_Outptr_opt_ void **ppvDevice);
  3980. DECLSPEC_XFGVIRT(ID3D12Fence, GetCompletedValue)
  3981. UINT64 ( STDMETHODCALLTYPE *GetCompletedValue )(
  3982. ID3D12Fence * This);
  3983. DECLSPEC_XFGVIRT(ID3D12Fence, SetEventOnCompletion)
  3984. HRESULT ( STDMETHODCALLTYPE *SetEventOnCompletion )(
  3985. ID3D12Fence * This,
  3986. UINT64 Value,
  3987. HANDLE hEvent);
  3988. DECLSPEC_XFGVIRT(ID3D12Fence, Signal)
  3989. HRESULT ( STDMETHODCALLTYPE *Signal )(
  3990. ID3D12Fence * This,
  3991. UINT64 Value);
  3992. END_INTERFACE
  3993. } ID3D12FenceVtbl;
  3994. interface ID3D12Fence
  3995. {
  3996. CONST_VTBL struct ID3D12FenceVtbl *lpVtbl;
  3997. };
  3998. #ifdef COBJMACROS
  3999. #define ID3D12Fence_QueryInterface(This,riid,ppvObject) \
  4000. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4001. #define ID3D12Fence_AddRef(This) \
  4002. ( (This)->lpVtbl -> AddRef(This) )
  4003. #define ID3D12Fence_Release(This) \
  4004. ( (This)->lpVtbl -> Release(This) )
  4005. #define ID3D12Fence_GetPrivateData(This,guid,pDataSize,pData) \
  4006. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4007. #define ID3D12Fence_SetPrivateData(This,guid,DataSize,pData) \
  4008. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4009. #define ID3D12Fence_SetPrivateDataInterface(This,guid,pData) \
  4010. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4011. #define ID3D12Fence_SetName(This,Name) \
  4012. ( (This)->lpVtbl -> SetName(This,Name) )
  4013. #define ID3D12Fence_GetDevice(This,riid,ppvDevice) \
  4014. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4015. #define ID3D12Fence_GetCompletedValue(This) \
  4016. ( (This)->lpVtbl -> GetCompletedValue(This) )
  4017. #define ID3D12Fence_SetEventOnCompletion(This,Value,hEvent) \
  4018. ( (This)->lpVtbl -> SetEventOnCompletion(This,Value,hEvent) )
  4019. #define ID3D12Fence_Signal(This,Value) \
  4020. ( (This)->lpVtbl -> Signal(This,Value) )
  4021. #endif /* COBJMACROS */
  4022. #endif /* C style interface */
  4023. #endif /* __ID3D12Fence_INTERFACE_DEFINED__ */
  4024. #ifndef __ID3D12Fence1_INTERFACE_DEFINED__
  4025. #define __ID3D12Fence1_INTERFACE_DEFINED__
  4026. /* interface ID3D12Fence1 */
  4027. /* [unique][local][object][uuid] */
  4028. EXTERN_C const IID IID_ID3D12Fence1;
  4029. #if defined(__cplusplus) && !defined(CINTERFACE)
  4030. MIDL_INTERFACE("433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a")
  4031. ID3D12Fence1 : public ID3D12Fence
  4032. {
  4033. public:
  4034. virtual D3D12_FENCE_FLAGS STDMETHODCALLTYPE GetCreationFlags( void) = 0;
  4035. };
  4036. #else /* C style interface */
  4037. typedef struct ID3D12Fence1Vtbl
  4038. {
  4039. BEGIN_INTERFACE
  4040. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4041. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4042. ID3D12Fence1 * This,
  4043. REFIID riid,
  4044. _COM_Outptr_ void **ppvObject);
  4045. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4046. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4047. ID3D12Fence1 * This);
  4048. DECLSPEC_XFGVIRT(IUnknown, Release)
  4049. ULONG ( STDMETHODCALLTYPE *Release )(
  4050. ID3D12Fence1 * This);
  4051. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4052. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4053. ID3D12Fence1 * This,
  4054. _In_ REFGUID guid,
  4055. _Inout_ UINT *pDataSize,
  4056. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4057. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4058. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4059. ID3D12Fence1 * This,
  4060. _In_ REFGUID guid,
  4061. _In_ UINT DataSize,
  4062. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4063. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4064. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4065. ID3D12Fence1 * This,
  4066. _In_ REFGUID guid,
  4067. _In_opt_ const IUnknown *pData);
  4068. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4069. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4070. ID3D12Fence1 * This,
  4071. _In_z_ LPCWSTR Name);
  4072. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4073. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4074. ID3D12Fence1 * This,
  4075. REFIID riid,
  4076. _COM_Outptr_opt_ void **ppvDevice);
  4077. DECLSPEC_XFGVIRT(ID3D12Fence, GetCompletedValue)
  4078. UINT64 ( STDMETHODCALLTYPE *GetCompletedValue )(
  4079. ID3D12Fence1 * This);
  4080. DECLSPEC_XFGVIRT(ID3D12Fence, SetEventOnCompletion)
  4081. HRESULT ( STDMETHODCALLTYPE *SetEventOnCompletion )(
  4082. ID3D12Fence1 * This,
  4083. UINT64 Value,
  4084. HANDLE hEvent);
  4085. DECLSPEC_XFGVIRT(ID3D12Fence, Signal)
  4086. HRESULT ( STDMETHODCALLTYPE *Signal )(
  4087. ID3D12Fence1 * This,
  4088. UINT64 Value);
  4089. DECLSPEC_XFGVIRT(ID3D12Fence1, GetCreationFlags)
  4090. D3D12_FENCE_FLAGS ( STDMETHODCALLTYPE *GetCreationFlags )(
  4091. ID3D12Fence1 * This);
  4092. END_INTERFACE
  4093. } ID3D12Fence1Vtbl;
  4094. interface ID3D12Fence1
  4095. {
  4096. CONST_VTBL struct ID3D12Fence1Vtbl *lpVtbl;
  4097. };
  4098. #ifdef COBJMACROS
  4099. #define ID3D12Fence1_QueryInterface(This,riid,ppvObject) \
  4100. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4101. #define ID3D12Fence1_AddRef(This) \
  4102. ( (This)->lpVtbl -> AddRef(This) )
  4103. #define ID3D12Fence1_Release(This) \
  4104. ( (This)->lpVtbl -> Release(This) )
  4105. #define ID3D12Fence1_GetPrivateData(This,guid,pDataSize,pData) \
  4106. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4107. #define ID3D12Fence1_SetPrivateData(This,guid,DataSize,pData) \
  4108. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4109. #define ID3D12Fence1_SetPrivateDataInterface(This,guid,pData) \
  4110. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4111. #define ID3D12Fence1_SetName(This,Name) \
  4112. ( (This)->lpVtbl -> SetName(This,Name) )
  4113. #define ID3D12Fence1_GetDevice(This,riid,ppvDevice) \
  4114. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4115. #define ID3D12Fence1_GetCompletedValue(This) \
  4116. ( (This)->lpVtbl -> GetCompletedValue(This) )
  4117. #define ID3D12Fence1_SetEventOnCompletion(This,Value,hEvent) \
  4118. ( (This)->lpVtbl -> SetEventOnCompletion(This,Value,hEvent) )
  4119. #define ID3D12Fence1_Signal(This,Value) \
  4120. ( (This)->lpVtbl -> Signal(This,Value) )
  4121. #define ID3D12Fence1_GetCreationFlags(This) \
  4122. ( (This)->lpVtbl -> GetCreationFlags(This) )
  4123. #endif /* COBJMACROS */
  4124. #endif /* C style interface */
  4125. #endif /* __ID3D12Fence1_INTERFACE_DEFINED__ */
  4126. #ifndef __ID3D12PipelineState_INTERFACE_DEFINED__
  4127. #define __ID3D12PipelineState_INTERFACE_DEFINED__
  4128. /* interface ID3D12PipelineState */
  4129. /* [unique][local][object][uuid] */
  4130. EXTERN_C const IID IID_ID3D12PipelineState;
  4131. #if defined(__cplusplus) && !defined(CINTERFACE)
  4132. MIDL_INTERFACE("765a30f3-f624-4c6f-a828-ace948622445")
  4133. ID3D12PipelineState : public ID3D12Pageable
  4134. {
  4135. public:
  4136. virtual HRESULT STDMETHODCALLTYPE GetCachedBlob(
  4137. _COM_Outptr_ ID3DBlob **ppBlob) = 0;
  4138. };
  4139. #else /* C style interface */
  4140. typedef struct ID3D12PipelineStateVtbl
  4141. {
  4142. BEGIN_INTERFACE
  4143. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4144. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4145. ID3D12PipelineState * This,
  4146. REFIID riid,
  4147. _COM_Outptr_ void **ppvObject);
  4148. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4149. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4150. ID3D12PipelineState * This);
  4151. DECLSPEC_XFGVIRT(IUnknown, Release)
  4152. ULONG ( STDMETHODCALLTYPE *Release )(
  4153. ID3D12PipelineState * This);
  4154. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4155. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4156. ID3D12PipelineState * This,
  4157. _In_ REFGUID guid,
  4158. _Inout_ UINT *pDataSize,
  4159. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4160. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4161. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4162. ID3D12PipelineState * This,
  4163. _In_ REFGUID guid,
  4164. _In_ UINT DataSize,
  4165. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4166. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4167. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4168. ID3D12PipelineState * This,
  4169. _In_ REFGUID guid,
  4170. _In_opt_ const IUnknown *pData);
  4171. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4172. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4173. ID3D12PipelineState * This,
  4174. _In_z_ LPCWSTR Name);
  4175. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4176. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4177. ID3D12PipelineState * This,
  4178. REFIID riid,
  4179. _COM_Outptr_opt_ void **ppvDevice);
  4180. DECLSPEC_XFGVIRT(ID3D12PipelineState, GetCachedBlob)
  4181. HRESULT ( STDMETHODCALLTYPE *GetCachedBlob )(
  4182. ID3D12PipelineState * This,
  4183. _COM_Outptr_ ID3DBlob **ppBlob);
  4184. END_INTERFACE
  4185. } ID3D12PipelineStateVtbl;
  4186. interface ID3D12PipelineState
  4187. {
  4188. CONST_VTBL struct ID3D12PipelineStateVtbl *lpVtbl;
  4189. };
  4190. #ifdef COBJMACROS
  4191. #define ID3D12PipelineState_QueryInterface(This,riid,ppvObject) \
  4192. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4193. #define ID3D12PipelineState_AddRef(This) \
  4194. ( (This)->lpVtbl -> AddRef(This) )
  4195. #define ID3D12PipelineState_Release(This) \
  4196. ( (This)->lpVtbl -> Release(This) )
  4197. #define ID3D12PipelineState_GetPrivateData(This,guid,pDataSize,pData) \
  4198. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4199. #define ID3D12PipelineState_SetPrivateData(This,guid,DataSize,pData) \
  4200. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4201. #define ID3D12PipelineState_SetPrivateDataInterface(This,guid,pData) \
  4202. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4203. #define ID3D12PipelineState_SetName(This,Name) \
  4204. ( (This)->lpVtbl -> SetName(This,Name) )
  4205. #define ID3D12PipelineState_GetDevice(This,riid,ppvDevice) \
  4206. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4207. #define ID3D12PipelineState_GetCachedBlob(This,ppBlob) \
  4208. ( (This)->lpVtbl -> GetCachedBlob(This,ppBlob) )
  4209. #endif /* COBJMACROS */
  4210. #endif /* C style interface */
  4211. #endif /* __ID3D12PipelineState_INTERFACE_DEFINED__ */
  4212. #ifndef __ID3D12DescriptorHeap_INTERFACE_DEFINED__
  4213. #define __ID3D12DescriptorHeap_INTERFACE_DEFINED__
  4214. /* interface ID3D12DescriptorHeap */
  4215. /* [unique][local][object][uuid] */
  4216. EXTERN_C const IID IID_ID3D12DescriptorHeap;
  4217. #if defined(__cplusplus) && !defined(CINTERFACE)
  4218. MIDL_INTERFACE("8efb471d-616c-4f49-90f7-127bb763fa51")
  4219. ID3D12DescriptorHeap : public ID3D12Pageable
  4220. {
  4221. public:
  4222. #if defined(_MSC_VER) || !defined(_WIN32)
  4223. virtual D3D12_DESCRIPTOR_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  4224. #else
  4225. virtual D3D12_DESCRIPTOR_HEAP_DESC *STDMETHODCALLTYPE GetDesc(
  4226. D3D12_DESCRIPTOR_HEAP_DESC * RetVal) = 0;
  4227. #endif
  4228. #if defined(_MSC_VER) || !defined(_WIN32)
  4229. virtual D3D12_CPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart( void) = 0;
  4230. #else
  4231. virtual D3D12_CPU_DESCRIPTOR_HANDLE *STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart(
  4232. D3D12_CPU_DESCRIPTOR_HANDLE * RetVal) = 0;
  4233. #endif
  4234. #if defined(_MSC_VER) || !defined(_WIN32)
  4235. virtual D3D12_GPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart( void) = 0;
  4236. #else
  4237. virtual D3D12_GPU_DESCRIPTOR_HANDLE *STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart(
  4238. D3D12_GPU_DESCRIPTOR_HANDLE * RetVal) = 0;
  4239. #endif
  4240. };
  4241. #else /* C style interface */
  4242. typedef struct ID3D12DescriptorHeapVtbl
  4243. {
  4244. BEGIN_INTERFACE
  4245. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4246. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4247. ID3D12DescriptorHeap * This,
  4248. REFIID riid,
  4249. _COM_Outptr_ void **ppvObject);
  4250. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4251. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4252. ID3D12DescriptorHeap * This);
  4253. DECLSPEC_XFGVIRT(IUnknown, Release)
  4254. ULONG ( STDMETHODCALLTYPE *Release )(
  4255. ID3D12DescriptorHeap * This);
  4256. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4257. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4258. ID3D12DescriptorHeap * This,
  4259. _In_ REFGUID guid,
  4260. _Inout_ UINT *pDataSize,
  4261. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4262. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4263. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4264. ID3D12DescriptorHeap * This,
  4265. _In_ REFGUID guid,
  4266. _In_ UINT DataSize,
  4267. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4268. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4269. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4270. ID3D12DescriptorHeap * This,
  4271. _In_ REFGUID guid,
  4272. _In_opt_ const IUnknown *pData);
  4273. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4274. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4275. ID3D12DescriptorHeap * This,
  4276. _In_z_ LPCWSTR Name);
  4277. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4278. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4279. ID3D12DescriptorHeap * This,
  4280. REFIID riid,
  4281. _COM_Outptr_opt_ void **ppvDevice);
  4282. DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetDesc)
  4283. #if !defined(_WIN32)
  4284. D3D12_DESCRIPTOR_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )(
  4285. ID3D12DescriptorHeap * This);
  4286. #else
  4287. D3D12_DESCRIPTOR_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )(
  4288. ID3D12DescriptorHeap * This,
  4289. D3D12_DESCRIPTOR_HEAP_DESC * RetVal);
  4290. #endif
  4291. DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetCPUDescriptorHandleForHeapStart)
  4292. #if !defined(_WIN32)
  4293. D3D12_CPU_DESCRIPTOR_HANDLE ( STDMETHODCALLTYPE *GetCPUDescriptorHandleForHeapStart )(
  4294. ID3D12DescriptorHeap * This);
  4295. #else
  4296. D3D12_CPU_DESCRIPTOR_HANDLE *( STDMETHODCALLTYPE *GetCPUDescriptorHandleForHeapStart )(
  4297. ID3D12DescriptorHeap * This,
  4298. D3D12_CPU_DESCRIPTOR_HANDLE * RetVal);
  4299. #endif
  4300. DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetGPUDescriptorHandleForHeapStart)
  4301. #if !defined(_WIN32)
  4302. D3D12_GPU_DESCRIPTOR_HANDLE ( STDMETHODCALLTYPE *GetGPUDescriptorHandleForHeapStart )(
  4303. ID3D12DescriptorHeap * This);
  4304. #else
  4305. D3D12_GPU_DESCRIPTOR_HANDLE *( STDMETHODCALLTYPE *GetGPUDescriptorHandleForHeapStart )(
  4306. ID3D12DescriptorHeap * This,
  4307. D3D12_GPU_DESCRIPTOR_HANDLE * RetVal);
  4308. #endif
  4309. END_INTERFACE
  4310. } ID3D12DescriptorHeapVtbl;
  4311. interface ID3D12DescriptorHeap
  4312. {
  4313. CONST_VTBL struct ID3D12DescriptorHeapVtbl *lpVtbl;
  4314. };
  4315. #ifdef COBJMACROS
  4316. #define ID3D12DescriptorHeap_QueryInterface(This,riid,ppvObject) \
  4317. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4318. #define ID3D12DescriptorHeap_AddRef(This) \
  4319. ( (This)->lpVtbl -> AddRef(This) )
  4320. #define ID3D12DescriptorHeap_Release(This) \
  4321. ( (This)->lpVtbl -> Release(This) )
  4322. #define ID3D12DescriptorHeap_GetPrivateData(This,guid,pDataSize,pData) \
  4323. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4324. #define ID3D12DescriptorHeap_SetPrivateData(This,guid,DataSize,pData) \
  4325. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4326. #define ID3D12DescriptorHeap_SetPrivateDataInterface(This,guid,pData) \
  4327. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4328. #define ID3D12DescriptorHeap_SetName(This,Name) \
  4329. ( (This)->lpVtbl -> SetName(This,Name) )
  4330. #define ID3D12DescriptorHeap_GetDevice(This,riid,ppvDevice) \
  4331. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4332. #if !defined(_WIN32)
  4333. #define ID3D12DescriptorHeap_GetDesc(This) \
  4334. ( (This)->lpVtbl -> GetDesc(This) )
  4335. #else
  4336. #define ID3D12DescriptorHeap_GetDesc(This,RetVal) \
  4337. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  4338. #endif
  4339. #if !defined(_WIN32)
  4340. #define ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(This) \
  4341. ( (This)->lpVtbl -> GetCPUDescriptorHandleForHeapStart(This) )
  4342. #else
  4343. #define ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(This,RetVal) \
  4344. ( (This)->lpVtbl -> GetCPUDescriptorHandleForHeapStart(This,RetVal) )
  4345. #endif
  4346. #if !defined(_WIN32)
  4347. #define ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(This) \
  4348. ( (This)->lpVtbl -> GetGPUDescriptorHandleForHeapStart(This) )
  4349. #else
  4350. #define ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(This,RetVal) \
  4351. ( (This)->lpVtbl -> GetGPUDescriptorHandleForHeapStart(This,RetVal) )
  4352. #endif
  4353. #endif /* COBJMACROS */
  4354. #endif /* C style interface */
  4355. #endif /* __ID3D12DescriptorHeap_INTERFACE_DEFINED__ */
  4356. #ifndef __ID3D12QueryHeap_INTERFACE_DEFINED__
  4357. #define __ID3D12QueryHeap_INTERFACE_DEFINED__
  4358. /* interface ID3D12QueryHeap */
  4359. /* [unique][local][object][uuid] */
  4360. EXTERN_C const IID IID_ID3D12QueryHeap;
  4361. #if defined(__cplusplus) && !defined(CINTERFACE)
  4362. MIDL_INTERFACE("0d9658ae-ed45-469e-a61d-970ec583cab4")
  4363. ID3D12QueryHeap : public ID3D12Pageable
  4364. {
  4365. public:
  4366. };
  4367. #else /* C style interface */
  4368. typedef struct ID3D12QueryHeapVtbl
  4369. {
  4370. BEGIN_INTERFACE
  4371. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4372. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4373. ID3D12QueryHeap * This,
  4374. REFIID riid,
  4375. _COM_Outptr_ void **ppvObject);
  4376. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4377. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4378. ID3D12QueryHeap * This);
  4379. DECLSPEC_XFGVIRT(IUnknown, Release)
  4380. ULONG ( STDMETHODCALLTYPE *Release )(
  4381. ID3D12QueryHeap * This);
  4382. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4383. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4384. ID3D12QueryHeap * This,
  4385. _In_ REFGUID guid,
  4386. _Inout_ UINT *pDataSize,
  4387. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4388. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4389. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4390. ID3D12QueryHeap * This,
  4391. _In_ REFGUID guid,
  4392. _In_ UINT DataSize,
  4393. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4394. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4395. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4396. ID3D12QueryHeap * This,
  4397. _In_ REFGUID guid,
  4398. _In_opt_ const IUnknown *pData);
  4399. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4400. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4401. ID3D12QueryHeap * This,
  4402. _In_z_ LPCWSTR Name);
  4403. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4404. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4405. ID3D12QueryHeap * This,
  4406. REFIID riid,
  4407. _COM_Outptr_opt_ void **ppvDevice);
  4408. END_INTERFACE
  4409. } ID3D12QueryHeapVtbl;
  4410. interface ID3D12QueryHeap
  4411. {
  4412. CONST_VTBL struct ID3D12QueryHeapVtbl *lpVtbl;
  4413. };
  4414. #ifdef COBJMACROS
  4415. #define ID3D12QueryHeap_QueryInterface(This,riid,ppvObject) \
  4416. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4417. #define ID3D12QueryHeap_AddRef(This) \
  4418. ( (This)->lpVtbl -> AddRef(This) )
  4419. #define ID3D12QueryHeap_Release(This) \
  4420. ( (This)->lpVtbl -> Release(This) )
  4421. #define ID3D12QueryHeap_GetPrivateData(This,guid,pDataSize,pData) \
  4422. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4423. #define ID3D12QueryHeap_SetPrivateData(This,guid,DataSize,pData) \
  4424. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4425. #define ID3D12QueryHeap_SetPrivateDataInterface(This,guid,pData) \
  4426. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4427. #define ID3D12QueryHeap_SetName(This,Name) \
  4428. ( (This)->lpVtbl -> SetName(This,Name) )
  4429. #define ID3D12QueryHeap_GetDevice(This,riid,ppvDevice) \
  4430. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4431. #endif /* COBJMACROS */
  4432. #endif /* C style interface */
  4433. #endif /* __ID3D12QueryHeap_INTERFACE_DEFINED__ */
  4434. #ifndef __ID3D12CommandSignature_INTERFACE_DEFINED__
  4435. #define __ID3D12CommandSignature_INTERFACE_DEFINED__
  4436. /* interface ID3D12CommandSignature */
  4437. /* [unique][local][object][uuid] */
  4438. EXTERN_C const IID IID_ID3D12CommandSignature;
  4439. #if defined(__cplusplus) && !defined(CINTERFACE)
  4440. MIDL_INTERFACE("c36a797c-ec80-4f0a-8985-a7b2475082d1")
  4441. ID3D12CommandSignature : public ID3D12Pageable
  4442. {
  4443. public:
  4444. };
  4445. #else /* C style interface */
  4446. typedef struct ID3D12CommandSignatureVtbl
  4447. {
  4448. BEGIN_INTERFACE
  4449. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4450. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4451. ID3D12CommandSignature * This,
  4452. REFIID riid,
  4453. _COM_Outptr_ void **ppvObject);
  4454. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4455. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4456. ID3D12CommandSignature * This);
  4457. DECLSPEC_XFGVIRT(IUnknown, Release)
  4458. ULONG ( STDMETHODCALLTYPE *Release )(
  4459. ID3D12CommandSignature * This);
  4460. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4461. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4462. ID3D12CommandSignature * This,
  4463. _In_ REFGUID guid,
  4464. _Inout_ UINT *pDataSize,
  4465. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4466. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4467. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4468. ID3D12CommandSignature * This,
  4469. _In_ REFGUID guid,
  4470. _In_ UINT DataSize,
  4471. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4472. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4473. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4474. ID3D12CommandSignature * This,
  4475. _In_ REFGUID guid,
  4476. _In_opt_ const IUnknown *pData);
  4477. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4478. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4479. ID3D12CommandSignature * This,
  4480. _In_z_ LPCWSTR Name);
  4481. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4482. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4483. ID3D12CommandSignature * This,
  4484. REFIID riid,
  4485. _COM_Outptr_opt_ void **ppvDevice);
  4486. END_INTERFACE
  4487. } ID3D12CommandSignatureVtbl;
  4488. interface ID3D12CommandSignature
  4489. {
  4490. CONST_VTBL struct ID3D12CommandSignatureVtbl *lpVtbl;
  4491. };
  4492. #ifdef COBJMACROS
  4493. #define ID3D12CommandSignature_QueryInterface(This,riid,ppvObject) \
  4494. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4495. #define ID3D12CommandSignature_AddRef(This) \
  4496. ( (This)->lpVtbl -> AddRef(This) )
  4497. #define ID3D12CommandSignature_Release(This) \
  4498. ( (This)->lpVtbl -> Release(This) )
  4499. #define ID3D12CommandSignature_GetPrivateData(This,guid,pDataSize,pData) \
  4500. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4501. #define ID3D12CommandSignature_SetPrivateData(This,guid,DataSize,pData) \
  4502. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4503. #define ID3D12CommandSignature_SetPrivateDataInterface(This,guid,pData) \
  4504. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4505. #define ID3D12CommandSignature_SetName(This,Name) \
  4506. ( (This)->lpVtbl -> SetName(This,Name) )
  4507. #define ID3D12CommandSignature_GetDevice(This,riid,ppvDevice) \
  4508. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4509. #endif /* COBJMACROS */
  4510. #endif /* C style interface */
  4511. #endif /* __ID3D12CommandSignature_INTERFACE_DEFINED__ */
  4512. #ifndef __ID3D12CommandList_INTERFACE_DEFINED__
  4513. #define __ID3D12CommandList_INTERFACE_DEFINED__
  4514. /* interface ID3D12CommandList */
  4515. /* [unique][local][object][uuid] */
  4516. EXTERN_C const IID IID_ID3D12CommandList;
  4517. #if defined(__cplusplus) && !defined(CINTERFACE)
  4518. MIDL_INTERFACE("7116d91c-e7e4-47ce-b8c6-ec8168f437e5")
  4519. ID3D12CommandList : public ID3D12DeviceChild
  4520. {
  4521. public:
  4522. virtual D3D12_COMMAND_LIST_TYPE STDMETHODCALLTYPE GetType( void) = 0;
  4523. };
  4524. #else /* C style interface */
  4525. typedef struct ID3D12CommandListVtbl
  4526. {
  4527. BEGIN_INTERFACE
  4528. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4529. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4530. ID3D12CommandList * This,
  4531. REFIID riid,
  4532. _COM_Outptr_ void **ppvObject);
  4533. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4534. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4535. ID3D12CommandList * This);
  4536. DECLSPEC_XFGVIRT(IUnknown, Release)
  4537. ULONG ( STDMETHODCALLTYPE *Release )(
  4538. ID3D12CommandList * This);
  4539. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4540. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4541. ID3D12CommandList * This,
  4542. _In_ REFGUID guid,
  4543. _Inout_ UINT *pDataSize,
  4544. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4545. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4546. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4547. ID3D12CommandList * This,
  4548. _In_ REFGUID guid,
  4549. _In_ UINT DataSize,
  4550. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4551. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4552. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4553. ID3D12CommandList * This,
  4554. _In_ REFGUID guid,
  4555. _In_opt_ const IUnknown *pData);
  4556. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4557. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4558. ID3D12CommandList * This,
  4559. _In_z_ LPCWSTR Name);
  4560. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4561. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4562. ID3D12CommandList * This,
  4563. REFIID riid,
  4564. _COM_Outptr_opt_ void **ppvDevice);
  4565. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  4566. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  4567. ID3D12CommandList * This);
  4568. END_INTERFACE
  4569. } ID3D12CommandListVtbl;
  4570. interface ID3D12CommandList
  4571. {
  4572. CONST_VTBL struct ID3D12CommandListVtbl *lpVtbl;
  4573. };
  4574. #ifdef COBJMACROS
  4575. #define ID3D12CommandList_QueryInterface(This,riid,ppvObject) \
  4576. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4577. #define ID3D12CommandList_AddRef(This) \
  4578. ( (This)->lpVtbl -> AddRef(This) )
  4579. #define ID3D12CommandList_Release(This) \
  4580. ( (This)->lpVtbl -> Release(This) )
  4581. #define ID3D12CommandList_GetPrivateData(This,guid,pDataSize,pData) \
  4582. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4583. #define ID3D12CommandList_SetPrivateData(This,guid,DataSize,pData) \
  4584. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4585. #define ID3D12CommandList_SetPrivateDataInterface(This,guid,pData) \
  4586. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4587. #define ID3D12CommandList_SetName(This,Name) \
  4588. ( (This)->lpVtbl -> SetName(This,Name) )
  4589. #define ID3D12CommandList_GetDevice(This,riid,ppvDevice) \
  4590. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4591. #define ID3D12CommandList_GetType(This) \
  4592. ( (This)->lpVtbl -> GetType(This) )
  4593. #endif /* COBJMACROS */
  4594. #endif /* C style interface */
  4595. #endif /* __ID3D12CommandList_INTERFACE_DEFINED__ */
  4596. #ifndef __ID3D12GraphicsCommandList_INTERFACE_DEFINED__
  4597. #define __ID3D12GraphicsCommandList_INTERFACE_DEFINED__
  4598. /* interface ID3D12GraphicsCommandList */
  4599. /* [unique][local][object][uuid] */
  4600. EXTERN_C const IID IID_ID3D12GraphicsCommandList;
  4601. #if defined(__cplusplus) && !defined(CINTERFACE)
  4602. MIDL_INTERFACE("5b160d0f-ac1b-4185-8ba8-b3ae42a5a455")
  4603. ID3D12GraphicsCommandList : public ID3D12CommandList
  4604. {
  4605. public:
  4606. virtual HRESULT STDMETHODCALLTYPE Close( void) = 0;
  4607. virtual HRESULT STDMETHODCALLTYPE Reset(
  4608. _In_ ID3D12CommandAllocator *pAllocator,
  4609. _In_opt_ ID3D12PipelineState *pInitialState) = 0;
  4610. virtual void STDMETHODCALLTYPE ClearState(
  4611. _In_opt_ ID3D12PipelineState *pPipelineState) = 0;
  4612. virtual void STDMETHODCALLTYPE DrawInstanced(
  4613. _In_ UINT VertexCountPerInstance,
  4614. _In_ UINT InstanceCount,
  4615. _In_ UINT StartVertexLocation,
  4616. _In_ UINT StartInstanceLocation) = 0;
  4617. virtual void STDMETHODCALLTYPE DrawIndexedInstanced(
  4618. _In_ UINT IndexCountPerInstance,
  4619. _In_ UINT InstanceCount,
  4620. _In_ UINT StartIndexLocation,
  4621. _In_ INT BaseVertexLocation,
  4622. _In_ UINT StartInstanceLocation) = 0;
  4623. virtual void STDMETHODCALLTYPE Dispatch(
  4624. _In_ UINT ThreadGroupCountX,
  4625. _In_ UINT ThreadGroupCountY,
  4626. _In_ UINT ThreadGroupCountZ) = 0;
  4627. virtual void STDMETHODCALLTYPE CopyBufferRegion(
  4628. _In_ ID3D12Resource *pDstBuffer,
  4629. UINT64 DstOffset,
  4630. _In_ ID3D12Resource *pSrcBuffer,
  4631. UINT64 SrcOffset,
  4632. UINT64 NumBytes) = 0;
  4633. virtual void STDMETHODCALLTYPE CopyTextureRegion(
  4634. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  4635. UINT DstX,
  4636. UINT DstY,
  4637. UINT DstZ,
  4638. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  4639. _In_opt_ const D3D12_BOX *pSrcBox) = 0;
  4640. virtual void STDMETHODCALLTYPE CopyResource(
  4641. _In_ ID3D12Resource *pDstResource,
  4642. _In_ ID3D12Resource *pSrcResource) = 0;
  4643. virtual void STDMETHODCALLTYPE CopyTiles(
  4644. _In_ ID3D12Resource *pTiledResource,
  4645. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  4646. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  4647. _In_ ID3D12Resource *pBuffer,
  4648. UINT64 BufferStartOffsetInBytes,
  4649. D3D12_TILE_COPY_FLAGS Flags) = 0;
  4650. virtual void STDMETHODCALLTYPE ResolveSubresource(
  4651. _In_ ID3D12Resource *pDstResource,
  4652. _In_ UINT DstSubresource,
  4653. _In_ ID3D12Resource *pSrcResource,
  4654. _In_ UINT SrcSubresource,
  4655. _In_ DXGI_FORMAT Format) = 0;
  4656. virtual void STDMETHODCALLTYPE IASetPrimitiveTopology(
  4657. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology) = 0;
  4658. virtual void STDMETHODCALLTYPE RSSetViewports(
  4659. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  4660. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports) = 0;
  4661. virtual void STDMETHODCALLTYPE RSSetScissorRects(
  4662. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  4663. _In_reads_( NumRects) const D3D12_RECT *pRects) = 0;
  4664. virtual void STDMETHODCALLTYPE OMSetBlendFactor(
  4665. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]) = 0;
  4666. virtual void STDMETHODCALLTYPE OMSetStencilRef(
  4667. _In_ UINT StencilRef) = 0;
  4668. virtual void STDMETHODCALLTYPE SetPipelineState(
  4669. _In_ ID3D12PipelineState *pPipelineState) = 0;
  4670. virtual void STDMETHODCALLTYPE ResourceBarrier(
  4671. _In_ UINT NumBarriers,
  4672. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers) = 0;
  4673. virtual void STDMETHODCALLTYPE ExecuteBundle(
  4674. _In_ ID3D12GraphicsCommandList *pCommandList) = 0;
  4675. virtual void STDMETHODCALLTYPE SetDescriptorHeaps(
  4676. _In_ UINT NumDescriptorHeaps,
  4677. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps) = 0;
  4678. virtual void STDMETHODCALLTYPE SetComputeRootSignature(
  4679. _In_opt_ ID3D12RootSignature *pRootSignature) = 0;
  4680. virtual void STDMETHODCALLTYPE SetGraphicsRootSignature(
  4681. _In_opt_ ID3D12RootSignature *pRootSignature) = 0;
  4682. virtual void STDMETHODCALLTYPE SetComputeRootDescriptorTable(
  4683. _In_ UINT RootParameterIndex,
  4684. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor) = 0;
  4685. virtual void STDMETHODCALLTYPE SetGraphicsRootDescriptorTable(
  4686. _In_ UINT RootParameterIndex,
  4687. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor) = 0;
  4688. virtual void STDMETHODCALLTYPE SetComputeRoot32BitConstant(
  4689. _In_ UINT RootParameterIndex,
  4690. _In_ UINT SrcData,
  4691. _In_ UINT DestOffsetIn32BitValues) = 0;
  4692. virtual void STDMETHODCALLTYPE SetGraphicsRoot32BitConstant(
  4693. _In_ UINT RootParameterIndex,
  4694. _In_ UINT SrcData,
  4695. _In_ UINT DestOffsetIn32BitValues) = 0;
  4696. virtual void STDMETHODCALLTYPE SetComputeRoot32BitConstants(
  4697. _In_ UINT RootParameterIndex,
  4698. _In_ UINT Num32BitValuesToSet,
  4699. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  4700. _In_ UINT DestOffsetIn32BitValues) = 0;
  4701. virtual void STDMETHODCALLTYPE SetGraphicsRoot32BitConstants(
  4702. _In_ UINT RootParameterIndex,
  4703. _In_ UINT Num32BitValuesToSet,
  4704. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  4705. _In_ UINT DestOffsetIn32BitValues) = 0;
  4706. virtual void STDMETHODCALLTYPE SetComputeRootConstantBufferView(
  4707. _In_ UINT RootParameterIndex,
  4708. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4709. virtual void STDMETHODCALLTYPE SetGraphicsRootConstantBufferView(
  4710. _In_ UINT RootParameterIndex,
  4711. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4712. virtual void STDMETHODCALLTYPE SetComputeRootShaderResourceView(
  4713. _In_ UINT RootParameterIndex,
  4714. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4715. virtual void STDMETHODCALLTYPE SetGraphicsRootShaderResourceView(
  4716. _In_ UINT RootParameterIndex,
  4717. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4718. virtual void STDMETHODCALLTYPE SetComputeRootUnorderedAccessView(
  4719. _In_ UINT RootParameterIndex,
  4720. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4721. virtual void STDMETHODCALLTYPE SetGraphicsRootUnorderedAccessView(
  4722. _In_ UINT RootParameterIndex,
  4723. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4724. virtual void STDMETHODCALLTYPE IASetIndexBuffer(
  4725. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView) = 0;
  4726. virtual void STDMETHODCALLTYPE IASetVertexBuffers(
  4727. _In_ UINT StartSlot,
  4728. _In_ UINT NumViews,
  4729. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews) = 0;
  4730. virtual void STDMETHODCALLTYPE SOSetTargets(
  4731. _In_ UINT StartSlot,
  4732. _In_ UINT NumViews,
  4733. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews) = 0;
  4734. virtual void STDMETHODCALLTYPE OMSetRenderTargets(
  4735. _In_ UINT NumRenderTargetDescriptors,
  4736. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  4737. _In_ BOOL RTsSingleHandleToDescriptorRange,
  4738. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor) = 0;
  4739. virtual void STDMETHODCALLTYPE ClearDepthStencilView(
  4740. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  4741. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  4742. _In_ FLOAT Depth,
  4743. _In_ UINT8 Stencil,
  4744. _In_ UINT NumRects,
  4745. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4746. virtual void STDMETHODCALLTYPE ClearRenderTargetView(
  4747. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  4748. _In_ const FLOAT ColorRGBA[ 4 ],
  4749. _In_ UINT NumRects,
  4750. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4751. virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewUint(
  4752. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  4753. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  4754. _In_ ID3D12Resource *pResource,
  4755. _In_ const UINT Values[ 4 ],
  4756. _In_ UINT NumRects,
  4757. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4758. virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewFloat(
  4759. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  4760. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  4761. _In_ ID3D12Resource *pResource,
  4762. _In_ const FLOAT Values[ 4 ],
  4763. _In_ UINT NumRects,
  4764. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4765. virtual void STDMETHODCALLTYPE DiscardResource(
  4766. _In_ ID3D12Resource *pResource,
  4767. _In_opt_ const D3D12_DISCARD_REGION *pRegion) = 0;
  4768. virtual void STDMETHODCALLTYPE BeginQuery(
  4769. _In_ ID3D12QueryHeap *pQueryHeap,
  4770. _In_ D3D12_QUERY_TYPE Type,
  4771. _In_ UINT Index) = 0;
  4772. virtual void STDMETHODCALLTYPE EndQuery(
  4773. _In_ ID3D12QueryHeap *pQueryHeap,
  4774. _In_ D3D12_QUERY_TYPE Type,
  4775. _In_ UINT Index) = 0;
  4776. virtual void STDMETHODCALLTYPE ResolveQueryData(
  4777. _In_ ID3D12QueryHeap *pQueryHeap,
  4778. _In_ D3D12_QUERY_TYPE Type,
  4779. _In_ UINT StartIndex,
  4780. _In_ UINT NumQueries,
  4781. _In_ ID3D12Resource *pDestinationBuffer,
  4782. _In_ UINT64 AlignedDestinationBufferOffset) = 0;
  4783. virtual void STDMETHODCALLTYPE SetPredication(
  4784. _In_opt_ ID3D12Resource *pBuffer,
  4785. _In_ UINT64 AlignedBufferOffset,
  4786. _In_ D3D12_PREDICATION_OP Operation) = 0;
  4787. virtual void STDMETHODCALLTYPE SetMarker(
  4788. UINT Metadata,
  4789. _In_reads_bytes_opt_(Size) const void *pData,
  4790. UINT Size) = 0;
  4791. virtual void STDMETHODCALLTYPE BeginEvent(
  4792. UINT Metadata,
  4793. _In_reads_bytes_opt_(Size) const void *pData,
  4794. UINT Size) = 0;
  4795. virtual void STDMETHODCALLTYPE EndEvent( void) = 0;
  4796. virtual void STDMETHODCALLTYPE ExecuteIndirect(
  4797. _In_ ID3D12CommandSignature *pCommandSignature,
  4798. _In_ UINT MaxCommandCount,
  4799. _In_ ID3D12Resource *pArgumentBuffer,
  4800. _In_ UINT64 ArgumentBufferOffset,
  4801. _In_opt_ ID3D12Resource *pCountBuffer,
  4802. _In_ UINT64 CountBufferOffset) = 0;
  4803. };
  4804. #else /* C style interface */
  4805. typedef struct ID3D12GraphicsCommandListVtbl
  4806. {
  4807. BEGIN_INTERFACE
  4808. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4809. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4810. ID3D12GraphicsCommandList * This,
  4811. REFIID riid,
  4812. _COM_Outptr_ void **ppvObject);
  4813. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4814. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4815. ID3D12GraphicsCommandList * This);
  4816. DECLSPEC_XFGVIRT(IUnknown, Release)
  4817. ULONG ( STDMETHODCALLTYPE *Release )(
  4818. ID3D12GraphicsCommandList * This);
  4819. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4820. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4821. ID3D12GraphicsCommandList * This,
  4822. _In_ REFGUID guid,
  4823. _Inout_ UINT *pDataSize,
  4824. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4825. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4826. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4827. ID3D12GraphicsCommandList * This,
  4828. _In_ REFGUID guid,
  4829. _In_ UINT DataSize,
  4830. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4831. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4832. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4833. ID3D12GraphicsCommandList * This,
  4834. _In_ REFGUID guid,
  4835. _In_opt_ const IUnknown *pData);
  4836. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4837. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4838. ID3D12GraphicsCommandList * This,
  4839. _In_z_ LPCWSTR Name);
  4840. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4841. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4842. ID3D12GraphicsCommandList * This,
  4843. REFIID riid,
  4844. _COM_Outptr_opt_ void **ppvDevice);
  4845. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  4846. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  4847. ID3D12GraphicsCommandList * This);
  4848. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  4849. HRESULT ( STDMETHODCALLTYPE *Close )(
  4850. ID3D12GraphicsCommandList * This);
  4851. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  4852. HRESULT ( STDMETHODCALLTYPE *Reset )(
  4853. ID3D12GraphicsCommandList * This,
  4854. _In_ ID3D12CommandAllocator *pAllocator,
  4855. _In_opt_ ID3D12PipelineState *pInitialState);
  4856. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  4857. void ( STDMETHODCALLTYPE *ClearState )(
  4858. ID3D12GraphicsCommandList * This,
  4859. _In_opt_ ID3D12PipelineState *pPipelineState);
  4860. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  4861. void ( STDMETHODCALLTYPE *DrawInstanced )(
  4862. ID3D12GraphicsCommandList * This,
  4863. _In_ UINT VertexCountPerInstance,
  4864. _In_ UINT InstanceCount,
  4865. _In_ UINT StartVertexLocation,
  4866. _In_ UINT StartInstanceLocation);
  4867. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  4868. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  4869. ID3D12GraphicsCommandList * This,
  4870. _In_ UINT IndexCountPerInstance,
  4871. _In_ UINT InstanceCount,
  4872. _In_ UINT StartIndexLocation,
  4873. _In_ INT BaseVertexLocation,
  4874. _In_ UINT StartInstanceLocation);
  4875. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  4876. void ( STDMETHODCALLTYPE *Dispatch )(
  4877. ID3D12GraphicsCommandList * This,
  4878. _In_ UINT ThreadGroupCountX,
  4879. _In_ UINT ThreadGroupCountY,
  4880. _In_ UINT ThreadGroupCountZ);
  4881. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  4882. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  4883. ID3D12GraphicsCommandList * This,
  4884. _In_ ID3D12Resource *pDstBuffer,
  4885. UINT64 DstOffset,
  4886. _In_ ID3D12Resource *pSrcBuffer,
  4887. UINT64 SrcOffset,
  4888. UINT64 NumBytes);
  4889. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  4890. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  4891. ID3D12GraphicsCommandList * This,
  4892. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  4893. UINT DstX,
  4894. UINT DstY,
  4895. UINT DstZ,
  4896. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  4897. _In_opt_ const D3D12_BOX *pSrcBox);
  4898. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  4899. void ( STDMETHODCALLTYPE *CopyResource )(
  4900. ID3D12GraphicsCommandList * This,
  4901. _In_ ID3D12Resource *pDstResource,
  4902. _In_ ID3D12Resource *pSrcResource);
  4903. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  4904. void ( STDMETHODCALLTYPE *CopyTiles )(
  4905. ID3D12GraphicsCommandList * This,
  4906. _In_ ID3D12Resource *pTiledResource,
  4907. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  4908. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  4909. _In_ ID3D12Resource *pBuffer,
  4910. UINT64 BufferStartOffsetInBytes,
  4911. D3D12_TILE_COPY_FLAGS Flags);
  4912. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  4913. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  4914. ID3D12GraphicsCommandList * This,
  4915. _In_ ID3D12Resource *pDstResource,
  4916. _In_ UINT DstSubresource,
  4917. _In_ ID3D12Resource *pSrcResource,
  4918. _In_ UINT SrcSubresource,
  4919. _In_ DXGI_FORMAT Format);
  4920. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  4921. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  4922. ID3D12GraphicsCommandList * This,
  4923. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  4924. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  4925. void ( STDMETHODCALLTYPE *RSSetViewports )(
  4926. ID3D12GraphicsCommandList * This,
  4927. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  4928. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  4929. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  4930. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  4931. ID3D12GraphicsCommandList * This,
  4932. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  4933. _In_reads_( NumRects) const D3D12_RECT *pRects);
  4934. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  4935. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  4936. ID3D12GraphicsCommandList * This,
  4937. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  4938. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  4939. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  4940. ID3D12GraphicsCommandList * This,
  4941. _In_ UINT StencilRef);
  4942. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  4943. void ( STDMETHODCALLTYPE *SetPipelineState )(
  4944. ID3D12GraphicsCommandList * This,
  4945. _In_ ID3D12PipelineState *pPipelineState);
  4946. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  4947. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  4948. ID3D12GraphicsCommandList * This,
  4949. _In_ UINT NumBarriers,
  4950. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  4951. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  4952. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  4953. ID3D12GraphicsCommandList * This,
  4954. _In_ ID3D12GraphicsCommandList *pCommandList);
  4955. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  4956. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  4957. ID3D12GraphicsCommandList * This,
  4958. _In_ UINT NumDescriptorHeaps,
  4959. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  4960. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  4961. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  4962. ID3D12GraphicsCommandList * This,
  4963. _In_opt_ ID3D12RootSignature *pRootSignature);
  4964. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  4965. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  4966. ID3D12GraphicsCommandList * This,
  4967. _In_opt_ ID3D12RootSignature *pRootSignature);
  4968. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  4969. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  4970. ID3D12GraphicsCommandList * This,
  4971. _In_ UINT RootParameterIndex,
  4972. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  4973. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  4974. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  4975. ID3D12GraphicsCommandList * This,
  4976. _In_ UINT RootParameterIndex,
  4977. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  4978. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  4979. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  4980. ID3D12GraphicsCommandList * This,
  4981. _In_ UINT RootParameterIndex,
  4982. _In_ UINT SrcData,
  4983. _In_ UINT DestOffsetIn32BitValues);
  4984. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  4985. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  4986. ID3D12GraphicsCommandList * This,
  4987. _In_ UINT RootParameterIndex,
  4988. _In_ UINT SrcData,
  4989. _In_ UINT DestOffsetIn32BitValues);
  4990. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  4991. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  4992. ID3D12GraphicsCommandList * This,
  4993. _In_ UINT RootParameterIndex,
  4994. _In_ UINT Num32BitValuesToSet,
  4995. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  4996. _In_ UINT DestOffsetIn32BitValues);
  4997. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  4998. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  4999. ID3D12GraphicsCommandList * This,
  5000. _In_ UINT RootParameterIndex,
  5001. _In_ UINT Num32BitValuesToSet,
  5002. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  5003. _In_ UINT DestOffsetIn32BitValues);
  5004. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  5005. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  5006. ID3D12GraphicsCommandList * This,
  5007. _In_ UINT RootParameterIndex,
  5008. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5009. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  5010. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  5011. ID3D12GraphicsCommandList * This,
  5012. _In_ UINT RootParameterIndex,
  5013. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5014. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  5015. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  5016. ID3D12GraphicsCommandList * This,
  5017. _In_ UINT RootParameterIndex,
  5018. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5019. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  5020. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  5021. ID3D12GraphicsCommandList * This,
  5022. _In_ UINT RootParameterIndex,
  5023. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5024. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  5025. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  5026. ID3D12GraphicsCommandList * This,
  5027. _In_ UINT RootParameterIndex,
  5028. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5029. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  5030. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  5031. ID3D12GraphicsCommandList * This,
  5032. _In_ UINT RootParameterIndex,
  5033. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5034. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  5035. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  5036. ID3D12GraphicsCommandList * This,
  5037. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  5038. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  5039. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  5040. ID3D12GraphicsCommandList * This,
  5041. _In_ UINT StartSlot,
  5042. _In_ UINT NumViews,
  5043. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  5044. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  5045. void ( STDMETHODCALLTYPE *SOSetTargets )(
  5046. ID3D12GraphicsCommandList * This,
  5047. _In_ UINT StartSlot,
  5048. _In_ UINT NumViews,
  5049. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  5050. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  5051. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  5052. ID3D12GraphicsCommandList * This,
  5053. _In_ UINT NumRenderTargetDescriptors,
  5054. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  5055. _In_ BOOL RTsSingleHandleToDescriptorRange,
  5056. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  5057. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  5058. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  5059. ID3D12GraphicsCommandList * This,
  5060. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  5061. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  5062. _In_ FLOAT Depth,
  5063. _In_ UINT8 Stencil,
  5064. _In_ UINT NumRects,
  5065. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5066. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  5067. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  5068. ID3D12GraphicsCommandList * This,
  5069. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  5070. _In_ const FLOAT ColorRGBA[ 4 ],
  5071. _In_ UINT NumRects,
  5072. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5073. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  5074. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  5075. ID3D12GraphicsCommandList * This,
  5076. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5077. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5078. _In_ ID3D12Resource *pResource,
  5079. _In_ const UINT Values[ 4 ],
  5080. _In_ UINT NumRects,
  5081. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5082. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  5083. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  5084. ID3D12GraphicsCommandList * This,
  5085. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5086. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5087. _In_ ID3D12Resource *pResource,
  5088. _In_ const FLOAT Values[ 4 ],
  5089. _In_ UINT NumRects,
  5090. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5091. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  5092. void ( STDMETHODCALLTYPE *DiscardResource )(
  5093. ID3D12GraphicsCommandList * This,
  5094. _In_ ID3D12Resource *pResource,
  5095. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  5096. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  5097. void ( STDMETHODCALLTYPE *BeginQuery )(
  5098. ID3D12GraphicsCommandList * This,
  5099. _In_ ID3D12QueryHeap *pQueryHeap,
  5100. _In_ D3D12_QUERY_TYPE Type,
  5101. _In_ UINT Index);
  5102. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  5103. void ( STDMETHODCALLTYPE *EndQuery )(
  5104. ID3D12GraphicsCommandList * This,
  5105. _In_ ID3D12QueryHeap *pQueryHeap,
  5106. _In_ D3D12_QUERY_TYPE Type,
  5107. _In_ UINT Index);
  5108. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  5109. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  5110. ID3D12GraphicsCommandList * This,
  5111. _In_ ID3D12QueryHeap *pQueryHeap,
  5112. _In_ D3D12_QUERY_TYPE Type,
  5113. _In_ UINT StartIndex,
  5114. _In_ UINT NumQueries,
  5115. _In_ ID3D12Resource *pDestinationBuffer,
  5116. _In_ UINT64 AlignedDestinationBufferOffset);
  5117. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  5118. void ( STDMETHODCALLTYPE *SetPredication )(
  5119. ID3D12GraphicsCommandList * This,
  5120. _In_opt_ ID3D12Resource *pBuffer,
  5121. _In_ UINT64 AlignedBufferOffset,
  5122. _In_ D3D12_PREDICATION_OP Operation);
  5123. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  5124. void ( STDMETHODCALLTYPE *SetMarker )(
  5125. ID3D12GraphicsCommandList * This,
  5126. UINT Metadata,
  5127. _In_reads_bytes_opt_(Size) const void *pData,
  5128. UINT Size);
  5129. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  5130. void ( STDMETHODCALLTYPE *BeginEvent )(
  5131. ID3D12GraphicsCommandList * This,
  5132. UINT Metadata,
  5133. _In_reads_bytes_opt_(Size) const void *pData,
  5134. UINT Size);
  5135. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  5136. void ( STDMETHODCALLTYPE *EndEvent )(
  5137. ID3D12GraphicsCommandList * This);
  5138. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  5139. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  5140. ID3D12GraphicsCommandList * This,
  5141. _In_ ID3D12CommandSignature *pCommandSignature,
  5142. _In_ UINT MaxCommandCount,
  5143. _In_ ID3D12Resource *pArgumentBuffer,
  5144. _In_ UINT64 ArgumentBufferOffset,
  5145. _In_opt_ ID3D12Resource *pCountBuffer,
  5146. _In_ UINT64 CountBufferOffset);
  5147. END_INTERFACE
  5148. } ID3D12GraphicsCommandListVtbl;
  5149. interface ID3D12GraphicsCommandList
  5150. {
  5151. CONST_VTBL struct ID3D12GraphicsCommandListVtbl *lpVtbl;
  5152. };
  5153. #ifdef COBJMACROS
  5154. #define ID3D12GraphicsCommandList_QueryInterface(This,riid,ppvObject) \
  5155. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  5156. #define ID3D12GraphicsCommandList_AddRef(This) \
  5157. ( (This)->lpVtbl -> AddRef(This) )
  5158. #define ID3D12GraphicsCommandList_Release(This) \
  5159. ( (This)->lpVtbl -> Release(This) )
  5160. #define ID3D12GraphicsCommandList_GetPrivateData(This,guid,pDataSize,pData) \
  5161. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  5162. #define ID3D12GraphicsCommandList_SetPrivateData(This,guid,DataSize,pData) \
  5163. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  5164. #define ID3D12GraphicsCommandList_SetPrivateDataInterface(This,guid,pData) \
  5165. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  5166. #define ID3D12GraphicsCommandList_SetName(This,Name) \
  5167. ( (This)->lpVtbl -> SetName(This,Name) )
  5168. #define ID3D12GraphicsCommandList_GetDevice(This,riid,ppvDevice) \
  5169. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  5170. #define ID3D12GraphicsCommandList_GetType(This) \
  5171. ( (This)->lpVtbl -> GetType(This) )
  5172. #define ID3D12GraphicsCommandList_Close(This) \
  5173. ( (This)->lpVtbl -> Close(This) )
  5174. #define ID3D12GraphicsCommandList_Reset(This,pAllocator,pInitialState) \
  5175. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  5176. #define ID3D12GraphicsCommandList_ClearState(This,pPipelineState) \
  5177. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  5178. #define ID3D12GraphicsCommandList_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  5179. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  5180. #define ID3D12GraphicsCommandList_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  5181. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  5182. #define ID3D12GraphicsCommandList_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  5183. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  5184. #define ID3D12GraphicsCommandList_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  5185. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  5186. #define ID3D12GraphicsCommandList_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  5187. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  5188. #define ID3D12GraphicsCommandList_CopyResource(This,pDstResource,pSrcResource) \
  5189. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  5190. #define ID3D12GraphicsCommandList_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  5191. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  5192. #define ID3D12GraphicsCommandList_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  5193. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  5194. #define ID3D12GraphicsCommandList_IASetPrimitiveTopology(This,PrimitiveTopology) \
  5195. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  5196. #define ID3D12GraphicsCommandList_RSSetViewports(This,NumViewports,pViewports) \
  5197. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  5198. #define ID3D12GraphicsCommandList_RSSetScissorRects(This,NumRects,pRects) \
  5199. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  5200. #define ID3D12GraphicsCommandList_OMSetBlendFactor(This,BlendFactor) \
  5201. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  5202. #define ID3D12GraphicsCommandList_OMSetStencilRef(This,StencilRef) \
  5203. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  5204. #define ID3D12GraphicsCommandList_SetPipelineState(This,pPipelineState) \
  5205. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  5206. #define ID3D12GraphicsCommandList_ResourceBarrier(This,NumBarriers,pBarriers) \
  5207. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  5208. #define ID3D12GraphicsCommandList_ExecuteBundle(This,pCommandList) \
  5209. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  5210. #define ID3D12GraphicsCommandList_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  5211. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  5212. #define ID3D12GraphicsCommandList_SetComputeRootSignature(This,pRootSignature) \
  5213. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  5214. #define ID3D12GraphicsCommandList_SetGraphicsRootSignature(This,pRootSignature) \
  5215. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  5216. #define ID3D12GraphicsCommandList_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5217. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5218. #define ID3D12GraphicsCommandList_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5219. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5220. #define ID3D12GraphicsCommandList_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5221. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5222. #define ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5223. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5224. #define ID3D12GraphicsCommandList_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5225. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5226. #define ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5227. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5228. #define ID3D12GraphicsCommandList_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5229. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5230. #define ID3D12GraphicsCommandList_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5231. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5232. #define ID3D12GraphicsCommandList_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5233. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5234. #define ID3D12GraphicsCommandList_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5235. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5236. #define ID3D12GraphicsCommandList_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5237. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5238. #define ID3D12GraphicsCommandList_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5239. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5240. #define ID3D12GraphicsCommandList_IASetIndexBuffer(This,pView) \
  5241. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  5242. #define ID3D12GraphicsCommandList_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  5243. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  5244. #define ID3D12GraphicsCommandList_SOSetTargets(This,StartSlot,NumViews,pViews) \
  5245. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  5246. #define ID3D12GraphicsCommandList_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  5247. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  5248. #define ID3D12GraphicsCommandList_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  5249. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  5250. #define ID3D12GraphicsCommandList_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  5251. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  5252. #define ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5253. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5254. #define ID3D12GraphicsCommandList_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5255. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5256. #define ID3D12GraphicsCommandList_DiscardResource(This,pResource,pRegion) \
  5257. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  5258. #define ID3D12GraphicsCommandList_BeginQuery(This,pQueryHeap,Type,Index) \
  5259. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  5260. #define ID3D12GraphicsCommandList_EndQuery(This,pQueryHeap,Type,Index) \
  5261. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  5262. #define ID3D12GraphicsCommandList_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  5263. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  5264. #define ID3D12GraphicsCommandList_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  5265. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  5266. #define ID3D12GraphicsCommandList_SetMarker(This,Metadata,pData,Size) \
  5267. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  5268. #define ID3D12GraphicsCommandList_BeginEvent(This,Metadata,pData,Size) \
  5269. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  5270. #define ID3D12GraphicsCommandList_EndEvent(This) \
  5271. ( (This)->lpVtbl -> EndEvent(This) )
  5272. #define ID3D12GraphicsCommandList_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  5273. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  5274. #endif /* COBJMACROS */
  5275. #endif /* C style interface */
  5276. #endif /* __ID3D12GraphicsCommandList_INTERFACE_DEFINED__ */
  5277. #ifndef __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__
  5278. #define __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__
  5279. /* interface ID3D12GraphicsCommandList1 */
  5280. /* [unique][local][object][uuid] */
  5281. EXTERN_C const IID IID_ID3D12GraphicsCommandList1;
  5282. #if defined(__cplusplus) && !defined(CINTERFACE)
  5283. MIDL_INTERFACE("553103fb-1fe7-4557-bb38-946d7d0e7ca7")
  5284. ID3D12GraphicsCommandList1 : public ID3D12GraphicsCommandList
  5285. {
  5286. public:
  5287. virtual void STDMETHODCALLTYPE AtomicCopyBufferUINT(
  5288. _In_ ID3D12Resource *pDstBuffer,
  5289. UINT64 DstOffset,
  5290. _In_ ID3D12Resource *pSrcBuffer,
  5291. UINT64 SrcOffset,
  5292. UINT Dependencies,
  5293. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5294. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges) = 0;
  5295. virtual void STDMETHODCALLTYPE AtomicCopyBufferUINT64(
  5296. _In_ ID3D12Resource *pDstBuffer,
  5297. UINT64 DstOffset,
  5298. _In_ ID3D12Resource *pSrcBuffer,
  5299. UINT64 SrcOffset,
  5300. UINT Dependencies,
  5301. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5302. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges) = 0;
  5303. virtual void STDMETHODCALLTYPE OMSetDepthBounds(
  5304. _In_ FLOAT Min,
  5305. _In_ FLOAT Max) = 0;
  5306. virtual void STDMETHODCALLTYPE SetSamplePositions(
  5307. _In_ UINT NumSamplesPerPixel,
  5308. _In_ UINT NumPixels,
  5309. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions) = 0;
  5310. virtual void STDMETHODCALLTYPE ResolveSubresourceRegion(
  5311. _In_ ID3D12Resource *pDstResource,
  5312. _In_ UINT DstSubresource,
  5313. _In_ UINT DstX,
  5314. _In_ UINT DstY,
  5315. _In_ ID3D12Resource *pSrcResource,
  5316. _In_ UINT SrcSubresource,
  5317. _In_opt_ D3D12_RECT *pSrcRect,
  5318. _In_ DXGI_FORMAT Format,
  5319. _In_ D3D12_RESOLVE_MODE ResolveMode) = 0;
  5320. virtual void STDMETHODCALLTYPE SetViewInstanceMask(
  5321. _In_ UINT Mask) = 0;
  5322. };
  5323. #else /* C style interface */
  5324. typedef struct ID3D12GraphicsCommandList1Vtbl
  5325. {
  5326. BEGIN_INTERFACE
  5327. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  5328. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5329. ID3D12GraphicsCommandList1 * This,
  5330. REFIID riid,
  5331. _COM_Outptr_ void **ppvObject);
  5332. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  5333. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5334. ID3D12GraphicsCommandList1 * This);
  5335. DECLSPEC_XFGVIRT(IUnknown, Release)
  5336. ULONG ( STDMETHODCALLTYPE *Release )(
  5337. ID3D12GraphicsCommandList1 * This);
  5338. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  5339. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  5340. ID3D12GraphicsCommandList1 * This,
  5341. _In_ REFGUID guid,
  5342. _Inout_ UINT *pDataSize,
  5343. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  5344. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  5345. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  5346. ID3D12GraphicsCommandList1 * This,
  5347. _In_ REFGUID guid,
  5348. _In_ UINT DataSize,
  5349. _In_reads_bytes_opt_( DataSize ) const void *pData);
  5350. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  5351. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  5352. ID3D12GraphicsCommandList1 * This,
  5353. _In_ REFGUID guid,
  5354. _In_opt_ const IUnknown *pData);
  5355. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  5356. HRESULT ( STDMETHODCALLTYPE *SetName )(
  5357. ID3D12GraphicsCommandList1 * This,
  5358. _In_z_ LPCWSTR Name);
  5359. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  5360. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  5361. ID3D12GraphicsCommandList1 * This,
  5362. REFIID riid,
  5363. _COM_Outptr_opt_ void **ppvDevice);
  5364. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  5365. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  5366. ID3D12GraphicsCommandList1 * This);
  5367. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  5368. HRESULT ( STDMETHODCALLTYPE *Close )(
  5369. ID3D12GraphicsCommandList1 * This);
  5370. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  5371. HRESULT ( STDMETHODCALLTYPE *Reset )(
  5372. ID3D12GraphicsCommandList1 * This,
  5373. _In_ ID3D12CommandAllocator *pAllocator,
  5374. _In_opt_ ID3D12PipelineState *pInitialState);
  5375. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  5376. void ( STDMETHODCALLTYPE *ClearState )(
  5377. ID3D12GraphicsCommandList1 * This,
  5378. _In_opt_ ID3D12PipelineState *pPipelineState);
  5379. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  5380. void ( STDMETHODCALLTYPE *DrawInstanced )(
  5381. ID3D12GraphicsCommandList1 * This,
  5382. _In_ UINT VertexCountPerInstance,
  5383. _In_ UINT InstanceCount,
  5384. _In_ UINT StartVertexLocation,
  5385. _In_ UINT StartInstanceLocation);
  5386. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  5387. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  5388. ID3D12GraphicsCommandList1 * This,
  5389. _In_ UINT IndexCountPerInstance,
  5390. _In_ UINT InstanceCount,
  5391. _In_ UINT StartIndexLocation,
  5392. _In_ INT BaseVertexLocation,
  5393. _In_ UINT StartInstanceLocation);
  5394. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  5395. void ( STDMETHODCALLTYPE *Dispatch )(
  5396. ID3D12GraphicsCommandList1 * This,
  5397. _In_ UINT ThreadGroupCountX,
  5398. _In_ UINT ThreadGroupCountY,
  5399. _In_ UINT ThreadGroupCountZ);
  5400. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  5401. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  5402. ID3D12GraphicsCommandList1 * This,
  5403. _In_ ID3D12Resource *pDstBuffer,
  5404. UINT64 DstOffset,
  5405. _In_ ID3D12Resource *pSrcBuffer,
  5406. UINT64 SrcOffset,
  5407. UINT64 NumBytes);
  5408. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  5409. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  5410. ID3D12GraphicsCommandList1 * This,
  5411. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  5412. UINT DstX,
  5413. UINT DstY,
  5414. UINT DstZ,
  5415. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  5416. _In_opt_ const D3D12_BOX *pSrcBox);
  5417. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  5418. void ( STDMETHODCALLTYPE *CopyResource )(
  5419. ID3D12GraphicsCommandList1 * This,
  5420. _In_ ID3D12Resource *pDstResource,
  5421. _In_ ID3D12Resource *pSrcResource);
  5422. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  5423. void ( STDMETHODCALLTYPE *CopyTiles )(
  5424. ID3D12GraphicsCommandList1 * This,
  5425. _In_ ID3D12Resource *pTiledResource,
  5426. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  5427. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  5428. _In_ ID3D12Resource *pBuffer,
  5429. UINT64 BufferStartOffsetInBytes,
  5430. D3D12_TILE_COPY_FLAGS Flags);
  5431. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  5432. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  5433. ID3D12GraphicsCommandList1 * This,
  5434. _In_ ID3D12Resource *pDstResource,
  5435. _In_ UINT DstSubresource,
  5436. _In_ ID3D12Resource *pSrcResource,
  5437. _In_ UINT SrcSubresource,
  5438. _In_ DXGI_FORMAT Format);
  5439. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  5440. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  5441. ID3D12GraphicsCommandList1 * This,
  5442. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  5443. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  5444. void ( STDMETHODCALLTYPE *RSSetViewports )(
  5445. ID3D12GraphicsCommandList1 * This,
  5446. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  5447. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  5448. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  5449. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  5450. ID3D12GraphicsCommandList1 * This,
  5451. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  5452. _In_reads_( NumRects) const D3D12_RECT *pRects);
  5453. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  5454. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  5455. ID3D12GraphicsCommandList1 * This,
  5456. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  5457. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  5458. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  5459. ID3D12GraphicsCommandList1 * This,
  5460. _In_ UINT StencilRef);
  5461. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  5462. void ( STDMETHODCALLTYPE *SetPipelineState )(
  5463. ID3D12GraphicsCommandList1 * This,
  5464. _In_ ID3D12PipelineState *pPipelineState);
  5465. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  5466. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  5467. ID3D12GraphicsCommandList1 * This,
  5468. _In_ UINT NumBarriers,
  5469. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  5470. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  5471. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  5472. ID3D12GraphicsCommandList1 * This,
  5473. _In_ ID3D12GraphicsCommandList *pCommandList);
  5474. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  5475. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  5476. ID3D12GraphicsCommandList1 * This,
  5477. _In_ UINT NumDescriptorHeaps,
  5478. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  5479. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  5480. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  5481. ID3D12GraphicsCommandList1 * This,
  5482. _In_opt_ ID3D12RootSignature *pRootSignature);
  5483. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  5484. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  5485. ID3D12GraphicsCommandList1 * This,
  5486. _In_opt_ ID3D12RootSignature *pRootSignature);
  5487. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  5488. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  5489. ID3D12GraphicsCommandList1 * This,
  5490. _In_ UINT RootParameterIndex,
  5491. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  5492. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  5493. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  5494. ID3D12GraphicsCommandList1 * This,
  5495. _In_ UINT RootParameterIndex,
  5496. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  5497. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  5498. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  5499. ID3D12GraphicsCommandList1 * This,
  5500. _In_ UINT RootParameterIndex,
  5501. _In_ UINT SrcData,
  5502. _In_ UINT DestOffsetIn32BitValues);
  5503. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  5504. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  5505. ID3D12GraphicsCommandList1 * This,
  5506. _In_ UINT RootParameterIndex,
  5507. _In_ UINT SrcData,
  5508. _In_ UINT DestOffsetIn32BitValues);
  5509. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  5510. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  5511. ID3D12GraphicsCommandList1 * This,
  5512. _In_ UINT RootParameterIndex,
  5513. _In_ UINT Num32BitValuesToSet,
  5514. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  5515. _In_ UINT DestOffsetIn32BitValues);
  5516. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  5517. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  5518. ID3D12GraphicsCommandList1 * This,
  5519. _In_ UINT RootParameterIndex,
  5520. _In_ UINT Num32BitValuesToSet,
  5521. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  5522. _In_ UINT DestOffsetIn32BitValues);
  5523. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  5524. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  5525. ID3D12GraphicsCommandList1 * This,
  5526. _In_ UINT RootParameterIndex,
  5527. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5528. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  5529. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  5530. ID3D12GraphicsCommandList1 * This,
  5531. _In_ UINT RootParameterIndex,
  5532. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5533. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  5534. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  5535. ID3D12GraphicsCommandList1 * This,
  5536. _In_ UINT RootParameterIndex,
  5537. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5538. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  5539. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  5540. ID3D12GraphicsCommandList1 * This,
  5541. _In_ UINT RootParameterIndex,
  5542. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5543. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  5544. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  5545. ID3D12GraphicsCommandList1 * This,
  5546. _In_ UINT RootParameterIndex,
  5547. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5548. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  5549. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  5550. ID3D12GraphicsCommandList1 * This,
  5551. _In_ UINT RootParameterIndex,
  5552. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5553. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  5554. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  5555. ID3D12GraphicsCommandList1 * This,
  5556. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  5557. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  5558. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  5559. ID3D12GraphicsCommandList1 * This,
  5560. _In_ UINT StartSlot,
  5561. _In_ UINT NumViews,
  5562. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  5563. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  5564. void ( STDMETHODCALLTYPE *SOSetTargets )(
  5565. ID3D12GraphicsCommandList1 * This,
  5566. _In_ UINT StartSlot,
  5567. _In_ UINT NumViews,
  5568. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  5569. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  5570. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  5571. ID3D12GraphicsCommandList1 * This,
  5572. _In_ UINT NumRenderTargetDescriptors,
  5573. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  5574. _In_ BOOL RTsSingleHandleToDescriptorRange,
  5575. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  5576. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  5577. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  5578. ID3D12GraphicsCommandList1 * This,
  5579. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  5580. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  5581. _In_ FLOAT Depth,
  5582. _In_ UINT8 Stencil,
  5583. _In_ UINT NumRects,
  5584. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5585. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  5586. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  5587. ID3D12GraphicsCommandList1 * This,
  5588. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  5589. _In_ const FLOAT ColorRGBA[ 4 ],
  5590. _In_ UINT NumRects,
  5591. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5592. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  5593. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  5594. ID3D12GraphicsCommandList1 * This,
  5595. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5596. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5597. _In_ ID3D12Resource *pResource,
  5598. _In_ const UINT Values[ 4 ],
  5599. _In_ UINT NumRects,
  5600. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5601. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  5602. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  5603. ID3D12GraphicsCommandList1 * This,
  5604. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5605. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5606. _In_ ID3D12Resource *pResource,
  5607. _In_ const FLOAT Values[ 4 ],
  5608. _In_ UINT NumRects,
  5609. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5610. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  5611. void ( STDMETHODCALLTYPE *DiscardResource )(
  5612. ID3D12GraphicsCommandList1 * This,
  5613. _In_ ID3D12Resource *pResource,
  5614. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  5615. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  5616. void ( STDMETHODCALLTYPE *BeginQuery )(
  5617. ID3D12GraphicsCommandList1 * This,
  5618. _In_ ID3D12QueryHeap *pQueryHeap,
  5619. _In_ D3D12_QUERY_TYPE Type,
  5620. _In_ UINT Index);
  5621. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  5622. void ( STDMETHODCALLTYPE *EndQuery )(
  5623. ID3D12GraphicsCommandList1 * This,
  5624. _In_ ID3D12QueryHeap *pQueryHeap,
  5625. _In_ D3D12_QUERY_TYPE Type,
  5626. _In_ UINT Index);
  5627. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  5628. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  5629. ID3D12GraphicsCommandList1 * This,
  5630. _In_ ID3D12QueryHeap *pQueryHeap,
  5631. _In_ D3D12_QUERY_TYPE Type,
  5632. _In_ UINT StartIndex,
  5633. _In_ UINT NumQueries,
  5634. _In_ ID3D12Resource *pDestinationBuffer,
  5635. _In_ UINT64 AlignedDestinationBufferOffset);
  5636. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  5637. void ( STDMETHODCALLTYPE *SetPredication )(
  5638. ID3D12GraphicsCommandList1 * This,
  5639. _In_opt_ ID3D12Resource *pBuffer,
  5640. _In_ UINT64 AlignedBufferOffset,
  5641. _In_ D3D12_PREDICATION_OP Operation);
  5642. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  5643. void ( STDMETHODCALLTYPE *SetMarker )(
  5644. ID3D12GraphicsCommandList1 * This,
  5645. UINT Metadata,
  5646. _In_reads_bytes_opt_(Size) const void *pData,
  5647. UINT Size);
  5648. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  5649. void ( STDMETHODCALLTYPE *BeginEvent )(
  5650. ID3D12GraphicsCommandList1 * This,
  5651. UINT Metadata,
  5652. _In_reads_bytes_opt_(Size) const void *pData,
  5653. UINT Size);
  5654. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  5655. void ( STDMETHODCALLTYPE *EndEvent )(
  5656. ID3D12GraphicsCommandList1 * This);
  5657. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  5658. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  5659. ID3D12GraphicsCommandList1 * This,
  5660. _In_ ID3D12CommandSignature *pCommandSignature,
  5661. _In_ UINT MaxCommandCount,
  5662. _In_ ID3D12Resource *pArgumentBuffer,
  5663. _In_ UINT64 ArgumentBufferOffset,
  5664. _In_opt_ ID3D12Resource *pCountBuffer,
  5665. _In_ UINT64 CountBufferOffset);
  5666. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  5667. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  5668. ID3D12GraphicsCommandList1 * This,
  5669. _In_ ID3D12Resource *pDstBuffer,
  5670. UINT64 DstOffset,
  5671. _In_ ID3D12Resource *pSrcBuffer,
  5672. UINT64 SrcOffset,
  5673. UINT Dependencies,
  5674. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5675. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  5676. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  5677. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  5678. ID3D12GraphicsCommandList1 * This,
  5679. _In_ ID3D12Resource *pDstBuffer,
  5680. UINT64 DstOffset,
  5681. _In_ ID3D12Resource *pSrcBuffer,
  5682. UINT64 SrcOffset,
  5683. UINT Dependencies,
  5684. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5685. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  5686. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  5687. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  5688. ID3D12GraphicsCommandList1 * This,
  5689. _In_ FLOAT Min,
  5690. _In_ FLOAT Max);
  5691. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  5692. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  5693. ID3D12GraphicsCommandList1 * This,
  5694. _In_ UINT NumSamplesPerPixel,
  5695. _In_ UINT NumPixels,
  5696. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  5697. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  5698. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  5699. ID3D12GraphicsCommandList1 * This,
  5700. _In_ ID3D12Resource *pDstResource,
  5701. _In_ UINT DstSubresource,
  5702. _In_ UINT DstX,
  5703. _In_ UINT DstY,
  5704. _In_ ID3D12Resource *pSrcResource,
  5705. _In_ UINT SrcSubresource,
  5706. _In_opt_ D3D12_RECT *pSrcRect,
  5707. _In_ DXGI_FORMAT Format,
  5708. _In_ D3D12_RESOLVE_MODE ResolveMode);
  5709. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  5710. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  5711. ID3D12GraphicsCommandList1 * This,
  5712. _In_ UINT Mask);
  5713. END_INTERFACE
  5714. } ID3D12GraphicsCommandList1Vtbl;
  5715. interface ID3D12GraphicsCommandList1
  5716. {
  5717. CONST_VTBL struct ID3D12GraphicsCommandList1Vtbl *lpVtbl;
  5718. };
  5719. #ifdef COBJMACROS
  5720. #define ID3D12GraphicsCommandList1_QueryInterface(This,riid,ppvObject) \
  5721. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  5722. #define ID3D12GraphicsCommandList1_AddRef(This) \
  5723. ( (This)->lpVtbl -> AddRef(This) )
  5724. #define ID3D12GraphicsCommandList1_Release(This) \
  5725. ( (This)->lpVtbl -> Release(This) )
  5726. #define ID3D12GraphicsCommandList1_GetPrivateData(This,guid,pDataSize,pData) \
  5727. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  5728. #define ID3D12GraphicsCommandList1_SetPrivateData(This,guid,DataSize,pData) \
  5729. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  5730. #define ID3D12GraphicsCommandList1_SetPrivateDataInterface(This,guid,pData) \
  5731. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  5732. #define ID3D12GraphicsCommandList1_SetName(This,Name) \
  5733. ( (This)->lpVtbl -> SetName(This,Name) )
  5734. #define ID3D12GraphicsCommandList1_GetDevice(This,riid,ppvDevice) \
  5735. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  5736. #define ID3D12GraphicsCommandList1_GetType(This) \
  5737. ( (This)->lpVtbl -> GetType(This) )
  5738. #define ID3D12GraphicsCommandList1_Close(This) \
  5739. ( (This)->lpVtbl -> Close(This) )
  5740. #define ID3D12GraphicsCommandList1_Reset(This,pAllocator,pInitialState) \
  5741. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  5742. #define ID3D12GraphicsCommandList1_ClearState(This,pPipelineState) \
  5743. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  5744. #define ID3D12GraphicsCommandList1_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  5745. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  5746. #define ID3D12GraphicsCommandList1_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  5747. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  5748. #define ID3D12GraphicsCommandList1_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  5749. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  5750. #define ID3D12GraphicsCommandList1_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  5751. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  5752. #define ID3D12GraphicsCommandList1_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  5753. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  5754. #define ID3D12GraphicsCommandList1_CopyResource(This,pDstResource,pSrcResource) \
  5755. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  5756. #define ID3D12GraphicsCommandList1_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  5757. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  5758. #define ID3D12GraphicsCommandList1_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  5759. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  5760. #define ID3D12GraphicsCommandList1_IASetPrimitiveTopology(This,PrimitiveTopology) \
  5761. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  5762. #define ID3D12GraphicsCommandList1_RSSetViewports(This,NumViewports,pViewports) \
  5763. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  5764. #define ID3D12GraphicsCommandList1_RSSetScissorRects(This,NumRects,pRects) \
  5765. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  5766. #define ID3D12GraphicsCommandList1_OMSetBlendFactor(This,BlendFactor) \
  5767. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  5768. #define ID3D12GraphicsCommandList1_OMSetStencilRef(This,StencilRef) \
  5769. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  5770. #define ID3D12GraphicsCommandList1_SetPipelineState(This,pPipelineState) \
  5771. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  5772. #define ID3D12GraphicsCommandList1_ResourceBarrier(This,NumBarriers,pBarriers) \
  5773. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  5774. #define ID3D12GraphicsCommandList1_ExecuteBundle(This,pCommandList) \
  5775. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  5776. #define ID3D12GraphicsCommandList1_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  5777. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  5778. #define ID3D12GraphicsCommandList1_SetComputeRootSignature(This,pRootSignature) \
  5779. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  5780. #define ID3D12GraphicsCommandList1_SetGraphicsRootSignature(This,pRootSignature) \
  5781. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  5782. #define ID3D12GraphicsCommandList1_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5783. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5784. #define ID3D12GraphicsCommandList1_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5785. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5786. #define ID3D12GraphicsCommandList1_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5787. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5788. #define ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5789. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5790. #define ID3D12GraphicsCommandList1_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5791. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5792. #define ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5793. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5794. #define ID3D12GraphicsCommandList1_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5795. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5796. #define ID3D12GraphicsCommandList1_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5797. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5798. #define ID3D12GraphicsCommandList1_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5799. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5800. #define ID3D12GraphicsCommandList1_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5801. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5802. #define ID3D12GraphicsCommandList1_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5803. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5804. #define ID3D12GraphicsCommandList1_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5805. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5806. #define ID3D12GraphicsCommandList1_IASetIndexBuffer(This,pView) \
  5807. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  5808. #define ID3D12GraphicsCommandList1_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  5809. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  5810. #define ID3D12GraphicsCommandList1_SOSetTargets(This,StartSlot,NumViews,pViews) \
  5811. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  5812. #define ID3D12GraphicsCommandList1_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  5813. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  5814. #define ID3D12GraphicsCommandList1_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  5815. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  5816. #define ID3D12GraphicsCommandList1_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  5817. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  5818. #define ID3D12GraphicsCommandList1_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5819. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5820. #define ID3D12GraphicsCommandList1_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5821. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5822. #define ID3D12GraphicsCommandList1_DiscardResource(This,pResource,pRegion) \
  5823. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  5824. #define ID3D12GraphicsCommandList1_BeginQuery(This,pQueryHeap,Type,Index) \
  5825. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  5826. #define ID3D12GraphicsCommandList1_EndQuery(This,pQueryHeap,Type,Index) \
  5827. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  5828. #define ID3D12GraphicsCommandList1_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  5829. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  5830. #define ID3D12GraphicsCommandList1_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  5831. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  5832. #define ID3D12GraphicsCommandList1_SetMarker(This,Metadata,pData,Size) \
  5833. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  5834. #define ID3D12GraphicsCommandList1_BeginEvent(This,Metadata,pData,Size) \
  5835. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  5836. #define ID3D12GraphicsCommandList1_EndEvent(This) \
  5837. ( (This)->lpVtbl -> EndEvent(This) )
  5838. #define ID3D12GraphicsCommandList1_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  5839. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  5840. #define ID3D12GraphicsCommandList1_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  5841. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  5842. #define ID3D12GraphicsCommandList1_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  5843. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  5844. #define ID3D12GraphicsCommandList1_OMSetDepthBounds(This,Min,Max) \
  5845. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  5846. #define ID3D12GraphicsCommandList1_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  5847. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  5848. #define ID3D12GraphicsCommandList1_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  5849. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  5850. #define ID3D12GraphicsCommandList1_SetViewInstanceMask(This,Mask) \
  5851. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  5852. #endif /* COBJMACROS */
  5853. #endif /* C style interface */
  5854. #endif /* __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__ */
  5855. /* interface __MIDL_itf_d3d12_0000_0018 */
  5856. /* [local] */
  5857. typedef struct D3D12_WRITEBUFFERIMMEDIATE_PARAMETER
  5858. {
  5859. D3D12_GPU_VIRTUAL_ADDRESS Dest;
  5860. UINT32 Value;
  5861. } D3D12_WRITEBUFFERIMMEDIATE_PARAMETER;
  5862. typedef
  5863. enum D3D12_WRITEBUFFERIMMEDIATE_MODE
  5864. {
  5865. D3D12_WRITEBUFFERIMMEDIATE_MODE_DEFAULT = 0,
  5866. D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_IN = 0x1,
  5867. D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_OUT = 0x2
  5868. } D3D12_WRITEBUFFERIMMEDIATE_MODE;
  5869. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0018_v0_0_c_ifspec;
  5870. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0018_v0_0_s_ifspec;
  5871. #ifndef __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__
  5872. #define __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__
  5873. /* interface ID3D12GraphicsCommandList2 */
  5874. /* [unique][local][object][uuid] */
  5875. EXTERN_C const IID IID_ID3D12GraphicsCommandList2;
  5876. #if defined(__cplusplus) && !defined(CINTERFACE)
  5877. MIDL_INTERFACE("38C3E585-FF17-412C-9150-4FC6F9D72A28")
  5878. ID3D12GraphicsCommandList2 : public ID3D12GraphicsCommandList1
  5879. {
  5880. public:
  5881. virtual void STDMETHODCALLTYPE WriteBufferImmediate(
  5882. UINT Count,
  5883. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  5884. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes) = 0;
  5885. };
  5886. #else /* C style interface */
  5887. typedef struct ID3D12GraphicsCommandList2Vtbl
  5888. {
  5889. BEGIN_INTERFACE
  5890. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  5891. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5892. ID3D12GraphicsCommandList2 * This,
  5893. REFIID riid,
  5894. _COM_Outptr_ void **ppvObject);
  5895. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  5896. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5897. ID3D12GraphicsCommandList2 * This);
  5898. DECLSPEC_XFGVIRT(IUnknown, Release)
  5899. ULONG ( STDMETHODCALLTYPE *Release )(
  5900. ID3D12GraphicsCommandList2 * This);
  5901. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  5902. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  5903. ID3D12GraphicsCommandList2 * This,
  5904. _In_ REFGUID guid,
  5905. _Inout_ UINT *pDataSize,
  5906. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  5907. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  5908. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  5909. ID3D12GraphicsCommandList2 * This,
  5910. _In_ REFGUID guid,
  5911. _In_ UINT DataSize,
  5912. _In_reads_bytes_opt_( DataSize ) const void *pData);
  5913. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  5914. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  5915. ID3D12GraphicsCommandList2 * This,
  5916. _In_ REFGUID guid,
  5917. _In_opt_ const IUnknown *pData);
  5918. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  5919. HRESULT ( STDMETHODCALLTYPE *SetName )(
  5920. ID3D12GraphicsCommandList2 * This,
  5921. _In_z_ LPCWSTR Name);
  5922. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  5923. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  5924. ID3D12GraphicsCommandList2 * This,
  5925. REFIID riid,
  5926. _COM_Outptr_opt_ void **ppvDevice);
  5927. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  5928. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  5929. ID3D12GraphicsCommandList2 * This);
  5930. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  5931. HRESULT ( STDMETHODCALLTYPE *Close )(
  5932. ID3D12GraphicsCommandList2 * This);
  5933. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  5934. HRESULT ( STDMETHODCALLTYPE *Reset )(
  5935. ID3D12GraphicsCommandList2 * This,
  5936. _In_ ID3D12CommandAllocator *pAllocator,
  5937. _In_opt_ ID3D12PipelineState *pInitialState);
  5938. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  5939. void ( STDMETHODCALLTYPE *ClearState )(
  5940. ID3D12GraphicsCommandList2 * This,
  5941. _In_opt_ ID3D12PipelineState *pPipelineState);
  5942. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  5943. void ( STDMETHODCALLTYPE *DrawInstanced )(
  5944. ID3D12GraphicsCommandList2 * This,
  5945. _In_ UINT VertexCountPerInstance,
  5946. _In_ UINT InstanceCount,
  5947. _In_ UINT StartVertexLocation,
  5948. _In_ UINT StartInstanceLocation);
  5949. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  5950. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  5951. ID3D12GraphicsCommandList2 * This,
  5952. _In_ UINT IndexCountPerInstance,
  5953. _In_ UINT InstanceCount,
  5954. _In_ UINT StartIndexLocation,
  5955. _In_ INT BaseVertexLocation,
  5956. _In_ UINT StartInstanceLocation);
  5957. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  5958. void ( STDMETHODCALLTYPE *Dispatch )(
  5959. ID3D12GraphicsCommandList2 * This,
  5960. _In_ UINT ThreadGroupCountX,
  5961. _In_ UINT ThreadGroupCountY,
  5962. _In_ UINT ThreadGroupCountZ);
  5963. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  5964. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  5965. ID3D12GraphicsCommandList2 * This,
  5966. _In_ ID3D12Resource *pDstBuffer,
  5967. UINT64 DstOffset,
  5968. _In_ ID3D12Resource *pSrcBuffer,
  5969. UINT64 SrcOffset,
  5970. UINT64 NumBytes);
  5971. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  5972. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  5973. ID3D12GraphicsCommandList2 * This,
  5974. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  5975. UINT DstX,
  5976. UINT DstY,
  5977. UINT DstZ,
  5978. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  5979. _In_opt_ const D3D12_BOX *pSrcBox);
  5980. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  5981. void ( STDMETHODCALLTYPE *CopyResource )(
  5982. ID3D12GraphicsCommandList2 * This,
  5983. _In_ ID3D12Resource *pDstResource,
  5984. _In_ ID3D12Resource *pSrcResource);
  5985. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  5986. void ( STDMETHODCALLTYPE *CopyTiles )(
  5987. ID3D12GraphicsCommandList2 * This,
  5988. _In_ ID3D12Resource *pTiledResource,
  5989. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  5990. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  5991. _In_ ID3D12Resource *pBuffer,
  5992. UINT64 BufferStartOffsetInBytes,
  5993. D3D12_TILE_COPY_FLAGS Flags);
  5994. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  5995. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  5996. ID3D12GraphicsCommandList2 * This,
  5997. _In_ ID3D12Resource *pDstResource,
  5998. _In_ UINT DstSubresource,
  5999. _In_ ID3D12Resource *pSrcResource,
  6000. _In_ UINT SrcSubresource,
  6001. _In_ DXGI_FORMAT Format);
  6002. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  6003. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  6004. ID3D12GraphicsCommandList2 * This,
  6005. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  6006. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  6007. void ( STDMETHODCALLTYPE *RSSetViewports )(
  6008. ID3D12GraphicsCommandList2 * This,
  6009. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  6010. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  6011. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  6012. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  6013. ID3D12GraphicsCommandList2 * This,
  6014. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  6015. _In_reads_( NumRects) const D3D12_RECT *pRects);
  6016. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  6017. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  6018. ID3D12GraphicsCommandList2 * This,
  6019. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  6020. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  6021. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  6022. ID3D12GraphicsCommandList2 * This,
  6023. _In_ UINT StencilRef);
  6024. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  6025. void ( STDMETHODCALLTYPE *SetPipelineState )(
  6026. ID3D12GraphicsCommandList2 * This,
  6027. _In_ ID3D12PipelineState *pPipelineState);
  6028. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  6029. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  6030. ID3D12GraphicsCommandList2 * This,
  6031. _In_ UINT NumBarriers,
  6032. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  6033. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  6034. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  6035. ID3D12GraphicsCommandList2 * This,
  6036. _In_ ID3D12GraphicsCommandList *pCommandList);
  6037. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  6038. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  6039. ID3D12GraphicsCommandList2 * This,
  6040. _In_ UINT NumDescriptorHeaps,
  6041. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  6042. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  6043. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  6044. ID3D12GraphicsCommandList2 * This,
  6045. _In_opt_ ID3D12RootSignature *pRootSignature);
  6046. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  6047. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  6048. ID3D12GraphicsCommandList2 * This,
  6049. _In_opt_ ID3D12RootSignature *pRootSignature);
  6050. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  6051. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  6052. ID3D12GraphicsCommandList2 * This,
  6053. _In_ UINT RootParameterIndex,
  6054. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  6055. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  6056. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  6057. ID3D12GraphicsCommandList2 * This,
  6058. _In_ UINT RootParameterIndex,
  6059. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  6060. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  6061. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  6062. ID3D12GraphicsCommandList2 * This,
  6063. _In_ UINT RootParameterIndex,
  6064. _In_ UINT SrcData,
  6065. _In_ UINT DestOffsetIn32BitValues);
  6066. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  6067. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  6068. ID3D12GraphicsCommandList2 * This,
  6069. _In_ UINT RootParameterIndex,
  6070. _In_ UINT SrcData,
  6071. _In_ UINT DestOffsetIn32BitValues);
  6072. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  6073. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  6074. ID3D12GraphicsCommandList2 * This,
  6075. _In_ UINT RootParameterIndex,
  6076. _In_ UINT Num32BitValuesToSet,
  6077. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  6078. _In_ UINT DestOffsetIn32BitValues);
  6079. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  6080. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  6081. ID3D12GraphicsCommandList2 * This,
  6082. _In_ UINT RootParameterIndex,
  6083. _In_ UINT Num32BitValuesToSet,
  6084. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  6085. _In_ UINT DestOffsetIn32BitValues);
  6086. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  6087. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  6088. ID3D12GraphicsCommandList2 * This,
  6089. _In_ UINT RootParameterIndex,
  6090. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6091. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  6092. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  6093. ID3D12GraphicsCommandList2 * This,
  6094. _In_ UINT RootParameterIndex,
  6095. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6096. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  6097. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  6098. ID3D12GraphicsCommandList2 * This,
  6099. _In_ UINT RootParameterIndex,
  6100. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6101. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  6102. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  6103. ID3D12GraphicsCommandList2 * This,
  6104. _In_ UINT RootParameterIndex,
  6105. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6106. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  6107. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  6108. ID3D12GraphicsCommandList2 * This,
  6109. _In_ UINT RootParameterIndex,
  6110. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6111. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  6112. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  6113. ID3D12GraphicsCommandList2 * This,
  6114. _In_ UINT RootParameterIndex,
  6115. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6116. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  6117. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  6118. ID3D12GraphicsCommandList2 * This,
  6119. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  6120. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  6121. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  6122. ID3D12GraphicsCommandList2 * This,
  6123. _In_ UINT StartSlot,
  6124. _In_ UINT NumViews,
  6125. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  6126. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  6127. void ( STDMETHODCALLTYPE *SOSetTargets )(
  6128. ID3D12GraphicsCommandList2 * This,
  6129. _In_ UINT StartSlot,
  6130. _In_ UINT NumViews,
  6131. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  6132. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  6133. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  6134. ID3D12GraphicsCommandList2 * This,
  6135. _In_ UINT NumRenderTargetDescriptors,
  6136. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  6137. _In_ BOOL RTsSingleHandleToDescriptorRange,
  6138. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  6139. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  6140. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  6141. ID3D12GraphicsCommandList2 * This,
  6142. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  6143. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  6144. _In_ FLOAT Depth,
  6145. _In_ UINT8 Stencil,
  6146. _In_ UINT NumRects,
  6147. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6148. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  6149. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  6150. ID3D12GraphicsCommandList2 * This,
  6151. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  6152. _In_ const FLOAT ColorRGBA[ 4 ],
  6153. _In_ UINT NumRects,
  6154. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6155. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  6156. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  6157. ID3D12GraphicsCommandList2 * This,
  6158. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  6159. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  6160. _In_ ID3D12Resource *pResource,
  6161. _In_ const UINT Values[ 4 ],
  6162. _In_ UINT NumRects,
  6163. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6164. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  6165. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  6166. ID3D12GraphicsCommandList2 * This,
  6167. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  6168. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  6169. _In_ ID3D12Resource *pResource,
  6170. _In_ const FLOAT Values[ 4 ],
  6171. _In_ UINT NumRects,
  6172. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6173. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  6174. void ( STDMETHODCALLTYPE *DiscardResource )(
  6175. ID3D12GraphicsCommandList2 * This,
  6176. _In_ ID3D12Resource *pResource,
  6177. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  6178. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  6179. void ( STDMETHODCALLTYPE *BeginQuery )(
  6180. ID3D12GraphicsCommandList2 * This,
  6181. _In_ ID3D12QueryHeap *pQueryHeap,
  6182. _In_ D3D12_QUERY_TYPE Type,
  6183. _In_ UINT Index);
  6184. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  6185. void ( STDMETHODCALLTYPE *EndQuery )(
  6186. ID3D12GraphicsCommandList2 * This,
  6187. _In_ ID3D12QueryHeap *pQueryHeap,
  6188. _In_ D3D12_QUERY_TYPE Type,
  6189. _In_ UINT Index);
  6190. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  6191. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  6192. ID3D12GraphicsCommandList2 * This,
  6193. _In_ ID3D12QueryHeap *pQueryHeap,
  6194. _In_ D3D12_QUERY_TYPE Type,
  6195. _In_ UINT StartIndex,
  6196. _In_ UINT NumQueries,
  6197. _In_ ID3D12Resource *pDestinationBuffer,
  6198. _In_ UINT64 AlignedDestinationBufferOffset);
  6199. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  6200. void ( STDMETHODCALLTYPE *SetPredication )(
  6201. ID3D12GraphicsCommandList2 * This,
  6202. _In_opt_ ID3D12Resource *pBuffer,
  6203. _In_ UINT64 AlignedBufferOffset,
  6204. _In_ D3D12_PREDICATION_OP Operation);
  6205. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  6206. void ( STDMETHODCALLTYPE *SetMarker )(
  6207. ID3D12GraphicsCommandList2 * This,
  6208. UINT Metadata,
  6209. _In_reads_bytes_opt_(Size) const void *pData,
  6210. UINT Size);
  6211. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  6212. void ( STDMETHODCALLTYPE *BeginEvent )(
  6213. ID3D12GraphicsCommandList2 * This,
  6214. UINT Metadata,
  6215. _In_reads_bytes_opt_(Size) const void *pData,
  6216. UINT Size);
  6217. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  6218. void ( STDMETHODCALLTYPE *EndEvent )(
  6219. ID3D12GraphicsCommandList2 * This);
  6220. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  6221. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  6222. ID3D12GraphicsCommandList2 * This,
  6223. _In_ ID3D12CommandSignature *pCommandSignature,
  6224. _In_ UINT MaxCommandCount,
  6225. _In_ ID3D12Resource *pArgumentBuffer,
  6226. _In_ UINT64 ArgumentBufferOffset,
  6227. _In_opt_ ID3D12Resource *pCountBuffer,
  6228. _In_ UINT64 CountBufferOffset);
  6229. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  6230. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  6231. ID3D12GraphicsCommandList2 * This,
  6232. _In_ ID3D12Resource *pDstBuffer,
  6233. UINT64 DstOffset,
  6234. _In_ ID3D12Resource *pSrcBuffer,
  6235. UINT64 SrcOffset,
  6236. UINT Dependencies,
  6237. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  6238. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  6239. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  6240. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  6241. ID3D12GraphicsCommandList2 * This,
  6242. _In_ ID3D12Resource *pDstBuffer,
  6243. UINT64 DstOffset,
  6244. _In_ ID3D12Resource *pSrcBuffer,
  6245. UINT64 SrcOffset,
  6246. UINT Dependencies,
  6247. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  6248. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  6249. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  6250. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  6251. ID3D12GraphicsCommandList2 * This,
  6252. _In_ FLOAT Min,
  6253. _In_ FLOAT Max);
  6254. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  6255. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  6256. ID3D12GraphicsCommandList2 * This,
  6257. _In_ UINT NumSamplesPerPixel,
  6258. _In_ UINT NumPixels,
  6259. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  6260. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  6261. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  6262. ID3D12GraphicsCommandList2 * This,
  6263. _In_ ID3D12Resource *pDstResource,
  6264. _In_ UINT DstSubresource,
  6265. _In_ UINT DstX,
  6266. _In_ UINT DstY,
  6267. _In_ ID3D12Resource *pSrcResource,
  6268. _In_ UINT SrcSubresource,
  6269. _In_opt_ D3D12_RECT *pSrcRect,
  6270. _In_ DXGI_FORMAT Format,
  6271. _In_ D3D12_RESOLVE_MODE ResolveMode);
  6272. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  6273. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  6274. ID3D12GraphicsCommandList2 * This,
  6275. _In_ UINT Mask);
  6276. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  6277. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  6278. ID3D12GraphicsCommandList2 * This,
  6279. UINT Count,
  6280. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  6281. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  6282. END_INTERFACE
  6283. } ID3D12GraphicsCommandList2Vtbl;
  6284. interface ID3D12GraphicsCommandList2
  6285. {
  6286. CONST_VTBL struct ID3D12GraphicsCommandList2Vtbl *lpVtbl;
  6287. };
  6288. #ifdef COBJMACROS
  6289. #define ID3D12GraphicsCommandList2_QueryInterface(This,riid,ppvObject) \
  6290. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  6291. #define ID3D12GraphicsCommandList2_AddRef(This) \
  6292. ( (This)->lpVtbl -> AddRef(This) )
  6293. #define ID3D12GraphicsCommandList2_Release(This) \
  6294. ( (This)->lpVtbl -> Release(This) )
  6295. #define ID3D12GraphicsCommandList2_GetPrivateData(This,guid,pDataSize,pData) \
  6296. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  6297. #define ID3D12GraphicsCommandList2_SetPrivateData(This,guid,DataSize,pData) \
  6298. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  6299. #define ID3D12GraphicsCommandList2_SetPrivateDataInterface(This,guid,pData) \
  6300. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  6301. #define ID3D12GraphicsCommandList2_SetName(This,Name) \
  6302. ( (This)->lpVtbl -> SetName(This,Name) )
  6303. #define ID3D12GraphicsCommandList2_GetDevice(This,riid,ppvDevice) \
  6304. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  6305. #define ID3D12GraphicsCommandList2_GetType(This) \
  6306. ( (This)->lpVtbl -> GetType(This) )
  6307. #define ID3D12GraphicsCommandList2_Close(This) \
  6308. ( (This)->lpVtbl -> Close(This) )
  6309. #define ID3D12GraphicsCommandList2_Reset(This,pAllocator,pInitialState) \
  6310. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  6311. #define ID3D12GraphicsCommandList2_ClearState(This,pPipelineState) \
  6312. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  6313. #define ID3D12GraphicsCommandList2_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  6314. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  6315. #define ID3D12GraphicsCommandList2_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  6316. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  6317. #define ID3D12GraphicsCommandList2_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  6318. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  6319. #define ID3D12GraphicsCommandList2_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  6320. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  6321. #define ID3D12GraphicsCommandList2_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  6322. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  6323. #define ID3D12GraphicsCommandList2_CopyResource(This,pDstResource,pSrcResource) \
  6324. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  6325. #define ID3D12GraphicsCommandList2_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  6326. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  6327. #define ID3D12GraphicsCommandList2_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  6328. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  6329. #define ID3D12GraphicsCommandList2_IASetPrimitiveTopology(This,PrimitiveTopology) \
  6330. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  6331. #define ID3D12GraphicsCommandList2_RSSetViewports(This,NumViewports,pViewports) \
  6332. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  6333. #define ID3D12GraphicsCommandList2_RSSetScissorRects(This,NumRects,pRects) \
  6334. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  6335. #define ID3D12GraphicsCommandList2_OMSetBlendFactor(This,BlendFactor) \
  6336. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  6337. #define ID3D12GraphicsCommandList2_OMSetStencilRef(This,StencilRef) \
  6338. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  6339. #define ID3D12GraphicsCommandList2_SetPipelineState(This,pPipelineState) \
  6340. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  6341. #define ID3D12GraphicsCommandList2_ResourceBarrier(This,NumBarriers,pBarriers) \
  6342. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  6343. #define ID3D12GraphicsCommandList2_ExecuteBundle(This,pCommandList) \
  6344. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  6345. #define ID3D12GraphicsCommandList2_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  6346. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  6347. #define ID3D12GraphicsCommandList2_SetComputeRootSignature(This,pRootSignature) \
  6348. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  6349. #define ID3D12GraphicsCommandList2_SetGraphicsRootSignature(This,pRootSignature) \
  6350. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  6351. #define ID3D12GraphicsCommandList2_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  6352. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  6353. #define ID3D12GraphicsCommandList2_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  6354. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  6355. #define ID3D12GraphicsCommandList2_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  6356. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  6357. #define ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  6358. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  6359. #define ID3D12GraphicsCommandList2_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  6360. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  6361. #define ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  6362. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  6363. #define ID3D12GraphicsCommandList2_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  6364. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  6365. #define ID3D12GraphicsCommandList2_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  6366. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  6367. #define ID3D12GraphicsCommandList2_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  6368. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  6369. #define ID3D12GraphicsCommandList2_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  6370. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  6371. #define ID3D12GraphicsCommandList2_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  6372. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  6373. #define ID3D12GraphicsCommandList2_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  6374. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  6375. #define ID3D12GraphicsCommandList2_IASetIndexBuffer(This,pView) \
  6376. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  6377. #define ID3D12GraphicsCommandList2_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  6378. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  6379. #define ID3D12GraphicsCommandList2_SOSetTargets(This,StartSlot,NumViews,pViews) \
  6380. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  6381. #define ID3D12GraphicsCommandList2_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  6382. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  6383. #define ID3D12GraphicsCommandList2_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  6384. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  6385. #define ID3D12GraphicsCommandList2_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  6386. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  6387. #define ID3D12GraphicsCommandList2_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  6388. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  6389. #define ID3D12GraphicsCommandList2_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  6390. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  6391. #define ID3D12GraphicsCommandList2_DiscardResource(This,pResource,pRegion) \
  6392. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  6393. #define ID3D12GraphicsCommandList2_BeginQuery(This,pQueryHeap,Type,Index) \
  6394. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  6395. #define ID3D12GraphicsCommandList2_EndQuery(This,pQueryHeap,Type,Index) \
  6396. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  6397. #define ID3D12GraphicsCommandList2_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  6398. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  6399. #define ID3D12GraphicsCommandList2_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  6400. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  6401. #define ID3D12GraphicsCommandList2_SetMarker(This,Metadata,pData,Size) \
  6402. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  6403. #define ID3D12GraphicsCommandList2_BeginEvent(This,Metadata,pData,Size) \
  6404. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  6405. #define ID3D12GraphicsCommandList2_EndEvent(This) \
  6406. ( (This)->lpVtbl -> EndEvent(This) )
  6407. #define ID3D12GraphicsCommandList2_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  6408. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  6409. #define ID3D12GraphicsCommandList2_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  6410. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  6411. #define ID3D12GraphicsCommandList2_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  6412. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  6413. #define ID3D12GraphicsCommandList2_OMSetDepthBounds(This,Min,Max) \
  6414. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  6415. #define ID3D12GraphicsCommandList2_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  6416. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  6417. #define ID3D12GraphicsCommandList2_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  6418. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  6419. #define ID3D12GraphicsCommandList2_SetViewInstanceMask(This,Mask) \
  6420. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  6421. #define ID3D12GraphicsCommandList2_WriteBufferImmediate(This,Count,pParams,pModes) \
  6422. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  6423. #endif /* COBJMACROS */
  6424. #endif /* C style interface */
  6425. #endif /* __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__ */
  6426. #ifndef __ID3D12CommandQueue_INTERFACE_DEFINED__
  6427. #define __ID3D12CommandQueue_INTERFACE_DEFINED__
  6428. /* interface ID3D12CommandQueue */
  6429. /* [unique][local][object][uuid] */
  6430. EXTERN_C const IID IID_ID3D12CommandQueue;
  6431. #if defined(__cplusplus) && !defined(CINTERFACE)
  6432. MIDL_INTERFACE("0ec870a6-5d7e-4c22-8cfc-5baae07616ed")
  6433. ID3D12CommandQueue : public ID3D12Pageable
  6434. {
  6435. public:
  6436. virtual void STDMETHODCALLTYPE UpdateTileMappings(
  6437. _In_ ID3D12Resource *pResource,
  6438. UINT NumResourceRegions,
  6439. _In_reads_opt_(NumResourceRegions) const D3D12_TILED_RESOURCE_COORDINATE *pResourceRegionStartCoordinates,
  6440. _In_reads_opt_(NumResourceRegions) const D3D12_TILE_REGION_SIZE *pResourceRegionSizes,
  6441. _In_opt_ ID3D12Heap *pHeap,
  6442. UINT NumRanges,
  6443. _In_reads_opt_(NumRanges) const D3D12_TILE_RANGE_FLAGS *pRangeFlags,
  6444. _In_reads_opt_(NumRanges) const UINT *pHeapRangeStartOffsets,
  6445. _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts,
  6446. D3D12_TILE_MAPPING_FLAGS Flags) = 0;
  6447. virtual void STDMETHODCALLTYPE CopyTileMappings(
  6448. _In_ ID3D12Resource *pDstResource,
  6449. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pDstRegionStartCoordinate,
  6450. _In_ ID3D12Resource *pSrcResource,
  6451. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pSrcRegionStartCoordinate,
  6452. _In_ const D3D12_TILE_REGION_SIZE *pRegionSize,
  6453. D3D12_TILE_MAPPING_FLAGS Flags) = 0;
  6454. virtual void STDMETHODCALLTYPE ExecuteCommandLists(
  6455. _In_ UINT NumCommandLists,
  6456. _In_reads_(NumCommandLists) ID3D12CommandList *const *ppCommandLists) = 0;
  6457. virtual void STDMETHODCALLTYPE SetMarker(
  6458. UINT Metadata,
  6459. _In_reads_bytes_opt_(Size) const void *pData,
  6460. UINT Size) = 0;
  6461. virtual void STDMETHODCALLTYPE BeginEvent(
  6462. UINT Metadata,
  6463. _In_reads_bytes_opt_(Size) const void *pData,
  6464. UINT Size) = 0;
  6465. virtual void STDMETHODCALLTYPE EndEvent( void) = 0;
  6466. virtual HRESULT STDMETHODCALLTYPE Signal(
  6467. ID3D12Fence *pFence,
  6468. UINT64 Value) = 0;
  6469. virtual HRESULT STDMETHODCALLTYPE Wait(
  6470. ID3D12Fence *pFence,
  6471. UINT64 Value) = 0;
  6472. virtual HRESULT STDMETHODCALLTYPE GetTimestampFrequency(
  6473. _Out_ UINT64 *pFrequency) = 0;
  6474. virtual HRESULT STDMETHODCALLTYPE GetClockCalibration(
  6475. _Out_ UINT64 *pGPUTimestamp,
  6476. _Out_ UINT64 *pCpuTimestamp) = 0;
  6477. #if defined(_MSC_VER) || !defined(_WIN32)
  6478. virtual D3D12_COMMAND_QUEUE_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  6479. #else
  6480. virtual D3D12_COMMAND_QUEUE_DESC *STDMETHODCALLTYPE GetDesc(
  6481. D3D12_COMMAND_QUEUE_DESC * RetVal) = 0;
  6482. #endif
  6483. };
  6484. #else /* C style interface */
  6485. typedef struct ID3D12CommandQueueVtbl
  6486. {
  6487. BEGIN_INTERFACE
  6488. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  6489. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6490. ID3D12CommandQueue * This,
  6491. REFIID riid,
  6492. _COM_Outptr_ void **ppvObject);
  6493. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  6494. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6495. ID3D12CommandQueue * This);
  6496. DECLSPEC_XFGVIRT(IUnknown, Release)
  6497. ULONG ( STDMETHODCALLTYPE *Release )(
  6498. ID3D12CommandQueue * This);
  6499. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  6500. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  6501. ID3D12CommandQueue * This,
  6502. _In_ REFGUID guid,
  6503. _Inout_ UINT *pDataSize,
  6504. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  6505. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  6506. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  6507. ID3D12CommandQueue * This,
  6508. _In_ REFGUID guid,
  6509. _In_ UINT DataSize,
  6510. _In_reads_bytes_opt_( DataSize ) const void *pData);
  6511. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  6512. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  6513. ID3D12CommandQueue * This,
  6514. _In_ REFGUID guid,
  6515. _In_opt_ const IUnknown *pData);
  6516. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  6517. HRESULT ( STDMETHODCALLTYPE *SetName )(
  6518. ID3D12CommandQueue * This,
  6519. _In_z_ LPCWSTR Name);
  6520. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  6521. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  6522. ID3D12CommandQueue * This,
  6523. REFIID riid,
  6524. _COM_Outptr_opt_ void **ppvDevice);
  6525. DECLSPEC_XFGVIRT(ID3D12CommandQueue, UpdateTileMappings)
  6526. void ( STDMETHODCALLTYPE *UpdateTileMappings )(
  6527. ID3D12CommandQueue * This,
  6528. _In_ ID3D12Resource *pResource,
  6529. UINT NumResourceRegions,
  6530. _In_reads_opt_(NumResourceRegions) const D3D12_TILED_RESOURCE_COORDINATE *pResourceRegionStartCoordinates,
  6531. _In_reads_opt_(NumResourceRegions) const D3D12_TILE_REGION_SIZE *pResourceRegionSizes,
  6532. _In_opt_ ID3D12Heap *pHeap,
  6533. UINT NumRanges,
  6534. _In_reads_opt_(NumRanges) const D3D12_TILE_RANGE_FLAGS *pRangeFlags,
  6535. _In_reads_opt_(NumRanges) const UINT *pHeapRangeStartOffsets,
  6536. _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts,
  6537. D3D12_TILE_MAPPING_FLAGS Flags);
  6538. DECLSPEC_XFGVIRT(ID3D12CommandQueue, CopyTileMappings)
  6539. void ( STDMETHODCALLTYPE *CopyTileMappings )(
  6540. ID3D12CommandQueue * This,
  6541. _In_ ID3D12Resource *pDstResource,
  6542. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pDstRegionStartCoordinate,
  6543. _In_ ID3D12Resource *pSrcResource,
  6544. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pSrcRegionStartCoordinate,
  6545. _In_ const D3D12_TILE_REGION_SIZE *pRegionSize,
  6546. D3D12_TILE_MAPPING_FLAGS Flags);
  6547. DECLSPEC_XFGVIRT(ID3D12CommandQueue, ExecuteCommandLists)
  6548. void ( STDMETHODCALLTYPE *ExecuteCommandLists )(
  6549. ID3D12CommandQueue * This,
  6550. _In_ UINT NumCommandLists,
  6551. _In_reads_(NumCommandLists) ID3D12CommandList *const *ppCommandLists);
  6552. DECLSPEC_XFGVIRT(ID3D12CommandQueue, SetMarker)
  6553. void ( STDMETHODCALLTYPE *SetMarker )(
  6554. ID3D12CommandQueue * This,
  6555. UINT Metadata,
  6556. _In_reads_bytes_opt_(Size) const void *pData,
  6557. UINT Size);
  6558. DECLSPEC_XFGVIRT(ID3D12CommandQueue, BeginEvent)
  6559. void ( STDMETHODCALLTYPE *BeginEvent )(
  6560. ID3D12CommandQueue * This,
  6561. UINT Metadata,
  6562. _In_reads_bytes_opt_(Size) const void *pData,
  6563. UINT Size);
  6564. DECLSPEC_XFGVIRT(ID3D12CommandQueue, EndEvent)
  6565. void ( STDMETHODCALLTYPE *EndEvent )(
  6566. ID3D12CommandQueue * This);
  6567. DECLSPEC_XFGVIRT(ID3D12CommandQueue, Signal)
  6568. HRESULT ( STDMETHODCALLTYPE *Signal )(
  6569. ID3D12CommandQueue * This,
  6570. ID3D12Fence *pFence,
  6571. UINT64 Value);
  6572. DECLSPEC_XFGVIRT(ID3D12CommandQueue, Wait)
  6573. HRESULT ( STDMETHODCALLTYPE *Wait )(
  6574. ID3D12CommandQueue * This,
  6575. ID3D12Fence *pFence,
  6576. UINT64 Value);
  6577. DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetTimestampFrequency)
  6578. HRESULT ( STDMETHODCALLTYPE *GetTimestampFrequency )(
  6579. ID3D12CommandQueue * This,
  6580. _Out_ UINT64 *pFrequency);
  6581. DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetClockCalibration)
  6582. HRESULT ( STDMETHODCALLTYPE *GetClockCalibration )(
  6583. ID3D12CommandQueue * This,
  6584. _Out_ UINT64 *pGPUTimestamp,
  6585. _Out_ UINT64 *pCpuTimestamp);
  6586. DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetDesc)
  6587. #if !defined(_WIN32)
  6588. D3D12_COMMAND_QUEUE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  6589. ID3D12CommandQueue * This);
  6590. #else
  6591. D3D12_COMMAND_QUEUE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  6592. ID3D12CommandQueue * This,
  6593. D3D12_COMMAND_QUEUE_DESC * RetVal);
  6594. #endif
  6595. END_INTERFACE
  6596. } ID3D12CommandQueueVtbl;
  6597. interface ID3D12CommandQueue
  6598. {
  6599. CONST_VTBL struct ID3D12CommandQueueVtbl *lpVtbl;
  6600. };
  6601. #ifdef COBJMACROS
  6602. #define ID3D12CommandQueue_QueryInterface(This,riid,ppvObject) \
  6603. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  6604. #define ID3D12CommandQueue_AddRef(This) \
  6605. ( (This)->lpVtbl -> AddRef(This) )
  6606. #define ID3D12CommandQueue_Release(This) \
  6607. ( (This)->lpVtbl -> Release(This) )
  6608. #define ID3D12CommandQueue_GetPrivateData(This,guid,pDataSize,pData) \
  6609. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  6610. #define ID3D12CommandQueue_SetPrivateData(This,guid,DataSize,pData) \
  6611. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  6612. #define ID3D12CommandQueue_SetPrivateDataInterface(This,guid,pData) \
  6613. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  6614. #define ID3D12CommandQueue_SetName(This,Name) \
  6615. ( (This)->lpVtbl -> SetName(This,Name) )
  6616. #define ID3D12CommandQueue_GetDevice(This,riid,ppvDevice) \
  6617. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  6618. #define ID3D12CommandQueue_UpdateTileMappings(This,pResource,NumResourceRegions,pResourceRegionStartCoordinates,pResourceRegionSizes,pHeap,NumRanges,pRangeFlags,pHeapRangeStartOffsets,pRangeTileCounts,Flags) \
  6619. ( (This)->lpVtbl -> UpdateTileMappings(This,pResource,NumResourceRegions,pResourceRegionStartCoordinates,pResourceRegionSizes,pHeap,NumRanges,pRangeFlags,pHeapRangeStartOffsets,pRangeTileCounts,Flags) )
  6620. #define ID3D12CommandQueue_CopyTileMappings(This,pDstResource,pDstRegionStartCoordinate,pSrcResource,pSrcRegionStartCoordinate,pRegionSize,Flags) \
  6621. ( (This)->lpVtbl -> CopyTileMappings(This,pDstResource,pDstRegionStartCoordinate,pSrcResource,pSrcRegionStartCoordinate,pRegionSize,Flags) )
  6622. #define ID3D12CommandQueue_ExecuteCommandLists(This,NumCommandLists,ppCommandLists) \
  6623. ( (This)->lpVtbl -> ExecuteCommandLists(This,NumCommandLists,ppCommandLists) )
  6624. #define ID3D12CommandQueue_SetMarker(This,Metadata,pData,Size) \
  6625. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  6626. #define ID3D12CommandQueue_BeginEvent(This,Metadata,pData,Size) \
  6627. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  6628. #define ID3D12CommandQueue_EndEvent(This) \
  6629. ( (This)->lpVtbl -> EndEvent(This) )
  6630. #define ID3D12CommandQueue_Signal(This,pFence,Value) \
  6631. ( (This)->lpVtbl -> Signal(This,pFence,Value) )
  6632. #define ID3D12CommandQueue_Wait(This,pFence,Value) \
  6633. ( (This)->lpVtbl -> Wait(This,pFence,Value) )
  6634. #define ID3D12CommandQueue_GetTimestampFrequency(This,pFrequency) \
  6635. ( (This)->lpVtbl -> GetTimestampFrequency(This,pFrequency) )
  6636. #define ID3D12CommandQueue_GetClockCalibration(This,pGPUTimestamp,pCpuTimestamp) \
  6637. ( (This)->lpVtbl -> GetClockCalibration(This,pGPUTimestamp,pCpuTimestamp) )
  6638. #if !defined(_WIN32)
  6639. #define ID3D12CommandQueue_GetDesc(This) \
  6640. ( (This)->lpVtbl -> GetDesc(This) )
  6641. #else
  6642. #define ID3D12CommandQueue_GetDesc(This,RetVal) \
  6643. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  6644. #endif
  6645. #endif /* COBJMACROS */
  6646. #endif /* C style interface */
  6647. #endif /* __ID3D12CommandQueue_INTERFACE_DEFINED__ */
  6648. /* interface __MIDL_itf_d3d12_0000_0020 */
  6649. /* [local] */
  6650. #ifdef __midl
  6651. #ifndef LUID_DEFINED
  6652. #define LUID_DEFINED 1
  6653. typedef struct __LUID
  6654. {
  6655. DWORD LowPart;
  6656. LONG HighPart;
  6657. } LUID;
  6658. typedef struct __LUID *PLUID;
  6659. #endif
  6660. #endif
  6661. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0020_v0_0_c_ifspec;
  6662. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0020_v0_0_s_ifspec;
  6663. #ifndef __ID3D12Device_INTERFACE_DEFINED__
  6664. #define __ID3D12Device_INTERFACE_DEFINED__
  6665. /* interface ID3D12Device */
  6666. /* [unique][local][object][uuid] */
  6667. EXTERN_C const IID IID_ID3D12Device;
  6668. #if defined(__cplusplus) && !defined(CINTERFACE)
  6669. MIDL_INTERFACE("189819f1-1db6-4b57-be54-1821339b85f7")
  6670. ID3D12Device : public ID3D12Object
  6671. {
  6672. public:
  6673. virtual UINT STDMETHODCALLTYPE GetNodeCount( void) = 0;
  6674. virtual HRESULT STDMETHODCALLTYPE CreateCommandQueue(
  6675. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  6676. REFIID riid,
  6677. _COM_Outptr_ void **ppCommandQueue) = 0;
  6678. virtual HRESULT STDMETHODCALLTYPE CreateCommandAllocator(
  6679. _In_ D3D12_COMMAND_LIST_TYPE type,
  6680. REFIID riid,
  6681. _COM_Outptr_ void **ppCommandAllocator) = 0;
  6682. virtual HRESULT STDMETHODCALLTYPE CreateGraphicsPipelineState(
  6683. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  6684. REFIID riid,
  6685. _COM_Outptr_ void **ppPipelineState) = 0;
  6686. virtual HRESULT STDMETHODCALLTYPE CreateComputePipelineState(
  6687. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  6688. REFIID riid,
  6689. _COM_Outptr_ void **ppPipelineState) = 0;
  6690. virtual HRESULT STDMETHODCALLTYPE CreateCommandList(
  6691. _In_ UINT nodeMask,
  6692. _In_ D3D12_COMMAND_LIST_TYPE type,
  6693. _In_ ID3D12CommandAllocator *pCommandAllocator,
  6694. _In_opt_ ID3D12PipelineState *pInitialState,
  6695. REFIID riid,
  6696. _COM_Outptr_ void **ppCommandList) = 0;
  6697. virtual HRESULT STDMETHODCALLTYPE CheckFeatureSupport(
  6698. D3D12_FEATURE Feature,
  6699. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  6700. UINT FeatureSupportDataSize) = 0;
  6701. virtual HRESULT STDMETHODCALLTYPE CreateDescriptorHeap(
  6702. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  6703. REFIID riid,
  6704. _COM_Outptr_ void **ppvHeap) = 0;
  6705. virtual UINT STDMETHODCALLTYPE GetDescriptorHandleIncrementSize(
  6706. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) = 0;
  6707. virtual HRESULT STDMETHODCALLTYPE CreateRootSignature(
  6708. _In_ UINT nodeMask,
  6709. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  6710. _In_ SIZE_T blobLengthInBytes,
  6711. REFIID riid,
  6712. _COM_Outptr_ void **ppvRootSignature) = 0;
  6713. virtual void STDMETHODCALLTYPE CreateConstantBufferView(
  6714. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  6715. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6716. virtual void STDMETHODCALLTYPE CreateShaderResourceView(
  6717. _In_opt_ ID3D12Resource *pResource,
  6718. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  6719. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6720. virtual void STDMETHODCALLTYPE CreateUnorderedAccessView(
  6721. _In_opt_ ID3D12Resource *pResource,
  6722. _In_opt_ ID3D12Resource *pCounterResource,
  6723. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  6724. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6725. virtual void STDMETHODCALLTYPE CreateRenderTargetView(
  6726. _In_opt_ ID3D12Resource *pResource,
  6727. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  6728. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6729. virtual void STDMETHODCALLTYPE CreateDepthStencilView(
  6730. _In_opt_ ID3D12Resource *pResource,
  6731. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  6732. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6733. virtual void STDMETHODCALLTYPE CreateSampler(
  6734. _In_ const D3D12_SAMPLER_DESC *pDesc,
  6735. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6736. virtual void STDMETHODCALLTYPE CopyDescriptors(
  6737. _In_ UINT NumDestDescriptorRanges,
  6738. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  6739. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  6740. _In_ UINT NumSrcDescriptorRanges,
  6741. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  6742. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  6743. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType) = 0;
  6744. virtual void STDMETHODCALLTYPE CopyDescriptorsSimple(
  6745. _In_ UINT NumDescriptors,
  6746. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  6747. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  6748. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType) = 0;
  6749. #if defined(_MSC_VER) || !defined(_WIN32)
  6750. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo(
  6751. _In_ UINT visibleMask,
  6752. _In_ UINT numResourceDescs,
  6753. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs) = 0;
  6754. #else
  6755. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo(
  6756. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  6757. _In_ UINT visibleMask,
  6758. _In_ UINT numResourceDescs,
  6759. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs) = 0;
  6760. #endif
  6761. #if defined(_MSC_VER) || !defined(_WIN32)
  6762. virtual D3D12_HEAP_PROPERTIES STDMETHODCALLTYPE GetCustomHeapProperties(
  6763. _In_ UINT nodeMask,
  6764. D3D12_HEAP_TYPE heapType) = 0;
  6765. #else
  6766. virtual D3D12_HEAP_PROPERTIES *STDMETHODCALLTYPE GetCustomHeapProperties(
  6767. D3D12_HEAP_PROPERTIES * RetVal,
  6768. _In_ UINT nodeMask,
  6769. D3D12_HEAP_TYPE heapType) = 0;
  6770. #endif
  6771. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource(
  6772. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  6773. D3D12_HEAP_FLAGS HeapFlags,
  6774. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6775. D3D12_RESOURCE_STATES InitialResourceState,
  6776. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6777. REFIID riidResource,
  6778. _COM_Outptr_opt_ void **ppvResource) = 0;
  6779. virtual HRESULT STDMETHODCALLTYPE CreateHeap(
  6780. _In_ const D3D12_HEAP_DESC *pDesc,
  6781. REFIID riid,
  6782. _COM_Outptr_opt_ void **ppvHeap) = 0;
  6783. virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource(
  6784. _In_ ID3D12Heap *pHeap,
  6785. UINT64 HeapOffset,
  6786. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6787. D3D12_RESOURCE_STATES InitialState,
  6788. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6789. REFIID riid,
  6790. _COM_Outptr_opt_ void **ppvResource) = 0;
  6791. virtual HRESULT STDMETHODCALLTYPE CreateReservedResource(
  6792. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6793. D3D12_RESOURCE_STATES InitialState,
  6794. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6795. REFIID riid,
  6796. _COM_Outptr_opt_ void **ppvResource) = 0;
  6797. virtual HRESULT STDMETHODCALLTYPE CreateSharedHandle(
  6798. _In_ ID3D12DeviceChild *pObject,
  6799. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  6800. DWORD Access,
  6801. _In_opt_ LPCWSTR Name,
  6802. _Out_ HANDLE *pHandle) = 0;
  6803. virtual HRESULT STDMETHODCALLTYPE OpenSharedHandle(
  6804. _In_ HANDLE NTHandle,
  6805. REFIID riid,
  6806. _COM_Outptr_opt_ void **ppvObj) = 0;
  6807. virtual HRESULT STDMETHODCALLTYPE OpenSharedHandleByName(
  6808. _In_ LPCWSTR Name,
  6809. DWORD Access,
  6810. /* [annotation][out] */
  6811. _Out_ HANDLE *pNTHandle) = 0;
  6812. virtual HRESULT STDMETHODCALLTYPE MakeResident(
  6813. UINT NumObjects,
  6814. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects) = 0;
  6815. virtual HRESULT STDMETHODCALLTYPE Evict(
  6816. UINT NumObjects,
  6817. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects) = 0;
  6818. virtual HRESULT STDMETHODCALLTYPE CreateFence(
  6819. UINT64 InitialValue,
  6820. D3D12_FENCE_FLAGS Flags,
  6821. REFIID riid,
  6822. _COM_Outptr_ void **ppFence) = 0;
  6823. virtual HRESULT STDMETHODCALLTYPE GetDeviceRemovedReason( void) = 0;
  6824. virtual void STDMETHODCALLTYPE GetCopyableFootprints(
  6825. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  6826. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  6827. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  6828. UINT64 BaseOffset,
  6829. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  6830. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  6831. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  6832. _Out_opt_ UINT64 *pTotalBytes) = 0;
  6833. virtual HRESULT STDMETHODCALLTYPE CreateQueryHeap(
  6834. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  6835. REFIID riid,
  6836. _COM_Outptr_opt_ void **ppvHeap) = 0;
  6837. virtual HRESULT STDMETHODCALLTYPE SetStablePowerState(
  6838. BOOL Enable) = 0;
  6839. virtual HRESULT STDMETHODCALLTYPE CreateCommandSignature(
  6840. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  6841. _In_opt_ ID3D12RootSignature *pRootSignature,
  6842. REFIID riid,
  6843. _COM_Outptr_opt_ void **ppvCommandSignature) = 0;
  6844. virtual void STDMETHODCALLTYPE GetResourceTiling(
  6845. _In_ ID3D12Resource *pTiledResource,
  6846. _Out_opt_ UINT *pNumTilesForEntireResource,
  6847. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  6848. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  6849. _Inout_opt_ UINT *pNumSubresourceTilings,
  6850. _In_ UINT FirstSubresourceTilingToGet,
  6851. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips) = 0;
  6852. #if defined(_MSC_VER) || !defined(_WIN32)
  6853. virtual LUID STDMETHODCALLTYPE GetAdapterLuid( void) = 0;
  6854. #else
  6855. virtual LUID *STDMETHODCALLTYPE GetAdapterLuid(
  6856. LUID * RetVal) = 0;
  6857. #endif
  6858. };
  6859. #else /* C style interface */
  6860. typedef struct ID3D12DeviceVtbl
  6861. {
  6862. BEGIN_INTERFACE
  6863. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  6864. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6865. ID3D12Device * This,
  6866. REFIID riid,
  6867. _COM_Outptr_ void **ppvObject);
  6868. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  6869. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6870. ID3D12Device * This);
  6871. DECLSPEC_XFGVIRT(IUnknown, Release)
  6872. ULONG ( STDMETHODCALLTYPE *Release )(
  6873. ID3D12Device * This);
  6874. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  6875. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  6876. ID3D12Device * This,
  6877. _In_ REFGUID guid,
  6878. _Inout_ UINT *pDataSize,
  6879. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  6880. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  6881. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  6882. ID3D12Device * This,
  6883. _In_ REFGUID guid,
  6884. _In_ UINT DataSize,
  6885. _In_reads_bytes_opt_( DataSize ) const void *pData);
  6886. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  6887. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  6888. ID3D12Device * This,
  6889. _In_ REFGUID guid,
  6890. _In_opt_ const IUnknown *pData);
  6891. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  6892. HRESULT ( STDMETHODCALLTYPE *SetName )(
  6893. ID3D12Device * This,
  6894. _In_z_ LPCWSTR Name);
  6895. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  6896. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  6897. ID3D12Device * This);
  6898. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  6899. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  6900. ID3D12Device * This,
  6901. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  6902. REFIID riid,
  6903. _COM_Outptr_ void **ppCommandQueue);
  6904. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  6905. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  6906. ID3D12Device * This,
  6907. _In_ D3D12_COMMAND_LIST_TYPE type,
  6908. REFIID riid,
  6909. _COM_Outptr_ void **ppCommandAllocator);
  6910. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  6911. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  6912. ID3D12Device * This,
  6913. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  6914. REFIID riid,
  6915. _COM_Outptr_ void **ppPipelineState);
  6916. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  6917. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  6918. ID3D12Device * This,
  6919. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  6920. REFIID riid,
  6921. _COM_Outptr_ void **ppPipelineState);
  6922. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  6923. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  6924. ID3D12Device * This,
  6925. _In_ UINT nodeMask,
  6926. _In_ D3D12_COMMAND_LIST_TYPE type,
  6927. _In_ ID3D12CommandAllocator *pCommandAllocator,
  6928. _In_opt_ ID3D12PipelineState *pInitialState,
  6929. REFIID riid,
  6930. _COM_Outptr_ void **ppCommandList);
  6931. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  6932. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  6933. ID3D12Device * This,
  6934. D3D12_FEATURE Feature,
  6935. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  6936. UINT FeatureSupportDataSize);
  6937. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  6938. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  6939. ID3D12Device * This,
  6940. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  6941. REFIID riid,
  6942. _COM_Outptr_ void **ppvHeap);
  6943. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  6944. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  6945. ID3D12Device * This,
  6946. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  6947. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  6948. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  6949. ID3D12Device * This,
  6950. _In_ UINT nodeMask,
  6951. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  6952. _In_ SIZE_T blobLengthInBytes,
  6953. REFIID riid,
  6954. _COM_Outptr_ void **ppvRootSignature);
  6955. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  6956. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  6957. ID3D12Device * This,
  6958. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  6959. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6960. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  6961. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  6962. ID3D12Device * This,
  6963. _In_opt_ ID3D12Resource *pResource,
  6964. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  6965. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6966. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  6967. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  6968. ID3D12Device * This,
  6969. _In_opt_ ID3D12Resource *pResource,
  6970. _In_opt_ ID3D12Resource *pCounterResource,
  6971. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  6972. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6973. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  6974. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  6975. ID3D12Device * This,
  6976. _In_opt_ ID3D12Resource *pResource,
  6977. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  6978. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6979. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  6980. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  6981. ID3D12Device * This,
  6982. _In_opt_ ID3D12Resource *pResource,
  6983. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  6984. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6985. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  6986. void ( STDMETHODCALLTYPE *CreateSampler )(
  6987. ID3D12Device * This,
  6988. _In_ const D3D12_SAMPLER_DESC *pDesc,
  6989. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6990. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  6991. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  6992. ID3D12Device * This,
  6993. _In_ UINT NumDestDescriptorRanges,
  6994. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  6995. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  6996. _In_ UINT NumSrcDescriptorRanges,
  6997. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  6998. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  6999. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  7000. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  7001. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  7002. ID3D12Device * This,
  7003. _In_ UINT NumDescriptors,
  7004. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  7005. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  7006. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  7007. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  7008. #if !defined(_WIN32)
  7009. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  7010. ID3D12Device * This,
  7011. _In_ UINT visibleMask,
  7012. _In_ UINT numResourceDescs,
  7013. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  7014. #else
  7015. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  7016. ID3D12Device * This,
  7017. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  7018. _In_ UINT visibleMask,
  7019. _In_ UINT numResourceDescs,
  7020. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  7021. #endif
  7022. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  7023. #if !defined(_WIN32)
  7024. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  7025. ID3D12Device * This,
  7026. _In_ UINT nodeMask,
  7027. D3D12_HEAP_TYPE heapType);
  7028. #else
  7029. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  7030. ID3D12Device * This,
  7031. D3D12_HEAP_PROPERTIES * RetVal,
  7032. _In_ UINT nodeMask,
  7033. D3D12_HEAP_TYPE heapType);
  7034. #endif
  7035. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  7036. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  7037. ID3D12Device * This,
  7038. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  7039. D3D12_HEAP_FLAGS HeapFlags,
  7040. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7041. D3D12_RESOURCE_STATES InitialResourceState,
  7042. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7043. REFIID riidResource,
  7044. _COM_Outptr_opt_ void **ppvResource);
  7045. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  7046. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  7047. ID3D12Device * This,
  7048. _In_ const D3D12_HEAP_DESC *pDesc,
  7049. REFIID riid,
  7050. _COM_Outptr_opt_ void **ppvHeap);
  7051. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  7052. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  7053. ID3D12Device * This,
  7054. _In_ ID3D12Heap *pHeap,
  7055. UINT64 HeapOffset,
  7056. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7057. D3D12_RESOURCE_STATES InitialState,
  7058. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7059. REFIID riid,
  7060. _COM_Outptr_opt_ void **ppvResource);
  7061. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  7062. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  7063. ID3D12Device * This,
  7064. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7065. D3D12_RESOURCE_STATES InitialState,
  7066. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7067. REFIID riid,
  7068. _COM_Outptr_opt_ void **ppvResource);
  7069. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  7070. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  7071. ID3D12Device * This,
  7072. _In_ ID3D12DeviceChild *pObject,
  7073. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  7074. DWORD Access,
  7075. _In_opt_ LPCWSTR Name,
  7076. _Out_ HANDLE *pHandle);
  7077. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  7078. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  7079. ID3D12Device * This,
  7080. _In_ HANDLE NTHandle,
  7081. REFIID riid,
  7082. _COM_Outptr_opt_ void **ppvObj);
  7083. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  7084. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  7085. ID3D12Device * This,
  7086. _In_ LPCWSTR Name,
  7087. DWORD Access,
  7088. /* [annotation][out] */
  7089. _Out_ HANDLE *pNTHandle);
  7090. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  7091. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  7092. ID3D12Device * This,
  7093. UINT NumObjects,
  7094. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7095. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  7096. HRESULT ( STDMETHODCALLTYPE *Evict )(
  7097. ID3D12Device * This,
  7098. UINT NumObjects,
  7099. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7100. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  7101. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  7102. ID3D12Device * This,
  7103. UINT64 InitialValue,
  7104. D3D12_FENCE_FLAGS Flags,
  7105. REFIID riid,
  7106. _COM_Outptr_ void **ppFence);
  7107. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  7108. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  7109. ID3D12Device * This);
  7110. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  7111. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  7112. ID3D12Device * This,
  7113. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  7114. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  7115. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  7116. UINT64 BaseOffset,
  7117. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  7118. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  7119. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  7120. _Out_opt_ UINT64 *pTotalBytes);
  7121. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  7122. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  7123. ID3D12Device * This,
  7124. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  7125. REFIID riid,
  7126. _COM_Outptr_opt_ void **ppvHeap);
  7127. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  7128. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  7129. ID3D12Device * This,
  7130. BOOL Enable);
  7131. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  7132. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  7133. ID3D12Device * This,
  7134. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  7135. _In_opt_ ID3D12RootSignature *pRootSignature,
  7136. REFIID riid,
  7137. _COM_Outptr_opt_ void **ppvCommandSignature);
  7138. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  7139. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  7140. ID3D12Device * This,
  7141. _In_ ID3D12Resource *pTiledResource,
  7142. _Out_opt_ UINT *pNumTilesForEntireResource,
  7143. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  7144. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  7145. _Inout_opt_ UINT *pNumSubresourceTilings,
  7146. _In_ UINT FirstSubresourceTilingToGet,
  7147. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  7148. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  7149. #if !defined(_WIN32)
  7150. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  7151. ID3D12Device * This);
  7152. #else
  7153. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  7154. ID3D12Device * This,
  7155. LUID * RetVal);
  7156. #endif
  7157. END_INTERFACE
  7158. } ID3D12DeviceVtbl;
  7159. interface ID3D12Device
  7160. {
  7161. CONST_VTBL struct ID3D12DeviceVtbl *lpVtbl;
  7162. };
  7163. #ifdef COBJMACROS
  7164. #define ID3D12Device_QueryInterface(This,riid,ppvObject) \
  7165. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7166. #define ID3D12Device_AddRef(This) \
  7167. ( (This)->lpVtbl -> AddRef(This) )
  7168. #define ID3D12Device_Release(This) \
  7169. ( (This)->lpVtbl -> Release(This) )
  7170. #define ID3D12Device_GetPrivateData(This,guid,pDataSize,pData) \
  7171. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7172. #define ID3D12Device_SetPrivateData(This,guid,DataSize,pData) \
  7173. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7174. #define ID3D12Device_SetPrivateDataInterface(This,guid,pData) \
  7175. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7176. #define ID3D12Device_SetName(This,Name) \
  7177. ( (This)->lpVtbl -> SetName(This,Name) )
  7178. #define ID3D12Device_GetNodeCount(This) \
  7179. ( (This)->lpVtbl -> GetNodeCount(This) )
  7180. #define ID3D12Device_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  7181. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  7182. #define ID3D12Device_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  7183. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  7184. #define ID3D12Device_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  7185. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  7186. #define ID3D12Device_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  7187. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  7188. #define ID3D12Device_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  7189. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  7190. #define ID3D12Device_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  7191. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  7192. #define ID3D12Device_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  7193. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  7194. #define ID3D12Device_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  7195. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  7196. #define ID3D12Device_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  7197. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  7198. #define ID3D12Device_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  7199. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  7200. #define ID3D12Device_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  7201. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  7202. #define ID3D12Device_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  7203. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  7204. #define ID3D12Device_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  7205. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  7206. #define ID3D12Device_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  7207. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  7208. #define ID3D12Device_CreateSampler(This,pDesc,DestDescriptor) \
  7209. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  7210. #define ID3D12Device_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  7211. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  7212. #define ID3D12Device_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  7213. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  7214. #if !defined(_WIN32)
  7215. #define ID3D12Device_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  7216. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  7217. #else
  7218. #define ID3D12Device_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  7219. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  7220. #endif
  7221. #if !defined(_WIN32)
  7222. #define ID3D12Device_GetCustomHeapProperties(This,nodeMask,heapType) \
  7223. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  7224. #else
  7225. #define ID3D12Device_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  7226. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  7227. #endif
  7228. #define ID3D12Device_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  7229. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  7230. #define ID3D12Device_CreateHeap(This,pDesc,riid,ppvHeap) \
  7231. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  7232. #define ID3D12Device_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  7233. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  7234. #define ID3D12Device_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  7235. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  7236. #define ID3D12Device_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  7237. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  7238. #define ID3D12Device_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  7239. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  7240. #define ID3D12Device_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  7241. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  7242. #define ID3D12Device_MakeResident(This,NumObjects,ppObjects) \
  7243. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  7244. #define ID3D12Device_Evict(This,NumObjects,ppObjects) \
  7245. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  7246. #define ID3D12Device_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  7247. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  7248. #define ID3D12Device_GetDeviceRemovedReason(This) \
  7249. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  7250. #define ID3D12Device_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  7251. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  7252. #define ID3D12Device_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  7253. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  7254. #define ID3D12Device_SetStablePowerState(This,Enable) \
  7255. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  7256. #define ID3D12Device_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  7257. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  7258. #define ID3D12Device_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  7259. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  7260. #if !defined(_WIN32)
  7261. #define ID3D12Device_GetAdapterLuid(This) \
  7262. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  7263. #else
  7264. #define ID3D12Device_GetAdapterLuid(This,RetVal) \
  7265. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  7266. #endif
  7267. #endif /* COBJMACROS */
  7268. #endif /* C style interface */
  7269. #endif /* __ID3D12Device_INTERFACE_DEFINED__ */
  7270. #ifndef __ID3D12PipelineLibrary_INTERFACE_DEFINED__
  7271. #define __ID3D12PipelineLibrary_INTERFACE_DEFINED__
  7272. /* interface ID3D12PipelineLibrary */
  7273. /* [unique][local][object][uuid] */
  7274. EXTERN_C const IID IID_ID3D12PipelineLibrary;
  7275. #if defined(__cplusplus) && !defined(CINTERFACE)
  7276. MIDL_INTERFACE("c64226a8-9201-46af-b4cc-53fb9ff7414f")
  7277. ID3D12PipelineLibrary : public ID3D12DeviceChild
  7278. {
  7279. public:
  7280. virtual HRESULT STDMETHODCALLTYPE StorePipeline(
  7281. _In_opt_ LPCWSTR pName,
  7282. _In_ ID3D12PipelineState *pPipeline) = 0;
  7283. virtual HRESULT STDMETHODCALLTYPE LoadGraphicsPipeline(
  7284. _In_ LPCWSTR pName,
  7285. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7286. REFIID riid,
  7287. _COM_Outptr_ void **ppPipelineState) = 0;
  7288. virtual HRESULT STDMETHODCALLTYPE LoadComputePipeline(
  7289. _In_ LPCWSTR pName,
  7290. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7291. REFIID riid,
  7292. _COM_Outptr_ void **ppPipelineState) = 0;
  7293. virtual SIZE_T STDMETHODCALLTYPE GetSerializedSize( void) = 0;
  7294. virtual HRESULT STDMETHODCALLTYPE Serialize(
  7295. _Out_writes_(DataSizeInBytes) void *pData,
  7296. SIZE_T DataSizeInBytes) = 0;
  7297. };
  7298. #else /* C style interface */
  7299. typedef struct ID3D12PipelineLibraryVtbl
  7300. {
  7301. BEGIN_INTERFACE
  7302. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  7303. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7304. ID3D12PipelineLibrary * This,
  7305. REFIID riid,
  7306. _COM_Outptr_ void **ppvObject);
  7307. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  7308. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7309. ID3D12PipelineLibrary * This);
  7310. DECLSPEC_XFGVIRT(IUnknown, Release)
  7311. ULONG ( STDMETHODCALLTYPE *Release )(
  7312. ID3D12PipelineLibrary * This);
  7313. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  7314. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  7315. ID3D12PipelineLibrary * This,
  7316. _In_ REFGUID guid,
  7317. _Inout_ UINT *pDataSize,
  7318. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  7319. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  7320. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  7321. ID3D12PipelineLibrary * This,
  7322. _In_ REFGUID guid,
  7323. _In_ UINT DataSize,
  7324. _In_reads_bytes_opt_( DataSize ) const void *pData);
  7325. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  7326. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  7327. ID3D12PipelineLibrary * This,
  7328. _In_ REFGUID guid,
  7329. _In_opt_ const IUnknown *pData);
  7330. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  7331. HRESULT ( STDMETHODCALLTYPE *SetName )(
  7332. ID3D12PipelineLibrary * This,
  7333. _In_z_ LPCWSTR Name);
  7334. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  7335. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  7336. ID3D12PipelineLibrary * This,
  7337. REFIID riid,
  7338. _COM_Outptr_opt_ void **ppvDevice);
  7339. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, StorePipeline)
  7340. HRESULT ( STDMETHODCALLTYPE *StorePipeline )(
  7341. ID3D12PipelineLibrary * This,
  7342. _In_opt_ LPCWSTR pName,
  7343. _In_ ID3D12PipelineState *pPipeline);
  7344. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadGraphicsPipeline)
  7345. HRESULT ( STDMETHODCALLTYPE *LoadGraphicsPipeline )(
  7346. ID3D12PipelineLibrary * This,
  7347. _In_ LPCWSTR pName,
  7348. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7349. REFIID riid,
  7350. _COM_Outptr_ void **ppPipelineState);
  7351. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadComputePipeline)
  7352. HRESULT ( STDMETHODCALLTYPE *LoadComputePipeline )(
  7353. ID3D12PipelineLibrary * This,
  7354. _In_ LPCWSTR pName,
  7355. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7356. REFIID riid,
  7357. _COM_Outptr_ void **ppPipelineState);
  7358. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, GetSerializedSize)
  7359. SIZE_T ( STDMETHODCALLTYPE *GetSerializedSize )(
  7360. ID3D12PipelineLibrary * This);
  7361. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, Serialize)
  7362. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  7363. ID3D12PipelineLibrary * This,
  7364. _Out_writes_(DataSizeInBytes) void *pData,
  7365. SIZE_T DataSizeInBytes);
  7366. END_INTERFACE
  7367. } ID3D12PipelineLibraryVtbl;
  7368. interface ID3D12PipelineLibrary
  7369. {
  7370. CONST_VTBL struct ID3D12PipelineLibraryVtbl *lpVtbl;
  7371. };
  7372. #ifdef COBJMACROS
  7373. #define ID3D12PipelineLibrary_QueryInterface(This,riid,ppvObject) \
  7374. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7375. #define ID3D12PipelineLibrary_AddRef(This) \
  7376. ( (This)->lpVtbl -> AddRef(This) )
  7377. #define ID3D12PipelineLibrary_Release(This) \
  7378. ( (This)->lpVtbl -> Release(This) )
  7379. #define ID3D12PipelineLibrary_GetPrivateData(This,guid,pDataSize,pData) \
  7380. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7381. #define ID3D12PipelineLibrary_SetPrivateData(This,guid,DataSize,pData) \
  7382. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7383. #define ID3D12PipelineLibrary_SetPrivateDataInterface(This,guid,pData) \
  7384. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7385. #define ID3D12PipelineLibrary_SetName(This,Name) \
  7386. ( (This)->lpVtbl -> SetName(This,Name) )
  7387. #define ID3D12PipelineLibrary_GetDevice(This,riid,ppvDevice) \
  7388. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  7389. #define ID3D12PipelineLibrary_StorePipeline(This,pName,pPipeline) \
  7390. ( (This)->lpVtbl -> StorePipeline(This,pName,pPipeline) )
  7391. #define ID3D12PipelineLibrary_LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) \
  7392. ( (This)->lpVtbl -> LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) )
  7393. #define ID3D12PipelineLibrary_LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) \
  7394. ( (This)->lpVtbl -> LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) )
  7395. #define ID3D12PipelineLibrary_GetSerializedSize(This) \
  7396. ( (This)->lpVtbl -> GetSerializedSize(This) )
  7397. #define ID3D12PipelineLibrary_Serialize(This,pData,DataSizeInBytes) \
  7398. ( (This)->lpVtbl -> Serialize(This,pData,DataSizeInBytes) )
  7399. #endif /* COBJMACROS */
  7400. #endif /* C style interface */
  7401. #endif /* __ID3D12PipelineLibrary_INTERFACE_DEFINED__ */
  7402. #ifndef __ID3D12PipelineLibrary1_INTERFACE_DEFINED__
  7403. #define __ID3D12PipelineLibrary1_INTERFACE_DEFINED__
  7404. /* interface ID3D12PipelineLibrary1 */
  7405. /* [unique][local][object][uuid] */
  7406. EXTERN_C const IID IID_ID3D12PipelineLibrary1;
  7407. #if defined(__cplusplus) && !defined(CINTERFACE)
  7408. MIDL_INTERFACE("80eabf42-2568-4e5e-bd82-c37f86961dc3")
  7409. ID3D12PipelineLibrary1 : public ID3D12PipelineLibrary
  7410. {
  7411. public:
  7412. virtual HRESULT STDMETHODCALLTYPE LoadPipeline(
  7413. _In_ LPCWSTR pName,
  7414. _In_ const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  7415. REFIID riid,
  7416. _COM_Outptr_ void **ppPipelineState) = 0;
  7417. };
  7418. #else /* C style interface */
  7419. typedef struct ID3D12PipelineLibrary1Vtbl
  7420. {
  7421. BEGIN_INTERFACE
  7422. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  7423. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7424. ID3D12PipelineLibrary1 * This,
  7425. REFIID riid,
  7426. _COM_Outptr_ void **ppvObject);
  7427. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  7428. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7429. ID3D12PipelineLibrary1 * This);
  7430. DECLSPEC_XFGVIRT(IUnknown, Release)
  7431. ULONG ( STDMETHODCALLTYPE *Release )(
  7432. ID3D12PipelineLibrary1 * This);
  7433. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  7434. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  7435. ID3D12PipelineLibrary1 * This,
  7436. _In_ REFGUID guid,
  7437. _Inout_ UINT *pDataSize,
  7438. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  7439. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  7440. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  7441. ID3D12PipelineLibrary1 * This,
  7442. _In_ REFGUID guid,
  7443. _In_ UINT DataSize,
  7444. _In_reads_bytes_opt_( DataSize ) const void *pData);
  7445. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  7446. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  7447. ID3D12PipelineLibrary1 * This,
  7448. _In_ REFGUID guid,
  7449. _In_opt_ const IUnknown *pData);
  7450. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  7451. HRESULT ( STDMETHODCALLTYPE *SetName )(
  7452. ID3D12PipelineLibrary1 * This,
  7453. _In_z_ LPCWSTR Name);
  7454. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  7455. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  7456. ID3D12PipelineLibrary1 * This,
  7457. REFIID riid,
  7458. _COM_Outptr_opt_ void **ppvDevice);
  7459. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, StorePipeline)
  7460. HRESULT ( STDMETHODCALLTYPE *StorePipeline )(
  7461. ID3D12PipelineLibrary1 * This,
  7462. _In_opt_ LPCWSTR pName,
  7463. _In_ ID3D12PipelineState *pPipeline);
  7464. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadGraphicsPipeline)
  7465. HRESULT ( STDMETHODCALLTYPE *LoadGraphicsPipeline )(
  7466. ID3D12PipelineLibrary1 * This,
  7467. _In_ LPCWSTR pName,
  7468. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7469. REFIID riid,
  7470. _COM_Outptr_ void **ppPipelineState);
  7471. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadComputePipeline)
  7472. HRESULT ( STDMETHODCALLTYPE *LoadComputePipeline )(
  7473. ID3D12PipelineLibrary1 * This,
  7474. _In_ LPCWSTR pName,
  7475. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7476. REFIID riid,
  7477. _COM_Outptr_ void **ppPipelineState);
  7478. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, GetSerializedSize)
  7479. SIZE_T ( STDMETHODCALLTYPE *GetSerializedSize )(
  7480. ID3D12PipelineLibrary1 * This);
  7481. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, Serialize)
  7482. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  7483. ID3D12PipelineLibrary1 * This,
  7484. _Out_writes_(DataSizeInBytes) void *pData,
  7485. SIZE_T DataSizeInBytes);
  7486. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary1, LoadPipeline)
  7487. HRESULT ( STDMETHODCALLTYPE *LoadPipeline )(
  7488. ID3D12PipelineLibrary1 * This,
  7489. _In_ LPCWSTR pName,
  7490. _In_ const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  7491. REFIID riid,
  7492. _COM_Outptr_ void **ppPipelineState);
  7493. END_INTERFACE
  7494. } ID3D12PipelineLibrary1Vtbl;
  7495. interface ID3D12PipelineLibrary1
  7496. {
  7497. CONST_VTBL struct ID3D12PipelineLibrary1Vtbl *lpVtbl;
  7498. };
  7499. #ifdef COBJMACROS
  7500. #define ID3D12PipelineLibrary1_QueryInterface(This,riid,ppvObject) \
  7501. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7502. #define ID3D12PipelineLibrary1_AddRef(This) \
  7503. ( (This)->lpVtbl -> AddRef(This) )
  7504. #define ID3D12PipelineLibrary1_Release(This) \
  7505. ( (This)->lpVtbl -> Release(This) )
  7506. #define ID3D12PipelineLibrary1_GetPrivateData(This,guid,pDataSize,pData) \
  7507. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7508. #define ID3D12PipelineLibrary1_SetPrivateData(This,guid,DataSize,pData) \
  7509. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7510. #define ID3D12PipelineLibrary1_SetPrivateDataInterface(This,guid,pData) \
  7511. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7512. #define ID3D12PipelineLibrary1_SetName(This,Name) \
  7513. ( (This)->lpVtbl -> SetName(This,Name) )
  7514. #define ID3D12PipelineLibrary1_GetDevice(This,riid,ppvDevice) \
  7515. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  7516. #define ID3D12PipelineLibrary1_StorePipeline(This,pName,pPipeline) \
  7517. ( (This)->lpVtbl -> StorePipeline(This,pName,pPipeline) )
  7518. #define ID3D12PipelineLibrary1_LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) \
  7519. ( (This)->lpVtbl -> LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) )
  7520. #define ID3D12PipelineLibrary1_LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) \
  7521. ( (This)->lpVtbl -> LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) )
  7522. #define ID3D12PipelineLibrary1_GetSerializedSize(This) \
  7523. ( (This)->lpVtbl -> GetSerializedSize(This) )
  7524. #define ID3D12PipelineLibrary1_Serialize(This,pData,DataSizeInBytes) \
  7525. ( (This)->lpVtbl -> Serialize(This,pData,DataSizeInBytes) )
  7526. #define ID3D12PipelineLibrary1_LoadPipeline(This,pName,pDesc,riid,ppPipelineState) \
  7527. ( (This)->lpVtbl -> LoadPipeline(This,pName,pDesc,riid,ppPipelineState) )
  7528. #endif /* COBJMACROS */
  7529. #endif /* C style interface */
  7530. #endif /* __ID3D12PipelineLibrary1_INTERFACE_DEFINED__ */
  7531. /* interface __MIDL_itf_d3d12_0000_0023 */
  7532. /* [local] */
  7533. typedef
  7534. enum D3D12_MULTIPLE_FENCE_WAIT_FLAGS
  7535. {
  7536. D3D12_MULTIPLE_FENCE_WAIT_FLAG_NONE = 0,
  7537. D3D12_MULTIPLE_FENCE_WAIT_FLAG_ANY = 0x1,
  7538. D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL = 0
  7539. } D3D12_MULTIPLE_FENCE_WAIT_FLAGS;
  7540. DEFINE_ENUM_FLAG_OPERATORS( D3D12_MULTIPLE_FENCE_WAIT_FLAGS )
  7541. typedef
  7542. enum D3D12_RESIDENCY_PRIORITY
  7543. {
  7544. D3D12_RESIDENCY_PRIORITY_MINIMUM = 0x28000000,
  7545. D3D12_RESIDENCY_PRIORITY_LOW = 0x50000000,
  7546. D3D12_RESIDENCY_PRIORITY_NORMAL = 0x78000000,
  7547. D3D12_RESIDENCY_PRIORITY_HIGH = 0xa0010000,
  7548. D3D12_RESIDENCY_PRIORITY_MAXIMUM = 0xc8000000
  7549. } D3D12_RESIDENCY_PRIORITY;
  7550. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0023_v0_0_c_ifspec;
  7551. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0023_v0_0_s_ifspec;
  7552. #ifndef __ID3D12Device1_INTERFACE_DEFINED__
  7553. #define __ID3D12Device1_INTERFACE_DEFINED__
  7554. /* interface ID3D12Device1 */
  7555. /* [unique][local][object][uuid] */
  7556. EXTERN_C const IID IID_ID3D12Device1;
  7557. #if defined(__cplusplus) && !defined(CINTERFACE)
  7558. MIDL_INTERFACE("77acce80-638e-4e65-8895-c1f23386863e")
  7559. ID3D12Device1 : public ID3D12Device
  7560. {
  7561. public:
  7562. virtual HRESULT STDMETHODCALLTYPE CreatePipelineLibrary(
  7563. _In_reads_(BlobLength) const void *pLibraryBlob,
  7564. SIZE_T BlobLength,
  7565. REFIID riid,
  7566. _COM_Outptr_ void **ppPipelineLibrary) = 0;
  7567. virtual HRESULT STDMETHODCALLTYPE SetEventOnMultipleFenceCompletion(
  7568. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  7569. _In_reads_(NumFences) const UINT64 *pFenceValues,
  7570. UINT NumFences,
  7571. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  7572. HANDLE hEvent) = 0;
  7573. virtual HRESULT STDMETHODCALLTYPE SetResidencyPriority(
  7574. UINT NumObjects,
  7575. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  7576. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities) = 0;
  7577. };
  7578. #else /* C style interface */
  7579. typedef struct ID3D12Device1Vtbl
  7580. {
  7581. BEGIN_INTERFACE
  7582. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  7583. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7584. ID3D12Device1 * This,
  7585. REFIID riid,
  7586. _COM_Outptr_ void **ppvObject);
  7587. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  7588. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7589. ID3D12Device1 * This);
  7590. DECLSPEC_XFGVIRT(IUnknown, Release)
  7591. ULONG ( STDMETHODCALLTYPE *Release )(
  7592. ID3D12Device1 * This);
  7593. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  7594. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  7595. ID3D12Device1 * This,
  7596. _In_ REFGUID guid,
  7597. _Inout_ UINT *pDataSize,
  7598. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  7599. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  7600. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  7601. ID3D12Device1 * This,
  7602. _In_ REFGUID guid,
  7603. _In_ UINT DataSize,
  7604. _In_reads_bytes_opt_( DataSize ) const void *pData);
  7605. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  7606. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  7607. ID3D12Device1 * This,
  7608. _In_ REFGUID guid,
  7609. _In_opt_ const IUnknown *pData);
  7610. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  7611. HRESULT ( STDMETHODCALLTYPE *SetName )(
  7612. ID3D12Device1 * This,
  7613. _In_z_ LPCWSTR Name);
  7614. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  7615. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  7616. ID3D12Device1 * This);
  7617. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  7618. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  7619. ID3D12Device1 * This,
  7620. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  7621. REFIID riid,
  7622. _COM_Outptr_ void **ppCommandQueue);
  7623. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  7624. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  7625. ID3D12Device1 * This,
  7626. _In_ D3D12_COMMAND_LIST_TYPE type,
  7627. REFIID riid,
  7628. _COM_Outptr_ void **ppCommandAllocator);
  7629. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  7630. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  7631. ID3D12Device1 * This,
  7632. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7633. REFIID riid,
  7634. _COM_Outptr_ void **ppPipelineState);
  7635. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  7636. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  7637. ID3D12Device1 * This,
  7638. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7639. REFIID riid,
  7640. _COM_Outptr_ void **ppPipelineState);
  7641. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  7642. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  7643. ID3D12Device1 * This,
  7644. _In_ UINT nodeMask,
  7645. _In_ D3D12_COMMAND_LIST_TYPE type,
  7646. _In_ ID3D12CommandAllocator *pCommandAllocator,
  7647. _In_opt_ ID3D12PipelineState *pInitialState,
  7648. REFIID riid,
  7649. _COM_Outptr_ void **ppCommandList);
  7650. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  7651. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  7652. ID3D12Device1 * This,
  7653. D3D12_FEATURE Feature,
  7654. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  7655. UINT FeatureSupportDataSize);
  7656. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  7657. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  7658. ID3D12Device1 * This,
  7659. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  7660. REFIID riid,
  7661. _COM_Outptr_ void **ppvHeap);
  7662. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  7663. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  7664. ID3D12Device1 * This,
  7665. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  7666. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  7667. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  7668. ID3D12Device1 * This,
  7669. _In_ UINT nodeMask,
  7670. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  7671. _In_ SIZE_T blobLengthInBytes,
  7672. REFIID riid,
  7673. _COM_Outptr_ void **ppvRootSignature);
  7674. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  7675. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  7676. ID3D12Device1 * This,
  7677. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  7678. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7679. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  7680. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  7681. ID3D12Device1 * This,
  7682. _In_opt_ ID3D12Resource *pResource,
  7683. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  7684. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7685. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  7686. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  7687. ID3D12Device1 * This,
  7688. _In_opt_ ID3D12Resource *pResource,
  7689. _In_opt_ ID3D12Resource *pCounterResource,
  7690. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  7691. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7692. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  7693. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  7694. ID3D12Device1 * This,
  7695. _In_opt_ ID3D12Resource *pResource,
  7696. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  7697. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7698. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  7699. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  7700. ID3D12Device1 * This,
  7701. _In_opt_ ID3D12Resource *pResource,
  7702. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  7703. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7704. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  7705. void ( STDMETHODCALLTYPE *CreateSampler )(
  7706. ID3D12Device1 * This,
  7707. _In_ const D3D12_SAMPLER_DESC *pDesc,
  7708. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7709. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  7710. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  7711. ID3D12Device1 * This,
  7712. _In_ UINT NumDestDescriptorRanges,
  7713. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  7714. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  7715. _In_ UINT NumSrcDescriptorRanges,
  7716. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  7717. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  7718. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  7719. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  7720. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  7721. ID3D12Device1 * This,
  7722. _In_ UINT NumDescriptors,
  7723. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  7724. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  7725. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  7726. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  7727. #if !defined(_WIN32)
  7728. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  7729. ID3D12Device1 * This,
  7730. _In_ UINT visibleMask,
  7731. _In_ UINT numResourceDescs,
  7732. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  7733. #else
  7734. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  7735. ID3D12Device1 * This,
  7736. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  7737. _In_ UINT visibleMask,
  7738. _In_ UINT numResourceDescs,
  7739. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  7740. #endif
  7741. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  7742. #if !defined(_WIN32)
  7743. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  7744. ID3D12Device1 * This,
  7745. _In_ UINT nodeMask,
  7746. D3D12_HEAP_TYPE heapType);
  7747. #else
  7748. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  7749. ID3D12Device1 * This,
  7750. D3D12_HEAP_PROPERTIES * RetVal,
  7751. _In_ UINT nodeMask,
  7752. D3D12_HEAP_TYPE heapType);
  7753. #endif
  7754. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  7755. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  7756. ID3D12Device1 * This,
  7757. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  7758. D3D12_HEAP_FLAGS HeapFlags,
  7759. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7760. D3D12_RESOURCE_STATES InitialResourceState,
  7761. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7762. REFIID riidResource,
  7763. _COM_Outptr_opt_ void **ppvResource);
  7764. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  7765. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  7766. ID3D12Device1 * This,
  7767. _In_ const D3D12_HEAP_DESC *pDesc,
  7768. REFIID riid,
  7769. _COM_Outptr_opt_ void **ppvHeap);
  7770. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  7771. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  7772. ID3D12Device1 * This,
  7773. _In_ ID3D12Heap *pHeap,
  7774. UINT64 HeapOffset,
  7775. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7776. D3D12_RESOURCE_STATES InitialState,
  7777. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7778. REFIID riid,
  7779. _COM_Outptr_opt_ void **ppvResource);
  7780. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  7781. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  7782. ID3D12Device1 * This,
  7783. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7784. D3D12_RESOURCE_STATES InitialState,
  7785. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7786. REFIID riid,
  7787. _COM_Outptr_opt_ void **ppvResource);
  7788. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  7789. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  7790. ID3D12Device1 * This,
  7791. _In_ ID3D12DeviceChild *pObject,
  7792. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  7793. DWORD Access,
  7794. _In_opt_ LPCWSTR Name,
  7795. _Out_ HANDLE *pHandle);
  7796. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  7797. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  7798. ID3D12Device1 * This,
  7799. _In_ HANDLE NTHandle,
  7800. REFIID riid,
  7801. _COM_Outptr_opt_ void **ppvObj);
  7802. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  7803. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  7804. ID3D12Device1 * This,
  7805. _In_ LPCWSTR Name,
  7806. DWORD Access,
  7807. /* [annotation][out] */
  7808. _Out_ HANDLE *pNTHandle);
  7809. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  7810. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  7811. ID3D12Device1 * This,
  7812. UINT NumObjects,
  7813. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7814. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  7815. HRESULT ( STDMETHODCALLTYPE *Evict )(
  7816. ID3D12Device1 * This,
  7817. UINT NumObjects,
  7818. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7819. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  7820. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  7821. ID3D12Device1 * This,
  7822. UINT64 InitialValue,
  7823. D3D12_FENCE_FLAGS Flags,
  7824. REFIID riid,
  7825. _COM_Outptr_ void **ppFence);
  7826. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  7827. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  7828. ID3D12Device1 * This);
  7829. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  7830. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  7831. ID3D12Device1 * This,
  7832. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  7833. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  7834. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  7835. UINT64 BaseOffset,
  7836. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  7837. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  7838. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  7839. _Out_opt_ UINT64 *pTotalBytes);
  7840. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  7841. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  7842. ID3D12Device1 * This,
  7843. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  7844. REFIID riid,
  7845. _COM_Outptr_opt_ void **ppvHeap);
  7846. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  7847. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  7848. ID3D12Device1 * This,
  7849. BOOL Enable);
  7850. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  7851. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  7852. ID3D12Device1 * This,
  7853. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  7854. _In_opt_ ID3D12RootSignature *pRootSignature,
  7855. REFIID riid,
  7856. _COM_Outptr_opt_ void **ppvCommandSignature);
  7857. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  7858. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  7859. ID3D12Device1 * This,
  7860. _In_ ID3D12Resource *pTiledResource,
  7861. _Out_opt_ UINT *pNumTilesForEntireResource,
  7862. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  7863. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  7864. _Inout_opt_ UINT *pNumSubresourceTilings,
  7865. _In_ UINT FirstSubresourceTilingToGet,
  7866. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  7867. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  7868. #if !defined(_WIN32)
  7869. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  7870. ID3D12Device1 * This);
  7871. #else
  7872. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  7873. ID3D12Device1 * This,
  7874. LUID * RetVal);
  7875. #endif
  7876. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  7877. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  7878. ID3D12Device1 * This,
  7879. _In_reads_(BlobLength) const void *pLibraryBlob,
  7880. SIZE_T BlobLength,
  7881. REFIID riid,
  7882. _COM_Outptr_ void **ppPipelineLibrary);
  7883. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  7884. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  7885. ID3D12Device1 * This,
  7886. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  7887. _In_reads_(NumFences) const UINT64 *pFenceValues,
  7888. UINT NumFences,
  7889. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  7890. HANDLE hEvent);
  7891. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  7892. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  7893. ID3D12Device1 * This,
  7894. UINT NumObjects,
  7895. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  7896. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  7897. END_INTERFACE
  7898. } ID3D12Device1Vtbl;
  7899. interface ID3D12Device1
  7900. {
  7901. CONST_VTBL struct ID3D12Device1Vtbl *lpVtbl;
  7902. };
  7903. #ifdef COBJMACROS
  7904. #define ID3D12Device1_QueryInterface(This,riid,ppvObject) \
  7905. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7906. #define ID3D12Device1_AddRef(This) \
  7907. ( (This)->lpVtbl -> AddRef(This) )
  7908. #define ID3D12Device1_Release(This) \
  7909. ( (This)->lpVtbl -> Release(This) )
  7910. #define ID3D12Device1_GetPrivateData(This,guid,pDataSize,pData) \
  7911. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7912. #define ID3D12Device1_SetPrivateData(This,guid,DataSize,pData) \
  7913. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7914. #define ID3D12Device1_SetPrivateDataInterface(This,guid,pData) \
  7915. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7916. #define ID3D12Device1_SetName(This,Name) \
  7917. ( (This)->lpVtbl -> SetName(This,Name) )
  7918. #define ID3D12Device1_GetNodeCount(This) \
  7919. ( (This)->lpVtbl -> GetNodeCount(This) )
  7920. #define ID3D12Device1_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  7921. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  7922. #define ID3D12Device1_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  7923. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  7924. #define ID3D12Device1_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  7925. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  7926. #define ID3D12Device1_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  7927. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  7928. #define ID3D12Device1_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  7929. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  7930. #define ID3D12Device1_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  7931. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  7932. #define ID3D12Device1_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  7933. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  7934. #define ID3D12Device1_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  7935. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  7936. #define ID3D12Device1_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  7937. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  7938. #define ID3D12Device1_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  7939. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  7940. #define ID3D12Device1_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  7941. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  7942. #define ID3D12Device1_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  7943. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  7944. #define ID3D12Device1_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  7945. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  7946. #define ID3D12Device1_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  7947. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  7948. #define ID3D12Device1_CreateSampler(This,pDesc,DestDescriptor) \
  7949. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  7950. #define ID3D12Device1_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  7951. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  7952. #define ID3D12Device1_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  7953. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  7954. #if !defined(_WIN32)
  7955. #define ID3D12Device1_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  7956. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  7957. #else
  7958. #define ID3D12Device1_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  7959. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  7960. #endif
  7961. #if !defined(_WIN32)
  7962. #define ID3D12Device1_GetCustomHeapProperties(This,nodeMask,heapType) \
  7963. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  7964. #else
  7965. #define ID3D12Device1_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  7966. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  7967. #endif
  7968. #define ID3D12Device1_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  7969. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  7970. #define ID3D12Device1_CreateHeap(This,pDesc,riid,ppvHeap) \
  7971. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  7972. #define ID3D12Device1_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  7973. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  7974. #define ID3D12Device1_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  7975. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  7976. #define ID3D12Device1_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  7977. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  7978. #define ID3D12Device1_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  7979. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  7980. #define ID3D12Device1_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  7981. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  7982. #define ID3D12Device1_MakeResident(This,NumObjects,ppObjects) \
  7983. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  7984. #define ID3D12Device1_Evict(This,NumObjects,ppObjects) \
  7985. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  7986. #define ID3D12Device1_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  7987. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  7988. #define ID3D12Device1_GetDeviceRemovedReason(This) \
  7989. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  7990. #define ID3D12Device1_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  7991. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  7992. #define ID3D12Device1_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  7993. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  7994. #define ID3D12Device1_SetStablePowerState(This,Enable) \
  7995. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  7996. #define ID3D12Device1_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  7997. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  7998. #define ID3D12Device1_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  7999. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  8000. #if !defined(_WIN32)
  8001. #define ID3D12Device1_GetAdapterLuid(This) \
  8002. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  8003. #else
  8004. #define ID3D12Device1_GetAdapterLuid(This,RetVal) \
  8005. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  8006. #endif
  8007. #define ID3D12Device1_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  8008. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  8009. #define ID3D12Device1_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  8010. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  8011. #define ID3D12Device1_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  8012. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  8013. #endif /* COBJMACROS */
  8014. #endif /* C style interface */
  8015. #endif /* __ID3D12Device1_INTERFACE_DEFINED__ */
  8016. #ifndef __ID3D12Device2_INTERFACE_DEFINED__
  8017. #define __ID3D12Device2_INTERFACE_DEFINED__
  8018. /* interface ID3D12Device2 */
  8019. /* [unique][local][object][uuid] */
  8020. EXTERN_C const IID IID_ID3D12Device2;
  8021. #if defined(__cplusplus) && !defined(CINTERFACE)
  8022. MIDL_INTERFACE("30baa41e-b15b-475c-a0bb-1af5c5b64328")
  8023. ID3D12Device2 : public ID3D12Device1
  8024. {
  8025. public:
  8026. virtual HRESULT STDMETHODCALLTYPE CreatePipelineState(
  8027. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  8028. REFIID riid,
  8029. _COM_Outptr_ void **ppPipelineState) = 0;
  8030. };
  8031. #else /* C style interface */
  8032. typedef struct ID3D12Device2Vtbl
  8033. {
  8034. BEGIN_INTERFACE
  8035. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  8036. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8037. ID3D12Device2 * This,
  8038. REFIID riid,
  8039. _COM_Outptr_ void **ppvObject);
  8040. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  8041. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8042. ID3D12Device2 * This);
  8043. DECLSPEC_XFGVIRT(IUnknown, Release)
  8044. ULONG ( STDMETHODCALLTYPE *Release )(
  8045. ID3D12Device2 * This);
  8046. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  8047. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  8048. ID3D12Device2 * This,
  8049. _In_ REFGUID guid,
  8050. _Inout_ UINT *pDataSize,
  8051. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  8052. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  8053. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  8054. ID3D12Device2 * This,
  8055. _In_ REFGUID guid,
  8056. _In_ UINT DataSize,
  8057. _In_reads_bytes_opt_( DataSize ) const void *pData);
  8058. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  8059. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  8060. ID3D12Device2 * This,
  8061. _In_ REFGUID guid,
  8062. _In_opt_ const IUnknown *pData);
  8063. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  8064. HRESULT ( STDMETHODCALLTYPE *SetName )(
  8065. ID3D12Device2 * This,
  8066. _In_z_ LPCWSTR Name);
  8067. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  8068. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  8069. ID3D12Device2 * This);
  8070. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  8071. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  8072. ID3D12Device2 * This,
  8073. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  8074. REFIID riid,
  8075. _COM_Outptr_ void **ppCommandQueue);
  8076. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  8077. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  8078. ID3D12Device2 * This,
  8079. _In_ D3D12_COMMAND_LIST_TYPE type,
  8080. REFIID riid,
  8081. _COM_Outptr_ void **ppCommandAllocator);
  8082. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  8083. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  8084. ID3D12Device2 * This,
  8085. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  8086. REFIID riid,
  8087. _COM_Outptr_ void **ppPipelineState);
  8088. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  8089. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  8090. ID3D12Device2 * This,
  8091. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  8092. REFIID riid,
  8093. _COM_Outptr_ void **ppPipelineState);
  8094. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  8095. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  8096. ID3D12Device2 * This,
  8097. _In_ UINT nodeMask,
  8098. _In_ D3D12_COMMAND_LIST_TYPE type,
  8099. _In_ ID3D12CommandAllocator *pCommandAllocator,
  8100. _In_opt_ ID3D12PipelineState *pInitialState,
  8101. REFIID riid,
  8102. _COM_Outptr_ void **ppCommandList);
  8103. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  8104. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  8105. ID3D12Device2 * This,
  8106. D3D12_FEATURE Feature,
  8107. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  8108. UINT FeatureSupportDataSize);
  8109. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  8110. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  8111. ID3D12Device2 * This,
  8112. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  8113. REFIID riid,
  8114. _COM_Outptr_ void **ppvHeap);
  8115. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  8116. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  8117. ID3D12Device2 * This,
  8118. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  8119. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  8120. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  8121. ID3D12Device2 * This,
  8122. _In_ UINT nodeMask,
  8123. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  8124. _In_ SIZE_T blobLengthInBytes,
  8125. REFIID riid,
  8126. _COM_Outptr_ void **ppvRootSignature);
  8127. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  8128. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  8129. ID3D12Device2 * This,
  8130. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  8131. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8132. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  8133. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  8134. ID3D12Device2 * This,
  8135. _In_opt_ ID3D12Resource *pResource,
  8136. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  8137. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8138. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  8139. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  8140. ID3D12Device2 * This,
  8141. _In_opt_ ID3D12Resource *pResource,
  8142. _In_opt_ ID3D12Resource *pCounterResource,
  8143. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  8144. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8145. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  8146. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  8147. ID3D12Device2 * This,
  8148. _In_opt_ ID3D12Resource *pResource,
  8149. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  8150. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8151. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  8152. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  8153. ID3D12Device2 * This,
  8154. _In_opt_ ID3D12Resource *pResource,
  8155. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  8156. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8157. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  8158. void ( STDMETHODCALLTYPE *CreateSampler )(
  8159. ID3D12Device2 * This,
  8160. _In_ const D3D12_SAMPLER_DESC *pDesc,
  8161. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8162. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  8163. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  8164. ID3D12Device2 * This,
  8165. _In_ UINT NumDestDescriptorRanges,
  8166. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  8167. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  8168. _In_ UINT NumSrcDescriptorRanges,
  8169. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  8170. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  8171. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8172. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  8173. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  8174. ID3D12Device2 * This,
  8175. _In_ UINT NumDescriptors,
  8176. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  8177. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  8178. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8179. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  8180. #if !defined(_WIN32)
  8181. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8182. ID3D12Device2 * This,
  8183. _In_ UINT visibleMask,
  8184. _In_ UINT numResourceDescs,
  8185. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8186. #else
  8187. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8188. ID3D12Device2 * This,
  8189. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  8190. _In_ UINT visibleMask,
  8191. _In_ UINT numResourceDescs,
  8192. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8193. #endif
  8194. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  8195. #if !defined(_WIN32)
  8196. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8197. ID3D12Device2 * This,
  8198. _In_ UINT nodeMask,
  8199. D3D12_HEAP_TYPE heapType);
  8200. #else
  8201. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8202. ID3D12Device2 * This,
  8203. D3D12_HEAP_PROPERTIES * RetVal,
  8204. _In_ UINT nodeMask,
  8205. D3D12_HEAP_TYPE heapType);
  8206. #endif
  8207. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  8208. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  8209. ID3D12Device2 * This,
  8210. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  8211. D3D12_HEAP_FLAGS HeapFlags,
  8212. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8213. D3D12_RESOURCE_STATES InitialResourceState,
  8214. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8215. REFIID riidResource,
  8216. _COM_Outptr_opt_ void **ppvResource);
  8217. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  8218. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  8219. ID3D12Device2 * This,
  8220. _In_ const D3D12_HEAP_DESC *pDesc,
  8221. REFIID riid,
  8222. _COM_Outptr_opt_ void **ppvHeap);
  8223. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  8224. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  8225. ID3D12Device2 * This,
  8226. _In_ ID3D12Heap *pHeap,
  8227. UINT64 HeapOffset,
  8228. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8229. D3D12_RESOURCE_STATES InitialState,
  8230. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8231. REFIID riid,
  8232. _COM_Outptr_opt_ void **ppvResource);
  8233. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  8234. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  8235. ID3D12Device2 * This,
  8236. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8237. D3D12_RESOURCE_STATES InitialState,
  8238. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8239. REFIID riid,
  8240. _COM_Outptr_opt_ void **ppvResource);
  8241. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  8242. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  8243. ID3D12Device2 * This,
  8244. _In_ ID3D12DeviceChild *pObject,
  8245. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  8246. DWORD Access,
  8247. _In_opt_ LPCWSTR Name,
  8248. _Out_ HANDLE *pHandle);
  8249. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  8250. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  8251. ID3D12Device2 * This,
  8252. _In_ HANDLE NTHandle,
  8253. REFIID riid,
  8254. _COM_Outptr_opt_ void **ppvObj);
  8255. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  8256. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  8257. ID3D12Device2 * This,
  8258. _In_ LPCWSTR Name,
  8259. DWORD Access,
  8260. /* [annotation][out] */
  8261. _Out_ HANDLE *pNTHandle);
  8262. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  8263. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  8264. ID3D12Device2 * This,
  8265. UINT NumObjects,
  8266. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8267. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  8268. HRESULT ( STDMETHODCALLTYPE *Evict )(
  8269. ID3D12Device2 * This,
  8270. UINT NumObjects,
  8271. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8272. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  8273. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  8274. ID3D12Device2 * This,
  8275. UINT64 InitialValue,
  8276. D3D12_FENCE_FLAGS Flags,
  8277. REFIID riid,
  8278. _COM_Outptr_ void **ppFence);
  8279. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  8280. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  8281. ID3D12Device2 * This);
  8282. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  8283. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  8284. ID3D12Device2 * This,
  8285. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  8286. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  8287. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  8288. UINT64 BaseOffset,
  8289. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  8290. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  8291. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  8292. _Out_opt_ UINT64 *pTotalBytes);
  8293. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  8294. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  8295. ID3D12Device2 * This,
  8296. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  8297. REFIID riid,
  8298. _COM_Outptr_opt_ void **ppvHeap);
  8299. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  8300. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  8301. ID3D12Device2 * This,
  8302. BOOL Enable);
  8303. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  8304. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  8305. ID3D12Device2 * This,
  8306. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  8307. _In_opt_ ID3D12RootSignature *pRootSignature,
  8308. REFIID riid,
  8309. _COM_Outptr_opt_ void **ppvCommandSignature);
  8310. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  8311. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  8312. ID3D12Device2 * This,
  8313. _In_ ID3D12Resource *pTiledResource,
  8314. _Out_opt_ UINT *pNumTilesForEntireResource,
  8315. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  8316. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  8317. _Inout_opt_ UINT *pNumSubresourceTilings,
  8318. _In_ UINT FirstSubresourceTilingToGet,
  8319. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  8320. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  8321. #if !defined(_WIN32)
  8322. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  8323. ID3D12Device2 * This);
  8324. #else
  8325. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  8326. ID3D12Device2 * This,
  8327. LUID * RetVal);
  8328. #endif
  8329. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  8330. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  8331. ID3D12Device2 * This,
  8332. _In_reads_(BlobLength) const void *pLibraryBlob,
  8333. SIZE_T BlobLength,
  8334. REFIID riid,
  8335. _COM_Outptr_ void **ppPipelineLibrary);
  8336. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  8337. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  8338. ID3D12Device2 * This,
  8339. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  8340. _In_reads_(NumFences) const UINT64 *pFenceValues,
  8341. UINT NumFences,
  8342. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  8343. HANDLE hEvent);
  8344. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  8345. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  8346. ID3D12Device2 * This,
  8347. UINT NumObjects,
  8348. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8349. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  8350. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  8351. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  8352. ID3D12Device2 * This,
  8353. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  8354. REFIID riid,
  8355. _COM_Outptr_ void **ppPipelineState);
  8356. END_INTERFACE
  8357. } ID3D12Device2Vtbl;
  8358. interface ID3D12Device2
  8359. {
  8360. CONST_VTBL struct ID3D12Device2Vtbl *lpVtbl;
  8361. };
  8362. #ifdef COBJMACROS
  8363. #define ID3D12Device2_QueryInterface(This,riid,ppvObject) \
  8364. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  8365. #define ID3D12Device2_AddRef(This) \
  8366. ( (This)->lpVtbl -> AddRef(This) )
  8367. #define ID3D12Device2_Release(This) \
  8368. ( (This)->lpVtbl -> Release(This) )
  8369. #define ID3D12Device2_GetPrivateData(This,guid,pDataSize,pData) \
  8370. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  8371. #define ID3D12Device2_SetPrivateData(This,guid,DataSize,pData) \
  8372. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  8373. #define ID3D12Device2_SetPrivateDataInterface(This,guid,pData) \
  8374. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  8375. #define ID3D12Device2_SetName(This,Name) \
  8376. ( (This)->lpVtbl -> SetName(This,Name) )
  8377. #define ID3D12Device2_GetNodeCount(This) \
  8378. ( (This)->lpVtbl -> GetNodeCount(This) )
  8379. #define ID3D12Device2_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  8380. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  8381. #define ID3D12Device2_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  8382. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  8383. #define ID3D12Device2_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  8384. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  8385. #define ID3D12Device2_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  8386. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  8387. #define ID3D12Device2_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  8388. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  8389. #define ID3D12Device2_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  8390. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  8391. #define ID3D12Device2_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  8392. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  8393. #define ID3D12Device2_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  8394. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  8395. #define ID3D12Device2_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  8396. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  8397. #define ID3D12Device2_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  8398. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  8399. #define ID3D12Device2_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  8400. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  8401. #define ID3D12Device2_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  8402. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  8403. #define ID3D12Device2_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  8404. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  8405. #define ID3D12Device2_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  8406. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  8407. #define ID3D12Device2_CreateSampler(This,pDesc,DestDescriptor) \
  8408. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  8409. #define ID3D12Device2_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  8410. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  8411. #define ID3D12Device2_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  8412. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  8413. #if !defined(_WIN32)
  8414. #define ID3D12Device2_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  8415. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  8416. #else
  8417. #define ID3D12Device2_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  8418. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  8419. #endif
  8420. #if !defined(_WIN32)
  8421. #define ID3D12Device2_GetCustomHeapProperties(This,nodeMask,heapType) \
  8422. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  8423. #else
  8424. #define ID3D12Device2_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  8425. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  8426. #endif
  8427. #define ID3D12Device2_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  8428. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  8429. #define ID3D12Device2_CreateHeap(This,pDesc,riid,ppvHeap) \
  8430. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  8431. #define ID3D12Device2_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8432. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8433. #define ID3D12Device2_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8434. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8435. #define ID3D12Device2_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  8436. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  8437. #define ID3D12Device2_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  8438. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  8439. #define ID3D12Device2_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  8440. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  8441. #define ID3D12Device2_MakeResident(This,NumObjects,ppObjects) \
  8442. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  8443. #define ID3D12Device2_Evict(This,NumObjects,ppObjects) \
  8444. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  8445. #define ID3D12Device2_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  8446. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  8447. #define ID3D12Device2_GetDeviceRemovedReason(This) \
  8448. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  8449. #define ID3D12Device2_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  8450. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  8451. #define ID3D12Device2_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  8452. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  8453. #define ID3D12Device2_SetStablePowerState(This,Enable) \
  8454. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  8455. #define ID3D12Device2_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  8456. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  8457. #define ID3D12Device2_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  8458. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  8459. #if !defined(_WIN32)
  8460. #define ID3D12Device2_GetAdapterLuid(This) \
  8461. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  8462. #else
  8463. #define ID3D12Device2_GetAdapterLuid(This,RetVal) \
  8464. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  8465. #endif
  8466. #define ID3D12Device2_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  8467. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  8468. #define ID3D12Device2_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  8469. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  8470. #define ID3D12Device2_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  8471. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  8472. #define ID3D12Device2_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  8473. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  8474. #endif /* COBJMACROS */
  8475. #endif /* C style interface */
  8476. #endif /* __ID3D12Device2_INTERFACE_DEFINED__ */
  8477. /* interface __MIDL_itf_d3d12_0000_0025 */
  8478. /* [local] */
  8479. typedef
  8480. enum D3D12_RESIDENCY_FLAGS
  8481. {
  8482. D3D12_RESIDENCY_FLAG_NONE = 0,
  8483. D3D12_RESIDENCY_FLAG_DENY_OVERBUDGET = 0x1
  8484. } D3D12_RESIDENCY_FLAGS;
  8485. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESIDENCY_FLAGS )
  8486. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0025_v0_0_c_ifspec;
  8487. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0025_v0_0_s_ifspec;
  8488. #ifndef __ID3D12Device3_INTERFACE_DEFINED__
  8489. #define __ID3D12Device3_INTERFACE_DEFINED__
  8490. /* interface ID3D12Device3 */
  8491. /* [unique][local][object][uuid] */
  8492. EXTERN_C const IID IID_ID3D12Device3;
  8493. #if defined(__cplusplus) && !defined(CINTERFACE)
  8494. MIDL_INTERFACE("81dadc15-2bad-4392-93c5-101345c4aa98")
  8495. ID3D12Device3 : public ID3D12Device2
  8496. {
  8497. public:
  8498. virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromAddress(
  8499. _In_ const void *pAddress,
  8500. REFIID riid,
  8501. _COM_Outptr_ void **ppvHeap) = 0;
  8502. virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromFileMapping(
  8503. _In_ HANDLE hFileMapping,
  8504. REFIID riid,
  8505. _COM_Outptr_ void **ppvHeap) = 0;
  8506. virtual HRESULT STDMETHODCALLTYPE EnqueueMakeResident(
  8507. D3D12_RESIDENCY_FLAGS Flags,
  8508. UINT NumObjects,
  8509. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8510. _In_ ID3D12Fence *pFenceToSignal,
  8511. UINT64 FenceValueToSignal) = 0;
  8512. };
  8513. #else /* C style interface */
  8514. typedef struct ID3D12Device3Vtbl
  8515. {
  8516. BEGIN_INTERFACE
  8517. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  8518. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8519. ID3D12Device3 * This,
  8520. REFIID riid,
  8521. _COM_Outptr_ void **ppvObject);
  8522. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  8523. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8524. ID3D12Device3 * This);
  8525. DECLSPEC_XFGVIRT(IUnknown, Release)
  8526. ULONG ( STDMETHODCALLTYPE *Release )(
  8527. ID3D12Device3 * This);
  8528. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  8529. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  8530. ID3D12Device3 * This,
  8531. _In_ REFGUID guid,
  8532. _Inout_ UINT *pDataSize,
  8533. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  8534. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  8535. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  8536. ID3D12Device3 * This,
  8537. _In_ REFGUID guid,
  8538. _In_ UINT DataSize,
  8539. _In_reads_bytes_opt_( DataSize ) const void *pData);
  8540. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  8541. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  8542. ID3D12Device3 * This,
  8543. _In_ REFGUID guid,
  8544. _In_opt_ const IUnknown *pData);
  8545. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  8546. HRESULT ( STDMETHODCALLTYPE *SetName )(
  8547. ID3D12Device3 * This,
  8548. _In_z_ LPCWSTR Name);
  8549. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  8550. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  8551. ID3D12Device3 * This);
  8552. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  8553. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  8554. ID3D12Device3 * This,
  8555. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  8556. REFIID riid,
  8557. _COM_Outptr_ void **ppCommandQueue);
  8558. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  8559. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  8560. ID3D12Device3 * This,
  8561. _In_ D3D12_COMMAND_LIST_TYPE type,
  8562. REFIID riid,
  8563. _COM_Outptr_ void **ppCommandAllocator);
  8564. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  8565. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  8566. ID3D12Device3 * This,
  8567. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  8568. REFIID riid,
  8569. _COM_Outptr_ void **ppPipelineState);
  8570. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  8571. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  8572. ID3D12Device3 * This,
  8573. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  8574. REFIID riid,
  8575. _COM_Outptr_ void **ppPipelineState);
  8576. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  8577. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  8578. ID3D12Device3 * This,
  8579. _In_ UINT nodeMask,
  8580. _In_ D3D12_COMMAND_LIST_TYPE type,
  8581. _In_ ID3D12CommandAllocator *pCommandAllocator,
  8582. _In_opt_ ID3D12PipelineState *pInitialState,
  8583. REFIID riid,
  8584. _COM_Outptr_ void **ppCommandList);
  8585. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  8586. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  8587. ID3D12Device3 * This,
  8588. D3D12_FEATURE Feature,
  8589. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  8590. UINT FeatureSupportDataSize);
  8591. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  8592. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  8593. ID3D12Device3 * This,
  8594. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  8595. REFIID riid,
  8596. _COM_Outptr_ void **ppvHeap);
  8597. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  8598. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  8599. ID3D12Device3 * This,
  8600. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  8601. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  8602. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  8603. ID3D12Device3 * This,
  8604. _In_ UINT nodeMask,
  8605. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  8606. _In_ SIZE_T blobLengthInBytes,
  8607. REFIID riid,
  8608. _COM_Outptr_ void **ppvRootSignature);
  8609. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  8610. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  8611. ID3D12Device3 * This,
  8612. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  8613. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8614. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  8615. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  8616. ID3D12Device3 * This,
  8617. _In_opt_ ID3D12Resource *pResource,
  8618. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  8619. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8620. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  8621. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  8622. ID3D12Device3 * This,
  8623. _In_opt_ ID3D12Resource *pResource,
  8624. _In_opt_ ID3D12Resource *pCounterResource,
  8625. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  8626. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8627. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  8628. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  8629. ID3D12Device3 * This,
  8630. _In_opt_ ID3D12Resource *pResource,
  8631. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  8632. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8633. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  8634. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  8635. ID3D12Device3 * This,
  8636. _In_opt_ ID3D12Resource *pResource,
  8637. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  8638. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8639. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  8640. void ( STDMETHODCALLTYPE *CreateSampler )(
  8641. ID3D12Device3 * This,
  8642. _In_ const D3D12_SAMPLER_DESC *pDesc,
  8643. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8644. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  8645. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  8646. ID3D12Device3 * This,
  8647. _In_ UINT NumDestDescriptorRanges,
  8648. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  8649. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  8650. _In_ UINT NumSrcDescriptorRanges,
  8651. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  8652. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  8653. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8654. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  8655. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  8656. ID3D12Device3 * This,
  8657. _In_ UINT NumDescriptors,
  8658. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  8659. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  8660. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8661. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  8662. #if !defined(_WIN32)
  8663. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8664. ID3D12Device3 * This,
  8665. _In_ UINT visibleMask,
  8666. _In_ UINT numResourceDescs,
  8667. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8668. #else
  8669. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8670. ID3D12Device3 * This,
  8671. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  8672. _In_ UINT visibleMask,
  8673. _In_ UINT numResourceDescs,
  8674. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8675. #endif
  8676. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  8677. #if !defined(_WIN32)
  8678. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8679. ID3D12Device3 * This,
  8680. _In_ UINT nodeMask,
  8681. D3D12_HEAP_TYPE heapType);
  8682. #else
  8683. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8684. ID3D12Device3 * This,
  8685. D3D12_HEAP_PROPERTIES * RetVal,
  8686. _In_ UINT nodeMask,
  8687. D3D12_HEAP_TYPE heapType);
  8688. #endif
  8689. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  8690. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  8691. ID3D12Device3 * This,
  8692. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  8693. D3D12_HEAP_FLAGS HeapFlags,
  8694. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8695. D3D12_RESOURCE_STATES InitialResourceState,
  8696. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8697. REFIID riidResource,
  8698. _COM_Outptr_opt_ void **ppvResource);
  8699. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  8700. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  8701. ID3D12Device3 * This,
  8702. _In_ const D3D12_HEAP_DESC *pDesc,
  8703. REFIID riid,
  8704. _COM_Outptr_opt_ void **ppvHeap);
  8705. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  8706. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  8707. ID3D12Device3 * This,
  8708. _In_ ID3D12Heap *pHeap,
  8709. UINT64 HeapOffset,
  8710. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8711. D3D12_RESOURCE_STATES InitialState,
  8712. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8713. REFIID riid,
  8714. _COM_Outptr_opt_ void **ppvResource);
  8715. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  8716. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  8717. ID3D12Device3 * This,
  8718. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8719. D3D12_RESOURCE_STATES InitialState,
  8720. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8721. REFIID riid,
  8722. _COM_Outptr_opt_ void **ppvResource);
  8723. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  8724. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  8725. ID3D12Device3 * This,
  8726. _In_ ID3D12DeviceChild *pObject,
  8727. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  8728. DWORD Access,
  8729. _In_opt_ LPCWSTR Name,
  8730. _Out_ HANDLE *pHandle);
  8731. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  8732. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  8733. ID3D12Device3 * This,
  8734. _In_ HANDLE NTHandle,
  8735. REFIID riid,
  8736. _COM_Outptr_opt_ void **ppvObj);
  8737. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  8738. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  8739. ID3D12Device3 * This,
  8740. _In_ LPCWSTR Name,
  8741. DWORD Access,
  8742. /* [annotation][out] */
  8743. _Out_ HANDLE *pNTHandle);
  8744. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  8745. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  8746. ID3D12Device3 * This,
  8747. UINT NumObjects,
  8748. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8749. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  8750. HRESULT ( STDMETHODCALLTYPE *Evict )(
  8751. ID3D12Device3 * This,
  8752. UINT NumObjects,
  8753. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8754. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  8755. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  8756. ID3D12Device3 * This,
  8757. UINT64 InitialValue,
  8758. D3D12_FENCE_FLAGS Flags,
  8759. REFIID riid,
  8760. _COM_Outptr_ void **ppFence);
  8761. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  8762. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  8763. ID3D12Device3 * This);
  8764. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  8765. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  8766. ID3D12Device3 * This,
  8767. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  8768. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  8769. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  8770. UINT64 BaseOffset,
  8771. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  8772. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  8773. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  8774. _Out_opt_ UINT64 *pTotalBytes);
  8775. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  8776. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  8777. ID3D12Device3 * This,
  8778. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  8779. REFIID riid,
  8780. _COM_Outptr_opt_ void **ppvHeap);
  8781. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  8782. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  8783. ID3D12Device3 * This,
  8784. BOOL Enable);
  8785. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  8786. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  8787. ID3D12Device3 * This,
  8788. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  8789. _In_opt_ ID3D12RootSignature *pRootSignature,
  8790. REFIID riid,
  8791. _COM_Outptr_opt_ void **ppvCommandSignature);
  8792. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  8793. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  8794. ID3D12Device3 * This,
  8795. _In_ ID3D12Resource *pTiledResource,
  8796. _Out_opt_ UINT *pNumTilesForEntireResource,
  8797. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  8798. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  8799. _Inout_opt_ UINT *pNumSubresourceTilings,
  8800. _In_ UINT FirstSubresourceTilingToGet,
  8801. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  8802. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  8803. #if !defined(_WIN32)
  8804. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  8805. ID3D12Device3 * This);
  8806. #else
  8807. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  8808. ID3D12Device3 * This,
  8809. LUID * RetVal);
  8810. #endif
  8811. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  8812. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  8813. ID3D12Device3 * This,
  8814. _In_reads_(BlobLength) const void *pLibraryBlob,
  8815. SIZE_T BlobLength,
  8816. REFIID riid,
  8817. _COM_Outptr_ void **ppPipelineLibrary);
  8818. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  8819. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  8820. ID3D12Device3 * This,
  8821. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  8822. _In_reads_(NumFences) const UINT64 *pFenceValues,
  8823. UINT NumFences,
  8824. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  8825. HANDLE hEvent);
  8826. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  8827. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  8828. ID3D12Device3 * This,
  8829. UINT NumObjects,
  8830. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8831. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  8832. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  8833. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  8834. ID3D12Device3 * This,
  8835. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  8836. REFIID riid,
  8837. _COM_Outptr_ void **ppPipelineState);
  8838. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  8839. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  8840. ID3D12Device3 * This,
  8841. _In_ const void *pAddress,
  8842. REFIID riid,
  8843. _COM_Outptr_ void **ppvHeap);
  8844. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  8845. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  8846. ID3D12Device3 * This,
  8847. _In_ HANDLE hFileMapping,
  8848. REFIID riid,
  8849. _COM_Outptr_ void **ppvHeap);
  8850. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  8851. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  8852. ID3D12Device3 * This,
  8853. D3D12_RESIDENCY_FLAGS Flags,
  8854. UINT NumObjects,
  8855. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8856. _In_ ID3D12Fence *pFenceToSignal,
  8857. UINT64 FenceValueToSignal);
  8858. END_INTERFACE
  8859. } ID3D12Device3Vtbl;
  8860. interface ID3D12Device3
  8861. {
  8862. CONST_VTBL struct ID3D12Device3Vtbl *lpVtbl;
  8863. };
  8864. #ifdef COBJMACROS
  8865. #define ID3D12Device3_QueryInterface(This,riid,ppvObject) \
  8866. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  8867. #define ID3D12Device3_AddRef(This) \
  8868. ( (This)->lpVtbl -> AddRef(This) )
  8869. #define ID3D12Device3_Release(This) \
  8870. ( (This)->lpVtbl -> Release(This) )
  8871. #define ID3D12Device3_GetPrivateData(This,guid,pDataSize,pData) \
  8872. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  8873. #define ID3D12Device3_SetPrivateData(This,guid,DataSize,pData) \
  8874. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  8875. #define ID3D12Device3_SetPrivateDataInterface(This,guid,pData) \
  8876. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  8877. #define ID3D12Device3_SetName(This,Name) \
  8878. ( (This)->lpVtbl -> SetName(This,Name) )
  8879. #define ID3D12Device3_GetNodeCount(This) \
  8880. ( (This)->lpVtbl -> GetNodeCount(This) )
  8881. #define ID3D12Device3_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  8882. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  8883. #define ID3D12Device3_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  8884. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  8885. #define ID3D12Device3_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  8886. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  8887. #define ID3D12Device3_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  8888. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  8889. #define ID3D12Device3_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  8890. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  8891. #define ID3D12Device3_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  8892. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  8893. #define ID3D12Device3_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  8894. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  8895. #define ID3D12Device3_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  8896. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  8897. #define ID3D12Device3_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  8898. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  8899. #define ID3D12Device3_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  8900. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  8901. #define ID3D12Device3_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  8902. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  8903. #define ID3D12Device3_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  8904. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  8905. #define ID3D12Device3_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  8906. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  8907. #define ID3D12Device3_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  8908. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  8909. #define ID3D12Device3_CreateSampler(This,pDesc,DestDescriptor) \
  8910. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  8911. #define ID3D12Device3_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  8912. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  8913. #define ID3D12Device3_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  8914. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  8915. #if !defined(_WIN32)
  8916. #define ID3D12Device3_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  8917. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  8918. #else
  8919. #define ID3D12Device3_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  8920. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  8921. #endif
  8922. #if !defined(_WIN32)
  8923. #define ID3D12Device3_GetCustomHeapProperties(This,nodeMask,heapType) \
  8924. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  8925. #else
  8926. #define ID3D12Device3_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  8927. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  8928. #endif
  8929. #define ID3D12Device3_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  8930. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  8931. #define ID3D12Device3_CreateHeap(This,pDesc,riid,ppvHeap) \
  8932. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  8933. #define ID3D12Device3_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8934. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8935. #define ID3D12Device3_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8936. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8937. #define ID3D12Device3_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  8938. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  8939. #define ID3D12Device3_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  8940. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  8941. #define ID3D12Device3_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  8942. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  8943. #define ID3D12Device3_MakeResident(This,NumObjects,ppObjects) \
  8944. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  8945. #define ID3D12Device3_Evict(This,NumObjects,ppObjects) \
  8946. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  8947. #define ID3D12Device3_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  8948. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  8949. #define ID3D12Device3_GetDeviceRemovedReason(This) \
  8950. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  8951. #define ID3D12Device3_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  8952. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  8953. #define ID3D12Device3_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  8954. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  8955. #define ID3D12Device3_SetStablePowerState(This,Enable) \
  8956. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  8957. #define ID3D12Device3_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  8958. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  8959. #define ID3D12Device3_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  8960. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  8961. #if !defined(_WIN32)
  8962. #define ID3D12Device3_GetAdapterLuid(This) \
  8963. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  8964. #else
  8965. #define ID3D12Device3_GetAdapterLuid(This,RetVal) \
  8966. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  8967. #endif
  8968. #define ID3D12Device3_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  8969. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  8970. #define ID3D12Device3_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  8971. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  8972. #define ID3D12Device3_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  8973. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  8974. #define ID3D12Device3_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  8975. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  8976. #define ID3D12Device3_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  8977. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  8978. #define ID3D12Device3_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  8979. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  8980. #define ID3D12Device3_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  8981. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  8982. #endif /* COBJMACROS */
  8983. #endif /* C style interface */
  8984. #endif /* __ID3D12Device3_INTERFACE_DEFINED__ */
  8985. /* interface __MIDL_itf_d3d12_0000_0026 */
  8986. /* [local] */
  8987. typedef
  8988. enum D3D12_COMMAND_LIST_FLAGS
  8989. {
  8990. D3D12_COMMAND_LIST_FLAG_NONE = 0
  8991. } D3D12_COMMAND_LIST_FLAGS;
  8992. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_LIST_FLAGS )
  8993. typedef
  8994. enum D3D12_COMMAND_POOL_FLAGS
  8995. {
  8996. D3D12_COMMAND_POOL_FLAG_NONE = 0
  8997. } D3D12_COMMAND_POOL_FLAGS;
  8998. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_POOL_FLAGS )
  8999. typedef
  9000. enum D3D12_COMMAND_RECORDER_FLAGS
  9001. {
  9002. D3D12_COMMAND_RECORDER_FLAG_NONE = 0
  9003. } D3D12_COMMAND_RECORDER_FLAGS;
  9004. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_RECORDER_FLAGS )
  9005. typedef
  9006. enum D3D12_PROTECTED_SESSION_STATUS
  9007. {
  9008. D3D12_PROTECTED_SESSION_STATUS_OK = 0,
  9009. D3D12_PROTECTED_SESSION_STATUS_INVALID = 1
  9010. } D3D12_PROTECTED_SESSION_STATUS;
  9011. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0026_v0_0_c_ifspec;
  9012. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0026_v0_0_s_ifspec;
  9013. #ifndef __ID3D12ProtectedSession_INTERFACE_DEFINED__
  9014. #define __ID3D12ProtectedSession_INTERFACE_DEFINED__
  9015. /* interface ID3D12ProtectedSession */
  9016. /* [unique][local][object][uuid] */
  9017. EXTERN_C const IID IID_ID3D12ProtectedSession;
  9018. #if defined(__cplusplus) && !defined(CINTERFACE)
  9019. MIDL_INTERFACE("A1533D18-0AC1-4084-85B9-89A96116806B")
  9020. ID3D12ProtectedSession : public ID3D12DeviceChild
  9021. {
  9022. public:
  9023. virtual HRESULT STDMETHODCALLTYPE GetStatusFence(
  9024. REFIID riid,
  9025. _COM_Outptr_opt_ void **ppFence) = 0;
  9026. virtual D3D12_PROTECTED_SESSION_STATUS STDMETHODCALLTYPE GetSessionStatus( void) = 0;
  9027. };
  9028. #else /* C style interface */
  9029. typedef struct ID3D12ProtectedSessionVtbl
  9030. {
  9031. BEGIN_INTERFACE
  9032. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9033. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9034. ID3D12ProtectedSession * This,
  9035. REFIID riid,
  9036. _COM_Outptr_ void **ppvObject);
  9037. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9038. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9039. ID3D12ProtectedSession * This);
  9040. DECLSPEC_XFGVIRT(IUnknown, Release)
  9041. ULONG ( STDMETHODCALLTYPE *Release )(
  9042. ID3D12ProtectedSession * This);
  9043. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  9044. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  9045. ID3D12ProtectedSession * This,
  9046. _In_ REFGUID guid,
  9047. _Inout_ UINT *pDataSize,
  9048. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  9049. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  9050. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  9051. ID3D12ProtectedSession * This,
  9052. _In_ REFGUID guid,
  9053. _In_ UINT DataSize,
  9054. _In_reads_bytes_opt_( DataSize ) const void *pData);
  9055. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  9056. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  9057. ID3D12ProtectedSession * This,
  9058. _In_ REFGUID guid,
  9059. _In_opt_ const IUnknown *pData);
  9060. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  9061. HRESULT ( STDMETHODCALLTYPE *SetName )(
  9062. ID3D12ProtectedSession * This,
  9063. _In_z_ LPCWSTR Name);
  9064. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  9065. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  9066. ID3D12ProtectedSession * This,
  9067. REFIID riid,
  9068. _COM_Outptr_opt_ void **ppvDevice);
  9069. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence)
  9070. HRESULT ( STDMETHODCALLTYPE *GetStatusFence )(
  9071. ID3D12ProtectedSession * This,
  9072. REFIID riid,
  9073. _COM_Outptr_opt_ void **ppFence);
  9074. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus)
  9075. D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )(
  9076. ID3D12ProtectedSession * This);
  9077. END_INTERFACE
  9078. } ID3D12ProtectedSessionVtbl;
  9079. interface ID3D12ProtectedSession
  9080. {
  9081. CONST_VTBL struct ID3D12ProtectedSessionVtbl *lpVtbl;
  9082. };
  9083. #ifdef COBJMACROS
  9084. #define ID3D12ProtectedSession_QueryInterface(This,riid,ppvObject) \
  9085. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9086. #define ID3D12ProtectedSession_AddRef(This) \
  9087. ( (This)->lpVtbl -> AddRef(This) )
  9088. #define ID3D12ProtectedSession_Release(This) \
  9089. ( (This)->lpVtbl -> Release(This) )
  9090. #define ID3D12ProtectedSession_GetPrivateData(This,guid,pDataSize,pData) \
  9091. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  9092. #define ID3D12ProtectedSession_SetPrivateData(This,guid,DataSize,pData) \
  9093. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  9094. #define ID3D12ProtectedSession_SetPrivateDataInterface(This,guid,pData) \
  9095. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  9096. #define ID3D12ProtectedSession_SetName(This,Name) \
  9097. ( (This)->lpVtbl -> SetName(This,Name) )
  9098. #define ID3D12ProtectedSession_GetDevice(This,riid,ppvDevice) \
  9099. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  9100. #define ID3D12ProtectedSession_GetStatusFence(This,riid,ppFence) \
  9101. ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) )
  9102. #define ID3D12ProtectedSession_GetSessionStatus(This) \
  9103. ( (This)->lpVtbl -> GetSessionStatus(This) )
  9104. #endif /* COBJMACROS */
  9105. #endif /* C style interface */
  9106. #endif /* __ID3D12ProtectedSession_INTERFACE_DEFINED__ */
  9107. /* interface __MIDL_itf_d3d12_0000_0027 */
  9108. /* [local] */
  9109. typedef
  9110. enum D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS
  9111. {
  9112. D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_NONE = 0,
  9113. D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_SUPPORTED = 0x1
  9114. } D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS;
  9115. DEFINE_ENUM_FLAG_OPERATORS( D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS )
  9116. typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT
  9117. {
  9118. UINT NodeIndex;
  9119. D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS Support;
  9120. } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT;
  9121. typedef
  9122. enum D3D12_PROTECTED_RESOURCE_SESSION_FLAGS
  9123. {
  9124. D3D12_PROTECTED_RESOURCE_SESSION_FLAG_NONE = 0
  9125. } D3D12_PROTECTED_RESOURCE_SESSION_FLAGS;
  9126. DEFINE_ENUM_FLAG_OPERATORS( D3D12_PROTECTED_RESOURCE_SESSION_FLAGS )
  9127. typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC
  9128. {
  9129. UINT NodeMask;
  9130. D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags;
  9131. } D3D12_PROTECTED_RESOURCE_SESSION_DESC;
  9132. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0027_v0_0_c_ifspec;
  9133. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0027_v0_0_s_ifspec;
  9134. #ifndef __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__
  9135. #define __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__
  9136. /* interface ID3D12ProtectedResourceSession */
  9137. /* [unique][local][object][uuid] */
  9138. EXTERN_C const IID IID_ID3D12ProtectedResourceSession;
  9139. #if defined(__cplusplus) && !defined(CINTERFACE)
  9140. MIDL_INTERFACE("6CD696F4-F289-40CC-8091-5A6C0A099C3D")
  9141. ID3D12ProtectedResourceSession : public ID3D12ProtectedSession
  9142. {
  9143. public:
  9144. #if defined(_MSC_VER) || !defined(_WIN32)
  9145. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  9146. #else
  9147. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC *STDMETHODCALLTYPE GetDesc(
  9148. D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal) = 0;
  9149. #endif
  9150. };
  9151. #else /* C style interface */
  9152. typedef struct ID3D12ProtectedResourceSessionVtbl
  9153. {
  9154. BEGIN_INTERFACE
  9155. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9156. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9157. ID3D12ProtectedResourceSession * This,
  9158. REFIID riid,
  9159. _COM_Outptr_ void **ppvObject);
  9160. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9161. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9162. ID3D12ProtectedResourceSession * This);
  9163. DECLSPEC_XFGVIRT(IUnknown, Release)
  9164. ULONG ( STDMETHODCALLTYPE *Release )(
  9165. ID3D12ProtectedResourceSession * This);
  9166. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  9167. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  9168. ID3D12ProtectedResourceSession * This,
  9169. _In_ REFGUID guid,
  9170. _Inout_ UINT *pDataSize,
  9171. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  9172. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  9173. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  9174. ID3D12ProtectedResourceSession * This,
  9175. _In_ REFGUID guid,
  9176. _In_ UINT DataSize,
  9177. _In_reads_bytes_opt_( DataSize ) const void *pData);
  9178. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  9179. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  9180. ID3D12ProtectedResourceSession * This,
  9181. _In_ REFGUID guid,
  9182. _In_opt_ const IUnknown *pData);
  9183. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  9184. HRESULT ( STDMETHODCALLTYPE *SetName )(
  9185. ID3D12ProtectedResourceSession * This,
  9186. _In_z_ LPCWSTR Name);
  9187. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  9188. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  9189. ID3D12ProtectedResourceSession * This,
  9190. REFIID riid,
  9191. _COM_Outptr_opt_ void **ppvDevice);
  9192. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence)
  9193. HRESULT ( STDMETHODCALLTYPE *GetStatusFence )(
  9194. ID3D12ProtectedResourceSession * This,
  9195. REFIID riid,
  9196. _COM_Outptr_opt_ void **ppFence);
  9197. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus)
  9198. D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )(
  9199. ID3D12ProtectedResourceSession * This);
  9200. DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession, GetDesc)
  9201. #if !defined(_WIN32)
  9202. D3D12_PROTECTED_RESOURCE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  9203. ID3D12ProtectedResourceSession * This);
  9204. #else
  9205. D3D12_PROTECTED_RESOURCE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  9206. ID3D12ProtectedResourceSession * This,
  9207. D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal);
  9208. #endif
  9209. END_INTERFACE
  9210. } ID3D12ProtectedResourceSessionVtbl;
  9211. interface ID3D12ProtectedResourceSession
  9212. {
  9213. CONST_VTBL struct ID3D12ProtectedResourceSessionVtbl *lpVtbl;
  9214. };
  9215. #ifdef COBJMACROS
  9216. #define ID3D12ProtectedResourceSession_QueryInterface(This,riid,ppvObject) \
  9217. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9218. #define ID3D12ProtectedResourceSession_AddRef(This) \
  9219. ( (This)->lpVtbl -> AddRef(This) )
  9220. #define ID3D12ProtectedResourceSession_Release(This) \
  9221. ( (This)->lpVtbl -> Release(This) )
  9222. #define ID3D12ProtectedResourceSession_GetPrivateData(This,guid,pDataSize,pData) \
  9223. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  9224. #define ID3D12ProtectedResourceSession_SetPrivateData(This,guid,DataSize,pData) \
  9225. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  9226. #define ID3D12ProtectedResourceSession_SetPrivateDataInterface(This,guid,pData) \
  9227. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  9228. #define ID3D12ProtectedResourceSession_SetName(This,Name) \
  9229. ( (This)->lpVtbl -> SetName(This,Name) )
  9230. #define ID3D12ProtectedResourceSession_GetDevice(This,riid,ppvDevice) \
  9231. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  9232. #define ID3D12ProtectedResourceSession_GetStatusFence(This,riid,ppFence) \
  9233. ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) )
  9234. #define ID3D12ProtectedResourceSession_GetSessionStatus(This) \
  9235. ( (This)->lpVtbl -> GetSessionStatus(This) )
  9236. #if !defined(_WIN32)
  9237. #define ID3D12ProtectedResourceSession_GetDesc(This) \
  9238. ( (This)->lpVtbl -> GetDesc(This) )
  9239. #else
  9240. #define ID3D12ProtectedResourceSession_GetDesc(This,RetVal) \
  9241. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  9242. #endif
  9243. #endif /* COBJMACROS */
  9244. #endif /* C style interface */
  9245. #endif /* __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__ */
  9246. #ifndef __ID3D12Device4_INTERFACE_DEFINED__
  9247. #define __ID3D12Device4_INTERFACE_DEFINED__
  9248. /* interface ID3D12Device4 */
  9249. /* [unique][local][object][uuid] */
  9250. EXTERN_C const IID IID_ID3D12Device4;
  9251. #if defined(__cplusplus) && !defined(CINTERFACE)
  9252. MIDL_INTERFACE("e865df17-a9ee-46f9-a463-3098315aa2e5")
  9253. ID3D12Device4 : public ID3D12Device3
  9254. {
  9255. public:
  9256. virtual HRESULT STDMETHODCALLTYPE CreateCommandList1(
  9257. _In_ UINT nodeMask,
  9258. _In_ D3D12_COMMAND_LIST_TYPE type,
  9259. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  9260. REFIID riid,
  9261. _COM_Outptr_ void **ppCommandList) = 0;
  9262. virtual HRESULT STDMETHODCALLTYPE CreateProtectedResourceSession(
  9263. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  9264. _In_ REFIID riid,
  9265. _COM_Outptr_ void **ppSession) = 0;
  9266. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource1(
  9267. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  9268. D3D12_HEAP_FLAGS HeapFlags,
  9269. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9270. D3D12_RESOURCE_STATES InitialResourceState,
  9271. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9272. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9273. REFIID riidResource,
  9274. _COM_Outptr_opt_ void **ppvResource) = 0;
  9275. virtual HRESULT STDMETHODCALLTYPE CreateHeap1(
  9276. _In_ const D3D12_HEAP_DESC *pDesc,
  9277. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9278. REFIID riid,
  9279. _COM_Outptr_opt_ void **ppvHeap) = 0;
  9280. virtual HRESULT STDMETHODCALLTYPE CreateReservedResource1(
  9281. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9282. D3D12_RESOURCE_STATES InitialState,
  9283. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9284. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9285. REFIID riid,
  9286. _COM_Outptr_opt_ void **ppvResource) = 0;
  9287. #if defined(_MSC_VER) || !defined(_WIN32)
  9288. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo1(
  9289. UINT visibleMask,
  9290. UINT numResourceDescs,
  9291. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9292. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  9293. #else
  9294. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo1(
  9295. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  9296. UINT visibleMask,
  9297. UINT numResourceDescs,
  9298. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9299. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  9300. #endif
  9301. };
  9302. #else /* C style interface */
  9303. typedef struct ID3D12Device4Vtbl
  9304. {
  9305. BEGIN_INTERFACE
  9306. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9307. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9308. ID3D12Device4 * This,
  9309. REFIID riid,
  9310. _COM_Outptr_ void **ppvObject);
  9311. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9312. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9313. ID3D12Device4 * This);
  9314. DECLSPEC_XFGVIRT(IUnknown, Release)
  9315. ULONG ( STDMETHODCALLTYPE *Release )(
  9316. ID3D12Device4 * This);
  9317. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  9318. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  9319. ID3D12Device4 * This,
  9320. _In_ REFGUID guid,
  9321. _Inout_ UINT *pDataSize,
  9322. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  9323. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  9324. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  9325. ID3D12Device4 * This,
  9326. _In_ REFGUID guid,
  9327. _In_ UINT DataSize,
  9328. _In_reads_bytes_opt_( DataSize ) const void *pData);
  9329. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  9330. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  9331. ID3D12Device4 * This,
  9332. _In_ REFGUID guid,
  9333. _In_opt_ const IUnknown *pData);
  9334. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  9335. HRESULT ( STDMETHODCALLTYPE *SetName )(
  9336. ID3D12Device4 * This,
  9337. _In_z_ LPCWSTR Name);
  9338. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  9339. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  9340. ID3D12Device4 * This);
  9341. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  9342. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  9343. ID3D12Device4 * This,
  9344. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  9345. REFIID riid,
  9346. _COM_Outptr_ void **ppCommandQueue);
  9347. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  9348. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  9349. ID3D12Device4 * This,
  9350. _In_ D3D12_COMMAND_LIST_TYPE type,
  9351. REFIID riid,
  9352. _COM_Outptr_ void **ppCommandAllocator);
  9353. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  9354. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  9355. ID3D12Device4 * This,
  9356. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  9357. REFIID riid,
  9358. _COM_Outptr_ void **ppPipelineState);
  9359. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  9360. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  9361. ID3D12Device4 * This,
  9362. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  9363. REFIID riid,
  9364. _COM_Outptr_ void **ppPipelineState);
  9365. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  9366. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  9367. ID3D12Device4 * This,
  9368. _In_ UINT nodeMask,
  9369. _In_ D3D12_COMMAND_LIST_TYPE type,
  9370. _In_ ID3D12CommandAllocator *pCommandAllocator,
  9371. _In_opt_ ID3D12PipelineState *pInitialState,
  9372. REFIID riid,
  9373. _COM_Outptr_ void **ppCommandList);
  9374. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  9375. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  9376. ID3D12Device4 * This,
  9377. D3D12_FEATURE Feature,
  9378. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  9379. UINT FeatureSupportDataSize);
  9380. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  9381. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  9382. ID3D12Device4 * This,
  9383. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  9384. REFIID riid,
  9385. _COM_Outptr_ void **ppvHeap);
  9386. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  9387. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  9388. ID3D12Device4 * This,
  9389. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  9390. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  9391. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  9392. ID3D12Device4 * This,
  9393. _In_ UINT nodeMask,
  9394. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  9395. _In_ SIZE_T blobLengthInBytes,
  9396. REFIID riid,
  9397. _COM_Outptr_ void **ppvRootSignature);
  9398. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  9399. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  9400. ID3D12Device4 * This,
  9401. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  9402. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9403. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  9404. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  9405. ID3D12Device4 * This,
  9406. _In_opt_ ID3D12Resource *pResource,
  9407. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  9408. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9409. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  9410. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  9411. ID3D12Device4 * This,
  9412. _In_opt_ ID3D12Resource *pResource,
  9413. _In_opt_ ID3D12Resource *pCounterResource,
  9414. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  9415. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9416. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  9417. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  9418. ID3D12Device4 * This,
  9419. _In_opt_ ID3D12Resource *pResource,
  9420. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  9421. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9422. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  9423. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  9424. ID3D12Device4 * This,
  9425. _In_opt_ ID3D12Resource *pResource,
  9426. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  9427. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9428. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  9429. void ( STDMETHODCALLTYPE *CreateSampler )(
  9430. ID3D12Device4 * This,
  9431. _In_ const D3D12_SAMPLER_DESC *pDesc,
  9432. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9433. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  9434. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  9435. ID3D12Device4 * This,
  9436. _In_ UINT NumDestDescriptorRanges,
  9437. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  9438. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  9439. _In_ UINT NumSrcDescriptorRanges,
  9440. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  9441. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  9442. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  9443. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  9444. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  9445. ID3D12Device4 * This,
  9446. _In_ UINT NumDescriptors,
  9447. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  9448. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  9449. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  9450. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  9451. #if !defined(_WIN32)
  9452. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  9453. ID3D12Device4 * This,
  9454. _In_ UINT visibleMask,
  9455. _In_ UINT numResourceDescs,
  9456. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  9457. #else
  9458. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  9459. ID3D12Device4 * This,
  9460. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  9461. _In_ UINT visibleMask,
  9462. _In_ UINT numResourceDescs,
  9463. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  9464. #endif
  9465. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  9466. #if !defined(_WIN32)
  9467. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  9468. ID3D12Device4 * This,
  9469. _In_ UINT nodeMask,
  9470. D3D12_HEAP_TYPE heapType);
  9471. #else
  9472. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  9473. ID3D12Device4 * This,
  9474. D3D12_HEAP_PROPERTIES * RetVal,
  9475. _In_ UINT nodeMask,
  9476. D3D12_HEAP_TYPE heapType);
  9477. #endif
  9478. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  9479. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  9480. ID3D12Device4 * This,
  9481. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  9482. D3D12_HEAP_FLAGS HeapFlags,
  9483. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9484. D3D12_RESOURCE_STATES InitialResourceState,
  9485. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9486. REFIID riidResource,
  9487. _COM_Outptr_opt_ void **ppvResource);
  9488. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  9489. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  9490. ID3D12Device4 * This,
  9491. _In_ const D3D12_HEAP_DESC *pDesc,
  9492. REFIID riid,
  9493. _COM_Outptr_opt_ void **ppvHeap);
  9494. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  9495. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  9496. ID3D12Device4 * This,
  9497. _In_ ID3D12Heap *pHeap,
  9498. UINT64 HeapOffset,
  9499. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9500. D3D12_RESOURCE_STATES InitialState,
  9501. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9502. REFIID riid,
  9503. _COM_Outptr_opt_ void **ppvResource);
  9504. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  9505. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  9506. ID3D12Device4 * This,
  9507. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9508. D3D12_RESOURCE_STATES InitialState,
  9509. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9510. REFIID riid,
  9511. _COM_Outptr_opt_ void **ppvResource);
  9512. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  9513. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  9514. ID3D12Device4 * This,
  9515. _In_ ID3D12DeviceChild *pObject,
  9516. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  9517. DWORD Access,
  9518. _In_opt_ LPCWSTR Name,
  9519. _Out_ HANDLE *pHandle);
  9520. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  9521. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  9522. ID3D12Device4 * This,
  9523. _In_ HANDLE NTHandle,
  9524. REFIID riid,
  9525. _COM_Outptr_opt_ void **ppvObj);
  9526. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  9527. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  9528. ID3D12Device4 * This,
  9529. _In_ LPCWSTR Name,
  9530. DWORD Access,
  9531. /* [annotation][out] */
  9532. _Out_ HANDLE *pNTHandle);
  9533. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  9534. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  9535. ID3D12Device4 * This,
  9536. UINT NumObjects,
  9537. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  9538. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  9539. HRESULT ( STDMETHODCALLTYPE *Evict )(
  9540. ID3D12Device4 * This,
  9541. UINT NumObjects,
  9542. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  9543. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  9544. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  9545. ID3D12Device4 * This,
  9546. UINT64 InitialValue,
  9547. D3D12_FENCE_FLAGS Flags,
  9548. REFIID riid,
  9549. _COM_Outptr_ void **ppFence);
  9550. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  9551. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  9552. ID3D12Device4 * This);
  9553. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  9554. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  9555. ID3D12Device4 * This,
  9556. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  9557. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  9558. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  9559. UINT64 BaseOffset,
  9560. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  9561. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  9562. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  9563. _Out_opt_ UINT64 *pTotalBytes);
  9564. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  9565. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  9566. ID3D12Device4 * This,
  9567. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  9568. REFIID riid,
  9569. _COM_Outptr_opt_ void **ppvHeap);
  9570. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  9571. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  9572. ID3D12Device4 * This,
  9573. BOOL Enable);
  9574. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  9575. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  9576. ID3D12Device4 * This,
  9577. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  9578. _In_opt_ ID3D12RootSignature *pRootSignature,
  9579. REFIID riid,
  9580. _COM_Outptr_opt_ void **ppvCommandSignature);
  9581. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  9582. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  9583. ID3D12Device4 * This,
  9584. _In_ ID3D12Resource *pTiledResource,
  9585. _Out_opt_ UINT *pNumTilesForEntireResource,
  9586. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  9587. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  9588. _Inout_opt_ UINT *pNumSubresourceTilings,
  9589. _In_ UINT FirstSubresourceTilingToGet,
  9590. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  9591. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  9592. #if !defined(_WIN32)
  9593. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  9594. ID3D12Device4 * This);
  9595. #else
  9596. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  9597. ID3D12Device4 * This,
  9598. LUID * RetVal);
  9599. #endif
  9600. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  9601. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  9602. ID3D12Device4 * This,
  9603. _In_reads_(BlobLength) const void *pLibraryBlob,
  9604. SIZE_T BlobLength,
  9605. REFIID riid,
  9606. _COM_Outptr_ void **ppPipelineLibrary);
  9607. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  9608. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  9609. ID3D12Device4 * This,
  9610. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  9611. _In_reads_(NumFences) const UINT64 *pFenceValues,
  9612. UINT NumFences,
  9613. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  9614. HANDLE hEvent);
  9615. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  9616. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  9617. ID3D12Device4 * This,
  9618. UINT NumObjects,
  9619. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  9620. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  9621. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  9622. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  9623. ID3D12Device4 * This,
  9624. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  9625. REFIID riid,
  9626. _COM_Outptr_ void **ppPipelineState);
  9627. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  9628. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  9629. ID3D12Device4 * This,
  9630. _In_ const void *pAddress,
  9631. REFIID riid,
  9632. _COM_Outptr_ void **ppvHeap);
  9633. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  9634. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  9635. ID3D12Device4 * This,
  9636. _In_ HANDLE hFileMapping,
  9637. REFIID riid,
  9638. _COM_Outptr_ void **ppvHeap);
  9639. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  9640. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  9641. ID3D12Device4 * This,
  9642. D3D12_RESIDENCY_FLAGS Flags,
  9643. UINT NumObjects,
  9644. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  9645. _In_ ID3D12Fence *pFenceToSignal,
  9646. UINT64 FenceValueToSignal);
  9647. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  9648. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  9649. ID3D12Device4 * This,
  9650. _In_ UINT nodeMask,
  9651. _In_ D3D12_COMMAND_LIST_TYPE type,
  9652. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  9653. REFIID riid,
  9654. _COM_Outptr_ void **ppCommandList);
  9655. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  9656. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  9657. ID3D12Device4 * This,
  9658. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  9659. _In_ REFIID riid,
  9660. _COM_Outptr_ void **ppSession);
  9661. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  9662. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  9663. ID3D12Device4 * This,
  9664. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  9665. D3D12_HEAP_FLAGS HeapFlags,
  9666. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9667. D3D12_RESOURCE_STATES InitialResourceState,
  9668. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9669. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9670. REFIID riidResource,
  9671. _COM_Outptr_opt_ void **ppvResource);
  9672. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  9673. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  9674. ID3D12Device4 * This,
  9675. _In_ const D3D12_HEAP_DESC *pDesc,
  9676. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9677. REFIID riid,
  9678. _COM_Outptr_opt_ void **ppvHeap);
  9679. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  9680. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  9681. ID3D12Device4 * This,
  9682. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9683. D3D12_RESOURCE_STATES InitialState,
  9684. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9685. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9686. REFIID riid,
  9687. _COM_Outptr_opt_ void **ppvResource);
  9688. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  9689. #if !defined(_WIN32)
  9690. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  9691. ID3D12Device4 * This,
  9692. UINT visibleMask,
  9693. UINT numResourceDescs,
  9694. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9695. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  9696. #else
  9697. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  9698. ID3D12Device4 * This,
  9699. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  9700. UINT visibleMask,
  9701. UINT numResourceDescs,
  9702. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9703. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  9704. #endif
  9705. END_INTERFACE
  9706. } ID3D12Device4Vtbl;
  9707. interface ID3D12Device4
  9708. {
  9709. CONST_VTBL struct ID3D12Device4Vtbl *lpVtbl;
  9710. };
  9711. #ifdef COBJMACROS
  9712. #define ID3D12Device4_QueryInterface(This,riid,ppvObject) \
  9713. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9714. #define ID3D12Device4_AddRef(This) \
  9715. ( (This)->lpVtbl -> AddRef(This) )
  9716. #define ID3D12Device4_Release(This) \
  9717. ( (This)->lpVtbl -> Release(This) )
  9718. #define ID3D12Device4_GetPrivateData(This,guid,pDataSize,pData) \
  9719. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  9720. #define ID3D12Device4_SetPrivateData(This,guid,DataSize,pData) \
  9721. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  9722. #define ID3D12Device4_SetPrivateDataInterface(This,guid,pData) \
  9723. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  9724. #define ID3D12Device4_SetName(This,Name) \
  9725. ( (This)->lpVtbl -> SetName(This,Name) )
  9726. #define ID3D12Device4_GetNodeCount(This) \
  9727. ( (This)->lpVtbl -> GetNodeCount(This) )
  9728. #define ID3D12Device4_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  9729. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  9730. #define ID3D12Device4_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  9731. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  9732. #define ID3D12Device4_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  9733. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  9734. #define ID3D12Device4_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  9735. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  9736. #define ID3D12Device4_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  9737. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  9738. #define ID3D12Device4_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  9739. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  9740. #define ID3D12Device4_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  9741. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  9742. #define ID3D12Device4_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  9743. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  9744. #define ID3D12Device4_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  9745. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  9746. #define ID3D12Device4_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  9747. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  9748. #define ID3D12Device4_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  9749. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  9750. #define ID3D12Device4_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  9751. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  9752. #define ID3D12Device4_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  9753. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  9754. #define ID3D12Device4_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  9755. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  9756. #define ID3D12Device4_CreateSampler(This,pDesc,DestDescriptor) \
  9757. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  9758. #define ID3D12Device4_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  9759. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  9760. #define ID3D12Device4_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  9761. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  9762. #if !defined(_WIN32)
  9763. #define ID3D12Device4_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  9764. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  9765. #else
  9766. #define ID3D12Device4_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  9767. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  9768. #endif
  9769. #if !defined(_WIN32)
  9770. #define ID3D12Device4_GetCustomHeapProperties(This,nodeMask,heapType) \
  9771. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  9772. #else
  9773. #define ID3D12Device4_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  9774. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  9775. #endif
  9776. #define ID3D12Device4_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  9777. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  9778. #define ID3D12Device4_CreateHeap(This,pDesc,riid,ppvHeap) \
  9779. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  9780. #define ID3D12Device4_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  9781. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  9782. #define ID3D12Device4_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  9783. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  9784. #define ID3D12Device4_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  9785. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  9786. #define ID3D12Device4_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  9787. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  9788. #define ID3D12Device4_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  9789. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  9790. #define ID3D12Device4_MakeResident(This,NumObjects,ppObjects) \
  9791. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  9792. #define ID3D12Device4_Evict(This,NumObjects,ppObjects) \
  9793. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  9794. #define ID3D12Device4_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  9795. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  9796. #define ID3D12Device4_GetDeviceRemovedReason(This) \
  9797. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  9798. #define ID3D12Device4_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  9799. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  9800. #define ID3D12Device4_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  9801. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  9802. #define ID3D12Device4_SetStablePowerState(This,Enable) \
  9803. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  9804. #define ID3D12Device4_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  9805. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  9806. #define ID3D12Device4_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  9807. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  9808. #if !defined(_WIN32)
  9809. #define ID3D12Device4_GetAdapterLuid(This) \
  9810. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  9811. #else
  9812. #define ID3D12Device4_GetAdapterLuid(This,RetVal) \
  9813. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  9814. #endif
  9815. #define ID3D12Device4_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  9816. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  9817. #define ID3D12Device4_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  9818. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  9819. #define ID3D12Device4_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  9820. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  9821. #define ID3D12Device4_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  9822. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  9823. #define ID3D12Device4_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  9824. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  9825. #define ID3D12Device4_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  9826. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  9827. #define ID3D12Device4_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  9828. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  9829. #define ID3D12Device4_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  9830. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  9831. #define ID3D12Device4_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  9832. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  9833. #define ID3D12Device4_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  9834. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  9835. #define ID3D12Device4_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  9836. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  9837. #define ID3D12Device4_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  9838. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  9839. #if !defined(_WIN32)
  9840. #define ID3D12Device4_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  9841. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  9842. #else
  9843. #define ID3D12Device4_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  9844. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  9845. #endif
  9846. #endif /* COBJMACROS */
  9847. #endif /* C style interface */
  9848. #endif /* __ID3D12Device4_INTERFACE_DEFINED__ */
  9849. /* interface __MIDL_itf_d3d12_0000_0029 */
  9850. /* [local] */
  9851. typedef
  9852. enum D3D12_LIFETIME_STATE
  9853. {
  9854. D3D12_LIFETIME_STATE_IN_USE = 0,
  9855. D3D12_LIFETIME_STATE_NOT_IN_USE = ( D3D12_LIFETIME_STATE_IN_USE + 1 )
  9856. } D3D12_LIFETIME_STATE;
  9857. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0029_v0_0_c_ifspec;
  9858. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0029_v0_0_s_ifspec;
  9859. #ifndef __ID3D12LifetimeOwner_INTERFACE_DEFINED__
  9860. #define __ID3D12LifetimeOwner_INTERFACE_DEFINED__
  9861. /* interface ID3D12LifetimeOwner */
  9862. /* [unique][local][object][uuid] */
  9863. EXTERN_C const IID IID_ID3D12LifetimeOwner;
  9864. #if defined(__cplusplus) && !defined(CINTERFACE)
  9865. MIDL_INTERFACE("e667af9f-cd56-4f46-83ce-032e595d70a8")
  9866. ID3D12LifetimeOwner : public IUnknown
  9867. {
  9868. public:
  9869. virtual void STDMETHODCALLTYPE LifetimeStateUpdated(
  9870. D3D12_LIFETIME_STATE NewState) = 0;
  9871. };
  9872. #else /* C style interface */
  9873. typedef struct ID3D12LifetimeOwnerVtbl
  9874. {
  9875. BEGIN_INTERFACE
  9876. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9877. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9878. ID3D12LifetimeOwner * This,
  9879. REFIID riid,
  9880. _COM_Outptr_ void **ppvObject);
  9881. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9882. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9883. ID3D12LifetimeOwner * This);
  9884. DECLSPEC_XFGVIRT(IUnknown, Release)
  9885. ULONG ( STDMETHODCALLTYPE *Release )(
  9886. ID3D12LifetimeOwner * This);
  9887. DECLSPEC_XFGVIRT(ID3D12LifetimeOwner, LifetimeStateUpdated)
  9888. void ( STDMETHODCALLTYPE *LifetimeStateUpdated )(
  9889. ID3D12LifetimeOwner * This,
  9890. D3D12_LIFETIME_STATE NewState);
  9891. END_INTERFACE
  9892. } ID3D12LifetimeOwnerVtbl;
  9893. interface ID3D12LifetimeOwner
  9894. {
  9895. CONST_VTBL struct ID3D12LifetimeOwnerVtbl *lpVtbl;
  9896. };
  9897. #ifdef COBJMACROS
  9898. #define ID3D12LifetimeOwner_QueryInterface(This,riid,ppvObject) \
  9899. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9900. #define ID3D12LifetimeOwner_AddRef(This) \
  9901. ( (This)->lpVtbl -> AddRef(This) )
  9902. #define ID3D12LifetimeOwner_Release(This) \
  9903. ( (This)->lpVtbl -> Release(This) )
  9904. #define ID3D12LifetimeOwner_LifetimeStateUpdated(This,NewState) \
  9905. ( (This)->lpVtbl -> LifetimeStateUpdated(This,NewState) )
  9906. #endif /* COBJMACROS */
  9907. #endif /* C style interface */
  9908. #endif /* __ID3D12LifetimeOwner_INTERFACE_DEFINED__ */
  9909. #ifndef __ID3D12SwapChainAssistant_INTERFACE_DEFINED__
  9910. #define __ID3D12SwapChainAssistant_INTERFACE_DEFINED__
  9911. /* interface ID3D12SwapChainAssistant */
  9912. /* [unique][local][object][uuid] */
  9913. EXTERN_C const IID IID_ID3D12SwapChainAssistant;
  9914. #if defined(__cplusplus) && !defined(CINTERFACE)
  9915. MIDL_INTERFACE("f1df64b6-57fd-49cd-8807-c0eb88b45c8f")
  9916. ID3D12SwapChainAssistant : public IUnknown
  9917. {
  9918. public:
  9919. #if defined(_MSC_VER) || !defined(_WIN32)
  9920. virtual LUID STDMETHODCALLTYPE GetLUID( void) = 0;
  9921. #else
  9922. virtual LUID *STDMETHODCALLTYPE GetLUID(
  9923. LUID * RetVal) = 0;
  9924. #endif
  9925. virtual HRESULT STDMETHODCALLTYPE GetSwapChainObject(
  9926. REFIID riid,
  9927. _COM_Outptr_ void **ppv) = 0;
  9928. virtual HRESULT STDMETHODCALLTYPE GetCurrentResourceAndCommandQueue(
  9929. REFIID riidResource,
  9930. _COM_Outptr_ void **ppvResource,
  9931. REFIID riidQueue,
  9932. _COM_Outptr_ void **ppvQueue) = 0;
  9933. virtual HRESULT STDMETHODCALLTYPE InsertImplicitSync( void) = 0;
  9934. };
  9935. #else /* C style interface */
  9936. typedef struct ID3D12SwapChainAssistantVtbl
  9937. {
  9938. BEGIN_INTERFACE
  9939. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9940. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9941. ID3D12SwapChainAssistant * This,
  9942. REFIID riid,
  9943. _COM_Outptr_ void **ppvObject);
  9944. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9945. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9946. ID3D12SwapChainAssistant * This);
  9947. DECLSPEC_XFGVIRT(IUnknown, Release)
  9948. ULONG ( STDMETHODCALLTYPE *Release )(
  9949. ID3D12SwapChainAssistant * This);
  9950. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetLUID)
  9951. #if !defined(_WIN32)
  9952. LUID ( STDMETHODCALLTYPE *GetLUID )(
  9953. ID3D12SwapChainAssistant * This);
  9954. #else
  9955. LUID *( STDMETHODCALLTYPE *GetLUID )(
  9956. ID3D12SwapChainAssistant * This,
  9957. LUID * RetVal);
  9958. #endif
  9959. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetSwapChainObject)
  9960. HRESULT ( STDMETHODCALLTYPE *GetSwapChainObject )(
  9961. ID3D12SwapChainAssistant * This,
  9962. REFIID riid,
  9963. _COM_Outptr_ void **ppv);
  9964. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetCurrentResourceAndCommandQueue)
  9965. HRESULT ( STDMETHODCALLTYPE *GetCurrentResourceAndCommandQueue )(
  9966. ID3D12SwapChainAssistant * This,
  9967. REFIID riidResource,
  9968. _COM_Outptr_ void **ppvResource,
  9969. REFIID riidQueue,
  9970. _COM_Outptr_ void **ppvQueue);
  9971. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, InsertImplicitSync)
  9972. HRESULT ( STDMETHODCALLTYPE *InsertImplicitSync )(
  9973. ID3D12SwapChainAssistant * This);
  9974. END_INTERFACE
  9975. } ID3D12SwapChainAssistantVtbl;
  9976. interface ID3D12SwapChainAssistant
  9977. {
  9978. CONST_VTBL struct ID3D12SwapChainAssistantVtbl *lpVtbl;
  9979. };
  9980. #ifdef COBJMACROS
  9981. #define ID3D12SwapChainAssistant_QueryInterface(This,riid,ppvObject) \
  9982. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9983. #define ID3D12SwapChainAssistant_AddRef(This) \
  9984. ( (This)->lpVtbl -> AddRef(This) )
  9985. #define ID3D12SwapChainAssistant_Release(This) \
  9986. ( (This)->lpVtbl -> Release(This) )
  9987. #if !defined(_WIN32)
  9988. #define ID3D12SwapChainAssistant_GetLUID(This) \
  9989. ( (This)->lpVtbl -> GetLUID(This) )
  9990. #else
  9991. #define ID3D12SwapChainAssistant_GetLUID(This,RetVal) \
  9992. ( (This)->lpVtbl -> GetLUID(This,RetVal) )
  9993. #endif
  9994. #define ID3D12SwapChainAssistant_GetSwapChainObject(This,riid,ppv) \
  9995. ( (This)->lpVtbl -> GetSwapChainObject(This,riid,ppv) )
  9996. #define ID3D12SwapChainAssistant_GetCurrentResourceAndCommandQueue(This,riidResource,ppvResource,riidQueue,ppvQueue) \
  9997. ( (This)->lpVtbl -> GetCurrentResourceAndCommandQueue(This,riidResource,ppvResource,riidQueue,ppvQueue) )
  9998. #define ID3D12SwapChainAssistant_InsertImplicitSync(This) \
  9999. ( (This)->lpVtbl -> InsertImplicitSync(This) )
  10000. #endif /* COBJMACROS */
  10001. #endif /* C style interface */
  10002. #endif /* __ID3D12SwapChainAssistant_INTERFACE_DEFINED__ */
  10003. #ifndef __ID3D12LifetimeTracker_INTERFACE_DEFINED__
  10004. #define __ID3D12LifetimeTracker_INTERFACE_DEFINED__
  10005. /* interface ID3D12LifetimeTracker */
  10006. /* [unique][local][object][uuid] */
  10007. EXTERN_C const IID IID_ID3D12LifetimeTracker;
  10008. #if defined(__cplusplus) && !defined(CINTERFACE)
  10009. MIDL_INTERFACE("3fd03d36-4eb1-424a-a582-494ecb8ba813")
  10010. ID3D12LifetimeTracker : public ID3D12DeviceChild
  10011. {
  10012. public:
  10013. virtual HRESULT STDMETHODCALLTYPE DestroyOwnedObject(
  10014. _In_ ID3D12DeviceChild *pObject) = 0;
  10015. };
  10016. #else /* C style interface */
  10017. typedef struct ID3D12LifetimeTrackerVtbl
  10018. {
  10019. BEGIN_INTERFACE
  10020. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10021. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10022. ID3D12LifetimeTracker * This,
  10023. REFIID riid,
  10024. _COM_Outptr_ void **ppvObject);
  10025. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10026. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10027. ID3D12LifetimeTracker * This);
  10028. DECLSPEC_XFGVIRT(IUnknown, Release)
  10029. ULONG ( STDMETHODCALLTYPE *Release )(
  10030. ID3D12LifetimeTracker * This);
  10031. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  10032. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  10033. ID3D12LifetimeTracker * This,
  10034. _In_ REFGUID guid,
  10035. _Inout_ UINT *pDataSize,
  10036. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  10037. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  10038. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  10039. ID3D12LifetimeTracker * This,
  10040. _In_ REFGUID guid,
  10041. _In_ UINT DataSize,
  10042. _In_reads_bytes_opt_( DataSize ) const void *pData);
  10043. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  10044. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  10045. ID3D12LifetimeTracker * This,
  10046. _In_ REFGUID guid,
  10047. _In_opt_ const IUnknown *pData);
  10048. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  10049. HRESULT ( STDMETHODCALLTYPE *SetName )(
  10050. ID3D12LifetimeTracker * This,
  10051. _In_z_ LPCWSTR Name);
  10052. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  10053. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  10054. ID3D12LifetimeTracker * This,
  10055. REFIID riid,
  10056. _COM_Outptr_opt_ void **ppvDevice);
  10057. DECLSPEC_XFGVIRT(ID3D12LifetimeTracker, DestroyOwnedObject)
  10058. HRESULT ( STDMETHODCALLTYPE *DestroyOwnedObject )(
  10059. ID3D12LifetimeTracker * This,
  10060. _In_ ID3D12DeviceChild *pObject);
  10061. END_INTERFACE
  10062. } ID3D12LifetimeTrackerVtbl;
  10063. interface ID3D12LifetimeTracker
  10064. {
  10065. CONST_VTBL struct ID3D12LifetimeTrackerVtbl *lpVtbl;
  10066. };
  10067. #ifdef COBJMACROS
  10068. #define ID3D12LifetimeTracker_QueryInterface(This,riid,ppvObject) \
  10069. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10070. #define ID3D12LifetimeTracker_AddRef(This) \
  10071. ( (This)->lpVtbl -> AddRef(This) )
  10072. #define ID3D12LifetimeTracker_Release(This) \
  10073. ( (This)->lpVtbl -> Release(This) )
  10074. #define ID3D12LifetimeTracker_GetPrivateData(This,guid,pDataSize,pData) \
  10075. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  10076. #define ID3D12LifetimeTracker_SetPrivateData(This,guid,DataSize,pData) \
  10077. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  10078. #define ID3D12LifetimeTracker_SetPrivateDataInterface(This,guid,pData) \
  10079. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  10080. #define ID3D12LifetimeTracker_SetName(This,Name) \
  10081. ( (This)->lpVtbl -> SetName(This,Name) )
  10082. #define ID3D12LifetimeTracker_GetDevice(This,riid,ppvDevice) \
  10083. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  10084. #define ID3D12LifetimeTracker_DestroyOwnedObject(This,pObject) \
  10085. ( (This)->lpVtbl -> DestroyOwnedObject(This,pObject) )
  10086. #endif /* COBJMACROS */
  10087. #endif /* C style interface */
  10088. #endif /* __ID3D12LifetimeTracker_INTERFACE_DEFINED__ */
  10089. /* interface __MIDL_itf_d3d12_0000_0032 */
  10090. /* [local] */
  10091. typedef
  10092. enum D3D12_META_COMMAND_PARAMETER_TYPE
  10093. {
  10094. D3D12_META_COMMAND_PARAMETER_TYPE_FLOAT = 0,
  10095. D3D12_META_COMMAND_PARAMETER_TYPE_UINT64 = 1,
  10096. D3D12_META_COMMAND_PARAMETER_TYPE_GPU_VIRTUAL_ADDRESS = 2,
  10097. D3D12_META_COMMAND_PARAMETER_TYPE_CPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 3,
  10098. D3D12_META_COMMAND_PARAMETER_TYPE_GPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 4
  10099. } D3D12_META_COMMAND_PARAMETER_TYPE;
  10100. typedef
  10101. enum D3D12_META_COMMAND_PARAMETER_FLAGS
  10102. {
  10103. D3D12_META_COMMAND_PARAMETER_FLAG_INPUT = 0x1,
  10104. D3D12_META_COMMAND_PARAMETER_FLAG_OUTPUT = 0x2
  10105. } D3D12_META_COMMAND_PARAMETER_FLAGS;
  10106. DEFINE_ENUM_FLAG_OPERATORS( D3D12_META_COMMAND_PARAMETER_FLAGS )
  10107. typedef
  10108. enum D3D12_META_COMMAND_PARAMETER_STAGE
  10109. {
  10110. D3D12_META_COMMAND_PARAMETER_STAGE_CREATION = 0,
  10111. D3D12_META_COMMAND_PARAMETER_STAGE_INITIALIZATION = 1,
  10112. D3D12_META_COMMAND_PARAMETER_STAGE_EXECUTION = 2
  10113. } D3D12_META_COMMAND_PARAMETER_STAGE;
  10114. typedef struct D3D12_META_COMMAND_PARAMETER_DESC
  10115. {
  10116. LPCWSTR Name;
  10117. D3D12_META_COMMAND_PARAMETER_TYPE Type;
  10118. D3D12_META_COMMAND_PARAMETER_FLAGS Flags;
  10119. D3D12_RESOURCE_STATES RequiredResourceState;
  10120. UINT StructureOffset;
  10121. } D3D12_META_COMMAND_PARAMETER_DESC;
  10122. typedef
  10123. enum D3D12_GRAPHICS_STATES
  10124. {
  10125. D3D12_GRAPHICS_STATE_NONE = 0,
  10126. D3D12_GRAPHICS_STATE_IA_VERTEX_BUFFERS = ( 1 << 0 ) ,
  10127. D3D12_GRAPHICS_STATE_IA_INDEX_BUFFER = ( 1 << 1 ) ,
  10128. D3D12_GRAPHICS_STATE_IA_PRIMITIVE_TOPOLOGY = ( 1 << 2 ) ,
  10129. D3D12_GRAPHICS_STATE_DESCRIPTOR_HEAP = ( 1 << 3 ) ,
  10130. D3D12_GRAPHICS_STATE_GRAPHICS_ROOT_SIGNATURE = ( 1 << 4 ) ,
  10131. D3D12_GRAPHICS_STATE_COMPUTE_ROOT_SIGNATURE = ( 1 << 5 ) ,
  10132. D3D12_GRAPHICS_STATE_RS_VIEWPORTS = ( 1 << 6 ) ,
  10133. D3D12_GRAPHICS_STATE_RS_SCISSOR_RECTS = ( 1 << 7 ) ,
  10134. D3D12_GRAPHICS_STATE_PREDICATION = ( 1 << 8 ) ,
  10135. D3D12_GRAPHICS_STATE_OM_RENDER_TARGETS = ( 1 << 9 ) ,
  10136. D3D12_GRAPHICS_STATE_OM_STENCIL_REF = ( 1 << 10 ) ,
  10137. D3D12_GRAPHICS_STATE_OM_BLEND_FACTOR = ( 1 << 11 ) ,
  10138. D3D12_GRAPHICS_STATE_PIPELINE_STATE = ( 1 << 12 ) ,
  10139. D3D12_GRAPHICS_STATE_SO_TARGETS = ( 1 << 13 ) ,
  10140. D3D12_GRAPHICS_STATE_OM_DEPTH_BOUNDS = ( 1 << 14 ) ,
  10141. D3D12_GRAPHICS_STATE_SAMPLE_POSITIONS = ( 1 << 15 ) ,
  10142. D3D12_GRAPHICS_STATE_VIEW_INSTANCE_MASK = ( 1 << 16 )
  10143. } D3D12_GRAPHICS_STATES;
  10144. DEFINE_ENUM_FLAG_OPERATORS( D3D12_GRAPHICS_STATES )
  10145. typedef struct D3D12_META_COMMAND_DESC
  10146. {
  10147. GUID Id;
  10148. LPCWSTR Name;
  10149. D3D12_GRAPHICS_STATES InitializationDirtyState;
  10150. D3D12_GRAPHICS_STATES ExecutionDirtyState;
  10151. } D3D12_META_COMMAND_DESC;
  10152. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0032_v0_0_c_ifspec;
  10153. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0032_v0_0_s_ifspec;
  10154. #ifndef __ID3D12StateObject_INTERFACE_DEFINED__
  10155. #define __ID3D12StateObject_INTERFACE_DEFINED__
  10156. /* interface ID3D12StateObject */
  10157. /* [unique][local][object][uuid] */
  10158. EXTERN_C const IID IID_ID3D12StateObject;
  10159. #if defined(__cplusplus) && !defined(CINTERFACE)
  10160. MIDL_INTERFACE("47016943-fca8-4594-93ea-af258b55346d")
  10161. ID3D12StateObject : public ID3D12Pageable
  10162. {
  10163. public:
  10164. };
  10165. #else /* C style interface */
  10166. typedef struct ID3D12StateObjectVtbl
  10167. {
  10168. BEGIN_INTERFACE
  10169. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10170. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10171. ID3D12StateObject * This,
  10172. REFIID riid,
  10173. _COM_Outptr_ void **ppvObject);
  10174. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10175. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10176. ID3D12StateObject * This);
  10177. DECLSPEC_XFGVIRT(IUnknown, Release)
  10178. ULONG ( STDMETHODCALLTYPE *Release )(
  10179. ID3D12StateObject * This);
  10180. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  10181. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  10182. ID3D12StateObject * This,
  10183. _In_ REFGUID guid,
  10184. _Inout_ UINT *pDataSize,
  10185. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  10186. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  10187. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  10188. ID3D12StateObject * This,
  10189. _In_ REFGUID guid,
  10190. _In_ UINT DataSize,
  10191. _In_reads_bytes_opt_( DataSize ) const void *pData);
  10192. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  10193. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  10194. ID3D12StateObject * This,
  10195. _In_ REFGUID guid,
  10196. _In_opt_ const IUnknown *pData);
  10197. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  10198. HRESULT ( STDMETHODCALLTYPE *SetName )(
  10199. ID3D12StateObject * This,
  10200. _In_z_ LPCWSTR Name);
  10201. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  10202. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  10203. ID3D12StateObject * This,
  10204. REFIID riid,
  10205. _COM_Outptr_opt_ void **ppvDevice);
  10206. END_INTERFACE
  10207. } ID3D12StateObjectVtbl;
  10208. interface ID3D12StateObject
  10209. {
  10210. CONST_VTBL struct ID3D12StateObjectVtbl *lpVtbl;
  10211. };
  10212. #ifdef COBJMACROS
  10213. #define ID3D12StateObject_QueryInterface(This,riid,ppvObject) \
  10214. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10215. #define ID3D12StateObject_AddRef(This) \
  10216. ( (This)->lpVtbl -> AddRef(This) )
  10217. #define ID3D12StateObject_Release(This) \
  10218. ( (This)->lpVtbl -> Release(This) )
  10219. #define ID3D12StateObject_GetPrivateData(This,guid,pDataSize,pData) \
  10220. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  10221. #define ID3D12StateObject_SetPrivateData(This,guid,DataSize,pData) \
  10222. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  10223. #define ID3D12StateObject_SetPrivateDataInterface(This,guid,pData) \
  10224. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  10225. #define ID3D12StateObject_SetName(This,Name) \
  10226. ( (This)->lpVtbl -> SetName(This,Name) )
  10227. #define ID3D12StateObject_GetDevice(This,riid,ppvDevice) \
  10228. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  10229. #endif /* COBJMACROS */
  10230. #endif /* C style interface */
  10231. #endif /* __ID3D12StateObject_INTERFACE_DEFINED__ */
  10232. #ifndef __ID3D12StateObjectProperties_INTERFACE_DEFINED__
  10233. #define __ID3D12StateObjectProperties_INTERFACE_DEFINED__
  10234. /* interface ID3D12StateObjectProperties */
  10235. /* [unique][local][object][uuid] */
  10236. EXTERN_C const IID IID_ID3D12StateObjectProperties;
  10237. #if defined(__cplusplus) && !defined(CINTERFACE)
  10238. MIDL_INTERFACE("de5fa827-9bf9-4f26-89ff-d7f56fde3860")
  10239. ID3D12StateObjectProperties : public IUnknown
  10240. {
  10241. public:
  10242. virtual void *STDMETHODCALLTYPE GetShaderIdentifier(
  10243. _In_ LPCWSTR pExportName) = 0;
  10244. virtual UINT64 STDMETHODCALLTYPE GetShaderStackSize(
  10245. _In_ LPCWSTR pExportName) = 0;
  10246. virtual UINT64 STDMETHODCALLTYPE GetPipelineStackSize( void) = 0;
  10247. virtual void STDMETHODCALLTYPE SetPipelineStackSize(
  10248. UINT64 PipelineStackSizeInBytes) = 0;
  10249. };
  10250. #else /* C style interface */
  10251. typedef struct ID3D12StateObjectPropertiesVtbl
  10252. {
  10253. BEGIN_INTERFACE
  10254. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10255. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10256. ID3D12StateObjectProperties * This,
  10257. REFIID riid,
  10258. _COM_Outptr_ void **ppvObject);
  10259. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10260. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10261. ID3D12StateObjectProperties * This);
  10262. DECLSPEC_XFGVIRT(IUnknown, Release)
  10263. ULONG ( STDMETHODCALLTYPE *Release )(
  10264. ID3D12StateObjectProperties * This);
  10265. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderIdentifier)
  10266. void *( STDMETHODCALLTYPE *GetShaderIdentifier )(
  10267. ID3D12StateObjectProperties * This,
  10268. _In_ LPCWSTR pExportName);
  10269. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderStackSize)
  10270. UINT64 ( STDMETHODCALLTYPE *GetShaderStackSize )(
  10271. ID3D12StateObjectProperties * This,
  10272. _In_ LPCWSTR pExportName);
  10273. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetPipelineStackSize)
  10274. UINT64 ( STDMETHODCALLTYPE *GetPipelineStackSize )(
  10275. ID3D12StateObjectProperties * This);
  10276. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, SetPipelineStackSize)
  10277. void ( STDMETHODCALLTYPE *SetPipelineStackSize )(
  10278. ID3D12StateObjectProperties * This,
  10279. UINT64 PipelineStackSizeInBytes);
  10280. END_INTERFACE
  10281. } ID3D12StateObjectPropertiesVtbl;
  10282. interface ID3D12StateObjectProperties
  10283. {
  10284. CONST_VTBL struct ID3D12StateObjectPropertiesVtbl *lpVtbl;
  10285. };
  10286. #ifdef COBJMACROS
  10287. #define ID3D12StateObjectProperties_QueryInterface(This,riid,ppvObject) \
  10288. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10289. #define ID3D12StateObjectProperties_AddRef(This) \
  10290. ( (This)->lpVtbl -> AddRef(This) )
  10291. #define ID3D12StateObjectProperties_Release(This) \
  10292. ( (This)->lpVtbl -> Release(This) )
  10293. #define ID3D12StateObjectProperties_GetShaderIdentifier(This,pExportName) \
  10294. ( (This)->lpVtbl -> GetShaderIdentifier(This,pExportName) )
  10295. #define ID3D12StateObjectProperties_GetShaderStackSize(This,pExportName) \
  10296. ( (This)->lpVtbl -> GetShaderStackSize(This,pExportName) )
  10297. #define ID3D12StateObjectProperties_GetPipelineStackSize(This) \
  10298. ( (This)->lpVtbl -> GetPipelineStackSize(This) )
  10299. #define ID3D12StateObjectProperties_SetPipelineStackSize(This,PipelineStackSizeInBytes) \
  10300. ( (This)->lpVtbl -> SetPipelineStackSize(This,PipelineStackSizeInBytes) )
  10301. #endif /* COBJMACROS */
  10302. #endif /* C style interface */
  10303. #endif /* __ID3D12StateObjectProperties_INTERFACE_DEFINED__ */
  10304. /* interface __MIDL_itf_d3d12_0000_0034 */
  10305. /* [local] */
  10306. typedef struct D3D12_PROGRAM_IDENTIFIER
  10307. {
  10308. UINT64 OpaqueData[ 4 ];
  10309. } D3D12_PROGRAM_IDENTIFIER;
  10310. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0034_v0_0_c_ifspec;
  10311. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0034_v0_0_s_ifspec;
  10312. #ifndef __ID3D12StateObjectProperties1_INTERFACE_DEFINED__
  10313. #define __ID3D12StateObjectProperties1_INTERFACE_DEFINED__
  10314. /* interface ID3D12StateObjectProperties1 */
  10315. /* [unique][local][object][uuid] */
  10316. EXTERN_C const IID IID_ID3D12StateObjectProperties1;
  10317. #if defined(__cplusplus) && !defined(CINTERFACE)
  10318. MIDL_INTERFACE("460caac7-1d24-446a-a184-ca67db494138")
  10319. ID3D12StateObjectProperties1 : public ID3D12StateObjectProperties
  10320. {
  10321. public:
  10322. #if defined(_MSC_VER) || !defined(_WIN32)
  10323. virtual D3D12_PROGRAM_IDENTIFIER STDMETHODCALLTYPE GetProgramIdentifier(
  10324. LPCWSTR pProgramName) = 0;
  10325. #else
  10326. virtual D3D12_PROGRAM_IDENTIFIER *STDMETHODCALLTYPE GetProgramIdentifier(
  10327. D3D12_PROGRAM_IDENTIFIER * RetVal,
  10328. LPCWSTR pProgramName) = 0;
  10329. #endif
  10330. };
  10331. #else /* C style interface */
  10332. typedef struct ID3D12StateObjectProperties1Vtbl
  10333. {
  10334. BEGIN_INTERFACE
  10335. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10336. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10337. ID3D12StateObjectProperties1 * This,
  10338. REFIID riid,
  10339. _COM_Outptr_ void **ppvObject);
  10340. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10341. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10342. ID3D12StateObjectProperties1 * This);
  10343. DECLSPEC_XFGVIRT(IUnknown, Release)
  10344. ULONG ( STDMETHODCALLTYPE *Release )(
  10345. ID3D12StateObjectProperties1 * This);
  10346. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderIdentifier)
  10347. void *( STDMETHODCALLTYPE *GetShaderIdentifier )(
  10348. ID3D12StateObjectProperties1 * This,
  10349. _In_ LPCWSTR pExportName);
  10350. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderStackSize)
  10351. UINT64 ( STDMETHODCALLTYPE *GetShaderStackSize )(
  10352. ID3D12StateObjectProperties1 * This,
  10353. _In_ LPCWSTR pExportName);
  10354. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetPipelineStackSize)
  10355. UINT64 ( STDMETHODCALLTYPE *GetPipelineStackSize )(
  10356. ID3D12StateObjectProperties1 * This);
  10357. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, SetPipelineStackSize)
  10358. void ( STDMETHODCALLTYPE *SetPipelineStackSize )(
  10359. ID3D12StateObjectProperties1 * This,
  10360. UINT64 PipelineStackSizeInBytes);
  10361. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties1, GetProgramIdentifier)
  10362. #if !defined(_WIN32)
  10363. D3D12_PROGRAM_IDENTIFIER ( STDMETHODCALLTYPE *GetProgramIdentifier )(
  10364. ID3D12StateObjectProperties1 * This,
  10365. LPCWSTR pProgramName);
  10366. #else
  10367. D3D12_PROGRAM_IDENTIFIER *( STDMETHODCALLTYPE *GetProgramIdentifier )(
  10368. ID3D12StateObjectProperties1 * This,
  10369. D3D12_PROGRAM_IDENTIFIER * RetVal,
  10370. LPCWSTR pProgramName);
  10371. #endif
  10372. END_INTERFACE
  10373. } ID3D12StateObjectProperties1Vtbl;
  10374. interface ID3D12StateObjectProperties1
  10375. {
  10376. CONST_VTBL struct ID3D12StateObjectProperties1Vtbl *lpVtbl;
  10377. };
  10378. #ifdef COBJMACROS
  10379. #define ID3D12StateObjectProperties1_QueryInterface(This,riid,ppvObject) \
  10380. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10381. #define ID3D12StateObjectProperties1_AddRef(This) \
  10382. ( (This)->lpVtbl -> AddRef(This) )
  10383. #define ID3D12StateObjectProperties1_Release(This) \
  10384. ( (This)->lpVtbl -> Release(This) )
  10385. #define ID3D12StateObjectProperties1_GetShaderIdentifier(This,pExportName) \
  10386. ( (This)->lpVtbl -> GetShaderIdentifier(This,pExportName) )
  10387. #define ID3D12StateObjectProperties1_GetShaderStackSize(This,pExportName) \
  10388. ( (This)->lpVtbl -> GetShaderStackSize(This,pExportName) )
  10389. #define ID3D12StateObjectProperties1_GetPipelineStackSize(This) \
  10390. ( (This)->lpVtbl -> GetPipelineStackSize(This) )
  10391. #define ID3D12StateObjectProperties1_SetPipelineStackSize(This,PipelineStackSizeInBytes) \
  10392. ( (This)->lpVtbl -> SetPipelineStackSize(This,PipelineStackSizeInBytes) )
  10393. #if !defined(_WIN32)
  10394. #define ID3D12StateObjectProperties1_GetProgramIdentifier(This,pProgramName) \
  10395. ( (This)->lpVtbl -> GetProgramIdentifier(This,pProgramName) )
  10396. #else
  10397. #define ID3D12StateObjectProperties1_GetProgramIdentifier(This,RetVal,pProgramName) \
  10398. ( (This)->lpVtbl -> GetProgramIdentifier(This,RetVal,pProgramName) )
  10399. #endif
  10400. #endif /* COBJMACROS */
  10401. #endif /* C style interface */
  10402. #endif /* __ID3D12StateObjectProperties1_INTERFACE_DEFINED__ */
  10403. /* interface __MIDL_itf_d3d12_0000_0035 */
  10404. /* [local] */
  10405. typedef struct D3D12_NODE_ID
  10406. {
  10407. LPCWSTR Name;
  10408. UINT ArrayIndex;
  10409. } D3D12_NODE_ID;
  10410. typedef struct D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS
  10411. {
  10412. UINT64 MinSizeInBytes;
  10413. UINT64 MaxSizeInBytes;
  10414. UINT SizeGranularityInBytes;
  10415. } D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS;
  10416. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0035_v0_0_c_ifspec;
  10417. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0035_v0_0_s_ifspec;
  10418. #ifndef __ID3D12WorkGraphProperties_INTERFACE_DEFINED__
  10419. #define __ID3D12WorkGraphProperties_INTERFACE_DEFINED__
  10420. /* interface ID3D12WorkGraphProperties */
  10421. /* [unique][local][object][uuid] */
  10422. EXTERN_C const IID IID_ID3D12WorkGraphProperties;
  10423. #if defined(__cplusplus) && !defined(CINTERFACE)
  10424. MIDL_INTERFACE("065acf71-f863-4b89-82f4-02e4d5886757")
  10425. ID3D12WorkGraphProperties : public IUnknown
  10426. {
  10427. public:
  10428. virtual UINT STDMETHODCALLTYPE GetNumWorkGraphs( void) = 0;
  10429. virtual LPCWSTR STDMETHODCALLTYPE GetProgramName(
  10430. UINT WorkGraphIndex) = 0;
  10431. virtual UINT STDMETHODCALLTYPE GetWorkGraphIndex(
  10432. LPCWSTR pProgramName) = 0;
  10433. virtual UINT STDMETHODCALLTYPE GetNumNodes(
  10434. UINT WorkGraphIndex) = 0;
  10435. #if defined(_MSC_VER) || !defined(_WIN32)
  10436. virtual D3D12_NODE_ID STDMETHODCALLTYPE GetNodeID(
  10437. UINT WorkGraphIndex,
  10438. UINT NodeIndex) = 0;
  10439. #else
  10440. virtual D3D12_NODE_ID *STDMETHODCALLTYPE GetNodeID(
  10441. D3D12_NODE_ID * RetVal,
  10442. UINT WorkGraphIndex,
  10443. UINT NodeIndex) = 0;
  10444. #endif
  10445. virtual UINT STDMETHODCALLTYPE GetNodeIndex(
  10446. UINT WorkGraphIndex,
  10447. D3D12_NODE_ID NodeID) = 0;
  10448. virtual UINT STDMETHODCALLTYPE GetNodeLocalRootArgumentsTableIndex(
  10449. UINT WorkGraphIndex,
  10450. UINT NodeIndex) = 0;
  10451. virtual UINT STDMETHODCALLTYPE GetNumEntrypoints(
  10452. UINT WorkGraphIndex) = 0;
  10453. #if defined(_MSC_VER) || !defined(_WIN32)
  10454. virtual D3D12_NODE_ID STDMETHODCALLTYPE GetEntrypointID(
  10455. UINT WorkGraphIndex,
  10456. UINT EntrypointIndex) = 0;
  10457. #else
  10458. virtual D3D12_NODE_ID *STDMETHODCALLTYPE GetEntrypointID(
  10459. D3D12_NODE_ID * RetVal,
  10460. UINT WorkGraphIndex,
  10461. UINT EntrypointIndex) = 0;
  10462. #endif
  10463. virtual UINT STDMETHODCALLTYPE GetEntrypointIndex(
  10464. UINT WorkGraphIndex,
  10465. D3D12_NODE_ID NodeID) = 0;
  10466. virtual UINT STDMETHODCALLTYPE GetEntrypointRecordSizeInBytes(
  10467. UINT WorkGraphIndex,
  10468. UINT EntrypointIndex) = 0;
  10469. virtual void STDMETHODCALLTYPE GetWorkGraphMemoryRequirements(
  10470. UINT WorkGraphIndex,
  10471. _Out_ D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS *pWorkGraphMemoryRequirements) = 0;
  10472. virtual UINT STDMETHODCALLTYPE GetEntrypointRecordAlignmentInBytes(
  10473. UINT WorkGraphIndex,
  10474. UINT EntrypointIndex) = 0;
  10475. };
  10476. #else /* C style interface */
  10477. typedef struct ID3D12WorkGraphPropertiesVtbl
  10478. {
  10479. BEGIN_INTERFACE
  10480. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10481. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10482. ID3D12WorkGraphProperties * This,
  10483. REFIID riid,
  10484. _COM_Outptr_ void **ppvObject);
  10485. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10486. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10487. ID3D12WorkGraphProperties * This);
  10488. DECLSPEC_XFGVIRT(IUnknown, Release)
  10489. ULONG ( STDMETHODCALLTYPE *Release )(
  10490. ID3D12WorkGraphProperties * This);
  10491. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNumWorkGraphs)
  10492. UINT ( STDMETHODCALLTYPE *GetNumWorkGraphs )(
  10493. ID3D12WorkGraphProperties * This);
  10494. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetProgramName)
  10495. LPCWSTR ( STDMETHODCALLTYPE *GetProgramName )(
  10496. ID3D12WorkGraphProperties * This,
  10497. UINT WorkGraphIndex);
  10498. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetWorkGraphIndex)
  10499. UINT ( STDMETHODCALLTYPE *GetWorkGraphIndex )(
  10500. ID3D12WorkGraphProperties * This,
  10501. LPCWSTR pProgramName);
  10502. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNumNodes)
  10503. UINT ( STDMETHODCALLTYPE *GetNumNodes )(
  10504. ID3D12WorkGraphProperties * This,
  10505. UINT WorkGraphIndex);
  10506. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNodeID)
  10507. #if !defined(_WIN32)
  10508. D3D12_NODE_ID ( STDMETHODCALLTYPE *GetNodeID )(
  10509. ID3D12WorkGraphProperties * This,
  10510. UINT WorkGraphIndex,
  10511. UINT NodeIndex);
  10512. #else
  10513. D3D12_NODE_ID *( STDMETHODCALLTYPE *GetNodeID )(
  10514. ID3D12WorkGraphProperties * This,
  10515. D3D12_NODE_ID * RetVal,
  10516. UINT WorkGraphIndex,
  10517. UINT NodeIndex);
  10518. #endif
  10519. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNodeIndex)
  10520. UINT ( STDMETHODCALLTYPE *GetNodeIndex )(
  10521. ID3D12WorkGraphProperties * This,
  10522. UINT WorkGraphIndex,
  10523. D3D12_NODE_ID NodeID);
  10524. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNodeLocalRootArgumentsTableIndex)
  10525. UINT ( STDMETHODCALLTYPE *GetNodeLocalRootArgumentsTableIndex )(
  10526. ID3D12WorkGraphProperties * This,
  10527. UINT WorkGraphIndex,
  10528. UINT NodeIndex);
  10529. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNumEntrypoints)
  10530. UINT ( STDMETHODCALLTYPE *GetNumEntrypoints )(
  10531. ID3D12WorkGraphProperties * This,
  10532. UINT WorkGraphIndex);
  10533. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointID)
  10534. #if !defined(_WIN32)
  10535. D3D12_NODE_ID ( STDMETHODCALLTYPE *GetEntrypointID )(
  10536. ID3D12WorkGraphProperties * This,
  10537. UINT WorkGraphIndex,
  10538. UINT EntrypointIndex);
  10539. #else
  10540. D3D12_NODE_ID *( STDMETHODCALLTYPE *GetEntrypointID )(
  10541. ID3D12WorkGraphProperties * This,
  10542. D3D12_NODE_ID * RetVal,
  10543. UINT WorkGraphIndex,
  10544. UINT EntrypointIndex);
  10545. #endif
  10546. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointIndex)
  10547. UINT ( STDMETHODCALLTYPE *GetEntrypointIndex )(
  10548. ID3D12WorkGraphProperties * This,
  10549. UINT WorkGraphIndex,
  10550. D3D12_NODE_ID NodeID);
  10551. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointRecordSizeInBytes)
  10552. UINT ( STDMETHODCALLTYPE *GetEntrypointRecordSizeInBytes )(
  10553. ID3D12WorkGraphProperties * This,
  10554. UINT WorkGraphIndex,
  10555. UINT EntrypointIndex);
  10556. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetWorkGraphMemoryRequirements)
  10557. void ( STDMETHODCALLTYPE *GetWorkGraphMemoryRequirements )(
  10558. ID3D12WorkGraphProperties * This,
  10559. UINT WorkGraphIndex,
  10560. _Out_ D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS *pWorkGraphMemoryRequirements);
  10561. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointRecordAlignmentInBytes)
  10562. UINT ( STDMETHODCALLTYPE *GetEntrypointRecordAlignmentInBytes )(
  10563. ID3D12WorkGraphProperties * This,
  10564. UINT WorkGraphIndex,
  10565. UINT EntrypointIndex);
  10566. END_INTERFACE
  10567. } ID3D12WorkGraphPropertiesVtbl;
  10568. interface ID3D12WorkGraphProperties
  10569. {
  10570. CONST_VTBL struct ID3D12WorkGraphPropertiesVtbl *lpVtbl;
  10571. };
  10572. #ifdef COBJMACROS
  10573. #define ID3D12WorkGraphProperties_QueryInterface(This,riid,ppvObject) \
  10574. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10575. #define ID3D12WorkGraphProperties_AddRef(This) \
  10576. ( (This)->lpVtbl -> AddRef(This) )
  10577. #define ID3D12WorkGraphProperties_Release(This) \
  10578. ( (This)->lpVtbl -> Release(This) )
  10579. #define ID3D12WorkGraphProperties_GetNumWorkGraphs(This) \
  10580. ( (This)->lpVtbl -> GetNumWorkGraphs(This) )
  10581. #define ID3D12WorkGraphProperties_GetProgramName(This,WorkGraphIndex) \
  10582. ( (This)->lpVtbl -> GetProgramName(This,WorkGraphIndex) )
  10583. #define ID3D12WorkGraphProperties_GetWorkGraphIndex(This,pProgramName) \
  10584. ( (This)->lpVtbl -> GetWorkGraphIndex(This,pProgramName) )
  10585. #define ID3D12WorkGraphProperties_GetNumNodes(This,WorkGraphIndex) \
  10586. ( (This)->lpVtbl -> GetNumNodes(This,WorkGraphIndex) )
  10587. #if !defined(_WIN32)
  10588. #define ID3D12WorkGraphProperties_GetNodeID(This,WorkGraphIndex,NodeIndex) \
  10589. ( (This)->lpVtbl -> GetNodeID(This,WorkGraphIndex,NodeIndex) )
  10590. #else
  10591. #define ID3D12WorkGraphProperties_GetNodeID(This,RetVal,WorkGraphIndex,NodeIndex) \
  10592. ( (This)->lpVtbl -> GetNodeID(This,RetVal,WorkGraphIndex,NodeIndex) )
  10593. #endif
  10594. #define ID3D12WorkGraphProperties_GetNodeIndex(This,WorkGraphIndex,NodeID) \
  10595. ( (This)->lpVtbl -> GetNodeIndex(This,WorkGraphIndex,NodeID) )
  10596. #define ID3D12WorkGraphProperties_GetNodeLocalRootArgumentsTableIndex(This,WorkGraphIndex,NodeIndex) \
  10597. ( (This)->lpVtbl -> GetNodeLocalRootArgumentsTableIndex(This,WorkGraphIndex,NodeIndex) )
  10598. #define ID3D12WorkGraphProperties_GetNumEntrypoints(This,WorkGraphIndex) \
  10599. ( (This)->lpVtbl -> GetNumEntrypoints(This,WorkGraphIndex) )
  10600. #if !defined(_WIN32)
  10601. #define ID3D12WorkGraphProperties_GetEntrypointID(This,WorkGraphIndex,EntrypointIndex) \
  10602. ( (This)->lpVtbl -> GetEntrypointID(This,WorkGraphIndex,EntrypointIndex) )
  10603. #else
  10604. #define ID3D12WorkGraphProperties_GetEntrypointID(This,RetVal,WorkGraphIndex,EntrypointIndex) \
  10605. ( (This)->lpVtbl -> GetEntrypointID(This,RetVal,WorkGraphIndex,EntrypointIndex) )
  10606. #endif
  10607. #define ID3D12WorkGraphProperties_GetEntrypointIndex(This,WorkGraphIndex,NodeID) \
  10608. ( (This)->lpVtbl -> GetEntrypointIndex(This,WorkGraphIndex,NodeID) )
  10609. #define ID3D12WorkGraphProperties_GetEntrypointRecordSizeInBytes(This,WorkGraphIndex,EntrypointIndex) \
  10610. ( (This)->lpVtbl -> GetEntrypointRecordSizeInBytes(This,WorkGraphIndex,EntrypointIndex) )
  10611. #define ID3D12WorkGraphProperties_GetWorkGraphMemoryRequirements(This,WorkGraphIndex,pWorkGraphMemoryRequirements) \
  10612. ( (This)->lpVtbl -> GetWorkGraphMemoryRequirements(This,WorkGraphIndex,pWorkGraphMemoryRequirements) )
  10613. #define ID3D12WorkGraphProperties_GetEntrypointRecordAlignmentInBytes(This,WorkGraphIndex,EntrypointIndex) \
  10614. ( (This)->lpVtbl -> GetEntrypointRecordAlignmentInBytes(This,WorkGraphIndex,EntrypointIndex) )
  10615. #endif /* COBJMACROS */
  10616. #endif /* C style interface */
  10617. #endif /* __ID3D12WorkGraphProperties_INTERFACE_DEFINED__ */
  10618. /* interface __MIDL_itf_d3d12_0000_0036 */
  10619. /* [local] */
  10620. typedef
  10621. enum D3D12_STATE_SUBOBJECT_TYPE
  10622. {
  10623. D3D12_STATE_SUBOBJECT_TYPE_STATE_OBJECT_CONFIG = 0,
  10624. D3D12_STATE_SUBOBJECT_TYPE_GLOBAL_ROOT_SIGNATURE = 1,
  10625. D3D12_STATE_SUBOBJECT_TYPE_LOCAL_ROOT_SIGNATURE = 2,
  10626. D3D12_STATE_SUBOBJECT_TYPE_NODE_MASK = 3,
  10627. D3D12_STATE_SUBOBJECT_TYPE_DXIL_LIBRARY = 5,
  10628. D3D12_STATE_SUBOBJECT_TYPE_EXISTING_COLLECTION = 6,
  10629. D3D12_STATE_SUBOBJECT_TYPE_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 7,
  10630. D3D12_STATE_SUBOBJECT_TYPE_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 8,
  10631. D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_SHADER_CONFIG = 9,
  10632. D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG = 10,
  10633. D3D12_STATE_SUBOBJECT_TYPE_HIT_GROUP = 11,
  10634. D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1 = 12,
  10635. D3D12_STATE_SUBOBJECT_TYPE_WORK_GRAPH = 13,
  10636. D3D12_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT = 14,
  10637. D3D12_STATE_SUBOBJECT_TYPE_BLEND = 15,
  10638. D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_MASK = 16,
  10639. D3D12_STATE_SUBOBJECT_TYPE_RASTERIZER = 17,
  10640. D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL = 18,
  10641. D3D12_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT = 19,
  10642. D3D12_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE = 20,
  10643. D3D12_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY = 21,
  10644. D3D12_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS = 22,
  10645. D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT = 23,
  10646. D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_DESC = 24,
  10647. D3D12_STATE_SUBOBJECT_TYPE_FLAGS = 26,
  10648. D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 = 27,
  10649. D3D12_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING = 28,
  10650. D3D12_STATE_SUBOBJECT_TYPE_GENERIC_PROGRAM = 29,
  10651. D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 = 30,
  10652. D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID = ( D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 + 1 )
  10653. } D3D12_STATE_SUBOBJECT_TYPE;
  10654. typedef struct D3D12_STATE_SUBOBJECT
  10655. {
  10656. D3D12_STATE_SUBOBJECT_TYPE Type;
  10657. const void *pDesc;
  10658. } D3D12_STATE_SUBOBJECT;
  10659. typedef
  10660. enum D3D12_STATE_OBJECT_FLAGS
  10661. {
  10662. D3D12_STATE_OBJECT_FLAG_NONE = 0,
  10663. D3D12_STATE_OBJECT_FLAG_ALLOW_LOCAL_DEPENDENCIES_ON_EXTERNAL_DEFINITIONS = 0x1,
  10664. D3D12_STATE_OBJECT_FLAG_ALLOW_EXTERNAL_DEPENDENCIES_ON_LOCAL_DEFINITIONS = 0x2,
  10665. D3D12_STATE_OBJECT_FLAG_ALLOW_STATE_OBJECT_ADDITIONS = 0x4
  10666. } D3D12_STATE_OBJECT_FLAGS;
  10667. DEFINE_ENUM_FLAG_OPERATORS( D3D12_STATE_OBJECT_FLAGS )
  10668. typedef struct D3D12_STATE_OBJECT_CONFIG
  10669. {
  10670. D3D12_STATE_OBJECT_FLAGS Flags;
  10671. } D3D12_STATE_OBJECT_CONFIG;
  10672. typedef struct D3D12_GLOBAL_ROOT_SIGNATURE
  10673. {
  10674. ID3D12RootSignature *pGlobalRootSignature;
  10675. } D3D12_GLOBAL_ROOT_SIGNATURE;
  10676. typedef struct D3D12_LOCAL_ROOT_SIGNATURE
  10677. {
  10678. ID3D12RootSignature *pLocalRootSignature;
  10679. } D3D12_LOCAL_ROOT_SIGNATURE;
  10680. typedef struct D3D12_NODE_MASK
  10681. {
  10682. UINT NodeMask;
  10683. } D3D12_NODE_MASK;
  10684. typedef struct D3D12_SAMPLE_MASK
  10685. {
  10686. UINT SampleMask;
  10687. } D3D12_SAMPLE_MASK;
  10688. typedef struct D3D12_IB_STRIP_CUT_VALUE
  10689. {
  10690. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IndexBufferStripCutValue;
  10691. } D3D12_IB_STRIP_CUT_VALUE;
  10692. typedef struct D3D12_PRIMITIVE_TOPOLOGY_DESC
  10693. {
  10694. D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopology;
  10695. } D3D12_PRIMITIVE_TOPOLOGY_DESC;
  10696. typedef struct D3D12_DEPTH_STENCIL_FORMAT
  10697. {
  10698. DXGI_FORMAT DepthStencilFormat;
  10699. } D3D12_DEPTH_STENCIL_FORMAT;
  10700. typedef
  10701. enum D3D12_EXPORT_FLAGS
  10702. {
  10703. D3D12_EXPORT_FLAG_NONE = 0
  10704. } D3D12_EXPORT_FLAGS;
  10705. DEFINE_ENUM_FLAG_OPERATORS( D3D12_EXPORT_FLAGS )
  10706. typedef struct D3D12_EXPORT_DESC
  10707. {
  10708. LPCWSTR Name;
  10709. _In_opt_ LPCWSTR ExportToRename;
  10710. D3D12_EXPORT_FLAGS Flags;
  10711. } D3D12_EXPORT_DESC;
  10712. typedef struct D3D12_DXIL_LIBRARY_DESC
  10713. {
  10714. D3D12_SHADER_BYTECODE DXILLibrary;
  10715. UINT NumExports;
  10716. _In_reads_(NumExports) const D3D12_EXPORT_DESC *pExports;
  10717. } D3D12_DXIL_LIBRARY_DESC;
  10718. typedef struct D3D12_EXISTING_COLLECTION_DESC
  10719. {
  10720. ID3D12StateObject *pExistingCollection;
  10721. UINT NumExports;
  10722. _In_reads_(NumExports) const D3D12_EXPORT_DESC *pExports;
  10723. } D3D12_EXISTING_COLLECTION_DESC;
  10724. typedef struct D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION
  10725. {
  10726. const D3D12_STATE_SUBOBJECT *pSubobjectToAssociate;
  10727. UINT NumExports;
  10728. _In_reads_(NumExports) LPCWSTR *pExports;
  10729. } D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION;
  10730. typedef struct D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION
  10731. {
  10732. LPCWSTR SubobjectToAssociate;
  10733. UINT NumExports;
  10734. _In_reads_(NumExports) LPCWSTR *pExports;
  10735. } D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION;
  10736. typedef
  10737. enum D3D12_HIT_GROUP_TYPE
  10738. {
  10739. D3D12_HIT_GROUP_TYPE_TRIANGLES = 0,
  10740. D3D12_HIT_GROUP_TYPE_PROCEDURAL_PRIMITIVE = 0x1
  10741. } D3D12_HIT_GROUP_TYPE;
  10742. typedef struct D3D12_HIT_GROUP_DESC
  10743. {
  10744. LPCWSTR HitGroupExport;
  10745. D3D12_HIT_GROUP_TYPE Type;
  10746. _In_opt_ LPCWSTR AnyHitShaderImport;
  10747. _In_opt_ LPCWSTR ClosestHitShaderImport;
  10748. _In_opt_ LPCWSTR IntersectionShaderImport;
  10749. } D3D12_HIT_GROUP_DESC;
  10750. typedef struct D3D12_RAYTRACING_SHADER_CONFIG
  10751. {
  10752. UINT MaxPayloadSizeInBytes;
  10753. UINT MaxAttributeSizeInBytes;
  10754. } D3D12_RAYTRACING_SHADER_CONFIG;
  10755. typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG
  10756. {
  10757. UINT MaxTraceRecursionDepth;
  10758. } D3D12_RAYTRACING_PIPELINE_CONFIG;
  10759. typedef
  10760. enum D3D12_RAYTRACING_PIPELINE_FLAGS
  10761. {
  10762. D3D12_RAYTRACING_PIPELINE_FLAG_NONE = 0,
  10763. D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_TRIANGLES = 0x100,
  10764. D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200
  10765. } D3D12_RAYTRACING_PIPELINE_FLAGS;
  10766. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_PIPELINE_FLAGS )
  10767. typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG1
  10768. {
  10769. UINT MaxTraceRecursionDepth;
  10770. D3D12_RAYTRACING_PIPELINE_FLAGS Flags;
  10771. } D3D12_RAYTRACING_PIPELINE_CONFIG1;
  10772. typedef struct D3D12_NODE_OUTPUT_OVERRIDES
  10773. {
  10774. UINT OutputIndex;
  10775. _In_opt_ const D3D12_NODE_ID *pNewName;
  10776. _In_opt_ const BOOL *pAllowSparseNodes;
  10777. _In_opt_ const UINT *pMaxRecords;
  10778. _In_opt_ const UINT *pMaxRecordsSharedWithOutputIndex;
  10779. } D3D12_NODE_OUTPUT_OVERRIDES;
  10780. typedef struct D3D12_BROADCASTING_LAUNCH_OVERRIDES
  10781. {
  10782. _In_opt_ const UINT *pLocalRootArgumentsTableIndex;
  10783. _In_opt_ const BOOL *pProgramEntry;
  10784. _In_opt_ const D3D12_NODE_ID *pNewName;
  10785. _In_opt_ const D3D12_NODE_ID *pShareInputOf;
  10786. _In_reads_opt_(3) const UINT *pDispatchGrid;
  10787. _In_reads_opt_(3) const UINT *pMaxDispatchGrid;
  10788. UINT NumOutputOverrides;
  10789. _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides;
  10790. } D3D12_BROADCASTING_LAUNCH_OVERRIDES;
  10791. typedef struct D3D12_COALESCING_LAUNCH_OVERRIDES
  10792. {
  10793. _In_opt_ const UINT *pLocalRootArgumentsTableIndex;
  10794. _In_opt_ const BOOL *pProgramEntry;
  10795. _In_opt_ const D3D12_NODE_ID *pNewName;
  10796. _In_opt_ const D3D12_NODE_ID *pShareInputOf;
  10797. UINT NumOutputOverrides;
  10798. _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides;
  10799. } D3D12_COALESCING_LAUNCH_OVERRIDES;
  10800. typedef struct D3D12_THREAD_LAUNCH_OVERRIDES
  10801. {
  10802. _In_opt_ const UINT *pLocalRootArgumentsTableIndex;
  10803. _In_opt_ const BOOL *pProgramEntry;
  10804. _In_opt_ const D3D12_NODE_ID *pNewName;
  10805. _In_opt_ const D3D12_NODE_ID *pShareInputOf;
  10806. UINT NumOutputOverrides;
  10807. _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides;
  10808. } D3D12_THREAD_LAUNCH_OVERRIDES;
  10809. typedef struct D3D12_COMMON_COMPUTE_NODE_OVERRIDES
  10810. {
  10811. _In_opt_ const UINT *pLocalRootArgumentsTableIndex;
  10812. _In_opt_ const BOOL *pProgramEntry;
  10813. _In_opt_ const D3D12_NODE_ID *pNewName;
  10814. _In_opt_ const D3D12_NODE_ID *pShareInputOf;
  10815. UINT NumOutputOverrides;
  10816. _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides;
  10817. } D3D12_COMMON_COMPUTE_NODE_OVERRIDES;
  10818. typedef
  10819. enum D3D12_NODE_OVERRIDES_TYPE
  10820. {
  10821. D3D12_NODE_OVERRIDES_TYPE_NONE = 0,
  10822. D3D12_NODE_OVERRIDES_TYPE_BROADCASTING_LAUNCH = 1,
  10823. D3D12_NODE_OVERRIDES_TYPE_COALESCING_LAUNCH = 2,
  10824. D3D12_NODE_OVERRIDES_TYPE_THREAD_LAUNCH = 3,
  10825. D3D12_NODE_OVERRIDES_TYPE_COMMON_COMPUTE = 4
  10826. } D3D12_NODE_OVERRIDES_TYPE;
  10827. typedef struct D3D12_SHADER_NODE
  10828. {
  10829. LPCWSTR Shader;
  10830. D3D12_NODE_OVERRIDES_TYPE OverridesType;
  10831. union
  10832. {
  10833. const D3D12_BROADCASTING_LAUNCH_OVERRIDES *pBroadcastingLaunchOverrides;
  10834. const D3D12_COALESCING_LAUNCH_OVERRIDES *pCoalescingLaunchOverrides;
  10835. const D3D12_THREAD_LAUNCH_OVERRIDES *pThreadLaunchOverrides;
  10836. const D3D12_COMMON_COMPUTE_NODE_OVERRIDES *pCommonComputeNodeOverrides;
  10837. } ;
  10838. } D3D12_SHADER_NODE;
  10839. typedef
  10840. enum D3D12_NODE_TYPE
  10841. {
  10842. D3D12_NODE_TYPE_SHADER = 0
  10843. } D3D12_NODE_TYPE;
  10844. typedef struct D3D12_NODE
  10845. {
  10846. D3D12_NODE_TYPE NodeType;
  10847. union
  10848. {
  10849. D3D12_SHADER_NODE Shader;
  10850. } ;
  10851. } D3D12_NODE;
  10852. typedef
  10853. enum D3D12_WORK_GRAPH_FLAGS
  10854. {
  10855. D3D12_WORK_GRAPH_FLAG_NONE = 0,
  10856. D3D12_WORK_GRAPH_FLAG_INCLUDE_ALL_AVAILABLE_NODES = 0x1
  10857. } D3D12_WORK_GRAPH_FLAGS;
  10858. DEFINE_ENUM_FLAG_OPERATORS( D3D12_WORK_GRAPH_FLAGS )
  10859. typedef struct D3D12_WORK_GRAPH_DESC
  10860. {
  10861. LPCWSTR ProgramName;
  10862. D3D12_WORK_GRAPH_FLAGS Flags;
  10863. UINT NumEntrypoints;
  10864. _In_reads_opt_(NumEntrypoints) const D3D12_NODE_ID *pEntrypoints;
  10865. UINT NumExplicitlyDefinedNodes;
  10866. _In_reads_opt_(NumExplicitlyDefinedNodes) const D3D12_NODE *pExplicitlyDefinedNodes;
  10867. } D3D12_WORK_GRAPH_DESC;
  10868. typedef struct D3D12_GENERIC_PROGRAM_DESC
  10869. {
  10870. LPCWSTR ProgramName;
  10871. UINT NumExports;
  10872. _In_reads_(NumExports) LPCWSTR *pExports;
  10873. UINT NumSubobjects;
  10874. _In_reads_opt_(NumSubobjects) const D3D12_STATE_SUBOBJECT *const *ppSubobjects;
  10875. } D3D12_GENERIC_PROGRAM_DESC;
  10876. typedef
  10877. enum D3D12_STATE_OBJECT_TYPE
  10878. {
  10879. D3D12_STATE_OBJECT_TYPE_COLLECTION = 0,
  10880. D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE = 3,
  10881. D3D12_STATE_OBJECT_TYPE_EXECUTABLE = 4
  10882. } D3D12_STATE_OBJECT_TYPE;
  10883. typedef struct D3D12_STATE_OBJECT_DESC
  10884. {
  10885. D3D12_STATE_OBJECT_TYPE Type;
  10886. UINT NumSubobjects;
  10887. _In_reads_(NumSubobjects) const D3D12_STATE_SUBOBJECT *pSubobjects;
  10888. } D3D12_STATE_OBJECT_DESC;
  10889. typedef
  10890. enum D3D12_RAYTRACING_GEOMETRY_FLAGS
  10891. {
  10892. D3D12_RAYTRACING_GEOMETRY_FLAG_NONE = 0,
  10893. D3D12_RAYTRACING_GEOMETRY_FLAG_OPAQUE = 0x1,
  10894. D3D12_RAYTRACING_GEOMETRY_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION = 0x2
  10895. } D3D12_RAYTRACING_GEOMETRY_FLAGS;
  10896. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_GEOMETRY_FLAGS )
  10897. typedef
  10898. enum D3D12_RAYTRACING_GEOMETRY_TYPE
  10899. {
  10900. D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES = 0,
  10901. D3D12_RAYTRACING_GEOMETRY_TYPE_PROCEDURAL_PRIMITIVE_AABBS = ( D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES + 1 )
  10902. } D3D12_RAYTRACING_GEOMETRY_TYPE;
  10903. typedef
  10904. enum D3D12_RAYTRACING_INSTANCE_FLAGS
  10905. {
  10906. D3D12_RAYTRACING_INSTANCE_FLAG_NONE = 0,
  10907. D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_CULL_DISABLE = 0x1,
  10908. D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_FRONT_COUNTERCLOCKWISE = 0x2,
  10909. D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_OPAQUE = 0x4,
  10910. D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_NON_OPAQUE = 0x8
  10911. } D3D12_RAYTRACING_INSTANCE_FLAGS;
  10912. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_INSTANCE_FLAGS )
  10913. typedef struct D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE
  10914. {
  10915. D3D12_GPU_VIRTUAL_ADDRESS StartAddress;
  10916. UINT64 StrideInBytes;
  10917. } D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE;
  10918. typedef struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE
  10919. {
  10920. D3D12_GPU_VIRTUAL_ADDRESS StartAddress;
  10921. UINT64 SizeInBytes;
  10922. } D3D12_GPU_VIRTUAL_ADDRESS_RANGE;
  10923. typedef struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE
  10924. {
  10925. D3D12_GPU_VIRTUAL_ADDRESS StartAddress;
  10926. UINT64 SizeInBytes;
  10927. UINT64 StrideInBytes;
  10928. } D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE;
  10929. typedef struct D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC
  10930. {
  10931. D3D12_GPU_VIRTUAL_ADDRESS Transform3x4;
  10932. DXGI_FORMAT IndexFormat;
  10933. DXGI_FORMAT VertexFormat;
  10934. UINT IndexCount;
  10935. UINT VertexCount;
  10936. D3D12_GPU_VIRTUAL_ADDRESS IndexBuffer;
  10937. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE VertexBuffer;
  10938. } D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC;
  10939. typedef struct D3D12_RAYTRACING_AABB
  10940. {
  10941. FLOAT MinX;
  10942. FLOAT MinY;
  10943. FLOAT MinZ;
  10944. FLOAT MaxX;
  10945. FLOAT MaxY;
  10946. FLOAT MaxZ;
  10947. } D3D12_RAYTRACING_AABB;
  10948. typedef struct D3D12_RAYTRACING_GEOMETRY_AABBS_DESC
  10949. {
  10950. UINT64 AABBCount;
  10951. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE AABBs;
  10952. } D3D12_RAYTRACING_GEOMETRY_AABBS_DESC;
  10953. typedef
  10954. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS
  10955. {
  10956. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_NONE = 0,
  10957. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_UPDATE = 0x1,
  10958. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_COMPACTION = 0x2,
  10959. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_TRACE = 0x4,
  10960. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_BUILD = 0x8,
  10961. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_MINIMIZE_MEMORY = 0x10,
  10962. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PERFORM_UPDATE = 0x20
  10963. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS;
  10964. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS )
  10965. typedef
  10966. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE
  10967. {
  10968. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_CLONE = 0,
  10969. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_COMPACT = 0x1,
  10970. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_VISUALIZATION_DECODE_FOR_TOOLS = 0x2,
  10971. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_SERIALIZE = 0x3,
  10972. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_DESERIALIZE = 0x4
  10973. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE;
  10974. typedef
  10975. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE
  10976. {
  10977. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL = 0,
  10978. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL = 0x1
  10979. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE;
  10980. typedef
  10981. enum D3D12_ELEMENTS_LAYOUT
  10982. {
  10983. D3D12_ELEMENTS_LAYOUT_ARRAY = 0,
  10984. D3D12_ELEMENTS_LAYOUT_ARRAY_OF_POINTERS = 0x1
  10985. } D3D12_ELEMENTS_LAYOUT;
  10986. typedef
  10987. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE
  10988. {
  10989. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE = 0,
  10990. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION = 0x1,
  10991. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION = 0x2,
  10992. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE = 0x3
  10993. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE;
  10994. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC
  10995. {
  10996. D3D12_GPU_VIRTUAL_ADDRESS DestBuffer;
  10997. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE InfoType;
  10998. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC;
  10999. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC
  11000. {
  11001. UINT64 CompactedSizeInBytes;
  11002. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC;
  11003. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC
  11004. {
  11005. UINT64 DecodedSizeInBytes;
  11006. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC;
  11007. typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER
  11008. {
  11009. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type;
  11010. UINT NumDescs;
  11011. } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER;
  11012. // Regarding D3D12_BUILD_RAY_TRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER above,
  11013. // depending on Type field, NumDescs above is followed by either:
  11014. // D3D12_RAY_TRACING_INSTANCE_DESC InstanceDescs[NumDescs]
  11015. // or D3D12_RAY_TRACING_GEOMETRY_DESC GeometryDescs[NumDescs].
  11016. // There is 4 bytes of padding between GeometryDesc structs in the array so alignment is natural when viewed by CPU.
  11017. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC
  11018. {
  11019. UINT64 SerializedSizeInBytes;
  11020. UINT64 NumBottomLevelAccelerationStructurePointers;
  11021. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC;
  11022. typedef struct D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER
  11023. {
  11024. GUID DriverOpaqueGUID;
  11025. BYTE DriverOpaqueVersioningData[ 16 ];
  11026. } D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER;
  11027. typedef
  11028. enum D3D12_SERIALIZED_DATA_TYPE
  11029. {
  11030. D3D12_SERIALIZED_DATA_RAYTRACING_ACCELERATION_STRUCTURE = 0
  11031. } D3D12_SERIALIZED_DATA_TYPE;
  11032. typedef
  11033. enum D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS
  11034. {
  11035. D3D12_DRIVER_MATCHING_IDENTIFIER_COMPATIBLE_WITH_DEVICE = 0,
  11036. D3D12_DRIVER_MATCHING_IDENTIFIER_UNSUPPORTED_TYPE = 0x1,
  11037. D3D12_DRIVER_MATCHING_IDENTIFIER_UNRECOGNIZED = 0x2,
  11038. D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_VERSION = 0x3,
  11039. D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_TYPE = 0x4
  11040. } D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS;
  11041. typedef struct D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER
  11042. {
  11043. D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER DriverMatchingIdentifier;
  11044. UINT64 SerializedSizeInBytesIncludingHeader;
  11045. UINT64 DeserializedSizeInBytes;
  11046. UINT64 NumBottomLevelAccelerationStructurePointersAfterHeader;
  11047. } D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER;
  11048. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC
  11049. {
  11050. UINT64 CurrentSizeInBytes;
  11051. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC;
  11052. typedef struct D3D12_RAYTRACING_INSTANCE_DESC
  11053. {
  11054. FLOAT Transform[ 3 ][ 4 ];
  11055. UINT InstanceID : 24;
  11056. UINT InstanceMask : 8;
  11057. UINT InstanceContributionToHitGroupIndex : 24;
  11058. UINT Flags : 8;
  11059. D3D12_GPU_VIRTUAL_ADDRESS AccelerationStructure;
  11060. } D3D12_RAYTRACING_INSTANCE_DESC;
  11061. typedef struct D3D12_RAYTRACING_GEOMETRY_DESC
  11062. {
  11063. D3D12_RAYTRACING_GEOMETRY_TYPE Type;
  11064. D3D12_RAYTRACING_GEOMETRY_FLAGS Flags;
  11065. union
  11066. {
  11067. D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC Triangles;
  11068. D3D12_RAYTRACING_GEOMETRY_AABBS_DESC AABBs;
  11069. } ;
  11070. } D3D12_RAYTRACING_GEOMETRY_DESC;
  11071. typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS
  11072. {
  11073. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type;
  11074. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS Flags;
  11075. UINT NumDescs;
  11076. D3D12_ELEMENTS_LAYOUT DescsLayout;
  11077. union
  11078. {
  11079. D3D12_GPU_VIRTUAL_ADDRESS InstanceDescs;
  11080. const D3D12_RAYTRACING_GEOMETRY_DESC *pGeometryDescs;
  11081. const D3D12_RAYTRACING_GEOMETRY_DESC *const *ppGeometryDescs;
  11082. } ;
  11083. } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS;
  11084. typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC
  11085. {
  11086. D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData;
  11087. D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS Inputs;
  11088. _In_opt_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData;
  11089. D3D12_GPU_VIRTUAL_ADDRESS ScratchAccelerationStructureData;
  11090. } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC;
  11091. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO
  11092. {
  11093. UINT64 ResultDataMaxSizeInBytes;
  11094. UINT64 ScratchDataSizeInBytes;
  11095. UINT64 UpdateScratchDataSizeInBytes;
  11096. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO;
  11097. typedef
  11098. enum D3D12_RAY_FLAGS
  11099. {
  11100. D3D12_RAY_FLAG_NONE = 0,
  11101. D3D12_RAY_FLAG_FORCE_OPAQUE = 0x1,
  11102. D3D12_RAY_FLAG_FORCE_NON_OPAQUE = 0x2,
  11103. D3D12_RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH = 0x4,
  11104. D3D12_RAY_FLAG_SKIP_CLOSEST_HIT_SHADER = 0x8,
  11105. D3D12_RAY_FLAG_CULL_BACK_FACING_TRIANGLES = 0x10,
  11106. D3D12_RAY_FLAG_CULL_FRONT_FACING_TRIANGLES = 0x20,
  11107. D3D12_RAY_FLAG_CULL_OPAQUE = 0x40,
  11108. D3D12_RAY_FLAG_CULL_NON_OPAQUE = 0x80,
  11109. D3D12_RAY_FLAG_SKIP_TRIANGLES = 0x100,
  11110. D3D12_RAY_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200
  11111. } D3D12_RAY_FLAGS;
  11112. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAY_FLAGS )
  11113. typedef
  11114. enum D3D12_HIT_KIND
  11115. {
  11116. D3D12_HIT_KIND_TRIANGLE_FRONT_FACE = 0xfe,
  11117. D3D12_HIT_KIND_TRIANGLE_BACK_FACE = 0xff
  11118. } D3D12_HIT_KIND;
  11119. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0036_v0_0_c_ifspec;
  11120. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0036_v0_0_s_ifspec;
  11121. #ifndef __ID3D12Device5_INTERFACE_DEFINED__
  11122. #define __ID3D12Device5_INTERFACE_DEFINED__
  11123. /* interface ID3D12Device5 */
  11124. /* [unique][local][object][uuid] */
  11125. EXTERN_C const IID IID_ID3D12Device5;
  11126. #if defined(__cplusplus) && !defined(CINTERFACE)
  11127. MIDL_INTERFACE("8b4f173b-2fea-4b80-8f58-4307191ab95d")
  11128. ID3D12Device5 : public ID3D12Device4
  11129. {
  11130. public:
  11131. virtual HRESULT STDMETHODCALLTYPE CreateLifetimeTracker(
  11132. _In_ ID3D12LifetimeOwner *pOwner,
  11133. REFIID riid,
  11134. _COM_Outptr_ void **ppvTracker) = 0;
  11135. virtual void STDMETHODCALLTYPE RemoveDevice( void) = 0;
  11136. virtual HRESULT STDMETHODCALLTYPE EnumerateMetaCommands(
  11137. _Inout_ UINT *pNumMetaCommands,
  11138. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs) = 0;
  11139. virtual HRESULT STDMETHODCALLTYPE EnumerateMetaCommandParameters(
  11140. _In_ REFGUID CommandId,
  11141. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  11142. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  11143. _Inout_ UINT *pParameterCount,
  11144. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs) = 0;
  11145. virtual HRESULT STDMETHODCALLTYPE CreateMetaCommand(
  11146. _In_ REFGUID CommandId,
  11147. _In_ UINT NodeMask,
  11148. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  11149. _In_ SIZE_T CreationParametersDataSizeInBytes,
  11150. REFIID riid,
  11151. _COM_Outptr_ void **ppMetaCommand) = 0;
  11152. virtual HRESULT STDMETHODCALLTYPE CreateStateObject(
  11153. const D3D12_STATE_OBJECT_DESC *pDesc,
  11154. REFIID riid,
  11155. _COM_Outptr_ void **ppStateObject) = 0;
  11156. virtual void STDMETHODCALLTYPE GetRaytracingAccelerationStructurePrebuildInfo(
  11157. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  11158. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo) = 0;
  11159. virtual D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS STDMETHODCALLTYPE CheckDriverMatchingIdentifier(
  11160. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  11161. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck) = 0;
  11162. };
  11163. #else /* C style interface */
  11164. typedef struct ID3D12Device5Vtbl
  11165. {
  11166. BEGIN_INTERFACE
  11167. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  11168. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11169. ID3D12Device5 * This,
  11170. REFIID riid,
  11171. _COM_Outptr_ void **ppvObject);
  11172. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  11173. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11174. ID3D12Device5 * This);
  11175. DECLSPEC_XFGVIRT(IUnknown, Release)
  11176. ULONG ( STDMETHODCALLTYPE *Release )(
  11177. ID3D12Device5 * This);
  11178. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  11179. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  11180. ID3D12Device5 * This,
  11181. _In_ REFGUID guid,
  11182. _Inout_ UINT *pDataSize,
  11183. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  11184. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  11185. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  11186. ID3D12Device5 * This,
  11187. _In_ REFGUID guid,
  11188. _In_ UINT DataSize,
  11189. _In_reads_bytes_opt_( DataSize ) const void *pData);
  11190. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  11191. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  11192. ID3D12Device5 * This,
  11193. _In_ REFGUID guid,
  11194. _In_opt_ const IUnknown *pData);
  11195. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  11196. HRESULT ( STDMETHODCALLTYPE *SetName )(
  11197. ID3D12Device5 * This,
  11198. _In_z_ LPCWSTR Name);
  11199. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  11200. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  11201. ID3D12Device5 * This);
  11202. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  11203. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  11204. ID3D12Device5 * This,
  11205. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  11206. REFIID riid,
  11207. _COM_Outptr_ void **ppCommandQueue);
  11208. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  11209. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  11210. ID3D12Device5 * This,
  11211. _In_ D3D12_COMMAND_LIST_TYPE type,
  11212. REFIID riid,
  11213. _COM_Outptr_ void **ppCommandAllocator);
  11214. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  11215. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  11216. ID3D12Device5 * This,
  11217. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  11218. REFIID riid,
  11219. _COM_Outptr_ void **ppPipelineState);
  11220. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  11221. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  11222. ID3D12Device5 * This,
  11223. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  11224. REFIID riid,
  11225. _COM_Outptr_ void **ppPipelineState);
  11226. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  11227. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  11228. ID3D12Device5 * This,
  11229. _In_ UINT nodeMask,
  11230. _In_ D3D12_COMMAND_LIST_TYPE type,
  11231. _In_ ID3D12CommandAllocator *pCommandAllocator,
  11232. _In_opt_ ID3D12PipelineState *pInitialState,
  11233. REFIID riid,
  11234. _COM_Outptr_ void **ppCommandList);
  11235. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  11236. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  11237. ID3D12Device5 * This,
  11238. D3D12_FEATURE Feature,
  11239. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  11240. UINT FeatureSupportDataSize);
  11241. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  11242. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  11243. ID3D12Device5 * This,
  11244. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  11245. REFIID riid,
  11246. _COM_Outptr_ void **ppvHeap);
  11247. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  11248. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  11249. ID3D12Device5 * This,
  11250. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  11251. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  11252. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  11253. ID3D12Device5 * This,
  11254. _In_ UINT nodeMask,
  11255. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  11256. _In_ SIZE_T blobLengthInBytes,
  11257. REFIID riid,
  11258. _COM_Outptr_ void **ppvRootSignature);
  11259. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  11260. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  11261. ID3D12Device5 * This,
  11262. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  11263. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11264. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  11265. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  11266. ID3D12Device5 * This,
  11267. _In_opt_ ID3D12Resource *pResource,
  11268. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  11269. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11270. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  11271. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  11272. ID3D12Device5 * This,
  11273. _In_opt_ ID3D12Resource *pResource,
  11274. _In_opt_ ID3D12Resource *pCounterResource,
  11275. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  11276. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11277. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  11278. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  11279. ID3D12Device5 * This,
  11280. _In_opt_ ID3D12Resource *pResource,
  11281. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  11282. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11283. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  11284. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  11285. ID3D12Device5 * This,
  11286. _In_opt_ ID3D12Resource *pResource,
  11287. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  11288. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11289. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  11290. void ( STDMETHODCALLTYPE *CreateSampler )(
  11291. ID3D12Device5 * This,
  11292. _In_ const D3D12_SAMPLER_DESC *pDesc,
  11293. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11294. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  11295. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  11296. ID3D12Device5 * This,
  11297. _In_ UINT NumDestDescriptorRanges,
  11298. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  11299. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  11300. _In_ UINT NumSrcDescriptorRanges,
  11301. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  11302. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  11303. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  11304. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  11305. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  11306. ID3D12Device5 * This,
  11307. _In_ UINT NumDescriptors,
  11308. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  11309. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  11310. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  11311. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  11312. #if !defined(_WIN32)
  11313. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  11314. ID3D12Device5 * This,
  11315. _In_ UINT visibleMask,
  11316. _In_ UINT numResourceDescs,
  11317. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  11318. #else
  11319. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  11320. ID3D12Device5 * This,
  11321. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  11322. _In_ UINT visibleMask,
  11323. _In_ UINT numResourceDescs,
  11324. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  11325. #endif
  11326. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  11327. #if !defined(_WIN32)
  11328. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  11329. ID3D12Device5 * This,
  11330. _In_ UINT nodeMask,
  11331. D3D12_HEAP_TYPE heapType);
  11332. #else
  11333. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  11334. ID3D12Device5 * This,
  11335. D3D12_HEAP_PROPERTIES * RetVal,
  11336. _In_ UINT nodeMask,
  11337. D3D12_HEAP_TYPE heapType);
  11338. #endif
  11339. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  11340. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  11341. ID3D12Device5 * This,
  11342. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  11343. D3D12_HEAP_FLAGS HeapFlags,
  11344. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11345. D3D12_RESOURCE_STATES InitialResourceState,
  11346. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11347. REFIID riidResource,
  11348. _COM_Outptr_opt_ void **ppvResource);
  11349. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  11350. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  11351. ID3D12Device5 * This,
  11352. _In_ const D3D12_HEAP_DESC *pDesc,
  11353. REFIID riid,
  11354. _COM_Outptr_opt_ void **ppvHeap);
  11355. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  11356. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  11357. ID3D12Device5 * This,
  11358. _In_ ID3D12Heap *pHeap,
  11359. UINT64 HeapOffset,
  11360. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11361. D3D12_RESOURCE_STATES InitialState,
  11362. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11363. REFIID riid,
  11364. _COM_Outptr_opt_ void **ppvResource);
  11365. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  11366. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  11367. ID3D12Device5 * This,
  11368. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11369. D3D12_RESOURCE_STATES InitialState,
  11370. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11371. REFIID riid,
  11372. _COM_Outptr_opt_ void **ppvResource);
  11373. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  11374. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  11375. ID3D12Device5 * This,
  11376. _In_ ID3D12DeviceChild *pObject,
  11377. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  11378. DWORD Access,
  11379. _In_opt_ LPCWSTR Name,
  11380. _Out_ HANDLE *pHandle);
  11381. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  11382. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  11383. ID3D12Device5 * This,
  11384. _In_ HANDLE NTHandle,
  11385. REFIID riid,
  11386. _COM_Outptr_opt_ void **ppvObj);
  11387. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  11388. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  11389. ID3D12Device5 * This,
  11390. _In_ LPCWSTR Name,
  11391. DWORD Access,
  11392. /* [annotation][out] */
  11393. _Out_ HANDLE *pNTHandle);
  11394. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  11395. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  11396. ID3D12Device5 * This,
  11397. UINT NumObjects,
  11398. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  11399. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  11400. HRESULT ( STDMETHODCALLTYPE *Evict )(
  11401. ID3D12Device5 * This,
  11402. UINT NumObjects,
  11403. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  11404. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  11405. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  11406. ID3D12Device5 * This,
  11407. UINT64 InitialValue,
  11408. D3D12_FENCE_FLAGS Flags,
  11409. REFIID riid,
  11410. _COM_Outptr_ void **ppFence);
  11411. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  11412. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  11413. ID3D12Device5 * This);
  11414. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  11415. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  11416. ID3D12Device5 * This,
  11417. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  11418. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  11419. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  11420. UINT64 BaseOffset,
  11421. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  11422. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  11423. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  11424. _Out_opt_ UINT64 *pTotalBytes);
  11425. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  11426. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  11427. ID3D12Device5 * This,
  11428. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  11429. REFIID riid,
  11430. _COM_Outptr_opt_ void **ppvHeap);
  11431. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  11432. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  11433. ID3D12Device5 * This,
  11434. BOOL Enable);
  11435. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  11436. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  11437. ID3D12Device5 * This,
  11438. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  11439. _In_opt_ ID3D12RootSignature *pRootSignature,
  11440. REFIID riid,
  11441. _COM_Outptr_opt_ void **ppvCommandSignature);
  11442. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  11443. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  11444. ID3D12Device5 * This,
  11445. _In_ ID3D12Resource *pTiledResource,
  11446. _Out_opt_ UINT *pNumTilesForEntireResource,
  11447. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  11448. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  11449. _Inout_opt_ UINT *pNumSubresourceTilings,
  11450. _In_ UINT FirstSubresourceTilingToGet,
  11451. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  11452. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  11453. #if !defined(_WIN32)
  11454. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  11455. ID3D12Device5 * This);
  11456. #else
  11457. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  11458. ID3D12Device5 * This,
  11459. LUID * RetVal);
  11460. #endif
  11461. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  11462. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  11463. ID3D12Device5 * This,
  11464. _In_reads_(BlobLength) const void *pLibraryBlob,
  11465. SIZE_T BlobLength,
  11466. REFIID riid,
  11467. _COM_Outptr_ void **ppPipelineLibrary);
  11468. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  11469. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  11470. ID3D12Device5 * This,
  11471. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  11472. _In_reads_(NumFences) const UINT64 *pFenceValues,
  11473. UINT NumFences,
  11474. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  11475. HANDLE hEvent);
  11476. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  11477. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  11478. ID3D12Device5 * This,
  11479. UINT NumObjects,
  11480. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  11481. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  11482. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  11483. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  11484. ID3D12Device5 * This,
  11485. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  11486. REFIID riid,
  11487. _COM_Outptr_ void **ppPipelineState);
  11488. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  11489. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  11490. ID3D12Device5 * This,
  11491. _In_ const void *pAddress,
  11492. REFIID riid,
  11493. _COM_Outptr_ void **ppvHeap);
  11494. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  11495. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  11496. ID3D12Device5 * This,
  11497. _In_ HANDLE hFileMapping,
  11498. REFIID riid,
  11499. _COM_Outptr_ void **ppvHeap);
  11500. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  11501. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  11502. ID3D12Device5 * This,
  11503. D3D12_RESIDENCY_FLAGS Flags,
  11504. UINT NumObjects,
  11505. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  11506. _In_ ID3D12Fence *pFenceToSignal,
  11507. UINT64 FenceValueToSignal);
  11508. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  11509. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  11510. ID3D12Device5 * This,
  11511. _In_ UINT nodeMask,
  11512. _In_ D3D12_COMMAND_LIST_TYPE type,
  11513. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  11514. REFIID riid,
  11515. _COM_Outptr_ void **ppCommandList);
  11516. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  11517. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  11518. ID3D12Device5 * This,
  11519. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  11520. _In_ REFIID riid,
  11521. _COM_Outptr_ void **ppSession);
  11522. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  11523. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  11524. ID3D12Device5 * This,
  11525. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  11526. D3D12_HEAP_FLAGS HeapFlags,
  11527. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11528. D3D12_RESOURCE_STATES InitialResourceState,
  11529. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11530. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  11531. REFIID riidResource,
  11532. _COM_Outptr_opt_ void **ppvResource);
  11533. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  11534. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  11535. ID3D12Device5 * This,
  11536. _In_ const D3D12_HEAP_DESC *pDesc,
  11537. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  11538. REFIID riid,
  11539. _COM_Outptr_opt_ void **ppvHeap);
  11540. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  11541. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  11542. ID3D12Device5 * This,
  11543. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11544. D3D12_RESOURCE_STATES InitialState,
  11545. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11546. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  11547. REFIID riid,
  11548. _COM_Outptr_opt_ void **ppvResource);
  11549. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  11550. #if !defined(_WIN32)
  11551. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  11552. ID3D12Device5 * This,
  11553. UINT visibleMask,
  11554. UINT numResourceDescs,
  11555. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  11556. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  11557. #else
  11558. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  11559. ID3D12Device5 * This,
  11560. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  11561. UINT visibleMask,
  11562. UINT numResourceDescs,
  11563. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  11564. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  11565. #endif
  11566. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  11567. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  11568. ID3D12Device5 * This,
  11569. _In_ ID3D12LifetimeOwner *pOwner,
  11570. REFIID riid,
  11571. _COM_Outptr_ void **ppvTracker);
  11572. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  11573. void ( STDMETHODCALLTYPE *RemoveDevice )(
  11574. ID3D12Device5 * This);
  11575. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  11576. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  11577. ID3D12Device5 * This,
  11578. _Inout_ UINT *pNumMetaCommands,
  11579. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  11580. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  11581. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  11582. ID3D12Device5 * This,
  11583. _In_ REFGUID CommandId,
  11584. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  11585. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  11586. _Inout_ UINT *pParameterCount,
  11587. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  11588. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  11589. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  11590. ID3D12Device5 * This,
  11591. _In_ REFGUID CommandId,
  11592. _In_ UINT NodeMask,
  11593. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  11594. _In_ SIZE_T CreationParametersDataSizeInBytes,
  11595. REFIID riid,
  11596. _COM_Outptr_ void **ppMetaCommand);
  11597. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  11598. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  11599. ID3D12Device5 * This,
  11600. const D3D12_STATE_OBJECT_DESC *pDesc,
  11601. REFIID riid,
  11602. _COM_Outptr_ void **ppStateObject);
  11603. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  11604. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  11605. ID3D12Device5 * This,
  11606. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  11607. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  11608. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  11609. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  11610. ID3D12Device5 * This,
  11611. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  11612. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  11613. END_INTERFACE
  11614. } ID3D12Device5Vtbl;
  11615. interface ID3D12Device5
  11616. {
  11617. CONST_VTBL struct ID3D12Device5Vtbl *lpVtbl;
  11618. };
  11619. #ifdef COBJMACROS
  11620. #define ID3D12Device5_QueryInterface(This,riid,ppvObject) \
  11621. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  11622. #define ID3D12Device5_AddRef(This) \
  11623. ( (This)->lpVtbl -> AddRef(This) )
  11624. #define ID3D12Device5_Release(This) \
  11625. ( (This)->lpVtbl -> Release(This) )
  11626. #define ID3D12Device5_GetPrivateData(This,guid,pDataSize,pData) \
  11627. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  11628. #define ID3D12Device5_SetPrivateData(This,guid,DataSize,pData) \
  11629. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  11630. #define ID3D12Device5_SetPrivateDataInterface(This,guid,pData) \
  11631. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  11632. #define ID3D12Device5_SetName(This,Name) \
  11633. ( (This)->lpVtbl -> SetName(This,Name) )
  11634. #define ID3D12Device5_GetNodeCount(This) \
  11635. ( (This)->lpVtbl -> GetNodeCount(This) )
  11636. #define ID3D12Device5_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  11637. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  11638. #define ID3D12Device5_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  11639. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  11640. #define ID3D12Device5_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  11641. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  11642. #define ID3D12Device5_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  11643. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  11644. #define ID3D12Device5_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  11645. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  11646. #define ID3D12Device5_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  11647. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  11648. #define ID3D12Device5_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  11649. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  11650. #define ID3D12Device5_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  11651. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  11652. #define ID3D12Device5_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  11653. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  11654. #define ID3D12Device5_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  11655. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  11656. #define ID3D12Device5_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  11657. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  11658. #define ID3D12Device5_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  11659. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  11660. #define ID3D12Device5_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  11661. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  11662. #define ID3D12Device5_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  11663. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  11664. #define ID3D12Device5_CreateSampler(This,pDesc,DestDescriptor) \
  11665. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  11666. #define ID3D12Device5_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  11667. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  11668. #define ID3D12Device5_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  11669. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  11670. #if !defined(_WIN32)
  11671. #define ID3D12Device5_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  11672. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  11673. #else
  11674. #define ID3D12Device5_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  11675. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  11676. #endif
  11677. #if !defined(_WIN32)
  11678. #define ID3D12Device5_GetCustomHeapProperties(This,nodeMask,heapType) \
  11679. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  11680. #else
  11681. #define ID3D12Device5_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  11682. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  11683. #endif
  11684. #define ID3D12Device5_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  11685. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  11686. #define ID3D12Device5_CreateHeap(This,pDesc,riid,ppvHeap) \
  11687. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  11688. #define ID3D12Device5_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  11689. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  11690. #define ID3D12Device5_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  11691. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  11692. #define ID3D12Device5_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  11693. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  11694. #define ID3D12Device5_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  11695. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  11696. #define ID3D12Device5_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  11697. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  11698. #define ID3D12Device5_MakeResident(This,NumObjects,ppObjects) \
  11699. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  11700. #define ID3D12Device5_Evict(This,NumObjects,ppObjects) \
  11701. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  11702. #define ID3D12Device5_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  11703. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  11704. #define ID3D12Device5_GetDeviceRemovedReason(This) \
  11705. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  11706. #define ID3D12Device5_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  11707. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  11708. #define ID3D12Device5_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  11709. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  11710. #define ID3D12Device5_SetStablePowerState(This,Enable) \
  11711. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  11712. #define ID3D12Device5_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  11713. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  11714. #define ID3D12Device5_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  11715. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  11716. #if !defined(_WIN32)
  11717. #define ID3D12Device5_GetAdapterLuid(This) \
  11718. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  11719. #else
  11720. #define ID3D12Device5_GetAdapterLuid(This,RetVal) \
  11721. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  11722. #endif
  11723. #define ID3D12Device5_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  11724. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  11725. #define ID3D12Device5_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  11726. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  11727. #define ID3D12Device5_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  11728. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  11729. #define ID3D12Device5_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  11730. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  11731. #define ID3D12Device5_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  11732. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  11733. #define ID3D12Device5_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  11734. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  11735. #define ID3D12Device5_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  11736. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  11737. #define ID3D12Device5_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  11738. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  11739. #define ID3D12Device5_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  11740. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  11741. #define ID3D12Device5_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  11742. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  11743. #define ID3D12Device5_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  11744. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  11745. #define ID3D12Device5_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  11746. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  11747. #if !defined(_WIN32)
  11748. #define ID3D12Device5_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  11749. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  11750. #else
  11751. #define ID3D12Device5_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  11752. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  11753. #endif
  11754. #define ID3D12Device5_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  11755. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  11756. #define ID3D12Device5_RemoveDevice(This) \
  11757. ( (This)->lpVtbl -> RemoveDevice(This) )
  11758. #define ID3D12Device5_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  11759. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  11760. #define ID3D12Device5_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  11761. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  11762. #define ID3D12Device5_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  11763. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  11764. #define ID3D12Device5_CreateStateObject(This,pDesc,riid,ppStateObject) \
  11765. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  11766. #define ID3D12Device5_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  11767. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  11768. #define ID3D12Device5_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  11769. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  11770. #endif /* COBJMACROS */
  11771. #endif /* C style interface */
  11772. #endif /* __ID3D12Device5_INTERFACE_DEFINED__ */
  11773. /* interface __MIDL_itf_d3d12_0000_0037 */
  11774. /* [local] */
  11775. typedef
  11776. enum D3D12_AUTO_BREADCRUMB_OP
  11777. {
  11778. D3D12_AUTO_BREADCRUMB_OP_SETMARKER = 0,
  11779. D3D12_AUTO_BREADCRUMB_OP_BEGINEVENT = 1,
  11780. D3D12_AUTO_BREADCRUMB_OP_ENDEVENT = 2,
  11781. D3D12_AUTO_BREADCRUMB_OP_DRAWINSTANCED = 3,
  11782. D3D12_AUTO_BREADCRUMB_OP_DRAWINDEXEDINSTANCED = 4,
  11783. D3D12_AUTO_BREADCRUMB_OP_EXECUTEINDIRECT = 5,
  11784. D3D12_AUTO_BREADCRUMB_OP_DISPATCH = 6,
  11785. D3D12_AUTO_BREADCRUMB_OP_COPYBUFFERREGION = 7,
  11786. D3D12_AUTO_BREADCRUMB_OP_COPYTEXTUREREGION = 8,
  11787. D3D12_AUTO_BREADCRUMB_OP_COPYRESOURCE = 9,
  11788. D3D12_AUTO_BREADCRUMB_OP_COPYTILES = 10,
  11789. D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCE = 11,
  11790. D3D12_AUTO_BREADCRUMB_OP_CLEARRENDERTARGETVIEW = 12,
  11791. D3D12_AUTO_BREADCRUMB_OP_CLEARUNORDEREDACCESSVIEW = 13,
  11792. D3D12_AUTO_BREADCRUMB_OP_CLEARDEPTHSTENCILVIEW = 14,
  11793. D3D12_AUTO_BREADCRUMB_OP_RESOURCEBARRIER = 15,
  11794. D3D12_AUTO_BREADCRUMB_OP_EXECUTEBUNDLE = 16,
  11795. D3D12_AUTO_BREADCRUMB_OP_PRESENT = 17,
  11796. D3D12_AUTO_BREADCRUMB_OP_RESOLVEQUERYDATA = 18,
  11797. D3D12_AUTO_BREADCRUMB_OP_BEGINSUBMISSION = 19,
  11798. D3D12_AUTO_BREADCRUMB_OP_ENDSUBMISSION = 20,
  11799. D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME = 21,
  11800. D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES = 22,
  11801. D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT = 23,
  11802. D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT64 = 24,
  11803. D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCEREGION = 25,
  11804. D3D12_AUTO_BREADCRUMB_OP_WRITEBUFFERIMMEDIATE = 26,
  11805. D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME1 = 27,
  11806. D3D12_AUTO_BREADCRUMB_OP_SETPROTECTEDRESOURCESESSION = 28,
  11807. D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME2 = 29,
  11808. D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES1 = 30,
  11809. D3D12_AUTO_BREADCRUMB_OP_BUILDRAYTRACINGACCELERATIONSTRUCTURE = 31,
  11810. D3D12_AUTO_BREADCRUMB_OP_EMITRAYTRACINGACCELERATIONSTRUCTUREPOSTBUILDINFO = 32,
  11811. D3D12_AUTO_BREADCRUMB_OP_COPYRAYTRACINGACCELERATIONSTRUCTURE = 33,
  11812. D3D12_AUTO_BREADCRUMB_OP_DISPATCHRAYS = 34,
  11813. D3D12_AUTO_BREADCRUMB_OP_INITIALIZEMETACOMMAND = 35,
  11814. D3D12_AUTO_BREADCRUMB_OP_EXECUTEMETACOMMAND = 36,
  11815. D3D12_AUTO_BREADCRUMB_OP_ESTIMATEMOTION = 37,
  11816. D3D12_AUTO_BREADCRUMB_OP_RESOLVEMOTIONVECTORHEAP = 38,
  11817. D3D12_AUTO_BREADCRUMB_OP_SETPIPELINESTATE1 = 39,
  11818. D3D12_AUTO_BREADCRUMB_OP_INITIALIZEEXTENSIONCOMMAND = 40,
  11819. D3D12_AUTO_BREADCRUMB_OP_EXECUTEEXTENSIONCOMMAND = 41,
  11820. D3D12_AUTO_BREADCRUMB_OP_DISPATCHMESH = 42,
  11821. D3D12_AUTO_BREADCRUMB_OP_ENCODEFRAME = 43,
  11822. D3D12_AUTO_BREADCRUMB_OP_RESOLVEENCODEROUTPUTMETADATA = 44,
  11823. D3D12_AUTO_BREADCRUMB_OP_BARRIER = 45,
  11824. D3D12_AUTO_BREADCRUMB_OP_BEGIN_COMMAND_LIST = 46,
  11825. D3D12_AUTO_BREADCRUMB_OP_DISPATCHGRAPH = 47,
  11826. D3D12_AUTO_BREADCRUMB_OP_SETPROGRAM = 48
  11827. } D3D12_AUTO_BREADCRUMB_OP;
  11828. typedef struct D3D12_AUTO_BREADCRUMB_NODE
  11829. {
  11830. const char *pCommandListDebugNameA;
  11831. const wchar_t *pCommandListDebugNameW;
  11832. const char *pCommandQueueDebugNameA;
  11833. const wchar_t *pCommandQueueDebugNameW;
  11834. ID3D12GraphicsCommandList *pCommandList;
  11835. ID3D12CommandQueue *pCommandQueue;
  11836. UINT32 BreadcrumbCount;
  11837. const UINT32 *pLastBreadcrumbValue;
  11838. const D3D12_AUTO_BREADCRUMB_OP *pCommandHistory;
  11839. const struct D3D12_AUTO_BREADCRUMB_NODE *pNext;
  11840. } D3D12_AUTO_BREADCRUMB_NODE;
  11841. typedef struct D3D12_DRED_BREADCRUMB_CONTEXT
  11842. {
  11843. UINT BreadcrumbIndex;
  11844. const wchar_t *pContextString;
  11845. } D3D12_DRED_BREADCRUMB_CONTEXT;
  11846. typedef struct D3D12_AUTO_BREADCRUMB_NODE1
  11847. {
  11848. const char *pCommandListDebugNameA;
  11849. const wchar_t *pCommandListDebugNameW;
  11850. const char *pCommandQueueDebugNameA;
  11851. const wchar_t *pCommandQueueDebugNameW;
  11852. ID3D12GraphicsCommandList *pCommandList;
  11853. ID3D12CommandQueue *pCommandQueue;
  11854. UINT BreadcrumbCount;
  11855. const UINT *pLastBreadcrumbValue;
  11856. const D3D12_AUTO_BREADCRUMB_OP *pCommandHistory;
  11857. const struct D3D12_AUTO_BREADCRUMB_NODE1 *pNext;
  11858. UINT BreadcrumbContextsCount;
  11859. D3D12_DRED_BREADCRUMB_CONTEXT *pBreadcrumbContexts;
  11860. } D3D12_AUTO_BREADCRUMB_NODE1;
  11861. typedef
  11862. enum D3D12_DRED_VERSION
  11863. {
  11864. D3D12_DRED_VERSION_1_0 = 0x1,
  11865. D3D12_DRED_VERSION_1_1 = 0x2,
  11866. D3D12_DRED_VERSION_1_2 = 0x3,
  11867. D3D12_DRED_VERSION_1_3 = 0x4
  11868. } D3D12_DRED_VERSION;
  11869. typedef
  11870. enum D3D12_DRED_FLAGS
  11871. {
  11872. D3D12_DRED_FLAG_NONE = 0,
  11873. D3D12_DRED_FLAG_FORCE_ENABLE = 1,
  11874. D3D12_DRED_FLAG_DISABLE_AUTOBREADCRUMBS = 2
  11875. } D3D12_DRED_FLAGS;
  11876. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DRED_FLAGS )
  11877. typedef
  11878. enum D3D12_DRED_ENABLEMENT
  11879. {
  11880. D3D12_DRED_ENABLEMENT_SYSTEM_CONTROLLED = 0,
  11881. D3D12_DRED_ENABLEMENT_FORCED_OFF = 1,
  11882. D3D12_DRED_ENABLEMENT_FORCED_ON = 2
  11883. } D3D12_DRED_ENABLEMENT;
  11884. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA
  11885. {
  11886. _In_ D3D12_DRED_FLAGS Flags;
  11887. _Out_ D3D12_AUTO_BREADCRUMB_NODE *pHeadAutoBreadcrumbNode;
  11888. } D3D12_DEVICE_REMOVED_EXTENDED_DATA;
  11889. typedef
  11890. enum D3D12_DRED_ALLOCATION_TYPE
  11891. {
  11892. D3D12_DRED_ALLOCATION_TYPE_COMMAND_QUEUE = 19,
  11893. D3D12_DRED_ALLOCATION_TYPE_COMMAND_ALLOCATOR = 20,
  11894. D3D12_DRED_ALLOCATION_TYPE_PIPELINE_STATE = 21,
  11895. D3D12_DRED_ALLOCATION_TYPE_COMMAND_LIST = 22,
  11896. D3D12_DRED_ALLOCATION_TYPE_FENCE = 23,
  11897. D3D12_DRED_ALLOCATION_TYPE_DESCRIPTOR_HEAP = 24,
  11898. D3D12_DRED_ALLOCATION_TYPE_HEAP = 25,
  11899. D3D12_DRED_ALLOCATION_TYPE_QUERY_HEAP = 27,
  11900. D3D12_DRED_ALLOCATION_TYPE_COMMAND_SIGNATURE = 28,
  11901. D3D12_DRED_ALLOCATION_TYPE_PIPELINE_LIBRARY = 29,
  11902. D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER = 30,
  11903. D3D12_DRED_ALLOCATION_TYPE_VIDEO_PROCESSOR = 32,
  11904. D3D12_DRED_ALLOCATION_TYPE_RESOURCE = 34,
  11905. D3D12_DRED_ALLOCATION_TYPE_PASS = 35,
  11906. D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSION = 36,
  11907. D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSIONPOLICY = 37,
  11908. D3D12_DRED_ALLOCATION_TYPE_PROTECTEDRESOURCESESSION = 38,
  11909. D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER_HEAP = 39,
  11910. D3D12_DRED_ALLOCATION_TYPE_COMMAND_POOL = 40,
  11911. D3D12_DRED_ALLOCATION_TYPE_COMMAND_RECORDER = 41,
  11912. D3D12_DRED_ALLOCATION_TYPE_STATE_OBJECT = 42,
  11913. D3D12_DRED_ALLOCATION_TYPE_METACOMMAND = 43,
  11914. D3D12_DRED_ALLOCATION_TYPE_SCHEDULINGGROUP = 44,
  11915. D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_ESTIMATOR = 45,
  11916. D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_VECTOR_HEAP = 46,
  11917. D3D12_DRED_ALLOCATION_TYPE_VIDEO_EXTENSION_COMMAND = 47,
  11918. D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER = 48,
  11919. D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER_HEAP = 49,
  11920. D3D12_DRED_ALLOCATION_TYPE_INVALID = 0xffffffff
  11921. } D3D12_DRED_ALLOCATION_TYPE;
  11922. typedef struct D3D12_DRED_ALLOCATION_NODE
  11923. {
  11924. const char *ObjectNameA;
  11925. const wchar_t *ObjectNameW;
  11926. D3D12_DRED_ALLOCATION_TYPE AllocationType;
  11927. const struct D3D12_DRED_ALLOCATION_NODE *pNext;
  11928. } D3D12_DRED_ALLOCATION_NODE;
  11929. typedef struct D3D12_DRED_ALLOCATION_NODE1
  11930. {
  11931. const char *ObjectNameA;
  11932. const wchar_t *ObjectNameW;
  11933. D3D12_DRED_ALLOCATION_TYPE AllocationType;
  11934. const struct D3D12_DRED_ALLOCATION_NODE1 *pNext;
  11935. const IUnknown *pObject;
  11936. } D3D12_DRED_ALLOCATION_NODE1;
  11937. typedef struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT
  11938. {
  11939. _Out_ const D3D12_AUTO_BREADCRUMB_NODE *pHeadAutoBreadcrumbNode;
  11940. } D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT;
  11941. typedef struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1
  11942. {
  11943. _Out_ const D3D12_AUTO_BREADCRUMB_NODE1 *pHeadAutoBreadcrumbNode;
  11944. } D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1;
  11945. typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT
  11946. {
  11947. D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA;
  11948. _Out_ const D3D12_DRED_ALLOCATION_NODE *pHeadExistingAllocationNode;
  11949. _Out_ const D3D12_DRED_ALLOCATION_NODE *pHeadRecentFreedAllocationNode;
  11950. } D3D12_DRED_PAGE_FAULT_OUTPUT;
  11951. typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT1
  11952. {
  11953. D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA;
  11954. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadExistingAllocationNode;
  11955. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadRecentFreedAllocationNode;
  11956. } D3D12_DRED_PAGE_FAULT_OUTPUT1;
  11957. typedef
  11958. enum D3D12_DRED_PAGE_FAULT_FLAGS
  11959. {
  11960. D3D12_DRED_PAGE_FAULT_FLAGS_NONE = 0
  11961. } D3D12_DRED_PAGE_FAULT_FLAGS;
  11962. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DRED_PAGE_FAULT_FLAGS )
  11963. typedef
  11964. enum D3D12_DRED_DEVICE_STATE
  11965. {
  11966. D3D12_DRED_DEVICE_STATE_UNKNOWN = 0,
  11967. D3D12_DRED_DEVICE_STATE_HUNG = 3,
  11968. D3D12_DRED_DEVICE_STATE_FAULT = 6,
  11969. D3D12_DRED_DEVICE_STATE_PAGEFAULT = 7
  11970. } D3D12_DRED_DEVICE_STATE;
  11971. typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT2
  11972. {
  11973. D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA;
  11974. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadExistingAllocationNode;
  11975. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadRecentFreedAllocationNode;
  11976. D3D12_DRED_PAGE_FAULT_FLAGS PageFaultFlags;
  11977. } D3D12_DRED_PAGE_FAULT_OUTPUT2;
  11978. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA1
  11979. {
  11980. HRESULT DeviceRemovedReason;
  11981. D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT AutoBreadcrumbsOutput;
  11982. D3D12_DRED_PAGE_FAULT_OUTPUT PageFaultOutput;
  11983. } D3D12_DEVICE_REMOVED_EXTENDED_DATA1;
  11984. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA2
  11985. {
  11986. HRESULT DeviceRemovedReason;
  11987. D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput;
  11988. D3D12_DRED_PAGE_FAULT_OUTPUT1 PageFaultOutput;
  11989. } D3D12_DEVICE_REMOVED_EXTENDED_DATA2;
  11990. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA3
  11991. {
  11992. HRESULT DeviceRemovedReason;
  11993. D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput;
  11994. D3D12_DRED_PAGE_FAULT_OUTPUT2 PageFaultOutput;
  11995. D3D12_DRED_DEVICE_STATE DeviceState;
  11996. } D3D12_DEVICE_REMOVED_EXTENDED_DATA3;
  11997. typedef struct D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA
  11998. {
  11999. D3D12_DRED_VERSION Version;
  12000. union
  12001. {
  12002. D3D12_DEVICE_REMOVED_EXTENDED_DATA Dred_1_0;
  12003. D3D12_DEVICE_REMOVED_EXTENDED_DATA1 Dred_1_1;
  12004. D3D12_DEVICE_REMOVED_EXTENDED_DATA2 Dred_1_2;
  12005. D3D12_DEVICE_REMOVED_EXTENDED_DATA3 Dred_1_3;
  12006. } ;
  12007. } D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA;
  12008. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0037_v0_0_c_ifspec;
  12009. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0037_v0_0_s_ifspec;
  12010. #ifndef __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__
  12011. #define __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__
  12012. /* interface ID3D12DeviceRemovedExtendedDataSettings */
  12013. /* [unique][local][object][uuid] */
  12014. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings;
  12015. #if defined(__cplusplus) && !defined(CINTERFACE)
  12016. MIDL_INTERFACE("82BC481C-6B9B-4030-AEDB-7EE3D1DF1E63")
  12017. ID3D12DeviceRemovedExtendedDataSettings : public IUnknown
  12018. {
  12019. public:
  12020. virtual void STDMETHODCALLTYPE SetAutoBreadcrumbsEnablement(
  12021. D3D12_DRED_ENABLEMENT Enablement) = 0;
  12022. virtual void STDMETHODCALLTYPE SetPageFaultEnablement(
  12023. D3D12_DRED_ENABLEMENT Enablement) = 0;
  12024. virtual void STDMETHODCALLTYPE SetWatsonDumpEnablement(
  12025. D3D12_DRED_ENABLEMENT Enablement) = 0;
  12026. };
  12027. #else /* C style interface */
  12028. typedef struct ID3D12DeviceRemovedExtendedDataSettingsVtbl
  12029. {
  12030. BEGIN_INTERFACE
  12031. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12032. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12033. ID3D12DeviceRemovedExtendedDataSettings * This,
  12034. REFIID riid,
  12035. _COM_Outptr_ void **ppvObject);
  12036. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12037. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12038. ID3D12DeviceRemovedExtendedDataSettings * This);
  12039. DECLSPEC_XFGVIRT(IUnknown, Release)
  12040. ULONG ( STDMETHODCALLTYPE *Release )(
  12041. ID3D12DeviceRemovedExtendedDataSettings * This);
  12042. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement)
  12043. void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )(
  12044. ID3D12DeviceRemovedExtendedDataSettings * This,
  12045. D3D12_DRED_ENABLEMENT Enablement);
  12046. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement)
  12047. void ( STDMETHODCALLTYPE *SetPageFaultEnablement )(
  12048. ID3D12DeviceRemovedExtendedDataSettings * This,
  12049. D3D12_DRED_ENABLEMENT Enablement);
  12050. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement)
  12051. void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )(
  12052. ID3D12DeviceRemovedExtendedDataSettings * This,
  12053. D3D12_DRED_ENABLEMENT Enablement);
  12054. END_INTERFACE
  12055. } ID3D12DeviceRemovedExtendedDataSettingsVtbl;
  12056. interface ID3D12DeviceRemovedExtendedDataSettings
  12057. {
  12058. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettingsVtbl *lpVtbl;
  12059. };
  12060. #ifdef COBJMACROS
  12061. #define ID3D12DeviceRemovedExtendedDataSettings_QueryInterface(This,riid,ppvObject) \
  12062. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12063. #define ID3D12DeviceRemovedExtendedDataSettings_AddRef(This) \
  12064. ( (This)->lpVtbl -> AddRef(This) )
  12065. #define ID3D12DeviceRemovedExtendedDataSettings_Release(This) \
  12066. ( (This)->lpVtbl -> Release(This) )
  12067. #define ID3D12DeviceRemovedExtendedDataSettings_SetAutoBreadcrumbsEnablement(This,Enablement) \
  12068. ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) )
  12069. #define ID3D12DeviceRemovedExtendedDataSettings_SetPageFaultEnablement(This,Enablement) \
  12070. ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) )
  12071. #define ID3D12DeviceRemovedExtendedDataSettings_SetWatsonDumpEnablement(This,Enablement) \
  12072. ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) )
  12073. #endif /* COBJMACROS */
  12074. #endif /* C style interface */
  12075. #endif /* __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__ */
  12076. #ifndef __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__
  12077. #define __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__
  12078. /* interface ID3D12DeviceRemovedExtendedDataSettings1 */
  12079. /* [unique][local][object][uuid] */
  12080. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings1;
  12081. #if defined(__cplusplus) && !defined(CINTERFACE)
  12082. MIDL_INTERFACE("DBD5AE51-3317-4F0A-ADF9-1D7CEDCAAE0B")
  12083. ID3D12DeviceRemovedExtendedDataSettings1 : public ID3D12DeviceRemovedExtendedDataSettings
  12084. {
  12085. public:
  12086. virtual void STDMETHODCALLTYPE SetBreadcrumbContextEnablement(
  12087. D3D12_DRED_ENABLEMENT Enablement) = 0;
  12088. };
  12089. #else /* C style interface */
  12090. typedef struct ID3D12DeviceRemovedExtendedDataSettings1Vtbl
  12091. {
  12092. BEGIN_INTERFACE
  12093. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12094. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12095. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  12096. REFIID riid,
  12097. _COM_Outptr_ void **ppvObject);
  12098. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12099. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12100. ID3D12DeviceRemovedExtendedDataSettings1 * This);
  12101. DECLSPEC_XFGVIRT(IUnknown, Release)
  12102. ULONG ( STDMETHODCALLTYPE *Release )(
  12103. ID3D12DeviceRemovedExtendedDataSettings1 * This);
  12104. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement)
  12105. void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )(
  12106. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  12107. D3D12_DRED_ENABLEMENT Enablement);
  12108. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement)
  12109. void ( STDMETHODCALLTYPE *SetPageFaultEnablement )(
  12110. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  12111. D3D12_DRED_ENABLEMENT Enablement);
  12112. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement)
  12113. void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )(
  12114. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  12115. D3D12_DRED_ENABLEMENT Enablement);
  12116. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings1, SetBreadcrumbContextEnablement)
  12117. void ( STDMETHODCALLTYPE *SetBreadcrumbContextEnablement )(
  12118. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  12119. D3D12_DRED_ENABLEMENT Enablement);
  12120. END_INTERFACE
  12121. } ID3D12DeviceRemovedExtendedDataSettings1Vtbl;
  12122. interface ID3D12DeviceRemovedExtendedDataSettings1
  12123. {
  12124. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettings1Vtbl *lpVtbl;
  12125. };
  12126. #ifdef COBJMACROS
  12127. #define ID3D12DeviceRemovedExtendedDataSettings1_QueryInterface(This,riid,ppvObject) \
  12128. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12129. #define ID3D12DeviceRemovedExtendedDataSettings1_AddRef(This) \
  12130. ( (This)->lpVtbl -> AddRef(This) )
  12131. #define ID3D12DeviceRemovedExtendedDataSettings1_Release(This) \
  12132. ( (This)->lpVtbl -> Release(This) )
  12133. #define ID3D12DeviceRemovedExtendedDataSettings1_SetAutoBreadcrumbsEnablement(This,Enablement) \
  12134. ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) )
  12135. #define ID3D12DeviceRemovedExtendedDataSettings1_SetPageFaultEnablement(This,Enablement) \
  12136. ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) )
  12137. #define ID3D12DeviceRemovedExtendedDataSettings1_SetWatsonDumpEnablement(This,Enablement) \
  12138. ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) )
  12139. #define ID3D12DeviceRemovedExtendedDataSettings1_SetBreadcrumbContextEnablement(This,Enablement) \
  12140. ( (This)->lpVtbl -> SetBreadcrumbContextEnablement(This,Enablement) )
  12141. #endif /* COBJMACROS */
  12142. #endif /* C style interface */
  12143. #endif /* __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__ */
  12144. #ifndef __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__
  12145. #define __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__
  12146. /* interface ID3D12DeviceRemovedExtendedDataSettings2 */
  12147. /* [unique][local][object][uuid] */
  12148. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings2;
  12149. #if defined(__cplusplus) && !defined(CINTERFACE)
  12150. MIDL_INTERFACE("61552388-01ab-4008-a436-83db189566ea")
  12151. ID3D12DeviceRemovedExtendedDataSettings2 : public ID3D12DeviceRemovedExtendedDataSettings1
  12152. {
  12153. public:
  12154. virtual void STDMETHODCALLTYPE UseMarkersOnlyAutoBreadcrumbs(
  12155. BOOL MarkersOnly) = 0;
  12156. };
  12157. #else /* C style interface */
  12158. typedef struct ID3D12DeviceRemovedExtendedDataSettings2Vtbl
  12159. {
  12160. BEGIN_INTERFACE
  12161. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12162. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12163. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12164. REFIID riid,
  12165. _COM_Outptr_ void **ppvObject);
  12166. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12167. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12168. ID3D12DeviceRemovedExtendedDataSettings2 * This);
  12169. DECLSPEC_XFGVIRT(IUnknown, Release)
  12170. ULONG ( STDMETHODCALLTYPE *Release )(
  12171. ID3D12DeviceRemovedExtendedDataSettings2 * This);
  12172. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement)
  12173. void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )(
  12174. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12175. D3D12_DRED_ENABLEMENT Enablement);
  12176. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement)
  12177. void ( STDMETHODCALLTYPE *SetPageFaultEnablement )(
  12178. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12179. D3D12_DRED_ENABLEMENT Enablement);
  12180. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement)
  12181. void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )(
  12182. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12183. D3D12_DRED_ENABLEMENT Enablement);
  12184. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings1, SetBreadcrumbContextEnablement)
  12185. void ( STDMETHODCALLTYPE *SetBreadcrumbContextEnablement )(
  12186. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12187. D3D12_DRED_ENABLEMENT Enablement);
  12188. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings2, UseMarkersOnlyAutoBreadcrumbs)
  12189. void ( STDMETHODCALLTYPE *UseMarkersOnlyAutoBreadcrumbs )(
  12190. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12191. BOOL MarkersOnly);
  12192. END_INTERFACE
  12193. } ID3D12DeviceRemovedExtendedDataSettings2Vtbl;
  12194. interface ID3D12DeviceRemovedExtendedDataSettings2
  12195. {
  12196. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettings2Vtbl *lpVtbl;
  12197. };
  12198. #ifdef COBJMACROS
  12199. #define ID3D12DeviceRemovedExtendedDataSettings2_QueryInterface(This,riid,ppvObject) \
  12200. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12201. #define ID3D12DeviceRemovedExtendedDataSettings2_AddRef(This) \
  12202. ( (This)->lpVtbl -> AddRef(This) )
  12203. #define ID3D12DeviceRemovedExtendedDataSettings2_Release(This) \
  12204. ( (This)->lpVtbl -> Release(This) )
  12205. #define ID3D12DeviceRemovedExtendedDataSettings2_SetAutoBreadcrumbsEnablement(This,Enablement) \
  12206. ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) )
  12207. #define ID3D12DeviceRemovedExtendedDataSettings2_SetPageFaultEnablement(This,Enablement) \
  12208. ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) )
  12209. #define ID3D12DeviceRemovedExtendedDataSettings2_SetWatsonDumpEnablement(This,Enablement) \
  12210. ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) )
  12211. #define ID3D12DeviceRemovedExtendedDataSettings2_SetBreadcrumbContextEnablement(This,Enablement) \
  12212. ( (This)->lpVtbl -> SetBreadcrumbContextEnablement(This,Enablement) )
  12213. #define ID3D12DeviceRemovedExtendedDataSettings2_UseMarkersOnlyAutoBreadcrumbs(This,MarkersOnly) \
  12214. ( (This)->lpVtbl -> UseMarkersOnlyAutoBreadcrumbs(This,MarkersOnly) )
  12215. #endif /* COBJMACROS */
  12216. #endif /* C style interface */
  12217. #endif /* __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__ */
  12218. #ifndef __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__
  12219. #define __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__
  12220. /* interface ID3D12DeviceRemovedExtendedData */
  12221. /* [unique][local][object][uuid] */
  12222. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData;
  12223. #if defined(__cplusplus) && !defined(CINTERFACE)
  12224. MIDL_INTERFACE("98931D33-5AE8-4791-AA3C-1A73A2934E71")
  12225. ID3D12DeviceRemovedExtendedData : public IUnknown
  12226. {
  12227. public:
  12228. virtual HRESULT STDMETHODCALLTYPE GetAutoBreadcrumbsOutput(
  12229. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput) = 0;
  12230. virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput(
  12231. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput) = 0;
  12232. };
  12233. #else /* C style interface */
  12234. typedef struct ID3D12DeviceRemovedExtendedDataVtbl
  12235. {
  12236. BEGIN_INTERFACE
  12237. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12238. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12239. ID3D12DeviceRemovedExtendedData * This,
  12240. REFIID riid,
  12241. _COM_Outptr_ void **ppvObject);
  12242. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12243. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12244. ID3D12DeviceRemovedExtendedData * This);
  12245. DECLSPEC_XFGVIRT(IUnknown, Release)
  12246. ULONG ( STDMETHODCALLTYPE *Release )(
  12247. ID3D12DeviceRemovedExtendedData * This);
  12248. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput)
  12249. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )(
  12250. ID3D12DeviceRemovedExtendedData * This,
  12251. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput);
  12252. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput)
  12253. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )(
  12254. ID3D12DeviceRemovedExtendedData * This,
  12255. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput);
  12256. END_INTERFACE
  12257. } ID3D12DeviceRemovedExtendedDataVtbl;
  12258. interface ID3D12DeviceRemovedExtendedData
  12259. {
  12260. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataVtbl *lpVtbl;
  12261. };
  12262. #ifdef COBJMACROS
  12263. #define ID3D12DeviceRemovedExtendedData_QueryInterface(This,riid,ppvObject) \
  12264. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12265. #define ID3D12DeviceRemovedExtendedData_AddRef(This) \
  12266. ( (This)->lpVtbl -> AddRef(This) )
  12267. #define ID3D12DeviceRemovedExtendedData_Release(This) \
  12268. ( (This)->lpVtbl -> Release(This) )
  12269. #define ID3D12DeviceRemovedExtendedData_GetAutoBreadcrumbsOutput(This,pOutput) \
  12270. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) )
  12271. #define ID3D12DeviceRemovedExtendedData_GetPageFaultAllocationOutput(This,pOutput) \
  12272. ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) )
  12273. #endif /* COBJMACROS */
  12274. #endif /* C style interface */
  12275. #endif /* __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__ */
  12276. #ifndef __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__
  12277. #define __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__
  12278. /* interface ID3D12DeviceRemovedExtendedData1 */
  12279. /* [unique][local][object][uuid] */
  12280. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData1;
  12281. #if defined(__cplusplus) && !defined(CINTERFACE)
  12282. MIDL_INTERFACE("9727A022-CF1D-4DDA-9EBA-EFFA653FC506")
  12283. ID3D12DeviceRemovedExtendedData1 : public ID3D12DeviceRemovedExtendedData
  12284. {
  12285. public:
  12286. virtual HRESULT STDMETHODCALLTYPE GetAutoBreadcrumbsOutput1(
  12287. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput) = 0;
  12288. virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput1(
  12289. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput) = 0;
  12290. };
  12291. #else /* C style interface */
  12292. typedef struct ID3D12DeviceRemovedExtendedData1Vtbl
  12293. {
  12294. BEGIN_INTERFACE
  12295. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12296. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12297. ID3D12DeviceRemovedExtendedData1 * This,
  12298. REFIID riid,
  12299. _COM_Outptr_ void **ppvObject);
  12300. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12301. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12302. ID3D12DeviceRemovedExtendedData1 * This);
  12303. DECLSPEC_XFGVIRT(IUnknown, Release)
  12304. ULONG ( STDMETHODCALLTYPE *Release )(
  12305. ID3D12DeviceRemovedExtendedData1 * This);
  12306. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput)
  12307. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )(
  12308. ID3D12DeviceRemovedExtendedData1 * This,
  12309. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput);
  12310. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput)
  12311. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )(
  12312. ID3D12DeviceRemovedExtendedData1 * This,
  12313. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput);
  12314. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetAutoBreadcrumbsOutput1)
  12315. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput1 )(
  12316. ID3D12DeviceRemovedExtendedData1 * This,
  12317. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput);
  12318. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetPageFaultAllocationOutput1)
  12319. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput1 )(
  12320. ID3D12DeviceRemovedExtendedData1 * This,
  12321. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput);
  12322. END_INTERFACE
  12323. } ID3D12DeviceRemovedExtendedData1Vtbl;
  12324. interface ID3D12DeviceRemovedExtendedData1
  12325. {
  12326. CONST_VTBL struct ID3D12DeviceRemovedExtendedData1Vtbl *lpVtbl;
  12327. };
  12328. #ifdef COBJMACROS
  12329. #define ID3D12DeviceRemovedExtendedData1_QueryInterface(This,riid,ppvObject) \
  12330. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12331. #define ID3D12DeviceRemovedExtendedData1_AddRef(This) \
  12332. ( (This)->lpVtbl -> AddRef(This) )
  12333. #define ID3D12DeviceRemovedExtendedData1_Release(This) \
  12334. ( (This)->lpVtbl -> Release(This) )
  12335. #define ID3D12DeviceRemovedExtendedData1_GetAutoBreadcrumbsOutput(This,pOutput) \
  12336. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) )
  12337. #define ID3D12DeviceRemovedExtendedData1_GetPageFaultAllocationOutput(This,pOutput) \
  12338. ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) )
  12339. #define ID3D12DeviceRemovedExtendedData1_GetAutoBreadcrumbsOutput1(This,pOutput) \
  12340. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput1(This,pOutput) )
  12341. #define ID3D12DeviceRemovedExtendedData1_GetPageFaultAllocationOutput1(This,pOutput) \
  12342. ( (This)->lpVtbl -> GetPageFaultAllocationOutput1(This,pOutput) )
  12343. #endif /* COBJMACROS */
  12344. #endif /* C style interface */
  12345. #endif /* __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__ */
  12346. #ifndef __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__
  12347. #define __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__
  12348. /* interface ID3D12DeviceRemovedExtendedData2 */
  12349. /* [unique][local][object][uuid] */
  12350. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData2;
  12351. #if defined(__cplusplus) && !defined(CINTERFACE)
  12352. MIDL_INTERFACE("67FC5816-E4CA-4915-BF18-42541272DA54")
  12353. ID3D12DeviceRemovedExtendedData2 : public ID3D12DeviceRemovedExtendedData1
  12354. {
  12355. public:
  12356. virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput2(
  12357. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT2 *pOutput) = 0;
  12358. virtual D3D12_DRED_DEVICE_STATE STDMETHODCALLTYPE GetDeviceState( void) = 0;
  12359. };
  12360. #else /* C style interface */
  12361. typedef struct ID3D12DeviceRemovedExtendedData2Vtbl
  12362. {
  12363. BEGIN_INTERFACE
  12364. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12365. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12366. ID3D12DeviceRemovedExtendedData2 * This,
  12367. REFIID riid,
  12368. _COM_Outptr_ void **ppvObject);
  12369. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12370. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12371. ID3D12DeviceRemovedExtendedData2 * This);
  12372. DECLSPEC_XFGVIRT(IUnknown, Release)
  12373. ULONG ( STDMETHODCALLTYPE *Release )(
  12374. ID3D12DeviceRemovedExtendedData2 * This);
  12375. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput)
  12376. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )(
  12377. ID3D12DeviceRemovedExtendedData2 * This,
  12378. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput);
  12379. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput)
  12380. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )(
  12381. ID3D12DeviceRemovedExtendedData2 * This,
  12382. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput);
  12383. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetAutoBreadcrumbsOutput1)
  12384. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput1 )(
  12385. ID3D12DeviceRemovedExtendedData2 * This,
  12386. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput);
  12387. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetPageFaultAllocationOutput1)
  12388. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput1 )(
  12389. ID3D12DeviceRemovedExtendedData2 * This,
  12390. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput);
  12391. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData2, GetPageFaultAllocationOutput2)
  12392. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput2 )(
  12393. ID3D12DeviceRemovedExtendedData2 * This,
  12394. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT2 *pOutput);
  12395. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData2, GetDeviceState)
  12396. D3D12_DRED_DEVICE_STATE ( STDMETHODCALLTYPE *GetDeviceState )(
  12397. ID3D12DeviceRemovedExtendedData2 * This);
  12398. END_INTERFACE
  12399. } ID3D12DeviceRemovedExtendedData2Vtbl;
  12400. interface ID3D12DeviceRemovedExtendedData2
  12401. {
  12402. CONST_VTBL struct ID3D12DeviceRemovedExtendedData2Vtbl *lpVtbl;
  12403. };
  12404. #ifdef COBJMACROS
  12405. #define ID3D12DeviceRemovedExtendedData2_QueryInterface(This,riid,ppvObject) \
  12406. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12407. #define ID3D12DeviceRemovedExtendedData2_AddRef(This) \
  12408. ( (This)->lpVtbl -> AddRef(This) )
  12409. #define ID3D12DeviceRemovedExtendedData2_Release(This) \
  12410. ( (This)->lpVtbl -> Release(This) )
  12411. #define ID3D12DeviceRemovedExtendedData2_GetAutoBreadcrumbsOutput(This,pOutput) \
  12412. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) )
  12413. #define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput(This,pOutput) \
  12414. ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) )
  12415. #define ID3D12DeviceRemovedExtendedData2_GetAutoBreadcrumbsOutput1(This,pOutput) \
  12416. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput1(This,pOutput) )
  12417. #define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput1(This,pOutput) \
  12418. ( (This)->lpVtbl -> GetPageFaultAllocationOutput1(This,pOutput) )
  12419. #define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput2(This,pOutput) \
  12420. ( (This)->lpVtbl -> GetPageFaultAllocationOutput2(This,pOutput) )
  12421. #define ID3D12DeviceRemovedExtendedData2_GetDeviceState(This) \
  12422. ( (This)->lpVtbl -> GetDeviceState(This) )
  12423. #endif /* COBJMACROS */
  12424. #endif /* C style interface */
  12425. #endif /* __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__ */
  12426. /* interface __MIDL_itf_d3d12_0000_0043 */
  12427. /* [local] */
  12428. typedef
  12429. enum D3D12_BACKGROUND_PROCESSING_MODE
  12430. {
  12431. D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED = 0,
  12432. D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS = ( D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED + 1 ) ,
  12433. D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK = ( D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS + 1 ) ,
  12434. D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_PROFILING_BY_SYSTEM = ( D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK + 1 )
  12435. } D3D12_BACKGROUND_PROCESSING_MODE;
  12436. typedef
  12437. enum D3D12_MEASUREMENTS_ACTION
  12438. {
  12439. D3D12_MEASUREMENTS_ACTION_KEEP_ALL = 0,
  12440. D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS = ( D3D12_MEASUREMENTS_ACTION_KEEP_ALL + 1 ) ,
  12441. D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY = ( D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS + 1 ) ,
  12442. D3D12_MEASUREMENTS_ACTION_DISCARD_PREVIOUS = ( D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY + 1 )
  12443. } D3D12_MEASUREMENTS_ACTION;
  12444. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0043_v0_0_c_ifspec;
  12445. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0043_v0_0_s_ifspec;
  12446. #ifndef __ID3D12Device6_INTERFACE_DEFINED__
  12447. #define __ID3D12Device6_INTERFACE_DEFINED__
  12448. /* interface ID3D12Device6 */
  12449. /* [unique][local][object][uuid] */
  12450. EXTERN_C const IID IID_ID3D12Device6;
  12451. #if defined(__cplusplus) && !defined(CINTERFACE)
  12452. MIDL_INTERFACE("c70b221b-40e4-4a17-89af-025a0727a6dc")
  12453. ID3D12Device6 : public ID3D12Device5
  12454. {
  12455. public:
  12456. virtual HRESULT STDMETHODCALLTYPE SetBackgroundProcessingMode(
  12457. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  12458. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  12459. _In_opt_ HANDLE hEventToSignalUponCompletion,
  12460. _Out_opt_ BOOL *pbFurtherMeasurementsDesired) = 0;
  12461. };
  12462. #else /* C style interface */
  12463. typedef struct ID3D12Device6Vtbl
  12464. {
  12465. BEGIN_INTERFACE
  12466. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12467. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12468. ID3D12Device6 * This,
  12469. REFIID riid,
  12470. _COM_Outptr_ void **ppvObject);
  12471. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12472. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12473. ID3D12Device6 * This);
  12474. DECLSPEC_XFGVIRT(IUnknown, Release)
  12475. ULONG ( STDMETHODCALLTYPE *Release )(
  12476. ID3D12Device6 * This);
  12477. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  12478. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  12479. ID3D12Device6 * This,
  12480. _In_ REFGUID guid,
  12481. _Inout_ UINT *pDataSize,
  12482. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  12483. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  12484. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  12485. ID3D12Device6 * This,
  12486. _In_ REFGUID guid,
  12487. _In_ UINT DataSize,
  12488. _In_reads_bytes_opt_( DataSize ) const void *pData);
  12489. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  12490. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  12491. ID3D12Device6 * This,
  12492. _In_ REFGUID guid,
  12493. _In_opt_ const IUnknown *pData);
  12494. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  12495. HRESULT ( STDMETHODCALLTYPE *SetName )(
  12496. ID3D12Device6 * This,
  12497. _In_z_ LPCWSTR Name);
  12498. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  12499. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  12500. ID3D12Device6 * This);
  12501. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  12502. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  12503. ID3D12Device6 * This,
  12504. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  12505. REFIID riid,
  12506. _COM_Outptr_ void **ppCommandQueue);
  12507. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  12508. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  12509. ID3D12Device6 * This,
  12510. _In_ D3D12_COMMAND_LIST_TYPE type,
  12511. REFIID riid,
  12512. _COM_Outptr_ void **ppCommandAllocator);
  12513. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  12514. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  12515. ID3D12Device6 * This,
  12516. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  12517. REFIID riid,
  12518. _COM_Outptr_ void **ppPipelineState);
  12519. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  12520. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  12521. ID3D12Device6 * This,
  12522. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  12523. REFIID riid,
  12524. _COM_Outptr_ void **ppPipelineState);
  12525. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  12526. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  12527. ID3D12Device6 * This,
  12528. _In_ UINT nodeMask,
  12529. _In_ D3D12_COMMAND_LIST_TYPE type,
  12530. _In_ ID3D12CommandAllocator *pCommandAllocator,
  12531. _In_opt_ ID3D12PipelineState *pInitialState,
  12532. REFIID riid,
  12533. _COM_Outptr_ void **ppCommandList);
  12534. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  12535. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  12536. ID3D12Device6 * This,
  12537. D3D12_FEATURE Feature,
  12538. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  12539. UINT FeatureSupportDataSize);
  12540. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  12541. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  12542. ID3D12Device6 * This,
  12543. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  12544. REFIID riid,
  12545. _COM_Outptr_ void **ppvHeap);
  12546. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  12547. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  12548. ID3D12Device6 * This,
  12549. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  12550. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  12551. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  12552. ID3D12Device6 * This,
  12553. _In_ UINT nodeMask,
  12554. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  12555. _In_ SIZE_T blobLengthInBytes,
  12556. REFIID riid,
  12557. _COM_Outptr_ void **ppvRootSignature);
  12558. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  12559. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  12560. ID3D12Device6 * This,
  12561. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  12562. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12563. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  12564. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  12565. ID3D12Device6 * This,
  12566. _In_opt_ ID3D12Resource *pResource,
  12567. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  12568. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12569. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  12570. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  12571. ID3D12Device6 * This,
  12572. _In_opt_ ID3D12Resource *pResource,
  12573. _In_opt_ ID3D12Resource *pCounterResource,
  12574. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  12575. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12576. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  12577. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  12578. ID3D12Device6 * This,
  12579. _In_opt_ ID3D12Resource *pResource,
  12580. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  12581. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12582. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  12583. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  12584. ID3D12Device6 * This,
  12585. _In_opt_ ID3D12Resource *pResource,
  12586. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  12587. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12588. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  12589. void ( STDMETHODCALLTYPE *CreateSampler )(
  12590. ID3D12Device6 * This,
  12591. _In_ const D3D12_SAMPLER_DESC *pDesc,
  12592. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12593. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  12594. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  12595. ID3D12Device6 * This,
  12596. _In_ UINT NumDestDescriptorRanges,
  12597. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  12598. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  12599. _In_ UINT NumSrcDescriptorRanges,
  12600. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  12601. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  12602. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  12603. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  12604. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  12605. ID3D12Device6 * This,
  12606. _In_ UINT NumDescriptors,
  12607. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  12608. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  12609. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  12610. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  12611. #if !defined(_WIN32)
  12612. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  12613. ID3D12Device6 * This,
  12614. _In_ UINT visibleMask,
  12615. _In_ UINT numResourceDescs,
  12616. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  12617. #else
  12618. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  12619. ID3D12Device6 * This,
  12620. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  12621. _In_ UINT visibleMask,
  12622. _In_ UINT numResourceDescs,
  12623. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  12624. #endif
  12625. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  12626. #if !defined(_WIN32)
  12627. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  12628. ID3D12Device6 * This,
  12629. _In_ UINT nodeMask,
  12630. D3D12_HEAP_TYPE heapType);
  12631. #else
  12632. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  12633. ID3D12Device6 * This,
  12634. D3D12_HEAP_PROPERTIES * RetVal,
  12635. _In_ UINT nodeMask,
  12636. D3D12_HEAP_TYPE heapType);
  12637. #endif
  12638. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  12639. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  12640. ID3D12Device6 * This,
  12641. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  12642. D3D12_HEAP_FLAGS HeapFlags,
  12643. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12644. D3D12_RESOURCE_STATES InitialResourceState,
  12645. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12646. REFIID riidResource,
  12647. _COM_Outptr_opt_ void **ppvResource);
  12648. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  12649. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  12650. ID3D12Device6 * This,
  12651. _In_ const D3D12_HEAP_DESC *pDesc,
  12652. REFIID riid,
  12653. _COM_Outptr_opt_ void **ppvHeap);
  12654. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  12655. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  12656. ID3D12Device6 * This,
  12657. _In_ ID3D12Heap *pHeap,
  12658. UINT64 HeapOffset,
  12659. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12660. D3D12_RESOURCE_STATES InitialState,
  12661. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12662. REFIID riid,
  12663. _COM_Outptr_opt_ void **ppvResource);
  12664. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  12665. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  12666. ID3D12Device6 * This,
  12667. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12668. D3D12_RESOURCE_STATES InitialState,
  12669. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12670. REFIID riid,
  12671. _COM_Outptr_opt_ void **ppvResource);
  12672. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  12673. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  12674. ID3D12Device6 * This,
  12675. _In_ ID3D12DeviceChild *pObject,
  12676. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  12677. DWORD Access,
  12678. _In_opt_ LPCWSTR Name,
  12679. _Out_ HANDLE *pHandle);
  12680. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  12681. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  12682. ID3D12Device6 * This,
  12683. _In_ HANDLE NTHandle,
  12684. REFIID riid,
  12685. _COM_Outptr_opt_ void **ppvObj);
  12686. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  12687. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  12688. ID3D12Device6 * This,
  12689. _In_ LPCWSTR Name,
  12690. DWORD Access,
  12691. /* [annotation][out] */
  12692. _Out_ HANDLE *pNTHandle);
  12693. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  12694. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  12695. ID3D12Device6 * This,
  12696. UINT NumObjects,
  12697. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  12698. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  12699. HRESULT ( STDMETHODCALLTYPE *Evict )(
  12700. ID3D12Device6 * This,
  12701. UINT NumObjects,
  12702. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  12703. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  12704. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  12705. ID3D12Device6 * This,
  12706. UINT64 InitialValue,
  12707. D3D12_FENCE_FLAGS Flags,
  12708. REFIID riid,
  12709. _COM_Outptr_ void **ppFence);
  12710. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  12711. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  12712. ID3D12Device6 * This);
  12713. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  12714. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  12715. ID3D12Device6 * This,
  12716. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  12717. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  12718. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  12719. UINT64 BaseOffset,
  12720. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  12721. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  12722. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  12723. _Out_opt_ UINT64 *pTotalBytes);
  12724. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  12725. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  12726. ID3D12Device6 * This,
  12727. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  12728. REFIID riid,
  12729. _COM_Outptr_opt_ void **ppvHeap);
  12730. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  12731. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  12732. ID3D12Device6 * This,
  12733. BOOL Enable);
  12734. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  12735. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  12736. ID3D12Device6 * This,
  12737. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  12738. _In_opt_ ID3D12RootSignature *pRootSignature,
  12739. REFIID riid,
  12740. _COM_Outptr_opt_ void **ppvCommandSignature);
  12741. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  12742. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  12743. ID3D12Device6 * This,
  12744. _In_ ID3D12Resource *pTiledResource,
  12745. _Out_opt_ UINT *pNumTilesForEntireResource,
  12746. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  12747. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  12748. _Inout_opt_ UINT *pNumSubresourceTilings,
  12749. _In_ UINT FirstSubresourceTilingToGet,
  12750. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  12751. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  12752. #if !defined(_WIN32)
  12753. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  12754. ID3D12Device6 * This);
  12755. #else
  12756. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  12757. ID3D12Device6 * This,
  12758. LUID * RetVal);
  12759. #endif
  12760. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  12761. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  12762. ID3D12Device6 * This,
  12763. _In_reads_(BlobLength) const void *pLibraryBlob,
  12764. SIZE_T BlobLength,
  12765. REFIID riid,
  12766. _COM_Outptr_ void **ppPipelineLibrary);
  12767. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  12768. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  12769. ID3D12Device6 * This,
  12770. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  12771. _In_reads_(NumFences) const UINT64 *pFenceValues,
  12772. UINT NumFences,
  12773. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  12774. HANDLE hEvent);
  12775. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  12776. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  12777. ID3D12Device6 * This,
  12778. UINT NumObjects,
  12779. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  12780. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  12781. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  12782. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  12783. ID3D12Device6 * This,
  12784. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  12785. REFIID riid,
  12786. _COM_Outptr_ void **ppPipelineState);
  12787. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  12788. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  12789. ID3D12Device6 * This,
  12790. _In_ const void *pAddress,
  12791. REFIID riid,
  12792. _COM_Outptr_ void **ppvHeap);
  12793. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  12794. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  12795. ID3D12Device6 * This,
  12796. _In_ HANDLE hFileMapping,
  12797. REFIID riid,
  12798. _COM_Outptr_ void **ppvHeap);
  12799. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  12800. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  12801. ID3D12Device6 * This,
  12802. D3D12_RESIDENCY_FLAGS Flags,
  12803. UINT NumObjects,
  12804. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  12805. _In_ ID3D12Fence *pFenceToSignal,
  12806. UINT64 FenceValueToSignal);
  12807. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  12808. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  12809. ID3D12Device6 * This,
  12810. _In_ UINT nodeMask,
  12811. _In_ D3D12_COMMAND_LIST_TYPE type,
  12812. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  12813. REFIID riid,
  12814. _COM_Outptr_ void **ppCommandList);
  12815. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  12816. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  12817. ID3D12Device6 * This,
  12818. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  12819. _In_ REFIID riid,
  12820. _COM_Outptr_ void **ppSession);
  12821. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  12822. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  12823. ID3D12Device6 * This,
  12824. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  12825. D3D12_HEAP_FLAGS HeapFlags,
  12826. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12827. D3D12_RESOURCE_STATES InitialResourceState,
  12828. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12829. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  12830. REFIID riidResource,
  12831. _COM_Outptr_opt_ void **ppvResource);
  12832. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  12833. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  12834. ID3D12Device6 * This,
  12835. _In_ const D3D12_HEAP_DESC *pDesc,
  12836. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  12837. REFIID riid,
  12838. _COM_Outptr_opt_ void **ppvHeap);
  12839. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  12840. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  12841. ID3D12Device6 * This,
  12842. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12843. D3D12_RESOURCE_STATES InitialState,
  12844. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12845. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  12846. REFIID riid,
  12847. _COM_Outptr_opt_ void **ppvResource);
  12848. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  12849. #if !defined(_WIN32)
  12850. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  12851. ID3D12Device6 * This,
  12852. UINT visibleMask,
  12853. UINT numResourceDescs,
  12854. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  12855. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  12856. #else
  12857. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  12858. ID3D12Device6 * This,
  12859. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  12860. UINT visibleMask,
  12861. UINT numResourceDescs,
  12862. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  12863. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  12864. #endif
  12865. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  12866. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  12867. ID3D12Device6 * This,
  12868. _In_ ID3D12LifetimeOwner *pOwner,
  12869. REFIID riid,
  12870. _COM_Outptr_ void **ppvTracker);
  12871. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  12872. void ( STDMETHODCALLTYPE *RemoveDevice )(
  12873. ID3D12Device6 * This);
  12874. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  12875. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  12876. ID3D12Device6 * This,
  12877. _Inout_ UINT *pNumMetaCommands,
  12878. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  12879. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  12880. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  12881. ID3D12Device6 * This,
  12882. _In_ REFGUID CommandId,
  12883. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  12884. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  12885. _Inout_ UINT *pParameterCount,
  12886. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  12887. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  12888. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  12889. ID3D12Device6 * This,
  12890. _In_ REFGUID CommandId,
  12891. _In_ UINT NodeMask,
  12892. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  12893. _In_ SIZE_T CreationParametersDataSizeInBytes,
  12894. REFIID riid,
  12895. _COM_Outptr_ void **ppMetaCommand);
  12896. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  12897. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  12898. ID3D12Device6 * This,
  12899. const D3D12_STATE_OBJECT_DESC *pDesc,
  12900. REFIID riid,
  12901. _COM_Outptr_ void **ppStateObject);
  12902. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  12903. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  12904. ID3D12Device6 * This,
  12905. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  12906. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  12907. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  12908. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  12909. ID3D12Device6 * This,
  12910. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  12911. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  12912. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  12913. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  12914. ID3D12Device6 * This,
  12915. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  12916. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  12917. _In_opt_ HANDLE hEventToSignalUponCompletion,
  12918. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  12919. END_INTERFACE
  12920. } ID3D12Device6Vtbl;
  12921. interface ID3D12Device6
  12922. {
  12923. CONST_VTBL struct ID3D12Device6Vtbl *lpVtbl;
  12924. };
  12925. #ifdef COBJMACROS
  12926. #define ID3D12Device6_QueryInterface(This,riid,ppvObject) \
  12927. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12928. #define ID3D12Device6_AddRef(This) \
  12929. ( (This)->lpVtbl -> AddRef(This) )
  12930. #define ID3D12Device6_Release(This) \
  12931. ( (This)->lpVtbl -> Release(This) )
  12932. #define ID3D12Device6_GetPrivateData(This,guid,pDataSize,pData) \
  12933. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  12934. #define ID3D12Device6_SetPrivateData(This,guid,DataSize,pData) \
  12935. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  12936. #define ID3D12Device6_SetPrivateDataInterface(This,guid,pData) \
  12937. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  12938. #define ID3D12Device6_SetName(This,Name) \
  12939. ( (This)->lpVtbl -> SetName(This,Name) )
  12940. #define ID3D12Device6_GetNodeCount(This) \
  12941. ( (This)->lpVtbl -> GetNodeCount(This) )
  12942. #define ID3D12Device6_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  12943. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  12944. #define ID3D12Device6_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  12945. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  12946. #define ID3D12Device6_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  12947. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  12948. #define ID3D12Device6_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  12949. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  12950. #define ID3D12Device6_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  12951. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  12952. #define ID3D12Device6_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  12953. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  12954. #define ID3D12Device6_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  12955. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  12956. #define ID3D12Device6_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  12957. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  12958. #define ID3D12Device6_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  12959. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  12960. #define ID3D12Device6_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  12961. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  12962. #define ID3D12Device6_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  12963. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  12964. #define ID3D12Device6_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  12965. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  12966. #define ID3D12Device6_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  12967. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  12968. #define ID3D12Device6_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  12969. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  12970. #define ID3D12Device6_CreateSampler(This,pDesc,DestDescriptor) \
  12971. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  12972. #define ID3D12Device6_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  12973. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  12974. #define ID3D12Device6_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  12975. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  12976. #if !defined(_WIN32)
  12977. #define ID3D12Device6_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  12978. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  12979. #else
  12980. #define ID3D12Device6_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  12981. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  12982. #endif
  12983. #if !defined(_WIN32)
  12984. #define ID3D12Device6_GetCustomHeapProperties(This,nodeMask,heapType) \
  12985. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  12986. #else
  12987. #define ID3D12Device6_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  12988. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  12989. #endif
  12990. #define ID3D12Device6_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  12991. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  12992. #define ID3D12Device6_CreateHeap(This,pDesc,riid,ppvHeap) \
  12993. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  12994. #define ID3D12Device6_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  12995. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  12996. #define ID3D12Device6_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  12997. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  12998. #define ID3D12Device6_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  12999. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  13000. #define ID3D12Device6_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  13001. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  13002. #define ID3D12Device6_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  13003. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  13004. #define ID3D12Device6_MakeResident(This,NumObjects,ppObjects) \
  13005. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  13006. #define ID3D12Device6_Evict(This,NumObjects,ppObjects) \
  13007. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  13008. #define ID3D12Device6_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  13009. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  13010. #define ID3D12Device6_GetDeviceRemovedReason(This) \
  13011. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  13012. #define ID3D12Device6_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  13013. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  13014. #define ID3D12Device6_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  13015. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  13016. #define ID3D12Device6_SetStablePowerState(This,Enable) \
  13017. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  13018. #define ID3D12Device6_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  13019. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  13020. #define ID3D12Device6_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  13021. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  13022. #if !defined(_WIN32)
  13023. #define ID3D12Device6_GetAdapterLuid(This) \
  13024. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  13025. #else
  13026. #define ID3D12Device6_GetAdapterLuid(This,RetVal) \
  13027. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  13028. #endif
  13029. #define ID3D12Device6_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  13030. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  13031. #define ID3D12Device6_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  13032. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  13033. #define ID3D12Device6_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  13034. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  13035. #define ID3D12Device6_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  13036. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  13037. #define ID3D12Device6_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  13038. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  13039. #define ID3D12Device6_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  13040. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  13041. #define ID3D12Device6_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  13042. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  13043. #define ID3D12Device6_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  13044. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  13045. #define ID3D12Device6_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  13046. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  13047. #define ID3D12Device6_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  13048. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  13049. #define ID3D12Device6_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  13050. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  13051. #define ID3D12Device6_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  13052. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  13053. #if !defined(_WIN32)
  13054. #define ID3D12Device6_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  13055. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  13056. #else
  13057. #define ID3D12Device6_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  13058. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  13059. #endif
  13060. #define ID3D12Device6_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  13061. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  13062. #define ID3D12Device6_RemoveDevice(This) \
  13063. ( (This)->lpVtbl -> RemoveDevice(This) )
  13064. #define ID3D12Device6_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  13065. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  13066. #define ID3D12Device6_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  13067. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  13068. #define ID3D12Device6_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  13069. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  13070. #define ID3D12Device6_CreateStateObject(This,pDesc,riid,ppStateObject) \
  13071. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  13072. #define ID3D12Device6_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  13073. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  13074. #define ID3D12Device6_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  13075. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  13076. #define ID3D12Device6_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  13077. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  13078. #endif /* COBJMACROS */
  13079. #endif /* C style interface */
  13080. #endif /* __ID3D12Device6_INTERFACE_DEFINED__ */
  13081. /* interface __MIDL_itf_d3d12_0000_0044 */
  13082. /* [local] */
  13083. DEFINE_GUID(D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED, 0x62B0084E, 0xC70E, 0x4DAA, 0xA1, 0x09, 0x30, 0xFF, 0x8D, 0x5A, 0x04, 0x82);
  13084. typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT
  13085. {
  13086. UINT NodeIndex;
  13087. UINT Count;
  13088. } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT;
  13089. typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES
  13090. {
  13091. UINT NodeIndex;
  13092. UINT Count;
  13093. GUID *pTypes;
  13094. } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES;
  13095. typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC1
  13096. {
  13097. UINT NodeMask;
  13098. D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags;
  13099. GUID ProtectionType;
  13100. } D3D12_PROTECTED_RESOURCE_SESSION_DESC1;
  13101. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0044_v0_0_c_ifspec;
  13102. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0044_v0_0_s_ifspec;
  13103. #ifndef __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__
  13104. #define __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__
  13105. /* interface ID3D12ProtectedResourceSession1 */
  13106. /* [unique][local][object][uuid] */
  13107. EXTERN_C const IID IID_ID3D12ProtectedResourceSession1;
  13108. #if defined(__cplusplus) && !defined(CINTERFACE)
  13109. MIDL_INTERFACE("D6F12DD6-76FB-406E-8961-4296EEFC0409")
  13110. ID3D12ProtectedResourceSession1 : public ID3D12ProtectedResourceSession
  13111. {
  13112. public:
  13113. #if defined(_MSC_VER) || !defined(_WIN32)
  13114. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC1 STDMETHODCALLTYPE GetDesc1( void) = 0;
  13115. #else
  13116. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *STDMETHODCALLTYPE GetDesc1(
  13117. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 * RetVal) = 0;
  13118. #endif
  13119. };
  13120. #else /* C style interface */
  13121. typedef struct ID3D12ProtectedResourceSession1Vtbl
  13122. {
  13123. BEGIN_INTERFACE
  13124. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  13125. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13126. ID3D12ProtectedResourceSession1 * This,
  13127. REFIID riid,
  13128. _COM_Outptr_ void **ppvObject);
  13129. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  13130. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13131. ID3D12ProtectedResourceSession1 * This);
  13132. DECLSPEC_XFGVIRT(IUnknown, Release)
  13133. ULONG ( STDMETHODCALLTYPE *Release )(
  13134. ID3D12ProtectedResourceSession1 * This);
  13135. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  13136. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  13137. ID3D12ProtectedResourceSession1 * This,
  13138. _In_ REFGUID guid,
  13139. _Inout_ UINT *pDataSize,
  13140. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  13141. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  13142. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  13143. ID3D12ProtectedResourceSession1 * This,
  13144. _In_ REFGUID guid,
  13145. _In_ UINT DataSize,
  13146. _In_reads_bytes_opt_( DataSize ) const void *pData);
  13147. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  13148. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  13149. ID3D12ProtectedResourceSession1 * This,
  13150. _In_ REFGUID guid,
  13151. _In_opt_ const IUnknown *pData);
  13152. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  13153. HRESULT ( STDMETHODCALLTYPE *SetName )(
  13154. ID3D12ProtectedResourceSession1 * This,
  13155. _In_z_ LPCWSTR Name);
  13156. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  13157. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  13158. ID3D12ProtectedResourceSession1 * This,
  13159. REFIID riid,
  13160. _COM_Outptr_opt_ void **ppvDevice);
  13161. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence)
  13162. HRESULT ( STDMETHODCALLTYPE *GetStatusFence )(
  13163. ID3D12ProtectedResourceSession1 * This,
  13164. REFIID riid,
  13165. _COM_Outptr_opt_ void **ppFence);
  13166. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus)
  13167. D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )(
  13168. ID3D12ProtectedResourceSession1 * This);
  13169. DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession, GetDesc)
  13170. #if !defined(_WIN32)
  13171. D3D12_PROTECTED_RESOURCE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  13172. ID3D12ProtectedResourceSession1 * This);
  13173. #else
  13174. D3D12_PROTECTED_RESOURCE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  13175. ID3D12ProtectedResourceSession1 * This,
  13176. D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal);
  13177. #endif
  13178. DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession1, GetDesc1)
  13179. #if !defined(_WIN32)
  13180. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 ( STDMETHODCALLTYPE *GetDesc1 )(
  13181. ID3D12ProtectedResourceSession1 * This);
  13182. #else
  13183. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *( STDMETHODCALLTYPE *GetDesc1 )(
  13184. ID3D12ProtectedResourceSession1 * This,
  13185. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 * RetVal);
  13186. #endif
  13187. END_INTERFACE
  13188. } ID3D12ProtectedResourceSession1Vtbl;
  13189. interface ID3D12ProtectedResourceSession1
  13190. {
  13191. CONST_VTBL struct ID3D12ProtectedResourceSession1Vtbl *lpVtbl;
  13192. };
  13193. #ifdef COBJMACROS
  13194. #define ID3D12ProtectedResourceSession1_QueryInterface(This,riid,ppvObject) \
  13195. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  13196. #define ID3D12ProtectedResourceSession1_AddRef(This) \
  13197. ( (This)->lpVtbl -> AddRef(This) )
  13198. #define ID3D12ProtectedResourceSession1_Release(This) \
  13199. ( (This)->lpVtbl -> Release(This) )
  13200. #define ID3D12ProtectedResourceSession1_GetPrivateData(This,guid,pDataSize,pData) \
  13201. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  13202. #define ID3D12ProtectedResourceSession1_SetPrivateData(This,guid,DataSize,pData) \
  13203. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  13204. #define ID3D12ProtectedResourceSession1_SetPrivateDataInterface(This,guid,pData) \
  13205. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  13206. #define ID3D12ProtectedResourceSession1_SetName(This,Name) \
  13207. ( (This)->lpVtbl -> SetName(This,Name) )
  13208. #define ID3D12ProtectedResourceSession1_GetDevice(This,riid,ppvDevice) \
  13209. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  13210. #define ID3D12ProtectedResourceSession1_GetStatusFence(This,riid,ppFence) \
  13211. ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) )
  13212. #define ID3D12ProtectedResourceSession1_GetSessionStatus(This) \
  13213. ( (This)->lpVtbl -> GetSessionStatus(This) )
  13214. #if !defined(_WIN32)
  13215. #define ID3D12ProtectedResourceSession1_GetDesc(This) \
  13216. ( (This)->lpVtbl -> GetDesc(This) )
  13217. #else
  13218. #define ID3D12ProtectedResourceSession1_GetDesc(This,RetVal) \
  13219. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  13220. #endif
  13221. #if !defined(_WIN32)
  13222. #define ID3D12ProtectedResourceSession1_GetDesc1(This) \
  13223. ( (This)->lpVtbl -> GetDesc1(This) )
  13224. #else
  13225. #define ID3D12ProtectedResourceSession1_GetDesc1(This,RetVal) \
  13226. ( (This)->lpVtbl -> GetDesc1(This,RetVal) )
  13227. #endif
  13228. #endif /* COBJMACROS */
  13229. #endif /* C style interface */
  13230. #endif /* __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__ */
  13231. #ifndef __ID3D12Device7_INTERFACE_DEFINED__
  13232. #define __ID3D12Device7_INTERFACE_DEFINED__
  13233. /* interface ID3D12Device7 */
  13234. /* [unique][local][object][uuid] */
  13235. EXTERN_C const IID IID_ID3D12Device7;
  13236. #if defined(__cplusplus) && !defined(CINTERFACE)
  13237. MIDL_INTERFACE("5c014b53-68a1-4b9b-8bd1-dd6046b9358b")
  13238. ID3D12Device7 : public ID3D12Device6
  13239. {
  13240. public:
  13241. virtual HRESULT STDMETHODCALLTYPE AddToStateObject(
  13242. const D3D12_STATE_OBJECT_DESC *pAddition,
  13243. ID3D12StateObject *pStateObjectToGrowFrom,
  13244. REFIID riid,
  13245. _COM_Outptr_ void **ppNewStateObject) = 0;
  13246. virtual HRESULT STDMETHODCALLTYPE CreateProtectedResourceSession1(
  13247. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  13248. _In_ REFIID riid,
  13249. _COM_Outptr_ void **ppSession) = 0;
  13250. };
  13251. #else /* C style interface */
  13252. typedef struct ID3D12Device7Vtbl
  13253. {
  13254. BEGIN_INTERFACE
  13255. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  13256. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13257. ID3D12Device7 * This,
  13258. REFIID riid,
  13259. _COM_Outptr_ void **ppvObject);
  13260. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  13261. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13262. ID3D12Device7 * This);
  13263. DECLSPEC_XFGVIRT(IUnknown, Release)
  13264. ULONG ( STDMETHODCALLTYPE *Release )(
  13265. ID3D12Device7 * This);
  13266. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  13267. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  13268. ID3D12Device7 * This,
  13269. _In_ REFGUID guid,
  13270. _Inout_ UINT *pDataSize,
  13271. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  13272. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  13273. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  13274. ID3D12Device7 * This,
  13275. _In_ REFGUID guid,
  13276. _In_ UINT DataSize,
  13277. _In_reads_bytes_opt_( DataSize ) const void *pData);
  13278. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  13279. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  13280. ID3D12Device7 * This,
  13281. _In_ REFGUID guid,
  13282. _In_opt_ const IUnknown *pData);
  13283. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  13284. HRESULT ( STDMETHODCALLTYPE *SetName )(
  13285. ID3D12Device7 * This,
  13286. _In_z_ LPCWSTR Name);
  13287. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  13288. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  13289. ID3D12Device7 * This);
  13290. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  13291. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  13292. ID3D12Device7 * This,
  13293. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  13294. REFIID riid,
  13295. _COM_Outptr_ void **ppCommandQueue);
  13296. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  13297. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  13298. ID3D12Device7 * This,
  13299. _In_ D3D12_COMMAND_LIST_TYPE type,
  13300. REFIID riid,
  13301. _COM_Outptr_ void **ppCommandAllocator);
  13302. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  13303. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  13304. ID3D12Device7 * This,
  13305. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  13306. REFIID riid,
  13307. _COM_Outptr_ void **ppPipelineState);
  13308. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  13309. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  13310. ID3D12Device7 * This,
  13311. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  13312. REFIID riid,
  13313. _COM_Outptr_ void **ppPipelineState);
  13314. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  13315. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  13316. ID3D12Device7 * This,
  13317. _In_ UINT nodeMask,
  13318. _In_ D3D12_COMMAND_LIST_TYPE type,
  13319. _In_ ID3D12CommandAllocator *pCommandAllocator,
  13320. _In_opt_ ID3D12PipelineState *pInitialState,
  13321. REFIID riid,
  13322. _COM_Outptr_ void **ppCommandList);
  13323. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  13324. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  13325. ID3D12Device7 * This,
  13326. D3D12_FEATURE Feature,
  13327. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  13328. UINT FeatureSupportDataSize);
  13329. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  13330. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  13331. ID3D12Device7 * This,
  13332. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  13333. REFIID riid,
  13334. _COM_Outptr_ void **ppvHeap);
  13335. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  13336. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  13337. ID3D12Device7 * This,
  13338. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  13339. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  13340. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  13341. ID3D12Device7 * This,
  13342. _In_ UINT nodeMask,
  13343. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  13344. _In_ SIZE_T blobLengthInBytes,
  13345. REFIID riid,
  13346. _COM_Outptr_ void **ppvRootSignature);
  13347. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  13348. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  13349. ID3D12Device7 * This,
  13350. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  13351. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13352. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  13353. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  13354. ID3D12Device7 * This,
  13355. _In_opt_ ID3D12Resource *pResource,
  13356. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  13357. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13358. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  13359. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  13360. ID3D12Device7 * This,
  13361. _In_opt_ ID3D12Resource *pResource,
  13362. _In_opt_ ID3D12Resource *pCounterResource,
  13363. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  13364. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13365. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  13366. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  13367. ID3D12Device7 * This,
  13368. _In_opt_ ID3D12Resource *pResource,
  13369. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  13370. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13371. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  13372. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  13373. ID3D12Device7 * This,
  13374. _In_opt_ ID3D12Resource *pResource,
  13375. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  13376. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13377. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  13378. void ( STDMETHODCALLTYPE *CreateSampler )(
  13379. ID3D12Device7 * This,
  13380. _In_ const D3D12_SAMPLER_DESC *pDesc,
  13381. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13382. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  13383. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  13384. ID3D12Device7 * This,
  13385. _In_ UINT NumDestDescriptorRanges,
  13386. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  13387. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  13388. _In_ UINT NumSrcDescriptorRanges,
  13389. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  13390. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  13391. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  13392. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  13393. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  13394. ID3D12Device7 * This,
  13395. _In_ UINT NumDescriptors,
  13396. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  13397. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  13398. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  13399. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  13400. #if !defined(_WIN32)
  13401. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  13402. ID3D12Device7 * This,
  13403. _In_ UINT visibleMask,
  13404. _In_ UINT numResourceDescs,
  13405. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  13406. #else
  13407. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  13408. ID3D12Device7 * This,
  13409. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13410. _In_ UINT visibleMask,
  13411. _In_ UINT numResourceDescs,
  13412. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  13413. #endif
  13414. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  13415. #if !defined(_WIN32)
  13416. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  13417. ID3D12Device7 * This,
  13418. _In_ UINT nodeMask,
  13419. D3D12_HEAP_TYPE heapType);
  13420. #else
  13421. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  13422. ID3D12Device7 * This,
  13423. D3D12_HEAP_PROPERTIES * RetVal,
  13424. _In_ UINT nodeMask,
  13425. D3D12_HEAP_TYPE heapType);
  13426. #endif
  13427. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  13428. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  13429. ID3D12Device7 * This,
  13430. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  13431. D3D12_HEAP_FLAGS HeapFlags,
  13432. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13433. D3D12_RESOURCE_STATES InitialResourceState,
  13434. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13435. REFIID riidResource,
  13436. _COM_Outptr_opt_ void **ppvResource);
  13437. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  13438. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  13439. ID3D12Device7 * This,
  13440. _In_ const D3D12_HEAP_DESC *pDesc,
  13441. REFIID riid,
  13442. _COM_Outptr_opt_ void **ppvHeap);
  13443. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  13444. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  13445. ID3D12Device7 * This,
  13446. _In_ ID3D12Heap *pHeap,
  13447. UINT64 HeapOffset,
  13448. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13449. D3D12_RESOURCE_STATES InitialState,
  13450. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13451. REFIID riid,
  13452. _COM_Outptr_opt_ void **ppvResource);
  13453. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  13454. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  13455. ID3D12Device7 * This,
  13456. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13457. D3D12_RESOURCE_STATES InitialState,
  13458. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13459. REFIID riid,
  13460. _COM_Outptr_opt_ void **ppvResource);
  13461. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  13462. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  13463. ID3D12Device7 * This,
  13464. _In_ ID3D12DeviceChild *pObject,
  13465. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  13466. DWORD Access,
  13467. _In_opt_ LPCWSTR Name,
  13468. _Out_ HANDLE *pHandle);
  13469. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  13470. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  13471. ID3D12Device7 * This,
  13472. _In_ HANDLE NTHandle,
  13473. REFIID riid,
  13474. _COM_Outptr_opt_ void **ppvObj);
  13475. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  13476. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  13477. ID3D12Device7 * This,
  13478. _In_ LPCWSTR Name,
  13479. DWORD Access,
  13480. /* [annotation][out] */
  13481. _Out_ HANDLE *pNTHandle);
  13482. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  13483. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  13484. ID3D12Device7 * This,
  13485. UINT NumObjects,
  13486. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  13487. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  13488. HRESULT ( STDMETHODCALLTYPE *Evict )(
  13489. ID3D12Device7 * This,
  13490. UINT NumObjects,
  13491. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  13492. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  13493. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  13494. ID3D12Device7 * This,
  13495. UINT64 InitialValue,
  13496. D3D12_FENCE_FLAGS Flags,
  13497. REFIID riid,
  13498. _COM_Outptr_ void **ppFence);
  13499. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  13500. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  13501. ID3D12Device7 * This);
  13502. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  13503. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  13504. ID3D12Device7 * This,
  13505. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  13506. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  13507. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  13508. UINT64 BaseOffset,
  13509. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  13510. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  13511. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  13512. _Out_opt_ UINT64 *pTotalBytes);
  13513. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  13514. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  13515. ID3D12Device7 * This,
  13516. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  13517. REFIID riid,
  13518. _COM_Outptr_opt_ void **ppvHeap);
  13519. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  13520. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  13521. ID3D12Device7 * This,
  13522. BOOL Enable);
  13523. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  13524. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  13525. ID3D12Device7 * This,
  13526. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  13527. _In_opt_ ID3D12RootSignature *pRootSignature,
  13528. REFIID riid,
  13529. _COM_Outptr_opt_ void **ppvCommandSignature);
  13530. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  13531. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  13532. ID3D12Device7 * This,
  13533. _In_ ID3D12Resource *pTiledResource,
  13534. _Out_opt_ UINT *pNumTilesForEntireResource,
  13535. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  13536. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  13537. _Inout_opt_ UINT *pNumSubresourceTilings,
  13538. _In_ UINT FirstSubresourceTilingToGet,
  13539. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  13540. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  13541. #if !defined(_WIN32)
  13542. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  13543. ID3D12Device7 * This);
  13544. #else
  13545. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  13546. ID3D12Device7 * This,
  13547. LUID * RetVal);
  13548. #endif
  13549. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  13550. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  13551. ID3D12Device7 * This,
  13552. _In_reads_(BlobLength) const void *pLibraryBlob,
  13553. SIZE_T BlobLength,
  13554. REFIID riid,
  13555. _COM_Outptr_ void **ppPipelineLibrary);
  13556. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  13557. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  13558. ID3D12Device7 * This,
  13559. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  13560. _In_reads_(NumFences) const UINT64 *pFenceValues,
  13561. UINT NumFences,
  13562. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  13563. HANDLE hEvent);
  13564. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  13565. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  13566. ID3D12Device7 * This,
  13567. UINT NumObjects,
  13568. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  13569. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  13570. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  13571. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  13572. ID3D12Device7 * This,
  13573. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  13574. REFIID riid,
  13575. _COM_Outptr_ void **ppPipelineState);
  13576. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  13577. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  13578. ID3D12Device7 * This,
  13579. _In_ const void *pAddress,
  13580. REFIID riid,
  13581. _COM_Outptr_ void **ppvHeap);
  13582. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  13583. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  13584. ID3D12Device7 * This,
  13585. _In_ HANDLE hFileMapping,
  13586. REFIID riid,
  13587. _COM_Outptr_ void **ppvHeap);
  13588. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  13589. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  13590. ID3D12Device7 * This,
  13591. D3D12_RESIDENCY_FLAGS Flags,
  13592. UINT NumObjects,
  13593. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  13594. _In_ ID3D12Fence *pFenceToSignal,
  13595. UINT64 FenceValueToSignal);
  13596. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  13597. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  13598. ID3D12Device7 * This,
  13599. _In_ UINT nodeMask,
  13600. _In_ D3D12_COMMAND_LIST_TYPE type,
  13601. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  13602. REFIID riid,
  13603. _COM_Outptr_ void **ppCommandList);
  13604. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  13605. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  13606. ID3D12Device7 * This,
  13607. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  13608. _In_ REFIID riid,
  13609. _COM_Outptr_ void **ppSession);
  13610. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  13611. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  13612. ID3D12Device7 * This,
  13613. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  13614. D3D12_HEAP_FLAGS HeapFlags,
  13615. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13616. D3D12_RESOURCE_STATES InitialResourceState,
  13617. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13618. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13619. REFIID riidResource,
  13620. _COM_Outptr_opt_ void **ppvResource);
  13621. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  13622. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  13623. ID3D12Device7 * This,
  13624. _In_ const D3D12_HEAP_DESC *pDesc,
  13625. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13626. REFIID riid,
  13627. _COM_Outptr_opt_ void **ppvHeap);
  13628. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  13629. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  13630. ID3D12Device7 * This,
  13631. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13632. D3D12_RESOURCE_STATES InitialState,
  13633. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13634. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13635. REFIID riid,
  13636. _COM_Outptr_opt_ void **ppvResource);
  13637. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  13638. #if !defined(_WIN32)
  13639. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  13640. ID3D12Device7 * This,
  13641. UINT visibleMask,
  13642. UINT numResourceDescs,
  13643. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  13644. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13645. #else
  13646. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  13647. ID3D12Device7 * This,
  13648. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13649. UINT visibleMask,
  13650. UINT numResourceDescs,
  13651. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  13652. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13653. #endif
  13654. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  13655. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  13656. ID3D12Device7 * This,
  13657. _In_ ID3D12LifetimeOwner *pOwner,
  13658. REFIID riid,
  13659. _COM_Outptr_ void **ppvTracker);
  13660. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  13661. void ( STDMETHODCALLTYPE *RemoveDevice )(
  13662. ID3D12Device7 * This);
  13663. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  13664. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  13665. ID3D12Device7 * This,
  13666. _Inout_ UINT *pNumMetaCommands,
  13667. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  13668. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  13669. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  13670. ID3D12Device7 * This,
  13671. _In_ REFGUID CommandId,
  13672. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  13673. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  13674. _Inout_ UINT *pParameterCount,
  13675. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  13676. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  13677. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  13678. ID3D12Device7 * This,
  13679. _In_ REFGUID CommandId,
  13680. _In_ UINT NodeMask,
  13681. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  13682. _In_ SIZE_T CreationParametersDataSizeInBytes,
  13683. REFIID riid,
  13684. _COM_Outptr_ void **ppMetaCommand);
  13685. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  13686. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  13687. ID3D12Device7 * This,
  13688. const D3D12_STATE_OBJECT_DESC *pDesc,
  13689. REFIID riid,
  13690. _COM_Outptr_ void **ppStateObject);
  13691. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  13692. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  13693. ID3D12Device7 * This,
  13694. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  13695. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  13696. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  13697. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  13698. ID3D12Device7 * This,
  13699. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  13700. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  13701. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  13702. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  13703. ID3D12Device7 * This,
  13704. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  13705. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  13706. _In_opt_ HANDLE hEventToSignalUponCompletion,
  13707. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  13708. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  13709. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  13710. ID3D12Device7 * This,
  13711. const D3D12_STATE_OBJECT_DESC *pAddition,
  13712. ID3D12StateObject *pStateObjectToGrowFrom,
  13713. REFIID riid,
  13714. _COM_Outptr_ void **ppNewStateObject);
  13715. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  13716. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  13717. ID3D12Device7 * This,
  13718. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  13719. _In_ REFIID riid,
  13720. _COM_Outptr_ void **ppSession);
  13721. END_INTERFACE
  13722. } ID3D12Device7Vtbl;
  13723. interface ID3D12Device7
  13724. {
  13725. CONST_VTBL struct ID3D12Device7Vtbl *lpVtbl;
  13726. };
  13727. #ifdef COBJMACROS
  13728. #define ID3D12Device7_QueryInterface(This,riid,ppvObject) \
  13729. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  13730. #define ID3D12Device7_AddRef(This) \
  13731. ( (This)->lpVtbl -> AddRef(This) )
  13732. #define ID3D12Device7_Release(This) \
  13733. ( (This)->lpVtbl -> Release(This) )
  13734. #define ID3D12Device7_GetPrivateData(This,guid,pDataSize,pData) \
  13735. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  13736. #define ID3D12Device7_SetPrivateData(This,guid,DataSize,pData) \
  13737. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  13738. #define ID3D12Device7_SetPrivateDataInterface(This,guid,pData) \
  13739. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  13740. #define ID3D12Device7_SetName(This,Name) \
  13741. ( (This)->lpVtbl -> SetName(This,Name) )
  13742. #define ID3D12Device7_GetNodeCount(This) \
  13743. ( (This)->lpVtbl -> GetNodeCount(This) )
  13744. #define ID3D12Device7_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  13745. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  13746. #define ID3D12Device7_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  13747. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  13748. #define ID3D12Device7_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  13749. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  13750. #define ID3D12Device7_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  13751. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  13752. #define ID3D12Device7_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  13753. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  13754. #define ID3D12Device7_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  13755. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  13756. #define ID3D12Device7_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  13757. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  13758. #define ID3D12Device7_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  13759. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  13760. #define ID3D12Device7_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  13761. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  13762. #define ID3D12Device7_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  13763. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  13764. #define ID3D12Device7_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  13765. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  13766. #define ID3D12Device7_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  13767. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  13768. #define ID3D12Device7_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  13769. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  13770. #define ID3D12Device7_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  13771. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  13772. #define ID3D12Device7_CreateSampler(This,pDesc,DestDescriptor) \
  13773. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  13774. #define ID3D12Device7_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  13775. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  13776. #define ID3D12Device7_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  13777. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  13778. #if !defined(_WIN32)
  13779. #define ID3D12Device7_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  13780. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  13781. #else
  13782. #define ID3D12Device7_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  13783. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  13784. #endif
  13785. #if !defined(_WIN32)
  13786. #define ID3D12Device7_GetCustomHeapProperties(This,nodeMask,heapType) \
  13787. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  13788. #else
  13789. #define ID3D12Device7_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  13790. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  13791. #endif
  13792. #define ID3D12Device7_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  13793. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  13794. #define ID3D12Device7_CreateHeap(This,pDesc,riid,ppvHeap) \
  13795. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  13796. #define ID3D12Device7_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  13797. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  13798. #define ID3D12Device7_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  13799. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  13800. #define ID3D12Device7_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  13801. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  13802. #define ID3D12Device7_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  13803. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  13804. #define ID3D12Device7_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  13805. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  13806. #define ID3D12Device7_MakeResident(This,NumObjects,ppObjects) \
  13807. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  13808. #define ID3D12Device7_Evict(This,NumObjects,ppObjects) \
  13809. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  13810. #define ID3D12Device7_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  13811. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  13812. #define ID3D12Device7_GetDeviceRemovedReason(This) \
  13813. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  13814. #define ID3D12Device7_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  13815. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  13816. #define ID3D12Device7_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  13817. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  13818. #define ID3D12Device7_SetStablePowerState(This,Enable) \
  13819. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  13820. #define ID3D12Device7_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  13821. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  13822. #define ID3D12Device7_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  13823. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  13824. #if !defined(_WIN32)
  13825. #define ID3D12Device7_GetAdapterLuid(This) \
  13826. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  13827. #else
  13828. #define ID3D12Device7_GetAdapterLuid(This,RetVal) \
  13829. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  13830. #endif
  13831. #define ID3D12Device7_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  13832. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  13833. #define ID3D12Device7_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  13834. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  13835. #define ID3D12Device7_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  13836. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  13837. #define ID3D12Device7_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  13838. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  13839. #define ID3D12Device7_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  13840. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  13841. #define ID3D12Device7_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  13842. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  13843. #define ID3D12Device7_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  13844. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  13845. #define ID3D12Device7_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  13846. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  13847. #define ID3D12Device7_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  13848. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  13849. #define ID3D12Device7_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  13850. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  13851. #define ID3D12Device7_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  13852. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  13853. #define ID3D12Device7_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  13854. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  13855. #if !defined(_WIN32)
  13856. #define ID3D12Device7_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  13857. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  13858. #else
  13859. #define ID3D12Device7_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  13860. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  13861. #endif
  13862. #define ID3D12Device7_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  13863. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  13864. #define ID3D12Device7_RemoveDevice(This) \
  13865. ( (This)->lpVtbl -> RemoveDevice(This) )
  13866. #define ID3D12Device7_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  13867. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  13868. #define ID3D12Device7_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  13869. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  13870. #define ID3D12Device7_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  13871. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  13872. #define ID3D12Device7_CreateStateObject(This,pDesc,riid,ppStateObject) \
  13873. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  13874. #define ID3D12Device7_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  13875. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  13876. #define ID3D12Device7_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  13877. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  13878. #define ID3D12Device7_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  13879. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  13880. #define ID3D12Device7_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  13881. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  13882. #define ID3D12Device7_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  13883. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  13884. #endif /* COBJMACROS */
  13885. #endif /* C style interface */
  13886. #endif /* __ID3D12Device7_INTERFACE_DEFINED__ */
  13887. #ifndef __ID3D12Device8_INTERFACE_DEFINED__
  13888. #define __ID3D12Device8_INTERFACE_DEFINED__
  13889. /* interface ID3D12Device8 */
  13890. /* [unique][local][object][uuid] */
  13891. EXTERN_C const IID IID_ID3D12Device8;
  13892. #if defined(__cplusplus) && !defined(CINTERFACE)
  13893. MIDL_INTERFACE("9218E6BB-F944-4F7E-A75C-B1B2C7B701F3")
  13894. ID3D12Device8 : public ID3D12Device7
  13895. {
  13896. public:
  13897. #if defined(_MSC_VER) || !defined(_WIN32)
  13898. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo2(
  13899. UINT visibleMask,
  13900. UINT numResourceDescs,
  13901. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  13902. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  13903. #else
  13904. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo2(
  13905. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13906. UINT visibleMask,
  13907. UINT numResourceDescs,
  13908. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  13909. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  13910. #endif
  13911. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource2(
  13912. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  13913. D3D12_HEAP_FLAGS HeapFlags,
  13914. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  13915. D3D12_RESOURCE_STATES InitialResourceState,
  13916. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13917. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13918. REFIID riidResource,
  13919. _COM_Outptr_opt_ void **ppvResource) = 0;
  13920. virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource1(
  13921. _In_ ID3D12Heap *pHeap,
  13922. UINT64 HeapOffset,
  13923. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  13924. D3D12_RESOURCE_STATES InitialState,
  13925. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13926. REFIID riid,
  13927. _COM_Outptr_opt_ void **ppvResource) = 0;
  13928. virtual void STDMETHODCALLTYPE CreateSamplerFeedbackUnorderedAccessView(
  13929. _In_opt_ ID3D12Resource *pTargetedResource,
  13930. _In_opt_ ID3D12Resource *pFeedbackResource,
  13931. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  13932. virtual void STDMETHODCALLTYPE GetCopyableFootprints1(
  13933. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  13934. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  13935. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  13936. UINT64 BaseOffset,
  13937. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  13938. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  13939. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  13940. _Out_opt_ UINT64 *pTotalBytes) = 0;
  13941. };
  13942. #else /* C style interface */
  13943. typedef struct ID3D12Device8Vtbl
  13944. {
  13945. BEGIN_INTERFACE
  13946. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  13947. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13948. ID3D12Device8 * This,
  13949. REFIID riid,
  13950. _COM_Outptr_ void **ppvObject);
  13951. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  13952. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13953. ID3D12Device8 * This);
  13954. DECLSPEC_XFGVIRT(IUnknown, Release)
  13955. ULONG ( STDMETHODCALLTYPE *Release )(
  13956. ID3D12Device8 * This);
  13957. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  13958. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  13959. ID3D12Device8 * This,
  13960. _In_ REFGUID guid,
  13961. _Inout_ UINT *pDataSize,
  13962. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  13963. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  13964. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  13965. ID3D12Device8 * This,
  13966. _In_ REFGUID guid,
  13967. _In_ UINT DataSize,
  13968. _In_reads_bytes_opt_( DataSize ) const void *pData);
  13969. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  13970. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  13971. ID3D12Device8 * This,
  13972. _In_ REFGUID guid,
  13973. _In_opt_ const IUnknown *pData);
  13974. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  13975. HRESULT ( STDMETHODCALLTYPE *SetName )(
  13976. ID3D12Device8 * This,
  13977. _In_z_ LPCWSTR Name);
  13978. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  13979. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  13980. ID3D12Device8 * This);
  13981. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  13982. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  13983. ID3D12Device8 * This,
  13984. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  13985. REFIID riid,
  13986. _COM_Outptr_ void **ppCommandQueue);
  13987. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  13988. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  13989. ID3D12Device8 * This,
  13990. _In_ D3D12_COMMAND_LIST_TYPE type,
  13991. REFIID riid,
  13992. _COM_Outptr_ void **ppCommandAllocator);
  13993. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  13994. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  13995. ID3D12Device8 * This,
  13996. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  13997. REFIID riid,
  13998. _COM_Outptr_ void **ppPipelineState);
  13999. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  14000. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  14001. ID3D12Device8 * This,
  14002. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  14003. REFIID riid,
  14004. _COM_Outptr_ void **ppPipelineState);
  14005. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  14006. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  14007. ID3D12Device8 * This,
  14008. _In_ UINT nodeMask,
  14009. _In_ D3D12_COMMAND_LIST_TYPE type,
  14010. _In_ ID3D12CommandAllocator *pCommandAllocator,
  14011. _In_opt_ ID3D12PipelineState *pInitialState,
  14012. REFIID riid,
  14013. _COM_Outptr_ void **ppCommandList);
  14014. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  14015. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  14016. ID3D12Device8 * This,
  14017. D3D12_FEATURE Feature,
  14018. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  14019. UINT FeatureSupportDataSize);
  14020. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  14021. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  14022. ID3D12Device8 * This,
  14023. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  14024. REFIID riid,
  14025. _COM_Outptr_ void **ppvHeap);
  14026. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  14027. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  14028. ID3D12Device8 * This,
  14029. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  14030. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  14031. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  14032. ID3D12Device8 * This,
  14033. _In_ UINT nodeMask,
  14034. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  14035. _In_ SIZE_T blobLengthInBytes,
  14036. REFIID riid,
  14037. _COM_Outptr_ void **ppvRootSignature);
  14038. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  14039. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  14040. ID3D12Device8 * This,
  14041. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  14042. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14043. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  14044. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  14045. ID3D12Device8 * This,
  14046. _In_opt_ ID3D12Resource *pResource,
  14047. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  14048. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14049. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  14050. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  14051. ID3D12Device8 * This,
  14052. _In_opt_ ID3D12Resource *pResource,
  14053. _In_opt_ ID3D12Resource *pCounterResource,
  14054. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  14055. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14056. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  14057. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  14058. ID3D12Device8 * This,
  14059. _In_opt_ ID3D12Resource *pResource,
  14060. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  14061. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14062. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  14063. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  14064. ID3D12Device8 * This,
  14065. _In_opt_ ID3D12Resource *pResource,
  14066. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  14067. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14068. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  14069. void ( STDMETHODCALLTYPE *CreateSampler )(
  14070. ID3D12Device8 * This,
  14071. _In_ const D3D12_SAMPLER_DESC *pDesc,
  14072. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14073. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  14074. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  14075. ID3D12Device8 * This,
  14076. _In_ UINT NumDestDescriptorRanges,
  14077. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  14078. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  14079. _In_ UINT NumSrcDescriptorRanges,
  14080. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  14081. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  14082. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  14083. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  14084. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  14085. ID3D12Device8 * This,
  14086. _In_ UINT NumDescriptors,
  14087. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  14088. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  14089. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  14090. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  14091. #if !defined(_WIN32)
  14092. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  14093. ID3D12Device8 * This,
  14094. _In_ UINT visibleMask,
  14095. _In_ UINT numResourceDescs,
  14096. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  14097. #else
  14098. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  14099. ID3D12Device8 * This,
  14100. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  14101. _In_ UINT visibleMask,
  14102. _In_ UINT numResourceDescs,
  14103. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  14104. #endif
  14105. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  14106. #if !defined(_WIN32)
  14107. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  14108. ID3D12Device8 * This,
  14109. _In_ UINT nodeMask,
  14110. D3D12_HEAP_TYPE heapType);
  14111. #else
  14112. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  14113. ID3D12Device8 * This,
  14114. D3D12_HEAP_PROPERTIES * RetVal,
  14115. _In_ UINT nodeMask,
  14116. D3D12_HEAP_TYPE heapType);
  14117. #endif
  14118. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  14119. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  14120. ID3D12Device8 * This,
  14121. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  14122. D3D12_HEAP_FLAGS HeapFlags,
  14123. _In_ const D3D12_RESOURCE_DESC *pDesc,
  14124. D3D12_RESOURCE_STATES InitialResourceState,
  14125. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14126. REFIID riidResource,
  14127. _COM_Outptr_opt_ void **ppvResource);
  14128. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  14129. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  14130. ID3D12Device8 * This,
  14131. _In_ const D3D12_HEAP_DESC *pDesc,
  14132. REFIID riid,
  14133. _COM_Outptr_opt_ void **ppvHeap);
  14134. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  14135. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  14136. ID3D12Device8 * This,
  14137. _In_ ID3D12Heap *pHeap,
  14138. UINT64 HeapOffset,
  14139. _In_ const D3D12_RESOURCE_DESC *pDesc,
  14140. D3D12_RESOURCE_STATES InitialState,
  14141. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14142. REFIID riid,
  14143. _COM_Outptr_opt_ void **ppvResource);
  14144. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  14145. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  14146. ID3D12Device8 * This,
  14147. _In_ const D3D12_RESOURCE_DESC *pDesc,
  14148. D3D12_RESOURCE_STATES InitialState,
  14149. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14150. REFIID riid,
  14151. _COM_Outptr_opt_ void **ppvResource);
  14152. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  14153. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  14154. ID3D12Device8 * This,
  14155. _In_ ID3D12DeviceChild *pObject,
  14156. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  14157. DWORD Access,
  14158. _In_opt_ LPCWSTR Name,
  14159. _Out_ HANDLE *pHandle);
  14160. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  14161. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  14162. ID3D12Device8 * This,
  14163. _In_ HANDLE NTHandle,
  14164. REFIID riid,
  14165. _COM_Outptr_opt_ void **ppvObj);
  14166. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  14167. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  14168. ID3D12Device8 * This,
  14169. _In_ LPCWSTR Name,
  14170. DWORD Access,
  14171. /* [annotation][out] */
  14172. _Out_ HANDLE *pNTHandle);
  14173. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  14174. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  14175. ID3D12Device8 * This,
  14176. UINT NumObjects,
  14177. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  14178. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  14179. HRESULT ( STDMETHODCALLTYPE *Evict )(
  14180. ID3D12Device8 * This,
  14181. UINT NumObjects,
  14182. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  14183. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  14184. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  14185. ID3D12Device8 * This,
  14186. UINT64 InitialValue,
  14187. D3D12_FENCE_FLAGS Flags,
  14188. REFIID riid,
  14189. _COM_Outptr_ void **ppFence);
  14190. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  14191. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  14192. ID3D12Device8 * This);
  14193. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  14194. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  14195. ID3D12Device8 * This,
  14196. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  14197. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  14198. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  14199. UINT64 BaseOffset,
  14200. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  14201. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  14202. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  14203. _Out_opt_ UINT64 *pTotalBytes);
  14204. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  14205. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  14206. ID3D12Device8 * This,
  14207. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  14208. REFIID riid,
  14209. _COM_Outptr_opt_ void **ppvHeap);
  14210. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  14211. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  14212. ID3D12Device8 * This,
  14213. BOOL Enable);
  14214. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  14215. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  14216. ID3D12Device8 * This,
  14217. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  14218. _In_opt_ ID3D12RootSignature *pRootSignature,
  14219. REFIID riid,
  14220. _COM_Outptr_opt_ void **ppvCommandSignature);
  14221. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  14222. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  14223. ID3D12Device8 * This,
  14224. _In_ ID3D12Resource *pTiledResource,
  14225. _Out_opt_ UINT *pNumTilesForEntireResource,
  14226. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  14227. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  14228. _Inout_opt_ UINT *pNumSubresourceTilings,
  14229. _In_ UINT FirstSubresourceTilingToGet,
  14230. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  14231. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  14232. #if !defined(_WIN32)
  14233. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  14234. ID3D12Device8 * This);
  14235. #else
  14236. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  14237. ID3D12Device8 * This,
  14238. LUID * RetVal);
  14239. #endif
  14240. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  14241. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  14242. ID3D12Device8 * This,
  14243. _In_reads_(BlobLength) const void *pLibraryBlob,
  14244. SIZE_T BlobLength,
  14245. REFIID riid,
  14246. _COM_Outptr_ void **ppPipelineLibrary);
  14247. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  14248. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  14249. ID3D12Device8 * This,
  14250. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  14251. _In_reads_(NumFences) const UINT64 *pFenceValues,
  14252. UINT NumFences,
  14253. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  14254. HANDLE hEvent);
  14255. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  14256. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  14257. ID3D12Device8 * This,
  14258. UINT NumObjects,
  14259. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  14260. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  14261. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  14262. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  14263. ID3D12Device8 * This,
  14264. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  14265. REFIID riid,
  14266. _COM_Outptr_ void **ppPipelineState);
  14267. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  14268. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  14269. ID3D12Device8 * This,
  14270. _In_ const void *pAddress,
  14271. REFIID riid,
  14272. _COM_Outptr_ void **ppvHeap);
  14273. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  14274. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  14275. ID3D12Device8 * This,
  14276. _In_ HANDLE hFileMapping,
  14277. REFIID riid,
  14278. _COM_Outptr_ void **ppvHeap);
  14279. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  14280. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  14281. ID3D12Device8 * This,
  14282. D3D12_RESIDENCY_FLAGS Flags,
  14283. UINT NumObjects,
  14284. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  14285. _In_ ID3D12Fence *pFenceToSignal,
  14286. UINT64 FenceValueToSignal);
  14287. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  14288. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  14289. ID3D12Device8 * This,
  14290. _In_ UINT nodeMask,
  14291. _In_ D3D12_COMMAND_LIST_TYPE type,
  14292. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  14293. REFIID riid,
  14294. _COM_Outptr_ void **ppCommandList);
  14295. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  14296. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  14297. ID3D12Device8 * This,
  14298. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  14299. _In_ REFIID riid,
  14300. _COM_Outptr_ void **ppSession);
  14301. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  14302. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  14303. ID3D12Device8 * This,
  14304. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  14305. D3D12_HEAP_FLAGS HeapFlags,
  14306. _In_ const D3D12_RESOURCE_DESC *pDesc,
  14307. D3D12_RESOURCE_STATES InitialResourceState,
  14308. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14309. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  14310. REFIID riidResource,
  14311. _COM_Outptr_opt_ void **ppvResource);
  14312. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  14313. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  14314. ID3D12Device8 * This,
  14315. _In_ const D3D12_HEAP_DESC *pDesc,
  14316. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  14317. REFIID riid,
  14318. _COM_Outptr_opt_ void **ppvHeap);
  14319. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  14320. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  14321. ID3D12Device8 * This,
  14322. _In_ const D3D12_RESOURCE_DESC *pDesc,
  14323. D3D12_RESOURCE_STATES InitialState,
  14324. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14325. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  14326. REFIID riid,
  14327. _COM_Outptr_opt_ void **ppvResource);
  14328. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  14329. #if !defined(_WIN32)
  14330. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  14331. ID3D12Device8 * This,
  14332. UINT visibleMask,
  14333. UINT numResourceDescs,
  14334. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  14335. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  14336. #else
  14337. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  14338. ID3D12Device8 * This,
  14339. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  14340. UINT visibleMask,
  14341. UINT numResourceDescs,
  14342. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  14343. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  14344. #endif
  14345. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  14346. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  14347. ID3D12Device8 * This,
  14348. _In_ ID3D12LifetimeOwner *pOwner,
  14349. REFIID riid,
  14350. _COM_Outptr_ void **ppvTracker);
  14351. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  14352. void ( STDMETHODCALLTYPE *RemoveDevice )(
  14353. ID3D12Device8 * This);
  14354. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  14355. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  14356. ID3D12Device8 * This,
  14357. _Inout_ UINT *pNumMetaCommands,
  14358. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  14359. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  14360. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  14361. ID3D12Device8 * This,
  14362. _In_ REFGUID CommandId,
  14363. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  14364. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  14365. _Inout_ UINT *pParameterCount,
  14366. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  14367. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  14368. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  14369. ID3D12Device8 * This,
  14370. _In_ REFGUID CommandId,
  14371. _In_ UINT NodeMask,
  14372. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  14373. _In_ SIZE_T CreationParametersDataSizeInBytes,
  14374. REFIID riid,
  14375. _COM_Outptr_ void **ppMetaCommand);
  14376. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  14377. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  14378. ID3D12Device8 * This,
  14379. const D3D12_STATE_OBJECT_DESC *pDesc,
  14380. REFIID riid,
  14381. _COM_Outptr_ void **ppStateObject);
  14382. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  14383. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  14384. ID3D12Device8 * This,
  14385. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  14386. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  14387. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  14388. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  14389. ID3D12Device8 * This,
  14390. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  14391. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  14392. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  14393. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  14394. ID3D12Device8 * This,
  14395. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  14396. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  14397. _In_opt_ HANDLE hEventToSignalUponCompletion,
  14398. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  14399. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  14400. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  14401. ID3D12Device8 * This,
  14402. const D3D12_STATE_OBJECT_DESC *pAddition,
  14403. ID3D12StateObject *pStateObjectToGrowFrom,
  14404. REFIID riid,
  14405. _COM_Outptr_ void **ppNewStateObject);
  14406. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  14407. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  14408. ID3D12Device8 * This,
  14409. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  14410. _In_ REFIID riid,
  14411. _COM_Outptr_ void **ppSession);
  14412. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  14413. #if !defined(_WIN32)
  14414. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  14415. ID3D12Device8 * This,
  14416. UINT visibleMask,
  14417. UINT numResourceDescs,
  14418. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  14419. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  14420. #else
  14421. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  14422. ID3D12Device8 * This,
  14423. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  14424. UINT visibleMask,
  14425. UINT numResourceDescs,
  14426. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  14427. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  14428. #endif
  14429. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  14430. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  14431. ID3D12Device8 * This,
  14432. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  14433. D3D12_HEAP_FLAGS HeapFlags,
  14434. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  14435. D3D12_RESOURCE_STATES InitialResourceState,
  14436. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14437. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  14438. REFIID riidResource,
  14439. _COM_Outptr_opt_ void **ppvResource);
  14440. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  14441. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  14442. ID3D12Device8 * This,
  14443. _In_ ID3D12Heap *pHeap,
  14444. UINT64 HeapOffset,
  14445. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  14446. D3D12_RESOURCE_STATES InitialState,
  14447. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14448. REFIID riid,
  14449. _COM_Outptr_opt_ void **ppvResource);
  14450. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  14451. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  14452. ID3D12Device8 * This,
  14453. _In_opt_ ID3D12Resource *pTargetedResource,
  14454. _In_opt_ ID3D12Resource *pFeedbackResource,
  14455. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14456. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  14457. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  14458. ID3D12Device8 * This,
  14459. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  14460. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  14461. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  14462. UINT64 BaseOffset,
  14463. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  14464. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  14465. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  14466. _Out_opt_ UINT64 *pTotalBytes);
  14467. END_INTERFACE
  14468. } ID3D12Device8Vtbl;
  14469. interface ID3D12Device8
  14470. {
  14471. CONST_VTBL struct ID3D12Device8Vtbl *lpVtbl;
  14472. };
  14473. #ifdef COBJMACROS
  14474. #define ID3D12Device8_QueryInterface(This,riid,ppvObject) \
  14475. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  14476. #define ID3D12Device8_AddRef(This) \
  14477. ( (This)->lpVtbl -> AddRef(This) )
  14478. #define ID3D12Device8_Release(This) \
  14479. ( (This)->lpVtbl -> Release(This) )
  14480. #define ID3D12Device8_GetPrivateData(This,guid,pDataSize,pData) \
  14481. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  14482. #define ID3D12Device8_SetPrivateData(This,guid,DataSize,pData) \
  14483. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  14484. #define ID3D12Device8_SetPrivateDataInterface(This,guid,pData) \
  14485. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  14486. #define ID3D12Device8_SetName(This,Name) \
  14487. ( (This)->lpVtbl -> SetName(This,Name) )
  14488. #define ID3D12Device8_GetNodeCount(This) \
  14489. ( (This)->lpVtbl -> GetNodeCount(This) )
  14490. #define ID3D12Device8_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  14491. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  14492. #define ID3D12Device8_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  14493. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  14494. #define ID3D12Device8_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  14495. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  14496. #define ID3D12Device8_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  14497. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  14498. #define ID3D12Device8_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  14499. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  14500. #define ID3D12Device8_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  14501. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  14502. #define ID3D12Device8_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  14503. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  14504. #define ID3D12Device8_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  14505. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  14506. #define ID3D12Device8_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  14507. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  14508. #define ID3D12Device8_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  14509. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  14510. #define ID3D12Device8_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  14511. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  14512. #define ID3D12Device8_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  14513. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  14514. #define ID3D12Device8_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  14515. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  14516. #define ID3D12Device8_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  14517. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  14518. #define ID3D12Device8_CreateSampler(This,pDesc,DestDescriptor) \
  14519. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  14520. #define ID3D12Device8_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  14521. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  14522. #define ID3D12Device8_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  14523. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  14524. #if !defined(_WIN32)
  14525. #define ID3D12Device8_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  14526. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  14527. #else
  14528. #define ID3D12Device8_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  14529. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  14530. #endif
  14531. #if !defined(_WIN32)
  14532. #define ID3D12Device8_GetCustomHeapProperties(This,nodeMask,heapType) \
  14533. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  14534. #else
  14535. #define ID3D12Device8_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  14536. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  14537. #endif
  14538. #define ID3D12Device8_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  14539. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  14540. #define ID3D12Device8_CreateHeap(This,pDesc,riid,ppvHeap) \
  14541. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  14542. #define ID3D12Device8_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  14543. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  14544. #define ID3D12Device8_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  14545. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  14546. #define ID3D12Device8_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  14547. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  14548. #define ID3D12Device8_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  14549. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  14550. #define ID3D12Device8_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  14551. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  14552. #define ID3D12Device8_MakeResident(This,NumObjects,ppObjects) \
  14553. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  14554. #define ID3D12Device8_Evict(This,NumObjects,ppObjects) \
  14555. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  14556. #define ID3D12Device8_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  14557. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  14558. #define ID3D12Device8_GetDeviceRemovedReason(This) \
  14559. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  14560. #define ID3D12Device8_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  14561. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  14562. #define ID3D12Device8_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  14563. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  14564. #define ID3D12Device8_SetStablePowerState(This,Enable) \
  14565. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  14566. #define ID3D12Device8_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  14567. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  14568. #define ID3D12Device8_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  14569. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  14570. #if !defined(_WIN32)
  14571. #define ID3D12Device8_GetAdapterLuid(This) \
  14572. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  14573. #else
  14574. #define ID3D12Device8_GetAdapterLuid(This,RetVal) \
  14575. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  14576. #endif
  14577. #define ID3D12Device8_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  14578. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  14579. #define ID3D12Device8_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  14580. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  14581. #define ID3D12Device8_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  14582. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  14583. #define ID3D12Device8_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  14584. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  14585. #define ID3D12Device8_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  14586. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  14587. #define ID3D12Device8_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  14588. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  14589. #define ID3D12Device8_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  14590. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  14591. #define ID3D12Device8_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  14592. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  14593. #define ID3D12Device8_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  14594. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  14595. #define ID3D12Device8_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  14596. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  14597. #define ID3D12Device8_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  14598. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  14599. #define ID3D12Device8_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  14600. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  14601. #if !defined(_WIN32)
  14602. #define ID3D12Device8_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14603. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14604. #else
  14605. #define ID3D12Device8_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14606. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14607. #endif
  14608. #define ID3D12Device8_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  14609. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  14610. #define ID3D12Device8_RemoveDevice(This) \
  14611. ( (This)->lpVtbl -> RemoveDevice(This) )
  14612. #define ID3D12Device8_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  14613. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  14614. #define ID3D12Device8_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  14615. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  14616. #define ID3D12Device8_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  14617. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  14618. #define ID3D12Device8_CreateStateObject(This,pDesc,riid,ppStateObject) \
  14619. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  14620. #define ID3D12Device8_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  14621. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  14622. #define ID3D12Device8_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  14623. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  14624. #define ID3D12Device8_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  14625. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  14626. #define ID3D12Device8_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  14627. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  14628. #define ID3D12Device8_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  14629. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  14630. #if !defined(_WIN32)
  14631. #define ID3D12Device8_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14632. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14633. #else
  14634. #define ID3D12Device8_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14635. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14636. #endif
  14637. #define ID3D12Device8_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  14638. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  14639. #define ID3D12Device8_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  14640. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  14641. #define ID3D12Device8_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  14642. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  14643. #define ID3D12Device8_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  14644. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  14645. #endif /* COBJMACROS */
  14646. #endif /* C style interface */
  14647. #endif /* __ID3D12Device8_INTERFACE_DEFINED__ */
  14648. #ifndef __ID3D12Resource1_INTERFACE_DEFINED__
  14649. #define __ID3D12Resource1_INTERFACE_DEFINED__
  14650. /* interface ID3D12Resource1 */
  14651. /* [unique][local][object][uuid] */
  14652. EXTERN_C const IID IID_ID3D12Resource1;
  14653. #if defined(__cplusplus) && !defined(CINTERFACE)
  14654. MIDL_INTERFACE("9D5E227A-4430-4161-88B3-3ECA6BB16E19")
  14655. ID3D12Resource1 : public ID3D12Resource
  14656. {
  14657. public:
  14658. virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession(
  14659. REFIID riid,
  14660. _COM_Outptr_opt_ void **ppProtectedSession) = 0;
  14661. };
  14662. #else /* C style interface */
  14663. typedef struct ID3D12Resource1Vtbl
  14664. {
  14665. BEGIN_INTERFACE
  14666. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  14667. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14668. ID3D12Resource1 * This,
  14669. REFIID riid,
  14670. _COM_Outptr_ void **ppvObject);
  14671. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  14672. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14673. ID3D12Resource1 * This);
  14674. DECLSPEC_XFGVIRT(IUnknown, Release)
  14675. ULONG ( STDMETHODCALLTYPE *Release )(
  14676. ID3D12Resource1 * This);
  14677. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  14678. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  14679. ID3D12Resource1 * This,
  14680. _In_ REFGUID guid,
  14681. _Inout_ UINT *pDataSize,
  14682. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  14683. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  14684. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  14685. ID3D12Resource1 * This,
  14686. _In_ REFGUID guid,
  14687. _In_ UINT DataSize,
  14688. _In_reads_bytes_opt_( DataSize ) const void *pData);
  14689. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  14690. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  14691. ID3D12Resource1 * This,
  14692. _In_ REFGUID guid,
  14693. _In_opt_ const IUnknown *pData);
  14694. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  14695. HRESULT ( STDMETHODCALLTYPE *SetName )(
  14696. ID3D12Resource1 * This,
  14697. _In_z_ LPCWSTR Name);
  14698. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  14699. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  14700. ID3D12Resource1 * This,
  14701. REFIID riid,
  14702. _COM_Outptr_opt_ void **ppvDevice);
  14703. DECLSPEC_XFGVIRT(ID3D12Resource, Map)
  14704. HRESULT ( STDMETHODCALLTYPE *Map )(
  14705. ID3D12Resource1 * This,
  14706. UINT Subresource,
  14707. _In_opt_ const D3D12_RANGE *pReadRange,
  14708. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData);
  14709. DECLSPEC_XFGVIRT(ID3D12Resource, Unmap)
  14710. void ( STDMETHODCALLTYPE *Unmap )(
  14711. ID3D12Resource1 * This,
  14712. UINT Subresource,
  14713. _In_opt_ const D3D12_RANGE *pWrittenRange);
  14714. DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc)
  14715. #if !defined(_WIN32)
  14716. D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  14717. ID3D12Resource1 * This);
  14718. #else
  14719. D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  14720. ID3D12Resource1 * This,
  14721. D3D12_RESOURCE_DESC * RetVal);
  14722. #endif
  14723. DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress)
  14724. D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )(
  14725. ID3D12Resource1 * This);
  14726. DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource)
  14727. HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )(
  14728. ID3D12Resource1 * This,
  14729. UINT DstSubresource,
  14730. _In_opt_ const D3D12_BOX *pDstBox,
  14731. _In_ const void *pSrcData,
  14732. UINT SrcRowPitch,
  14733. UINT SrcDepthPitch);
  14734. DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource)
  14735. HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )(
  14736. ID3D12Resource1 * This,
  14737. _Out_ void *pDstData,
  14738. UINT DstRowPitch,
  14739. UINT DstDepthPitch,
  14740. UINT SrcSubresource,
  14741. _In_opt_ const D3D12_BOX *pSrcBox);
  14742. DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties)
  14743. HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )(
  14744. ID3D12Resource1 * This,
  14745. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  14746. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags);
  14747. DECLSPEC_XFGVIRT(ID3D12Resource1, GetProtectedResourceSession)
  14748. HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )(
  14749. ID3D12Resource1 * This,
  14750. REFIID riid,
  14751. _COM_Outptr_opt_ void **ppProtectedSession);
  14752. END_INTERFACE
  14753. } ID3D12Resource1Vtbl;
  14754. interface ID3D12Resource1
  14755. {
  14756. CONST_VTBL struct ID3D12Resource1Vtbl *lpVtbl;
  14757. };
  14758. #ifdef COBJMACROS
  14759. #define ID3D12Resource1_QueryInterface(This,riid,ppvObject) \
  14760. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  14761. #define ID3D12Resource1_AddRef(This) \
  14762. ( (This)->lpVtbl -> AddRef(This) )
  14763. #define ID3D12Resource1_Release(This) \
  14764. ( (This)->lpVtbl -> Release(This) )
  14765. #define ID3D12Resource1_GetPrivateData(This,guid,pDataSize,pData) \
  14766. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  14767. #define ID3D12Resource1_SetPrivateData(This,guid,DataSize,pData) \
  14768. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  14769. #define ID3D12Resource1_SetPrivateDataInterface(This,guid,pData) \
  14770. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  14771. #define ID3D12Resource1_SetName(This,Name) \
  14772. ( (This)->lpVtbl -> SetName(This,Name) )
  14773. #define ID3D12Resource1_GetDevice(This,riid,ppvDevice) \
  14774. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  14775. #define ID3D12Resource1_Map(This,Subresource,pReadRange,ppData) \
  14776. ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) )
  14777. #define ID3D12Resource1_Unmap(This,Subresource,pWrittenRange) \
  14778. ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) )
  14779. #if !defined(_WIN32)
  14780. #define ID3D12Resource1_GetDesc(This) \
  14781. ( (This)->lpVtbl -> GetDesc(This) )
  14782. #else
  14783. #define ID3D12Resource1_GetDesc(This,RetVal) \
  14784. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  14785. #endif
  14786. #define ID3D12Resource1_GetGPUVirtualAddress(This) \
  14787. ( (This)->lpVtbl -> GetGPUVirtualAddress(This) )
  14788. #define ID3D12Resource1_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  14789. ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  14790. #define ID3D12Resource1_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \
  14791. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) )
  14792. #define ID3D12Resource1_GetHeapProperties(This,pHeapProperties,pHeapFlags) \
  14793. ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) )
  14794. #define ID3D12Resource1_GetProtectedResourceSession(This,riid,ppProtectedSession) \
  14795. ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) )
  14796. #endif /* COBJMACROS */
  14797. #endif /* C style interface */
  14798. #endif /* __ID3D12Resource1_INTERFACE_DEFINED__ */
  14799. #ifndef __ID3D12Resource2_INTERFACE_DEFINED__
  14800. #define __ID3D12Resource2_INTERFACE_DEFINED__
  14801. /* interface ID3D12Resource2 */
  14802. /* [unique][local][object][uuid] */
  14803. EXTERN_C const IID IID_ID3D12Resource2;
  14804. #if defined(__cplusplus) && !defined(CINTERFACE)
  14805. MIDL_INTERFACE("BE36EC3B-EA85-4AEB-A45A-E9D76404A495")
  14806. ID3D12Resource2 : public ID3D12Resource1
  14807. {
  14808. public:
  14809. #if defined(_MSC_VER) || !defined(_WIN32)
  14810. virtual D3D12_RESOURCE_DESC1 STDMETHODCALLTYPE GetDesc1( void) = 0;
  14811. #else
  14812. virtual D3D12_RESOURCE_DESC1 *STDMETHODCALLTYPE GetDesc1(
  14813. D3D12_RESOURCE_DESC1 * RetVal) = 0;
  14814. #endif
  14815. };
  14816. #else /* C style interface */
  14817. typedef struct ID3D12Resource2Vtbl
  14818. {
  14819. BEGIN_INTERFACE
  14820. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  14821. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14822. ID3D12Resource2 * This,
  14823. REFIID riid,
  14824. _COM_Outptr_ void **ppvObject);
  14825. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  14826. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14827. ID3D12Resource2 * This);
  14828. DECLSPEC_XFGVIRT(IUnknown, Release)
  14829. ULONG ( STDMETHODCALLTYPE *Release )(
  14830. ID3D12Resource2 * This);
  14831. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  14832. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  14833. ID3D12Resource2 * This,
  14834. _In_ REFGUID guid,
  14835. _Inout_ UINT *pDataSize,
  14836. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  14837. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  14838. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  14839. ID3D12Resource2 * This,
  14840. _In_ REFGUID guid,
  14841. _In_ UINT DataSize,
  14842. _In_reads_bytes_opt_( DataSize ) const void *pData);
  14843. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  14844. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  14845. ID3D12Resource2 * This,
  14846. _In_ REFGUID guid,
  14847. _In_opt_ const IUnknown *pData);
  14848. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  14849. HRESULT ( STDMETHODCALLTYPE *SetName )(
  14850. ID3D12Resource2 * This,
  14851. _In_z_ LPCWSTR Name);
  14852. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  14853. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  14854. ID3D12Resource2 * This,
  14855. REFIID riid,
  14856. _COM_Outptr_opt_ void **ppvDevice);
  14857. DECLSPEC_XFGVIRT(ID3D12Resource, Map)
  14858. HRESULT ( STDMETHODCALLTYPE *Map )(
  14859. ID3D12Resource2 * This,
  14860. UINT Subresource,
  14861. _In_opt_ const D3D12_RANGE *pReadRange,
  14862. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData);
  14863. DECLSPEC_XFGVIRT(ID3D12Resource, Unmap)
  14864. void ( STDMETHODCALLTYPE *Unmap )(
  14865. ID3D12Resource2 * This,
  14866. UINT Subresource,
  14867. _In_opt_ const D3D12_RANGE *pWrittenRange);
  14868. DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc)
  14869. #if !defined(_WIN32)
  14870. D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  14871. ID3D12Resource2 * This);
  14872. #else
  14873. D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  14874. ID3D12Resource2 * This,
  14875. D3D12_RESOURCE_DESC * RetVal);
  14876. #endif
  14877. DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress)
  14878. D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )(
  14879. ID3D12Resource2 * This);
  14880. DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource)
  14881. HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )(
  14882. ID3D12Resource2 * This,
  14883. UINT DstSubresource,
  14884. _In_opt_ const D3D12_BOX *pDstBox,
  14885. _In_ const void *pSrcData,
  14886. UINT SrcRowPitch,
  14887. UINT SrcDepthPitch);
  14888. DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource)
  14889. HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )(
  14890. ID3D12Resource2 * This,
  14891. _Out_ void *pDstData,
  14892. UINT DstRowPitch,
  14893. UINT DstDepthPitch,
  14894. UINT SrcSubresource,
  14895. _In_opt_ const D3D12_BOX *pSrcBox);
  14896. DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties)
  14897. HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )(
  14898. ID3D12Resource2 * This,
  14899. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  14900. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags);
  14901. DECLSPEC_XFGVIRT(ID3D12Resource1, GetProtectedResourceSession)
  14902. HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )(
  14903. ID3D12Resource2 * This,
  14904. REFIID riid,
  14905. _COM_Outptr_opt_ void **ppProtectedSession);
  14906. DECLSPEC_XFGVIRT(ID3D12Resource2, GetDesc1)
  14907. #if !defined(_WIN32)
  14908. D3D12_RESOURCE_DESC1 ( STDMETHODCALLTYPE *GetDesc1 )(
  14909. ID3D12Resource2 * This);
  14910. #else
  14911. D3D12_RESOURCE_DESC1 *( STDMETHODCALLTYPE *GetDesc1 )(
  14912. ID3D12Resource2 * This,
  14913. D3D12_RESOURCE_DESC1 * RetVal);
  14914. #endif
  14915. END_INTERFACE
  14916. } ID3D12Resource2Vtbl;
  14917. interface ID3D12Resource2
  14918. {
  14919. CONST_VTBL struct ID3D12Resource2Vtbl *lpVtbl;
  14920. };
  14921. #ifdef COBJMACROS
  14922. #define ID3D12Resource2_QueryInterface(This,riid,ppvObject) \
  14923. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  14924. #define ID3D12Resource2_AddRef(This) \
  14925. ( (This)->lpVtbl -> AddRef(This) )
  14926. #define ID3D12Resource2_Release(This) \
  14927. ( (This)->lpVtbl -> Release(This) )
  14928. #define ID3D12Resource2_GetPrivateData(This,guid,pDataSize,pData) \
  14929. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  14930. #define ID3D12Resource2_SetPrivateData(This,guid,DataSize,pData) \
  14931. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  14932. #define ID3D12Resource2_SetPrivateDataInterface(This,guid,pData) \
  14933. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  14934. #define ID3D12Resource2_SetName(This,Name) \
  14935. ( (This)->lpVtbl -> SetName(This,Name) )
  14936. #define ID3D12Resource2_GetDevice(This,riid,ppvDevice) \
  14937. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  14938. #define ID3D12Resource2_Map(This,Subresource,pReadRange,ppData) \
  14939. ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) )
  14940. #define ID3D12Resource2_Unmap(This,Subresource,pWrittenRange) \
  14941. ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) )
  14942. #if !defined(_WIN32)
  14943. #define ID3D12Resource2_GetDesc(This) \
  14944. ( (This)->lpVtbl -> GetDesc(This) )
  14945. #else
  14946. #define ID3D12Resource2_GetDesc(This,RetVal) \
  14947. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  14948. #endif
  14949. #define ID3D12Resource2_GetGPUVirtualAddress(This) \
  14950. ( (This)->lpVtbl -> GetGPUVirtualAddress(This) )
  14951. #define ID3D12Resource2_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  14952. ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  14953. #define ID3D12Resource2_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \
  14954. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) )
  14955. #define ID3D12Resource2_GetHeapProperties(This,pHeapProperties,pHeapFlags) \
  14956. ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) )
  14957. #define ID3D12Resource2_GetProtectedResourceSession(This,riid,ppProtectedSession) \
  14958. ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) )
  14959. #if !defined(_WIN32)
  14960. #define ID3D12Resource2_GetDesc1(This) \
  14961. ( (This)->lpVtbl -> GetDesc1(This) )
  14962. #else
  14963. #define ID3D12Resource2_GetDesc1(This,RetVal) \
  14964. ( (This)->lpVtbl -> GetDesc1(This,RetVal) )
  14965. #endif
  14966. #endif /* COBJMACROS */
  14967. #endif /* C style interface */
  14968. #endif /* __ID3D12Resource2_INTERFACE_DEFINED__ */
  14969. #ifndef __ID3D12Heap1_INTERFACE_DEFINED__
  14970. #define __ID3D12Heap1_INTERFACE_DEFINED__
  14971. /* interface ID3D12Heap1 */
  14972. /* [unique][local][object][uuid] */
  14973. EXTERN_C const IID IID_ID3D12Heap1;
  14974. #if defined(__cplusplus) && !defined(CINTERFACE)
  14975. MIDL_INTERFACE("572F7389-2168-49E3-9693-D6DF5871BF6D")
  14976. ID3D12Heap1 : public ID3D12Heap
  14977. {
  14978. public:
  14979. virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession(
  14980. REFIID riid,
  14981. _COM_Outptr_opt_ void **ppProtectedSession) = 0;
  14982. };
  14983. #else /* C style interface */
  14984. typedef struct ID3D12Heap1Vtbl
  14985. {
  14986. BEGIN_INTERFACE
  14987. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  14988. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14989. ID3D12Heap1 * This,
  14990. REFIID riid,
  14991. _COM_Outptr_ void **ppvObject);
  14992. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  14993. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14994. ID3D12Heap1 * This);
  14995. DECLSPEC_XFGVIRT(IUnknown, Release)
  14996. ULONG ( STDMETHODCALLTYPE *Release )(
  14997. ID3D12Heap1 * This);
  14998. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  14999. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  15000. ID3D12Heap1 * This,
  15001. _In_ REFGUID guid,
  15002. _Inout_ UINT *pDataSize,
  15003. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  15004. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  15005. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  15006. ID3D12Heap1 * This,
  15007. _In_ REFGUID guid,
  15008. _In_ UINT DataSize,
  15009. _In_reads_bytes_opt_( DataSize ) const void *pData);
  15010. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  15011. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  15012. ID3D12Heap1 * This,
  15013. _In_ REFGUID guid,
  15014. _In_opt_ const IUnknown *pData);
  15015. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  15016. HRESULT ( STDMETHODCALLTYPE *SetName )(
  15017. ID3D12Heap1 * This,
  15018. _In_z_ LPCWSTR Name);
  15019. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  15020. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  15021. ID3D12Heap1 * This,
  15022. REFIID riid,
  15023. _COM_Outptr_opt_ void **ppvDevice);
  15024. DECLSPEC_XFGVIRT(ID3D12Heap, GetDesc)
  15025. #if !defined(_WIN32)
  15026. D3D12_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )(
  15027. ID3D12Heap1 * This);
  15028. #else
  15029. D3D12_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )(
  15030. ID3D12Heap1 * This,
  15031. D3D12_HEAP_DESC * RetVal);
  15032. #endif
  15033. DECLSPEC_XFGVIRT(ID3D12Heap1, GetProtectedResourceSession)
  15034. HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )(
  15035. ID3D12Heap1 * This,
  15036. REFIID riid,
  15037. _COM_Outptr_opt_ void **ppProtectedSession);
  15038. END_INTERFACE
  15039. } ID3D12Heap1Vtbl;
  15040. interface ID3D12Heap1
  15041. {
  15042. CONST_VTBL struct ID3D12Heap1Vtbl *lpVtbl;
  15043. };
  15044. #ifdef COBJMACROS
  15045. #define ID3D12Heap1_QueryInterface(This,riid,ppvObject) \
  15046. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  15047. #define ID3D12Heap1_AddRef(This) \
  15048. ( (This)->lpVtbl -> AddRef(This) )
  15049. #define ID3D12Heap1_Release(This) \
  15050. ( (This)->lpVtbl -> Release(This) )
  15051. #define ID3D12Heap1_GetPrivateData(This,guid,pDataSize,pData) \
  15052. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  15053. #define ID3D12Heap1_SetPrivateData(This,guid,DataSize,pData) \
  15054. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  15055. #define ID3D12Heap1_SetPrivateDataInterface(This,guid,pData) \
  15056. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  15057. #define ID3D12Heap1_SetName(This,Name) \
  15058. ( (This)->lpVtbl -> SetName(This,Name) )
  15059. #define ID3D12Heap1_GetDevice(This,riid,ppvDevice) \
  15060. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  15061. #if !defined(_WIN32)
  15062. #define ID3D12Heap1_GetDesc(This) \
  15063. ( (This)->lpVtbl -> GetDesc(This) )
  15064. #else
  15065. #define ID3D12Heap1_GetDesc(This,RetVal) \
  15066. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  15067. #endif
  15068. #define ID3D12Heap1_GetProtectedResourceSession(This,riid,ppProtectedSession) \
  15069. ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) )
  15070. #endif /* COBJMACROS */
  15071. #endif /* C style interface */
  15072. #endif /* __ID3D12Heap1_INTERFACE_DEFINED__ */
  15073. #ifndef __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__
  15074. #define __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__
  15075. /* interface ID3D12GraphicsCommandList3 */
  15076. /* [unique][local][object][uuid] */
  15077. EXTERN_C const IID IID_ID3D12GraphicsCommandList3;
  15078. #if defined(__cplusplus) && !defined(CINTERFACE)
  15079. MIDL_INTERFACE("6FDA83A7-B84C-4E38-9AC8-C7BD22016B3D")
  15080. ID3D12GraphicsCommandList3 : public ID3D12GraphicsCommandList2
  15081. {
  15082. public:
  15083. virtual void STDMETHODCALLTYPE SetProtectedResourceSession(
  15084. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession) = 0;
  15085. };
  15086. #else /* C style interface */
  15087. typedef struct ID3D12GraphicsCommandList3Vtbl
  15088. {
  15089. BEGIN_INTERFACE
  15090. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  15091. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15092. ID3D12GraphicsCommandList3 * This,
  15093. REFIID riid,
  15094. _COM_Outptr_ void **ppvObject);
  15095. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  15096. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15097. ID3D12GraphicsCommandList3 * This);
  15098. DECLSPEC_XFGVIRT(IUnknown, Release)
  15099. ULONG ( STDMETHODCALLTYPE *Release )(
  15100. ID3D12GraphicsCommandList3 * This);
  15101. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  15102. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  15103. ID3D12GraphicsCommandList3 * This,
  15104. _In_ REFGUID guid,
  15105. _Inout_ UINT *pDataSize,
  15106. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  15107. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  15108. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  15109. ID3D12GraphicsCommandList3 * This,
  15110. _In_ REFGUID guid,
  15111. _In_ UINT DataSize,
  15112. _In_reads_bytes_opt_( DataSize ) const void *pData);
  15113. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  15114. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  15115. ID3D12GraphicsCommandList3 * This,
  15116. _In_ REFGUID guid,
  15117. _In_opt_ const IUnknown *pData);
  15118. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  15119. HRESULT ( STDMETHODCALLTYPE *SetName )(
  15120. ID3D12GraphicsCommandList3 * This,
  15121. _In_z_ LPCWSTR Name);
  15122. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  15123. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  15124. ID3D12GraphicsCommandList3 * This,
  15125. REFIID riid,
  15126. _COM_Outptr_opt_ void **ppvDevice);
  15127. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  15128. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  15129. ID3D12GraphicsCommandList3 * This);
  15130. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  15131. HRESULT ( STDMETHODCALLTYPE *Close )(
  15132. ID3D12GraphicsCommandList3 * This);
  15133. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  15134. HRESULT ( STDMETHODCALLTYPE *Reset )(
  15135. ID3D12GraphicsCommandList3 * This,
  15136. _In_ ID3D12CommandAllocator *pAllocator,
  15137. _In_opt_ ID3D12PipelineState *pInitialState);
  15138. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  15139. void ( STDMETHODCALLTYPE *ClearState )(
  15140. ID3D12GraphicsCommandList3 * This,
  15141. _In_opt_ ID3D12PipelineState *pPipelineState);
  15142. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  15143. void ( STDMETHODCALLTYPE *DrawInstanced )(
  15144. ID3D12GraphicsCommandList3 * This,
  15145. _In_ UINT VertexCountPerInstance,
  15146. _In_ UINT InstanceCount,
  15147. _In_ UINT StartVertexLocation,
  15148. _In_ UINT StartInstanceLocation);
  15149. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  15150. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  15151. ID3D12GraphicsCommandList3 * This,
  15152. _In_ UINT IndexCountPerInstance,
  15153. _In_ UINT InstanceCount,
  15154. _In_ UINT StartIndexLocation,
  15155. _In_ INT BaseVertexLocation,
  15156. _In_ UINT StartInstanceLocation);
  15157. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  15158. void ( STDMETHODCALLTYPE *Dispatch )(
  15159. ID3D12GraphicsCommandList3 * This,
  15160. _In_ UINT ThreadGroupCountX,
  15161. _In_ UINT ThreadGroupCountY,
  15162. _In_ UINT ThreadGroupCountZ);
  15163. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  15164. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  15165. ID3D12GraphicsCommandList3 * This,
  15166. _In_ ID3D12Resource *pDstBuffer,
  15167. UINT64 DstOffset,
  15168. _In_ ID3D12Resource *pSrcBuffer,
  15169. UINT64 SrcOffset,
  15170. UINT64 NumBytes);
  15171. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  15172. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  15173. ID3D12GraphicsCommandList3 * This,
  15174. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  15175. UINT DstX,
  15176. UINT DstY,
  15177. UINT DstZ,
  15178. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  15179. _In_opt_ const D3D12_BOX *pSrcBox);
  15180. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  15181. void ( STDMETHODCALLTYPE *CopyResource )(
  15182. ID3D12GraphicsCommandList3 * This,
  15183. _In_ ID3D12Resource *pDstResource,
  15184. _In_ ID3D12Resource *pSrcResource);
  15185. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  15186. void ( STDMETHODCALLTYPE *CopyTiles )(
  15187. ID3D12GraphicsCommandList3 * This,
  15188. _In_ ID3D12Resource *pTiledResource,
  15189. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  15190. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  15191. _In_ ID3D12Resource *pBuffer,
  15192. UINT64 BufferStartOffsetInBytes,
  15193. D3D12_TILE_COPY_FLAGS Flags);
  15194. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  15195. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  15196. ID3D12GraphicsCommandList3 * This,
  15197. _In_ ID3D12Resource *pDstResource,
  15198. _In_ UINT DstSubresource,
  15199. _In_ ID3D12Resource *pSrcResource,
  15200. _In_ UINT SrcSubresource,
  15201. _In_ DXGI_FORMAT Format);
  15202. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  15203. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  15204. ID3D12GraphicsCommandList3 * This,
  15205. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  15206. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  15207. void ( STDMETHODCALLTYPE *RSSetViewports )(
  15208. ID3D12GraphicsCommandList3 * This,
  15209. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  15210. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  15211. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  15212. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  15213. ID3D12GraphicsCommandList3 * This,
  15214. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  15215. _In_reads_( NumRects) const D3D12_RECT *pRects);
  15216. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  15217. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  15218. ID3D12GraphicsCommandList3 * This,
  15219. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  15220. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  15221. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  15222. ID3D12GraphicsCommandList3 * This,
  15223. _In_ UINT StencilRef);
  15224. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  15225. void ( STDMETHODCALLTYPE *SetPipelineState )(
  15226. ID3D12GraphicsCommandList3 * This,
  15227. _In_ ID3D12PipelineState *pPipelineState);
  15228. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  15229. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  15230. ID3D12GraphicsCommandList3 * This,
  15231. _In_ UINT NumBarriers,
  15232. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  15233. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  15234. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  15235. ID3D12GraphicsCommandList3 * This,
  15236. _In_ ID3D12GraphicsCommandList *pCommandList);
  15237. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  15238. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  15239. ID3D12GraphicsCommandList3 * This,
  15240. _In_ UINT NumDescriptorHeaps,
  15241. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  15242. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  15243. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  15244. ID3D12GraphicsCommandList3 * This,
  15245. _In_opt_ ID3D12RootSignature *pRootSignature);
  15246. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  15247. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  15248. ID3D12GraphicsCommandList3 * This,
  15249. _In_opt_ ID3D12RootSignature *pRootSignature);
  15250. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  15251. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  15252. ID3D12GraphicsCommandList3 * This,
  15253. _In_ UINT RootParameterIndex,
  15254. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  15255. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  15256. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  15257. ID3D12GraphicsCommandList3 * This,
  15258. _In_ UINT RootParameterIndex,
  15259. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  15260. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  15261. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  15262. ID3D12GraphicsCommandList3 * This,
  15263. _In_ UINT RootParameterIndex,
  15264. _In_ UINT SrcData,
  15265. _In_ UINT DestOffsetIn32BitValues);
  15266. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  15267. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  15268. ID3D12GraphicsCommandList3 * This,
  15269. _In_ UINT RootParameterIndex,
  15270. _In_ UINT SrcData,
  15271. _In_ UINT DestOffsetIn32BitValues);
  15272. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  15273. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  15274. ID3D12GraphicsCommandList3 * This,
  15275. _In_ UINT RootParameterIndex,
  15276. _In_ UINT Num32BitValuesToSet,
  15277. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  15278. _In_ UINT DestOffsetIn32BitValues);
  15279. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  15280. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  15281. ID3D12GraphicsCommandList3 * This,
  15282. _In_ UINT RootParameterIndex,
  15283. _In_ UINT Num32BitValuesToSet,
  15284. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  15285. _In_ UINT DestOffsetIn32BitValues);
  15286. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  15287. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  15288. ID3D12GraphicsCommandList3 * This,
  15289. _In_ UINT RootParameterIndex,
  15290. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15291. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  15292. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  15293. ID3D12GraphicsCommandList3 * This,
  15294. _In_ UINT RootParameterIndex,
  15295. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15296. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  15297. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  15298. ID3D12GraphicsCommandList3 * This,
  15299. _In_ UINT RootParameterIndex,
  15300. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15301. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  15302. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  15303. ID3D12GraphicsCommandList3 * This,
  15304. _In_ UINT RootParameterIndex,
  15305. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15306. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  15307. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  15308. ID3D12GraphicsCommandList3 * This,
  15309. _In_ UINT RootParameterIndex,
  15310. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15311. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  15312. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  15313. ID3D12GraphicsCommandList3 * This,
  15314. _In_ UINT RootParameterIndex,
  15315. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15316. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  15317. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  15318. ID3D12GraphicsCommandList3 * This,
  15319. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  15320. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  15321. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  15322. ID3D12GraphicsCommandList3 * This,
  15323. _In_ UINT StartSlot,
  15324. _In_ UINT NumViews,
  15325. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  15326. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  15327. void ( STDMETHODCALLTYPE *SOSetTargets )(
  15328. ID3D12GraphicsCommandList3 * This,
  15329. _In_ UINT StartSlot,
  15330. _In_ UINT NumViews,
  15331. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  15332. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  15333. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  15334. ID3D12GraphicsCommandList3 * This,
  15335. _In_ UINT NumRenderTargetDescriptors,
  15336. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  15337. _In_ BOOL RTsSingleHandleToDescriptorRange,
  15338. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  15339. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  15340. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  15341. ID3D12GraphicsCommandList3 * This,
  15342. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  15343. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  15344. _In_ FLOAT Depth,
  15345. _In_ UINT8 Stencil,
  15346. _In_ UINT NumRects,
  15347. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15348. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  15349. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  15350. ID3D12GraphicsCommandList3 * This,
  15351. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  15352. _In_ const FLOAT ColorRGBA[ 4 ],
  15353. _In_ UINT NumRects,
  15354. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15355. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  15356. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  15357. ID3D12GraphicsCommandList3 * This,
  15358. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  15359. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  15360. _In_ ID3D12Resource *pResource,
  15361. _In_ const UINT Values[ 4 ],
  15362. _In_ UINT NumRects,
  15363. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15364. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  15365. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  15366. ID3D12GraphicsCommandList3 * This,
  15367. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  15368. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  15369. _In_ ID3D12Resource *pResource,
  15370. _In_ const FLOAT Values[ 4 ],
  15371. _In_ UINT NumRects,
  15372. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15373. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  15374. void ( STDMETHODCALLTYPE *DiscardResource )(
  15375. ID3D12GraphicsCommandList3 * This,
  15376. _In_ ID3D12Resource *pResource,
  15377. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  15378. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  15379. void ( STDMETHODCALLTYPE *BeginQuery )(
  15380. ID3D12GraphicsCommandList3 * This,
  15381. _In_ ID3D12QueryHeap *pQueryHeap,
  15382. _In_ D3D12_QUERY_TYPE Type,
  15383. _In_ UINT Index);
  15384. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  15385. void ( STDMETHODCALLTYPE *EndQuery )(
  15386. ID3D12GraphicsCommandList3 * This,
  15387. _In_ ID3D12QueryHeap *pQueryHeap,
  15388. _In_ D3D12_QUERY_TYPE Type,
  15389. _In_ UINT Index);
  15390. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  15391. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  15392. ID3D12GraphicsCommandList3 * This,
  15393. _In_ ID3D12QueryHeap *pQueryHeap,
  15394. _In_ D3D12_QUERY_TYPE Type,
  15395. _In_ UINT StartIndex,
  15396. _In_ UINT NumQueries,
  15397. _In_ ID3D12Resource *pDestinationBuffer,
  15398. _In_ UINT64 AlignedDestinationBufferOffset);
  15399. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  15400. void ( STDMETHODCALLTYPE *SetPredication )(
  15401. ID3D12GraphicsCommandList3 * This,
  15402. _In_opt_ ID3D12Resource *pBuffer,
  15403. _In_ UINT64 AlignedBufferOffset,
  15404. _In_ D3D12_PREDICATION_OP Operation);
  15405. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  15406. void ( STDMETHODCALLTYPE *SetMarker )(
  15407. ID3D12GraphicsCommandList3 * This,
  15408. UINT Metadata,
  15409. _In_reads_bytes_opt_(Size) const void *pData,
  15410. UINT Size);
  15411. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  15412. void ( STDMETHODCALLTYPE *BeginEvent )(
  15413. ID3D12GraphicsCommandList3 * This,
  15414. UINT Metadata,
  15415. _In_reads_bytes_opt_(Size) const void *pData,
  15416. UINT Size);
  15417. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  15418. void ( STDMETHODCALLTYPE *EndEvent )(
  15419. ID3D12GraphicsCommandList3 * This);
  15420. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  15421. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  15422. ID3D12GraphicsCommandList3 * This,
  15423. _In_ ID3D12CommandSignature *pCommandSignature,
  15424. _In_ UINT MaxCommandCount,
  15425. _In_ ID3D12Resource *pArgumentBuffer,
  15426. _In_ UINT64 ArgumentBufferOffset,
  15427. _In_opt_ ID3D12Resource *pCountBuffer,
  15428. _In_ UINT64 CountBufferOffset);
  15429. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  15430. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  15431. ID3D12GraphicsCommandList3 * This,
  15432. _In_ ID3D12Resource *pDstBuffer,
  15433. UINT64 DstOffset,
  15434. _In_ ID3D12Resource *pSrcBuffer,
  15435. UINT64 SrcOffset,
  15436. UINT Dependencies,
  15437. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  15438. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  15439. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  15440. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  15441. ID3D12GraphicsCommandList3 * This,
  15442. _In_ ID3D12Resource *pDstBuffer,
  15443. UINT64 DstOffset,
  15444. _In_ ID3D12Resource *pSrcBuffer,
  15445. UINT64 SrcOffset,
  15446. UINT Dependencies,
  15447. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  15448. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  15449. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  15450. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  15451. ID3D12GraphicsCommandList3 * This,
  15452. _In_ FLOAT Min,
  15453. _In_ FLOAT Max);
  15454. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  15455. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  15456. ID3D12GraphicsCommandList3 * This,
  15457. _In_ UINT NumSamplesPerPixel,
  15458. _In_ UINT NumPixels,
  15459. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  15460. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  15461. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  15462. ID3D12GraphicsCommandList3 * This,
  15463. _In_ ID3D12Resource *pDstResource,
  15464. _In_ UINT DstSubresource,
  15465. _In_ UINT DstX,
  15466. _In_ UINT DstY,
  15467. _In_ ID3D12Resource *pSrcResource,
  15468. _In_ UINT SrcSubresource,
  15469. _In_opt_ D3D12_RECT *pSrcRect,
  15470. _In_ DXGI_FORMAT Format,
  15471. _In_ D3D12_RESOLVE_MODE ResolveMode);
  15472. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  15473. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  15474. ID3D12GraphicsCommandList3 * This,
  15475. _In_ UINT Mask);
  15476. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  15477. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  15478. ID3D12GraphicsCommandList3 * This,
  15479. UINT Count,
  15480. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  15481. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  15482. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  15483. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  15484. ID3D12GraphicsCommandList3 * This,
  15485. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  15486. END_INTERFACE
  15487. } ID3D12GraphicsCommandList3Vtbl;
  15488. interface ID3D12GraphicsCommandList3
  15489. {
  15490. CONST_VTBL struct ID3D12GraphicsCommandList3Vtbl *lpVtbl;
  15491. };
  15492. #ifdef COBJMACROS
  15493. #define ID3D12GraphicsCommandList3_QueryInterface(This,riid,ppvObject) \
  15494. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  15495. #define ID3D12GraphicsCommandList3_AddRef(This) \
  15496. ( (This)->lpVtbl -> AddRef(This) )
  15497. #define ID3D12GraphicsCommandList3_Release(This) \
  15498. ( (This)->lpVtbl -> Release(This) )
  15499. #define ID3D12GraphicsCommandList3_GetPrivateData(This,guid,pDataSize,pData) \
  15500. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  15501. #define ID3D12GraphicsCommandList3_SetPrivateData(This,guid,DataSize,pData) \
  15502. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  15503. #define ID3D12GraphicsCommandList3_SetPrivateDataInterface(This,guid,pData) \
  15504. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  15505. #define ID3D12GraphicsCommandList3_SetName(This,Name) \
  15506. ( (This)->lpVtbl -> SetName(This,Name) )
  15507. #define ID3D12GraphicsCommandList3_GetDevice(This,riid,ppvDevice) \
  15508. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  15509. #define ID3D12GraphicsCommandList3_GetType(This) \
  15510. ( (This)->lpVtbl -> GetType(This) )
  15511. #define ID3D12GraphicsCommandList3_Close(This) \
  15512. ( (This)->lpVtbl -> Close(This) )
  15513. #define ID3D12GraphicsCommandList3_Reset(This,pAllocator,pInitialState) \
  15514. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  15515. #define ID3D12GraphicsCommandList3_ClearState(This,pPipelineState) \
  15516. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  15517. #define ID3D12GraphicsCommandList3_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  15518. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  15519. #define ID3D12GraphicsCommandList3_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  15520. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  15521. #define ID3D12GraphicsCommandList3_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  15522. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  15523. #define ID3D12GraphicsCommandList3_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  15524. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  15525. #define ID3D12GraphicsCommandList3_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  15526. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  15527. #define ID3D12GraphicsCommandList3_CopyResource(This,pDstResource,pSrcResource) \
  15528. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  15529. #define ID3D12GraphicsCommandList3_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  15530. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  15531. #define ID3D12GraphicsCommandList3_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  15532. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  15533. #define ID3D12GraphicsCommandList3_IASetPrimitiveTopology(This,PrimitiveTopology) \
  15534. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  15535. #define ID3D12GraphicsCommandList3_RSSetViewports(This,NumViewports,pViewports) \
  15536. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  15537. #define ID3D12GraphicsCommandList3_RSSetScissorRects(This,NumRects,pRects) \
  15538. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  15539. #define ID3D12GraphicsCommandList3_OMSetBlendFactor(This,BlendFactor) \
  15540. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  15541. #define ID3D12GraphicsCommandList3_OMSetStencilRef(This,StencilRef) \
  15542. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  15543. #define ID3D12GraphicsCommandList3_SetPipelineState(This,pPipelineState) \
  15544. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  15545. #define ID3D12GraphicsCommandList3_ResourceBarrier(This,NumBarriers,pBarriers) \
  15546. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  15547. #define ID3D12GraphicsCommandList3_ExecuteBundle(This,pCommandList) \
  15548. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  15549. #define ID3D12GraphicsCommandList3_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  15550. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  15551. #define ID3D12GraphicsCommandList3_SetComputeRootSignature(This,pRootSignature) \
  15552. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  15553. #define ID3D12GraphicsCommandList3_SetGraphicsRootSignature(This,pRootSignature) \
  15554. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  15555. #define ID3D12GraphicsCommandList3_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  15556. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  15557. #define ID3D12GraphicsCommandList3_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  15558. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  15559. #define ID3D12GraphicsCommandList3_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  15560. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  15561. #define ID3D12GraphicsCommandList3_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  15562. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  15563. #define ID3D12GraphicsCommandList3_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  15564. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  15565. #define ID3D12GraphicsCommandList3_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  15566. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  15567. #define ID3D12GraphicsCommandList3_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  15568. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  15569. #define ID3D12GraphicsCommandList3_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  15570. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  15571. #define ID3D12GraphicsCommandList3_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  15572. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  15573. #define ID3D12GraphicsCommandList3_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  15574. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  15575. #define ID3D12GraphicsCommandList3_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  15576. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  15577. #define ID3D12GraphicsCommandList3_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  15578. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  15579. #define ID3D12GraphicsCommandList3_IASetIndexBuffer(This,pView) \
  15580. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  15581. #define ID3D12GraphicsCommandList3_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  15582. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  15583. #define ID3D12GraphicsCommandList3_SOSetTargets(This,StartSlot,NumViews,pViews) \
  15584. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  15585. #define ID3D12GraphicsCommandList3_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  15586. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  15587. #define ID3D12GraphicsCommandList3_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  15588. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  15589. #define ID3D12GraphicsCommandList3_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  15590. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  15591. #define ID3D12GraphicsCommandList3_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  15592. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  15593. #define ID3D12GraphicsCommandList3_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  15594. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  15595. #define ID3D12GraphicsCommandList3_DiscardResource(This,pResource,pRegion) \
  15596. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  15597. #define ID3D12GraphicsCommandList3_BeginQuery(This,pQueryHeap,Type,Index) \
  15598. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  15599. #define ID3D12GraphicsCommandList3_EndQuery(This,pQueryHeap,Type,Index) \
  15600. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  15601. #define ID3D12GraphicsCommandList3_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  15602. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  15603. #define ID3D12GraphicsCommandList3_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  15604. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  15605. #define ID3D12GraphicsCommandList3_SetMarker(This,Metadata,pData,Size) \
  15606. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  15607. #define ID3D12GraphicsCommandList3_BeginEvent(This,Metadata,pData,Size) \
  15608. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  15609. #define ID3D12GraphicsCommandList3_EndEvent(This) \
  15610. ( (This)->lpVtbl -> EndEvent(This) )
  15611. #define ID3D12GraphicsCommandList3_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  15612. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  15613. #define ID3D12GraphicsCommandList3_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  15614. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  15615. #define ID3D12GraphicsCommandList3_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  15616. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  15617. #define ID3D12GraphicsCommandList3_OMSetDepthBounds(This,Min,Max) \
  15618. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  15619. #define ID3D12GraphicsCommandList3_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  15620. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  15621. #define ID3D12GraphicsCommandList3_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  15622. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  15623. #define ID3D12GraphicsCommandList3_SetViewInstanceMask(This,Mask) \
  15624. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  15625. #define ID3D12GraphicsCommandList3_WriteBufferImmediate(This,Count,pParams,pModes) \
  15626. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  15627. #define ID3D12GraphicsCommandList3_SetProtectedResourceSession(This,pProtectedResourceSession) \
  15628. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  15629. #endif /* COBJMACROS */
  15630. #endif /* C style interface */
  15631. #endif /* __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__ */
  15632. /* interface __MIDL_itf_d3d12_0000_0051 */
  15633. /* [local] */
  15634. typedef
  15635. enum D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE
  15636. {
  15637. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD = 0,
  15638. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD + 1 ) ,
  15639. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE + 1 ) ,
  15640. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_NO_ACCESS = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR + 1 ) ,
  15641. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_NO_ACCESS + 1 ) ,
  15642. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER + 1 ) ,
  15643. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_UAV = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV + 1 )
  15644. } D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE;
  15645. typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS
  15646. {
  15647. D3D12_CLEAR_VALUE ClearValue;
  15648. } D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS;
  15649. typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS
  15650. {
  15651. UINT AdditionalWidth;
  15652. UINT AdditionalHeight;
  15653. } D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS;
  15654. typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS
  15655. {
  15656. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE Type;
  15657. union
  15658. {
  15659. D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS Clear;
  15660. D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS PreserveLocal;
  15661. } ;
  15662. } D3D12_RENDER_PASS_BEGINNING_ACCESS;
  15663. typedef
  15664. enum D3D12_RENDER_PASS_ENDING_ACCESS_TYPE
  15665. {
  15666. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD = 0,
  15667. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD + 1 ) ,
  15668. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE + 1 ) ,
  15669. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_NO_ACCESS = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE + 1 ) ,
  15670. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_NO_ACCESS + 1 ) ,
  15671. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER + 1 ) ,
  15672. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_UAV = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV + 1 )
  15673. } D3D12_RENDER_PASS_ENDING_ACCESS_TYPE;
  15674. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS
  15675. {
  15676. UINT SrcSubresource;
  15677. UINT DstSubresource;
  15678. UINT DstX;
  15679. UINT DstY;
  15680. D3D12_RECT SrcRect;
  15681. } D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS;
  15682. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS
  15683. {
  15684. ID3D12Resource *pSrcResource;
  15685. ID3D12Resource *pDstResource;
  15686. UINT SubresourceCount;
  15687. _Field_size_full_(SubresourceCount) const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS *pSubresourceParameters;
  15688. DXGI_FORMAT Format;
  15689. D3D12_RESOLVE_MODE ResolveMode;
  15690. BOOL PreserveResolveSource;
  15691. } D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS;
  15692. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS
  15693. {
  15694. UINT AdditionalWidth;
  15695. UINT AdditionalHeight;
  15696. } D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS;
  15697. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS
  15698. {
  15699. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE Type;
  15700. union
  15701. {
  15702. D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS Resolve;
  15703. D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS PreserveLocal;
  15704. } ;
  15705. } D3D12_RENDER_PASS_ENDING_ACCESS;
  15706. typedef struct D3D12_RENDER_PASS_RENDER_TARGET_DESC
  15707. {
  15708. D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor;
  15709. D3D12_RENDER_PASS_BEGINNING_ACCESS BeginningAccess;
  15710. D3D12_RENDER_PASS_ENDING_ACCESS EndingAccess;
  15711. } D3D12_RENDER_PASS_RENDER_TARGET_DESC;
  15712. typedef struct D3D12_RENDER_PASS_DEPTH_STENCIL_DESC
  15713. {
  15714. D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor;
  15715. D3D12_RENDER_PASS_BEGINNING_ACCESS DepthBeginningAccess;
  15716. D3D12_RENDER_PASS_BEGINNING_ACCESS StencilBeginningAccess;
  15717. D3D12_RENDER_PASS_ENDING_ACCESS DepthEndingAccess;
  15718. D3D12_RENDER_PASS_ENDING_ACCESS StencilEndingAccess;
  15719. } D3D12_RENDER_PASS_DEPTH_STENCIL_DESC;
  15720. typedef
  15721. enum D3D12_RENDER_PASS_FLAGS
  15722. {
  15723. D3D12_RENDER_PASS_FLAG_NONE = 0,
  15724. D3D12_RENDER_PASS_FLAG_ALLOW_UAV_WRITES = 0x1,
  15725. D3D12_RENDER_PASS_FLAG_SUSPENDING_PASS = 0x2,
  15726. D3D12_RENDER_PASS_FLAG_RESUMING_PASS = 0x4,
  15727. D3D12_RENDER_PASS_FLAG_BIND_READ_ONLY_DEPTH = 0x8,
  15728. D3D12_RENDER_PASS_FLAG_BIND_READ_ONLY_STENCIL = 0x10
  15729. } D3D12_RENDER_PASS_FLAGS;
  15730. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RENDER_PASS_FLAGS )
  15731. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0051_v0_0_c_ifspec;
  15732. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0051_v0_0_s_ifspec;
  15733. #ifndef __ID3D12MetaCommand_INTERFACE_DEFINED__
  15734. #define __ID3D12MetaCommand_INTERFACE_DEFINED__
  15735. /* interface ID3D12MetaCommand */
  15736. /* [unique][local][object][uuid] */
  15737. EXTERN_C const IID IID_ID3D12MetaCommand;
  15738. #if defined(__cplusplus) && !defined(CINTERFACE)
  15739. MIDL_INTERFACE("DBB84C27-36CE-4FC9-B801-F048C46AC570")
  15740. ID3D12MetaCommand : public ID3D12Pageable
  15741. {
  15742. public:
  15743. virtual UINT64 STDMETHODCALLTYPE GetRequiredParameterResourceSize(
  15744. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  15745. _In_ UINT ParameterIndex) = 0;
  15746. };
  15747. #else /* C style interface */
  15748. typedef struct ID3D12MetaCommandVtbl
  15749. {
  15750. BEGIN_INTERFACE
  15751. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  15752. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15753. ID3D12MetaCommand * This,
  15754. REFIID riid,
  15755. _COM_Outptr_ void **ppvObject);
  15756. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  15757. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15758. ID3D12MetaCommand * This);
  15759. DECLSPEC_XFGVIRT(IUnknown, Release)
  15760. ULONG ( STDMETHODCALLTYPE *Release )(
  15761. ID3D12MetaCommand * This);
  15762. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  15763. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  15764. ID3D12MetaCommand * This,
  15765. _In_ REFGUID guid,
  15766. _Inout_ UINT *pDataSize,
  15767. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  15768. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  15769. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  15770. ID3D12MetaCommand * This,
  15771. _In_ REFGUID guid,
  15772. _In_ UINT DataSize,
  15773. _In_reads_bytes_opt_( DataSize ) const void *pData);
  15774. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  15775. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  15776. ID3D12MetaCommand * This,
  15777. _In_ REFGUID guid,
  15778. _In_opt_ const IUnknown *pData);
  15779. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  15780. HRESULT ( STDMETHODCALLTYPE *SetName )(
  15781. ID3D12MetaCommand * This,
  15782. _In_z_ LPCWSTR Name);
  15783. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  15784. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  15785. ID3D12MetaCommand * This,
  15786. REFIID riid,
  15787. _COM_Outptr_opt_ void **ppvDevice);
  15788. DECLSPEC_XFGVIRT(ID3D12MetaCommand, GetRequiredParameterResourceSize)
  15789. UINT64 ( STDMETHODCALLTYPE *GetRequiredParameterResourceSize )(
  15790. ID3D12MetaCommand * This,
  15791. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  15792. _In_ UINT ParameterIndex);
  15793. END_INTERFACE
  15794. } ID3D12MetaCommandVtbl;
  15795. interface ID3D12MetaCommand
  15796. {
  15797. CONST_VTBL struct ID3D12MetaCommandVtbl *lpVtbl;
  15798. };
  15799. #ifdef COBJMACROS
  15800. #define ID3D12MetaCommand_QueryInterface(This,riid,ppvObject) \
  15801. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  15802. #define ID3D12MetaCommand_AddRef(This) \
  15803. ( (This)->lpVtbl -> AddRef(This) )
  15804. #define ID3D12MetaCommand_Release(This) \
  15805. ( (This)->lpVtbl -> Release(This) )
  15806. #define ID3D12MetaCommand_GetPrivateData(This,guid,pDataSize,pData) \
  15807. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  15808. #define ID3D12MetaCommand_SetPrivateData(This,guid,DataSize,pData) \
  15809. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  15810. #define ID3D12MetaCommand_SetPrivateDataInterface(This,guid,pData) \
  15811. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  15812. #define ID3D12MetaCommand_SetName(This,Name) \
  15813. ( (This)->lpVtbl -> SetName(This,Name) )
  15814. #define ID3D12MetaCommand_GetDevice(This,riid,ppvDevice) \
  15815. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  15816. #define ID3D12MetaCommand_GetRequiredParameterResourceSize(This,Stage,ParameterIndex) \
  15817. ( (This)->lpVtbl -> GetRequiredParameterResourceSize(This,Stage,ParameterIndex) )
  15818. #endif /* COBJMACROS */
  15819. #endif /* C style interface */
  15820. #endif /* __ID3D12MetaCommand_INTERFACE_DEFINED__ */
  15821. /* interface __MIDL_itf_d3d12_0000_0052 */
  15822. /* [local] */
  15823. typedef struct D3D12_DISPATCH_RAYS_DESC
  15824. {
  15825. D3D12_GPU_VIRTUAL_ADDRESS_RANGE RayGenerationShaderRecord;
  15826. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE MissShaderTable;
  15827. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE HitGroupTable;
  15828. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE CallableShaderTable;
  15829. UINT Width;
  15830. UINT Height;
  15831. UINT Depth;
  15832. } D3D12_DISPATCH_RAYS_DESC;
  15833. typedef
  15834. enum D3D12_SET_WORK_GRAPH_FLAGS
  15835. {
  15836. D3D12_SET_WORK_GRAPH_FLAG_NONE = 0,
  15837. D3D12_SET_WORK_GRAPH_FLAG_INITIALIZE = 0x1
  15838. } D3D12_SET_WORK_GRAPH_FLAGS;
  15839. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SET_WORK_GRAPH_FLAGS )
  15840. typedef struct D3D12_SET_WORK_GRAPH_DESC
  15841. {
  15842. D3D12_PROGRAM_IDENTIFIER ProgramIdentifier;
  15843. D3D12_SET_WORK_GRAPH_FLAGS Flags;
  15844. D3D12_GPU_VIRTUAL_ADDRESS_RANGE BackingMemory;
  15845. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE NodeLocalRootArgumentsTable;
  15846. } D3D12_SET_WORK_GRAPH_DESC;
  15847. typedef struct D3D12_SET_RAYTRACING_PIPELINE_DESC
  15848. {
  15849. D3D12_PROGRAM_IDENTIFIER ProgramIdentifier;
  15850. } D3D12_SET_RAYTRACING_PIPELINE_DESC;
  15851. typedef struct D3D12_SET_GENERIC_PIPELINE_DESC
  15852. {
  15853. D3D12_PROGRAM_IDENTIFIER ProgramIdentifier;
  15854. } D3D12_SET_GENERIC_PIPELINE_DESC;
  15855. typedef
  15856. enum D3D12_PROGRAM_TYPE
  15857. {
  15858. D3D12_PROGRAM_TYPE_GENERIC_PIPELINE = 1,
  15859. D3D12_PROGRAM_TYPE_RAYTRACING_PIPELINE = 4,
  15860. D3D12_PROGRAM_TYPE_WORK_GRAPH = 5
  15861. } D3D12_PROGRAM_TYPE;
  15862. typedef struct D3D12_SET_PROGRAM_DESC
  15863. {
  15864. D3D12_PROGRAM_TYPE Type;
  15865. union
  15866. {
  15867. D3D12_SET_GENERIC_PIPELINE_DESC GenericPipeline;
  15868. D3D12_SET_RAYTRACING_PIPELINE_DESC RaytracingPipeline;
  15869. D3D12_SET_WORK_GRAPH_DESC WorkGraph;
  15870. } ;
  15871. } D3D12_SET_PROGRAM_DESC;
  15872. typedef
  15873. enum D3D12_DISPATCH_MODE
  15874. {
  15875. D3D12_DISPATCH_MODE_NODE_CPU_INPUT = 0,
  15876. D3D12_DISPATCH_MODE_NODE_GPU_INPUT = 1,
  15877. D3D12_DISPATCH_MODE_MULTI_NODE_CPU_INPUT = 2,
  15878. D3D12_DISPATCH_MODE_MULTI_NODE_GPU_INPUT = 3
  15879. } D3D12_DISPATCH_MODE;
  15880. typedef struct D3D12_NODE_CPU_INPUT
  15881. {
  15882. UINT EntrypointIndex;
  15883. UINT NumRecords;
  15884. const void *pRecords;
  15885. UINT64 RecordStrideInBytes;
  15886. } D3D12_NODE_CPU_INPUT;
  15887. typedef struct D3D12_NODE_GPU_INPUT
  15888. {
  15889. UINT EntrypointIndex;
  15890. UINT NumRecords;
  15891. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE Records;
  15892. } D3D12_NODE_GPU_INPUT;
  15893. typedef struct D3D12_MULTI_NODE_CPU_INPUT
  15894. {
  15895. UINT NumNodeInputs;
  15896. const D3D12_NODE_CPU_INPUT *pNodeInputs;
  15897. UINT64 NodeInputStrideInBytes;
  15898. } D3D12_MULTI_NODE_CPU_INPUT;
  15899. typedef struct D3D12_MULTI_NODE_GPU_INPUT
  15900. {
  15901. UINT NumNodeInputs;
  15902. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE NodeInputs;
  15903. } D3D12_MULTI_NODE_GPU_INPUT;
  15904. typedef struct D3D12_DISPATCH_GRAPH_DESC
  15905. {
  15906. D3D12_DISPATCH_MODE Mode;
  15907. union
  15908. {
  15909. D3D12_NODE_CPU_INPUT NodeCPUInput;
  15910. D3D12_GPU_VIRTUAL_ADDRESS NodeGPUInput;
  15911. D3D12_MULTI_NODE_CPU_INPUT MultiNodeCPUInput;
  15912. D3D12_GPU_VIRTUAL_ADDRESS MultiNodeGPUInput;
  15913. } ;
  15914. } D3D12_DISPATCH_GRAPH_DESC;
  15915. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0052_v0_0_c_ifspec;
  15916. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0052_v0_0_s_ifspec;
  15917. #ifndef __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__
  15918. #define __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__
  15919. /* interface ID3D12GraphicsCommandList4 */
  15920. /* [unique][local][object][uuid] */
  15921. EXTERN_C const IID IID_ID3D12GraphicsCommandList4;
  15922. #if defined(__cplusplus) && !defined(CINTERFACE)
  15923. MIDL_INTERFACE("8754318e-d3a9-4541-98cf-645b50dc4874")
  15924. ID3D12GraphicsCommandList4 : public ID3D12GraphicsCommandList3
  15925. {
  15926. public:
  15927. virtual void STDMETHODCALLTYPE BeginRenderPass(
  15928. _In_ UINT NumRenderTargets,
  15929. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  15930. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  15931. D3D12_RENDER_PASS_FLAGS Flags) = 0;
  15932. virtual void STDMETHODCALLTYPE EndRenderPass( void) = 0;
  15933. virtual void STDMETHODCALLTYPE InitializeMetaCommand(
  15934. _In_ ID3D12MetaCommand *pMetaCommand,
  15935. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  15936. _In_ SIZE_T InitializationParametersDataSizeInBytes) = 0;
  15937. virtual void STDMETHODCALLTYPE ExecuteMetaCommand(
  15938. _In_ ID3D12MetaCommand *pMetaCommand,
  15939. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  15940. _In_ SIZE_T ExecutionParametersDataSizeInBytes) = 0;
  15941. virtual void STDMETHODCALLTYPE BuildRaytracingAccelerationStructure(
  15942. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  15943. _In_ UINT NumPostbuildInfoDescs,
  15944. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs) = 0;
  15945. virtual void STDMETHODCALLTYPE EmitRaytracingAccelerationStructurePostbuildInfo(
  15946. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  15947. _In_ UINT NumSourceAccelerationStructures,
  15948. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData) = 0;
  15949. virtual void STDMETHODCALLTYPE CopyRaytracingAccelerationStructure(
  15950. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  15951. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  15952. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode) = 0;
  15953. virtual void STDMETHODCALLTYPE SetPipelineState1(
  15954. _In_ ID3D12StateObject *pStateObject) = 0;
  15955. virtual void STDMETHODCALLTYPE DispatchRays(
  15956. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc) = 0;
  15957. };
  15958. #else /* C style interface */
  15959. typedef struct ID3D12GraphicsCommandList4Vtbl
  15960. {
  15961. BEGIN_INTERFACE
  15962. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  15963. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15964. ID3D12GraphicsCommandList4 * This,
  15965. REFIID riid,
  15966. _COM_Outptr_ void **ppvObject);
  15967. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  15968. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15969. ID3D12GraphicsCommandList4 * This);
  15970. DECLSPEC_XFGVIRT(IUnknown, Release)
  15971. ULONG ( STDMETHODCALLTYPE *Release )(
  15972. ID3D12GraphicsCommandList4 * This);
  15973. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  15974. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  15975. ID3D12GraphicsCommandList4 * This,
  15976. _In_ REFGUID guid,
  15977. _Inout_ UINT *pDataSize,
  15978. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  15979. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  15980. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  15981. ID3D12GraphicsCommandList4 * This,
  15982. _In_ REFGUID guid,
  15983. _In_ UINT DataSize,
  15984. _In_reads_bytes_opt_( DataSize ) const void *pData);
  15985. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  15986. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  15987. ID3D12GraphicsCommandList4 * This,
  15988. _In_ REFGUID guid,
  15989. _In_opt_ const IUnknown *pData);
  15990. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  15991. HRESULT ( STDMETHODCALLTYPE *SetName )(
  15992. ID3D12GraphicsCommandList4 * This,
  15993. _In_z_ LPCWSTR Name);
  15994. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  15995. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  15996. ID3D12GraphicsCommandList4 * This,
  15997. REFIID riid,
  15998. _COM_Outptr_opt_ void **ppvDevice);
  15999. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  16000. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  16001. ID3D12GraphicsCommandList4 * This);
  16002. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  16003. HRESULT ( STDMETHODCALLTYPE *Close )(
  16004. ID3D12GraphicsCommandList4 * This);
  16005. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  16006. HRESULT ( STDMETHODCALLTYPE *Reset )(
  16007. ID3D12GraphicsCommandList4 * This,
  16008. _In_ ID3D12CommandAllocator *pAllocator,
  16009. _In_opt_ ID3D12PipelineState *pInitialState);
  16010. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  16011. void ( STDMETHODCALLTYPE *ClearState )(
  16012. ID3D12GraphicsCommandList4 * This,
  16013. _In_opt_ ID3D12PipelineState *pPipelineState);
  16014. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  16015. void ( STDMETHODCALLTYPE *DrawInstanced )(
  16016. ID3D12GraphicsCommandList4 * This,
  16017. _In_ UINT VertexCountPerInstance,
  16018. _In_ UINT InstanceCount,
  16019. _In_ UINT StartVertexLocation,
  16020. _In_ UINT StartInstanceLocation);
  16021. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  16022. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  16023. ID3D12GraphicsCommandList4 * This,
  16024. _In_ UINT IndexCountPerInstance,
  16025. _In_ UINT InstanceCount,
  16026. _In_ UINT StartIndexLocation,
  16027. _In_ INT BaseVertexLocation,
  16028. _In_ UINT StartInstanceLocation);
  16029. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  16030. void ( STDMETHODCALLTYPE *Dispatch )(
  16031. ID3D12GraphicsCommandList4 * This,
  16032. _In_ UINT ThreadGroupCountX,
  16033. _In_ UINT ThreadGroupCountY,
  16034. _In_ UINT ThreadGroupCountZ);
  16035. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  16036. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  16037. ID3D12GraphicsCommandList4 * This,
  16038. _In_ ID3D12Resource *pDstBuffer,
  16039. UINT64 DstOffset,
  16040. _In_ ID3D12Resource *pSrcBuffer,
  16041. UINT64 SrcOffset,
  16042. UINT64 NumBytes);
  16043. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  16044. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  16045. ID3D12GraphicsCommandList4 * This,
  16046. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  16047. UINT DstX,
  16048. UINT DstY,
  16049. UINT DstZ,
  16050. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  16051. _In_opt_ const D3D12_BOX *pSrcBox);
  16052. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  16053. void ( STDMETHODCALLTYPE *CopyResource )(
  16054. ID3D12GraphicsCommandList4 * This,
  16055. _In_ ID3D12Resource *pDstResource,
  16056. _In_ ID3D12Resource *pSrcResource);
  16057. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  16058. void ( STDMETHODCALLTYPE *CopyTiles )(
  16059. ID3D12GraphicsCommandList4 * This,
  16060. _In_ ID3D12Resource *pTiledResource,
  16061. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  16062. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  16063. _In_ ID3D12Resource *pBuffer,
  16064. UINT64 BufferStartOffsetInBytes,
  16065. D3D12_TILE_COPY_FLAGS Flags);
  16066. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  16067. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  16068. ID3D12GraphicsCommandList4 * This,
  16069. _In_ ID3D12Resource *pDstResource,
  16070. _In_ UINT DstSubresource,
  16071. _In_ ID3D12Resource *pSrcResource,
  16072. _In_ UINT SrcSubresource,
  16073. _In_ DXGI_FORMAT Format);
  16074. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  16075. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  16076. ID3D12GraphicsCommandList4 * This,
  16077. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  16078. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  16079. void ( STDMETHODCALLTYPE *RSSetViewports )(
  16080. ID3D12GraphicsCommandList4 * This,
  16081. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  16082. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  16083. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  16084. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  16085. ID3D12GraphicsCommandList4 * This,
  16086. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  16087. _In_reads_( NumRects) const D3D12_RECT *pRects);
  16088. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  16089. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  16090. ID3D12GraphicsCommandList4 * This,
  16091. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  16092. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  16093. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  16094. ID3D12GraphicsCommandList4 * This,
  16095. _In_ UINT StencilRef);
  16096. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  16097. void ( STDMETHODCALLTYPE *SetPipelineState )(
  16098. ID3D12GraphicsCommandList4 * This,
  16099. _In_ ID3D12PipelineState *pPipelineState);
  16100. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  16101. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  16102. ID3D12GraphicsCommandList4 * This,
  16103. _In_ UINT NumBarriers,
  16104. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  16105. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  16106. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  16107. ID3D12GraphicsCommandList4 * This,
  16108. _In_ ID3D12GraphicsCommandList *pCommandList);
  16109. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  16110. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  16111. ID3D12GraphicsCommandList4 * This,
  16112. _In_ UINT NumDescriptorHeaps,
  16113. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  16114. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  16115. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  16116. ID3D12GraphicsCommandList4 * This,
  16117. _In_opt_ ID3D12RootSignature *pRootSignature);
  16118. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  16119. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  16120. ID3D12GraphicsCommandList4 * This,
  16121. _In_opt_ ID3D12RootSignature *pRootSignature);
  16122. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  16123. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  16124. ID3D12GraphicsCommandList4 * This,
  16125. _In_ UINT RootParameterIndex,
  16126. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  16127. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  16128. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  16129. ID3D12GraphicsCommandList4 * This,
  16130. _In_ UINT RootParameterIndex,
  16131. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  16132. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  16133. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  16134. ID3D12GraphicsCommandList4 * This,
  16135. _In_ UINT RootParameterIndex,
  16136. _In_ UINT SrcData,
  16137. _In_ UINT DestOffsetIn32BitValues);
  16138. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  16139. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  16140. ID3D12GraphicsCommandList4 * This,
  16141. _In_ UINT RootParameterIndex,
  16142. _In_ UINT SrcData,
  16143. _In_ UINT DestOffsetIn32BitValues);
  16144. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  16145. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  16146. ID3D12GraphicsCommandList4 * This,
  16147. _In_ UINT RootParameterIndex,
  16148. _In_ UINT Num32BitValuesToSet,
  16149. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  16150. _In_ UINT DestOffsetIn32BitValues);
  16151. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  16152. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  16153. ID3D12GraphicsCommandList4 * This,
  16154. _In_ UINT RootParameterIndex,
  16155. _In_ UINT Num32BitValuesToSet,
  16156. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  16157. _In_ UINT DestOffsetIn32BitValues);
  16158. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  16159. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  16160. ID3D12GraphicsCommandList4 * This,
  16161. _In_ UINT RootParameterIndex,
  16162. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16163. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  16164. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  16165. ID3D12GraphicsCommandList4 * This,
  16166. _In_ UINT RootParameterIndex,
  16167. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16168. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  16169. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  16170. ID3D12GraphicsCommandList4 * This,
  16171. _In_ UINT RootParameterIndex,
  16172. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16173. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  16174. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  16175. ID3D12GraphicsCommandList4 * This,
  16176. _In_ UINT RootParameterIndex,
  16177. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16178. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  16179. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  16180. ID3D12GraphicsCommandList4 * This,
  16181. _In_ UINT RootParameterIndex,
  16182. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16183. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  16184. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  16185. ID3D12GraphicsCommandList4 * This,
  16186. _In_ UINT RootParameterIndex,
  16187. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16188. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  16189. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  16190. ID3D12GraphicsCommandList4 * This,
  16191. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  16192. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  16193. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  16194. ID3D12GraphicsCommandList4 * This,
  16195. _In_ UINT StartSlot,
  16196. _In_ UINT NumViews,
  16197. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  16198. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  16199. void ( STDMETHODCALLTYPE *SOSetTargets )(
  16200. ID3D12GraphicsCommandList4 * This,
  16201. _In_ UINT StartSlot,
  16202. _In_ UINT NumViews,
  16203. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  16204. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  16205. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  16206. ID3D12GraphicsCommandList4 * This,
  16207. _In_ UINT NumRenderTargetDescriptors,
  16208. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  16209. _In_ BOOL RTsSingleHandleToDescriptorRange,
  16210. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  16211. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  16212. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  16213. ID3D12GraphicsCommandList4 * This,
  16214. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  16215. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  16216. _In_ FLOAT Depth,
  16217. _In_ UINT8 Stencil,
  16218. _In_ UINT NumRects,
  16219. _In_reads_(NumRects) const D3D12_RECT *pRects);
  16220. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  16221. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  16222. ID3D12GraphicsCommandList4 * This,
  16223. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  16224. _In_ const FLOAT ColorRGBA[ 4 ],
  16225. _In_ UINT NumRects,
  16226. _In_reads_(NumRects) const D3D12_RECT *pRects);
  16227. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  16228. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  16229. ID3D12GraphicsCommandList4 * This,
  16230. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  16231. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  16232. _In_ ID3D12Resource *pResource,
  16233. _In_ const UINT Values[ 4 ],
  16234. _In_ UINT NumRects,
  16235. _In_reads_(NumRects) const D3D12_RECT *pRects);
  16236. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  16237. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  16238. ID3D12GraphicsCommandList4 * This,
  16239. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  16240. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  16241. _In_ ID3D12Resource *pResource,
  16242. _In_ const FLOAT Values[ 4 ],
  16243. _In_ UINT NumRects,
  16244. _In_reads_(NumRects) const D3D12_RECT *pRects);
  16245. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  16246. void ( STDMETHODCALLTYPE *DiscardResource )(
  16247. ID3D12GraphicsCommandList4 * This,
  16248. _In_ ID3D12Resource *pResource,
  16249. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  16250. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  16251. void ( STDMETHODCALLTYPE *BeginQuery )(
  16252. ID3D12GraphicsCommandList4 * This,
  16253. _In_ ID3D12QueryHeap *pQueryHeap,
  16254. _In_ D3D12_QUERY_TYPE Type,
  16255. _In_ UINT Index);
  16256. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  16257. void ( STDMETHODCALLTYPE *EndQuery )(
  16258. ID3D12GraphicsCommandList4 * This,
  16259. _In_ ID3D12QueryHeap *pQueryHeap,
  16260. _In_ D3D12_QUERY_TYPE Type,
  16261. _In_ UINT Index);
  16262. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  16263. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  16264. ID3D12GraphicsCommandList4 * This,
  16265. _In_ ID3D12QueryHeap *pQueryHeap,
  16266. _In_ D3D12_QUERY_TYPE Type,
  16267. _In_ UINT StartIndex,
  16268. _In_ UINT NumQueries,
  16269. _In_ ID3D12Resource *pDestinationBuffer,
  16270. _In_ UINT64 AlignedDestinationBufferOffset);
  16271. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  16272. void ( STDMETHODCALLTYPE *SetPredication )(
  16273. ID3D12GraphicsCommandList4 * This,
  16274. _In_opt_ ID3D12Resource *pBuffer,
  16275. _In_ UINT64 AlignedBufferOffset,
  16276. _In_ D3D12_PREDICATION_OP Operation);
  16277. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  16278. void ( STDMETHODCALLTYPE *SetMarker )(
  16279. ID3D12GraphicsCommandList4 * This,
  16280. UINT Metadata,
  16281. _In_reads_bytes_opt_(Size) const void *pData,
  16282. UINT Size);
  16283. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  16284. void ( STDMETHODCALLTYPE *BeginEvent )(
  16285. ID3D12GraphicsCommandList4 * This,
  16286. UINT Metadata,
  16287. _In_reads_bytes_opt_(Size) const void *pData,
  16288. UINT Size);
  16289. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  16290. void ( STDMETHODCALLTYPE *EndEvent )(
  16291. ID3D12GraphicsCommandList4 * This);
  16292. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  16293. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  16294. ID3D12GraphicsCommandList4 * This,
  16295. _In_ ID3D12CommandSignature *pCommandSignature,
  16296. _In_ UINT MaxCommandCount,
  16297. _In_ ID3D12Resource *pArgumentBuffer,
  16298. _In_ UINT64 ArgumentBufferOffset,
  16299. _In_opt_ ID3D12Resource *pCountBuffer,
  16300. _In_ UINT64 CountBufferOffset);
  16301. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  16302. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  16303. ID3D12GraphicsCommandList4 * This,
  16304. _In_ ID3D12Resource *pDstBuffer,
  16305. UINT64 DstOffset,
  16306. _In_ ID3D12Resource *pSrcBuffer,
  16307. UINT64 SrcOffset,
  16308. UINT Dependencies,
  16309. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  16310. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  16311. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  16312. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  16313. ID3D12GraphicsCommandList4 * This,
  16314. _In_ ID3D12Resource *pDstBuffer,
  16315. UINT64 DstOffset,
  16316. _In_ ID3D12Resource *pSrcBuffer,
  16317. UINT64 SrcOffset,
  16318. UINT Dependencies,
  16319. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  16320. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  16321. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  16322. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  16323. ID3D12GraphicsCommandList4 * This,
  16324. _In_ FLOAT Min,
  16325. _In_ FLOAT Max);
  16326. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  16327. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  16328. ID3D12GraphicsCommandList4 * This,
  16329. _In_ UINT NumSamplesPerPixel,
  16330. _In_ UINT NumPixels,
  16331. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  16332. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  16333. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  16334. ID3D12GraphicsCommandList4 * This,
  16335. _In_ ID3D12Resource *pDstResource,
  16336. _In_ UINT DstSubresource,
  16337. _In_ UINT DstX,
  16338. _In_ UINT DstY,
  16339. _In_ ID3D12Resource *pSrcResource,
  16340. _In_ UINT SrcSubresource,
  16341. _In_opt_ D3D12_RECT *pSrcRect,
  16342. _In_ DXGI_FORMAT Format,
  16343. _In_ D3D12_RESOLVE_MODE ResolveMode);
  16344. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  16345. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  16346. ID3D12GraphicsCommandList4 * This,
  16347. _In_ UINT Mask);
  16348. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  16349. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  16350. ID3D12GraphicsCommandList4 * This,
  16351. UINT Count,
  16352. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  16353. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  16354. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  16355. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  16356. ID3D12GraphicsCommandList4 * This,
  16357. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  16358. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  16359. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  16360. ID3D12GraphicsCommandList4 * This,
  16361. _In_ UINT NumRenderTargets,
  16362. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  16363. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  16364. D3D12_RENDER_PASS_FLAGS Flags);
  16365. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  16366. void ( STDMETHODCALLTYPE *EndRenderPass )(
  16367. ID3D12GraphicsCommandList4 * This);
  16368. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  16369. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  16370. ID3D12GraphicsCommandList4 * This,
  16371. _In_ ID3D12MetaCommand *pMetaCommand,
  16372. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  16373. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  16374. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  16375. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  16376. ID3D12GraphicsCommandList4 * This,
  16377. _In_ ID3D12MetaCommand *pMetaCommand,
  16378. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  16379. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  16380. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  16381. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  16382. ID3D12GraphicsCommandList4 * This,
  16383. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  16384. _In_ UINT NumPostbuildInfoDescs,
  16385. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  16386. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  16387. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  16388. ID3D12GraphicsCommandList4 * This,
  16389. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  16390. _In_ UINT NumSourceAccelerationStructures,
  16391. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  16392. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  16393. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  16394. ID3D12GraphicsCommandList4 * This,
  16395. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  16396. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  16397. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  16398. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  16399. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  16400. ID3D12GraphicsCommandList4 * This,
  16401. _In_ ID3D12StateObject *pStateObject);
  16402. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  16403. void ( STDMETHODCALLTYPE *DispatchRays )(
  16404. ID3D12GraphicsCommandList4 * This,
  16405. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  16406. END_INTERFACE
  16407. } ID3D12GraphicsCommandList4Vtbl;
  16408. interface ID3D12GraphicsCommandList4
  16409. {
  16410. CONST_VTBL struct ID3D12GraphicsCommandList4Vtbl *lpVtbl;
  16411. };
  16412. #ifdef COBJMACROS
  16413. #define ID3D12GraphicsCommandList4_QueryInterface(This,riid,ppvObject) \
  16414. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  16415. #define ID3D12GraphicsCommandList4_AddRef(This) \
  16416. ( (This)->lpVtbl -> AddRef(This) )
  16417. #define ID3D12GraphicsCommandList4_Release(This) \
  16418. ( (This)->lpVtbl -> Release(This) )
  16419. #define ID3D12GraphicsCommandList4_GetPrivateData(This,guid,pDataSize,pData) \
  16420. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  16421. #define ID3D12GraphicsCommandList4_SetPrivateData(This,guid,DataSize,pData) \
  16422. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  16423. #define ID3D12GraphicsCommandList4_SetPrivateDataInterface(This,guid,pData) \
  16424. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  16425. #define ID3D12GraphicsCommandList4_SetName(This,Name) \
  16426. ( (This)->lpVtbl -> SetName(This,Name) )
  16427. #define ID3D12GraphicsCommandList4_GetDevice(This,riid,ppvDevice) \
  16428. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  16429. #define ID3D12GraphicsCommandList4_GetType(This) \
  16430. ( (This)->lpVtbl -> GetType(This) )
  16431. #define ID3D12GraphicsCommandList4_Close(This) \
  16432. ( (This)->lpVtbl -> Close(This) )
  16433. #define ID3D12GraphicsCommandList4_Reset(This,pAllocator,pInitialState) \
  16434. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  16435. #define ID3D12GraphicsCommandList4_ClearState(This,pPipelineState) \
  16436. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  16437. #define ID3D12GraphicsCommandList4_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  16438. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  16439. #define ID3D12GraphicsCommandList4_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  16440. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  16441. #define ID3D12GraphicsCommandList4_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  16442. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  16443. #define ID3D12GraphicsCommandList4_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  16444. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  16445. #define ID3D12GraphicsCommandList4_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  16446. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  16447. #define ID3D12GraphicsCommandList4_CopyResource(This,pDstResource,pSrcResource) \
  16448. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  16449. #define ID3D12GraphicsCommandList4_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  16450. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  16451. #define ID3D12GraphicsCommandList4_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  16452. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  16453. #define ID3D12GraphicsCommandList4_IASetPrimitiveTopology(This,PrimitiveTopology) \
  16454. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  16455. #define ID3D12GraphicsCommandList4_RSSetViewports(This,NumViewports,pViewports) \
  16456. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  16457. #define ID3D12GraphicsCommandList4_RSSetScissorRects(This,NumRects,pRects) \
  16458. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  16459. #define ID3D12GraphicsCommandList4_OMSetBlendFactor(This,BlendFactor) \
  16460. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  16461. #define ID3D12GraphicsCommandList4_OMSetStencilRef(This,StencilRef) \
  16462. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  16463. #define ID3D12GraphicsCommandList4_SetPipelineState(This,pPipelineState) \
  16464. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  16465. #define ID3D12GraphicsCommandList4_ResourceBarrier(This,NumBarriers,pBarriers) \
  16466. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  16467. #define ID3D12GraphicsCommandList4_ExecuteBundle(This,pCommandList) \
  16468. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  16469. #define ID3D12GraphicsCommandList4_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  16470. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  16471. #define ID3D12GraphicsCommandList4_SetComputeRootSignature(This,pRootSignature) \
  16472. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  16473. #define ID3D12GraphicsCommandList4_SetGraphicsRootSignature(This,pRootSignature) \
  16474. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  16475. #define ID3D12GraphicsCommandList4_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  16476. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  16477. #define ID3D12GraphicsCommandList4_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  16478. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  16479. #define ID3D12GraphicsCommandList4_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  16480. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  16481. #define ID3D12GraphicsCommandList4_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  16482. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  16483. #define ID3D12GraphicsCommandList4_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  16484. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  16485. #define ID3D12GraphicsCommandList4_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  16486. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  16487. #define ID3D12GraphicsCommandList4_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  16488. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  16489. #define ID3D12GraphicsCommandList4_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  16490. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  16491. #define ID3D12GraphicsCommandList4_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  16492. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  16493. #define ID3D12GraphicsCommandList4_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  16494. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  16495. #define ID3D12GraphicsCommandList4_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  16496. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  16497. #define ID3D12GraphicsCommandList4_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  16498. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  16499. #define ID3D12GraphicsCommandList4_IASetIndexBuffer(This,pView) \
  16500. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  16501. #define ID3D12GraphicsCommandList4_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  16502. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  16503. #define ID3D12GraphicsCommandList4_SOSetTargets(This,StartSlot,NumViews,pViews) \
  16504. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  16505. #define ID3D12GraphicsCommandList4_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  16506. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  16507. #define ID3D12GraphicsCommandList4_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  16508. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  16509. #define ID3D12GraphicsCommandList4_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  16510. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  16511. #define ID3D12GraphicsCommandList4_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  16512. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  16513. #define ID3D12GraphicsCommandList4_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  16514. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  16515. #define ID3D12GraphicsCommandList4_DiscardResource(This,pResource,pRegion) \
  16516. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  16517. #define ID3D12GraphicsCommandList4_BeginQuery(This,pQueryHeap,Type,Index) \
  16518. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  16519. #define ID3D12GraphicsCommandList4_EndQuery(This,pQueryHeap,Type,Index) \
  16520. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  16521. #define ID3D12GraphicsCommandList4_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  16522. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  16523. #define ID3D12GraphicsCommandList4_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  16524. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  16525. #define ID3D12GraphicsCommandList4_SetMarker(This,Metadata,pData,Size) \
  16526. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  16527. #define ID3D12GraphicsCommandList4_BeginEvent(This,Metadata,pData,Size) \
  16528. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  16529. #define ID3D12GraphicsCommandList4_EndEvent(This) \
  16530. ( (This)->lpVtbl -> EndEvent(This) )
  16531. #define ID3D12GraphicsCommandList4_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  16532. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  16533. #define ID3D12GraphicsCommandList4_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  16534. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  16535. #define ID3D12GraphicsCommandList4_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  16536. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  16537. #define ID3D12GraphicsCommandList4_OMSetDepthBounds(This,Min,Max) \
  16538. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  16539. #define ID3D12GraphicsCommandList4_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  16540. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  16541. #define ID3D12GraphicsCommandList4_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  16542. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  16543. #define ID3D12GraphicsCommandList4_SetViewInstanceMask(This,Mask) \
  16544. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  16545. #define ID3D12GraphicsCommandList4_WriteBufferImmediate(This,Count,pParams,pModes) \
  16546. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  16547. #define ID3D12GraphicsCommandList4_SetProtectedResourceSession(This,pProtectedResourceSession) \
  16548. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  16549. #define ID3D12GraphicsCommandList4_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  16550. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  16551. #define ID3D12GraphicsCommandList4_EndRenderPass(This) \
  16552. ( (This)->lpVtbl -> EndRenderPass(This) )
  16553. #define ID3D12GraphicsCommandList4_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  16554. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  16555. #define ID3D12GraphicsCommandList4_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  16556. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  16557. #define ID3D12GraphicsCommandList4_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  16558. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  16559. #define ID3D12GraphicsCommandList4_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  16560. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  16561. #define ID3D12GraphicsCommandList4_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  16562. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  16563. #define ID3D12GraphicsCommandList4_SetPipelineState1(This,pStateObject) \
  16564. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  16565. #define ID3D12GraphicsCommandList4_DispatchRays(This,pDesc) \
  16566. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  16567. #endif /* COBJMACROS */
  16568. #endif /* C style interface */
  16569. #endif /* __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__ */
  16570. /* interface __MIDL_itf_d3d12_0000_0053 */
  16571. /* [local] */
  16572. typedef
  16573. enum D3D12_SHADER_CACHE_MODE
  16574. {
  16575. D3D12_SHADER_CACHE_MODE_MEMORY = 0,
  16576. D3D12_SHADER_CACHE_MODE_DISK = ( D3D12_SHADER_CACHE_MODE_MEMORY + 1 )
  16577. } D3D12_SHADER_CACHE_MODE;
  16578. typedef
  16579. enum D3D12_SHADER_CACHE_FLAGS
  16580. {
  16581. D3D12_SHADER_CACHE_FLAG_NONE = 0,
  16582. D3D12_SHADER_CACHE_FLAG_DRIVER_VERSIONED = 0x1,
  16583. D3D12_SHADER_CACHE_FLAG_USE_WORKING_DIR = 0x2
  16584. } D3D12_SHADER_CACHE_FLAGS;
  16585. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_FLAGS )
  16586. typedef struct D3D12_SHADER_CACHE_SESSION_DESC
  16587. {
  16588. GUID Identifier;
  16589. D3D12_SHADER_CACHE_MODE Mode;
  16590. D3D12_SHADER_CACHE_FLAGS Flags;
  16591. UINT MaximumInMemoryCacheSizeBytes;
  16592. UINT MaximumInMemoryCacheEntries;
  16593. UINT MaximumValueFileSizeBytes;
  16594. UINT64 Version;
  16595. } D3D12_SHADER_CACHE_SESSION_DESC;
  16596. typedef
  16597. enum D3D12_BARRIER_LAYOUT
  16598. {
  16599. D3D12_BARRIER_LAYOUT_UNDEFINED = 0xffffffff,
  16600. D3D12_BARRIER_LAYOUT_COMMON = 0,
  16601. D3D12_BARRIER_LAYOUT_PRESENT = 0,
  16602. D3D12_BARRIER_LAYOUT_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_PRESENT + 1 ) ,
  16603. D3D12_BARRIER_LAYOUT_RENDER_TARGET = ( D3D12_BARRIER_LAYOUT_GENERIC_READ + 1 ) ,
  16604. D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_RENDER_TARGET + 1 ) ,
  16605. D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE = ( D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS + 1 ) ,
  16606. D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ = ( D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE + 1 ) ,
  16607. D3D12_BARRIER_LAYOUT_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ + 1 ) ,
  16608. D3D12_BARRIER_LAYOUT_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_SHADER_RESOURCE + 1 ) ,
  16609. D3D12_BARRIER_LAYOUT_COPY_DEST = ( D3D12_BARRIER_LAYOUT_COPY_SOURCE + 1 ) ,
  16610. D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE = ( D3D12_BARRIER_LAYOUT_COPY_DEST + 1 ) ,
  16611. D3D12_BARRIER_LAYOUT_RESOLVE_DEST = ( D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE + 1 ) ,
  16612. D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE = ( D3D12_BARRIER_LAYOUT_RESOLVE_DEST + 1 ) ,
  16613. D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ = ( D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE + 1 ) ,
  16614. D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ + 1 ) ,
  16615. D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ = ( D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE + 1 ) ,
  16616. D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ + 1 ) ,
  16617. D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ = ( D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE + 1 ) ,
  16618. D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ + 1 ) ,
  16619. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE + 1 ) ,
  16620. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON + 1 ) ,
  16621. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ + 1 ) ,
  16622. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS + 1 ) ,
  16623. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE + 1 ) ,
  16624. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE + 1 ) ,
  16625. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST + 1 ) ,
  16626. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON + 1 ) ,
  16627. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ + 1 ) ,
  16628. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS + 1 ) ,
  16629. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE + 1 ) ,
  16630. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE + 1 ) ,
  16631. D3D12_BARRIER_LAYOUT_VIDEO_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST + 1 )
  16632. } D3D12_BARRIER_LAYOUT;
  16633. typedef
  16634. enum D3D12_BARRIER_SYNC
  16635. {
  16636. D3D12_BARRIER_SYNC_NONE = 0,
  16637. D3D12_BARRIER_SYNC_ALL = 0x1,
  16638. D3D12_BARRIER_SYNC_DRAW = 0x2,
  16639. D3D12_BARRIER_SYNC_INDEX_INPUT = 0x4,
  16640. D3D12_BARRIER_SYNC_VERTEX_SHADING = 0x8,
  16641. D3D12_BARRIER_SYNC_PIXEL_SHADING = 0x10,
  16642. D3D12_BARRIER_SYNC_DEPTH_STENCIL = 0x20,
  16643. D3D12_BARRIER_SYNC_RENDER_TARGET = 0x40,
  16644. D3D12_BARRIER_SYNC_COMPUTE_SHADING = 0x80,
  16645. D3D12_BARRIER_SYNC_RAYTRACING = 0x100,
  16646. D3D12_BARRIER_SYNC_COPY = 0x200,
  16647. D3D12_BARRIER_SYNC_RESOLVE = 0x400,
  16648. D3D12_BARRIER_SYNC_EXECUTE_INDIRECT = 0x800,
  16649. D3D12_BARRIER_SYNC_PREDICATION = 0x800,
  16650. D3D12_BARRIER_SYNC_ALL_SHADING = 0x1000,
  16651. D3D12_BARRIER_SYNC_NON_PIXEL_SHADING = 0x2000,
  16652. D3D12_BARRIER_SYNC_EMIT_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO = 0x4000,
  16653. D3D12_BARRIER_SYNC_CLEAR_UNORDERED_ACCESS_VIEW = 0x8000,
  16654. D3D12_BARRIER_SYNC_VIDEO_DECODE = 0x100000,
  16655. D3D12_BARRIER_SYNC_VIDEO_PROCESS = 0x200000,
  16656. D3D12_BARRIER_SYNC_VIDEO_ENCODE = 0x400000,
  16657. D3D12_BARRIER_SYNC_BUILD_RAYTRACING_ACCELERATION_STRUCTURE = 0x800000,
  16658. D3D12_BARRIER_SYNC_COPY_RAYTRACING_ACCELERATION_STRUCTURE = 0x1000000,
  16659. D3D12_BARRIER_SYNC_SPLIT = 0x80000000
  16660. } D3D12_BARRIER_SYNC;
  16661. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_SYNC )
  16662. typedef
  16663. enum D3D12_BARRIER_ACCESS
  16664. {
  16665. D3D12_BARRIER_ACCESS_COMMON = 0,
  16666. D3D12_BARRIER_ACCESS_VERTEX_BUFFER = 0x1,
  16667. D3D12_BARRIER_ACCESS_CONSTANT_BUFFER = 0x2,
  16668. D3D12_BARRIER_ACCESS_INDEX_BUFFER = 0x4,
  16669. D3D12_BARRIER_ACCESS_RENDER_TARGET = 0x8,
  16670. D3D12_BARRIER_ACCESS_UNORDERED_ACCESS = 0x10,
  16671. D3D12_BARRIER_ACCESS_DEPTH_STENCIL_WRITE = 0x20,
  16672. D3D12_BARRIER_ACCESS_DEPTH_STENCIL_READ = 0x40,
  16673. D3D12_BARRIER_ACCESS_SHADER_RESOURCE = 0x80,
  16674. D3D12_BARRIER_ACCESS_STREAM_OUTPUT = 0x100,
  16675. D3D12_BARRIER_ACCESS_INDIRECT_ARGUMENT = 0x200,
  16676. D3D12_BARRIER_ACCESS_PREDICATION = 0x200,
  16677. D3D12_BARRIER_ACCESS_COPY_DEST = 0x400,
  16678. D3D12_BARRIER_ACCESS_COPY_SOURCE = 0x800,
  16679. D3D12_BARRIER_ACCESS_RESOLVE_DEST = 0x1000,
  16680. D3D12_BARRIER_ACCESS_RESOLVE_SOURCE = 0x2000,
  16681. D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_READ = 0x4000,
  16682. D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_WRITE = 0x8000,
  16683. D3D12_BARRIER_ACCESS_SHADING_RATE_SOURCE = 0x10000,
  16684. D3D12_BARRIER_ACCESS_VIDEO_DECODE_READ = 0x20000,
  16685. D3D12_BARRIER_ACCESS_VIDEO_DECODE_WRITE = 0x40000,
  16686. D3D12_BARRIER_ACCESS_VIDEO_PROCESS_READ = 0x80000,
  16687. D3D12_BARRIER_ACCESS_VIDEO_PROCESS_WRITE = 0x100000,
  16688. D3D12_BARRIER_ACCESS_VIDEO_ENCODE_READ = 0x200000,
  16689. D3D12_BARRIER_ACCESS_VIDEO_ENCODE_WRITE = 0x400000,
  16690. D3D12_BARRIER_ACCESS_NO_ACCESS = 0x80000000
  16691. } D3D12_BARRIER_ACCESS;
  16692. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_ACCESS )
  16693. typedef
  16694. enum D3D12_BARRIER_TYPE
  16695. {
  16696. D3D12_BARRIER_TYPE_GLOBAL = 0,
  16697. D3D12_BARRIER_TYPE_TEXTURE = ( D3D12_BARRIER_TYPE_GLOBAL + 1 ) ,
  16698. D3D12_BARRIER_TYPE_BUFFER = ( D3D12_BARRIER_TYPE_TEXTURE + 1 )
  16699. } D3D12_BARRIER_TYPE;
  16700. typedef
  16701. enum D3D12_TEXTURE_BARRIER_FLAGS
  16702. {
  16703. D3D12_TEXTURE_BARRIER_FLAG_NONE = 0,
  16704. D3D12_TEXTURE_BARRIER_FLAG_DISCARD = 0x1
  16705. } D3D12_TEXTURE_BARRIER_FLAGS;
  16706. DEFINE_ENUM_FLAG_OPERATORS( D3D12_TEXTURE_BARRIER_FLAGS )
  16707. typedef struct D3D12_BARRIER_SUBRESOURCE_RANGE
  16708. {
  16709. UINT IndexOrFirstMipLevel;
  16710. UINT NumMipLevels;
  16711. UINT FirstArraySlice;
  16712. UINT NumArraySlices;
  16713. UINT FirstPlane;
  16714. UINT NumPlanes;
  16715. } D3D12_BARRIER_SUBRESOURCE_RANGE;
  16716. typedef struct D3D12_GLOBAL_BARRIER
  16717. {
  16718. D3D12_BARRIER_SYNC SyncBefore;
  16719. D3D12_BARRIER_SYNC SyncAfter;
  16720. D3D12_BARRIER_ACCESS AccessBefore;
  16721. D3D12_BARRIER_ACCESS AccessAfter;
  16722. } D3D12_GLOBAL_BARRIER;
  16723. typedef struct D3D12_TEXTURE_BARRIER
  16724. {
  16725. D3D12_BARRIER_SYNC SyncBefore;
  16726. D3D12_BARRIER_SYNC SyncAfter;
  16727. D3D12_BARRIER_ACCESS AccessBefore;
  16728. D3D12_BARRIER_ACCESS AccessAfter;
  16729. D3D12_BARRIER_LAYOUT LayoutBefore;
  16730. D3D12_BARRIER_LAYOUT LayoutAfter;
  16731. _In_ ID3D12Resource *pResource;
  16732. D3D12_BARRIER_SUBRESOURCE_RANGE Subresources;
  16733. D3D12_TEXTURE_BARRIER_FLAGS Flags;
  16734. } D3D12_TEXTURE_BARRIER;
  16735. typedef struct D3D12_BUFFER_BARRIER
  16736. {
  16737. D3D12_BARRIER_SYNC SyncBefore;
  16738. D3D12_BARRIER_SYNC SyncAfter;
  16739. D3D12_BARRIER_ACCESS AccessBefore;
  16740. D3D12_BARRIER_ACCESS AccessAfter;
  16741. _In_ ID3D12Resource *pResource;
  16742. UINT64 Offset;
  16743. UINT64 Size;
  16744. } D3D12_BUFFER_BARRIER;
  16745. typedef struct D3D12_BARRIER_GROUP
  16746. {
  16747. D3D12_BARRIER_TYPE Type;
  16748. UINT32 NumBarriers;
  16749. union
  16750. {
  16751. _In_reads_(NumBarriers) const D3D12_GLOBAL_BARRIER *pGlobalBarriers;
  16752. _In_reads_(NumBarriers) const D3D12_TEXTURE_BARRIER *pTextureBarriers;
  16753. _In_reads_(NumBarriers) const D3D12_BUFFER_BARRIER *pBufferBarriers;
  16754. } ;
  16755. } D3D12_BARRIER_GROUP;
  16756. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0053_v0_0_c_ifspec;
  16757. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0053_v0_0_s_ifspec;
  16758. #ifndef __ID3D12ShaderCacheSession_INTERFACE_DEFINED__
  16759. #define __ID3D12ShaderCacheSession_INTERFACE_DEFINED__
  16760. /* interface ID3D12ShaderCacheSession */
  16761. /* [unique][local][object][uuid] */
  16762. EXTERN_C const IID IID_ID3D12ShaderCacheSession;
  16763. #if defined(__cplusplus) && !defined(CINTERFACE)
  16764. MIDL_INTERFACE("28e2495d-0f64-4ae4-a6ec-129255dc49a8")
  16765. ID3D12ShaderCacheSession : public ID3D12DeviceChild
  16766. {
  16767. public:
  16768. virtual HRESULT STDMETHODCALLTYPE FindValue(
  16769. /* [annotation][in] */
  16770. _In_reads_bytes_(KeySize) const void *pKey,
  16771. UINT KeySize,
  16772. /* [annotation][out] */
  16773. _Out_writes_bytes_(*pValueSize) void *pValue,
  16774. _Inout_ UINT *pValueSize) = 0;
  16775. virtual HRESULT STDMETHODCALLTYPE StoreValue(
  16776. /* [annotation][in] */
  16777. _In_reads_bytes_(KeySize) const void *pKey,
  16778. UINT KeySize,
  16779. /* [annotation][in] */
  16780. _In_reads_bytes_(ValueSize) const void *pValue,
  16781. UINT ValueSize) = 0;
  16782. virtual void STDMETHODCALLTYPE SetDeleteOnDestroy( void) = 0;
  16783. #if defined(_MSC_VER) || !defined(_WIN32)
  16784. virtual D3D12_SHADER_CACHE_SESSION_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  16785. #else
  16786. virtual D3D12_SHADER_CACHE_SESSION_DESC *STDMETHODCALLTYPE GetDesc(
  16787. D3D12_SHADER_CACHE_SESSION_DESC * RetVal) = 0;
  16788. #endif
  16789. };
  16790. #else /* C style interface */
  16791. typedef struct ID3D12ShaderCacheSessionVtbl
  16792. {
  16793. BEGIN_INTERFACE
  16794. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  16795. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16796. ID3D12ShaderCacheSession * This,
  16797. REFIID riid,
  16798. _COM_Outptr_ void **ppvObject);
  16799. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  16800. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16801. ID3D12ShaderCacheSession * This);
  16802. DECLSPEC_XFGVIRT(IUnknown, Release)
  16803. ULONG ( STDMETHODCALLTYPE *Release )(
  16804. ID3D12ShaderCacheSession * This);
  16805. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  16806. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  16807. ID3D12ShaderCacheSession * This,
  16808. _In_ REFGUID guid,
  16809. _Inout_ UINT *pDataSize,
  16810. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  16811. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  16812. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  16813. ID3D12ShaderCacheSession * This,
  16814. _In_ REFGUID guid,
  16815. _In_ UINT DataSize,
  16816. _In_reads_bytes_opt_( DataSize ) const void *pData);
  16817. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  16818. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  16819. ID3D12ShaderCacheSession * This,
  16820. _In_ REFGUID guid,
  16821. _In_opt_ const IUnknown *pData);
  16822. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  16823. HRESULT ( STDMETHODCALLTYPE *SetName )(
  16824. ID3D12ShaderCacheSession * This,
  16825. _In_z_ LPCWSTR Name);
  16826. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  16827. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  16828. ID3D12ShaderCacheSession * This,
  16829. REFIID riid,
  16830. _COM_Outptr_opt_ void **ppvDevice);
  16831. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, FindValue)
  16832. HRESULT ( STDMETHODCALLTYPE *FindValue )(
  16833. ID3D12ShaderCacheSession * This,
  16834. /* [annotation][in] */
  16835. _In_reads_bytes_(KeySize) const void *pKey,
  16836. UINT KeySize,
  16837. /* [annotation][out] */
  16838. _Out_writes_bytes_(*pValueSize) void *pValue,
  16839. _Inout_ UINT *pValueSize);
  16840. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, StoreValue)
  16841. HRESULT ( STDMETHODCALLTYPE *StoreValue )(
  16842. ID3D12ShaderCacheSession * This,
  16843. /* [annotation][in] */
  16844. _In_reads_bytes_(KeySize) const void *pKey,
  16845. UINT KeySize,
  16846. /* [annotation][in] */
  16847. _In_reads_bytes_(ValueSize) const void *pValue,
  16848. UINT ValueSize);
  16849. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, SetDeleteOnDestroy)
  16850. void ( STDMETHODCALLTYPE *SetDeleteOnDestroy )(
  16851. ID3D12ShaderCacheSession * This);
  16852. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, GetDesc)
  16853. #if !defined(_WIN32)
  16854. D3D12_SHADER_CACHE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  16855. ID3D12ShaderCacheSession * This);
  16856. #else
  16857. D3D12_SHADER_CACHE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  16858. ID3D12ShaderCacheSession * This,
  16859. D3D12_SHADER_CACHE_SESSION_DESC * RetVal);
  16860. #endif
  16861. END_INTERFACE
  16862. } ID3D12ShaderCacheSessionVtbl;
  16863. interface ID3D12ShaderCacheSession
  16864. {
  16865. CONST_VTBL struct ID3D12ShaderCacheSessionVtbl *lpVtbl;
  16866. };
  16867. #ifdef COBJMACROS
  16868. #define ID3D12ShaderCacheSession_QueryInterface(This,riid,ppvObject) \
  16869. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  16870. #define ID3D12ShaderCacheSession_AddRef(This) \
  16871. ( (This)->lpVtbl -> AddRef(This) )
  16872. #define ID3D12ShaderCacheSession_Release(This) \
  16873. ( (This)->lpVtbl -> Release(This) )
  16874. #define ID3D12ShaderCacheSession_GetPrivateData(This,guid,pDataSize,pData) \
  16875. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  16876. #define ID3D12ShaderCacheSession_SetPrivateData(This,guid,DataSize,pData) \
  16877. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  16878. #define ID3D12ShaderCacheSession_SetPrivateDataInterface(This,guid,pData) \
  16879. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  16880. #define ID3D12ShaderCacheSession_SetName(This,Name) \
  16881. ( (This)->lpVtbl -> SetName(This,Name) )
  16882. #define ID3D12ShaderCacheSession_GetDevice(This,riid,ppvDevice) \
  16883. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  16884. #define ID3D12ShaderCacheSession_FindValue(This,pKey,KeySize,pValue,pValueSize) \
  16885. ( (This)->lpVtbl -> FindValue(This,pKey,KeySize,pValue,pValueSize) )
  16886. #define ID3D12ShaderCacheSession_StoreValue(This,pKey,KeySize,pValue,ValueSize) \
  16887. ( (This)->lpVtbl -> StoreValue(This,pKey,KeySize,pValue,ValueSize) )
  16888. #define ID3D12ShaderCacheSession_SetDeleteOnDestroy(This) \
  16889. ( (This)->lpVtbl -> SetDeleteOnDestroy(This) )
  16890. #if !defined(_WIN32)
  16891. #define ID3D12ShaderCacheSession_GetDesc(This) \
  16892. ( (This)->lpVtbl -> GetDesc(This) )
  16893. #else
  16894. #define ID3D12ShaderCacheSession_GetDesc(This,RetVal) \
  16895. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  16896. #endif
  16897. #endif /* COBJMACROS */
  16898. #endif /* C style interface */
  16899. #endif /* __ID3D12ShaderCacheSession_INTERFACE_DEFINED__ */
  16900. /* interface __MIDL_itf_d3d12_0000_0054 */
  16901. /* [local] */
  16902. typedef
  16903. enum D3D12_SHADER_CACHE_KIND_FLAGS
  16904. {
  16905. D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CACHE_FOR_DRIVER = 0x1,
  16906. D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CONVERSIONS = 0x2,
  16907. D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_DRIVER_MANAGED = 0x4,
  16908. D3D12_SHADER_CACHE_KIND_FLAG_APPLICATION_MANAGED = 0x8
  16909. } D3D12_SHADER_CACHE_KIND_FLAGS;
  16910. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_KIND_FLAGS )
  16911. typedef
  16912. enum D3D12_SHADER_CACHE_CONTROL_FLAGS
  16913. {
  16914. D3D12_SHADER_CACHE_CONTROL_FLAG_DISABLE = 0x1,
  16915. D3D12_SHADER_CACHE_CONTROL_FLAG_ENABLE = 0x2,
  16916. D3D12_SHADER_CACHE_CONTROL_FLAG_CLEAR = 0x4
  16917. } D3D12_SHADER_CACHE_CONTROL_FLAGS;
  16918. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_CONTROL_FLAGS )
  16919. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0054_v0_0_c_ifspec;
  16920. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0054_v0_0_s_ifspec;
  16921. #ifndef __ID3D12Device9_INTERFACE_DEFINED__
  16922. #define __ID3D12Device9_INTERFACE_DEFINED__
  16923. /* interface ID3D12Device9 */
  16924. /* [unique][local][object][uuid] */
  16925. EXTERN_C const IID IID_ID3D12Device9;
  16926. #if defined(__cplusplus) && !defined(CINTERFACE)
  16927. MIDL_INTERFACE("4c80e962-f032-4f60-bc9e-ebc2cfa1d83c")
  16928. ID3D12Device9 : public ID3D12Device8
  16929. {
  16930. public:
  16931. virtual HRESULT STDMETHODCALLTYPE CreateShaderCacheSession(
  16932. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  16933. REFIID riid,
  16934. _COM_Outptr_opt_ void **ppvSession) = 0;
  16935. virtual HRESULT STDMETHODCALLTYPE ShaderCacheControl(
  16936. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  16937. D3D12_SHADER_CACHE_CONTROL_FLAGS Control) = 0;
  16938. virtual HRESULT STDMETHODCALLTYPE CreateCommandQueue1(
  16939. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  16940. REFIID CreatorID,
  16941. REFIID riid,
  16942. _COM_Outptr_ void **ppCommandQueue) = 0;
  16943. };
  16944. #else /* C style interface */
  16945. typedef struct ID3D12Device9Vtbl
  16946. {
  16947. BEGIN_INTERFACE
  16948. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  16949. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16950. ID3D12Device9 * This,
  16951. REFIID riid,
  16952. _COM_Outptr_ void **ppvObject);
  16953. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  16954. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16955. ID3D12Device9 * This);
  16956. DECLSPEC_XFGVIRT(IUnknown, Release)
  16957. ULONG ( STDMETHODCALLTYPE *Release )(
  16958. ID3D12Device9 * This);
  16959. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  16960. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  16961. ID3D12Device9 * This,
  16962. _In_ REFGUID guid,
  16963. _Inout_ UINT *pDataSize,
  16964. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  16965. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  16966. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  16967. ID3D12Device9 * This,
  16968. _In_ REFGUID guid,
  16969. _In_ UINT DataSize,
  16970. _In_reads_bytes_opt_( DataSize ) const void *pData);
  16971. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  16972. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  16973. ID3D12Device9 * This,
  16974. _In_ REFGUID guid,
  16975. _In_opt_ const IUnknown *pData);
  16976. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  16977. HRESULT ( STDMETHODCALLTYPE *SetName )(
  16978. ID3D12Device9 * This,
  16979. _In_z_ LPCWSTR Name);
  16980. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  16981. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  16982. ID3D12Device9 * This);
  16983. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  16984. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  16985. ID3D12Device9 * This,
  16986. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  16987. REFIID riid,
  16988. _COM_Outptr_ void **ppCommandQueue);
  16989. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  16990. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  16991. ID3D12Device9 * This,
  16992. _In_ D3D12_COMMAND_LIST_TYPE type,
  16993. REFIID riid,
  16994. _COM_Outptr_ void **ppCommandAllocator);
  16995. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  16996. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  16997. ID3D12Device9 * This,
  16998. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  16999. REFIID riid,
  17000. _COM_Outptr_ void **ppPipelineState);
  17001. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  17002. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  17003. ID3D12Device9 * This,
  17004. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  17005. REFIID riid,
  17006. _COM_Outptr_ void **ppPipelineState);
  17007. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  17008. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  17009. ID3D12Device9 * This,
  17010. _In_ UINT nodeMask,
  17011. _In_ D3D12_COMMAND_LIST_TYPE type,
  17012. _In_ ID3D12CommandAllocator *pCommandAllocator,
  17013. _In_opt_ ID3D12PipelineState *pInitialState,
  17014. REFIID riid,
  17015. _COM_Outptr_ void **ppCommandList);
  17016. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  17017. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  17018. ID3D12Device9 * This,
  17019. D3D12_FEATURE Feature,
  17020. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  17021. UINT FeatureSupportDataSize);
  17022. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  17023. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  17024. ID3D12Device9 * This,
  17025. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  17026. REFIID riid,
  17027. _COM_Outptr_ void **ppvHeap);
  17028. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  17029. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  17030. ID3D12Device9 * This,
  17031. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  17032. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  17033. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  17034. ID3D12Device9 * This,
  17035. _In_ UINT nodeMask,
  17036. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  17037. _In_ SIZE_T blobLengthInBytes,
  17038. REFIID riid,
  17039. _COM_Outptr_ void **ppvRootSignature);
  17040. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  17041. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  17042. ID3D12Device9 * This,
  17043. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  17044. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17045. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  17046. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  17047. ID3D12Device9 * This,
  17048. _In_opt_ ID3D12Resource *pResource,
  17049. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  17050. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17051. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  17052. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  17053. ID3D12Device9 * This,
  17054. _In_opt_ ID3D12Resource *pResource,
  17055. _In_opt_ ID3D12Resource *pCounterResource,
  17056. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  17057. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17058. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  17059. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  17060. ID3D12Device9 * This,
  17061. _In_opt_ ID3D12Resource *pResource,
  17062. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  17063. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17064. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  17065. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  17066. ID3D12Device9 * This,
  17067. _In_opt_ ID3D12Resource *pResource,
  17068. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  17069. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17070. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  17071. void ( STDMETHODCALLTYPE *CreateSampler )(
  17072. ID3D12Device9 * This,
  17073. _In_ const D3D12_SAMPLER_DESC *pDesc,
  17074. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17075. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  17076. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  17077. ID3D12Device9 * This,
  17078. _In_ UINT NumDestDescriptorRanges,
  17079. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  17080. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  17081. _In_ UINT NumSrcDescriptorRanges,
  17082. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  17083. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  17084. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  17085. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  17086. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  17087. ID3D12Device9 * This,
  17088. _In_ UINT NumDescriptors,
  17089. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  17090. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  17091. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  17092. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  17093. #if !defined(_WIN32)
  17094. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  17095. ID3D12Device9 * This,
  17096. _In_ UINT visibleMask,
  17097. _In_ UINT numResourceDescs,
  17098. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  17099. #else
  17100. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  17101. ID3D12Device9 * This,
  17102. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  17103. _In_ UINT visibleMask,
  17104. _In_ UINT numResourceDescs,
  17105. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  17106. #endif
  17107. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  17108. #if !defined(_WIN32)
  17109. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  17110. ID3D12Device9 * This,
  17111. _In_ UINT nodeMask,
  17112. D3D12_HEAP_TYPE heapType);
  17113. #else
  17114. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  17115. ID3D12Device9 * This,
  17116. D3D12_HEAP_PROPERTIES * RetVal,
  17117. _In_ UINT nodeMask,
  17118. D3D12_HEAP_TYPE heapType);
  17119. #endif
  17120. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  17121. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  17122. ID3D12Device9 * This,
  17123. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17124. D3D12_HEAP_FLAGS HeapFlags,
  17125. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17126. D3D12_RESOURCE_STATES InitialResourceState,
  17127. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17128. REFIID riidResource,
  17129. _COM_Outptr_opt_ void **ppvResource);
  17130. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  17131. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  17132. ID3D12Device9 * This,
  17133. _In_ const D3D12_HEAP_DESC *pDesc,
  17134. REFIID riid,
  17135. _COM_Outptr_opt_ void **ppvHeap);
  17136. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  17137. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  17138. ID3D12Device9 * This,
  17139. _In_ ID3D12Heap *pHeap,
  17140. UINT64 HeapOffset,
  17141. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17142. D3D12_RESOURCE_STATES InitialState,
  17143. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17144. REFIID riid,
  17145. _COM_Outptr_opt_ void **ppvResource);
  17146. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  17147. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  17148. ID3D12Device9 * This,
  17149. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17150. D3D12_RESOURCE_STATES InitialState,
  17151. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17152. REFIID riid,
  17153. _COM_Outptr_opt_ void **ppvResource);
  17154. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  17155. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  17156. ID3D12Device9 * This,
  17157. _In_ ID3D12DeviceChild *pObject,
  17158. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  17159. DWORD Access,
  17160. _In_opt_ LPCWSTR Name,
  17161. _Out_ HANDLE *pHandle);
  17162. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  17163. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  17164. ID3D12Device9 * This,
  17165. _In_ HANDLE NTHandle,
  17166. REFIID riid,
  17167. _COM_Outptr_opt_ void **ppvObj);
  17168. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  17169. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  17170. ID3D12Device9 * This,
  17171. _In_ LPCWSTR Name,
  17172. DWORD Access,
  17173. /* [annotation][out] */
  17174. _Out_ HANDLE *pNTHandle);
  17175. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  17176. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  17177. ID3D12Device9 * This,
  17178. UINT NumObjects,
  17179. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  17180. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  17181. HRESULT ( STDMETHODCALLTYPE *Evict )(
  17182. ID3D12Device9 * This,
  17183. UINT NumObjects,
  17184. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  17185. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  17186. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  17187. ID3D12Device9 * This,
  17188. UINT64 InitialValue,
  17189. D3D12_FENCE_FLAGS Flags,
  17190. REFIID riid,
  17191. _COM_Outptr_ void **ppFence);
  17192. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  17193. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  17194. ID3D12Device9 * This);
  17195. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  17196. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  17197. ID3D12Device9 * This,
  17198. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  17199. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  17200. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  17201. UINT64 BaseOffset,
  17202. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  17203. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  17204. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  17205. _Out_opt_ UINT64 *pTotalBytes);
  17206. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  17207. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  17208. ID3D12Device9 * This,
  17209. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  17210. REFIID riid,
  17211. _COM_Outptr_opt_ void **ppvHeap);
  17212. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  17213. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  17214. ID3D12Device9 * This,
  17215. BOOL Enable);
  17216. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  17217. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  17218. ID3D12Device9 * This,
  17219. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  17220. _In_opt_ ID3D12RootSignature *pRootSignature,
  17221. REFIID riid,
  17222. _COM_Outptr_opt_ void **ppvCommandSignature);
  17223. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  17224. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  17225. ID3D12Device9 * This,
  17226. _In_ ID3D12Resource *pTiledResource,
  17227. _Out_opt_ UINT *pNumTilesForEntireResource,
  17228. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  17229. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  17230. _Inout_opt_ UINT *pNumSubresourceTilings,
  17231. _In_ UINT FirstSubresourceTilingToGet,
  17232. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  17233. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  17234. #if !defined(_WIN32)
  17235. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  17236. ID3D12Device9 * This);
  17237. #else
  17238. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  17239. ID3D12Device9 * This,
  17240. LUID * RetVal);
  17241. #endif
  17242. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  17243. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  17244. ID3D12Device9 * This,
  17245. _In_reads_(BlobLength) const void *pLibraryBlob,
  17246. SIZE_T BlobLength,
  17247. REFIID riid,
  17248. _COM_Outptr_ void **ppPipelineLibrary);
  17249. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  17250. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  17251. ID3D12Device9 * This,
  17252. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  17253. _In_reads_(NumFences) const UINT64 *pFenceValues,
  17254. UINT NumFences,
  17255. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  17256. HANDLE hEvent);
  17257. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  17258. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  17259. ID3D12Device9 * This,
  17260. UINT NumObjects,
  17261. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  17262. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  17263. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  17264. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  17265. ID3D12Device9 * This,
  17266. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  17267. REFIID riid,
  17268. _COM_Outptr_ void **ppPipelineState);
  17269. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  17270. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  17271. ID3D12Device9 * This,
  17272. _In_ const void *pAddress,
  17273. REFIID riid,
  17274. _COM_Outptr_ void **ppvHeap);
  17275. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  17276. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  17277. ID3D12Device9 * This,
  17278. _In_ HANDLE hFileMapping,
  17279. REFIID riid,
  17280. _COM_Outptr_ void **ppvHeap);
  17281. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  17282. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  17283. ID3D12Device9 * This,
  17284. D3D12_RESIDENCY_FLAGS Flags,
  17285. UINT NumObjects,
  17286. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  17287. _In_ ID3D12Fence *pFenceToSignal,
  17288. UINT64 FenceValueToSignal);
  17289. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  17290. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  17291. ID3D12Device9 * This,
  17292. _In_ UINT nodeMask,
  17293. _In_ D3D12_COMMAND_LIST_TYPE type,
  17294. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  17295. REFIID riid,
  17296. _COM_Outptr_ void **ppCommandList);
  17297. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  17298. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  17299. ID3D12Device9 * This,
  17300. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  17301. _In_ REFIID riid,
  17302. _COM_Outptr_ void **ppSession);
  17303. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  17304. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  17305. ID3D12Device9 * This,
  17306. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17307. D3D12_HEAP_FLAGS HeapFlags,
  17308. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17309. D3D12_RESOURCE_STATES InitialResourceState,
  17310. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17311. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17312. REFIID riidResource,
  17313. _COM_Outptr_opt_ void **ppvResource);
  17314. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  17315. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  17316. ID3D12Device9 * This,
  17317. _In_ const D3D12_HEAP_DESC *pDesc,
  17318. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17319. REFIID riid,
  17320. _COM_Outptr_opt_ void **ppvHeap);
  17321. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  17322. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  17323. ID3D12Device9 * This,
  17324. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17325. D3D12_RESOURCE_STATES InitialState,
  17326. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17327. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17328. REFIID riid,
  17329. _COM_Outptr_opt_ void **ppvResource);
  17330. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  17331. #if !defined(_WIN32)
  17332. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  17333. ID3D12Device9 * This,
  17334. UINT visibleMask,
  17335. UINT numResourceDescs,
  17336. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  17337. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17338. #else
  17339. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  17340. ID3D12Device9 * This,
  17341. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  17342. UINT visibleMask,
  17343. UINT numResourceDescs,
  17344. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  17345. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17346. #endif
  17347. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  17348. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  17349. ID3D12Device9 * This,
  17350. _In_ ID3D12LifetimeOwner *pOwner,
  17351. REFIID riid,
  17352. _COM_Outptr_ void **ppvTracker);
  17353. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  17354. void ( STDMETHODCALLTYPE *RemoveDevice )(
  17355. ID3D12Device9 * This);
  17356. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  17357. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  17358. ID3D12Device9 * This,
  17359. _Inout_ UINT *pNumMetaCommands,
  17360. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  17361. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  17362. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  17363. ID3D12Device9 * This,
  17364. _In_ REFGUID CommandId,
  17365. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  17366. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  17367. _Inout_ UINT *pParameterCount,
  17368. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  17369. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  17370. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  17371. ID3D12Device9 * This,
  17372. _In_ REFGUID CommandId,
  17373. _In_ UINT NodeMask,
  17374. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  17375. _In_ SIZE_T CreationParametersDataSizeInBytes,
  17376. REFIID riid,
  17377. _COM_Outptr_ void **ppMetaCommand);
  17378. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  17379. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  17380. ID3D12Device9 * This,
  17381. const D3D12_STATE_OBJECT_DESC *pDesc,
  17382. REFIID riid,
  17383. _COM_Outptr_ void **ppStateObject);
  17384. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  17385. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  17386. ID3D12Device9 * This,
  17387. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  17388. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  17389. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  17390. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  17391. ID3D12Device9 * This,
  17392. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  17393. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  17394. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  17395. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  17396. ID3D12Device9 * This,
  17397. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  17398. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  17399. _In_opt_ HANDLE hEventToSignalUponCompletion,
  17400. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  17401. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  17402. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  17403. ID3D12Device9 * This,
  17404. const D3D12_STATE_OBJECT_DESC *pAddition,
  17405. ID3D12StateObject *pStateObjectToGrowFrom,
  17406. REFIID riid,
  17407. _COM_Outptr_ void **ppNewStateObject);
  17408. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  17409. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  17410. ID3D12Device9 * This,
  17411. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  17412. _In_ REFIID riid,
  17413. _COM_Outptr_ void **ppSession);
  17414. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  17415. #if !defined(_WIN32)
  17416. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  17417. ID3D12Device9 * This,
  17418. UINT visibleMask,
  17419. UINT numResourceDescs,
  17420. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  17421. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17422. #else
  17423. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  17424. ID3D12Device9 * This,
  17425. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  17426. UINT visibleMask,
  17427. UINT numResourceDescs,
  17428. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  17429. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17430. #endif
  17431. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  17432. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  17433. ID3D12Device9 * This,
  17434. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17435. D3D12_HEAP_FLAGS HeapFlags,
  17436. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17437. D3D12_RESOURCE_STATES InitialResourceState,
  17438. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17439. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17440. REFIID riidResource,
  17441. _COM_Outptr_opt_ void **ppvResource);
  17442. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  17443. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  17444. ID3D12Device9 * This,
  17445. _In_ ID3D12Heap *pHeap,
  17446. UINT64 HeapOffset,
  17447. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17448. D3D12_RESOURCE_STATES InitialState,
  17449. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17450. REFIID riid,
  17451. _COM_Outptr_opt_ void **ppvResource);
  17452. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  17453. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  17454. ID3D12Device9 * This,
  17455. _In_opt_ ID3D12Resource *pTargetedResource,
  17456. _In_opt_ ID3D12Resource *pFeedbackResource,
  17457. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17458. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  17459. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  17460. ID3D12Device9 * This,
  17461. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  17462. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  17463. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  17464. UINT64 BaseOffset,
  17465. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  17466. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  17467. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  17468. _Out_opt_ UINT64 *pTotalBytes);
  17469. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  17470. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  17471. ID3D12Device9 * This,
  17472. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  17473. REFIID riid,
  17474. _COM_Outptr_opt_ void **ppvSession);
  17475. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  17476. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  17477. ID3D12Device9 * This,
  17478. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  17479. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  17480. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  17481. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  17482. ID3D12Device9 * This,
  17483. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  17484. REFIID CreatorID,
  17485. REFIID riid,
  17486. _COM_Outptr_ void **ppCommandQueue);
  17487. END_INTERFACE
  17488. } ID3D12Device9Vtbl;
  17489. interface ID3D12Device9
  17490. {
  17491. CONST_VTBL struct ID3D12Device9Vtbl *lpVtbl;
  17492. };
  17493. #ifdef COBJMACROS
  17494. #define ID3D12Device9_QueryInterface(This,riid,ppvObject) \
  17495. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  17496. #define ID3D12Device9_AddRef(This) \
  17497. ( (This)->lpVtbl -> AddRef(This) )
  17498. #define ID3D12Device9_Release(This) \
  17499. ( (This)->lpVtbl -> Release(This) )
  17500. #define ID3D12Device9_GetPrivateData(This,guid,pDataSize,pData) \
  17501. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  17502. #define ID3D12Device9_SetPrivateData(This,guid,DataSize,pData) \
  17503. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  17504. #define ID3D12Device9_SetPrivateDataInterface(This,guid,pData) \
  17505. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  17506. #define ID3D12Device9_SetName(This,Name) \
  17507. ( (This)->lpVtbl -> SetName(This,Name) )
  17508. #define ID3D12Device9_GetNodeCount(This) \
  17509. ( (This)->lpVtbl -> GetNodeCount(This) )
  17510. #define ID3D12Device9_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  17511. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  17512. #define ID3D12Device9_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  17513. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  17514. #define ID3D12Device9_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  17515. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  17516. #define ID3D12Device9_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  17517. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  17518. #define ID3D12Device9_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  17519. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  17520. #define ID3D12Device9_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  17521. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  17522. #define ID3D12Device9_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  17523. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  17524. #define ID3D12Device9_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  17525. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  17526. #define ID3D12Device9_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  17527. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  17528. #define ID3D12Device9_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  17529. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  17530. #define ID3D12Device9_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  17531. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  17532. #define ID3D12Device9_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  17533. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  17534. #define ID3D12Device9_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  17535. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  17536. #define ID3D12Device9_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  17537. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  17538. #define ID3D12Device9_CreateSampler(This,pDesc,DestDescriptor) \
  17539. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  17540. #define ID3D12Device9_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  17541. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  17542. #define ID3D12Device9_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  17543. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  17544. #if !defined(_WIN32)
  17545. #define ID3D12Device9_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  17546. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  17547. #else
  17548. #define ID3D12Device9_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  17549. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  17550. #endif
  17551. #if !defined(_WIN32)
  17552. #define ID3D12Device9_GetCustomHeapProperties(This,nodeMask,heapType) \
  17553. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  17554. #else
  17555. #define ID3D12Device9_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  17556. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  17557. #endif
  17558. #define ID3D12Device9_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  17559. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  17560. #define ID3D12Device9_CreateHeap(This,pDesc,riid,ppvHeap) \
  17561. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  17562. #define ID3D12Device9_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  17563. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  17564. #define ID3D12Device9_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  17565. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  17566. #define ID3D12Device9_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  17567. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  17568. #define ID3D12Device9_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  17569. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  17570. #define ID3D12Device9_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  17571. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  17572. #define ID3D12Device9_MakeResident(This,NumObjects,ppObjects) \
  17573. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  17574. #define ID3D12Device9_Evict(This,NumObjects,ppObjects) \
  17575. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  17576. #define ID3D12Device9_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  17577. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  17578. #define ID3D12Device9_GetDeviceRemovedReason(This) \
  17579. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  17580. #define ID3D12Device9_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  17581. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  17582. #define ID3D12Device9_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  17583. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  17584. #define ID3D12Device9_SetStablePowerState(This,Enable) \
  17585. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  17586. #define ID3D12Device9_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  17587. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  17588. #define ID3D12Device9_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  17589. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  17590. #if !defined(_WIN32)
  17591. #define ID3D12Device9_GetAdapterLuid(This) \
  17592. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  17593. #else
  17594. #define ID3D12Device9_GetAdapterLuid(This,RetVal) \
  17595. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  17596. #endif
  17597. #define ID3D12Device9_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  17598. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  17599. #define ID3D12Device9_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  17600. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  17601. #define ID3D12Device9_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  17602. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  17603. #define ID3D12Device9_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  17604. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  17605. #define ID3D12Device9_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  17606. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  17607. #define ID3D12Device9_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  17608. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  17609. #define ID3D12Device9_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  17610. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  17611. #define ID3D12Device9_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  17612. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  17613. #define ID3D12Device9_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  17614. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  17615. #define ID3D12Device9_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  17616. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  17617. #define ID3D12Device9_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  17618. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  17619. #define ID3D12Device9_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  17620. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  17621. #if !defined(_WIN32)
  17622. #define ID3D12Device9_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17623. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17624. #else
  17625. #define ID3D12Device9_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17626. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17627. #endif
  17628. #define ID3D12Device9_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  17629. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  17630. #define ID3D12Device9_RemoveDevice(This) \
  17631. ( (This)->lpVtbl -> RemoveDevice(This) )
  17632. #define ID3D12Device9_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  17633. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  17634. #define ID3D12Device9_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  17635. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  17636. #define ID3D12Device9_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  17637. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  17638. #define ID3D12Device9_CreateStateObject(This,pDesc,riid,ppStateObject) \
  17639. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  17640. #define ID3D12Device9_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  17641. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  17642. #define ID3D12Device9_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  17643. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  17644. #define ID3D12Device9_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  17645. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  17646. #define ID3D12Device9_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  17647. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  17648. #define ID3D12Device9_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  17649. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  17650. #if !defined(_WIN32)
  17651. #define ID3D12Device9_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17652. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17653. #else
  17654. #define ID3D12Device9_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17655. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17656. #endif
  17657. #define ID3D12Device9_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  17658. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  17659. #define ID3D12Device9_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  17660. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  17661. #define ID3D12Device9_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  17662. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  17663. #define ID3D12Device9_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  17664. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  17665. #define ID3D12Device9_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  17666. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  17667. #define ID3D12Device9_ShaderCacheControl(This,Kinds,Control) \
  17668. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  17669. #define ID3D12Device9_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  17670. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  17671. #endif /* COBJMACROS */
  17672. #endif /* C style interface */
  17673. #endif /* __ID3D12Device9_INTERFACE_DEFINED__ */
  17674. #ifndef __ID3D12Device10_INTERFACE_DEFINED__
  17675. #define __ID3D12Device10_INTERFACE_DEFINED__
  17676. /* interface ID3D12Device10 */
  17677. /* [unique][local][object][uuid] */
  17678. EXTERN_C const IID IID_ID3D12Device10;
  17679. #if defined(__cplusplus) && !defined(CINTERFACE)
  17680. MIDL_INTERFACE("517f8718-aa66-49f9-b02b-a7ab89c06031")
  17681. ID3D12Device10 : public ID3D12Device9
  17682. {
  17683. public:
  17684. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource3(
  17685. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17686. D3D12_HEAP_FLAGS HeapFlags,
  17687. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17688. D3D12_BARRIER_LAYOUT InitialLayout,
  17689. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17690. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17691. UINT32 NumCastableFormats,
  17692. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17693. REFIID riidResource,
  17694. _COM_Outptr_opt_ void **ppvResource) = 0;
  17695. virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource2(
  17696. _In_ ID3D12Heap *pHeap,
  17697. UINT64 HeapOffset,
  17698. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17699. D3D12_BARRIER_LAYOUT InitialLayout,
  17700. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17701. UINT32 NumCastableFormats,
  17702. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17703. REFIID riid,
  17704. _COM_Outptr_opt_ void **ppvResource) = 0;
  17705. virtual HRESULT STDMETHODCALLTYPE CreateReservedResource2(
  17706. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17707. D3D12_BARRIER_LAYOUT InitialLayout,
  17708. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17709. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17710. UINT32 NumCastableFormats,
  17711. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17712. REFIID riid,
  17713. _COM_Outptr_opt_ void **ppvResource) = 0;
  17714. };
  17715. #else /* C style interface */
  17716. typedef struct ID3D12Device10Vtbl
  17717. {
  17718. BEGIN_INTERFACE
  17719. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  17720. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17721. ID3D12Device10 * This,
  17722. REFIID riid,
  17723. _COM_Outptr_ void **ppvObject);
  17724. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  17725. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17726. ID3D12Device10 * This);
  17727. DECLSPEC_XFGVIRT(IUnknown, Release)
  17728. ULONG ( STDMETHODCALLTYPE *Release )(
  17729. ID3D12Device10 * This);
  17730. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  17731. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  17732. ID3D12Device10 * This,
  17733. _In_ REFGUID guid,
  17734. _Inout_ UINT *pDataSize,
  17735. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  17736. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  17737. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  17738. ID3D12Device10 * This,
  17739. _In_ REFGUID guid,
  17740. _In_ UINT DataSize,
  17741. _In_reads_bytes_opt_( DataSize ) const void *pData);
  17742. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  17743. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  17744. ID3D12Device10 * This,
  17745. _In_ REFGUID guid,
  17746. _In_opt_ const IUnknown *pData);
  17747. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  17748. HRESULT ( STDMETHODCALLTYPE *SetName )(
  17749. ID3D12Device10 * This,
  17750. _In_z_ LPCWSTR Name);
  17751. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  17752. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  17753. ID3D12Device10 * This);
  17754. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  17755. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  17756. ID3D12Device10 * This,
  17757. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  17758. REFIID riid,
  17759. _COM_Outptr_ void **ppCommandQueue);
  17760. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  17761. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  17762. ID3D12Device10 * This,
  17763. _In_ D3D12_COMMAND_LIST_TYPE type,
  17764. REFIID riid,
  17765. _COM_Outptr_ void **ppCommandAllocator);
  17766. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  17767. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  17768. ID3D12Device10 * This,
  17769. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  17770. REFIID riid,
  17771. _COM_Outptr_ void **ppPipelineState);
  17772. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  17773. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  17774. ID3D12Device10 * This,
  17775. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  17776. REFIID riid,
  17777. _COM_Outptr_ void **ppPipelineState);
  17778. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  17779. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  17780. ID3D12Device10 * This,
  17781. _In_ UINT nodeMask,
  17782. _In_ D3D12_COMMAND_LIST_TYPE type,
  17783. _In_ ID3D12CommandAllocator *pCommandAllocator,
  17784. _In_opt_ ID3D12PipelineState *pInitialState,
  17785. REFIID riid,
  17786. _COM_Outptr_ void **ppCommandList);
  17787. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  17788. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  17789. ID3D12Device10 * This,
  17790. D3D12_FEATURE Feature,
  17791. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  17792. UINT FeatureSupportDataSize);
  17793. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  17794. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  17795. ID3D12Device10 * This,
  17796. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  17797. REFIID riid,
  17798. _COM_Outptr_ void **ppvHeap);
  17799. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  17800. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  17801. ID3D12Device10 * This,
  17802. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  17803. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  17804. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  17805. ID3D12Device10 * This,
  17806. _In_ UINT nodeMask,
  17807. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  17808. _In_ SIZE_T blobLengthInBytes,
  17809. REFIID riid,
  17810. _COM_Outptr_ void **ppvRootSignature);
  17811. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  17812. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  17813. ID3D12Device10 * This,
  17814. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  17815. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17816. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  17817. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  17818. ID3D12Device10 * This,
  17819. _In_opt_ ID3D12Resource *pResource,
  17820. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  17821. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17822. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  17823. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  17824. ID3D12Device10 * This,
  17825. _In_opt_ ID3D12Resource *pResource,
  17826. _In_opt_ ID3D12Resource *pCounterResource,
  17827. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  17828. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17829. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  17830. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  17831. ID3D12Device10 * This,
  17832. _In_opt_ ID3D12Resource *pResource,
  17833. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  17834. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17835. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  17836. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  17837. ID3D12Device10 * This,
  17838. _In_opt_ ID3D12Resource *pResource,
  17839. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  17840. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17841. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  17842. void ( STDMETHODCALLTYPE *CreateSampler )(
  17843. ID3D12Device10 * This,
  17844. _In_ const D3D12_SAMPLER_DESC *pDesc,
  17845. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17846. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  17847. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  17848. ID3D12Device10 * This,
  17849. _In_ UINT NumDestDescriptorRanges,
  17850. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  17851. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  17852. _In_ UINT NumSrcDescriptorRanges,
  17853. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  17854. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  17855. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  17856. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  17857. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  17858. ID3D12Device10 * This,
  17859. _In_ UINT NumDescriptors,
  17860. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  17861. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  17862. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  17863. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  17864. #if !defined(_WIN32)
  17865. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  17866. ID3D12Device10 * This,
  17867. _In_ UINT visibleMask,
  17868. _In_ UINT numResourceDescs,
  17869. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  17870. #else
  17871. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  17872. ID3D12Device10 * This,
  17873. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  17874. _In_ UINT visibleMask,
  17875. _In_ UINT numResourceDescs,
  17876. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  17877. #endif
  17878. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  17879. #if !defined(_WIN32)
  17880. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  17881. ID3D12Device10 * This,
  17882. _In_ UINT nodeMask,
  17883. D3D12_HEAP_TYPE heapType);
  17884. #else
  17885. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  17886. ID3D12Device10 * This,
  17887. D3D12_HEAP_PROPERTIES * RetVal,
  17888. _In_ UINT nodeMask,
  17889. D3D12_HEAP_TYPE heapType);
  17890. #endif
  17891. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  17892. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  17893. ID3D12Device10 * This,
  17894. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17895. D3D12_HEAP_FLAGS HeapFlags,
  17896. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17897. D3D12_RESOURCE_STATES InitialResourceState,
  17898. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17899. REFIID riidResource,
  17900. _COM_Outptr_opt_ void **ppvResource);
  17901. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  17902. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  17903. ID3D12Device10 * This,
  17904. _In_ const D3D12_HEAP_DESC *pDesc,
  17905. REFIID riid,
  17906. _COM_Outptr_opt_ void **ppvHeap);
  17907. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  17908. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  17909. ID3D12Device10 * This,
  17910. _In_ ID3D12Heap *pHeap,
  17911. UINT64 HeapOffset,
  17912. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17913. D3D12_RESOURCE_STATES InitialState,
  17914. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17915. REFIID riid,
  17916. _COM_Outptr_opt_ void **ppvResource);
  17917. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  17918. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  17919. ID3D12Device10 * This,
  17920. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17921. D3D12_RESOURCE_STATES InitialState,
  17922. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17923. REFIID riid,
  17924. _COM_Outptr_opt_ void **ppvResource);
  17925. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  17926. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  17927. ID3D12Device10 * This,
  17928. _In_ ID3D12DeviceChild *pObject,
  17929. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  17930. DWORD Access,
  17931. _In_opt_ LPCWSTR Name,
  17932. _Out_ HANDLE *pHandle);
  17933. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  17934. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  17935. ID3D12Device10 * This,
  17936. _In_ HANDLE NTHandle,
  17937. REFIID riid,
  17938. _COM_Outptr_opt_ void **ppvObj);
  17939. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  17940. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  17941. ID3D12Device10 * This,
  17942. _In_ LPCWSTR Name,
  17943. DWORD Access,
  17944. /* [annotation][out] */
  17945. _Out_ HANDLE *pNTHandle);
  17946. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  17947. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  17948. ID3D12Device10 * This,
  17949. UINT NumObjects,
  17950. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  17951. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  17952. HRESULT ( STDMETHODCALLTYPE *Evict )(
  17953. ID3D12Device10 * This,
  17954. UINT NumObjects,
  17955. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  17956. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  17957. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  17958. ID3D12Device10 * This,
  17959. UINT64 InitialValue,
  17960. D3D12_FENCE_FLAGS Flags,
  17961. REFIID riid,
  17962. _COM_Outptr_ void **ppFence);
  17963. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  17964. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  17965. ID3D12Device10 * This);
  17966. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  17967. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  17968. ID3D12Device10 * This,
  17969. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  17970. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  17971. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  17972. UINT64 BaseOffset,
  17973. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  17974. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  17975. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  17976. _Out_opt_ UINT64 *pTotalBytes);
  17977. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  17978. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  17979. ID3D12Device10 * This,
  17980. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  17981. REFIID riid,
  17982. _COM_Outptr_opt_ void **ppvHeap);
  17983. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  17984. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  17985. ID3D12Device10 * This,
  17986. BOOL Enable);
  17987. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  17988. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  17989. ID3D12Device10 * This,
  17990. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  17991. _In_opt_ ID3D12RootSignature *pRootSignature,
  17992. REFIID riid,
  17993. _COM_Outptr_opt_ void **ppvCommandSignature);
  17994. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  17995. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  17996. ID3D12Device10 * This,
  17997. _In_ ID3D12Resource *pTiledResource,
  17998. _Out_opt_ UINT *pNumTilesForEntireResource,
  17999. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  18000. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  18001. _Inout_opt_ UINT *pNumSubresourceTilings,
  18002. _In_ UINT FirstSubresourceTilingToGet,
  18003. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  18004. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  18005. #if !defined(_WIN32)
  18006. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  18007. ID3D12Device10 * This);
  18008. #else
  18009. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  18010. ID3D12Device10 * This,
  18011. LUID * RetVal);
  18012. #endif
  18013. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  18014. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  18015. ID3D12Device10 * This,
  18016. _In_reads_(BlobLength) const void *pLibraryBlob,
  18017. SIZE_T BlobLength,
  18018. REFIID riid,
  18019. _COM_Outptr_ void **ppPipelineLibrary);
  18020. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  18021. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  18022. ID3D12Device10 * This,
  18023. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  18024. _In_reads_(NumFences) const UINT64 *pFenceValues,
  18025. UINT NumFences,
  18026. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  18027. HANDLE hEvent);
  18028. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  18029. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  18030. ID3D12Device10 * This,
  18031. UINT NumObjects,
  18032. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  18033. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  18034. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  18035. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  18036. ID3D12Device10 * This,
  18037. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  18038. REFIID riid,
  18039. _COM_Outptr_ void **ppPipelineState);
  18040. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  18041. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  18042. ID3D12Device10 * This,
  18043. _In_ const void *pAddress,
  18044. REFIID riid,
  18045. _COM_Outptr_ void **ppvHeap);
  18046. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  18047. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  18048. ID3D12Device10 * This,
  18049. _In_ HANDLE hFileMapping,
  18050. REFIID riid,
  18051. _COM_Outptr_ void **ppvHeap);
  18052. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  18053. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  18054. ID3D12Device10 * This,
  18055. D3D12_RESIDENCY_FLAGS Flags,
  18056. UINT NumObjects,
  18057. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  18058. _In_ ID3D12Fence *pFenceToSignal,
  18059. UINT64 FenceValueToSignal);
  18060. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  18061. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  18062. ID3D12Device10 * This,
  18063. _In_ UINT nodeMask,
  18064. _In_ D3D12_COMMAND_LIST_TYPE type,
  18065. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  18066. REFIID riid,
  18067. _COM_Outptr_ void **ppCommandList);
  18068. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  18069. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  18070. ID3D12Device10 * This,
  18071. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  18072. _In_ REFIID riid,
  18073. _COM_Outptr_ void **ppSession);
  18074. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  18075. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  18076. ID3D12Device10 * This,
  18077. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18078. D3D12_HEAP_FLAGS HeapFlags,
  18079. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18080. D3D12_RESOURCE_STATES InitialResourceState,
  18081. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18082. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18083. REFIID riidResource,
  18084. _COM_Outptr_opt_ void **ppvResource);
  18085. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  18086. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  18087. ID3D12Device10 * This,
  18088. _In_ const D3D12_HEAP_DESC *pDesc,
  18089. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18090. REFIID riid,
  18091. _COM_Outptr_opt_ void **ppvHeap);
  18092. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  18093. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  18094. ID3D12Device10 * This,
  18095. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18096. D3D12_RESOURCE_STATES InitialState,
  18097. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18098. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18099. REFIID riid,
  18100. _COM_Outptr_opt_ void **ppvResource);
  18101. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  18102. #if !defined(_WIN32)
  18103. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  18104. ID3D12Device10 * This,
  18105. UINT visibleMask,
  18106. UINT numResourceDescs,
  18107. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  18108. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18109. #else
  18110. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  18111. ID3D12Device10 * This,
  18112. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18113. UINT visibleMask,
  18114. UINT numResourceDescs,
  18115. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  18116. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18117. #endif
  18118. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  18119. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  18120. ID3D12Device10 * This,
  18121. _In_ ID3D12LifetimeOwner *pOwner,
  18122. REFIID riid,
  18123. _COM_Outptr_ void **ppvTracker);
  18124. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  18125. void ( STDMETHODCALLTYPE *RemoveDevice )(
  18126. ID3D12Device10 * This);
  18127. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  18128. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  18129. ID3D12Device10 * This,
  18130. _Inout_ UINT *pNumMetaCommands,
  18131. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  18132. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  18133. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  18134. ID3D12Device10 * This,
  18135. _In_ REFGUID CommandId,
  18136. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  18137. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  18138. _Inout_ UINT *pParameterCount,
  18139. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  18140. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  18141. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  18142. ID3D12Device10 * This,
  18143. _In_ REFGUID CommandId,
  18144. _In_ UINT NodeMask,
  18145. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  18146. _In_ SIZE_T CreationParametersDataSizeInBytes,
  18147. REFIID riid,
  18148. _COM_Outptr_ void **ppMetaCommand);
  18149. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  18150. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  18151. ID3D12Device10 * This,
  18152. const D3D12_STATE_OBJECT_DESC *pDesc,
  18153. REFIID riid,
  18154. _COM_Outptr_ void **ppStateObject);
  18155. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  18156. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  18157. ID3D12Device10 * This,
  18158. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  18159. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  18160. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  18161. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  18162. ID3D12Device10 * This,
  18163. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  18164. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  18165. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  18166. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  18167. ID3D12Device10 * This,
  18168. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  18169. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  18170. _In_opt_ HANDLE hEventToSignalUponCompletion,
  18171. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  18172. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  18173. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  18174. ID3D12Device10 * This,
  18175. const D3D12_STATE_OBJECT_DESC *pAddition,
  18176. ID3D12StateObject *pStateObjectToGrowFrom,
  18177. REFIID riid,
  18178. _COM_Outptr_ void **ppNewStateObject);
  18179. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  18180. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  18181. ID3D12Device10 * This,
  18182. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  18183. _In_ REFIID riid,
  18184. _COM_Outptr_ void **ppSession);
  18185. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  18186. #if !defined(_WIN32)
  18187. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  18188. ID3D12Device10 * This,
  18189. UINT visibleMask,
  18190. UINT numResourceDescs,
  18191. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  18192. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18193. #else
  18194. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  18195. ID3D12Device10 * This,
  18196. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18197. UINT visibleMask,
  18198. UINT numResourceDescs,
  18199. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  18200. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18201. #endif
  18202. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  18203. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  18204. ID3D12Device10 * This,
  18205. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18206. D3D12_HEAP_FLAGS HeapFlags,
  18207. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18208. D3D12_RESOURCE_STATES InitialResourceState,
  18209. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18210. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18211. REFIID riidResource,
  18212. _COM_Outptr_opt_ void **ppvResource);
  18213. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  18214. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  18215. ID3D12Device10 * This,
  18216. _In_ ID3D12Heap *pHeap,
  18217. UINT64 HeapOffset,
  18218. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18219. D3D12_RESOURCE_STATES InitialState,
  18220. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18221. REFIID riid,
  18222. _COM_Outptr_opt_ void **ppvResource);
  18223. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  18224. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  18225. ID3D12Device10 * This,
  18226. _In_opt_ ID3D12Resource *pTargetedResource,
  18227. _In_opt_ ID3D12Resource *pFeedbackResource,
  18228. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18229. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  18230. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  18231. ID3D12Device10 * This,
  18232. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  18233. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  18234. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  18235. UINT64 BaseOffset,
  18236. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  18237. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  18238. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  18239. _Out_opt_ UINT64 *pTotalBytes);
  18240. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  18241. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  18242. ID3D12Device10 * This,
  18243. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  18244. REFIID riid,
  18245. _COM_Outptr_opt_ void **ppvSession);
  18246. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  18247. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  18248. ID3D12Device10 * This,
  18249. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  18250. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  18251. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  18252. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  18253. ID3D12Device10 * This,
  18254. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  18255. REFIID CreatorID,
  18256. REFIID riid,
  18257. _COM_Outptr_ void **ppCommandQueue);
  18258. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  18259. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  18260. ID3D12Device10 * This,
  18261. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18262. D3D12_HEAP_FLAGS HeapFlags,
  18263. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18264. D3D12_BARRIER_LAYOUT InitialLayout,
  18265. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18266. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18267. UINT32 NumCastableFormats,
  18268. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  18269. REFIID riidResource,
  18270. _COM_Outptr_opt_ void **ppvResource);
  18271. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  18272. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  18273. ID3D12Device10 * This,
  18274. _In_ ID3D12Heap *pHeap,
  18275. UINT64 HeapOffset,
  18276. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18277. D3D12_BARRIER_LAYOUT InitialLayout,
  18278. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18279. UINT32 NumCastableFormats,
  18280. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  18281. REFIID riid,
  18282. _COM_Outptr_opt_ void **ppvResource);
  18283. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  18284. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  18285. ID3D12Device10 * This,
  18286. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18287. D3D12_BARRIER_LAYOUT InitialLayout,
  18288. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18289. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18290. UINT32 NumCastableFormats,
  18291. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  18292. REFIID riid,
  18293. _COM_Outptr_opt_ void **ppvResource);
  18294. END_INTERFACE
  18295. } ID3D12Device10Vtbl;
  18296. interface ID3D12Device10
  18297. {
  18298. CONST_VTBL struct ID3D12Device10Vtbl *lpVtbl;
  18299. };
  18300. #ifdef COBJMACROS
  18301. #define ID3D12Device10_QueryInterface(This,riid,ppvObject) \
  18302. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  18303. #define ID3D12Device10_AddRef(This) \
  18304. ( (This)->lpVtbl -> AddRef(This) )
  18305. #define ID3D12Device10_Release(This) \
  18306. ( (This)->lpVtbl -> Release(This) )
  18307. #define ID3D12Device10_GetPrivateData(This,guid,pDataSize,pData) \
  18308. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  18309. #define ID3D12Device10_SetPrivateData(This,guid,DataSize,pData) \
  18310. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  18311. #define ID3D12Device10_SetPrivateDataInterface(This,guid,pData) \
  18312. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  18313. #define ID3D12Device10_SetName(This,Name) \
  18314. ( (This)->lpVtbl -> SetName(This,Name) )
  18315. #define ID3D12Device10_GetNodeCount(This) \
  18316. ( (This)->lpVtbl -> GetNodeCount(This) )
  18317. #define ID3D12Device10_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  18318. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  18319. #define ID3D12Device10_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  18320. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  18321. #define ID3D12Device10_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  18322. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  18323. #define ID3D12Device10_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  18324. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  18325. #define ID3D12Device10_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  18326. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  18327. #define ID3D12Device10_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  18328. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  18329. #define ID3D12Device10_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  18330. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  18331. #define ID3D12Device10_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  18332. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  18333. #define ID3D12Device10_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  18334. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  18335. #define ID3D12Device10_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  18336. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  18337. #define ID3D12Device10_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  18338. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  18339. #define ID3D12Device10_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  18340. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  18341. #define ID3D12Device10_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  18342. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  18343. #define ID3D12Device10_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  18344. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  18345. #define ID3D12Device10_CreateSampler(This,pDesc,DestDescriptor) \
  18346. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  18347. #define ID3D12Device10_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  18348. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  18349. #define ID3D12Device10_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  18350. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  18351. #if !defined(_WIN32)
  18352. #define ID3D12Device10_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  18353. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  18354. #else
  18355. #define ID3D12Device10_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  18356. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  18357. #endif
  18358. #if !defined(_WIN32)
  18359. #define ID3D12Device10_GetCustomHeapProperties(This,nodeMask,heapType) \
  18360. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  18361. #else
  18362. #define ID3D12Device10_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  18363. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  18364. #endif
  18365. #define ID3D12Device10_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  18366. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  18367. #define ID3D12Device10_CreateHeap(This,pDesc,riid,ppvHeap) \
  18368. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  18369. #define ID3D12Device10_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  18370. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  18371. #define ID3D12Device10_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  18372. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  18373. #define ID3D12Device10_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  18374. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  18375. #define ID3D12Device10_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  18376. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  18377. #define ID3D12Device10_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  18378. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  18379. #define ID3D12Device10_MakeResident(This,NumObjects,ppObjects) \
  18380. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  18381. #define ID3D12Device10_Evict(This,NumObjects,ppObjects) \
  18382. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  18383. #define ID3D12Device10_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  18384. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  18385. #define ID3D12Device10_GetDeviceRemovedReason(This) \
  18386. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  18387. #define ID3D12Device10_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  18388. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  18389. #define ID3D12Device10_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  18390. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  18391. #define ID3D12Device10_SetStablePowerState(This,Enable) \
  18392. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  18393. #define ID3D12Device10_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  18394. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  18395. #define ID3D12Device10_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  18396. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  18397. #if !defined(_WIN32)
  18398. #define ID3D12Device10_GetAdapterLuid(This) \
  18399. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  18400. #else
  18401. #define ID3D12Device10_GetAdapterLuid(This,RetVal) \
  18402. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  18403. #endif
  18404. #define ID3D12Device10_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  18405. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  18406. #define ID3D12Device10_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  18407. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  18408. #define ID3D12Device10_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  18409. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  18410. #define ID3D12Device10_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  18411. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  18412. #define ID3D12Device10_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  18413. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  18414. #define ID3D12Device10_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  18415. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  18416. #define ID3D12Device10_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  18417. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  18418. #define ID3D12Device10_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  18419. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  18420. #define ID3D12Device10_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  18421. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  18422. #define ID3D12Device10_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  18423. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  18424. #define ID3D12Device10_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  18425. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  18426. #define ID3D12Device10_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  18427. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  18428. #if !defined(_WIN32)
  18429. #define ID3D12Device10_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18430. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18431. #else
  18432. #define ID3D12Device10_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18433. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18434. #endif
  18435. #define ID3D12Device10_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  18436. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  18437. #define ID3D12Device10_RemoveDevice(This) \
  18438. ( (This)->lpVtbl -> RemoveDevice(This) )
  18439. #define ID3D12Device10_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  18440. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  18441. #define ID3D12Device10_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  18442. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  18443. #define ID3D12Device10_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  18444. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  18445. #define ID3D12Device10_CreateStateObject(This,pDesc,riid,ppStateObject) \
  18446. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  18447. #define ID3D12Device10_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  18448. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  18449. #define ID3D12Device10_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  18450. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  18451. #define ID3D12Device10_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  18452. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  18453. #define ID3D12Device10_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  18454. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  18455. #define ID3D12Device10_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  18456. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  18457. #if !defined(_WIN32)
  18458. #define ID3D12Device10_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18459. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18460. #else
  18461. #define ID3D12Device10_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18462. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18463. #endif
  18464. #define ID3D12Device10_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  18465. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  18466. #define ID3D12Device10_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  18467. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  18468. #define ID3D12Device10_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  18469. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  18470. #define ID3D12Device10_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  18471. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  18472. #define ID3D12Device10_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  18473. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  18474. #define ID3D12Device10_ShaderCacheControl(This,Kinds,Control) \
  18475. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  18476. #define ID3D12Device10_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  18477. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  18478. #define ID3D12Device10_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  18479. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  18480. #define ID3D12Device10_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  18481. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  18482. #define ID3D12Device10_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  18483. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  18484. #endif /* COBJMACROS */
  18485. #endif /* C style interface */
  18486. #endif /* __ID3D12Device10_INTERFACE_DEFINED__ */
  18487. #ifndef __ID3D12Device11_INTERFACE_DEFINED__
  18488. #define __ID3D12Device11_INTERFACE_DEFINED__
  18489. /* interface ID3D12Device11 */
  18490. /* [unique][local][object][uuid] */
  18491. EXTERN_C const IID IID_ID3D12Device11;
  18492. #if defined(__cplusplus) && !defined(CINTERFACE)
  18493. MIDL_INTERFACE("5405c344-d457-444e-b4dd-2366e45aee39")
  18494. ID3D12Device11 : public ID3D12Device10
  18495. {
  18496. public:
  18497. virtual void STDMETHODCALLTYPE CreateSampler2(
  18498. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  18499. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  18500. };
  18501. #else /* C style interface */
  18502. typedef struct ID3D12Device11Vtbl
  18503. {
  18504. BEGIN_INTERFACE
  18505. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  18506. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  18507. ID3D12Device11 * This,
  18508. REFIID riid,
  18509. _COM_Outptr_ void **ppvObject);
  18510. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  18511. ULONG ( STDMETHODCALLTYPE *AddRef )(
  18512. ID3D12Device11 * This);
  18513. DECLSPEC_XFGVIRT(IUnknown, Release)
  18514. ULONG ( STDMETHODCALLTYPE *Release )(
  18515. ID3D12Device11 * This);
  18516. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  18517. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  18518. ID3D12Device11 * This,
  18519. _In_ REFGUID guid,
  18520. _Inout_ UINT *pDataSize,
  18521. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  18522. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  18523. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  18524. ID3D12Device11 * This,
  18525. _In_ REFGUID guid,
  18526. _In_ UINT DataSize,
  18527. _In_reads_bytes_opt_( DataSize ) const void *pData);
  18528. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  18529. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  18530. ID3D12Device11 * This,
  18531. _In_ REFGUID guid,
  18532. _In_opt_ const IUnknown *pData);
  18533. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  18534. HRESULT ( STDMETHODCALLTYPE *SetName )(
  18535. ID3D12Device11 * This,
  18536. _In_z_ LPCWSTR Name);
  18537. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  18538. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  18539. ID3D12Device11 * This);
  18540. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  18541. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  18542. ID3D12Device11 * This,
  18543. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  18544. REFIID riid,
  18545. _COM_Outptr_ void **ppCommandQueue);
  18546. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  18547. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  18548. ID3D12Device11 * This,
  18549. _In_ D3D12_COMMAND_LIST_TYPE type,
  18550. REFIID riid,
  18551. _COM_Outptr_ void **ppCommandAllocator);
  18552. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  18553. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  18554. ID3D12Device11 * This,
  18555. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  18556. REFIID riid,
  18557. _COM_Outptr_ void **ppPipelineState);
  18558. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  18559. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  18560. ID3D12Device11 * This,
  18561. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  18562. REFIID riid,
  18563. _COM_Outptr_ void **ppPipelineState);
  18564. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  18565. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  18566. ID3D12Device11 * This,
  18567. _In_ UINT nodeMask,
  18568. _In_ D3D12_COMMAND_LIST_TYPE type,
  18569. _In_ ID3D12CommandAllocator *pCommandAllocator,
  18570. _In_opt_ ID3D12PipelineState *pInitialState,
  18571. REFIID riid,
  18572. _COM_Outptr_ void **ppCommandList);
  18573. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  18574. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  18575. ID3D12Device11 * This,
  18576. D3D12_FEATURE Feature,
  18577. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  18578. UINT FeatureSupportDataSize);
  18579. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  18580. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  18581. ID3D12Device11 * This,
  18582. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  18583. REFIID riid,
  18584. _COM_Outptr_ void **ppvHeap);
  18585. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  18586. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  18587. ID3D12Device11 * This,
  18588. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  18589. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  18590. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  18591. ID3D12Device11 * This,
  18592. _In_ UINT nodeMask,
  18593. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  18594. _In_ SIZE_T blobLengthInBytes,
  18595. REFIID riid,
  18596. _COM_Outptr_ void **ppvRootSignature);
  18597. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  18598. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  18599. ID3D12Device11 * This,
  18600. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  18601. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18602. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  18603. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  18604. ID3D12Device11 * This,
  18605. _In_opt_ ID3D12Resource *pResource,
  18606. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  18607. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18608. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  18609. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  18610. ID3D12Device11 * This,
  18611. _In_opt_ ID3D12Resource *pResource,
  18612. _In_opt_ ID3D12Resource *pCounterResource,
  18613. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  18614. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18615. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  18616. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  18617. ID3D12Device11 * This,
  18618. _In_opt_ ID3D12Resource *pResource,
  18619. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  18620. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18621. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  18622. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  18623. ID3D12Device11 * This,
  18624. _In_opt_ ID3D12Resource *pResource,
  18625. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  18626. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18627. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  18628. void ( STDMETHODCALLTYPE *CreateSampler )(
  18629. ID3D12Device11 * This,
  18630. _In_ const D3D12_SAMPLER_DESC *pDesc,
  18631. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18632. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  18633. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  18634. ID3D12Device11 * This,
  18635. _In_ UINT NumDestDescriptorRanges,
  18636. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  18637. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  18638. _In_ UINT NumSrcDescriptorRanges,
  18639. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  18640. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  18641. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  18642. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  18643. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  18644. ID3D12Device11 * This,
  18645. _In_ UINT NumDescriptors,
  18646. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  18647. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  18648. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  18649. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  18650. #if !defined(_WIN32)
  18651. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  18652. ID3D12Device11 * This,
  18653. _In_ UINT visibleMask,
  18654. _In_ UINT numResourceDescs,
  18655. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  18656. #else
  18657. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  18658. ID3D12Device11 * This,
  18659. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18660. _In_ UINT visibleMask,
  18661. _In_ UINT numResourceDescs,
  18662. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  18663. #endif
  18664. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  18665. #if !defined(_WIN32)
  18666. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  18667. ID3D12Device11 * This,
  18668. _In_ UINT nodeMask,
  18669. D3D12_HEAP_TYPE heapType);
  18670. #else
  18671. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  18672. ID3D12Device11 * This,
  18673. D3D12_HEAP_PROPERTIES * RetVal,
  18674. _In_ UINT nodeMask,
  18675. D3D12_HEAP_TYPE heapType);
  18676. #endif
  18677. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  18678. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  18679. ID3D12Device11 * This,
  18680. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18681. D3D12_HEAP_FLAGS HeapFlags,
  18682. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18683. D3D12_RESOURCE_STATES InitialResourceState,
  18684. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18685. REFIID riidResource,
  18686. _COM_Outptr_opt_ void **ppvResource);
  18687. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  18688. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  18689. ID3D12Device11 * This,
  18690. _In_ const D3D12_HEAP_DESC *pDesc,
  18691. REFIID riid,
  18692. _COM_Outptr_opt_ void **ppvHeap);
  18693. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  18694. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  18695. ID3D12Device11 * This,
  18696. _In_ ID3D12Heap *pHeap,
  18697. UINT64 HeapOffset,
  18698. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18699. D3D12_RESOURCE_STATES InitialState,
  18700. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18701. REFIID riid,
  18702. _COM_Outptr_opt_ void **ppvResource);
  18703. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  18704. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  18705. ID3D12Device11 * This,
  18706. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18707. D3D12_RESOURCE_STATES InitialState,
  18708. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18709. REFIID riid,
  18710. _COM_Outptr_opt_ void **ppvResource);
  18711. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  18712. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  18713. ID3D12Device11 * This,
  18714. _In_ ID3D12DeviceChild *pObject,
  18715. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  18716. DWORD Access,
  18717. _In_opt_ LPCWSTR Name,
  18718. _Out_ HANDLE *pHandle);
  18719. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  18720. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  18721. ID3D12Device11 * This,
  18722. _In_ HANDLE NTHandle,
  18723. REFIID riid,
  18724. _COM_Outptr_opt_ void **ppvObj);
  18725. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  18726. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  18727. ID3D12Device11 * This,
  18728. _In_ LPCWSTR Name,
  18729. DWORD Access,
  18730. /* [annotation][out] */
  18731. _Out_ HANDLE *pNTHandle);
  18732. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  18733. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  18734. ID3D12Device11 * This,
  18735. UINT NumObjects,
  18736. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  18737. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  18738. HRESULT ( STDMETHODCALLTYPE *Evict )(
  18739. ID3D12Device11 * This,
  18740. UINT NumObjects,
  18741. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  18742. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  18743. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  18744. ID3D12Device11 * This,
  18745. UINT64 InitialValue,
  18746. D3D12_FENCE_FLAGS Flags,
  18747. REFIID riid,
  18748. _COM_Outptr_ void **ppFence);
  18749. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  18750. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  18751. ID3D12Device11 * This);
  18752. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  18753. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  18754. ID3D12Device11 * This,
  18755. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  18756. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  18757. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  18758. UINT64 BaseOffset,
  18759. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  18760. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  18761. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  18762. _Out_opt_ UINT64 *pTotalBytes);
  18763. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  18764. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  18765. ID3D12Device11 * This,
  18766. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  18767. REFIID riid,
  18768. _COM_Outptr_opt_ void **ppvHeap);
  18769. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  18770. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  18771. ID3D12Device11 * This,
  18772. BOOL Enable);
  18773. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  18774. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  18775. ID3D12Device11 * This,
  18776. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  18777. _In_opt_ ID3D12RootSignature *pRootSignature,
  18778. REFIID riid,
  18779. _COM_Outptr_opt_ void **ppvCommandSignature);
  18780. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  18781. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  18782. ID3D12Device11 * This,
  18783. _In_ ID3D12Resource *pTiledResource,
  18784. _Out_opt_ UINT *pNumTilesForEntireResource,
  18785. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  18786. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  18787. _Inout_opt_ UINT *pNumSubresourceTilings,
  18788. _In_ UINT FirstSubresourceTilingToGet,
  18789. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  18790. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  18791. #if !defined(_WIN32)
  18792. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  18793. ID3D12Device11 * This);
  18794. #else
  18795. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  18796. ID3D12Device11 * This,
  18797. LUID * RetVal);
  18798. #endif
  18799. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  18800. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  18801. ID3D12Device11 * This,
  18802. _In_reads_(BlobLength) const void *pLibraryBlob,
  18803. SIZE_T BlobLength,
  18804. REFIID riid,
  18805. _COM_Outptr_ void **ppPipelineLibrary);
  18806. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  18807. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  18808. ID3D12Device11 * This,
  18809. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  18810. _In_reads_(NumFences) const UINT64 *pFenceValues,
  18811. UINT NumFences,
  18812. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  18813. HANDLE hEvent);
  18814. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  18815. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  18816. ID3D12Device11 * This,
  18817. UINT NumObjects,
  18818. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  18819. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  18820. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  18821. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  18822. ID3D12Device11 * This,
  18823. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  18824. REFIID riid,
  18825. _COM_Outptr_ void **ppPipelineState);
  18826. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  18827. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  18828. ID3D12Device11 * This,
  18829. _In_ const void *pAddress,
  18830. REFIID riid,
  18831. _COM_Outptr_ void **ppvHeap);
  18832. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  18833. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  18834. ID3D12Device11 * This,
  18835. _In_ HANDLE hFileMapping,
  18836. REFIID riid,
  18837. _COM_Outptr_ void **ppvHeap);
  18838. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  18839. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  18840. ID3D12Device11 * This,
  18841. D3D12_RESIDENCY_FLAGS Flags,
  18842. UINT NumObjects,
  18843. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  18844. _In_ ID3D12Fence *pFenceToSignal,
  18845. UINT64 FenceValueToSignal);
  18846. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  18847. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  18848. ID3D12Device11 * This,
  18849. _In_ UINT nodeMask,
  18850. _In_ D3D12_COMMAND_LIST_TYPE type,
  18851. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  18852. REFIID riid,
  18853. _COM_Outptr_ void **ppCommandList);
  18854. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  18855. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  18856. ID3D12Device11 * This,
  18857. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  18858. _In_ REFIID riid,
  18859. _COM_Outptr_ void **ppSession);
  18860. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  18861. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  18862. ID3D12Device11 * This,
  18863. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18864. D3D12_HEAP_FLAGS HeapFlags,
  18865. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18866. D3D12_RESOURCE_STATES InitialResourceState,
  18867. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18868. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18869. REFIID riidResource,
  18870. _COM_Outptr_opt_ void **ppvResource);
  18871. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  18872. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  18873. ID3D12Device11 * This,
  18874. _In_ const D3D12_HEAP_DESC *pDesc,
  18875. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18876. REFIID riid,
  18877. _COM_Outptr_opt_ void **ppvHeap);
  18878. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  18879. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  18880. ID3D12Device11 * This,
  18881. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18882. D3D12_RESOURCE_STATES InitialState,
  18883. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18884. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18885. REFIID riid,
  18886. _COM_Outptr_opt_ void **ppvResource);
  18887. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  18888. #if !defined(_WIN32)
  18889. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  18890. ID3D12Device11 * This,
  18891. UINT visibleMask,
  18892. UINT numResourceDescs,
  18893. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  18894. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18895. #else
  18896. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  18897. ID3D12Device11 * This,
  18898. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18899. UINT visibleMask,
  18900. UINT numResourceDescs,
  18901. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  18902. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18903. #endif
  18904. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  18905. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  18906. ID3D12Device11 * This,
  18907. _In_ ID3D12LifetimeOwner *pOwner,
  18908. REFIID riid,
  18909. _COM_Outptr_ void **ppvTracker);
  18910. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  18911. void ( STDMETHODCALLTYPE *RemoveDevice )(
  18912. ID3D12Device11 * This);
  18913. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  18914. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  18915. ID3D12Device11 * This,
  18916. _Inout_ UINT *pNumMetaCommands,
  18917. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  18918. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  18919. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  18920. ID3D12Device11 * This,
  18921. _In_ REFGUID CommandId,
  18922. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  18923. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  18924. _Inout_ UINT *pParameterCount,
  18925. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  18926. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  18927. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  18928. ID3D12Device11 * This,
  18929. _In_ REFGUID CommandId,
  18930. _In_ UINT NodeMask,
  18931. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  18932. _In_ SIZE_T CreationParametersDataSizeInBytes,
  18933. REFIID riid,
  18934. _COM_Outptr_ void **ppMetaCommand);
  18935. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  18936. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  18937. ID3D12Device11 * This,
  18938. const D3D12_STATE_OBJECT_DESC *pDesc,
  18939. REFIID riid,
  18940. _COM_Outptr_ void **ppStateObject);
  18941. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  18942. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  18943. ID3D12Device11 * This,
  18944. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  18945. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  18946. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  18947. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  18948. ID3D12Device11 * This,
  18949. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  18950. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  18951. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  18952. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  18953. ID3D12Device11 * This,
  18954. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  18955. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  18956. _In_opt_ HANDLE hEventToSignalUponCompletion,
  18957. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  18958. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  18959. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  18960. ID3D12Device11 * This,
  18961. const D3D12_STATE_OBJECT_DESC *pAddition,
  18962. ID3D12StateObject *pStateObjectToGrowFrom,
  18963. REFIID riid,
  18964. _COM_Outptr_ void **ppNewStateObject);
  18965. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  18966. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  18967. ID3D12Device11 * This,
  18968. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  18969. _In_ REFIID riid,
  18970. _COM_Outptr_ void **ppSession);
  18971. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  18972. #if !defined(_WIN32)
  18973. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  18974. ID3D12Device11 * This,
  18975. UINT visibleMask,
  18976. UINT numResourceDescs,
  18977. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  18978. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18979. #else
  18980. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  18981. ID3D12Device11 * This,
  18982. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18983. UINT visibleMask,
  18984. UINT numResourceDescs,
  18985. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  18986. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18987. #endif
  18988. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  18989. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  18990. ID3D12Device11 * This,
  18991. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18992. D3D12_HEAP_FLAGS HeapFlags,
  18993. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18994. D3D12_RESOURCE_STATES InitialResourceState,
  18995. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18996. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18997. REFIID riidResource,
  18998. _COM_Outptr_opt_ void **ppvResource);
  18999. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  19000. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  19001. ID3D12Device11 * This,
  19002. _In_ ID3D12Heap *pHeap,
  19003. UINT64 HeapOffset,
  19004. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19005. D3D12_RESOURCE_STATES InitialState,
  19006. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19007. REFIID riid,
  19008. _COM_Outptr_opt_ void **ppvResource);
  19009. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  19010. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  19011. ID3D12Device11 * This,
  19012. _In_opt_ ID3D12Resource *pTargetedResource,
  19013. _In_opt_ ID3D12Resource *pFeedbackResource,
  19014. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19015. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  19016. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  19017. ID3D12Device11 * This,
  19018. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  19019. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  19020. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  19021. UINT64 BaseOffset,
  19022. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  19023. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  19024. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  19025. _Out_opt_ UINT64 *pTotalBytes);
  19026. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  19027. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  19028. ID3D12Device11 * This,
  19029. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  19030. REFIID riid,
  19031. _COM_Outptr_opt_ void **ppvSession);
  19032. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  19033. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  19034. ID3D12Device11 * This,
  19035. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  19036. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  19037. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  19038. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  19039. ID3D12Device11 * This,
  19040. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  19041. REFIID CreatorID,
  19042. REFIID riid,
  19043. _COM_Outptr_ void **ppCommandQueue);
  19044. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  19045. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  19046. ID3D12Device11 * This,
  19047. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19048. D3D12_HEAP_FLAGS HeapFlags,
  19049. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19050. D3D12_BARRIER_LAYOUT InitialLayout,
  19051. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19052. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19053. UINT32 NumCastableFormats,
  19054. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19055. REFIID riidResource,
  19056. _COM_Outptr_opt_ void **ppvResource);
  19057. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  19058. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  19059. ID3D12Device11 * This,
  19060. _In_ ID3D12Heap *pHeap,
  19061. UINT64 HeapOffset,
  19062. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19063. D3D12_BARRIER_LAYOUT InitialLayout,
  19064. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19065. UINT32 NumCastableFormats,
  19066. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19067. REFIID riid,
  19068. _COM_Outptr_opt_ void **ppvResource);
  19069. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  19070. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  19071. ID3D12Device11 * This,
  19072. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19073. D3D12_BARRIER_LAYOUT InitialLayout,
  19074. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19075. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19076. UINT32 NumCastableFormats,
  19077. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19078. REFIID riid,
  19079. _COM_Outptr_opt_ void **ppvResource);
  19080. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  19081. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  19082. ID3D12Device11 * This,
  19083. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  19084. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19085. END_INTERFACE
  19086. } ID3D12Device11Vtbl;
  19087. interface ID3D12Device11
  19088. {
  19089. CONST_VTBL struct ID3D12Device11Vtbl *lpVtbl;
  19090. };
  19091. #ifdef COBJMACROS
  19092. #define ID3D12Device11_QueryInterface(This,riid,ppvObject) \
  19093. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  19094. #define ID3D12Device11_AddRef(This) \
  19095. ( (This)->lpVtbl -> AddRef(This) )
  19096. #define ID3D12Device11_Release(This) \
  19097. ( (This)->lpVtbl -> Release(This) )
  19098. #define ID3D12Device11_GetPrivateData(This,guid,pDataSize,pData) \
  19099. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  19100. #define ID3D12Device11_SetPrivateData(This,guid,DataSize,pData) \
  19101. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  19102. #define ID3D12Device11_SetPrivateDataInterface(This,guid,pData) \
  19103. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  19104. #define ID3D12Device11_SetName(This,Name) \
  19105. ( (This)->lpVtbl -> SetName(This,Name) )
  19106. #define ID3D12Device11_GetNodeCount(This) \
  19107. ( (This)->lpVtbl -> GetNodeCount(This) )
  19108. #define ID3D12Device11_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  19109. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  19110. #define ID3D12Device11_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  19111. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  19112. #define ID3D12Device11_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  19113. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  19114. #define ID3D12Device11_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  19115. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  19116. #define ID3D12Device11_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  19117. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  19118. #define ID3D12Device11_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  19119. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  19120. #define ID3D12Device11_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  19121. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  19122. #define ID3D12Device11_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  19123. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  19124. #define ID3D12Device11_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  19125. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  19126. #define ID3D12Device11_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  19127. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  19128. #define ID3D12Device11_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  19129. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  19130. #define ID3D12Device11_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  19131. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  19132. #define ID3D12Device11_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  19133. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  19134. #define ID3D12Device11_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  19135. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  19136. #define ID3D12Device11_CreateSampler(This,pDesc,DestDescriptor) \
  19137. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  19138. #define ID3D12Device11_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  19139. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  19140. #define ID3D12Device11_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  19141. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  19142. #if !defined(_WIN32)
  19143. #define ID3D12Device11_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  19144. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  19145. #else
  19146. #define ID3D12Device11_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  19147. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  19148. #endif
  19149. #if !defined(_WIN32)
  19150. #define ID3D12Device11_GetCustomHeapProperties(This,nodeMask,heapType) \
  19151. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  19152. #else
  19153. #define ID3D12Device11_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  19154. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  19155. #endif
  19156. #define ID3D12Device11_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  19157. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  19158. #define ID3D12Device11_CreateHeap(This,pDesc,riid,ppvHeap) \
  19159. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  19160. #define ID3D12Device11_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19161. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19162. #define ID3D12Device11_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19163. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19164. #define ID3D12Device11_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  19165. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  19166. #define ID3D12Device11_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  19167. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  19168. #define ID3D12Device11_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  19169. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  19170. #define ID3D12Device11_MakeResident(This,NumObjects,ppObjects) \
  19171. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  19172. #define ID3D12Device11_Evict(This,NumObjects,ppObjects) \
  19173. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  19174. #define ID3D12Device11_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  19175. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  19176. #define ID3D12Device11_GetDeviceRemovedReason(This) \
  19177. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  19178. #define ID3D12Device11_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  19179. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  19180. #define ID3D12Device11_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  19181. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  19182. #define ID3D12Device11_SetStablePowerState(This,Enable) \
  19183. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  19184. #define ID3D12Device11_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  19185. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  19186. #define ID3D12Device11_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  19187. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  19188. #if !defined(_WIN32)
  19189. #define ID3D12Device11_GetAdapterLuid(This) \
  19190. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  19191. #else
  19192. #define ID3D12Device11_GetAdapterLuid(This,RetVal) \
  19193. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  19194. #endif
  19195. #define ID3D12Device11_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  19196. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  19197. #define ID3D12Device11_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  19198. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  19199. #define ID3D12Device11_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  19200. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  19201. #define ID3D12Device11_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  19202. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  19203. #define ID3D12Device11_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  19204. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  19205. #define ID3D12Device11_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  19206. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  19207. #define ID3D12Device11_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  19208. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  19209. #define ID3D12Device11_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  19210. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  19211. #define ID3D12Device11_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  19212. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  19213. #define ID3D12Device11_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  19214. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  19215. #define ID3D12Device11_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  19216. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  19217. #define ID3D12Device11_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  19218. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  19219. #if !defined(_WIN32)
  19220. #define ID3D12Device11_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19221. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19222. #else
  19223. #define ID3D12Device11_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19224. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19225. #endif
  19226. #define ID3D12Device11_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  19227. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  19228. #define ID3D12Device11_RemoveDevice(This) \
  19229. ( (This)->lpVtbl -> RemoveDevice(This) )
  19230. #define ID3D12Device11_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  19231. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  19232. #define ID3D12Device11_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  19233. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  19234. #define ID3D12Device11_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  19235. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  19236. #define ID3D12Device11_CreateStateObject(This,pDesc,riid,ppStateObject) \
  19237. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  19238. #define ID3D12Device11_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  19239. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  19240. #define ID3D12Device11_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  19241. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  19242. #define ID3D12Device11_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  19243. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  19244. #define ID3D12Device11_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  19245. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  19246. #define ID3D12Device11_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  19247. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  19248. #if !defined(_WIN32)
  19249. #define ID3D12Device11_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19250. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19251. #else
  19252. #define ID3D12Device11_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19253. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19254. #endif
  19255. #define ID3D12Device11_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  19256. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  19257. #define ID3D12Device11_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19258. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19259. #define ID3D12Device11_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  19260. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  19261. #define ID3D12Device11_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  19262. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  19263. #define ID3D12Device11_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  19264. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  19265. #define ID3D12Device11_ShaderCacheControl(This,Kinds,Control) \
  19266. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  19267. #define ID3D12Device11_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  19268. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  19269. #define ID3D12Device11_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  19270. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  19271. #define ID3D12Device11_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  19272. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  19273. #define ID3D12Device11_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  19274. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  19275. #define ID3D12Device11_CreateSampler2(This,pDesc,DestDescriptor) \
  19276. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  19277. #endif /* COBJMACROS */
  19278. #endif /* C style interface */
  19279. #endif /* __ID3D12Device11_INTERFACE_DEFINED__ */
  19280. #ifndef __ID3D12Device12_INTERFACE_DEFINED__
  19281. #define __ID3D12Device12_INTERFACE_DEFINED__
  19282. /* interface ID3D12Device12 */
  19283. /* [unique][local][object][uuid] */
  19284. EXTERN_C const IID IID_ID3D12Device12;
  19285. #if defined(__cplusplus) && !defined(CINTERFACE)
  19286. MIDL_INTERFACE("5af5c532-4c91-4cd0-b541-15a405395fc5")
  19287. ID3D12Device12 : public ID3D12Device11
  19288. {
  19289. public:
  19290. #if defined(_MSC_VER) || !defined(_WIN32)
  19291. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo3(
  19292. UINT visibleMask,
  19293. UINT numResourceDescs,
  19294. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19295. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  19296. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  19297. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  19298. #else
  19299. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo3(
  19300. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19301. UINT visibleMask,
  19302. UINT numResourceDescs,
  19303. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19304. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  19305. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  19306. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  19307. #endif
  19308. };
  19309. #else /* C style interface */
  19310. typedef struct ID3D12Device12Vtbl
  19311. {
  19312. BEGIN_INTERFACE
  19313. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  19314. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  19315. ID3D12Device12 * This,
  19316. REFIID riid,
  19317. _COM_Outptr_ void **ppvObject);
  19318. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  19319. ULONG ( STDMETHODCALLTYPE *AddRef )(
  19320. ID3D12Device12 * This);
  19321. DECLSPEC_XFGVIRT(IUnknown, Release)
  19322. ULONG ( STDMETHODCALLTYPE *Release )(
  19323. ID3D12Device12 * This);
  19324. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  19325. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  19326. ID3D12Device12 * This,
  19327. _In_ REFGUID guid,
  19328. _Inout_ UINT *pDataSize,
  19329. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  19330. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  19331. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  19332. ID3D12Device12 * This,
  19333. _In_ REFGUID guid,
  19334. _In_ UINT DataSize,
  19335. _In_reads_bytes_opt_( DataSize ) const void *pData);
  19336. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  19337. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  19338. ID3D12Device12 * This,
  19339. _In_ REFGUID guid,
  19340. _In_opt_ const IUnknown *pData);
  19341. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  19342. HRESULT ( STDMETHODCALLTYPE *SetName )(
  19343. ID3D12Device12 * This,
  19344. _In_z_ LPCWSTR Name);
  19345. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  19346. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  19347. ID3D12Device12 * This);
  19348. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  19349. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  19350. ID3D12Device12 * This,
  19351. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  19352. REFIID riid,
  19353. _COM_Outptr_ void **ppCommandQueue);
  19354. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  19355. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  19356. ID3D12Device12 * This,
  19357. _In_ D3D12_COMMAND_LIST_TYPE type,
  19358. REFIID riid,
  19359. _COM_Outptr_ void **ppCommandAllocator);
  19360. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  19361. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  19362. ID3D12Device12 * This,
  19363. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  19364. REFIID riid,
  19365. _COM_Outptr_ void **ppPipelineState);
  19366. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  19367. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  19368. ID3D12Device12 * This,
  19369. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  19370. REFIID riid,
  19371. _COM_Outptr_ void **ppPipelineState);
  19372. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  19373. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  19374. ID3D12Device12 * This,
  19375. _In_ UINT nodeMask,
  19376. _In_ D3D12_COMMAND_LIST_TYPE type,
  19377. _In_ ID3D12CommandAllocator *pCommandAllocator,
  19378. _In_opt_ ID3D12PipelineState *pInitialState,
  19379. REFIID riid,
  19380. _COM_Outptr_ void **ppCommandList);
  19381. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  19382. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  19383. ID3D12Device12 * This,
  19384. D3D12_FEATURE Feature,
  19385. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  19386. UINT FeatureSupportDataSize);
  19387. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  19388. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  19389. ID3D12Device12 * This,
  19390. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  19391. REFIID riid,
  19392. _COM_Outptr_ void **ppvHeap);
  19393. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  19394. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  19395. ID3D12Device12 * This,
  19396. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  19397. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  19398. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  19399. ID3D12Device12 * This,
  19400. _In_ UINT nodeMask,
  19401. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  19402. _In_ SIZE_T blobLengthInBytes,
  19403. REFIID riid,
  19404. _COM_Outptr_ void **ppvRootSignature);
  19405. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  19406. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  19407. ID3D12Device12 * This,
  19408. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  19409. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19410. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  19411. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  19412. ID3D12Device12 * This,
  19413. _In_opt_ ID3D12Resource *pResource,
  19414. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  19415. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19416. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  19417. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  19418. ID3D12Device12 * This,
  19419. _In_opt_ ID3D12Resource *pResource,
  19420. _In_opt_ ID3D12Resource *pCounterResource,
  19421. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  19422. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19423. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  19424. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  19425. ID3D12Device12 * This,
  19426. _In_opt_ ID3D12Resource *pResource,
  19427. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  19428. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19429. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  19430. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  19431. ID3D12Device12 * This,
  19432. _In_opt_ ID3D12Resource *pResource,
  19433. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  19434. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19435. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  19436. void ( STDMETHODCALLTYPE *CreateSampler )(
  19437. ID3D12Device12 * This,
  19438. _In_ const D3D12_SAMPLER_DESC *pDesc,
  19439. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19440. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  19441. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  19442. ID3D12Device12 * This,
  19443. _In_ UINT NumDestDescriptorRanges,
  19444. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  19445. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  19446. _In_ UINT NumSrcDescriptorRanges,
  19447. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  19448. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  19449. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  19450. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  19451. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  19452. ID3D12Device12 * This,
  19453. _In_ UINT NumDescriptors,
  19454. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  19455. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  19456. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  19457. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  19458. #if !defined(_WIN32)
  19459. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  19460. ID3D12Device12 * This,
  19461. _In_ UINT visibleMask,
  19462. _In_ UINT numResourceDescs,
  19463. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  19464. #else
  19465. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  19466. ID3D12Device12 * This,
  19467. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19468. _In_ UINT visibleMask,
  19469. _In_ UINT numResourceDescs,
  19470. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  19471. #endif
  19472. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  19473. #if !defined(_WIN32)
  19474. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  19475. ID3D12Device12 * This,
  19476. _In_ UINT nodeMask,
  19477. D3D12_HEAP_TYPE heapType);
  19478. #else
  19479. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  19480. ID3D12Device12 * This,
  19481. D3D12_HEAP_PROPERTIES * RetVal,
  19482. _In_ UINT nodeMask,
  19483. D3D12_HEAP_TYPE heapType);
  19484. #endif
  19485. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  19486. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  19487. ID3D12Device12 * This,
  19488. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19489. D3D12_HEAP_FLAGS HeapFlags,
  19490. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19491. D3D12_RESOURCE_STATES InitialResourceState,
  19492. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19493. REFIID riidResource,
  19494. _COM_Outptr_opt_ void **ppvResource);
  19495. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  19496. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  19497. ID3D12Device12 * This,
  19498. _In_ const D3D12_HEAP_DESC *pDesc,
  19499. REFIID riid,
  19500. _COM_Outptr_opt_ void **ppvHeap);
  19501. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  19502. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  19503. ID3D12Device12 * This,
  19504. _In_ ID3D12Heap *pHeap,
  19505. UINT64 HeapOffset,
  19506. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19507. D3D12_RESOURCE_STATES InitialState,
  19508. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19509. REFIID riid,
  19510. _COM_Outptr_opt_ void **ppvResource);
  19511. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  19512. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  19513. ID3D12Device12 * This,
  19514. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19515. D3D12_RESOURCE_STATES InitialState,
  19516. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19517. REFIID riid,
  19518. _COM_Outptr_opt_ void **ppvResource);
  19519. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  19520. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  19521. ID3D12Device12 * This,
  19522. _In_ ID3D12DeviceChild *pObject,
  19523. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  19524. DWORD Access,
  19525. _In_opt_ LPCWSTR Name,
  19526. _Out_ HANDLE *pHandle);
  19527. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  19528. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  19529. ID3D12Device12 * This,
  19530. _In_ HANDLE NTHandle,
  19531. REFIID riid,
  19532. _COM_Outptr_opt_ void **ppvObj);
  19533. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  19534. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  19535. ID3D12Device12 * This,
  19536. _In_ LPCWSTR Name,
  19537. DWORD Access,
  19538. /* [annotation][out] */
  19539. _Out_ HANDLE *pNTHandle);
  19540. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  19541. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  19542. ID3D12Device12 * This,
  19543. UINT NumObjects,
  19544. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  19545. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  19546. HRESULT ( STDMETHODCALLTYPE *Evict )(
  19547. ID3D12Device12 * This,
  19548. UINT NumObjects,
  19549. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  19550. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  19551. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  19552. ID3D12Device12 * This,
  19553. UINT64 InitialValue,
  19554. D3D12_FENCE_FLAGS Flags,
  19555. REFIID riid,
  19556. _COM_Outptr_ void **ppFence);
  19557. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  19558. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  19559. ID3D12Device12 * This);
  19560. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  19561. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  19562. ID3D12Device12 * This,
  19563. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  19564. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  19565. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  19566. UINT64 BaseOffset,
  19567. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  19568. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  19569. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  19570. _Out_opt_ UINT64 *pTotalBytes);
  19571. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  19572. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  19573. ID3D12Device12 * This,
  19574. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  19575. REFIID riid,
  19576. _COM_Outptr_opt_ void **ppvHeap);
  19577. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  19578. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  19579. ID3D12Device12 * This,
  19580. BOOL Enable);
  19581. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  19582. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  19583. ID3D12Device12 * This,
  19584. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  19585. _In_opt_ ID3D12RootSignature *pRootSignature,
  19586. REFIID riid,
  19587. _COM_Outptr_opt_ void **ppvCommandSignature);
  19588. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  19589. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  19590. ID3D12Device12 * This,
  19591. _In_ ID3D12Resource *pTiledResource,
  19592. _Out_opt_ UINT *pNumTilesForEntireResource,
  19593. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  19594. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  19595. _Inout_opt_ UINT *pNumSubresourceTilings,
  19596. _In_ UINT FirstSubresourceTilingToGet,
  19597. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  19598. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  19599. #if !defined(_WIN32)
  19600. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  19601. ID3D12Device12 * This);
  19602. #else
  19603. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  19604. ID3D12Device12 * This,
  19605. LUID * RetVal);
  19606. #endif
  19607. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  19608. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  19609. ID3D12Device12 * This,
  19610. _In_reads_(BlobLength) const void *pLibraryBlob,
  19611. SIZE_T BlobLength,
  19612. REFIID riid,
  19613. _COM_Outptr_ void **ppPipelineLibrary);
  19614. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  19615. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  19616. ID3D12Device12 * This,
  19617. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  19618. _In_reads_(NumFences) const UINT64 *pFenceValues,
  19619. UINT NumFences,
  19620. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  19621. HANDLE hEvent);
  19622. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  19623. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  19624. ID3D12Device12 * This,
  19625. UINT NumObjects,
  19626. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  19627. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  19628. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  19629. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  19630. ID3D12Device12 * This,
  19631. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  19632. REFIID riid,
  19633. _COM_Outptr_ void **ppPipelineState);
  19634. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  19635. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  19636. ID3D12Device12 * This,
  19637. _In_ const void *pAddress,
  19638. REFIID riid,
  19639. _COM_Outptr_ void **ppvHeap);
  19640. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  19641. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  19642. ID3D12Device12 * This,
  19643. _In_ HANDLE hFileMapping,
  19644. REFIID riid,
  19645. _COM_Outptr_ void **ppvHeap);
  19646. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  19647. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  19648. ID3D12Device12 * This,
  19649. D3D12_RESIDENCY_FLAGS Flags,
  19650. UINT NumObjects,
  19651. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  19652. _In_ ID3D12Fence *pFenceToSignal,
  19653. UINT64 FenceValueToSignal);
  19654. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  19655. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  19656. ID3D12Device12 * This,
  19657. _In_ UINT nodeMask,
  19658. _In_ D3D12_COMMAND_LIST_TYPE type,
  19659. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  19660. REFIID riid,
  19661. _COM_Outptr_ void **ppCommandList);
  19662. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  19663. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  19664. ID3D12Device12 * This,
  19665. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  19666. _In_ REFIID riid,
  19667. _COM_Outptr_ void **ppSession);
  19668. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  19669. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  19670. ID3D12Device12 * This,
  19671. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19672. D3D12_HEAP_FLAGS HeapFlags,
  19673. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19674. D3D12_RESOURCE_STATES InitialResourceState,
  19675. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19676. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19677. REFIID riidResource,
  19678. _COM_Outptr_opt_ void **ppvResource);
  19679. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  19680. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  19681. ID3D12Device12 * This,
  19682. _In_ const D3D12_HEAP_DESC *pDesc,
  19683. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19684. REFIID riid,
  19685. _COM_Outptr_opt_ void **ppvHeap);
  19686. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  19687. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  19688. ID3D12Device12 * This,
  19689. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19690. D3D12_RESOURCE_STATES InitialState,
  19691. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19692. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19693. REFIID riid,
  19694. _COM_Outptr_opt_ void **ppvResource);
  19695. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  19696. #if !defined(_WIN32)
  19697. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  19698. ID3D12Device12 * This,
  19699. UINT visibleMask,
  19700. UINT numResourceDescs,
  19701. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  19702. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19703. #else
  19704. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  19705. ID3D12Device12 * This,
  19706. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19707. UINT visibleMask,
  19708. UINT numResourceDescs,
  19709. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  19710. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19711. #endif
  19712. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  19713. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  19714. ID3D12Device12 * This,
  19715. _In_ ID3D12LifetimeOwner *pOwner,
  19716. REFIID riid,
  19717. _COM_Outptr_ void **ppvTracker);
  19718. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  19719. void ( STDMETHODCALLTYPE *RemoveDevice )(
  19720. ID3D12Device12 * This);
  19721. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  19722. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  19723. ID3D12Device12 * This,
  19724. _Inout_ UINT *pNumMetaCommands,
  19725. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  19726. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  19727. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  19728. ID3D12Device12 * This,
  19729. _In_ REFGUID CommandId,
  19730. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  19731. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  19732. _Inout_ UINT *pParameterCount,
  19733. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  19734. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  19735. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  19736. ID3D12Device12 * This,
  19737. _In_ REFGUID CommandId,
  19738. _In_ UINT NodeMask,
  19739. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  19740. _In_ SIZE_T CreationParametersDataSizeInBytes,
  19741. REFIID riid,
  19742. _COM_Outptr_ void **ppMetaCommand);
  19743. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  19744. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  19745. ID3D12Device12 * This,
  19746. const D3D12_STATE_OBJECT_DESC *pDesc,
  19747. REFIID riid,
  19748. _COM_Outptr_ void **ppStateObject);
  19749. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  19750. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  19751. ID3D12Device12 * This,
  19752. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  19753. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  19754. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  19755. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  19756. ID3D12Device12 * This,
  19757. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  19758. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  19759. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  19760. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  19761. ID3D12Device12 * This,
  19762. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  19763. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  19764. _In_opt_ HANDLE hEventToSignalUponCompletion,
  19765. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  19766. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  19767. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  19768. ID3D12Device12 * This,
  19769. const D3D12_STATE_OBJECT_DESC *pAddition,
  19770. ID3D12StateObject *pStateObjectToGrowFrom,
  19771. REFIID riid,
  19772. _COM_Outptr_ void **ppNewStateObject);
  19773. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  19774. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  19775. ID3D12Device12 * This,
  19776. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  19777. _In_ REFIID riid,
  19778. _COM_Outptr_ void **ppSession);
  19779. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  19780. #if !defined(_WIN32)
  19781. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  19782. ID3D12Device12 * This,
  19783. UINT visibleMask,
  19784. UINT numResourceDescs,
  19785. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19786. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19787. #else
  19788. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  19789. ID3D12Device12 * This,
  19790. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19791. UINT visibleMask,
  19792. UINT numResourceDescs,
  19793. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19794. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19795. #endif
  19796. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  19797. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  19798. ID3D12Device12 * This,
  19799. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19800. D3D12_HEAP_FLAGS HeapFlags,
  19801. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19802. D3D12_RESOURCE_STATES InitialResourceState,
  19803. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19804. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19805. REFIID riidResource,
  19806. _COM_Outptr_opt_ void **ppvResource);
  19807. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  19808. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  19809. ID3D12Device12 * This,
  19810. _In_ ID3D12Heap *pHeap,
  19811. UINT64 HeapOffset,
  19812. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19813. D3D12_RESOURCE_STATES InitialState,
  19814. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19815. REFIID riid,
  19816. _COM_Outptr_opt_ void **ppvResource);
  19817. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  19818. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  19819. ID3D12Device12 * This,
  19820. _In_opt_ ID3D12Resource *pTargetedResource,
  19821. _In_opt_ ID3D12Resource *pFeedbackResource,
  19822. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19823. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  19824. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  19825. ID3D12Device12 * This,
  19826. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  19827. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  19828. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  19829. UINT64 BaseOffset,
  19830. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  19831. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  19832. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  19833. _Out_opt_ UINT64 *pTotalBytes);
  19834. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  19835. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  19836. ID3D12Device12 * This,
  19837. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  19838. REFIID riid,
  19839. _COM_Outptr_opt_ void **ppvSession);
  19840. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  19841. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  19842. ID3D12Device12 * This,
  19843. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  19844. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  19845. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  19846. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  19847. ID3D12Device12 * This,
  19848. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  19849. REFIID CreatorID,
  19850. REFIID riid,
  19851. _COM_Outptr_ void **ppCommandQueue);
  19852. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  19853. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  19854. ID3D12Device12 * This,
  19855. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19856. D3D12_HEAP_FLAGS HeapFlags,
  19857. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19858. D3D12_BARRIER_LAYOUT InitialLayout,
  19859. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19860. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19861. UINT32 NumCastableFormats,
  19862. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19863. REFIID riidResource,
  19864. _COM_Outptr_opt_ void **ppvResource);
  19865. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  19866. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  19867. ID3D12Device12 * This,
  19868. _In_ ID3D12Heap *pHeap,
  19869. UINT64 HeapOffset,
  19870. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19871. D3D12_BARRIER_LAYOUT InitialLayout,
  19872. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19873. UINT32 NumCastableFormats,
  19874. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19875. REFIID riid,
  19876. _COM_Outptr_opt_ void **ppvResource);
  19877. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  19878. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  19879. ID3D12Device12 * This,
  19880. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19881. D3D12_BARRIER_LAYOUT InitialLayout,
  19882. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19883. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19884. UINT32 NumCastableFormats,
  19885. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19886. REFIID riid,
  19887. _COM_Outptr_opt_ void **ppvResource);
  19888. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  19889. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  19890. ID3D12Device12 * This,
  19891. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  19892. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19893. DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3)
  19894. #if !defined(_WIN32)
  19895. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  19896. ID3D12Device12 * This,
  19897. UINT visibleMask,
  19898. UINT numResourceDescs,
  19899. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19900. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  19901. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  19902. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19903. #else
  19904. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  19905. ID3D12Device12 * This,
  19906. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19907. UINT visibleMask,
  19908. UINT numResourceDescs,
  19909. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19910. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  19911. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  19912. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19913. #endif
  19914. END_INTERFACE
  19915. } ID3D12Device12Vtbl;
  19916. interface ID3D12Device12
  19917. {
  19918. CONST_VTBL struct ID3D12Device12Vtbl *lpVtbl;
  19919. };
  19920. #ifdef COBJMACROS
  19921. #define ID3D12Device12_QueryInterface(This,riid,ppvObject) \
  19922. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  19923. #define ID3D12Device12_AddRef(This) \
  19924. ( (This)->lpVtbl -> AddRef(This) )
  19925. #define ID3D12Device12_Release(This) \
  19926. ( (This)->lpVtbl -> Release(This) )
  19927. #define ID3D12Device12_GetPrivateData(This,guid,pDataSize,pData) \
  19928. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  19929. #define ID3D12Device12_SetPrivateData(This,guid,DataSize,pData) \
  19930. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  19931. #define ID3D12Device12_SetPrivateDataInterface(This,guid,pData) \
  19932. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  19933. #define ID3D12Device12_SetName(This,Name) \
  19934. ( (This)->lpVtbl -> SetName(This,Name) )
  19935. #define ID3D12Device12_GetNodeCount(This) \
  19936. ( (This)->lpVtbl -> GetNodeCount(This) )
  19937. #define ID3D12Device12_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  19938. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  19939. #define ID3D12Device12_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  19940. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  19941. #define ID3D12Device12_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  19942. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  19943. #define ID3D12Device12_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  19944. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  19945. #define ID3D12Device12_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  19946. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  19947. #define ID3D12Device12_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  19948. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  19949. #define ID3D12Device12_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  19950. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  19951. #define ID3D12Device12_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  19952. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  19953. #define ID3D12Device12_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  19954. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  19955. #define ID3D12Device12_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  19956. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  19957. #define ID3D12Device12_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  19958. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  19959. #define ID3D12Device12_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  19960. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  19961. #define ID3D12Device12_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  19962. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  19963. #define ID3D12Device12_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  19964. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  19965. #define ID3D12Device12_CreateSampler(This,pDesc,DestDescriptor) \
  19966. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  19967. #define ID3D12Device12_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  19968. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  19969. #define ID3D12Device12_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  19970. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  19971. #if !defined(_WIN32)
  19972. #define ID3D12Device12_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  19973. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  19974. #else
  19975. #define ID3D12Device12_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  19976. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  19977. #endif
  19978. #if !defined(_WIN32)
  19979. #define ID3D12Device12_GetCustomHeapProperties(This,nodeMask,heapType) \
  19980. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  19981. #else
  19982. #define ID3D12Device12_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  19983. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  19984. #endif
  19985. #define ID3D12Device12_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  19986. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  19987. #define ID3D12Device12_CreateHeap(This,pDesc,riid,ppvHeap) \
  19988. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  19989. #define ID3D12Device12_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19990. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19991. #define ID3D12Device12_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19992. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19993. #define ID3D12Device12_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  19994. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  19995. #define ID3D12Device12_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  19996. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  19997. #define ID3D12Device12_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  19998. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  19999. #define ID3D12Device12_MakeResident(This,NumObjects,ppObjects) \
  20000. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  20001. #define ID3D12Device12_Evict(This,NumObjects,ppObjects) \
  20002. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  20003. #define ID3D12Device12_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  20004. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  20005. #define ID3D12Device12_GetDeviceRemovedReason(This) \
  20006. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  20007. #define ID3D12Device12_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  20008. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  20009. #define ID3D12Device12_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  20010. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  20011. #define ID3D12Device12_SetStablePowerState(This,Enable) \
  20012. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  20013. #define ID3D12Device12_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  20014. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  20015. #define ID3D12Device12_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  20016. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  20017. #if !defined(_WIN32)
  20018. #define ID3D12Device12_GetAdapterLuid(This) \
  20019. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  20020. #else
  20021. #define ID3D12Device12_GetAdapterLuid(This,RetVal) \
  20022. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  20023. #endif
  20024. #define ID3D12Device12_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  20025. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  20026. #define ID3D12Device12_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  20027. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  20028. #define ID3D12Device12_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  20029. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  20030. #define ID3D12Device12_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  20031. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  20032. #define ID3D12Device12_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  20033. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  20034. #define ID3D12Device12_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  20035. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  20036. #define ID3D12Device12_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  20037. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  20038. #define ID3D12Device12_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  20039. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  20040. #define ID3D12Device12_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  20041. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  20042. #define ID3D12Device12_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  20043. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  20044. #define ID3D12Device12_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  20045. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  20046. #define ID3D12Device12_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  20047. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  20048. #if !defined(_WIN32)
  20049. #define ID3D12Device12_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20050. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20051. #else
  20052. #define ID3D12Device12_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20053. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20054. #endif
  20055. #define ID3D12Device12_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  20056. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  20057. #define ID3D12Device12_RemoveDevice(This) \
  20058. ( (This)->lpVtbl -> RemoveDevice(This) )
  20059. #define ID3D12Device12_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  20060. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  20061. #define ID3D12Device12_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  20062. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  20063. #define ID3D12Device12_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  20064. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  20065. #define ID3D12Device12_CreateStateObject(This,pDesc,riid,ppStateObject) \
  20066. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  20067. #define ID3D12Device12_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  20068. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  20069. #define ID3D12Device12_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  20070. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  20071. #define ID3D12Device12_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  20072. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  20073. #define ID3D12Device12_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  20074. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  20075. #define ID3D12Device12_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  20076. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  20077. #if !defined(_WIN32)
  20078. #define ID3D12Device12_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20079. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20080. #else
  20081. #define ID3D12Device12_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20082. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20083. #endif
  20084. #define ID3D12Device12_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  20085. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  20086. #define ID3D12Device12_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20087. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20088. #define ID3D12Device12_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  20089. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  20090. #define ID3D12Device12_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  20091. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  20092. #define ID3D12Device12_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  20093. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  20094. #define ID3D12Device12_ShaderCacheControl(This,Kinds,Control) \
  20095. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  20096. #define ID3D12Device12_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  20097. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  20098. #define ID3D12Device12_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  20099. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  20100. #define ID3D12Device12_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  20101. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  20102. #define ID3D12Device12_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  20103. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  20104. #define ID3D12Device12_CreateSampler2(This,pDesc,DestDescriptor) \
  20105. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  20106. #if !defined(_WIN32)
  20107. #define ID3D12Device12_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  20108. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  20109. #else
  20110. #define ID3D12Device12_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  20111. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  20112. #endif
  20113. #endif /* COBJMACROS */
  20114. #endif /* C style interface */
  20115. #endif /* __ID3D12Device12_INTERFACE_DEFINED__ */
  20116. #ifndef __ID3D12Device13_INTERFACE_DEFINED__
  20117. #define __ID3D12Device13_INTERFACE_DEFINED__
  20118. /* interface ID3D12Device13 */
  20119. /* [unique][local][object][uuid] */
  20120. EXTERN_C const IID IID_ID3D12Device13;
  20121. #if defined(__cplusplus) && !defined(CINTERFACE)
  20122. MIDL_INTERFACE("14eecffc-4df8-40f7-a118-5c816f45695e")
  20123. ID3D12Device13 : public ID3D12Device12
  20124. {
  20125. public:
  20126. virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromAddress1(
  20127. _In_ const void *pAddress,
  20128. SIZE_T size,
  20129. REFIID riid,
  20130. _COM_Outptr_ void **ppvHeap) = 0;
  20131. };
  20132. #else /* C style interface */
  20133. typedef struct ID3D12Device13Vtbl
  20134. {
  20135. BEGIN_INTERFACE
  20136. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  20137. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  20138. ID3D12Device13 * This,
  20139. REFIID riid,
  20140. _COM_Outptr_ void **ppvObject);
  20141. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  20142. ULONG ( STDMETHODCALLTYPE *AddRef )(
  20143. ID3D12Device13 * This);
  20144. DECLSPEC_XFGVIRT(IUnknown, Release)
  20145. ULONG ( STDMETHODCALLTYPE *Release )(
  20146. ID3D12Device13 * This);
  20147. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  20148. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  20149. ID3D12Device13 * This,
  20150. _In_ REFGUID guid,
  20151. _Inout_ UINT *pDataSize,
  20152. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  20153. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  20154. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  20155. ID3D12Device13 * This,
  20156. _In_ REFGUID guid,
  20157. _In_ UINT DataSize,
  20158. _In_reads_bytes_opt_( DataSize ) const void *pData);
  20159. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  20160. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  20161. ID3D12Device13 * This,
  20162. _In_ REFGUID guid,
  20163. _In_opt_ const IUnknown *pData);
  20164. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  20165. HRESULT ( STDMETHODCALLTYPE *SetName )(
  20166. ID3D12Device13 * This,
  20167. _In_z_ LPCWSTR Name);
  20168. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  20169. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  20170. ID3D12Device13 * This);
  20171. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  20172. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  20173. ID3D12Device13 * This,
  20174. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  20175. REFIID riid,
  20176. _COM_Outptr_ void **ppCommandQueue);
  20177. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  20178. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  20179. ID3D12Device13 * This,
  20180. _In_ D3D12_COMMAND_LIST_TYPE type,
  20181. REFIID riid,
  20182. _COM_Outptr_ void **ppCommandAllocator);
  20183. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  20184. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  20185. ID3D12Device13 * This,
  20186. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  20187. REFIID riid,
  20188. _COM_Outptr_ void **ppPipelineState);
  20189. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  20190. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  20191. ID3D12Device13 * This,
  20192. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  20193. REFIID riid,
  20194. _COM_Outptr_ void **ppPipelineState);
  20195. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  20196. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  20197. ID3D12Device13 * This,
  20198. _In_ UINT nodeMask,
  20199. _In_ D3D12_COMMAND_LIST_TYPE type,
  20200. _In_ ID3D12CommandAllocator *pCommandAllocator,
  20201. _In_opt_ ID3D12PipelineState *pInitialState,
  20202. REFIID riid,
  20203. _COM_Outptr_ void **ppCommandList);
  20204. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  20205. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  20206. ID3D12Device13 * This,
  20207. D3D12_FEATURE Feature,
  20208. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  20209. UINT FeatureSupportDataSize);
  20210. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  20211. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  20212. ID3D12Device13 * This,
  20213. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  20214. REFIID riid,
  20215. _COM_Outptr_ void **ppvHeap);
  20216. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  20217. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  20218. ID3D12Device13 * This,
  20219. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  20220. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  20221. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  20222. ID3D12Device13 * This,
  20223. _In_ UINT nodeMask,
  20224. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  20225. _In_ SIZE_T blobLengthInBytes,
  20226. REFIID riid,
  20227. _COM_Outptr_ void **ppvRootSignature);
  20228. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  20229. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  20230. ID3D12Device13 * This,
  20231. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  20232. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20233. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  20234. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  20235. ID3D12Device13 * This,
  20236. _In_opt_ ID3D12Resource *pResource,
  20237. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  20238. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20239. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  20240. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  20241. ID3D12Device13 * This,
  20242. _In_opt_ ID3D12Resource *pResource,
  20243. _In_opt_ ID3D12Resource *pCounterResource,
  20244. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  20245. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20246. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  20247. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  20248. ID3D12Device13 * This,
  20249. _In_opt_ ID3D12Resource *pResource,
  20250. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  20251. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20252. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  20253. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  20254. ID3D12Device13 * This,
  20255. _In_opt_ ID3D12Resource *pResource,
  20256. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  20257. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20258. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  20259. void ( STDMETHODCALLTYPE *CreateSampler )(
  20260. ID3D12Device13 * This,
  20261. _In_ const D3D12_SAMPLER_DESC *pDesc,
  20262. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20263. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  20264. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  20265. ID3D12Device13 * This,
  20266. _In_ UINT NumDestDescriptorRanges,
  20267. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  20268. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  20269. _In_ UINT NumSrcDescriptorRanges,
  20270. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  20271. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  20272. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  20273. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  20274. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  20275. ID3D12Device13 * This,
  20276. _In_ UINT NumDescriptors,
  20277. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  20278. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  20279. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  20280. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  20281. #if !defined(_WIN32)
  20282. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  20283. ID3D12Device13 * This,
  20284. _In_ UINT visibleMask,
  20285. _In_ UINT numResourceDescs,
  20286. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  20287. #else
  20288. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  20289. ID3D12Device13 * This,
  20290. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20291. _In_ UINT visibleMask,
  20292. _In_ UINT numResourceDescs,
  20293. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  20294. #endif
  20295. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  20296. #if !defined(_WIN32)
  20297. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  20298. ID3D12Device13 * This,
  20299. _In_ UINT nodeMask,
  20300. D3D12_HEAP_TYPE heapType);
  20301. #else
  20302. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  20303. ID3D12Device13 * This,
  20304. D3D12_HEAP_PROPERTIES * RetVal,
  20305. _In_ UINT nodeMask,
  20306. D3D12_HEAP_TYPE heapType);
  20307. #endif
  20308. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  20309. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  20310. ID3D12Device13 * This,
  20311. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20312. D3D12_HEAP_FLAGS HeapFlags,
  20313. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20314. D3D12_RESOURCE_STATES InitialResourceState,
  20315. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20316. REFIID riidResource,
  20317. _COM_Outptr_opt_ void **ppvResource);
  20318. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  20319. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  20320. ID3D12Device13 * This,
  20321. _In_ const D3D12_HEAP_DESC *pDesc,
  20322. REFIID riid,
  20323. _COM_Outptr_opt_ void **ppvHeap);
  20324. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  20325. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  20326. ID3D12Device13 * This,
  20327. _In_ ID3D12Heap *pHeap,
  20328. UINT64 HeapOffset,
  20329. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20330. D3D12_RESOURCE_STATES InitialState,
  20331. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20332. REFIID riid,
  20333. _COM_Outptr_opt_ void **ppvResource);
  20334. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  20335. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  20336. ID3D12Device13 * This,
  20337. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20338. D3D12_RESOURCE_STATES InitialState,
  20339. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20340. REFIID riid,
  20341. _COM_Outptr_opt_ void **ppvResource);
  20342. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  20343. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  20344. ID3D12Device13 * This,
  20345. _In_ ID3D12DeviceChild *pObject,
  20346. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  20347. DWORD Access,
  20348. _In_opt_ LPCWSTR Name,
  20349. _Out_ HANDLE *pHandle);
  20350. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  20351. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  20352. ID3D12Device13 * This,
  20353. _In_ HANDLE NTHandle,
  20354. REFIID riid,
  20355. _COM_Outptr_opt_ void **ppvObj);
  20356. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  20357. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  20358. ID3D12Device13 * This,
  20359. _In_ LPCWSTR Name,
  20360. DWORD Access,
  20361. /* [annotation][out] */
  20362. _Out_ HANDLE *pNTHandle);
  20363. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  20364. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  20365. ID3D12Device13 * This,
  20366. UINT NumObjects,
  20367. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  20368. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  20369. HRESULT ( STDMETHODCALLTYPE *Evict )(
  20370. ID3D12Device13 * This,
  20371. UINT NumObjects,
  20372. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  20373. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  20374. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  20375. ID3D12Device13 * This,
  20376. UINT64 InitialValue,
  20377. D3D12_FENCE_FLAGS Flags,
  20378. REFIID riid,
  20379. _COM_Outptr_ void **ppFence);
  20380. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  20381. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  20382. ID3D12Device13 * This);
  20383. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  20384. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  20385. ID3D12Device13 * This,
  20386. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  20387. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  20388. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  20389. UINT64 BaseOffset,
  20390. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  20391. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  20392. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  20393. _Out_opt_ UINT64 *pTotalBytes);
  20394. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  20395. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  20396. ID3D12Device13 * This,
  20397. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  20398. REFIID riid,
  20399. _COM_Outptr_opt_ void **ppvHeap);
  20400. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  20401. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  20402. ID3D12Device13 * This,
  20403. BOOL Enable);
  20404. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  20405. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  20406. ID3D12Device13 * This,
  20407. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  20408. _In_opt_ ID3D12RootSignature *pRootSignature,
  20409. REFIID riid,
  20410. _COM_Outptr_opt_ void **ppvCommandSignature);
  20411. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  20412. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  20413. ID3D12Device13 * This,
  20414. _In_ ID3D12Resource *pTiledResource,
  20415. _Out_opt_ UINT *pNumTilesForEntireResource,
  20416. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  20417. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  20418. _Inout_opt_ UINT *pNumSubresourceTilings,
  20419. _In_ UINT FirstSubresourceTilingToGet,
  20420. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  20421. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  20422. #if !defined(_WIN32)
  20423. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  20424. ID3D12Device13 * This);
  20425. #else
  20426. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  20427. ID3D12Device13 * This,
  20428. LUID * RetVal);
  20429. #endif
  20430. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  20431. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  20432. ID3D12Device13 * This,
  20433. _In_reads_(BlobLength) const void *pLibraryBlob,
  20434. SIZE_T BlobLength,
  20435. REFIID riid,
  20436. _COM_Outptr_ void **ppPipelineLibrary);
  20437. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  20438. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  20439. ID3D12Device13 * This,
  20440. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  20441. _In_reads_(NumFences) const UINT64 *pFenceValues,
  20442. UINT NumFences,
  20443. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  20444. HANDLE hEvent);
  20445. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  20446. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  20447. ID3D12Device13 * This,
  20448. UINT NumObjects,
  20449. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  20450. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  20451. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  20452. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  20453. ID3D12Device13 * This,
  20454. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  20455. REFIID riid,
  20456. _COM_Outptr_ void **ppPipelineState);
  20457. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  20458. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  20459. ID3D12Device13 * This,
  20460. _In_ const void *pAddress,
  20461. REFIID riid,
  20462. _COM_Outptr_ void **ppvHeap);
  20463. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  20464. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  20465. ID3D12Device13 * This,
  20466. _In_ HANDLE hFileMapping,
  20467. REFIID riid,
  20468. _COM_Outptr_ void **ppvHeap);
  20469. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  20470. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  20471. ID3D12Device13 * This,
  20472. D3D12_RESIDENCY_FLAGS Flags,
  20473. UINT NumObjects,
  20474. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  20475. _In_ ID3D12Fence *pFenceToSignal,
  20476. UINT64 FenceValueToSignal);
  20477. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  20478. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  20479. ID3D12Device13 * This,
  20480. _In_ UINT nodeMask,
  20481. _In_ D3D12_COMMAND_LIST_TYPE type,
  20482. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  20483. REFIID riid,
  20484. _COM_Outptr_ void **ppCommandList);
  20485. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  20486. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  20487. ID3D12Device13 * This,
  20488. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  20489. _In_ REFIID riid,
  20490. _COM_Outptr_ void **ppSession);
  20491. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  20492. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  20493. ID3D12Device13 * This,
  20494. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20495. D3D12_HEAP_FLAGS HeapFlags,
  20496. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20497. D3D12_RESOURCE_STATES InitialResourceState,
  20498. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20499. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20500. REFIID riidResource,
  20501. _COM_Outptr_opt_ void **ppvResource);
  20502. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  20503. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  20504. ID3D12Device13 * This,
  20505. _In_ const D3D12_HEAP_DESC *pDesc,
  20506. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20507. REFIID riid,
  20508. _COM_Outptr_opt_ void **ppvHeap);
  20509. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  20510. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  20511. ID3D12Device13 * This,
  20512. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20513. D3D12_RESOURCE_STATES InitialState,
  20514. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20515. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20516. REFIID riid,
  20517. _COM_Outptr_opt_ void **ppvResource);
  20518. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  20519. #if !defined(_WIN32)
  20520. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  20521. ID3D12Device13 * This,
  20522. UINT visibleMask,
  20523. UINT numResourceDescs,
  20524. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  20525. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20526. #else
  20527. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  20528. ID3D12Device13 * This,
  20529. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20530. UINT visibleMask,
  20531. UINT numResourceDescs,
  20532. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  20533. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20534. #endif
  20535. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  20536. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  20537. ID3D12Device13 * This,
  20538. _In_ ID3D12LifetimeOwner *pOwner,
  20539. REFIID riid,
  20540. _COM_Outptr_ void **ppvTracker);
  20541. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  20542. void ( STDMETHODCALLTYPE *RemoveDevice )(
  20543. ID3D12Device13 * This);
  20544. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  20545. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  20546. ID3D12Device13 * This,
  20547. _Inout_ UINT *pNumMetaCommands,
  20548. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  20549. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  20550. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  20551. ID3D12Device13 * This,
  20552. _In_ REFGUID CommandId,
  20553. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  20554. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  20555. _Inout_ UINT *pParameterCount,
  20556. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  20557. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  20558. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  20559. ID3D12Device13 * This,
  20560. _In_ REFGUID CommandId,
  20561. _In_ UINT NodeMask,
  20562. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  20563. _In_ SIZE_T CreationParametersDataSizeInBytes,
  20564. REFIID riid,
  20565. _COM_Outptr_ void **ppMetaCommand);
  20566. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  20567. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  20568. ID3D12Device13 * This,
  20569. const D3D12_STATE_OBJECT_DESC *pDesc,
  20570. REFIID riid,
  20571. _COM_Outptr_ void **ppStateObject);
  20572. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  20573. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  20574. ID3D12Device13 * This,
  20575. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  20576. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  20577. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  20578. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  20579. ID3D12Device13 * This,
  20580. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  20581. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  20582. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  20583. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  20584. ID3D12Device13 * This,
  20585. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  20586. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  20587. _In_opt_ HANDLE hEventToSignalUponCompletion,
  20588. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  20589. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  20590. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  20591. ID3D12Device13 * This,
  20592. const D3D12_STATE_OBJECT_DESC *pAddition,
  20593. ID3D12StateObject *pStateObjectToGrowFrom,
  20594. REFIID riid,
  20595. _COM_Outptr_ void **ppNewStateObject);
  20596. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  20597. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  20598. ID3D12Device13 * This,
  20599. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  20600. _In_ REFIID riid,
  20601. _COM_Outptr_ void **ppSession);
  20602. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  20603. #if !defined(_WIN32)
  20604. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  20605. ID3D12Device13 * This,
  20606. UINT visibleMask,
  20607. UINT numResourceDescs,
  20608. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20609. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20610. #else
  20611. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  20612. ID3D12Device13 * This,
  20613. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20614. UINT visibleMask,
  20615. UINT numResourceDescs,
  20616. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20617. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20618. #endif
  20619. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  20620. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  20621. ID3D12Device13 * This,
  20622. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20623. D3D12_HEAP_FLAGS HeapFlags,
  20624. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20625. D3D12_RESOURCE_STATES InitialResourceState,
  20626. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20627. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20628. REFIID riidResource,
  20629. _COM_Outptr_opt_ void **ppvResource);
  20630. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  20631. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  20632. ID3D12Device13 * This,
  20633. _In_ ID3D12Heap *pHeap,
  20634. UINT64 HeapOffset,
  20635. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20636. D3D12_RESOURCE_STATES InitialState,
  20637. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20638. REFIID riid,
  20639. _COM_Outptr_opt_ void **ppvResource);
  20640. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  20641. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  20642. ID3D12Device13 * This,
  20643. _In_opt_ ID3D12Resource *pTargetedResource,
  20644. _In_opt_ ID3D12Resource *pFeedbackResource,
  20645. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20646. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  20647. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  20648. ID3D12Device13 * This,
  20649. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  20650. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  20651. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  20652. UINT64 BaseOffset,
  20653. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  20654. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  20655. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  20656. _Out_opt_ UINT64 *pTotalBytes);
  20657. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  20658. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  20659. ID3D12Device13 * This,
  20660. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  20661. REFIID riid,
  20662. _COM_Outptr_opt_ void **ppvSession);
  20663. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  20664. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  20665. ID3D12Device13 * This,
  20666. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  20667. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  20668. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  20669. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  20670. ID3D12Device13 * This,
  20671. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  20672. REFIID CreatorID,
  20673. REFIID riid,
  20674. _COM_Outptr_ void **ppCommandQueue);
  20675. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  20676. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  20677. ID3D12Device13 * This,
  20678. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20679. D3D12_HEAP_FLAGS HeapFlags,
  20680. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20681. D3D12_BARRIER_LAYOUT InitialLayout,
  20682. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20683. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20684. UINT32 NumCastableFormats,
  20685. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20686. REFIID riidResource,
  20687. _COM_Outptr_opt_ void **ppvResource);
  20688. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  20689. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  20690. ID3D12Device13 * This,
  20691. _In_ ID3D12Heap *pHeap,
  20692. UINT64 HeapOffset,
  20693. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20694. D3D12_BARRIER_LAYOUT InitialLayout,
  20695. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20696. UINT32 NumCastableFormats,
  20697. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20698. REFIID riid,
  20699. _COM_Outptr_opt_ void **ppvResource);
  20700. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  20701. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  20702. ID3D12Device13 * This,
  20703. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20704. D3D12_BARRIER_LAYOUT InitialLayout,
  20705. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20706. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20707. UINT32 NumCastableFormats,
  20708. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20709. REFIID riid,
  20710. _COM_Outptr_opt_ void **ppvResource);
  20711. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  20712. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  20713. ID3D12Device13 * This,
  20714. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  20715. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20716. DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3)
  20717. #if !defined(_WIN32)
  20718. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  20719. ID3D12Device13 * This,
  20720. UINT visibleMask,
  20721. UINT numResourceDescs,
  20722. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20723. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  20724. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  20725. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20726. #else
  20727. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  20728. ID3D12Device13 * This,
  20729. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20730. UINT visibleMask,
  20731. UINT numResourceDescs,
  20732. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20733. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  20734. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  20735. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20736. #endif
  20737. DECLSPEC_XFGVIRT(ID3D12Device13, OpenExistingHeapFromAddress1)
  20738. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress1 )(
  20739. ID3D12Device13 * This,
  20740. _In_ const void *pAddress,
  20741. SIZE_T size,
  20742. REFIID riid,
  20743. _COM_Outptr_ void **ppvHeap);
  20744. END_INTERFACE
  20745. } ID3D12Device13Vtbl;
  20746. interface ID3D12Device13
  20747. {
  20748. CONST_VTBL struct ID3D12Device13Vtbl *lpVtbl;
  20749. };
  20750. #ifdef COBJMACROS
  20751. #define ID3D12Device13_QueryInterface(This,riid,ppvObject) \
  20752. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  20753. #define ID3D12Device13_AddRef(This) \
  20754. ( (This)->lpVtbl -> AddRef(This) )
  20755. #define ID3D12Device13_Release(This) \
  20756. ( (This)->lpVtbl -> Release(This) )
  20757. #define ID3D12Device13_GetPrivateData(This,guid,pDataSize,pData) \
  20758. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  20759. #define ID3D12Device13_SetPrivateData(This,guid,DataSize,pData) \
  20760. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  20761. #define ID3D12Device13_SetPrivateDataInterface(This,guid,pData) \
  20762. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  20763. #define ID3D12Device13_SetName(This,Name) \
  20764. ( (This)->lpVtbl -> SetName(This,Name) )
  20765. #define ID3D12Device13_GetNodeCount(This) \
  20766. ( (This)->lpVtbl -> GetNodeCount(This) )
  20767. #define ID3D12Device13_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  20768. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  20769. #define ID3D12Device13_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  20770. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  20771. #define ID3D12Device13_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  20772. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  20773. #define ID3D12Device13_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  20774. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  20775. #define ID3D12Device13_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  20776. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  20777. #define ID3D12Device13_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  20778. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  20779. #define ID3D12Device13_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  20780. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  20781. #define ID3D12Device13_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  20782. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  20783. #define ID3D12Device13_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  20784. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  20785. #define ID3D12Device13_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  20786. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  20787. #define ID3D12Device13_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  20788. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  20789. #define ID3D12Device13_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  20790. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  20791. #define ID3D12Device13_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  20792. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  20793. #define ID3D12Device13_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  20794. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  20795. #define ID3D12Device13_CreateSampler(This,pDesc,DestDescriptor) \
  20796. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  20797. #define ID3D12Device13_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  20798. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  20799. #define ID3D12Device13_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  20800. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  20801. #if !defined(_WIN32)
  20802. #define ID3D12Device13_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  20803. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  20804. #else
  20805. #define ID3D12Device13_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  20806. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  20807. #endif
  20808. #if !defined(_WIN32)
  20809. #define ID3D12Device13_GetCustomHeapProperties(This,nodeMask,heapType) \
  20810. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  20811. #else
  20812. #define ID3D12Device13_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  20813. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  20814. #endif
  20815. #define ID3D12Device13_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  20816. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  20817. #define ID3D12Device13_CreateHeap(This,pDesc,riid,ppvHeap) \
  20818. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  20819. #define ID3D12Device13_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20820. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20821. #define ID3D12Device13_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20822. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20823. #define ID3D12Device13_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  20824. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  20825. #define ID3D12Device13_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  20826. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  20827. #define ID3D12Device13_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  20828. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  20829. #define ID3D12Device13_MakeResident(This,NumObjects,ppObjects) \
  20830. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  20831. #define ID3D12Device13_Evict(This,NumObjects,ppObjects) \
  20832. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  20833. #define ID3D12Device13_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  20834. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  20835. #define ID3D12Device13_GetDeviceRemovedReason(This) \
  20836. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  20837. #define ID3D12Device13_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  20838. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  20839. #define ID3D12Device13_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  20840. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  20841. #define ID3D12Device13_SetStablePowerState(This,Enable) \
  20842. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  20843. #define ID3D12Device13_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  20844. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  20845. #define ID3D12Device13_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  20846. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  20847. #if !defined(_WIN32)
  20848. #define ID3D12Device13_GetAdapterLuid(This) \
  20849. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  20850. #else
  20851. #define ID3D12Device13_GetAdapterLuid(This,RetVal) \
  20852. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  20853. #endif
  20854. #define ID3D12Device13_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  20855. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  20856. #define ID3D12Device13_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  20857. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  20858. #define ID3D12Device13_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  20859. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  20860. #define ID3D12Device13_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  20861. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  20862. #define ID3D12Device13_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  20863. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  20864. #define ID3D12Device13_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  20865. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  20866. #define ID3D12Device13_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  20867. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  20868. #define ID3D12Device13_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  20869. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  20870. #define ID3D12Device13_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  20871. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  20872. #define ID3D12Device13_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  20873. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  20874. #define ID3D12Device13_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  20875. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  20876. #define ID3D12Device13_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  20877. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  20878. #if !defined(_WIN32)
  20879. #define ID3D12Device13_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20880. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20881. #else
  20882. #define ID3D12Device13_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20883. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20884. #endif
  20885. #define ID3D12Device13_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  20886. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  20887. #define ID3D12Device13_RemoveDevice(This) \
  20888. ( (This)->lpVtbl -> RemoveDevice(This) )
  20889. #define ID3D12Device13_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  20890. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  20891. #define ID3D12Device13_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  20892. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  20893. #define ID3D12Device13_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  20894. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  20895. #define ID3D12Device13_CreateStateObject(This,pDesc,riid,ppStateObject) \
  20896. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  20897. #define ID3D12Device13_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  20898. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  20899. #define ID3D12Device13_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  20900. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  20901. #define ID3D12Device13_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  20902. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  20903. #define ID3D12Device13_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  20904. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  20905. #define ID3D12Device13_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  20906. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  20907. #if !defined(_WIN32)
  20908. #define ID3D12Device13_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20909. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20910. #else
  20911. #define ID3D12Device13_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20912. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20913. #endif
  20914. #define ID3D12Device13_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  20915. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  20916. #define ID3D12Device13_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20917. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20918. #define ID3D12Device13_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  20919. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  20920. #define ID3D12Device13_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  20921. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  20922. #define ID3D12Device13_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  20923. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  20924. #define ID3D12Device13_ShaderCacheControl(This,Kinds,Control) \
  20925. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  20926. #define ID3D12Device13_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  20927. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  20928. #define ID3D12Device13_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  20929. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  20930. #define ID3D12Device13_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  20931. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  20932. #define ID3D12Device13_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  20933. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  20934. #define ID3D12Device13_CreateSampler2(This,pDesc,DestDescriptor) \
  20935. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  20936. #if !defined(_WIN32)
  20937. #define ID3D12Device13_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  20938. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  20939. #else
  20940. #define ID3D12Device13_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  20941. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  20942. #endif
  20943. #define ID3D12Device13_OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) \
  20944. ( (This)->lpVtbl -> OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) )
  20945. #endif /* COBJMACROS */
  20946. #endif /* C style interface */
  20947. #endif /* __ID3D12Device13_INTERFACE_DEFINED__ */
  20948. #ifndef __ID3D12Device14_INTERFACE_DEFINED__
  20949. #define __ID3D12Device14_INTERFACE_DEFINED__
  20950. /* interface ID3D12Device14 */
  20951. /* [unique][local][object][uuid] */
  20952. EXTERN_C const IID IID_ID3D12Device14;
  20953. #if defined(__cplusplus) && !defined(CINTERFACE)
  20954. MIDL_INTERFACE("5f6e592d-d895-44c2-8e4a-88ad4926d323")
  20955. ID3D12Device14 : public ID3D12Device13
  20956. {
  20957. public:
  20958. virtual HRESULT STDMETHODCALLTYPE CreateRootSignatureFromSubobjectInLibrary(
  20959. _In_ UINT nodeMask,
  20960. _In_reads_(blobLengthInBytes) const void *pLibraryBlob,
  20961. _In_ SIZE_T blobLengthInBytes,
  20962. _In_opt_ LPCWSTR subobjectName,
  20963. REFIID riid,
  20964. _COM_Outptr_ void **ppvRootSignature) = 0;
  20965. };
  20966. #else /* C style interface */
  20967. typedef struct ID3D12Device14Vtbl
  20968. {
  20969. BEGIN_INTERFACE
  20970. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  20971. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  20972. ID3D12Device14 * This,
  20973. REFIID riid,
  20974. _COM_Outptr_ void **ppvObject);
  20975. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  20976. ULONG ( STDMETHODCALLTYPE *AddRef )(
  20977. ID3D12Device14 * This);
  20978. DECLSPEC_XFGVIRT(IUnknown, Release)
  20979. ULONG ( STDMETHODCALLTYPE *Release )(
  20980. ID3D12Device14 * This);
  20981. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  20982. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  20983. ID3D12Device14 * This,
  20984. _In_ REFGUID guid,
  20985. _Inout_ UINT *pDataSize,
  20986. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  20987. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  20988. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  20989. ID3D12Device14 * This,
  20990. _In_ REFGUID guid,
  20991. _In_ UINT DataSize,
  20992. _In_reads_bytes_opt_( DataSize ) const void *pData);
  20993. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  20994. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  20995. ID3D12Device14 * This,
  20996. _In_ REFGUID guid,
  20997. _In_opt_ const IUnknown *pData);
  20998. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  20999. HRESULT ( STDMETHODCALLTYPE *SetName )(
  21000. ID3D12Device14 * This,
  21001. _In_z_ LPCWSTR Name);
  21002. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  21003. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  21004. ID3D12Device14 * This);
  21005. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  21006. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  21007. ID3D12Device14 * This,
  21008. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  21009. REFIID riid,
  21010. _COM_Outptr_ void **ppCommandQueue);
  21011. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  21012. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  21013. ID3D12Device14 * This,
  21014. _In_ D3D12_COMMAND_LIST_TYPE type,
  21015. REFIID riid,
  21016. _COM_Outptr_ void **ppCommandAllocator);
  21017. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  21018. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  21019. ID3D12Device14 * This,
  21020. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  21021. REFIID riid,
  21022. _COM_Outptr_ void **ppPipelineState);
  21023. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  21024. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  21025. ID3D12Device14 * This,
  21026. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  21027. REFIID riid,
  21028. _COM_Outptr_ void **ppPipelineState);
  21029. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  21030. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  21031. ID3D12Device14 * This,
  21032. _In_ UINT nodeMask,
  21033. _In_ D3D12_COMMAND_LIST_TYPE type,
  21034. _In_ ID3D12CommandAllocator *pCommandAllocator,
  21035. _In_opt_ ID3D12PipelineState *pInitialState,
  21036. REFIID riid,
  21037. _COM_Outptr_ void **ppCommandList);
  21038. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  21039. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  21040. ID3D12Device14 * This,
  21041. D3D12_FEATURE Feature,
  21042. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  21043. UINT FeatureSupportDataSize);
  21044. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  21045. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  21046. ID3D12Device14 * This,
  21047. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  21048. REFIID riid,
  21049. _COM_Outptr_ void **ppvHeap);
  21050. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  21051. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  21052. ID3D12Device14 * This,
  21053. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  21054. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  21055. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  21056. ID3D12Device14 * This,
  21057. _In_ UINT nodeMask,
  21058. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  21059. _In_ SIZE_T blobLengthInBytes,
  21060. REFIID riid,
  21061. _COM_Outptr_ void **ppvRootSignature);
  21062. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  21063. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  21064. ID3D12Device14 * This,
  21065. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  21066. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21067. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  21068. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  21069. ID3D12Device14 * This,
  21070. _In_opt_ ID3D12Resource *pResource,
  21071. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  21072. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21073. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  21074. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  21075. ID3D12Device14 * This,
  21076. _In_opt_ ID3D12Resource *pResource,
  21077. _In_opt_ ID3D12Resource *pCounterResource,
  21078. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  21079. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21080. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  21081. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  21082. ID3D12Device14 * This,
  21083. _In_opt_ ID3D12Resource *pResource,
  21084. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  21085. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21086. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  21087. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  21088. ID3D12Device14 * This,
  21089. _In_opt_ ID3D12Resource *pResource,
  21090. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  21091. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21092. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  21093. void ( STDMETHODCALLTYPE *CreateSampler )(
  21094. ID3D12Device14 * This,
  21095. _In_ const D3D12_SAMPLER_DESC *pDesc,
  21096. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21097. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  21098. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  21099. ID3D12Device14 * This,
  21100. _In_ UINT NumDestDescriptorRanges,
  21101. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  21102. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  21103. _In_ UINT NumSrcDescriptorRanges,
  21104. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  21105. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  21106. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  21107. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  21108. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  21109. ID3D12Device14 * This,
  21110. _In_ UINT NumDescriptors,
  21111. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  21112. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  21113. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  21114. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  21115. #if !defined(_WIN32)
  21116. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  21117. ID3D12Device14 * This,
  21118. _In_ UINT visibleMask,
  21119. _In_ UINT numResourceDescs,
  21120. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  21121. #else
  21122. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  21123. ID3D12Device14 * This,
  21124. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  21125. _In_ UINT visibleMask,
  21126. _In_ UINT numResourceDescs,
  21127. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  21128. #endif
  21129. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  21130. #if !defined(_WIN32)
  21131. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  21132. ID3D12Device14 * This,
  21133. _In_ UINT nodeMask,
  21134. D3D12_HEAP_TYPE heapType);
  21135. #else
  21136. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  21137. ID3D12Device14 * This,
  21138. D3D12_HEAP_PROPERTIES * RetVal,
  21139. _In_ UINT nodeMask,
  21140. D3D12_HEAP_TYPE heapType);
  21141. #endif
  21142. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  21143. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  21144. ID3D12Device14 * This,
  21145. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  21146. D3D12_HEAP_FLAGS HeapFlags,
  21147. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21148. D3D12_RESOURCE_STATES InitialResourceState,
  21149. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21150. REFIID riidResource,
  21151. _COM_Outptr_opt_ void **ppvResource);
  21152. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  21153. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  21154. ID3D12Device14 * This,
  21155. _In_ const D3D12_HEAP_DESC *pDesc,
  21156. REFIID riid,
  21157. _COM_Outptr_opt_ void **ppvHeap);
  21158. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  21159. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  21160. ID3D12Device14 * This,
  21161. _In_ ID3D12Heap *pHeap,
  21162. UINT64 HeapOffset,
  21163. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21164. D3D12_RESOURCE_STATES InitialState,
  21165. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21166. REFIID riid,
  21167. _COM_Outptr_opt_ void **ppvResource);
  21168. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  21169. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  21170. ID3D12Device14 * This,
  21171. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21172. D3D12_RESOURCE_STATES InitialState,
  21173. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21174. REFIID riid,
  21175. _COM_Outptr_opt_ void **ppvResource);
  21176. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  21177. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  21178. ID3D12Device14 * This,
  21179. _In_ ID3D12DeviceChild *pObject,
  21180. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  21181. DWORD Access,
  21182. _In_opt_ LPCWSTR Name,
  21183. _Out_ HANDLE *pHandle);
  21184. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  21185. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  21186. ID3D12Device14 * This,
  21187. _In_ HANDLE NTHandle,
  21188. REFIID riid,
  21189. _COM_Outptr_opt_ void **ppvObj);
  21190. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  21191. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  21192. ID3D12Device14 * This,
  21193. _In_ LPCWSTR Name,
  21194. DWORD Access,
  21195. /* [annotation][out] */
  21196. _Out_ HANDLE *pNTHandle);
  21197. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  21198. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  21199. ID3D12Device14 * This,
  21200. UINT NumObjects,
  21201. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  21202. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  21203. HRESULT ( STDMETHODCALLTYPE *Evict )(
  21204. ID3D12Device14 * This,
  21205. UINT NumObjects,
  21206. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  21207. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  21208. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  21209. ID3D12Device14 * This,
  21210. UINT64 InitialValue,
  21211. D3D12_FENCE_FLAGS Flags,
  21212. REFIID riid,
  21213. _COM_Outptr_ void **ppFence);
  21214. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  21215. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  21216. ID3D12Device14 * This);
  21217. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  21218. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  21219. ID3D12Device14 * This,
  21220. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  21221. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  21222. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  21223. UINT64 BaseOffset,
  21224. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  21225. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  21226. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  21227. _Out_opt_ UINT64 *pTotalBytes);
  21228. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  21229. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  21230. ID3D12Device14 * This,
  21231. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  21232. REFIID riid,
  21233. _COM_Outptr_opt_ void **ppvHeap);
  21234. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  21235. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  21236. ID3D12Device14 * This,
  21237. BOOL Enable);
  21238. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  21239. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  21240. ID3D12Device14 * This,
  21241. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  21242. _In_opt_ ID3D12RootSignature *pRootSignature,
  21243. REFIID riid,
  21244. _COM_Outptr_opt_ void **ppvCommandSignature);
  21245. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  21246. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  21247. ID3D12Device14 * This,
  21248. _In_ ID3D12Resource *pTiledResource,
  21249. _Out_opt_ UINT *pNumTilesForEntireResource,
  21250. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  21251. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  21252. _Inout_opt_ UINT *pNumSubresourceTilings,
  21253. _In_ UINT FirstSubresourceTilingToGet,
  21254. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  21255. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  21256. #if !defined(_WIN32)
  21257. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  21258. ID3D12Device14 * This);
  21259. #else
  21260. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  21261. ID3D12Device14 * This,
  21262. LUID * RetVal);
  21263. #endif
  21264. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  21265. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  21266. ID3D12Device14 * This,
  21267. _In_reads_(BlobLength) const void *pLibraryBlob,
  21268. SIZE_T BlobLength,
  21269. REFIID riid,
  21270. _COM_Outptr_ void **ppPipelineLibrary);
  21271. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  21272. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  21273. ID3D12Device14 * This,
  21274. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  21275. _In_reads_(NumFences) const UINT64 *pFenceValues,
  21276. UINT NumFences,
  21277. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  21278. HANDLE hEvent);
  21279. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  21280. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  21281. ID3D12Device14 * This,
  21282. UINT NumObjects,
  21283. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  21284. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  21285. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  21286. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  21287. ID3D12Device14 * This,
  21288. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  21289. REFIID riid,
  21290. _COM_Outptr_ void **ppPipelineState);
  21291. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  21292. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  21293. ID3D12Device14 * This,
  21294. _In_ const void *pAddress,
  21295. REFIID riid,
  21296. _COM_Outptr_ void **ppvHeap);
  21297. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  21298. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  21299. ID3D12Device14 * This,
  21300. _In_ HANDLE hFileMapping,
  21301. REFIID riid,
  21302. _COM_Outptr_ void **ppvHeap);
  21303. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  21304. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  21305. ID3D12Device14 * This,
  21306. D3D12_RESIDENCY_FLAGS Flags,
  21307. UINT NumObjects,
  21308. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  21309. _In_ ID3D12Fence *pFenceToSignal,
  21310. UINT64 FenceValueToSignal);
  21311. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  21312. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  21313. ID3D12Device14 * This,
  21314. _In_ UINT nodeMask,
  21315. _In_ D3D12_COMMAND_LIST_TYPE type,
  21316. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  21317. REFIID riid,
  21318. _COM_Outptr_ void **ppCommandList);
  21319. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  21320. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  21321. ID3D12Device14 * This,
  21322. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  21323. _In_ REFIID riid,
  21324. _COM_Outptr_ void **ppSession);
  21325. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  21326. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  21327. ID3D12Device14 * This,
  21328. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  21329. D3D12_HEAP_FLAGS HeapFlags,
  21330. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21331. D3D12_RESOURCE_STATES InitialResourceState,
  21332. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21333. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21334. REFIID riidResource,
  21335. _COM_Outptr_opt_ void **ppvResource);
  21336. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  21337. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  21338. ID3D12Device14 * This,
  21339. _In_ const D3D12_HEAP_DESC *pDesc,
  21340. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21341. REFIID riid,
  21342. _COM_Outptr_opt_ void **ppvHeap);
  21343. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  21344. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  21345. ID3D12Device14 * This,
  21346. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21347. D3D12_RESOURCE_STATES InitialState,
  21348. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21349. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21350. REFIID riid,
  21351. _COM_Outptr_opt_ void **ppvResource);
  21352. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  21353. #if !defined(_WIN32)
  21354. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  21355. ID3D12Device14 * This,
  21356. UINT visibleMask,
  21357. UINT numResourceDescs,
  21358. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  21359. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21360. #else
  21361. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  21362. ID3D12Device14 * This,
  21363. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  21364. UINT visibleMask,
  21365. UINT numResourceDescs,
  21366. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  21367. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21368. #endif
  21369. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  21370. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  21371. ID3D12Device14 * This,
  21372. _In_ ID3D12LifetimeOwner *pOwner,
  21373. REFIID riid,
  21374. _COM_Outptr_ void **ppvTracker);
  21375. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  21376. void ( STDMETHODCALLTYPE *RemoveDevice )(
  21377. ID3D12Device14 * This);
  21378. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  21379. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  21380. ID3D12Device14 * This,
  21381. _Inout_ UINT *pNumMetaCommands,
  21382. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  21383. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  21384. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  21385. ID3D12Device14 * This,
  21386. _In_ REFGUID CommandId,
  21387. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  21388. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  21389. _Inout_ UINT *pParameterCount,
  21390. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  21391. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  21392. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  21393. ID3D12Device14 * This,
  21394. _In_ REFGUID CommandId,
  21395. _In_ UINT NodeMask,
  21396. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  21397. _In_ SIZE_T CreationParametersDataSizeInBytes,
  21398. REFIID riid,
  21399. _COM_Outptr_ void **ppMetaCommand);
  21400. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  21401. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  21402. ID3D12Device14 * This,
  21403. const D3D12_STATE_OBJECT_DESC *pDesc,
  21404. REFIID riid,
  21405. _COM_Outptr_ void **ppStateObject);
  21406. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  21407. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  21408. ID3D12Device14 * This,
  21409. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  21410. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  21411. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  21412. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  21413. ID3D12Device14 * This,
  21414. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  21415. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  21416. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  21417. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  21418. ID3D12Device14 * This,
  21419. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  21420. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  21421. _In_opt_ HANDLE hEventToSignalUponCompletion,
  21422. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  21423. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  21424. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  21425. ID3D12Device14 * This,
  21426. const D3D12_STATE_OBJECT_DESC *pAddition,
  21427. ID3D12StateObject *pStateObjectToGrowFrom,
  21428. REFIID riid,
  21429. _COM_Outptr_ void **ppNewStateObject);
  21430. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  21431. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  21432. ID3D12Device14 * This,
  21433. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  21434. _In_ REFIID riid,
  21435. _COM_Outptr_ void **ppSession);
  21436. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  21437. #if !defined(_WIN32)
  21438. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  21439. ID3D12Device14 * This,
  21440. UINT visibleMask,
  21441. UINT numResourceDescs,
  21442. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  21443. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21444. #else
  21445. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  21446. ID3D12Device14 * This,
  21447. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  21448. UINT visibleMask,
  21449. UINT numResourceDescs,
  21450. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  21451. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21452. #endif
  21453. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  21454. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  21455. ID3D12Device14 * This,
  21456. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  21457. D3D12_HEAP_FLAGS HeapFlags,
  21458. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  21459. D3D12_RESOURCE_STATES InitialResourceState,
  21460. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21461. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21462. REFIID riidResource,
  21463. _COM_Outptr_opt_ void **ppvResource);
  21464. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  21465. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  21466. ID3D12Device14 * This,
  21467. _In_ ID3D12Heap *pHeap,
  21468. UINT64 HeapOffset,
  21469. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  21470. D3D12_RESOURCE_STATES InitialState,
  21471. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21472. REFIID riid,
  21473. _COM_Outptr_opt_ void **ppvResource);
  21474. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  21475. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  21476. ID3D12Device14 * This,
  21477. _In_opt_ ID3D12Resource *pTargetedResource,
  21478. _In_opt_ ID3D12Resource *pFeedbackResource,
  21479. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21480. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  21481. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  21482. ID3D12Device14 * This,
  21483. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  21484. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  21485. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  21486. UINT64 BaseOffset,
  21487. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  21488. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  21489. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  21490. _Out_opt_ UINT64 *pTotalBytes);
  21491. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  21492. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  21493. ID3D12Device14 * This,
  21494. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  21495. REFIID riid,
  21496. _COM_Outptr_opt_ void **ppvSession);
  21497. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  21498. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  21499. ID3D12Device14 * This,
  21500. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  21501. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  21502. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  21503. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  21504. ID3D12Device14 * This,
  21505. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  21506. REFIID CreatorID,
  21507. REFIID riid,
  21508. _COM_Outptr_ void **ppCommandQueue);
  21509. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  21510. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  21511. ID3D12Device14 * This,
  21512. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  21513. D3D12_HEAP_FLAGS HeapFlags,
  21514. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  21515. D3D12_BARRIER_LAYOUT InitialLayout,
  21516. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21517. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21518. UINT32 NumCastableFormats,
  21519. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  21520. REFIID riidResource,
  21521. _COM_Outptr_opt_ void **ppvResource);
  21522. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  21523. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  21524. ID3D12Device14 * This,
  21525. _In_ ID3D12Heap *pHeap,
  21526. UINT64 HeapOffset,
  21527. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  21528. D3D12_BARRIER_LAYOUT InitialLayout,
  21529. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21530. UINT32 NumCastableFormats,
  21531. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  21532. REFIID riid,
  21533. _COM_Outptr_opt_ void **ppvResource);
  21534. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  21535. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  21536. ID3D12Device14 * This,
  21537. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21538. D3D12_BARRIER_LAYOUT InitialLayout,
  21539. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21540. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21541. UINT32 NumCastableFormats,
  21542. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  21543. REFIID riid,
  21544. _COM_Outptr_opt_ void **ppvResource);
  21545. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  21546. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  21547. ID3D12Device14 * This,
  21548. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  21549. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21550. DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3)
  21551. #if !defined(_WIN32)
  21552. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  21553. ID3D12Device14 * This,
  21554. UINT visibleMask,
  21555. UINT numResourceDescs,
  21556. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  21557. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  21558. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  21559. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21560. #else
  21561. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  21562. ID3D12Device14 * This,
  21563. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  21564. UINT visibleMask,
  21565. UINT numResourceDescs,
  21566. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  21567. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  21568. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  21569. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21570. #endif
  21571. DECLSPEC_XFGVIRT(ID3D12Device13, OpenExistingHeapFromAddress1)
  21572. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress1 )(
  21573. ID3D12Device14 * This,
  21574. _In_ const void *pAddress,
  21575. SIZE_T size,
  21576. REFIID riid,
  21577. _COM_Outptr_ void **ppvHeap);
  21578. DECLSPEC_XFGVIRT(ID3D12Device14, CreateRootSignatureFromSubobjectInLibrary)
  21579. HRESULT ( STDMETHODCALLTYPE *CreateRootSignatureFromSubobjectInLibrary )(
  21580. ID3D12Device14 * This,
  21581. _In_ UINT nodeMask,
  21582. _In_reads_(blobLengthInBytes) const void *pLibraryBlob,
  21583. _In_ SIZE_T blobLengthInBytes,
  21584. _In_opt_ LPCWSTR subobjectName,
  21585. REFIID riid,
  21586. _COM_Outptr_ void **ppvRootSignature);
  21587. END_INTERFACE
  21588. } ID3D12Device14Vtbl;
  21589. interface ID3D12Device14
  21590. {
  21591. CONST_VTBL struct ID3D12Device14Vtbl *lpVtbl;
  21592. };
  21593. #ifdef COBJMACROS
  21594. #define ID3D12Device14_QueryInterface(This,riid,ppvObject) \
  21595. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  21596. #define ID3D12Device14_AddRef(This) \
  21597. ( (This)->lpVtbl -> AddRef(This) )
  21598. #define ID3D12Device14_Release(This) \
  21599. ( (This)->lpVtbl -> Release(This) )
  21600. #define ID3D12Device14_GetPrivateData(This,guid,pDataSize,pData) \
  21601. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  21602. #define ID3D12Device14_SetPrivateData(This,guid,DataSize,pData) \
  21603. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  21604. #define ID3D12Device14_SetPrivateDataInterface(This,guid,pData) \
  21605. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  21606. #define ID3D12Device14_SetName(This,Name) \
  21607. ( (This)->lpVtbl -> SetName(This,Name) )
  21608. #define ID3D12Device14_GetNodeCount(This) \
  21609. ( (This)->lpVtbl -> GetNodeCount(This) )
  21610. #define ID3D12Device14_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  21611. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  21612. #define ID3D12Device14_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  21613. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  21614. #define ID3D12Device14_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  21615. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  21616. #define ID3D12Device14_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  21617. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  21618. #define ID3D12Device14_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  21619. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  21620. #define ID3D12Device14_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  21621. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  21622. #define ID3D12Device14_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  21623. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  21624. #define ID3D12Device14_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  21625. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  21626. #define ID3D12Device14_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  21627. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  21628. #define ID3D12Device14_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  21629. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  21630. #define ID3D12Device14_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  21631. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  21632. #define ID3D12Device14_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  21633. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  21634. #define ID3D12Device14_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  21635. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  21636. #define ID3D12Device14_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  21637. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  21638. #define ID3D12Device14_CreateSampler(This,pDesc,DestDescriptor) \
  21639. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  21640. #define ID3D12Device14_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  21641. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  21642. #define ID3D12Device14_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  21643. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  21644. #if !defined(_WIN32)
  21645. #define ID3D12Device14_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  21646. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  21647. #else
  21648. #define ID3D12Device14_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  21649. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  21650. #endif
  21651. #if !defined(_WIN32)
  21652. #define ID3D12Device14_GetCustomHeapProperties(This,nodeMask,heapType) \
  21653. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  21654. #else
  21655. #define ID3D12Device14_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  21656. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  21657. #endif
  21658. #define ID3D12Device14_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  21659. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  21660. #define ID3D12Device14_CreateHeap(This,pDesc,riid,ppvHeap) \
  21661. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  21662. #define ID3D12Device14_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  21663. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  21664. #define ID3D12Device14_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  21665. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  21666. #define ID3D12Device14_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  21667. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  21668. #define ID3D12Device14_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  21669. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  21670. #define ID3D12Device14_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  21671. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  21672. #define ID3D12Device14_MakeResident(This,NumObjects,ppObjects) \
  21673. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  21674. #define ID3D12Device14_Evict(This,NumObjects,ppObjects) \
  21675. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  21676. #define ID3D12Device14_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  21677. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  21678. #define ID3D12Device14_GetDeviceRemovedReason(This) \
  21679. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  21680. #define ID3D12Device14_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  21681. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  21682. #define ID3D12Device14_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  21683. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  21684. #define ID3D12Device14_SetStablePowerState(This,Enable) \
  21685. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  21686. #define ID3D12Device14_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  21687. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  21688. #define ID3D12Device14_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  21689. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  21690. #if !defined(_WIN32)
  21691. #define ID3D12Device14_GetAdapterLuid(This) \
  21692. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  21693. #else
  21694. #define ID3D12Device14_GetAdapterLuid(This,RetVal) \
  21695. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  21696. #endif
  21697. #define ID3D12Device14_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  21698. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  21699. #define ID3D12Device14_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  21700. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  21701. #define ID3D12Device14_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  21702. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  21703. #define ID3D12Device14_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  21704. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  21705. #define ID3D12Device14_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  21706. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  21707. #define ID3D12Device14_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  21708. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  21709. #define ID3D12Device14_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  21710. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  21711. #define ID3D12Device14_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  21712. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  21713. #define ID3D12Device14_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  21714. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  21715. #define ID3D12Device14_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  21716. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  21717. #define ID3D12Device14_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  21718. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  21719. #define ID3D12Device14_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  21720. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  21721. #if !defined(_WIN32)
  21722. #define ID3D12Device14_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21723. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21724. #else
  21725. #define ID3D12Device14_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21726. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21727. #endif
  21728. #define ID3D12Device14_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  21729. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  21730. #define ID3D12Device14_RemoveDevice(This) \
  21731. ( (This)->lpVtbl -> RemoveDevice(This) )
  21732. #define ID3D12Device14_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  21733. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  21734. #define ID3D12Device14_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  21735. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  21736. #define ID3D12Device14_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  21737. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  21738. #define ID3D12Device14_CreateStateObject(This,pDesc,riid,ppStateObject) \
  21739. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  21740. #define ID3D12Device14_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  21741. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  21742. #define ID3D12Device14_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  21743. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  21744. #define ID3D12Device14_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  21745. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  21746. #define ID3D12Device14_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  21747. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  21748. #define ID3D12Device14_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  21749. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  21750. #if !defined(_WIN32)
  21751. #define ID3D12Device14_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21752. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21753. #else
  21754. #define ID3D12Device14_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21755. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21756. #endif
  21757. #define ID3D12Device14_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  21758. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  21759. #define ID3D12Device14_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  21760. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  21761. #define ID3D12Device14_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  21762. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  21763. #define ID3D12Device14_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  21764. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  21765. #define ID3D12Device14_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  21766. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  21767. #define ID3D12Device14_ShaderCacheControl(This,Kinds,Control) \
  21768. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  21769. #define ID3D12Device14_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  21770. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  21771. #define ID3D12Device14_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  21772. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  21773. #define ID3D12Device14_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  21774. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  21775. #define ID3D12Device14_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  21776. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  21777. #define ID3D12Device14_CreateSampler2(This,pDesc,DestDescriptor) \
  21778. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  21779. #if !defined(_WIN32)
  21780. #define ID3D12Device14_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  21781. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  21782. #else
  21783. #define ID3D12Device14_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  21784. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  21785. #endif
  21786. #define ID3D12Device14_OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) \
  21787. ( (This)->lpVtbl -> OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) )
  21788. #define ID3D12Device14_CreateRootSignatureFromSubobjectInLibrary(This,nodeMask,pLibraryBlob,blobLengthInBytes,subobjectName,riid,ppvRootSignature) \
  21789. ( (This)->lpVtbl -> CreateRootSignatureFromSubobjectInLibrary(This,nodeMask,pLibraryBlob,blobLengthInBytes,subobjectName,riid,ppvRootSignature) )
  21790. #endif /* COBJMACROS */
  21791. #endif /* C style interface */
  21792. #endif /* __ID3D12Device14_INTERFACE_DEFINED__ */
  21793. #ifndef __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__
  21794. #define __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__
  21795. /* interface ID3D12VirtualizationGuestDevice */
  21796. /* [unique][local][object][uuid] */
  21797. EXTERN_C const IID IID_ID3D12VirtualizationGuestDevice;
  21798. #if defined(__cplusplus) && !defined(CINTERFACE)
  21799. MIDL_INTERFACE("bc66d368-7373-4943-8757-fc87dc79e476")
  21800. ID3D12VirtualizationGuestDevice : public IUnknown
  21801. {
  21802. public:
  21803. virtual HRESULT STDMETHODCALLTYPE ShareWithHost(
  21804. _In_ ID3D12DeviceChild *pObject,
  21805. _Out_ HANDLE *pHandle) = 0;
  21806. virtual HRESULT STDMETHODCALLTYPE CreateFenceFd(
  21807. _In_ ID3D12Fence *pFence,
  21808. UINT64 FenceValue,
  21809. _Out_ int *pFenceFd) = 0;
  21810. };
  21811. #else /* C style interface */
  21812. typedef struct ID3D12VirtualizationGuestDeviceVtbl
  21813. {
  21814. BEGIN_INTERFACE
  21815. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  21816. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  21817. ID3D12VirtualizationGuestDevice * This,
  21818. REFIID riid,
  21819. _COM_Outptr_ void **ppvObject);
  21820. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  21821. ULONG ( STDMETHODCALLTYPE *AddRef )(
  21822. ID3D12VirtualizationGuestDevice * This);
  21823. DECLSPEC_XFGVIRT(IUnknown, Release)
  21824. ULONG ( STDMETHODCALLTYPE *Release )(
  21825. ID3D12VirtualizationGuestDevice * This);
  21826. DECLSPEC_XFGVIRT(ID3D12VirtualizationGuestDevice, ShareWithHost)
  21827. HRESULT ( STDMETHODCALLTYPE *ShareWithHost )(
  21828. ID3D12VirtualizationGuestDevice * This,
  21829. _In_ ID3D12DeviceChild *pObject,
  21830. _Out_ HANDLE *pHandle);
  21831. DECLSPEC_XFGVIRT(ID3D12VirtualizationGuestDevice, CreateFenceFd)
  21832. HRESULT ( STDMETHODCALLTYPE *CreateFenceFd )(
  21833. ID3D12VirtualizationGuestDevice * This,
  21834. _In_ ID3D12Fence *pFence,
  21835. UINT64 FenceValue,
  21836. _Out_ int *pFenceFd);
  21837. END_INTERFACE
  21838. } ID3D12VirtualizationGuestDeviceVtbl;
  21839. interface ID3D12VirtualizationGuestDevice
  21840. {
  21841. CONST_VTBL struct ID3D12VirtualizationGuestDeviceVtbl *lpVtbl;
  21842. };
  21843. #ifdef COBJMACROS
  21844. #define ID3D12VirtualizationGuestDevice_QueryInterface(This,riid,ppvObject) \
  21845. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  21846. #define ID3D12VirtualizationGuestDevice_AddRef(This) \
  21847. ( (This)->lpVtbl -> AddRef(This) )
  21848. #define ID3D12VirtualizationGuestDevice_Release(This) \
  21849. ( (This)->lpVtbl -> Release(This) )
  21850. #define ID3D12VirtualizationGuestDevice_ShareWithHost(This,pObject,pHandle) \
  21851. ( (This)->lpVtbl -> ShareWithHost(This,pObject,pHandle) )
  21852. #define ID3D12VirtualizationGuestDevice_CreateFenceFd(This,pFence,FenceValue,pFenceFd) \
  21853. ( (This)->lpVtbl -> CreateFenceFd(This,pFence,FenceValue,pFenceFd) )
  21854. #endif /* COBJMACROS */
  21855. #endif /* C style interface */
  21856. #endif /* __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__ */
  21857. #ifndef __ID3D12Tools_INTERFACE_DEFINED__
  21858. #define __ID3D12Tools_INTERFACE_DEFINED__
  21859. /* interface ID3D12Tools */
  21860. /* [unique][local][object][uuid] */
  21861. EXTERN_C const IID IID_ID3D12Tools;
  21862. #if defined(__cplusplus) && !defined(CINTERFACE)
  21863. MIDL_INTERFACE("7071e1f0-e84b-4b33-974f-12fa49de65c5")
  21864. ID3D12Tools : public IUnknown
  21865. {
  21866. public:
  21867. virtual void STDMETHODCALLTYPE EnableShaderInstrumentation(
  21868. BOOL bEnable) = 0;
  21869. virtual BOOL STDMETHODCALLTYPE ShaderInstrumentationEnabled( void) = 0;
  21870. };
  21871. #else /* C style interface */
  21872. typedef struct ID3D12ToolsVtbl
  21873. {
  21874. BEGIN_INTERFACE
  21875. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  21876. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  21877. ID3D12Tools * This,
  21878. REFIID riid,
  21879. _COM_Outptr_ void **ppvObject);
  21880. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  21881. ULONG ( STDMETHODCALLTYPE *AddRef )(
  21882. ID3D12Tools * This);
  21883. DECLSPEC_XFGVIRT(IUnknown, Release)
  21884. ULONG ( STDMETHODCALLTYPE *Release )(
  21885. ID3D12Tools * This);
  21886. DECLSPEC_XFGVIRT(ID3D12Tools, EnableShaderInstrumentation)
  21887. void ( STDMETHODCALLTYPE *EnableShaderInstrumentation )(
  21888. ID3D12Tools * This,
  21889. BOOL bEnable);
  21890. DECLSPEC_XFGVIRT(ID3D12Tools, ShaderInstrumentationEnabled)
  21891. BOOL ( STDMETHODCALLTYPE *ShaderInstrumentationEnabled )(
  21892. ID3D12Tools * This);
  21893. END_INTERFACE
  21894. } ID3D12ToolsVtbl;
  21895. interface ID3D12Tools
  21896. {
  21897. CONST_VTBL struct ID3D12ToolsVtbl *lpVtbl;
  21898. };
  21899. #ifdef COBJMACROS
  21900. #define ID3D12Tools_QueryInterface(This,riid,ppvObject) \
  21901. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  21902. #define ID3D12Tools_AddRef(This) \
  21903. ( (This)->lpVtbl -> AddRef(This) )
  21904. #define ID3D12Tools_Release(This) \
  21905. ( (This)->lpVtbl -> Release(This) )
  21906. #define ID3D12Tools_EnableShaderInstrumentation(This,bEnable) \
  21907. ( (This)->lpVtbl -> EnableShaderInstrumentation(This,bEnable) )
  21908. #define ID3D12Tools_ShaderInstrumentationEnabled(This) \
  21909. ( (This)->lpVtbl -> ShaderInstrumentationEnabled(This) )
  21910. #endif /* COBJMACROS */
  21911. #endif /* C style interface */
  21912. #endif /* __ID3D12Tools_INTERFACE_DEFINED__ */
  21913. /* interface __MIDL_itf_d3d12_0000_0062 */
  21914. /* [local] */
  21915. typedef struct D3D12_SUBRESOURCE_DATA
  21916. {
  21917. const void *pData;
  21918. LONG_PTR RowPitch;
  21919. LONG_PTR SlicePitch;
  21920. } D3D12_SUBRESOURCE_DATA;
  21921. typedef struct D3D12_MEMCPY_DEST
  21922. {
  21923. void *pData;
  21924. SIZE_T RowPitch;
  21925. SIZE_T SlicePitch;
  21926. } D3D12_MEMCPY_DEST;
  21927. #if !defined( D3D12_IGNORE_SDK_LAYERS )
  21928. #include "d3d12sdklayers.h"
  21929. #endif
  21930. ///////////////////////////////////////////////////////////////////////////
  21931. // D3D12CreateDevice
  21932. // ------------------
  21933. //
  21934. // pAdapter
  21935. // If NULL, D3D12CreateDevice will choose the primary adapter.
  21936. // If non-NULL, D3D12CreateDevice will use the provided adapter.
  21937. // MinimumFeatureLevel
  21938. // The minimum feature level required for successful device creation.
  21939. // riid
  21940. // The interface IID of the device to be returned. Expected: ID3D12Device.
  21941. // ppDevice
  21942. // Pointer to returned interface. May be NULL.
  21943. //
  21944. // Return Values
  21945. // Any of those documented for
  21946. // CreateDXGIFactory1
  21947. // IDXGIFactory::EnumAdapters
  21948. // D3D12CreateDevice
  21949. //
  21950. ///////////////////////////////////////////////////////////////////////////
  21951. typedef HRESULT (WINAPI* PFN_D3D12_CREATE_DEVICE)( _In_opt_ IUnknown*,
  21952. D3D_FEATURE_LEVEL,
  21953. _In_ REFIID, _COM_Outptr_opt_ void** );
  21954. HRESULT WINAPI D3D12CreateDevice(
  21955. _In_opt_ IUnknown* pAdapter,
  21956. D3D_FEATURE_LEVEL MinimumFeatureLevel,
  21957. _In_ REFIID riid, // Expected: ID3D12Device
  21958. _COM_Outptr_opt_ void** ppDevice );
  21959. typedef HRESULT (WINAPI* PFN_D3D12_GET_DEBUG_INTERFACE)( _In_ REFIID, _COM_Outptr_opt_ void** );
  21960. HRESULT WINAPI D3D12GetDebugInterface( _In_ REFIID riid, _COM_Outptr_opt_ void** ppvDebug );
  21961. // --------------------------------------------------------------------------------------------------------------------------------
  21962. // D3D12EnableExperimentalFeatures
  21963. //
  21964. // Pass in a list of feature GUIDs to be enabled together.
  21965. //
  21966. // If a particular feature requires some configuration information on enablement, it will have
  21967. // a configuration struct that can be passed alongside the GUID.
  21968. //
  21969. // Some features might use an interface IID as the GUID. For these, once the feature is enabled via
  21970. // D3D12EnableExperimentalFeatures, D3D12GetDebugInterface can then be called with the IID to retrieve the interface
  21971. // for manipulating the feature. This allows for control that might not cleanly be expressed by just
  21972. // the configuration struct that D3D12EnableExperimentalFeatures provides.
  21973. //
  21974. // If this method is called and a change to existing feature enablement is made,
  21975. // all current D3D12 devices are set to DEVICE_REMOVED state, since under the covers there is really only one
  21976. // singleton device for a process. Removing the devices when configuration changes prevents
  21977. // mismatched expectations of how a device is supposed to work after it has been created from the app's point of view.
  21978. //
  21979. // The call returns E_NOINTERFACE if an unrecognized feature is passed in or Windows Developer mode is not on.
  21980. // The call returns E_INVALIDARG if the configuration of a feature is incorrect, the set of features passed
  21981. // in are known to be incompatible with each other, or other errors.
  21982. // Returns S_OK otherwise.
  21983. //
  21984. // --------------------------------------------------------------------------------------------------------------------------------
  21985. HRESULT WINAPI D3D12EnableExperimentalFeatures(
  21986. UINT NumFeatures,
  21987. _In_count_(NumFeatures) const IID* pIIDs,
  21988. _In_opt_count_(NumFeatures) void* pConfigurationStructs,
  21989. _In_opt_count_(NumFeatures) UINT* pConfigurationStructSizes);
  21990. // --------------------------------------------------------------------------------------------------------------------------------
  21991. // Experimental Feature: D3D12ExperimentalShaderModels
  21992. //
  21993. // Use with D3D12EnableExperimentalFeatures to enable experimental shader model support,
  21994. // meaning shader models that haven't been finalized for use in retail.
  21995. //
  21996. // Enabling D3D12ExperimentalShaderModels needs no configuration struct, pass NULL in the pConfigurationStructs array.
  21997. //
  21998. // --------------------------------------------------------------------------------------------------------------------------------
  21999. static const UUID D3D12ExperimentalShaderModels = { /* 76f5573e-f13a-40f5-b297-81ce9e18933f */
  22000. 0x76f5573e,
  22001. 0xf13a,
  22002. 0x40f5,
  22003. { 0xb2, 0x97, 0x81, 0xce, 0x9e, 0x18, 0x93, 0x3f }
  22004. };
  22005. // --------------------------------------------------------------------------------------------------------------------------------
  22006. // Experimental Feature: D3D12TiledResourceTier4
  22007. //
  22008. // Use with D3D12EnableExperimentalFeatures to enable tiled resource tier 4 support,
  22009. // meaning texture tile data-inheritance is allowed.
  22010. //
  22011. // Enabling D3D12TiledResourceTier4 needs no configuration struct, pass NULL in the pConfigurationStructs array.
  22012. //
  22013. // --------------------------------------------------------------------------------------------------------------------------------
  22014. static const UUID D3D12TiledResourceTier4 = { /* c9c4725f-a81a-4f56-8c5b-c51039d694fb */
  22015. 0xc9c4725f,
  22016. 0xa81a,
  22017. 0x4f56,
  22018. { 0x8c, 0x5b, 0xc5, 0x10, 0x39, 0xd6, 0x94, 0xfb }
  22019. };
  22020. // --------------------------------------------------------------------------------------------------------------------------------
  22021. // D3D12GetInterface
  22022. //
  22023. // Retrieve Global D3D12 Interface.
  22024. //
  22025. DEFINE_GUID(CLSID_D3D12Debug, 0xf2352aeb, 0xdd84, 0x49fe, 0xb9, 0x7b, 0xa9, 0xdc, 0xfd, 0xcc, 0x1b, 0x4f);
  22026. DEFINE_GUID(CLSID_D3D12Tools, 0xe38216b1, 0x3c8c, 0x4833, 0xaa, 0x09, 0x0a, 0x06, 0xb6, 0x5d, 0x96, 0xc8);
  22027. DEFINE_GUID(CLSID_D3D12DeviceRemovedExtendedData, 0x4a75bbc4, 0x9ff4, 0x4ad8, 0x9f, 0x18, 0xab, 0xae, 0x84, 0xdc, 0x5f, 0xf2);
  22028. DEFINE_GUID(CLSID_D3D12SDKConfiguration, 0x7cda6aca, 0xa03e, 0x49c8, 0x94, 0x58, 0x03, 0x34, 0xd2, 0x0e, 0x07, 0xce);
  22029. DEFINE_GUID(CLSID_D3D12DeviceFactory, 0x114863bf, 0xc386, 0x4aee, 0xb3, 0x9d, 0x8f, 0x0b, 0xbb, 0x06, 0x29, 0x55);
  22030. typedef HRESULT (WINAPI* PFN_D3D12_GET_INTERFACE)( _In_ REFCLSID, _In_ REFIID, _COM_Outptr_opt_ void** );
  22031. HRESULT WINAPI D3D12GetInterface( _In_ REFCLSID rclsid, _In_ REFIID riid, _COM_Outptr_opt_ void** ppvDebug );
  22032. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0062_v0_0_c_ifspec;
  22033. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0062_v0_0_s_ifspec;
  22034. #ifndef __ID3D12SDKConfiguration_INTERFACE_DEFINED__
  22035. #define __ID3D12SDKConfiguration_INTERFACE_DEFINED__
  22036. /* interface ID3D12SDKConfiguration */
  22037. /* [unique][local][object][uuid] */
  22038. EXTERN_C const IID IID_ID3D12SDKConfiguration;
  22039. #if defined(__cplusplus) && !defined(CINTERFACE)
  22040. MIDL_INTERFACE("e9eb5314-33aa-42b2-a718-d77f58b1f1c7")
  22041. ID3D12SDKConfiguration : public IUnknown
  22042. {
  22043. public:
  22044. virtual HRESULT STDMETHODCALLTYPE SetSDKVersion(
  22045. UINT SDKVersion,
  22046. _In_z_ LPCSTR SDKPath) = 0;
  22047. };
  22048. #else /* C style interface */
  22049. typedef struct ID3D12SDKConfigurationVtbl
  22050. {
  22051. BEGIN_INTERFACE
  22052. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22053. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22054. ID3D12SDKConfiguration * This,
  22055. REFIID riid,
  22056. _COM_Outptr_ void **ppvObject);
  22057. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22058. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22059. ID3D12SDKConfiguration * This);
  22060. DECLSPEC_XFGVIRT(IUnknown, Release)
  22061. ULONG ( STDMETHODCALLTYPE *Release )(
  22062. ID3D12SDKConfiguration * This);
  22063. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration, SetSDKVersion)
  22064. HRESULT ( STDMETHODCALLTYPE *SetSDKVersion )(
  22065. ID3D12SDKConfiguration * This,
  22066. UINT SDKVersion,
  22067. _In_z_ LPCSTR SDKPath);
  22068. END_INTERFACE
  22069. } ID3D12SDKConfigurationVtbl;
  22070. interface ID3D12SDKConfiguration
  22071. {
  22072. CONST_VTBL struct ID3D12SDKConfigurationVtbl *lpVtbl;
  22073. };
  22074. #ifdef COBJMACROS
  22075. #define ID3D12SDKConfiguration_QueryInterface(This,riid,ppvObject) \
  22076. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22077. #define ID3D12SDKConfiguration_AddRef(This) \
  22078. ( (This)->lpVtbl -> AddRef(This) )
  22079. #define ID3D12SDKConfiguration_Release(This) \
  22080. ( (This)->lpVtbl -> Release(This) )
  22081. #define ID3D12SDKConfiguration_SetSDKVersion(This,SDKVersion,SDKPath) \
  22082. ( (This)->lpVtbl -> SetSDKVersion(This,SDKVersion,SDKPath) )
  22083. #endif /* COBJMACROS */
  22084. #endif /* C style interface */
  22085. #endif /* __ID3D12SDKConfiguration_INTERFACE_DEFINED__ */
  22086. #ifndef __ID3D12SDKConfiguration1_INTERFACE_DEFINED__
  22087. #define __ID3D12SDKConfiguration1_INTERFACE_DEFINED__
  22088. /* interface ID3D12SDKConfiguration1 */
  22089. /* [unique][local][object][uuid] */
  22090. EXTERN_C const IID IID_ID3D12SDKConfiguration1;
  22091. #if defined(__cplusplus) && !defined(CINTERFACE)
  22092. MIDL_INTERFACE("8aaf9303-ad25-48b9-9a57-d9c37e009d9f")
  22093. ID3D12SDKConfiguration1 : public ID3D12SDKConfiguration
  22094. {
  22095. public:
  22096. virtual HRESULT STDMETHODCALLTYPE CreateDeviceFactory(
  22097. UINT SDKVersion,
  22098. _In_ LPCSTR SDKPath,
  22099. REFIID riid,
  22100. _COM_Outptr_ void **ppvFactory) = 0;
  22101. virtual void STDMETHODCALLTYPE FreeUnusedSDKs( void) = 0;
  22102. };
  22103. #else /* C style interface */
  22104. typedef struct ID3D12SDKConfiguration1Vtbl
  22105. {
  22106. BEGIN_INTERFACE
  22107. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22108. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22109. ID3D12SDKConfiguration1 * This,
  22110. REFIID riid,
  22111. _COM_Outptr_ void **ppvObject);
  22112. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22113. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22114. ID3D12SDKConfiguration1 * This);
  22115. DECLSPEC_XFGVIRT(IUnknown, Release)
  22116. ULONG ( STDMETHODCALLTYPE *Release )(
  22117. ID3D12SDKConfiguration1 * This);
  22118. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration, SetSDKVersion)
  22119. HRESULT ( STDMETHODCALLTYPE *SetSDKVersion )(
  22120. ID3D12SDKConfiguration1 * This,
  22121. UINT SDKVersion,
  22122. _In_z_ LPCSTR SDKPath);
  22123. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration1, CreateDeviceFactory)
  22124. HRESULT ( STDMETHODCALLTYPE *CreateDeviceFactory )(
  22125. ID3D12SDKConfiguration1 * This,
  22126. UINT SDKVersion,
  22127. _In_ LPCSTR SDKPath,
  22128. REFIID riid,
  22129. _COM_Outptr_ void **ppvFactory);
  22130. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration1, FreeUnusedSDKs)
  22131. void ( STDMETHODCALLTYPE *FreeUnusedSDKs )(
  22132. ID3D12SDKConfiguration1 * This);
  22133. END_INTERFACE
  22134. } ID3D12SDKConfiguration1Vtbl;
  22135. interface ID3D12SDKConfiguration1
  22136. {
  22137. CONST_VTBL struct ID3D12SDKConfiguration1Vtbl *lpVtbl;
  22138. };
  22139. #ifdef COBJMACROS
  22140. #define ID3D12SDKConfiguration1_QueryInterface(This,riid,ppvObject) \
  22141. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22142. #define ID3D12SDKConfiguration1_AddRef(This) \
  22143. ( (This)->lpVtbl -> AddRef(This) )
  22144. #define ID3D12SDKConfiguration1_Release(This) \
  22145. ( (This)->lpVtbl -> Release(This) )
  22146. #define ID3D12SDKConfiguration1_SetSDKVersion(This,SDKVersion,SDKPath) \
  22147. ( (This)->lpVtbl -> SetSDKVersion(This,SDKVersion,SDKPath) )
  22148. #define ID3D12SDKConfiguration1_CreateDeviceFactory(This,SDKVersion,SDKPath,riid,ppvFactory) \
  22149. ( (This)->lpVtbl -> CreateDeviceFactory(This,SDKVersion,SDKPath,riid,ppvFactory) )
  22150. #define ID3D12SDKConfiguration1_FreeUnusedSDKs(This) \
  22151. ( (This)->lpVtbl -> FreeUnusedSDKs(This) )
  22152. #endif /* COBJMACROS */
  22153. #endif /* C style interface */
  22154. #endif /* __ID3D12SDKConfiguration1_INTERFACE_DEFINED__ */
  22155. /* interface __MIDL_itf_d3d12_0000_0064 */
  22156. /* [local] */
  22157. typedef
  22158. enum D3D12_DEVICE_FACTORY_FLAGS
  22159. {
  22160. D3D12_DEVICE_FACTORY_FLAG_NONE = 0,
  22161. D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_EXISTING_DEVICE = 0x1,
  22162. D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_INCOMPATIBLE_EXISTING_DEVICE = 0x2,
  22163. D3D12_DEVICE_FACTORY_FLAG_DISALLOW_STORING_NEW_DEVICE_AS_SINGLETON = 0x4
  22164. } D3D12_DEVICE_FACTORY_FLAGS;
  22165. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DEVICE_FACTORY_FLAGS )
  22166. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0064_v0_0_c_ifspec;
  22167. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0064_v0_0_s_ifspec;
  22168. #ifndef __ID3D12DeviceFactory_INTERFACE_DEFINED__
  22169. #define __ID3D12DeviceFactory_INTERFACE_DEFINED__
  22170. /* interface ID3D12DeviceFactory */
  22171. /* [unique][local][object][uuid] */
  22172. EXTERN_C const IID IID_ID3D12DeviceFactory;
  22173. #if defined(__cplusplus) && !defined(CINTERFACE)
  22174. MIDL_INTERFACE("61f307d3-d34e-4e7c-8374-3ba4de23cccb")
  22175. ID3D12DeviceFactory : public IUnknown
  22176. {
  22177. public:
  22178. virtual HRESULT STDMETHODCALLTYPE InitializeFromGlobalState( void) = 0;
  22179. virtual HRESULT STDMETHODCALLTYPE ApplyToGlobalState( void) = 0;
  22180. virtual HRESULT STDMETHODCALLTYPE SetFlags(
  22181. D3D12_DEVICE_FACTORY_FLAGS flags) = 0;
  22182. virtual D3D12_DEVICE_FACTORY_FLAGS STDMETHODCALLTYPE GetFlags( void) = 0;
  22183. virtual HRESULT STDMETHODCALLTYPE GetConfigurationInterface(
  22184. REFCLSID clsid,
  22185. REFIID iid,
  22186. _COM_Outptr_ void **ppv) = 0;
  22187. virtual HRESULT STDMETHODCALLTYPE EnableExperimentalFeatures(
  22188. UINT NumFeatures,
  22189. _In_reads_(NumFeatures) const IID *pIIDs,
  22190. _In_reads_opt_(NumFeatures) void *pConfigurationStructs,
  22191. _In_reads_opt_(NumFeatures) UINT *pConfigurationStructSizes) = 0;
  22192. virtual HRESULT STDMETHODCALLTYPE CreateDevice(
  22193. _In_opt_ IUnknown *adapter,
  22194. D3D_FEATURE_LEVEL FeatureLevel,
  22195. REFIID riid,
  22196. _COM_Outptr_opt_ void **ppvDevice) = 0;
  22197. };
  22198. #else /* C style interface */
  22199. typedef struct ID3D12DeviceFactoryVtbl
  22200. {
  22201. BEGIN_INTERFACE
  22202. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22203. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22204. ID3D12DeviceFactory * This,
  22205. REFIID riid,
  22206. _COM_Outptr_ void **ppvObject);
  22207. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22208. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22209. ID3D12DeviceFactory * This);
  22210. DECLSPEC_XFGVIRT(IUnknown, Release)
  22211. ULONG ( STDMETHODCALLTYPE *Release )(
  22212. ID3D12DeviceFactory * This);
  22213. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, InitializeFromGlobalState)
  22214. HRESULT ( STDMETHODCALLTYPE *InitializeFromGlobalState )(
  22215. ID3D12DeviceFactory * This);
  22216. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, ApplyToGlobalState)
  22217. HRESULT ( STDMETHODCALLTYPE *ApplyToGlobalState )(
  22218. ID3D12DeviceFactory * This);
  22219. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, SetFlags)
  22220. HRESULT ( STDMETHODCALLTYPE *SetFlags )(
  22221. ID3D12DeviceFactory * This,
  22222. D3D12_DEVICE_FACTORY_FLAGS flags);
  22223. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, GetFlags)
  22224. D3D12_DEVICE_FACTORY_FLAGS ( STDMETHODCALLTYPE *GetFlags )(
  22225. ID3D12DeviceFactory * This);
  22226. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, GetConfigurationInterface)
  22227. HRESULT ( STDMETHODCALLTYPE *GetConfigurationInterface )(
  22228. ID3D12DeviceFactory * This,
  22229. REFCLSID clsid,
  22230. REFIID iid,
  22231. _COM_Outptr_ void **ppv);
  22232. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, EnableExperimentalFeatures)
  22233. HRESULT ( STDMETHODCALLTYPE *EnableExperimentalFeatures )(
  22234. ID3D12DeviceFactory * This,
  22235. UINT NumFeatures,
  22236. _In_reads_(NumFeatures) const IID *pIIDs,
  22237. _In_reads_opt_(NumFeatures) void *pConfigurationStructs,
  22238. _In_reads_opt_(NumFeatures) UINT *pConfigurationStructSizes);
  22239. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, CreateDevice)
  22240. HRESULT ( STDMETHODCALLTYPE *CreateDevice )(
  22241. ID3D12DeviceFactory * This,
  22242. _In_opt_ IUnknown *adapter,
  22243. D3D_FEATURE_LEVEL FeatureLevel,
  22244. REFIID riid,
  22245. _COM_Outptr_opt_ void **ppvDevice);
  22246. END_INTERFACE
  22247. } ID3D12DeviceFactoryVtbl;
  22248. interface ID3D12DeviceFactory
  22249. {
  22250. CONST_VTBL struct ID3D12DeviceFactoryVtbl *lpVtbl;
  22251. };
  22252. #ifdef COBJMACROS
  22253. #define ID3D12DeviceFactory_QueryInterface(This,riid,ppvObject) \
  22254. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22255. #define ID3D12DeviceFactory_AddRef(This) \
  22256. ( (This)->lpVtbl -> AddRef(This) )
  22257. #define ID3D12DeviceFactory_Release(This) \
  22258. ( (This)->lpVtbl -> Release(This) )
  22259. #define ID3D12DeviceFactory_InitializeFromGlobalState(This) \
  22260. ( (This)->lpVtbl -> InitializeFromGlobalState(This) )
  22261. #define ID3D12DeviceFactory_ApplyToGlobalState(This) \
  22262. ( (This)->lpVtbl -> ApplyToGlobalState(This) )
  22263. #define ID3D12DeviceFactory_SetFlags(This,flags) \
  22264. ( (This)->lpVtbl -> SetFlags(This,flags) )
  22265. #define ID3D12DeviceFactory_GetFlags(This) \
  22266. ( (This)->lpVtbl -> GetFlags(This) )
  22267. #define ID3D12DeviceFactory_GetConfigurationInterface(This,clsid,iid,ppv) \
  22268. ( (This)->lpVtbl -> GetConfigurationInterface(This,clsid,iid,ppv) )
  22269. #define ID3D12DeviceFactory_EnableExperimentalFeatures(This,NumFeatures,pIIDs,pConfigurationStructs,pConfigurationStructSizes) \
  22270. ( (This)->lpVtbl -> EnableExperimentalFeatures(This,NumFeatures,pIIDs,pConfigurationStructs,pConfigurationStructSizes) )
  22271. #define ID3D12DeviceFactory_CreateDevice(This,adapter,FeatureLevel,riid,ppvDevice) \
  22272. ( (This)->lpVtbl -> CreateDevice(This,adapter,FeatureLevel,riid,ppvDevice) )
  22273. #endif /* COBJMACROS */
  22274. #endif /* C style interface */
  22275. #endif /* __ID3D12DeviceFactory_INTERFACE_DEFINED__ */
  22276. /* interface __MIDL_itf_d3d12_0000_0065 */
  22277. /* [local] */
  22278. typedef
  22279. enum D3D12_DEVICE_FLAGS
  22280. {
  22281. D3D12_DEVICE_FLAG_NONE = 0,
  22282. D3D12_DEVICE_FLAG_DEBUG_LAYER_ENABLED = 0x1,
  22283. D3D12_DEVICE_FLAG_GPU_BASED_VALIDATION_ENABLED = 0x2,
  22284. D3D12_DEVICE_FLAG_SYNCHRONIZED_COMMAND_QUEUE_VALIDATION_DISABLED = 0x4,
  22285. D3D12_DEVICE_FLAG_DRED_AUTO_BREADCRUMBS_ENABLED = 0x8,
  22286. D3D12_DEVICE_FLAG_DRED_PAGE_FAULT_REPORTING_ENABLED = 0x10,
  22287. D3D12_DEVICE_FLAG_DRED_WATSON_REPORTING_ENABLED = 0x20,
  22288. D3D12_DEVICE_FLAG_DRED_BREADCRUMB_CONTEXT_ENABLED = 0x40,
  22289. D3D12_DEVICE_FLAG_DRED_USE_MARKERS_ONLY_BREADCRUMBS = 0x80,
  22290. D3D12_DEVICE_FLAG_SHADER_INSTRUMENTATION_ENABLED = 0x100,
  22291. D3D12_DEVICE_FLAG_AUTO_DEBUG_NAME_ENABLED = 0x200,
  22292. D3D12_DEVICE_FLAG_FORCE_LEGACY_STATE_VALIDATION = 0x400
  22293. } D3D12_DEVICE_FLAGS;
  22294. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DEVICE_FLAGS )
  22295. typedef struct D3D12_DEVICE_CONFIGURATION_DESC
  22296. {
  22297. D3D12_DEVICE_FLAGS Flags;
  22298. UINT GPUBasedValidationFlags;
  22299. UINT SDKVersion;
  22300. UINT NumEnabledExperimentalFeatures;
  22301. } D3D12_DEVICE_CONFIGURATION_DESC;
  22302. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0065_v0_0_c_ifspec;
  22303. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0065_v0_0_s_ifspec;
  22304. #ifndef __ID3D12DeviceConfiguration_INTERFACE_DEFINED__
  22305. #define __ID3D12DeviceConfiguration_INTERFACE_DEFINED__
  22306. /* interface ID3D12DeviceConfiguration */
  22307. /* [unique][local][object][uuid] */
  22308. EXTERN_C const IID IID_ID3D12DeviceConfiguration;
  22309. #if defined(__cplusplus) && !defined(CINTERFACE)
  22310. MIDL_INTERFACE("78dbf87b-f766-422b-a61c-c8c446bdb9ad")
  22311. ID3D12DeviceConfiguration : public IUnknown
  22312. {
  22313. public:
  22314. #if defined(_MSC_VER) || !defined(_WIN32)
  22315. virtual D3D12_DEVICE_CONFIGURATION_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  22316. #else
  22317. virtual D3D12_DEVICE_CONFIGURATION_DESC *STDMETHODCALLTYPE GetDesc(
  22318. D3D12_DEVICE_CONFIGURATION_DESC * RetVal) = 0;
  22319. #endif
  22320. virtual HRESULT STDMETHODCALLTYPE GetEnabledExperimentalFeatures(
  22321. _Out_writes_(NumGuids) GUID *pGuids,
  22322. UINT NumGuids) = 0;
  22323. virtual HRESULT STDMETHODCALLTYPE SerializeVersionedRootSignature(
  22324. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc,
  22325. _COM_Outptr_ ID3DBlob **ppResult,
  22326. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError) = 0;
  22327. virtual HRESULT STDMETHODCALLTYPE CreateVersionedRootSignatureDeserializer(
  22328. _In_reads_bytes_(Size) const void *pBlob,
  22329. SIZE_T Size,
  22330. REFIID riid,
  22331. _COM_Outptr_ void **ppvDeserializer) = 0;
  22332. };
  22333. #else /* C style interface */
  22334. typedef struct ID3D12DeviceConfigurationVtbl
  22335. {
  22336. BEGIN_INTERFACE
  22337. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22338. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22339. ID3D12DeviceConfiguration * This,
  22340. REFIID riid,
  22341. _COM_Outptr_ void **ppvObject);
  22342. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22343. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22344. ID3D12DeviceConfiguration * This);
  22345. DECLSPEC_XFGVIRT(IUnknown, Release)
  22346. ULONG ( STDMETHODCALLTYPE *Release )(
  22347. ID3D12DeviceConfiguration * This);
  22348. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetDesc)
  22349. #if !defined(_WIN32)
  22350. D3D12_DEVICE_CONFIGURATION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  22351. ID3D12DeviceConfiguration * This);
  22352. #else
  22353. D3D12_DEVICE_CONFIGURATION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  22354. ID3D12DeviceConfiguration * This,
  22355. D3D12_DEVICE_CONFIGURATION_DESC * RetVal);
  22356. #endif
  22357. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetEnabledExperimentalFeatures)
  22358. HRESULT ( STDMETHODCALLTYPE *GetEnabledExperimentalFeatures )(
  22359. ID3D12DeviceConfiguration * This,
  22360. _Out_writes_(NumGuids) GUID *pGuids,
  22361. UINT NumGuids);
  22362. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, SerializeVersionedRootSignature)
  22363. HRESULT ( STDMETHODCALLTYPE *SerializeVersionedRootSignature )(
  22364. ID3D12DeviceConfiguration * This,
  22365. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc,
  22366. _COM_Outptr_ ID3DBlob **ppResult,
  22367. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError);
  22368. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, CreateVersionedRootSignatureDeserializer)
  22369. HRESULT ( STDMETHODCALLTYPE *CreateVersionedRootSignatureDeserializer )(
  22370. ID3D12DeviceConfiguration * This,
  22371. _In_reads_bytes_(Size) const void *pBlob,
  22372. SIZE_T Size,
  22373. REFIID riid,
  22374. _COM_Outptr_ void **ppvDeserializer);
  22375. END_INTERFACE
  22376. } ID3D12DeviceConfigurationVtbl;
  22377. interface ID3D12DeviceConfiguration
  22378. {
  22379. CONST_VTBL struct ID3D12DeviceConfigurationVtbl *lpVtbl;
  22380. };
  22381. #ifdef COBJMACROS
  22382. #define ID3D12DeviceConfiguration_QueryInterface(This,riid,ppvObject) \
  22383. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22384. #define ID3D12DeviceConfiguration_AddRef(This) \
  22385. ( (This)->lpVtbl -> AddRef(This) )
  22386. #define ID3D12DeviceConfiguration_Release(This) \
  22387. ( (This)->lpVtbl -> Release(This) )
  22388. #if !defined(_WIN32)
  22389. #define ID3D12DeviceConfiguration_GetDesc(This) \
  22390. ( (This)->lpVtbl -> GetDesc(This) )
  22391. #else
  22392. #define ID3D12DeviceConfiguration_GetDesc(This,RetVal) \
  22393. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  22394. #endif
  22395. #define ID3D12DeviceConfiguration_GetEnabledExperimentalFeatures(This,pGuids,NumGuids) \
  22396. ( (This)->lpVtbl -> GetEnabledExperimentalFeatures(This,pGuids,NumGuids) )
  22397. #define ID3D12DeviceConfiguration_SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) \
  22398. ( (This)->lpVtbl -> SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) )
  22399. #define ID3D12DeviceConfiguration_CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) \
  22400. ( (This)->lpVtbl -> CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) )
  22401. #endif /* COBJMACROS */
  22402. #endif /* C style interface */
  22403. #endif /* __ID3D12DeviceConfiguration_INTERFACE_DEFINED__ */
  22404. #ifndef __ID3D12DeviceConfiguration1_INTERFACE_DEFINED__
  22405. #define __ID3D12DeviceConfiguration1_INTERFACE_DEFINED__
  22406. /* interface ID3D12DeviceConfiguration1 */
  22407. /* [unique][local][object][uuid] */
  22408. EXTERN_C const IID IID_ID3D12DeviceConfiguration1;
  22409. #if defined(__cplusplus) && !defined(CINTERFACE)
  22410. MIDL_INTERFACE("ed342442-6343-4e16-bb82-a3a577874e56")
  22411. ID3D12DeviceConfiguration1 : public ID3D12DeviceConfiguration
  22412. {
  22413. public:
  22414. virtual HRESULT STDMETHODCALLTYPE CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(
  22415. _In_reads_bytes_(Size) const void *pLibraryBlob,
  22416. SIZE_T Size,
  22417. LPCWSTR RootSignatureSubobjectName,
  22418. REFIID riid,
  22419. _COM_Outptr_ void **ppvDeserializer) = 0;
  22420. };
  22421. #else /* C style interface */
  22422. typedef struct ID3D12DeviceConfiguration1Vtbl
  22423. {
  22424. BEGIN_INTERFACE
  22425. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22426. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22427. ID3D12DeviceConfiguration1 * This,
  22428. REFIID riid,
  22429. _COM_Outptr_ void **ppvObject);
  22430. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22431. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22432. ID3D12DeviceConfiguration1 * This);
  22433. DECLSPEC_XFGVIRT(IUnknown, Release)
  22434. ULONG ( STDMETHODCALLTYPE *Release )(
  22435. ID3D12DeviceConfiguration1 * This);
  22436. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetDesc)
  22437. #if !defined(_WIN32)
  22438. D3D12_DEVICE_CONFIGURATION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  22439. ID3D12DeviceConfiguration1 * This);
  22440. #else
  22441. D3D12_DEVICE_CONFIGURATION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  22442. ID3D12DeviceConfiguration1 * This,
  22443. D3D12_DEVICE_CONFIGURATION_DESC * RetVal);
  22444. #endif
  22445. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetEnabledExperimentalFeatures)
  22446. HRESULT ( STDMETHODCALLTYPE *GetEnabledExperimentalFeatures )(
  22447. ID3D12DeviceConfiguration1 * This,
  22448. _Out_writes_(NumGuids) GUID *pGuids,
  22449. UINT NumGuids);
  22450. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, SerializeVersionedRootSignature)
  22451. HRESULT ( STDMETHODCALLTYPE *SerializeVersionedRootSignature )(
  22452. ID3D12DeviceConfiguration1 * This,
  22453. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc,
  22454. _COM_Outptr_ ID3DBlob **ppResult,
  22455. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError);
  22456. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, CreateVersionedRootSignatureDeserializer)
  22457. HRESULT ( STDMETHODCALLTYPE *CreateVersionedRootSignatureDeserializer )(
  22458. ID3D12DeviceConfiguration1 * This,
  22459. _In_reads_bytes_(Size) const void *pBlob,
  22460. SIZE_T Size,
  22461. REFIID riid,
  22462. _COM_Outptr_ void **ppvDeserializer);
  22463. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration1, CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary)
  22464. HRESULT ( STDMETHODCALLTYPE *CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary )(
  22465. ID3D12DeviceConfiguration1 * This,
  22466. _In_reads_bytes_(Size) const void *pLibraryBlob,
  22467. SIZE_T Size,
  22468. LPCWSTR RootSignatureSubobjectName,
  22469. REFIID riid,
  22470. _COM_Outptr_ void **ppvDeserializer);
  22471. END_INTERFACE
  22472. } ID3D12DeviceConfiguration1Vtbl;
  22473. interface ID3D12DeviceConfiguration1
  22474. {
  22475. CONST_VTBL struct ID3D12DeviceConfiguration1Vtbl *lpVtbl;
  22476. };
  22477. #ifdef COBJMACROS
  22478. #define ID3D12DeviceConfiguration1_QueryInterface(This,riid,ppvObject) \
  22479. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22480. #define ID3D12DeviceConfiguration1_AddRef(This) \
  22481. ( (This)->lpVtbl -> AddRef(This) )
  22482. #define ID3D12DeviceConfiguration1_Release(This) \
  22483. ( (This)->lpVtbl -> Release(This) )
  22484. #if !defined(_WIN32)
  22485. #define ID3D12DeviceConfiguration1_GetDesc(This) \
  22486. ( (This)->lpVtbl -> GetDesc(This) )
  22487. #else
  22488. #define ID3D12DeviceConfiguration1_GetDesc(This,RetVal) \
  22489. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  22490. #endif
  22491. #define ID3D12DeviceConfiguration1_GetEnabledExperimentalFeatures(This,pGuids,NumGuids) \
  22492. ( (This)->lpVtbl -> GetEnabledExperimentalFeatures(This,pGuids,NumGuids) )
  22493. #define ID3D12DeviceConfiguration1_SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) \
  22494. ( (This)->lpVtbl -> SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) )
  22495. #define ID3D12DeviceConfiguration1_CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) \
  22496. ( (This)->lpVtbl -> CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) )
  22497. #define ID3D12DeviceConfiguration1_CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(This,pLibraryBlob,Size,RootSignatureSubobjectName,riid,ppvDeserializer) \
  22498. ( (This)->lpVtbl -> CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(This,pLibraryBlob,Size,RootSignatureSubobjectName,riid,ppvDeserializer) )
  22499. #endif /* COBJMACROS */
  22500. #endif /* C style interface */
  22501. #endif /* __ID3D12DeviceConfiguration1_INTERFACE_DEFINED__ */
  22502. /* interface __MIDL_itf_d3d12_0000_0067 */
  22503. /* [local] */
  22504. typedef
  22505. enum D3D12_AXIS_SHADING_RATE
  22506. {
  22507. D3D12_AXIS_SHADING_RATE_1X = 0,
  22508. D3D12_AXIS_SHADING_RATE_2X = 0x1,
  22509. D3D12_AXIS_SHADING_RATE_4X = 0x2
  22510. } D3D12_AXIS_SHADING_RATE;
  22511. #define D3D12_SHADING_RATE_X_AXIS_SHIFT 2
  22512. #define D3D12_SHADING_RATE_VALID_MASK 3
  22513. #define D3D12_MAKE_COARSE_SHADING_RATE(x,y) ((x) << D3D12_SHADING_RATE_X_AXIS_SHIFT | (y))
  22514. #define D3D12_GET_COARSE_SHADING_RATE_X_AXIS(x) (((x) >> D3D12_SHADING_RATE_X_AXIS_SHIFT) & D3D12_SHADING_RATE_VALID_MASK)
  22515. #define D3D12_GET_COARSE_SHADING_RATE_Y_AXIS(y) ((y) & D3D12_SHADING_RATE_VALID_MASK)
  22516. typedef
  22517. enum D3D12_SHADING_RATE
  22518. {
  22519. D3D12_SHADING_RATE_1X1 = 0,
  22520. D3D12_SHADING_RATE_1X2 = 0x1,
  22521. D3D12_SHADING_RATE_2X1 = 0x4,
  22522. D3D12_SHADING_RATE_2X2 = 0x5,
  22523. D3D12_SHADING_RATE_2X4 = 0x6,
  22524. D3D12_SHADING_RATE_4X2 = 0x9,
  22525. D3D12_SHADING_RATE_4X4 = 0xa
  22526. } D3D12_SHADING_RATE;
  22527. typedef
  22528. enum D3D12_SHADING_RATE_COMBINER
  22529. {
  22530. D3D12_SHADING_RATE_COMBINER_PASSTHROUGH = 0,
  22531. D3D12_SHADING_RATE_COMBINER_OVERRIDE = 1,
  22532. D3D12_SHADING_RATE_COMBINER_MIN = 2,
  22533. D3D12_SHADING_RATE_COMBINER_MAX = 3,
  22534. D3D12_SHADING_RATE_COMBINER_SUM = 4
  22535. } D3D12_SHADING_RATE_COMBINER;
  22536. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0067_v0_0_c_ifspec;
  22537. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0067_v0_0_s_ifspec;
  22538. #ifndef __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__
  22539. #define __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__
  22540. /* interface ID3D12GraphicsCommandList5 */
  22541. /* [unique][local][object][uuid] */
  22542. EXTERN_C const IID IID_ID3D12GraphicsCommandList5;
  22543. #if defined(__cplusplus) && !defined(CINTERFACE)
  22544. MIDL_INTERFACE("55050859-4024-474c-87f5-6472eaee44ea")
  22545. ID3D12GraphicsCommandList5 : public ID3D12GraphicsCommandList4
  22546. {
  22547. public:
  22548. virtual void STDMETHODCALLTYPE RSSetShadingRate(
  22549. _In_ D3D12_SHADING_RATE baseShadingRate,
  22550. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners) = 0;
  22551. virtual void STDMETHODCALLTYPE RSSetShadingRateImage(
  22552. _In_opt_ ID3D12Resource *shadingRateImage) = 0;
  22553. };
  22554. #else /* C style interface */
  22555. typedef struct ID3D12GraphicsCommandList5Vtbl
  22556. {
  22557. BEGIN_INTERFACE
  22558. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22559. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22560. ID3D12GraphicsCommandList5 * This,
  22561. REFIID riid,
  22562. _COM_Outptr_ void **ppvObject);
  22563. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22564. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22565. ID3D12GraphicsCommandList5 * This);
  22566. DECLSPEC_XFGVIRT(IUnknown, Release)
  22567. ULONG ( STDMETHODCALLTYPE *Release )(
  22568. ID3D12GraphicsCommandList5 * This);
  22569. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  22570. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  22571. ID3D12GraphicsCommandList5 * This,
  22572. _In_ REFGUID guid,
  22573. _Inout_ UINT *pDataSize,
  22574. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  22575. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  22576. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  22577. ID3D12GraphicsCommandList5 * This,
  22578. _In_ REFGUID guid,
  22579. _In_ UINT DataSize,
  22580. _In_reads_bytes_opt_( DataSize ) const void *pData);
  22581. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  22582. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  22583. ID3D12GraphicsCommandList5 * This,
  22584. _In_ REFGUID guid,
  22585. _In_opt_ const IUnknown *pData);
  22586. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  22587. HRESULT ( STDMETHODCALLTYPE *SetName )(
  22588. ID3D12GraphicsCommandList5 * This,
  22589. _In_z_ LPCWSTR Name);
  22590. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  22591. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  22592. ID3D12GraphicsCommandList5 * This,
  22593. REFIID riid,
  22594. _COM_Outptr_opt_ void **ppvDevice);
  22595. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  22596. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  22597. ID3D12GraphicsCommandList5 * This);
  22598. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  22599. HRESULT ( STDMETHODCALLTYPE *Close )(
  22600. ID3D12GraphicsCommandList5 * This);
  22601. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  22602. HRESULT ( STDMETHODCALLTYPE *Reset )(
  22603. ID3D12GraphicsCommandList5 * This,
  22604. _In_ ID3D12CommandAllocator *pAllocator,
  22605. _In_opt_ ID3D12PipelineState *pInitialState);
  22606. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  22607. void ( STDMETHODCALLTYPE *ClearState )(
  22608. ID3D12GraphicsCommandList5 * This,
  22609. _In_opt_ ID3D12PipelineState *pPipelineState);
  22610. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  22611. void ( STDMETHODCALLTYPE *DrawInstanced )(
  22612. ID3D12GraphicsCommandList5 * This,
  22613. _In_ UINT VertexCountPerInstance,
  22614. _In_ UINT InstanceCount,
  22615. _In_ UINT StartVertexLocation,
  22616. _In_ UINT StartInstanceLocation);
  22617. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  22618. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  22619. ID3D12GraphicsCommandList5 * This,
  22620. _In_ UINT IndexCountPerInstance,
  22621. _In_ UINT InstanceCount,
  22622. _In_ UINT StartIndexLocation,
  22623. _In_ INT BaseVertexLocation,
  22624. _In_ UINT StartInstanceLocation);
  22625. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  22626. void ( STDMETHODCALLTYPE *Dispatch )(
  22627. ID3D12GraphicsCommandList5 * This,
  22628. _In_ UINT ThreadGroupCountX,
  22629. _In_ UINT ThreadGroupCountY,
  22630. _In_ UINT ThreadGroupCountZ);
  22631. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  22632. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  22633. ID3D12GraphicsCommandList5 * This,
  22634. _In_ ID3D12Resource *pDstBuffer,
  22635. UINT64 DstOffset,
  22636. _In_ ID3D12Resource *pSrcBuffer,
  22637. UINT64 SrcOffset,
  22638. UINT64 NumBytes);
  22639. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  22640. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  22641. ID3D12GraphicsCommandList5 * This,
  22642. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  22643. UINT DstX,
  22644. UINT DstY,
  22645. UINT DstZ,
  22646. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  22647. _In_opt_ const D3D12_BOX *pSrcBox);
  22648. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  22649. void ( STDMETHODCALLTYPE *CopyResource )(
  22650. ID3D12GraphicsCommandList5 * This,
  22651. _In_ ID3D12Resource *pDstResource,
  22652. _In_ ID3D12Resource *pSrcResource);
  22653. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  22654. void ( STDMETHODCALLTYPE *CopyTiles )(
  22655. ID3D12GraphicsCommandList5 * This,
  22656. _In_ ID3D12Resource *pTiledResource,
  22657. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  22658. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  22659. _In_ ID3D12Resource *pBuffer,
  22660. UINT64 BufferStartOffsetInBytes,
  22661. D3D12_TILE_COPY_FLAGS Flags);
  22662. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  22663. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  22664. ID3D12GraphicsCommandList5 * This,
  22665. _In_ ID3D12Resource *pDstResource,
  22666. _In_ UINT DstSubresource,
  22667. _In_ ID3D12Resource *pSrcResource,
  22668. _In_ UINT SrcSubresource,
  22669. _In_ DXGI_FORMAT Format);
  22670. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  22671. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  22672. ID3D12GraphicsCommandList5 * This,
  22673. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  22674. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  22675. void ( STDMETHODCALLTYPE *RSSetViewports )(
  22676. ID3D12GraphicsCommandList5 * This,
  22677. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  22678. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  22679. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  22680. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  22681. ID3D12GraphicsCommandList5 * This,
  22682. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  22683. _In_reads_( NumRects) const D3D12_RECT *pRects);
  22684. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  22685. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  22686. ID3D12GraphicsCommandList5 * This,
  22687. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  22688. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  22689. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  22690. ID3D12GraphicsCommandList5 * This,
  22691. _In_ UINT StencilRef);
  22692. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  22693. void ( STDMETHODCALLTYPE *SetPipelineState )(
  22694. ID3D12GraphicsCommandList5 * This,
  22695. _In_ ID3D12PipelineState *pPipelineState);
  22696. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  22697. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  22698. ID3D12GraphicsCommandList5 * This,
  22699. _In_ UINT NumBarriers,
  22700. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  22701. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  22702. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  22703. ID3D12GraphicsCommandList5 * This,
  22704. _In_ ID3D12GraphicsCommandList *pCommandList);
  22705. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  22706. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  22707. ID3D12GraphicsCommandList5 * This,
  22708. _In_ UINT NumDescriptorHeaps,
  22709. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  22710. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  22711. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  22712. ID3D12GraphicsCommandList5 * This,
  22713. _In_opt_ ID3D12RootSignature *pRootSignature);
  22714. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  22715. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  22716. ID3D12GraphicsCommandList5 * This,
  22717. _In_opt_ ID3D12RootSignature *pRootSignature);
  22718. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  22719. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  22720. ID3D12GraphicsCommandList5 * This,
  22721. _In_ UINT RootParameterIndex,
  22722. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  22723. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  22724. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  22725. ID3D12GraphicsCommandList5 * This,
  22726. _In_ UINT RootParameterIndex,
  22727. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  22728. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  22729. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  22730. ID3D12GraphicsCommandList5 * This,
  22731. _In_ UINT RootParameterIndex,
  22732. _In_ UINT SrcData,
  22733. _In_ UINT DestOffsetIn32BitValues);
  22734. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  22735. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  22736. ID3D12GraphicsCommandList5 * This,
  22737. _In_ UINT RootParameterIndex,
  22738. _In_ UINT SrcData,
  22739. _In_ UINT DestOffsetIn32BitValues);
  22740. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  22741. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  22742. ID3D12GraphicsCommandList5 * This,
  22743. _In_ UINT RootParameterIndex,
  22744. _In_ UINT Num32BitValuesToSet,
  22745. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  22746. _In_ UINT DestOffsetIn32BitValues);
  22747. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  22748. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  22749. ID3D12GraphicsCommandList5 * This,
  22750. _In_ UINT RootParameterIndex,
  22751. _In_ UINT Num32BitValuesToSet,
  22752. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  22753. _In_ UINT DestOffsetIn32BitValues);
  22754. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  22755. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  22756. ID3D12GraphicsCommandList5 * This,
  22757. _In_ UINT RootParameterIndex,
  22758. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22759. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  22760. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  22761. ID3D12GraphicsCommandList5 * This,
  22762. _In_ UINT RootParameterIndex,
  22763. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22764. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  22765. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  22766. ID3D12GraphicsCommandList5 * This,
  22767. _In_ UINT RootParameterIndex,
  22768. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22769. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  22770. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  22771. ID3D12GraphicsCommandList5 * This,
  22772. _In_ UINT RootParameterIndex,
  22773. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22774. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  22775. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  22776. ID3D12GraphicsCommandList5 * This,
  22777. _In_ UINT RootParameterIndex,
  22778. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22779. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  22780. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  22781. ID3D12GraphicsCommandList5 * This,
  22782. _In_ UINT RootParameterIndex,
  22783. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22784. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  22785. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  22786. ID3D12GraphicsCommandList5 * This,
  22787. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  22788. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  22789. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  22790. ID3D12GraphicsCommandList5 * This,
  22791. _In_ UINT StartSlot,
  22792. _In_ UINT NumViews,
  22793. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  22794. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  22795. void ( STDMETHODCALLTYPE *SOSetTargets )(
  22796. ID3D12GraphicsCommandList5 * This,
  22797. _In_ UINT StartSlot,
  22798. _In_ UINT NumViews,
  22799. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  22800. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  22801. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  22802. ID3D12GraphicsCommandList5 * This,
  22803. _In_ UINT NumRenderTargetDescriptors,
  22804. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  22805. _In_ BOOL RTsSingleHandleToDescriptorRange,
  22806. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  22807. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  22808. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  22809. ID3D12GraphicsCommandList5 * This,
  22810. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  22811. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  22812. _In_ FLOAT Depth,
  22813. _In_ UINT8 Stencil,
  22814. _In_ UINT NumRects,
  22815. _In_reads_(NumRects) const D3D12_RECT *pRects);
  22816. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  22817. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  22818. ID3D12GraphicsCommandList5 * This,
  22819. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  22820. _In_ const FLOAT ColorRGBA[ 4 ],
  22821. _In_ UINT NumRects,
  22822. _In_reads_(NumRects) const D3D12_RECT *pRects);
  22823. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  22824. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  22825. ID3D12GraphicsCommandList5 * This,
  22826. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  22827. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  22828. _In_ ID3D12Resource *pResource,
  22829. _In_ const UINT Values[ 4 ],
  22830. _In_ UINT NumRects,
  22831. _In_reads_(NumRects) const D3D12_RECT *pRects);
  22832. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  22833. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  22834. ID3D12GraphicsCommandList5 * This,
  22835. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  22836. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  22837. _In_ ID3D12Resource *pResource,
  22838. _In_ const FLOAT Values[ 4 ],
  22839. _In_ UINT NumRects,
  22840. _In_reads_(NumRects) const D3D12_RECT *pRects);
  22841. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  22842. void ( STDMETHODCALLTYPE *DiscardResource )(
  22843. ID3D12GraphicsCommandList5 * This,
  22844. _In_ ID3D12Resource *pResource,
  22845. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  22846. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  22847. void ( STDMETHODCALLTYPE *BeginQuery )(
  22848. ID3D12GraphicsCommandList5 * This,
  22849. _In_ ID3D12QueryHeap *pQueryHeap,
  22850. _In_ D3D12_QUERY_TYPE Type,
  22851. _In_ UINT Index);
  22852. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  22853. void ( STDMETHODCALLTYPE *EndQuery )(
  22854. ID3D12GraphicsCommandList5 * This,
  22855. _In_ ID3D12QueryHeap *pQueryHeap,
  22856. _In_ D3D12_QUERY_TYPE Type,
  22857. _In_ UINT Index);
  22858. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  22859. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  22860. ID3D12GraphicsCommandList5 * This,
  22861. _In_ ID3D12QueryHeap *pQueryHeap,
  22862. _In_ D3D12_QUERY_TYPE Type,
  22863. _In_ UINT StartIndex,
  22864. _In_ UINT NumQueries,
  22865. _In_ ID3D12Resource *pDestinationBuffer,
  22866. _In_ UINT64 AlignedDestinationBufferOffset);
  22867. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  22868. void ( STDMETHODCALLTYPE *SetPredication )(
  22869. ID3D12GraphicsCommandList5 * This,
  22870. _In_opt_ ID3D12Resource *pBuffer,
  22871. _In_ UINT64 AlignedBufferOffset,
  22872. _In_ D3D12_PREDICATION_OP Operation);
  22873. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  22874. void ( STDMETHODCALLTYPE *SetMarker )(
  22875. ID3D12GraphicsCommandList5 * This,
  22876. UINT Metadata,
  22877. _In_reads_bytes_opt_(Size) const void *pData,
  22878. UINT Size);
  22879. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  22880. void ( STDMETHODCALLTYPE *BeginEvent )(
  22881. ID3D12GraphicsCommandList5 * This,
  22882. UINT Metadata,
  22883. _In_reads_bytes_opt_(Size) const void *pData,
  22884. UINT Size);
  22885. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  22886. void ( STDMETHODCALLTYPE *EndEvent )(
  22887. ID3D12GraphicsCommandList5 * This);
  22888. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  22889. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  22890. ID3D12GraphicsCommandList5 * This,
  22891. _In_ ID3D12CommandSignature *pCommandSignature,
  22892. _In_ UINT MaxCommandCount,
  22893. _In_ ID3D12Resource *pArgumentBuffer,
  22894. _In_ UINT64 ArgumentBufferOffset,
  22895. _In_opt_ ID3D12Resource *pCountBuffer,
  22896. _In_ UINT64 CountBufferOffset);
  22897. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  22898. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  22899. ID3D12GraphicsCommandList5 * This,
  22900. _In_ ID3D12Resource *pDstBuffer,
  22901. UINT64 DstOffset,
  22902. _In_ ID3D12Resource *pSrcBuffer,
  22903. UINT64 SrcOffset,
  22904. UINT Dependencies,
  22905. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  22906. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  22907. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  22908. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  22909. ID3D12GraphicsCommandList5 * This,
  22910. _In_ ID3D12Resource *pDstBuffer,
  22911. UINT64 DstOffset,
  22912. _In_ ID3D12Resource *pSrcBuffer,
  22913. UINT64 SrcOffset,
  22914. UINT Dependencies,
  22915. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  22916. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  22917. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  22918. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  22919. ID3D12GraphicsCommandList5 * This,
  22920. _In_ FLOAT Min,
  22921. _In_ FLOAT Max);
  22922. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  22923. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  22924. ID3D12GraphicsCommandList5 * This,
  22925. _In_ UINT NumSamplesPerPixel,
  22926. _In_ UINT NumPixels,
  22927. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  22928. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  22929. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  22930. ID3D12GraphicsCommandList5 * This,
  22931. _In_ ID3D12Resource *pDstResource,
  22932. _In_ UINT DstSubresource,
  22933. _In_ UINT DstX,
  22934. _In_ UINT DstY,
  22935. _In_ ID3D12Resource *pSrcResource,
  22936. _In_ UINT SrcSubresource,
  22937. _In_opt_ D3D12_RECT *pSrcRect,
  22938. _In_ DXGI_FORMAT Format,
  22939. _In_ D3D12_RESOLVE_MODE ResolveMode);
  22940. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  22941. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  22942. ID3D12GraphicsCommandList5 * This,
  22943. _In_ UINT Mask);
  22944. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  22945. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  22946. ID3D12GraphicsCommandList5 * This,
  22947. UINT Count,
  22948. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  22949. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  22950. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  22951. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  22952. ID3D12GraphicsCommandList5 * This,
  22953. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  22954. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  22955. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  22956. ID3D12GraphicsCommandList5 * This,
  22957. _In_ UINT NumRenderTargets,
  22958. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  22959. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  22960. D3D12_RENDER_PASS_FLAGS Flags);
  22961. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  22962. void ( STDMETHODCALLTYPE *EndRenderPass )(
  22963. ID3D12GraphicsCommandList5 * This);
  22964. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  22965. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  22966. ID3D12GraphicsCommandList5 * This,
  22967. _In_ ID3D12MetaCommand *pMetaCommand,
  22968. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  22969. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  22970. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  22971. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  22972. ID3D12GraphicsCommandList5 * This,
  22973. _In_ ID3D12MetaCommand *pMetaCommand,
  22974. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  22975. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  22976. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  22977. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  22978. ID3D12GraphicsCommandList5 * This,
  22979. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  22980. _In_ UINT NumPostbuildInfoDescs,
  22981. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  22982. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  22983. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  22984. ID3D12GraphicsCommandList5 * This,
  22985. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  22986. _In_ UINT NumSourceAccelerationStructures,
  22987. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  22988. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  22989. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  22990. ID3D12GraphicsCommandList5 * This,
  22991. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  22992. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  22993. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  22994. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  22995. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  22996. ID3D12GraphicsCommandList5 * This,
  22997. _In_ ID3D12StateObject *pStateObject);
  22998. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  22999. void ( STDMETHODCALLTYPE *DispatchRays )(
  23000. ID3D12GraphicsCommandList5 * This,
  23001. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  23002. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  23003. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  23004. ID3D12GraphicsCommandList5 * This,
  23005. _In_ D3D12_SHADING_RATE baseShadingRate,
  23006. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  23007. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  23008. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  23009. ID3D12GraphicsCommandList5 * This,
  23010. _In_opt_ ID3D12Resource *shadingRateImage);
  23011. END_INTERFACE
  23012. } ID3D12GraphicsCommandList5Vtbl;
  23013. interface ID3D12GraphicsCommandList5
  23014. {
  23015. CONST_VTBL struct ID3D12GraphicsCommandList5Vtbl *lpVtbl;
  23016. };
  23017. #ifdef COBJMACROS
  23018. #define ID3D12GraphicsCommandList5_QueryInterface(This,riid,ppvObject) \
  23019. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  23020. #define ID3D12GraphicsCommandList5_AddRef(This) \
  23021. ( (This)->lpVtbl -> AddRef(This) )
  23022. #define ID3D12GraphicsCommandList5_Release(This) \
  23023. ( (This)->lpVtbl -> Release(This) )
  23024. #define ID3D12GraphicsCommandList5_GetPrivateData(This,guid,pDataSize,pData) \
  23025. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  23026. #define ID3D12GraphicsCommandList5_SetPrivateData(This,guid,DataSize,pData) \
  23027. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  23028. #define ID3D12GraphicsCommandList5_SetPrivateDataInterface(This,guid,pData) \
  23029. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  23030. #define ID3D12GraphicsCommandList5_SetName(This,Name) \
  23031. ( (This)->lpVtbl -> SetName(This,Name) )
  23032. #define ID3D12GraphicsCommandList5_GetDevice(This,riid,ppvDevice) \
  23033. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  23034. #define ID3D12GraphicsCommandList5_GetType(This) \
  23035. ( (This)->lpVtbl -> GetType(This) )
  23036. #define ID3D12GraphicsCommandList5_Close(This) \
  23037. ( (This)->lpVtbl -> Close(This) )
  23038. #define ID3D12GraphicsCommandList5_Reset(This,pAllocator,pInitialState) \
  23039. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  23040. #define ID3D12GraphicsCommandList5_ClearState(This,pPipelineState) \
  23041. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  23042. #define ID3D12GraphicsCommandList5_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  23043. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  23044. #define ID3D12GraphicsCommandList5_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  23045. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  23046. #define ID3D12GraphicsCommandList5_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  23047. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  23048. #define ID3D12GraphicsCommandList5_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  23049. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  23050. #define ID3D12GraphicsCommandList5_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  23051. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  23052. #define ID3D12GraphicsCommandList5_CopyResource(This,pDstResource,pSrcResource) \
  23053. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  23054. #define ID3D12GraphicsCommandList5_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  23055. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  23056. #define ID3D12GraphicsCommandList5_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  23057. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  23058. #define ID3D12GraphicsCommandList5_IASetPrimitiveTopology(This,PrimitiveTopology) \
  23059. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  23060. #define ID3D12GraphicsCommandList5_RSSetViewports(This,NumViewports,pViewports) \
  23061. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  23062. #define ID3D12GraphicsCommandList5_RSSetScissorRects(This,NumRects,pRects) \
  23063. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  23064. #define ID3D12GraphicsCommandList5_OMSetBlendFactor(This,BlendFactor) \
  23065. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  23066. #define ID3D12GraphicsCommandList5_OMSetStencilRef(This,StencilRef) \
  23067. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  23068. #define ID3D12GraphicsCommandList5_SetPipelineState(This,pPipelineState) \
  23069. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  23070. #define ID3D12GraphicsCommandList5_ResourceBarrier(This,NumBarriers,pBarriers) \
  23071. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  23072. #define ID3D12GraphicsCommandList5_ExecuteBundle(This,pCommandList) \
  23073. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  23074. #define ID3D12GraphicsCommandList5_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  23075. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  23076. #define ID3D12GraphicsCommandList5_SetComputeRootSignature(This,pRootSignature) \
  23077. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  23078. #define ID3D12GraphicsCommandList5_SetGraphicsRootSignature(This,pRootSignature) \
  23079. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  23080. #define ID3D12GraphicsCommandList5_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  23081. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  23082. #define ID3D12GraphicsCommandList5_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  23083. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  23084. #define ID3D12GraphicsCommandList5_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  23085. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  23086. #define ID3D12GraphicsCommandList5_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  23087. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  23088. #define ID3D12GraphicsCommandList5_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  23089. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  23090. #define ID3D12GraphicsCommandList5_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  23091. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  23092. #define ID3D12GraphicsCommandList5_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  23093. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  23094. #define ID3D12GraphicsCommandList5_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  23095. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  23096. #define ID3D12GraphicsCommandList5_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  23097. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  23098. #define ID3D12GraphicsCommandList5_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  23099. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  23100. #define ID3D12GraphicsCommandList5_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  23101. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  23102. #define ID3D12GraphicsCommandList5_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  23103. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  23104. #define ID3D12GraphicsCommandList5_IASetIndexBuffer(This,pView) \
  23105. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  23106. #define ID3D12GraphicsCommandList5_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  23107. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  23108. #define ID3D12GraphicsCommandList5_SOSetTargets(This,StartSlot,NumViews,pViews) \
  23109. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  23110. #define ID3D12GraphicsCommandList5_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  23111. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  23112. #define ID3D12GraphicsCommandList5_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  23113. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  23114. #define ID3D12GraphicsCommandList5_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  23115. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  23116. #define ID3D12GraphicsCommandList5_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  23117. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  23118. #define ID3D12GraphicsCommandList5_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  23119. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  23120. #define ID3D12GraphicsCommandList5_DiscardResource(This,pResource,pRegion) \
  23121. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  23122. #define ID3D12GraphicsCommandList5_BeginQuery(This,pQueryHeap,Type,Index) \
  23123. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  23124. #define ID3D12GraphicsCommandList5_EndQuery(This,pQueryHeap,Type,Index) \
  23125. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  23126. #define ID3D12GraphicsCommandList5_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  23127. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  23128. #define ID3D12GraphicsCommandList5_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  23129. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  23130. #define ID3D12GraphicsCommandList5_SetMarker(This,Metadata,pData,Size) \
  23131. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  23132. #define ID3D12GraphicsCommandList5_BeginEvent(This,Metadata,pData,Size) \
  23133. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  23134. #define ID3D12GraphicsCommandList5_EndEvent(This) \
  23135. ( (This)->lpVtbl -> EndEvent(This) )
  23136. #define ID3D12GraphicsCommandList5_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  23137. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  23138. #define ID3D12GraphicsCommandList5_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  23139. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  23140. #define ID3D12GraphicsCommandList5_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  23141. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  23142. #define ID3D12GraphicsCommandList5_OMSetDepthBounds(This,Min,Max) \
  23143. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  23144. #define ID3D12GraphicsCommandList5_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  23145. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  23146. #define ID3D12GraphicsCommandList5_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  23147. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  23148. #define ID3D12GraphicsCommandList5_SetViewInstanceMask(This,Mask) \
  23149. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  23150. #define ID3D12GraphicsCommandList5_WriteBufferImmediate(This,Count,pParams,pModes) \
  23151. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  23152. #define ID3D12GraphicsCommandList5_SetProtectedResourceSession(This,pProtectedResourceSession) \
  23153. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  23154. #define ID3D12GraphicsCommandList5_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  23155. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  23156. #define ID3D12GraphicsCommandList5_EndRenderPass(This) \
  23157. ( (This)->lpVtbl -> EndRenderPass(This) )
  23158. #define ID3D12GraphicsCommandList5_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  23159. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  23160. #define ID3D12GraphicsCommandList5_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  23161. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  23162. #define ID3D12GraphicsCommandList5_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  23163. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  23164. #define ID3D12GraphicsCommandList5_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  23165. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  23166. #define ID3D12GraphicsCommandList5_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  23167. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  23168. #define ID3D12GraphicsCommandList5_SetPipelineState1(This,pStateObject) \
  23169. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  23170. #define ID3D12GraphicsCommandList5_DispatchRays(This,pDesc) \
  23171. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  23172. #define ID3D12GraphicsCommandList5_RSSetShadingRate(This,baseShadingRate,combiners) \
  23173. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  23174. #define ID3D12GraphicsCommandList5_RSSetShadingRateImage(This,shadingRateImage) \
  23175. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  23176. #endif /* COBJMACROS */
  23177. #endif /* C style interface */
  23178. #endif /* __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__ */
  23179. /* interface __MIDL_itf_d3d12_0000_0068 */
  23180. /* [local] */
  23181. typedef struct D3D12_DISPATCH_MESH_ARGUMENTS
  23182. {
  23183. UINT ThreadGroupCountX;
  23184. UINT ThreadGroupCountY;
  23185. UINT ThreadGroupCountZ;
  23186. } D3D12_DISPATCH_MESH_ARGUMENTS;
  23187. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0068_v0_0_c_ifspec;
  23188. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0068_v0_0_s_ifspec;
  23189. #ifndef __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__
  23190. #define __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__
  23191. /* interface ID3D12GraphicsCommandList6 */
  23192. /* [unique][local][object][uuid] */
  23193. EXTERN_C const IID IID_ID3D12GraphicsCommandList6;
  23194. #if defined(__cplusplus) && !defined(CINTERFACE)
  23195. MIDL_INTERFACE("c3827890-e548-4cfa-96cf-5689a9370f80")
  23196. ID3D12GraphicsCommandList6 : public ID3D12GraphicsCommandList5
  23197. {
  23198. public:
  23199. virtual void STDMETHODCALLTYPE DispatchMesh(
  23200. _In_ UINT ThreadGroupCountX,
  23201. _In_ UINT ThreadGroupCountY,
  23202. _In_ UINT ThreadGroupCountZ) = 0;
  23203. };
  23204. #else /* C style interface */
  23205. typedef struct ID3D12GraphicsCommandList6Vtbl
  23206. {
  23207. BEGIN_INTERFACE
  23208. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  23209. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  23210. ID3D12GraphicsCommandList6 * This,
  23211. REFIID riid,
  23212. _COM_Outptr_ void **ppvObject);
  23213. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  23214. ULONG ( STDMETHODCALLTYPE *AddRef )(
  23215. ID3D12GraphicsCommandList6 * This);
  23216. DECLSPEC_XFGVIRT(IUnknown, Release)
  23217. ULONG ( STDMETHODCALLTYPE *Release )(
  23218. ID3D12GraphicsCommandList6 * This);
  23219. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  23220. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  23221. ID3D12GraphicsCommandList6 * This,
  23222. _In_ REFGUID guid,
  23223. _Inout_ UINT *pDataSize,
  23224. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  23225. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  23226. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  23227. ID3D12GraphicsCommandList6 * This,
  23228. _In_ REFGUID guid,
  23229. _In_ UINT DataSize,
  23230. _In_reads_bytes_opt_( DataSize ) const void *pData);
  23231. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  23232. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  23233. ID3D12GraphicsCommandList6 * This,
  23234. _In_ REFGUID guid,
  23235. _In_opt_ const IUnknown *pData);
  23236. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  23237. HRESULT ( STDMETHODCALLTYPE *SetName )(
  23238. ID3D12GraphicsCommandList6 * This,
  23239. _In_z_ LPCWSTR Name);
  23240. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  23241. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  23242. ID3D12GraphicsCommandList6 * This,
  23243. REFIID riid,
  23244. _COM_Outptr_opt_ void **ppvDevice);
  23245. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  23246. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  23247. ID3D12GraphicsCommandList6 * This);
  23248. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  23249. HRESULT ( STDMETHODCALLTYPE *Close )(
  23250. ID3D12GraphicsCommandList6 * This);
  23251. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  23252. HRESULT ( STDMETHODCALLTYPE *Reset )(
  23253. ID3D12GraphicsCommandList6 * This,
  23254. _In_ ID3D12CommandAllocator *pAllocator,
  23255. _In_opt_ ID3D12PipelineState *pInitialState);
  23256. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  23257. void ( STDMETHODCALLTYPE *ClearState )(
  23258. ID3D12GraphicsCommandList6 * This,
  23259. _In_opt_ ID3D12PipelineState *pPipelineState);
  23260. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  23261. void ( STDMETHODCALLTYPE *DrawInstanced )(
  23262. ID3D12GraphicsCommandList6 * This,
  23263. _In_ UINT VertexCountPerInstance,
  23264. _In_ UINT InstanceCount,
  23265. _In_ UINT StartVertexLocation,
  23266. _In_ UINT StartInstanceLocation);
  23267. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  23268. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  23269. ID3D12GraphicsCommandList6 * This,
  23270. _In_ UINT IndexCountPerInstance,
  23271. _In_ UINT InstanceCount,
  23272. _In_ UINT StartIndexLocation,
  23273. _In_ INT BaseVertexLocation,
  23274. _In_ UINT StartInstanceLocation);
  23275. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  23276. void ( STDMETHODCALLTYPE *Dispatch )(
  23277. ID3D12GraphicsCommandList6 * This,
  23278. _In_ UINT ThreadGroupCountX,
  23279. _In_ UINT ThreadGroupCountY,
  23280. _In_ UINT ThreadGroupCountZ);
  23281. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  23282. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  23283. ID3D12GraphicsCommandList6 * This,
  23284. _In_ ID3D12Resource *pDstBuffer,
  23285. UINT64 DstOffset,
  23286. _In_ ID3D12Resource *pSrcBuffer,
  23287. UINT64 SrcOffset,
  23288. UINT64 NumBytes);
  23289. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  23290. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  23291. ID3D12GraphicsCommandList6 * This,
  23292. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  23293. UINT DstX,
  23294. UINT DstY,
  23295. UINT DstZ,
  23296. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  23297. _In_opt_ const D3D12_BOX *pSrcBox);
  23298. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  23299. void ( STDMETHODCALLTYPE *CopyResource )(
  23300. ID3D12GraphicsCommandList6 * This,
  23301. _In_ ID3D12Resource *pDstResource,
  23302. _In_ ID3D12Resource *pSrcResource);
  23303. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  23304. void ( STDMETHODCALLTYPE *CopyTiles )(
  23305. ID3D12GraphicsCommandList6 * This,
  23306. _In_ ID3D12Resource *pTiledResource,
  23307. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  23308. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  23309. _In_ ID3D12Resource *pBuffer,
  23310. UINT64 BufferStartOffsetInBytes,
  23311. D3D12_TILE_COPY_FLAGS Flags);
  23312. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  23313. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  23314. ID3D12GraphicsCommandList6 * This,
  23315. _In_ ID3D12Resource *pDstResource,
  23316. _In_ UINT DstSubresource,
  23317. _In_ ID3D12Resource *pSrcResource,
  23318. _In_ UINT SrcSubresource,
  23319. _In_ DXGI_FORMAT Format);
  23320. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  23321. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  23322. ID3D12GraphicsCommandList6 * This,
  23323. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  23324. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  23325. void ( STDMETHODCALLTYPE *RSSetViewports )(
  23326. ID3D12GraphicsCommandList6 * This,
  23327. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  23328. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  23329. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  23330. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  23331. ID3D12GraphicsCommandList6 * This,
  23332. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  23333. _In_reads_( NumRects) const D3D12_RECT *pRects);
  23334. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  23335. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  23336. ID3D12GraphicsCommandList6 * This,
  23337. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  23338. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  23339. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  23340. ID3D12GraphicsCommandList6 * This,
  23341. _In_ UINT StencilRef);
  23342. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  23343. void ( STDMETHODCALLTYPE *SetPipelineState )(
  23344. ID3D12GraphicsCommandList6 * This,
  23345. _In_ ID3D12PipelineState *pPipelineState);
  23346. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  23347. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  23348. ID3D12GraphicsCommandList6 * This,
  23349. _In_ UINT NumBarriers,
  23350. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  23351. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  23352. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  23353. ID3D12GraphicsCommandList6 * This,
  23354. _In_ ID3D12GraphicsCommandList *pCommandList);
  23355. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  23356. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  23357. ID3D12GraphicsCommandList6 * This,
  23358. _In_ UINT NumDescriptorHeaps,
  23359. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  23360. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  23361. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  23362. ID3D12GraphicsCommandList6 * This,
  23363. _In_opt_ ID3D12RootSignature *pRootSignature);
  23364. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  23365. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  23366. ID3D12GraphicsCommandList6 * This,
  23367. _In_opt_ ID3D12RootSignature *pRootSignature);
  23368. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  23369. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  23370. ID3D12GraphicsCommandList6 * This,
  23371. _In_ UINT RootParameterIndex,
  23372. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  23373. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  23374. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  23375. ID3D12GraphicsCommandList6 * This,
  23376. _In_ UINT RootParameterIndex,
  23377. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  23378. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  23379. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  23380. ID3D12GraphicsCommandList6 * This,
  23381. _In_ UINT RootParameterIndex,
  23382. _In_ UINT SrcData,
  23383. _In_ UINT DestOffsetIn32BitValues);
  23384. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  23385. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  23386. ID3D12GraphicsCommandList6 * This,
  23387. _In_ UINT RootParameterIndex,
  23388. _In_ UINT SrcData,
  23389. _In_ UINT DestOffsetIn32BitValues);
  23390. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  23391. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  23392. ID3D12GraphicsCommandList6 * This,
  23393. _In_ UINT RootParameterIndex,
  23394. _In_ UINT Num32BitValuesToSet,
  23395. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  23396. _In_ UINT DestOffsetIn32BitValues);
  23397. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  23398. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  23399. ID3D12GraphicsCommandList6 * This,
  23400. _In_ UINT RootParameterIndex,
  23401. _In_ UINT Num32BitValuesToSet,
  23402. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  23403. _In_ UINT DestOffsetIn32BitValues);
  23404. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  23405. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  23406. ID3D12GraphicsCommandList6 * This,
  23407. _In_ UINT RootParameterIndex,
  23408. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23409. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  23410. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  23411. ID3D12GraphicsCommandList6 * This,
  23412. _In_ UINT RootParameterIndex,
  23413. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23414. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  23415. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  23416. ID3D12GraphicsCommandList6 * This,
  23417. _In_ UINT RootParameterIndex,
  23418. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23419. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  23420. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  23421. ID3D12GraphicsCommandList6 * This,
  23422. _In_ UINT RootParameterIndex,
  23423. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23424. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  23425. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  23426. ID3D12GraphicsCommandList6 * This,
  23427. _In_ UINT RootParameterIndex,
  23428. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23429. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  23430. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  23431. ID3D12GraphicsCommandList6 * This,
  23432. _In_ UINT RootParameterIndex,
  23433. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23434. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  23435. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  23436. ID3D12GraphicsCommandList6 * This,
  23437. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  23438. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  23439. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  23440. ID3D12GraphicsCommandList6 * This,
  23441. _In_ UINT StartSlot,
  23442. _In_ UINT NumViews,
  23443. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  23444. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  23445. void ( STDMETHODCALLTYPE *SOSetTargets )(
  23446. ID3D12GraphicsCommandList6 * This,
  23447. _In_ UINT StartSlot,
  23448. _In_ UINT NumViews,
  23449. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  23450. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  23451. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  23452. ID3D12GraphicsCommandList6 * This,
  23453. _In_ UINT NumRenderTargetDescriptors,
  23454. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  23455. _In_ BOOL RTsSingleHandleToDescriptorRange,
  23456. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  23457. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  23458. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  23459. ID3D12GraphicsCommandList6 * This,
  23460. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  23461. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  23462. _In_ FLOAT Depth,
  23463. _In_ UINT8 Stencil,
  23464. _In_ UINT NumRects,
  23465. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23466. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  23467. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  23468. ID3D12GraphicsCommandList6 * This,
  23469. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  23470. _In_ const FLOAT ColorRGBA[ 4 ],
  23471. _In_ UINT NumRects,
  23472. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23473. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  23474. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  23475. ID3D12GraphicsCommandList6 * This,
  23476. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  23477. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  23478. _In_ ID3D12Resource *pResource,
  23479. _In_ const UINT Values[ 4 ],
  23480. _In_ UINT NumRects,
  23481. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23482. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  23483. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  23484. ID3D12GraphicsCommandList6 * This,
  23485. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  23486. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  23487. _In_ ID3D12Resource *pResource,
  23488. _In_ const FLOAT Values[ 4 ],
  23489. _In_ UINT NumRects,
  23490. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23491. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  23492. void ( STDMETHODCALLTYPE *DiscardResource )(
  23493. ID3D12GraphicsCommandList6 * This,
  23494. _In_ ID3D12Resource *pResource,
  23495. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  23496. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  23497. void ( STDMETHODCALLTYPE *BeginQuery )(
  23498. ID3D12GraphicsCommandList6 * This,
  23499. _In_ ID3D12QueryHeap *pQueryHeap,
  23500. _In_ D3D12_QUERY_TYPE Type,
  23501. _In_ UINT Index);
  23502. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  23503. void ( STDMETHODCALLTYPE *EndQuery )(
  23504. ID3D12GraphicsCommandList6 * This,
  23505. _In_ ID3D12QueryHeap *pQueryHeap,
  23506. _In_ D3D12_QUERY_TYPE Type,
  23507. _In_ UINT Index);
  23508. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  23509. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  23510. ID3D12GraphicsCommandList6 * This,
  23511. _In_ ID3D12QueryHeap *pQueryHeap,
  23512. _In_ D3D12_QUERY_TYPE Type,
  23513. _In_ UINT StartIndex,
  23514. _In_ UINT NumQueries,
  23515. _In_ ID3D12Resource *pDestinationBuffer,
  23516. _In_ UINT64 AlignedDestinationBufferOffset);
  23517. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  23518. void ( STDMETHODCALLTYPE *SetPredication )(
  23519. ID3D12GraphicsCommandList6 * This,
  23520. _In_opt_ ID3D12Resource *pBuffer,
  23521. _In_ UINT64 AlignedBufferOffset,
  23522. _In_ D3D12_PREDICATION_OP Operation);
  23523. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  23524. void ( STDMETHODCALLTYPE *SetMarker )(
  23525. ID3D12GraphicsCommandList6 * This,
  23526. UINT Metadata,
  23527. _In_reads_bytes_opt_(Size) const void *pData,
  23528. UINT Size);
  23529. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  23530. void ( STDMETHODCALLTYPE *BeginEvent )(
  23531. ID3D12GraphicsCommandList6 * This,
  23532. UINT Metadata,
  23533. _In_reads_bytes_opt_(Size) const void *pData,
  23534. UINT Size);
  23535. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  23536. void ( STDMETHODCALLTYPE *EndEvent )(
  23537. ID3D12GraphicsCommandList6 * This);
  23538. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  23539. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  23540. ID3D12GraphicsCommandList6 * This,
  23541. _In_ ID3D12CommandSignature *pCommandSignature,
  23542. _In_ UINT MaxCommandCount,
  23543. _In_ ID3D12Resource *pArgumentBuffer,
  23544. _In_ UINT64 ArgumentBufferOffset,
  23545. _In_opt_ ID3D12Resource *pCountBuffer,
  23546. _In_ UINT64 CountBufferOffset);
  23547. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  23548. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  23549. ID3D12GraphicsCommandList6 * This,
  23550. _In_ ID3D12Resource *pDstBuffer,
  23551. UINT64 DstOffset,
  23552. _In_ ID3D12Resource *pSrcBuffer,
  23553. UINT64 SrcOffset,
  23554. UINT Dependencies,
  23555. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  23556. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  23557. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  23558. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  23559. ID3D12GraphicsCommandList6 * This,
  23560. _In_ ID3D12Resource *pDstBuffer,
  23561. UINT64 DstOffset,
  23562. _In_ ID3D12Resource *pSrcBuffer,
  23563. UINT64 SrcOffset,
  23564. UINT Dependencies,
  23565. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  23566. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  23567. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  23568. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  23569. ID3D12GraphicsCommandList6 * This,
  23570. _In_ FLOAT Min,
  23571. _In_ FLOAT Max);
  23572. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  23573. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  23574. ID3D12GraphicsCommandList6 * This,
  23575. _In_ UINT NumSamplesPerPixel,
  23576. _In_ UINT NumPixels,
  23577. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  23578. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  23579. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  23580. ID3D12GraphicsCommandList6 * This,
  23581. _In_ ID3D12Resource *pDstResource,
  23582. _In_ UINT DstSubresource,
  23583. _In_ UINT DstX,
  23584. _In_ UINT DstY,
  23585. _In_ ID3D12Resource *pSrcResource,
  23586. _In_ UINT SrcSubresource,
  23587. _In_opt_ D3D12_RECT *pSrcRect,
  23588. _In_ DXGI_FORMAT Format,
  23589. _In_ D3D12_RESOLVE_MODE ResolveMode);
  23590. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  23591. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  23592. ID3D12GraphicsCommandList6 * This,
  23593. _In_ UINT Mask);
  23594. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  23595. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  23596. ID3D12GraphicsCommandList6 * This,
  23597. UINT Count,
  23598. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  23599. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  23600. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  23601. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  23602. ID3D12GraphicsCommandList6 * This,
  23603. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  23604. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  23605. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  23606. ID3D12GraphicsCommandList6 * This,
  23607. _In_ UINT NumRenderTargets,
  23608. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  23609. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  23610. D3D12_RENDER_PASS_FLAGS Flags);
  23611. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  23612. void ( STDMETHODCALLTYPE *EndRenderPass )(
  23613. ID3D12GraphicsCommandList6 * This);
  23614. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  23615. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  23616. ID3D12GraphicsCommandList6 * This,
  23617. _In_ ID3D12MetaCommand *pMetaCommand,
  23618. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  23619. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  23620. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  23621. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  23622. ID3D12GraphicsCommandList6 * This,
  23623. _In_ ID3D12MetaCommand *pMetaCommand,
  23624. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  23625. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  23626. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  23627. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  23628. ID3D12GraphicsCommandList6 * This,
  23629. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  23630. _In_ UINT NumPostbuildInfoDescs,
  23631. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  23632. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  23633. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  23634. ID3D12GraphicsCommandList6 * This,
  23635. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  23636. _In_ UINT NumSourceAccelerationStructures,
  23637. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  23638. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  23639. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  23640. ID3D12GraphicsCommandList6 * This,
  23641. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  23642. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  23643. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  23644. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  23645. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  23646. ID3D12GraphicsCommandList6 * This,
  23647. _In_ ID3D12StateObject *pStateObject);
  23648. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  23649. void ( STDMETHODCALLTYPE *DispatchRays )(
  23650. ID3D12GraphicsCommandList6 * This,
  23651. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  23652. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  23653. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  23654. ID3D12GraphicsCommandList6 * This,
  23655. _In_ D3D12_SHADING_RATE baseShadingRate,
  23656. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  23657. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  23658. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  23659. ID3D12GraphicsCommandList6 * This,
  23660. _In_opt_ ID3D12Resource *shadingRateImage);
  23661. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  23662. void ( STDMETHODCALLTYPE *DispatchMesh )(
  23663. ID3D12GraphicsCommandList6 * This,
  23664. _In_ UINT ThreadGroupCountX,
  23665. _In_ UINT ThreadGroupCountY,
  23666. _In_ UINT ThreadGroupCountZ);
  23667. END_INTERFACE
  23668. } ID3D12GraphicsCommandList6Vtbl;
  23669. interface ID3D12GraphicsCommandList6
  23670. {
  23671. CONST_VTBL struct ID3D12GraphicsCommandList6Vtbl *lpVtbl;
  23672. };
  23673. #ifdef COBJMACROS
  23674. #define ID3D12GraphicsCommandList6_QueryInterface(This,riid,ppvObject) \
  23675. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  23676. #define ID3D12GraphicsCommandList6_AddRef(This) \
  23677. ( (This)->lpVtbl -> AddRef(This) )
  23678. #define ID3D12GraphicsCommandList6_Release(This) \
  23679. ( (This)->lpVtbl -> Release(This) )
  23680. #define ID3D12GraphicsCommandList6_GetPrivateData(This,guid,pDataSize,pData) \
  23681. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  23682. #define ID3D12GraphicsCommandList6_SetPrivateData(This,guid,DataSize,pData) \
  23683. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  23684. #define ID3D12GraphicsCommandList6_SetPrivateDataInterface(This,guid,pData) \
  23685. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  23686. #define ID3D12GraphicsCommandList6_SetName(This,Name) \
  23687. ( (This)->lpVtbl -> SetName(This,Name) )
  23688. #define ID3D12GraphicsCommandList6_GetDevice(This,riid,ppvDevice) \
  23689. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  23690. #define ID3D12GraphicsCommandList6_GetType(This) \
  23691. ( (This)->lpVtbl -> GetType(This) )
  23692. #define ID3D12GraphicsCommandList6_Close(This) \
  23693. ( (This)->lpVtbl -> Close(This) )
  23694. #define ID3D12GraphicsCommandList6_Reset(This,pAllocator,pInitialState) \
  23695. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  23696. #define ID3D12GraphicsCommandList6_ClearState(This,pPipelineState) \
  23697. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  23698. #define ID3D12GraphicsCommandList6_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  23699. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  23700. #define ID3D12GraphicsCommandList6_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  23701. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  23702. #define ID3D12GraphicsCommandList6_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  23703. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  23704. #define ID3D12GraphicsCommandList6_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  23705. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  23706. #define ID3D12GraphicsCommandList6_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  23707. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  23708. #define ID3D12GraphicsCommandList6_CopyResource(This,pDstResource,pSrcResource) \
  23709. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  23710. #define ID3D12GraphicsCommandList6_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  23711. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  23712. #define ID3D12GraphicsCommandList6_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  23713. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  23714. #define ID3D12GraphicsCommandList6_IASetPrimitiveTopology(This,PrimitiveTopology) \
  23715. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  23716. #define ID3D12GraphicsCommandList6_RSSetViewports(This,NumViewports,pViewports) \
  23717. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  23718. #define ID3D12GraphicsCommandList6_RSSetScissorRects(This,NumRects,pRects) \
  23719. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  23720. #define ID3D12GraphicsCommandList6_OMSetBlendFactor(This,BlendFactor) \
  23721. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  23722. #define ID3D12GraphicsCommandList6_OMSetStencilRef(This,StencilRef) \
  23723. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  23724. #define ID3D12GraphicsCommandList6_SetPipelineState(This,pPipelineState) \
  23725. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  23726. #define ID3D12GraphicsCommandList6_ResourceBarrier(This,NumBarriers,pBarriers) \
  23727. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  23728. #define ID3D12GraphicsCommandList6_ExecuteBundle(This,pCommandList) \
  23729. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  23730. #define ID3D12GraphicsCommandList6_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  23731. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  23732. #define ID3D12GraphicsCommandList6_SetComputeRootSignature(This,pRootSignature) \
  23733. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  23734. #define ID3D12GraphicsCommandList6_SetGraphicsRootSignature(This,pRootSignature) \
  23735. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  23736. #define ID3D12GraphicsCommandList6_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  23737. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  23738. #define ID3D12GraphicsCommandList6_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  23739. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  23740. #define ID3D12GraphicsCommandList6_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  23741. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  23742. #define ID3D12GraphicsCommandList6_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  23743. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  23744. #define ID3D12GraphicsCommandList6_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  23745. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  23746. #define ID3D12GraphicsCommandList6_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  23747. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  23748. #define ID3D12GraphicsCommandList6_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  23749. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  23750. #define ID3D12GraphicsCommandList6_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  23751. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  23752. #define ID3D12GraphicsCommandList6_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  23753. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  23754. #define ID3D12GraphicsCommandList6_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  23755. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  23756. #define ID3D12GraphicsCommandList6_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  23757. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  23758. #define ID3D12GraphicsCommandList6_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  23759. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  23760. #define ID3D12GraphicsCommandList6_IASetIndexBuffer(This,pView) \
  23761. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  23762. #define ID3D12GraphicsCommandList6_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  23763. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  23764. #define ID3D12GraphicsCommandList6_SOSetTargets(This,StartSlot,NumViews,pViews) \
  23765. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  23766. #define ID3D12GraphicsCommandList6_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  23767. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  23768. #define ID3D12GraphicsCommandList6_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  23769. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  23770. #define ID3D12GraphicsCommandList6_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  23771. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  23772. #define ID3D12GraphicsCommandList6_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  23773. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  23774. #define ID3D12GraphicsCommandList6_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  23775. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  23776. #define ID3D12GraphicsCommandList6_DiscardResource(This,pResource,pRegion) \
  23777. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  23778. #define ID3D12GraphicsCommandList6_BeginQuery(This,pQueryHeap,Type,Index) \
  23779. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  23780. #define ID3D12GraphicsCommandList6_EndQuery(This,pQueryHeap,Type,Index) \
  23781. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  23782. #define ID3D12GraphicsCommandList6_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  23783. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  23784. #define ID3D12GraphicsCommandList6_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  23785. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  23786. #define ID3D12GraphicsCommandList6_SetMarker(This,Metadata,pData,Size) \
  23787. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  23788. #define ID3D12GraphicsCommandList6_BeginEvent(This,Metadata,pData,Size) \
  23789. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  23790. #define ID3D12GraphicsCommandList6_EndEvent(This) \
  23791. ( (This)->lpVtbl -> EndEvent(This) )
  23792. #define ID3D12GraphicsCommandList6_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  23793. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  23794. #define ID3D12GraphicsCommandList6_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  23795. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  23796. #define ID3D12GraphicsCommandList6_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  23797. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  23798. #define ID3D12GraphicsCommandList6_OMSetDepthBounds(This,Min,Max) \
  23799. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  23800. #define ID3D12GraphicsCommandList6_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  23801. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  23802. #define ID3D12GraphicsCommandList6_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  23803. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  23804. #define ID3D12GraphicsCommandList6_SetViewInstanceMask(This,Mask) \
  23805. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  23806. #define ID3D12GraphicsCommandList6_WriteBufferImmediate(This,Count,pParams,pModes) \
  23807. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  23808. #define ID3D12GraphicsCommandList6_SetProtectedResourceSession(This,pProtectedResourceSession) \
  23809. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  23810. #define ID3D12GraphicsCommandList6_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  23811. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  23812. #define ID3D12GraphicsCommandList6_EndRenderPass(This) \
  23813. ( (This)->lpVtbl -> EndRenderPass(This) )
  23814. #define ID3D12GraphicsCommandList6_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  23815. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  23816. #define ID3D12GraphicsCommandList6_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  23817. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  23818. #define ID3D12GraphicsCommandList6_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  23819. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  23820. #define ID3D12GraphicsCommandList6_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  23821. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  23822. #define ID3D12GraphicsCommandList6_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  23823. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  23824. #define ID3D12GraphicsCommandList6_SetPipelineState1(This,pStateObject) \
  23825. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  23826. #define ID3D12GraphicsCommandList6_DispatchRays(This,pDesc) \
  23827. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  23828. #define ID3D12GraphicsCommandList6_RSSetShadingRate(This,baseShadingRate,combiners) \
  23829. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  23830. #define ID3D12GraphicsCommandList6_RSSetShadingRateImage(This,shadingRateImage) \
  23831. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  23832. #define ID3D12GraphicsCommandList6_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  23833. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  23834. #endif /* COBJMACROS */
  23835. #endif /* C style interface */
  23836. #endif /* __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__ */
  23837. #ifndef __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__
  23838. #define __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__
  23839. /* interface ID3D12GraphicsCommandList7 */
  23840. /* [unique][local][object][uuid] */
  23841. EXTERN_C const IID IID_ID3D12GraphicsCommandList7;
  23842. #if defined(__cplusplus) && !defined(CINTERFACE)
  23843. MIDL_INTERFACE("dd171223-8b61-4769-90e3-160ccde4e2c1")
  23844. ID3D12GraphicsCommandList7 : public ID3D12GraphicsCommandList6
  23845. {
  23846. public:
  23847. virtual void STDMETHODCALLTYPE Barrier(
  23848. UINT32 NumBarrierGroups,
  23849. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups) = 0;
  23850. };
  23851. #else /* C style interface */
  23852. typedef struct ID3D12GraphicsCommandList7Vtbl
  23853. {
  23854. BEGIN_INTERFACE
  23855. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  23856. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  23857. ID3D12GraphicsCommandList7 * This,
  23858. REFIID riid,
  23859. _COM_Outptr_ void **ppvObject);
  23860. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  23861. ULONG ( STDMETHODCALLTYPE *AddRef )(
  23862. ID3D12GraphicsCommandList7 * This);
  23863. DECLSPEC_XFGVIRT(IUnknown, Release)
  23864. ULONG ( STDMETHODCALLTYPE *Release )(
  23865. ID3D12GraphicsCommandList7 * This);
  23866. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  23867. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  23868. ID3D12GraphicsCommandList7 * This,
  23869. _In_ REFGUID guid,
  23870. _Inout_ UINT *pDataSize,
  23871. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  23872. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  23873. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  23874. ID3D12GraphicsCommandList7 * This,
  23875. _In_ REFGUID guid,
  23876. _In_ UINT DataSize,
  23877. _In_reads_bytes_opt_( DataSize ) const void *pData);
  23878. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  23879. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  23880. ID3D12GraphicsCommandList7 * This,
  23881. _In_ REFGUID guid,
  23882. _In_opt_ const IUnknown *pData);
  23883. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  23884. HRESULT ( STDMETHODCALLTYPE *SetName )(
  23885. ID3D12GraphicsCommandList7 * This,
  23886. _In_z_ LPCWSTR Name);
  23887. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  23888. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  23889. ID3D12GraphicsCommandList7 * This,
  23890. REFIID riid,
  23891. _COM_Outptr_opt_ void **ppvDevice);
  23892. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  23893. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  23894. ID3D12GraphicsCommandList7 * This);
  23895. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  23896. HRESULT ( STDMETHODCALLTYPE *Close )(
  23897. ID3D12GraphicsCommandList7 * This);
  23898. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  23899. HRESULT ( STDMETHODCALLTYPE *Reset )(
  23900. ID3D12GraphicsCommandList7 * This,
  23901. _In_ ID3D12CommandAllocator *pAllocator,
  23902. _In_opt_ ID3D12PipelineState *pInitialState);
  23903. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  23904. void ( STDMETHODCALLTYPE *ClearState )(
  23905. ID3D12GraphicsCommandList7 * This,
  23906. _In_opt_ ID3D12PipelineState *pPipelineState);
  23907. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  23908. void ( STDMETHODCALLTYPE *DrawInstanced )(
  23909. ID3D12GraphicsCommandList7 * This,
  23910. _In_ UINT VertexCountPerInstance,
  23911. _In_ UINT InstanceCount,
  23912. _In_ UINT StartVertexLocation,
  23913. _In_ UINT StartInstanceLocation);
  23914. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  23915. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  23916. ID3D12GraphicsCommandList7 * This,
  23917. _In_ UINT IndexCountPerInstance,
  23918. _In_ UINT InstanceCount,
  23919. _In_ UINT StartIndexLocation,
  23920. _In_ INT BaseVertexLocation,
  23921. _In_ UINT StartInstanceLocation);
  23922. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  23923. void ( STDMETHODCALLTYPE *Dispatch )(
  23924. ID3D12GraphicsCommandList7 * This,
  23925. _In_ UINT ThreadGroupCountX,
  23926. _In_ UINT ThreadGroupCountY,
  23927. _In_ UINT ThreadGroupCountZ);
  23928. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  23929. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  23930. ID3D12GraphicsCommandList7 * This,
  23931. _In_ ID3D12Resource *pDstBuffer,
  23932. UINT64 DstOffset,
  23933. _In_ ID3D12Resource *pSrcBuffer,
  23934. UINT64 SrcOffset,
  23935. UINT64 NumBytes);
  23936. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  23937. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  23938. ID3D12GraphicsCommandList7 * This,
  23939. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  23940. UINT DstX,
  23941. UINT DstY,
  23942. UINT DstZ,
  23943. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  23944. _In_opt_ const D3D12_BOX *pSrcBox);
  23945. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  23946. void ( STDMETHODCALLTYPE *CopyResource )(
  23947. ID3D12GraphicsCommandList7 * This,
  23948. _In_ ID3D12Resource *pDstResource,
  23949. _In_ ID3D12Resource *pSrcResource);
  23950. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  23951. void ( STDMETHODCALLTYPE *CopyTiles )(
  23952. ID3D12GraphicsCommandList7 * This,
  23953. _In_ ID3D12Resource *pTiledResource,
  23954. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  23955. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  23956. _In_ ID3D12Resource *pBuffer,
  23957. UINT64 BufferStartOffsetInBytes,
  23958. D3D12_TILE_COPY_FLAGS Flags);
  23959. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  23960. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  23961. ID3D12GraphicsCommandList7 * This,
  23962. _In_ ID3D12Resource *pDstResource,
  23963. _In_ UINT DstSubresource,
  23964. _In_ ID3D12Resource *pSrcResource,
  23965. _In_ UINT SrcSubresource,
  23966. _In_ DXGI_FORMAT Format);
  23967. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  23968. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  23969. ID3D12GraphicsCommandList7 * This,
  23970. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  23971. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  23972. void ( STDMETHODCALLTYPE *RSSetViewports )(
  23973. ID3D12GraphicsCommandList7 * This,
  23974. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  23975. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  23976. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  23977. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  23978. ID3D12GraphicsCommandList7 * This,
  23979. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  23980. _In_reads_( NumRects) const D3D12_RECT *pRects);
  23981. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  23982. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  23983. ID3D12GraphicsCommandList7 * This,
  23984. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  23985. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  23986. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  23987. ID3D12GraphicsCommandList7 * This,
  23988. _In_ UINT StencilRef);
  23989. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  23990. void ( STDMETHODCALLTYPE *SetPipelineState )(
  23991. ID3D12GraphicsCommandList7 * This,
  23992. _In_ ID3D12PipelineState *pPipelineState);
  23993. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  23994. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  23995. ID3D12GraphicsCommandList7 * This,
  23996. _In_ UINT NumBarriers,
  23997. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  23998. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  23999. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  24000. ID3D12GraphicsCommandList7 * This,
  24001. _In_ ID3D12GraphicsCommandList *pCommandList);
  24002. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  24003. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  24004. ID3D12GraphicsCommandList7 * This,
  24005. _In_ UINT NumDescriptorHeaps,
  24006. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  24007. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  24008. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  24009. ID3D12GraphicsCommandList7 * This,
  24010. _In_opt_ ID3D12RootSignature *pRootSignature);
  24011. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  24012. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  24013. ID3D12GraphicsCommandList7 * This,
  24014. _In_opt_ ID3D12RootSignature *pRootSignature);
  24015. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  24016. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  24017. ID3D12GraphicsCommandList7 * This,
  24018. _In_ UINT RootParameterIndex,
  24019. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  24020. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  24021. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  24022. ID3D12GraphicsCommandList7 * This,
  24023. _In_ UINT RootParameterIndex,
  24024. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  24025. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  24026. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  24027. ID3D12GraphicsCommandList7 * This,
  24028. _In_ UINT RootParameterIndex,
  24029. _In_ UINT SrcData,
  24030. _In_ UINT DestOffsetIn32BitValues);
  24031. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  24032. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  24033. ID3D12GraphicsCommandList7 * This,
  24034. _In_ UINT RootParameterIndex,
  24035. _In_ UINT SrcData,
  24036. _In_ UINT DestOffsetIn32BitValues);
  24037. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  24038. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  24039. ID3D12GraphicsCommandList7 * This,
  24040. _In_ UINT RootParameterIndex,
  24041. _In_ UINT Num32BitValuesToSet,
  24042. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  24043. _In_ UINT DestOffsetIn32BitValues);
  24044. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  24045. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  24046. ID3D12GraphicsCommandList7 * This,
  24047. _In_ UINT RootParameterIndex,
  24048. _In_ UINT Num32BitValuesToSet,
  24049. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  24050. _In_ UINT DestOffsetIn32BitValues);
  24051. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  24052. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  24053. ID3D12GraphicsCommandList7 * This,
  24054. _In_ UINT RootParameterIndex,
  24055. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24056. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  24057. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  24058. ID3D12GraphicsCommandList7 * This,
  24059. _In_ UINT RootParameterIndex,
  24060. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24061. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  24062. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  24063. ID3D12GraphicsCommandList7 * This,
  24064. _In_ UINT RootParameterIndex,
  24065. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24066. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  24067. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  24068. ID3D12GraphicsCommandList7 * This,
  24069. _In_ UINT RootParameterIndex,
  24070. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24071. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  24072. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  24073. ID3D12GraphicsCommandList7 * This,
  24074. _In_ UINT RootParameterIndex,
  24075. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24076. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  24077. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  24078. ID3D12GraphicsCommandList7 * This,
  24079. _In_ UINT RootParameterIndex,
  24080. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24081. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  24082. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  24083. ID3D12GraphicsCommandList7 * This,
  24084. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  24085. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  24086. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  24087. ID3D12GraphicsCommandList7 * This,
  24088. _In_ UINT StartSlot,
  24089. _In_ UINT NumViews,
  24090. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  24091. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  24092. void ( STDMETHODCALLTYPE *SOSetTargets )(
  24093. ID3D12GraphicsCommandList7 * This,
  24094. _In_ UINT StartSlot,
  24095. _In_ UINT NumViews,
  24096. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  24097. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  24098. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  24099. ID3D12GraphicsCommandList7 * This,
  24100. _In_ UINT NumRenderTargetDescriptors,
  24101. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  24102. _In_ BOOL RTsSingleHandleToDescriptorRange,
  24103. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  24104. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  24105. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  24106. ID3D12GraphicsCommandList7 * This,
  24107. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  24108. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  24109. _In_ FLOAT Depth,
  24110. _In_ UINT8 Stencil,
  24111. _In_ UINT NumRects,
  24112. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24113. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  24114. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  24115. ID3D12GraphicsCommandList7 * This,
  24116. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  24117. _In_ const FLOAT ColorRGBA[ 4 ],
  24118. _In_ UINT NumRects,
  24119. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24120. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  24121. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  24122. ID3D12GraphicsCommandList7 * This,
  24123. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  24124. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  24125. _In_ ID3D12Resource *pResource,
  24126. _In_ const UINT Values[ 4 ],
  24127. _In_ UINT NumRects,
  24128. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24129. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  24130. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  24131. ID3D12GraphicsCommandList7 * This,
  24132. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  24133. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  24134. _In_ ID3D12Resource *pResource,
  24135. _In_ const FLOAT Values[ 4 ],
  24136. _In_ UINT NumRects,
  24137. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24138. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  24139. void ( STDMETHODCALLTYPE *DiscardResource )(
  24140. ID3D12GraphicsCommandList7 * This,
  24141. _In_ ID3D12Resource *pResource,
  24142. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  24143. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  24144. void ( STDMETHODCALLTYPE *BeginQuery )(
  24145. ID3D12GraphicsCommandList7 * This,
  24146. _In_ ID3D12QueryHeap *pQueryHeap,
  24147. _In_ D3D12_QUERY_TYPE Type,
  24148. _In_ UINT Index);
  24149. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  24150. void ( STDMETHODCALLTYPE *EndQuery )(
  24151. ID3D12GraphicsCommandList7 * This,
  24152. _In_ ID3D12QueryHeap *pQueryHeap,
  24153. _In_ D3D12_QUERY_TYPE Type,
  24154. _In_ UINT Index);
  24155. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  24156. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  24157. ID3D12GraphicsCommandList7 * This,
  24158. _In_ ID3D12QueryHeap *pQueryHeap,
  24159. _In_ D3D12_QUERY_TYPE Type,
  24160. _In_ UINT StartIndex,
  24161. _In_ UINT NumQueries,
  24162. _In_ ID3D12Resource *pDestinationBuffer,
  24163. _In_ UINT64 AlignedDestinationBufferOffset);
  24164. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  24165. void ( STDMETHODCALLTYPE *SetPredication )(
  24166. ID3D12GraphicsCommandList7 * This,
  24167. _In_opt_ ID3D12Resource *pBuffer,
  24168. _In_ UINT64 AlignedBufferOffset,
  24169. _In_ D3D12_PREDICATION_OP Operation);
  24170. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  24171. void ( STDMETHODCALLTYPE *SetMarker )(
  24172. ID3D12GraphicsCommandList7 * This,
  24173. UINT Metadata,
  24174. _In_reads_bytes_opt_(Size) const void *pData,
  24175. UINT Size);
  24176. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  24177. void ( STDMETHODCALLTYPE *BeginEvent )(
  24178. ID3D12GraphicsCommandList7 * This,
  24179. UINT Metadata,
  24180. _In_reads_bytes_opt_(Size) const void *pData,
  24181. UINT Size);
  24182. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  24183. void ( STDMETHODCALLTYPE *EndEvent )(
  24184. ID3D12GraphicsCommandList7 * This);
  24185. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  24186. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  24187. ID3D12GraphicsCommandList7 * This,
  24188. _In_ ID3D12CommandSignature *pCommandSignature,
  24189. _In_ UINT MaxCommandCount,
  24190. _In_ ID3D12Resource *pArgumentBuffer,
  24191. _In_ UINT64 ArgumentBufferOffset,
  24192. _In_opt_ ID3D12Resource *pCountBuffer,
  24193. _In_ UINT64 CountBufferOffset);
  24194. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  24195. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  24196. ID3D12GraphicsCommandList7 * This,
  24197. _In_ ID3D12Resource *pDstBuffer,
  24198. UINT64 DstOffset,
  24199. _In_ ID3D12Resource *pSrcBuffer,
  24200. UINT64 SrcOffset,
  24201. UINT Dependencies,
  24202. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  24203. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  24204. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  24205. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  24206. ID3D12GraphicsCommandList7 * This,
  24207. _In_ ID3D12Resource *pDstBuffer,
  24208. UINT64 DstOffset,
  24209. _In_ ID3D12Resource *pSrcBuffer,
  24210. UINT64 SrcOffset,
  24211. UINT Dependencies,
  24212. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  24213. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  24214. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  24215. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  24216. ID3D12GraphicsCommandList7 * This,
  24217. _In_ FLOAT Min,
  24218. _In_ FLOAT Max);
  24219. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  24220. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  24221. ID3D12GraphicsCommandList7 * This,
  24222. _In_ UINT NumSamplesPerPixel,
  24223. _In_ UINT NumPixels,
  24224. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  24225. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  24226. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  24227. ID3D12GraphicsCommandList7 * This,
  24228. _In_ ID3D12Resource *pDstResource,
  24229. _In_ UINT DstSubresource,
  24230. _In_ UINT DstX,
  24231. _In_ UINT DstY,
  24232. _In_ ID3D12Resource *pSrcResource,
  24233. _In_ UINT SrcSubresource,
  24234. _In_opt_ D3D12_RECT *pSrcRect,
  24235. _In_ DXGI_FORMAT Format,
  24236. _In_ D3D12_RESOLVE_MODE ResolveMode);
  24237. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  24238. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  24239. ID3D12GraphicsCommandList7 * This,
  24240. _In_ UINT Mask);
  24241. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  24242. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  24243. ID3D12GraphicsCommandList7 * This,
  24244. UINT Count,
  24245. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  24246. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  24247. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  24248. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  24249. ID3D12GraphicsCommandList7 * This,
  24250. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  24251. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  24252. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  24253. ID3D12GraphicsCommandList7 * This,
  24254. _In_ UINT NumRenderTargets,
  24255. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  24256. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  24257. D3D12_RENDER_PASS_FLAGS Flags);
  24258. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  24259. void ( STDMETHODCALLTYPE *EndRenderPass )(
  24260. ID3D12GraphicsCommandList7 * This);
  24261. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  24262. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  24263. ID3D12GraphicsCommandList7 * This,
  24264. _In_ ID3D12MetaCommand *pMetaCommand,
  24265. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  24266. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  24267. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  24268. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  24269. ID3D12GraphicsCommandList7 * This,
  24270. _In_ ID3D12MetaCommand *pMetaCommand,
  24271. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  24272. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  24273. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  24274. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  24275. ID3D12GraphicsCommandList7 * This,
  24276. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  24277. _In_ UINT NumPostbuildInfoDescs,
  24278. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  24279. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  24280. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  24281. ID3D12GraphicsCommandList7 * This,
  24282. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  24283. _In_ UINT NumSourceAccelerationStructures,
  24284. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  24285. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  24286. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  24287. ID3D12GraphicsCommandList7 * This,
  24288. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  24289. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  24290. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  24291. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  24292. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  24293. ID3D12GraphicsCommandList7 * This,
  24294. _In_ ID3D12StateObject *pStateObject);
  24295. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  24296. void ( STDMETHODCALLTYPE *DispatchRays )(
  24297. ID3D12GraphicsCommandList7 * This,
  24298. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  24299. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  24300. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  24301. ID3D12GraphicsCommandList7 * This,
  24302. _In_ D3D12_SHADING_RATE baseShadingRate,
  24303. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  24304. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  24305. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  24306. ID3D12GraphicsCommandList7 * This,
  24307. _In_opt_ ID3D12Resource *shadingRateImage);
  24308. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  24309. void ( STDMETHODCALLTYPE *DispatchMesh )(
  24310. ID3D12GraphicsCommandList7 * This,
  24311. _In_ UINT ThreadGroupCountX,
  24312. _In_ UINT ThreadGroupCountY,
  24313. _In_ UINT ThreadGroupCountZ);
  24314. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  24315. void ( STDMETHODCALLTYPE *Barrier )(
  24316. ID3D12GraphicsCommandList7 * This,
  24317. UINT32 NumBarrierGroups,
  24318. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  24319. END_INTERFACE
  24320. } ID3D12GraphicsCommandList7Vtbl;
  24321. interface ID3D12GraphicsCommandList7
  24322. {
  24323. CONST_VTBL struct ID3D12GraphicsCommandList7Vtbl *lpVtbl;
  24324. };
  24325. #ifdef COBJMACROS
  24326. #define ID3D12GraphicsCommandList7_QueryInterface(This,riid,ppvObject) \
  24327. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  24328. #define ID3D12GraphicsCommandList7_AddRef(This) \
  24329. ( (This)->lpVtbl -> AddRef(This) )
  24330. #define ID3D12GraphicsCommandList7_Release(This) \
  24331. ( (This)->lpVtbl -> Release(This) )
  24332. #define ID3D12GraphicsCommandList7_GetPrivateData(This,guid,pDataSize,pData) \
  24333. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  24334. #define ID3D12GraphicsCommandList7_SetPrivateData(This,guid,DataSize,pData) \
  24335. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  24336. #define ID3D12GraphicsCommandList7_SetPrivateDataInterface(This,guid,pData) \
  24337. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  24338. #define ID3D12GraphicsCommandList7_SetName(This,Name) \
  24339. ( (This)->lpVtbl -> SetName(This,Name) )
  24340. #define ID3D12GraphicsCommandList7_GetDevice(This,riid,ppvDevice) \
  24341. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  24342. #define ID3D12GraphicsCommandList7_GetType(This) \
  24343. ( (This)->lpVtbl -> GetType(This) )
  24344. #define ID3D12GraphicsCommandList7_Close(This) \
  24345. ( (This)->lpVtbl -> Close(This) )
  24346. #define ID3D12GraphicsCommandList7_Reset(This,pAllocator,pInitialState) \
  24347. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  24348. #define ID3D12GraphicsCommandList7_ClearState(This,pPipelineState) \
  24349. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  24350. #define ID3D12GraphicsCommandList7_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  24351. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  24352. #define ID3D12GraphicsCommandList7_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  24353. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  24354. #define ID3D12GraphicsCommandList7_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  24355. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  24356. #define ID3D12GraphicsCommandList7_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  24357. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  24358. #define ID3D12GraphicsCommandList7_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  24359. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  24360. #define ID3D12GraphicsCommandList7_CopyResource(This,pDstResource,pSrcResource) \
  24361. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  24362. #define ID3D12GraphicsCommandList7_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  24363. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  24364. #define ID3D12GraphicsCommandList7_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  24365. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  24366. #define ID3D12GraphicsCommandList7_IASetPrimitiveTopology(This,PrimitiveTopology) \
  24367. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  24368. #define ID3D12GraphicsCommandList7_RSSetViewports(This,NumViewports,pViewports) \
  24369. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  24370. #define ID3D12GraphicsCommandList7_RSSetScissorRects(This,NumRects,pRects) \
  24371. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  24372. #define ID3D12GraphicsCommandList7_OMSetBlendFactor(This,BlendFactor) \
  24373. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  24374. #define ID3D12GraphicsCommandList7_OMSetStencilRef(This,StencilRef) \
  24375. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  24376. #define ID3D12GraphicsCommandList7_SetPipelineState(This,pPipelineState) \
  24377. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  24378. #define ID3D12GraphicsCommandList7_ResourceBarrier(This,NumBarriers,pBarriers) \
  24379. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  24380. #define ID3D12GraphicsCommandList7_ExecuteBundle(This,pCommandList) \
  24381. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  24382. #define ID3D12GraphicsCommandList7_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  24383. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  24384. #define ID3D12GraphicsCommandList7_SetComputeRootSignature(This,pRootSignature) \
  24385. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  24386. #define ID3D12GraphicsCommandList7_SetGraphicsRootSignature(This,pRootSignature) \
  24387. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  24388. #define ID3D12GraphicsCommandList7_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  24389. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  24390. #define ID3D12GraphicsCommandList7_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  24391. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  24392. #define ID3D12GraphicsCommandList7_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  24393. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  24394. #define ID3D12GraphicsCommandList7_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  24395. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  24396. #define ID3D12GraphicsCommandList7_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  24397. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  24398. #define ID3D12GraphicsCommandList7_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  24399. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  24400. #define ID3D12GraphicsCommandList7_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  24401. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  24402. #define ID3D12GraphicsCommandList7_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  24403. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  24404. #define ID3D12GraphicsCommandList7_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  24405. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  24406. #define ID3D12GraphicsCommandList7_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  24407. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  24408. #define ID3D12GraphicsCommandList7_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  24409. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  24410. #define ID3D12GraphicsCommandList7_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  24411. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  24412. #define ID3D12GraphicsCommandList7_IASetIndexBuffer(This,pView) \
  24413. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  24414. #define ID3D12GraphicsCommandList7_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  24415. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  24416. #define ID3D12GraphicsCommandList7_SOSetTargets(This,StartSlot,NumViews,pViews) \
  24417. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  24418. #define ID3D12GraphicsCommandList7_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  24419. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  24420. #define ID3D12GraphicsCommandList7_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  24421. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  24422. #define ID3D12GraphicsCommandList7_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  24423. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  24424. #define ID3D12GraphicsCommandList7_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  24425. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  24426. #define ID3D12GraphicsCommandList7_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  24427. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  24428. #define ID3D12GraphicsCommandList7_DiscardResource(This,pResource,pRegion) \
  24429. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  24430. #define ID3D12GraphicsCommandList7_BeginQuery(This,pQueryHeap,Type,Index) \
  24431. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  24432. #define ID3D12GraphicsCommandList7_EndQuery(This,pQueryHeap,Type,Index) \
  24433. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  24434. #define ID3D12GraphicsCommandList7_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  24435. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  24436. #define ID3D12GraphicsCommandList7_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  24437. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  24438. #define ID3D12GraphicsCommandList7_SetMarker(This,Metadata,pData,Size) \
  24439. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  24440. #define ID3D12GraphicsCommandList7_BeginEvent(This,Metadata,pData,Size) \
  24441. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  24442. #define ID3D12GraphicsCommandList7_EndEvent(This) \
  24443. ( (This)->lpVtbl -> EndEvent(This) )
  24444. #define ID3D12GraphicsCommandList7_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  24445. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  24446. #define ID3D12GraphicsCommandList7_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  24447. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  24448. #define ID3D12GraphicsCommandList7_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  24449. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  24450. #define ID3D12GraphicsCommandList7_OMSetDepthBounds(This,Min,Max) \
  24451. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  24452. #define ID3D12GraphicsCommandList7_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  24453. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  24454. #define ID3D12GraphicsCommandList7_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  24455. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  24456. #define ID3D12GraphicsCommandList7_SetViewInstanceMask(This,Mask) \
  24457. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  24458. #define ID3D12GraphicsCommandList7_WriteBufferImmediate(This,Count,pParams,pModes) \
  24459. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  24460. #define ID3D12GraphicsCommandList7_SetProtectedResourceSession(This,pProtectedResourceSession) \
  24461. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  24462. #define ID3D12GraphicsCommandList7_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  24463. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  24464. #define ID3D12GraphicsCommandList7_EndRenderPass(This) \
  24465. ( (This)->lpVtbl -> EndRenderPass(This) )
  24466. #define ID3D12GraphicsCommandList7_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  24467. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  24468. #define ID3D12GraphicsCommandList7_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  24469. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  24470. #define ID3D12GraphicsCommandList7_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  24471. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  24472. #define ID3D12GraphicsCommandList7_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  24473. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  24474. #define ID3D12GraphicsCommandList7_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  24475. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  24476. #define ID3D12GraphicsCommandList7_SetPipelineState1(This,pStateObject) \
  24477. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  24478. #define ID3D12GraphicsCommandList7_DispatchRays(This,pDesc) \
  24479. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  24480. #define ID3D12GraphicsCommandList7_RSSetShadingRate(This,baseShadingRate,combiners) \
  24481. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  24482. #define ID3D12GraphicsCommandList7_RSSetShadingRateImage(This,shadingRateImage) \
  24483. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  24484. #define ID3D12GraphicsCommandList7_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  24485. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  24486. #define ID3D12GraphicsCommandList7_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  24487. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  24488. #endif /* COBJMACROS */
  24489. #endif /* C style interface */
  24490. #endif /* __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__ */
  24491. #ifndef __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__
  24492. #define __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__
  24493. /* interface ID3D12GraphicsCommandList8 */
  24494. /* [unique][local][object][uuid] */
  24495. EXTERN_C const IID IID_ID3D12GraphicsCommandList8;
  24496. #if defined(__cplusplus) && !defined(CINTERFACE)
  24497. MIDL_INTERFACE("ee936ef9-599d-4d28-938e-23c4ad05ce51")
  24498. ID3D12GraphicsCommandList8 : public ID3D12GraphicsCommandList7
  24499. {
  24500. public:
  24501. virtual void STDMETHODCALLTYPE OMSetFrontAndBackStencilRef(
  24502. _In_ UINT FrontStencilRef,
  24503. _In_ UINT BackStencilRef) = 0;
  24504. };
  24505. #else /* C style interface */
  24506. typedef struct ID3D12GraphicsCommandList8Vtbl
  24507. {
  24508. BEGIN_INTERFACE
  24509. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  24510. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  24511. ID3D12GraphicsCommandList8 * This,
  24512. REFIID riid,
  24513. _COM_Outptr_ void **ppvObject);
  24514. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  24515. ULONG ( STDMETHODCALLTYPE *AddRef )(
  24516. ID3D12GraphicsCommandList8 * This);
  24517. DECLSPEC_XFGVIRT(IUnknown, Release)
  24518. ULONG ( STDMETHODCALLTYPE *Release )(
  24519. ID3D12GraphicsCommandList8 * This);
  24520. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  24521. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  24522. ID3D12GraphicsCommandList8 * This,
  24523. _In_ REFGUID guid,
  24524. _Inout_ UINT *pDataSize,
  24525. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  24526. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  24527. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  24528. ID3D12GraphicsCommandList8 * This,
  24529. _In_ REFGUID guid,
  24530. _In_ UINT DataSize,
  24531. _In_reads_bytes_opt_( DataSize ) const void *pData);
  24532. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  24533. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  24534. ID3D12GraphicsCommandList8 * This,
  24535. _In_ REFGUID guid,
  24536. _In_opt_ const IUnknown *pData);
  24537. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  24538. HRESULT ( STDMETHODCALLTYPE *SetName )(
  24539. ID3D12GraphicsCommandList8 * This,
  24540. _In_z_ LPCWSTR Name);
  24541. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  24542. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  24543. ID3D12GraphicsCommandList8 * This,
  24544. REFIID riid,
  24545. _COM_Outptr_opt_ void **ppvDevice);
  24546. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  24547. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  24548. ID3D12GraphicsCommandList8 * This);
  24549. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  24550. HRESULT ( STDMETHODCALLTYPE *Close )(
  24551. ID3D12GraphicsCommandList8 * This);
  24552. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  24553. HRESULT ( STDMETHODCALLTYPE *Reset )(
  24554. ID3D12GraphicsCommandList8 * This,
  24555. _In_ ID3D12CommandAllocator *pAllocator,
  24556. _In_opt_ ID3D12PipelineState *pInitialState);
  24557. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  24558. void ( STDMETHODCALLTYPE *ClearState )(
  24559. ID3D12GraphicsCommandList8 * This,
  24560. _In_opt_ ID3D12PipelineState *pPipelineState);
  24561. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  24562. void ( STDMETHODCALLTYPE *DrawInstanced )(
  24563. ID3D12GraphicsCommandList8 * This,
  24564. _In_ UINT VertexCountPerInstance,
  24565. _In_ UINT InstanceCount,
  24566. _In_ UINT StartVertexLocation,
  24567. _In_ UINT StartInstanceLocation);
  24568. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  24569. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  24570. ID3D12GraphicsCommandList8 * This,
  24571. _In_ UINT IndexCountPerInstance,
  24572. _In_ UINT InstanceCount,
  24573. _In_ UINT StartIndexLocation,
  24574. _In_ INT BaseVertexLocation,
  24575. _In_ UINT StartInstanceLocation);
  24576. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  24577. void ( STDMETHODCALLTYPE *Dispatch )(
  24578. ID3D12GraphicsCommandList8 * This,
  24579. _In_ UINT ThreadGroupCountX,
  24580. _In_ UINT ThreadGroupCountY,
  24581. _In_ UINT ThreadGroupCountZ);
  24582. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  24583. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  24584. ID3D12GraphicsCommandList8 * This,
  24585. _In_ ID3D12Resource *pDstBuffer,
  24586. UINT64 DstOffset,
  24587. _In_ ID3D12Resource *pSrcBuffer,
  24588. UINT64 SrcOffset,
  24589. UINT64 NumBytes);
  24590. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  24591. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  24592. ID3D12GraphicsCommandList8 * This,
  24593. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  24594. UINT DstX,
  24595. UINT DstY,
  24596. UINT DstZ,
  24597. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  24598. _In_opt_ const D3D12_BOX *pSrcBox);
  24599. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  24600. void ( STDMETHODCALLTYPE *CopyResource )(
  24601. ID3D12GraphicsCommandList8 * This,
  24602. _In_ ID3D12Resource *pDstResource,
  24603. _In_ ID3D12Resource *pSrcResource);
  24604. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  24605. void ( STDMETHODCALLTYPE *CopyTiles )(
  24606. ID3D12GraphicsCommandList8 * This,
  24607. _In_ ID3D12Resource *pTiledResource,
  24608. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  24609. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  24610. _In_ ID3D12Resource *pBuffer,
  24611. UINT64 BufferStartOffsetInBytes,
  24612. D3D12_TILE_COPY_FLAGS Flags);
  24613. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  24614. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  24615. ID3D12GraphicsCommandList8 * This,
  24616. _In_ ID3D12Resource *pDstResource,
  24617. _In_ UINT DstSubresource,
  24618. _In_ ID3D12Resource *pSrcResource,
  24619. _In_ UINT SrcSubresource,
  24620. _In_ DXGI_FORMAT Format);
  24621. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  24622. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  24623. ID3D12GraphicsCommandList8 * This,
  24624. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  24625. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  24626. void ( STDMETHODCALLTYPE *RSSetViewports )(
  24627. ID3D12GraphicsCommandList8 * This,
  24628. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  24629. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  24630. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  24631. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  24632. ID3D12GraphicsCommandList8 * This,
  24633. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  24634. _In_reads_( NumRects) const D3D12_RECT *pRects);
  24635. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  24636. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  24637. ID3D12GraphicsCommandList8 * This,
  24638. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  24639. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  24640. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  24641. ID3D12GraphicsCommandList8 * This,
  24642. _In_ UINT StencilRef);
  24643. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  24644. void ( STDMETHODCALLTYPE *SetPipelineState )(
  24645. ID3D12GraphicsCommandList8 * This,
  24646. _In_ ID3D12PipelineState *pPipelineState);
  24647. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  24648. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  24649. ID3D12GraphicsCommandList8 * This,
  24650. _In_ UINT NumBarriers,
  24651. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  24652. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  24653. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  24654. ID3D12GraphicsCommandList8 * This,
  24655. _In_ ID3D12GraphicsCommandList *pCommandList);
  24656. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  24657. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  24658. ID3D12GraphicsCommandList8 * This,
  24659. _In_ UINT NumDescriptorHeaps,
  24660. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  24661. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  24662. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  24663. ID3D12GraphicsCommandList8 * This,
  24664. _In_opt_ ID3D12RootSignature *pRootSignature);
  24665. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  24666. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  24667. ID3D12GraphicsCommandList8 * This,
  24668. _In_opt_ ID3D12RootSignature *pRootSignature);
  24669. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  24670. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  24671. ID3D12GraphicsCommandList8 * This,
  24672. _In_ UINT RootParameterIndex,
  24673. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  24674. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  24675. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  24676. ID3D12GraphicsCommandList8 * This,
  24677. _In_ UINT RootParameterIndex,
  24678. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  24679. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  24680. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  24681. ID3D12GraphicsCommandList8 * This,
  24682. _In_ UINT RootParameterIndex,
  24683. _In_ UINT SrcData,
  24684. _In_ UINT DestOffsetIn32BitValues);
  24685. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  24686. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  24687. ID3D12GraphicsCommandList8 * This,
  24688. _In_ UINT RootParameterIndex,
  24689. _In_ UINT SrcData,
  24690. _In_ UINT DestOffsetIn32BitValues);
  24691. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  24692. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  24693. ID3D12GraphicsCommandList8 * This,
  24694. _In_ UINT RootParameterIndex,
  24695. _In_ UINT Num32BitValuesToSet,
  24696. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  24697. _In_ UINT DestOffsetIn32BitValues);
  24698. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  24699. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  24700. ID3D12GraphicsCommandList8 * This,
  24701. _In_ UINT RootParameterIndex,
  24702. _In_ UINT Num32BitValuesToSet,
  24703. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  24704. _In_ UINT DestOffsetIn32BitValues);
  24705. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  24706. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  24707. ID3D12GraphicsCommandList8 * This,
  24708. _In_ UINT RootParameterIndex,
  24709. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24710. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  24711. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  24712. ID3D12GraphicsCommandList8 * This,
  24713. _In_ UINT RootParameterIndex,
  24714. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24715. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  24716. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  24717. ID3D12GraphicsCommandList8 * This,
  24718. _In_ UINT RootParameterIndex,
  24719. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24720. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  24721. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  24722. ID3D12GraphicsCommandList8 * This,
  24723. _In_ UINT RootParameterIndex,
  24724. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24725. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  24726. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  24727. ID3D12GraphicsCommandList8 * This,
  24728. _In_ UINT RootParameterIndex,
  24729. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24730. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  24731. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  24732. ID3D12GraphicsCommandList8 * This,
  24733. _In_ UINT RootParameterIndex,
  24734. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24735. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  24736. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  24737. ID3D12GraphicsCommandList8 * This,
  24738. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  24739. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  24740. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  24741. ID3D12GraphicsCommandList8 * This,
  24742. _In_ UINT StartSlot,
  24743. _In_ UINT NumViews,
  24744. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  24745. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  24746. void ( STDMETHODCALLTYPE *SOSetTargets )(
  24747. ID3D12GraphicsCommandList8 * This,
  24748. _In_ UINT StartSlot,
  24749. _In_ UINT NumViews,
  24750. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  24751. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  24752. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  24753. ID3D12GraphicsCommandList8 * This,
  24754. _In_ UINT NumRenderTargetDescriptors,
  24755. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  24756. _In_ BOOL RTsSingleHandleToDescriptorRange,
  24757. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  24758. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  24759. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  24760. ID3D12GraphicsCommandList8 * This,
  24761. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  24762. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  24763. _In_ FLOAT Depth,
  24764. _In_ UINT8 Stencil,
  24765. _In_ UINT NumRects,
  24766. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24767. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  24768. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  24769. ID3D12GraphicsCommandList8 * This,
  24770. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  24771. _In_ const FLOAT ColorRGBA[ 4 ],
  24772. _In_ UINT NumRects,
  24773. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24774. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  24775. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  24776. ID3D12GraphicsCommandList8 * This,
  24777. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  24778. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  24779. _In_ ID3D12Resource *pResource,
  24780. _In_ const UINT Values[ 4 ],
  24781. _In_ UINT NumRects,
  24782. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24783. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  24784. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  24785. ID3D12GraphicsCommandList8 * This,
  24786. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  24787. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  24788. _In_ ID3D12Resource *pResource,
  24789. _In_ const FLOAT Values[ 4 ],
  24790. _In_ UINT NumRects,
  24791. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24792. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  24793. void ( STDMETHODCALLTYPE *DiscardResource )(
  24794. ID3D12GraphicsCommandList8 * This,
  24795. _In_ ID3D12Resource *pResource,
  24796. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  24797. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  24798. void ( STDMETHODCALLTYPE *BeginQuery )(
  24799. ID3D12GraphicsCommandList8 * This,
  24800. _In_ ID3D12QueryHeap *pQueryHeap,
  24801. _In_ D3D12_QUERY_TYPE Type,
  24802. _In_ UINT Index);
  24803. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  24804. void ( STDMETHODCALLTYPE *EndQuery )(
  24805. ID3D12GraphicsCommandList8 * This,
  24806. _In_ ID3D12QueryHeap *pQueryHeap,
  24807. _In_ D3D12_QUERY_TYPE Type,
  24808. _In_ UINT Index);
  24809. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  24810. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  24811. ID3D12GraphicsCommandList8 * This,
  24812. _In_ ID3D12QueryHeap *pQueryHeap,
  24813. _In_ D3D12_QUERY_TYPE Type,
  24814. _In_ UINT StartIndex,
  24815. _In_ UINT NumQueries,
  24816. _In_ ID3D12Resource *pDestinationBuffer,
  24817. _In_ UINT64 AlignedDestinationBufferOffset);
  24818. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  24819. void ( STDMETHODCALLTYPE *SetPredication )(
  24820. ID3D12GraphicsCommandList8 * This,
  24821. _In_opt_ ID3D12Resource *pBuffer,
  24822. _In_ UINT64 AlignedBufferOffset,
  24823. _In_ D3D12_PREDICATION_OP Operation);
  24824. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  24825. void ( STDMETHODCALLTYPE *SetMarker )(
  24826. ID3D12GraphicsCommandList8 * This,
  24827. UINT Metadata,
  24828. _In_reads_bytes_opt_(Size) const void *pData,
  24829. UINT Size);
  24830. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  24831. void ( STDMETHODCALLTYPE *BeginEvent )(
  24832. ID3D12GraphicsCommandList8 * This,
  24833. UINT Metadata,
  24834. _In_reads_bytes_opt_(Size) const void *pData,
  24835. UINT Size);
  24836. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  24837. void ( STDMETHODCALLTYPE *EndEvent )(
  24838. ID3D12GraphicsCommandList8 * This);
  24839. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  24840. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  24841. ID3D12GraphicsCommandList8 * This,
  24842. _In_ ID3D12CommandSignature *pCommandSignature,
  24843. _In_ UINT MaxCommandCount,
  24844. _In_ ID3D12Resource *pArgumentBuffer,
  24845. _In_ UINT64 ArgumentBufferOffset,
  24846. _In_opt_ ID3D12Resource *pCountBuffer,
  24847. _In_ UINT64 CountBufferOffset);
  24848. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  24849. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  24850. ID3D12GraphicsCommandList8 * This,
  24851. _In_ ID3D12Resource *pDstBuffer,
  24852. UINT64 DstOffset,
  24853. _In_ ID3D12Resource *pSrcBuffer,
  24854. UINT64 SrcOffset,
  24855. UINT Dependencies,
  24856. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  24857. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  24858. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  24859. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  24860. ID3D12GraphicsCommandList8 * This,
  24861. _In_ ID3D12Resource *pDstBuffer,
  24862. UINT64 DstOffset,
  24863. _In_ ID3D12Resource *pSrcBuffer,
  24864. UINT64 SrcOffset,
  24865. UINT Dependencies,
  24866. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  24867. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  24868. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  24869. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  24870. ID3D12GraphicsCommandList8 * This,
  24871. _In_ FLOAT Min,
  24872. _In_ FLOAT Max);
  24873. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  24874. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  24875. ID3D12GraphicsCommandList8 * This,
  24876. _In_ UINT NumSamplesPerPixel,
  24877. _In_ UINT NumPixels,
  24878. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  24879. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  24880. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  24881. ID3D12GraphicsCommandList8 * This,
  24882. _In_ ID3D12Resource *pDstResource,
  24883. _In_ UINT DstSubresource,
  24884. _In_ UINT DstX,
  24885. _In_ UINT DstY,
  24886. _In_ ID3D12Resource *pSrcResource,
  24887. _In_ UINT SrcSubresource,
  24888. _In_opt_ D3D12_RECT *pSrcRect,
  24889. _In_ DXGI_FORMAT Format,
  24890. _In_ D3D12_RESOLVE_MODE ResolveMode);
  24891. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  24892. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  24893. ID3D12GraphicsCommandList8 * This,
  24894. _In_ UINT Mask);
  24895. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  24896. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  24897. ID3D12GraphicsCommandList8 * This,
  24898. UINT Count,
  24899. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  24900. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  24901. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  24902. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  24903. ID3D12GraphicsCommandList8 * This,
  24904. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  24905. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  24906. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  24907. ID3D12GraphicsCommandList8 * This,
  24908. _In_ UINT NumRenderTargets,
  24909. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  24910. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  24911. D3D12_RENDER_PASS_FLAGS Flags);
  24912. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  24913. void ( STDMETHODCALLTYPE *EndRenderPass )(
  24914. ID3D12GraphicsCommandList8 * This);
  24915. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  24916. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  24917. ID3D12GraphicsCommandList8 * This,
  24918. _In_ ID3D12MetaCommand *pMetaCommand,
  24919. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  24920. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  24921. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  24922. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  24923. ID3D12GraphicsCommandList8 * This,
  24924. _In_ ID3D12MetaCommand *pMetaCommand,
  24925. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  24926. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  24927. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  24928. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  24929. ID3D12GraphicsCommandList8 * This,
  24930. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  24931. _In_ UINT NumPostbuildInfoDescs,
  24932. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  24933. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  24934. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  24935. ID3D12GraphicsCommandList8 * This,
  24936. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  24937. _In_ UINT NumSourceAccelerationStructures,
  24938. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  24939. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  24940. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  24941. ID3D12GraphicsCommandList8 * This,
  24942. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  24943. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  24944. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  24945. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  24946. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  24947. ID3D12GraphicsCommandList8 * This,
  24948. _In_ ID3D12StateObject *pStateObject);
  24949. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  24950. void ( STDMETHODCALLTYPE *DispatchRays )(
  24951. ID3D12GraphicsCommandList8 * This,
  24952. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  24953. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  24954. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  24955. ID3D12GraphicsCommandList8 * This,
  24956. _In_ D3D12_SHADING_RATE baseShadingRate,
  24957. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  24958. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  24959. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  24960. ID3D12GraphicsCommandList8 * This,
  24961. _In_opt_ ID3D12Resource *shadingRateImage);
  24962. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  24963. void ( STDMETHODCALLTYPE *DispatchMesh )(
  24964. ID3D12GraphicsCommandList8 * This,
  24965. _In_ UINT ThreadGroupCountX,
  24966. _In_ UINT ThreadGroupCountY,
  24967. _In_ UINT ThreadGroupCountZ);
  24968. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  24969. void ( STDMETHODCALLTYPE *Barrier )(
  24970. ID3D12GraphicsCommandList8 * This,
  24971. UINT32 NumBarrierGroups,
  24972. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  24973. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef)
  24974. void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )(
  24975. ID3D12GraphicsCommandList8 * This,
  24976. _In_ UINT FrontStencilRef,
  24977. _In_ UINT BackStencilRef);
  24978. END_INTERFACE
  24979. } ID3D12GraphicsCommandList8Vtbl;
  24980. interface ID3D12GraphicsCommandList8
  24981. {
  24982. CONST_VTBL struct ID3D12GraphicsCommandList8Vtbl *lpVtbl;
  24983. };
  24984. #ifdef COBJMACROS
  24985. #define ID3D12GraphicsCommandList8_QueryInterface(This,riid,ppvObject) \
  24986. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  24987. #define ID3D12GraphicsCommandList8_AddRef(This) \
  24988. ( (This)->lpVtbl -> AddRef(This) )
  24989. #define ID3D12GraphicsCommandList8_Release(This) \
  24990. ( (This)->lpVtbl -> Release(This) )
  24991. #define ID3D12GraphicsCommandList8_GetPrivateData(This,guid,pDataSize,pData) \
  24992. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  24993. #define ID3D12GraphicsCommandList8_SetPrivateData(This,guid,DataSize,pData) \
  24994. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  24995. #define ID3D12GraphicsCommandList8_SetPrivateDataInterface(This,guid,pData) \
  24996. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  24997. #define ID3D12GraphicsCommandList8_SetName(This,Name) \
  24998. ( (This)->lpVtbl -> SetName(This,Name) )
  24999. #define ID3D12GraphicsCommandList8_GetDevice(This,riid,ppvDevice) \
  25000. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  25001. #define ID3D12GraphicsCommandList8_GetType(This) \
  25002. ( (This)->lpVtbl -> GetType(This) )
  25003. #define ID3D12GraphicsCommandList8_Close(This) \
  25004. ( (This)->lpVtbl -> Close(This) )
  25005. #define ID3D12GraphicsCommandList8_Reset(This,pAllocator,pInitialState) \
  25006. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  25007. #define ID3D12GraphicsCommandList8_ClearState(This,pPipelineState) \
  25008. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  25009. #define ID3D12GraphicsCommandList8_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  25010. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  25011. #define ID3D12GraphicsCommandList8_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  25012. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  25013. #define ID3D12GraphicsCommandList8_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  25014. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  25015. #define ID3D12GraphicsCommandList8_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  25016. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  25017. #define ID3D12GraphicsCommandList8_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  25018. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  25019. #define ID3D12GraphicsCommandList8_CopyResource(This,pDstResource,pSrcResource) \
  25020. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  25021. #define ID3D12GraphicsCommandList8_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  25022. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  25023. #define ID3D12GraphicsCommandList8_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  25024. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  25025. #define ID3D12GraphicsCommandList8_IASetPrimitiveTopology(This,PrimitiveTopology) \
  25026. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  25027. #define ID3D12GraphicsCommandList8_RSSetViewports(This,NumViewports,pViewports) \
  25028. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  25029. #define ID3D12GraphicsCommandList8_RSSetScissorRects(This,NumRects,pRects) \
  25030. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  25031. #define ID3D12GraphicsCommandList8_OMSetBlendFactor(This,BlendFactor) \
  25032. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  25033. #define ID3D12GraphicsCommandList8_OMSetStencilRef(This,StencilRef) \
  25034. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  25035. #define ID3D12GraphicsCommandList8_SetPipelineState(This,pPipelineState) \
  25036. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  25037. #define ID3D12GraphicsCommandList8_ResourceBarrier(This,NumBarriers,pBarriers) \
  25038. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  25039. #define ID3D12GraphicsCommandList8_ExecuteBundle(This,pCommandList) \
  25040. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  25041. #define ID3D12GraphicsCommandList8_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  25042. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  25043. #define ID3D12GraphicsCommandList8_SetComputeRootSignature(This,pRootSignature) \
  25044. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  25045. #define ID3D12GraphicsCommandList8_SetGraphicsRootSignature(This,pRootSignature) \
  25046. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  25047. #define ID3D12GraphicsCommandList8_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  25048. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  25049. #define ID3D12GraphicsCommandList8_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  25050. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  25051. #define ID3D12GraphicsCommandList8_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  25052. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  25053. #define ID3D12GraphicsCommandList8_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  25054. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  25055. #define ID3D12GraphicsCommandList8_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  25056. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  25057. #define ID3D12GraphicsCommandList8_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  25058. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  25059. #define ID3D12GraphicsCommandList8_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  25060. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  25061. #define ID3D12GraphicsCommandList8_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  25062. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  25063. #define ID3D12GraphicsCommandList8_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  25064. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  25065. #define ID3D12GraphicsCommandList8_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  25066. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  25067. #define ID3D12GraphicsCommandList8_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  25068. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  25069. #define ID3D12GraphicsCommandList8_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  25070. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  25071. #define ID3D12GraphicsCommandList8_IASetIndexBuffer(This,pView) \
  25072. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  25073. #define ID3D12GraphicsCommandList8_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  25074. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  25075. #define ID3D12GraphicsCommandList8_SOSetTargets(This,StartSlot,NumViews,pViews) \
  25076. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  25077. #define ID3D12GraphicsCommandList8_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  25078. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  25079. #define ID3D12GraphicsCommandList8_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  25080. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  25081. #define ID3D12GraphicsCommandList8_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  25082. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  25083. #define ID3D12GraphicsCommandList8_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  25084. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  25085. #define ID3D12GraphicsCommandList8_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  25086. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  25087. #define ID3D12GraphicsCommandList8_DiscardResource(This,pResource,pRegion) \
  25088. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  25089. #define ID3D12GraphicsCommandList8_BeginQuery(This,pQueryHeap,Type,Index) \
  25090. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  25091. #define ID3D12GraphicsCommandList8_EndQuery(This,pQueryHeap,Type,Index) \
  25092. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  25093. #define ID3D12GraphicsCommandList8_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  25094. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  25095. #define ID3D12GraphicsCommandList8_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  25096. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  25097. #define ID3D12GraphicsCommandList8_SetMarker(This,Metadata,pData,Size) \
  25098. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  25099. #define ID3D12GraphicsCommandList8_BeginEvent(This,Metadata,pData,Size) \
  25100. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  25101. #define ID3D12GraphicsCommandList8_EndEvent(This) \
  25102. ( (This)->lpVtbl -> EndEvent(This) )
  25103. #define ID3D12GraphicsCommandList8_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  25104. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  25105. #define ID3D12GraphicsCommandList8_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  25106. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  25107. #define ID3D12GraphicsCommandList8_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  25108. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  25109. #define ID3D12GraphicsCommandList8_OMSetDepthBounds(This,Min,Max) \
  25110. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  25111. #define ID3D12GraphicsCommandList8_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  25112. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  25113. #define ID3D12GraphicsCommandList8_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  25114. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  25115. #define ID3D12GraphicsCommandList8_SetViewInstanceMask(This,Mask) \
  25116. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  25117. #define ID3D12GraphicsCommandList8_WriteBufferImmediate(This,Count,pParams,pModes) \
  25118. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  25119. #define ID3D12GraphicsCommandList8_SetProtectedResourceSession(This,pProtectedResourceSession) \
  25120. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  25121. #define ID3D12GraphicsCommandList8_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  25122. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  25123. #define ID3D12GraphicsCommandList8_EndRenderPass(This) \
  25124. ( (This)->lpVtbl -> EndRenderPass(This) )
  25125. #define ID3D12GraphicsCommandList8_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  25126. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  25127. #define ID3D12GraphicsCommandList8_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  25128. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  25129. #define ID3D12GraphicsCommandList8_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  25130. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  25131. #define ID3D12GraphicsCommandList8_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  25132. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  25133. #define ID3D12GraphicsCommandList8_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  25134. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  25135. #define ID3D12GraphicsCommandList8_SetPipelineState1(This,pStateObject) \
  25136. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  25137. #define ID3D12GraphicsCommandList8_DispatchRays(This,pDesc) \
  25138. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  25139. #define ID3D12GraphicsCommandList8_RSSetShadingRate(This,baseShadingRate,combiners) \
  25140. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  25141. #define ID3D12GraphicsCommandList8_RSSetShadingRateImage(This,shadingRateImage) \
  25142. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  25143. #define ID3D12GraphicsCommandList8_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  25144. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  25145. #define ID3D12GraphicsCommandList8_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  25146. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  25147. #define ID3D12GraphicsCommandList8_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \
  25148. ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) )
  25149. #endif /* COBJMACROS */
  25150. #endif /* C style interface */
  25151. #endif /* __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__ */
  25152. #ifndef __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__
  25153. #define __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__
  25154. /* interface ID3D12GraphicsCommandList9 */
  25155. /* [unique][local][object][uuid] */
  25156. EXTERN_C const IID IID_ID3D12GraphicsCommandList9;
  25157. #if defined(__cplusplus) && !defined(CINTERFACE)
  25158. MIDL_INTERFACE("34ed2808-ffe6-4c2b-b11a-cabd2b0c59e1")
  25159. ID3D12GraphicsCommandList9 : public ID3D12GraphicsCommandList8
  25160. {
  25161. public:
  25162. virtual void STDMETHODCALLTYPE RSSetDepthBias(
  25163. _In_ FLOAT DepthBias,
  25164. _In_ FLOAT DepthBiasClamp,
  25165. _In_ FLOAT SlopeScaledDepthBias) = 0;
  25166. virtual void STDMETHODCALLTYPE IASetIndexBufferStripCutValue(
  25167. _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue) = 0;
  25168. };
  25169. #else /* C style interface */
  25170. typedef struct ID3D12GraphicsCommandList9Vtbl
  25171. {
  25172. BEGIN_INTERFACE
  25173. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  25174. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  25175. ID3D12GraphicsCommandList9 * This,
  25176. REFIID riid,
  25177. _COM_Outptr_ void **ppvObject);
  25178. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  25179. ULONG ( STDMETHODCALLTYPE *AddRef )(
  25180. ID3D12GraphicsCommandList9 * This);
  25181. DECLSPEC_XFGVIRT(IUnknown, Release)
  25182. ULONG ( STDMETHODCALLTYPE *Release )(
  25183. ID3D12GraphicsCommandList9 * This);
  25184. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  25185. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  25186. ID3D12GraphicsCommandList9 * This,
  25187. _In_ REFGUID guid,
  25188. _Inout_ UINT *pDataSize,
  25189. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  25190. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  25191. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  25192. ID3D12GraphicsCommandList9 * This,
  25193. _In_ REFGUID guid,
  25194. _In_ UINT DataSize,
  25195. _In_reads_bytes_opt_( DataSize ) const void *pData);
  25196. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  25197. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  25198. ID3D12GraphicsCommandList9 * This,
  25199. _In_ REFGUID guid,
  25200. _In_opt_ const IUnknown *pData);
  25201. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  25202. HRESULT ( STDMETHODCALLTYPE *SetName )(
  25203. ID3D12GraphicsCommandList9 * This,
  25204. _In_z_ LPCWSTR Name);
  25205. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  25206. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  25207. ID3D12GraphicsCommandList9 * This,
  25208. REFIID riid,
  25209. _COM_Outptr_opt_ void **ppvDevice);
  25210. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  25211. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  25212. ID3D12GraphicsCommandList9 * This);
  25213. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  25214. HRESULT ( STDMETHODCALLTYPE *Close )(
  25215. ID3D12GraphicsCommandList9 * This);
  25216. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  25217. HRESULT ( STDMETHODCALLTYPE *Reset )(
  25218. ID3D12GraphicsCommandList9 * This,
  25219. _In_ ID3D12CommandAllocator *pAllocator,
  25220. _In_opt_ ID3D12PipelineState *pInitialState);
  25221. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  25222. void ( STDMETHODCALLTYPE *ClearState )(
  25223. ID3D12GraphicsCommandList9 * This,
  25224. _In_opt_ ID3D12PipelineState *pPipelineState);
  25225. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  25226. void ( STDMETHODCALLTYPE *DrawInstanced )(
  25227. ID3D12GraphicsCommandList9 * This,
  25228. _In_ UINT VertexCountPerInstance,
  25229. _In_ UINT InstanceCount,
  25230. _In_ UINT StartVertexLocation,
  25231. _In_ UINT StartInstanceLocation);
  25232. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  25233. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  25234. ID3D12GraphicsCommandList9 * This,
  25235. _In_ UINT IndexCountPerInstance,
  25236. _In_ UINT InstanceCount,
  25237. _In_ UINT StartIndexLocation,
  25238. _In_ INT BaseVertexLocation,
  25239. _In_ UINT StartInstanceLocation);
  25240. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  25241. void ( STDMETHODCALLTYPE *Dispatch )(
  25242. ID3D12GraphicsCommandList9 * This,
  25243. _In_ UINT ThreadGroupCountX,
  25244. _In_ UINT ThreadGroupCountY,
  25245. _In_ UINT ThreadGroupCountZ);
  25246. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  25247. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  25248. ID3D12GraphicsCommandList9 * This,
  25249. _In_ ID3D12Resource *pDstBuffer,
  25250. UINT64 DstOffset,
  25251. _In_ ID3D12Resource *pSrcBuffer,
  25252. UINT64 SrcOffset,
  25253. UINT64 NumBytes);
  25254. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  25255. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  25256. ID3D12GraphicsCommandList9 * This,
  25257. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  25258. UINT DstX,
  25259. UINT DstY,
  25260. UINT DstZ,
  25261. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  25262. _In_opt_ const D3D12_BOX *pSrcBox);
  25263. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  25264. void ( STDMETHODCALLTYPE *CopyResource )(
  25265. ID3D12GraphicsCommandList9 * This,
  25266. _In_ ID3D12Resource *pDstResource,
  25267. _In_ ID3D12Resource *pSrcResource);
  25268. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  25269. void ( STDMETHODCALLTYPE *CopyTiles )(
  25270. ID3D12GraphicsCommandList9 * This,
  25271. _In_ ID3D12Resource *pTiledResource,
  25272. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  25273. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  25274. _In_ ID3D12Resource *pBuffer,
  25275. UINT64 BufferStartOffsetInBytes,
  25276. D3D12_TILE_COPY_FLAGS Flags);
  25277. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  25278. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  25279. ID3D12GraphicsCommandList9 * This,
  25280. _In_ ID3D12Resource *pDstResource,
  25281. _In_ UINT DstSubresource,
  25282. _In_ ID3D12Resource *pSrcResource,
  25283. _In_ UINT SrcSubresource,
  25284. _In_ DXGI_FORMAT Format);
  25285. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  25286. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  25287. ID3D12GraphicsCommandList9 * This,
  25288. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  25289. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  25290. void ( STDMETHODCALLTYPE *RSSetViewports )(
  25291. ID3D12GraphicsCommandList9 * This,
  25292. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  25293. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  25294. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  25295. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  25296. ID3D12GraphicsCommandList9 * This,
  25297. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  25298. _In_reads_( NumRects) const D3D12_RECT *pRects);
  25299. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  25300. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  25301. ID3D12GraphicsCommandList9 * This,
  25302. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  25303. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  25304. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  25305. ID3D12GraphicsCommandList9 * This,
  25306. _In_ UINT StencilRef);
  25307. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  25308. void ( STDMETHODCALLTYPE *SetPipelineState )(
  25309. ID3D12GraphicsCommandList9 * This,
  25310. _In_ ID3D12PipelineState *pPipelineState);
  25311. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  25312. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  25313. ID3D12GraphicsCommandList9 * This,
  25314. _In_ UINT NumBarriers,
  25315. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  25316. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  25317. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  25318. ID3D12GraphicsCommandList9 * This,
  25319. _In_ ID3D12GraphicsCommandList *pCommandList);
  25320. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  25321. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  25322. ID3D12GraphicsCommandList9 * This,
  25323. _In_ UINT NumDescriptorHeaps,
  25324. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  25325. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  25326. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  25327. ID3D12GraphicsCommandList9 * This,
  25328. _In_opt_ ID3D12RootSignature *pRootSignature);
  25329. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  25330. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  25331. ID3D12GraphicsCommandList9 * This,
  25332. _In_opt_ ID3D12RootSignature *pRootSignature);
  25333. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  25334. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  25335. ID3D12GraphicsCommandList9 * This,
  25336. _In_ UINT RootParameterIndex,
  25337. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  25338. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  25339. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  25340. ID3D12GraphicsCommandList9 * This,
  25341. _In_ UINT RootParameterIndex,
  25342. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  25343. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  25344. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  25345. ID3D12GraphicsCommandList9 * This,
  25346. _In_ UINT RootParameterIndex,
  25347. _In_ UINT SrcData,
  25348. _In_ UINT DestOffsetIn32BitValues);
  25349. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  25350. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  25351. ID3D12GraphicsCommandList9 * This,
  25352. _In_ UINT RootParameterIndex,
  25353. _In_ UINT SrcData,
  25354. _In_ UINT DestOffsetIn32BitValues);
  25355. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  25356. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  25357. ID3D12GraphicsCommandList9 * This,
  25358. _In_ UINT RootParameterIndex,
  25359. _In_ UINT Num32BitValuesToSet,
  25360. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  25361. _In_ UINT DestOffsetIn32BitValues);
  25362. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  25363. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  25364. ID3D12GraphicsCommandList9 * This,
  25365. _In_ UINT RootParameterIndex,
  25366. _In_ UINT Num32BitValuesToSet,
  25367. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  25368. _In_ UINT DestOffsetIn32BitValues);
  25369. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  25370. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  25371. ID3D12GraphicsCommandList9 * This,
  25372. _In_ UINT RootParameterIndex,
  25373. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25374. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  25375. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  25376. ID3D12GraphicsCommandList9 * This,
  25377. _In_ UINT RootParameterIndex,
  25378. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25379. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  25380. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  25381. ID3D12GraphicsCommandList9 * This,
  25382. _In_ UINT RootParameterIndex,
  25383. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25384. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  25385. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  25386. ID3D12GraphicsCommandList9 * This,
  25387. _In_ UINT RootParameterIndex,
  25388. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25389. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  25390. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  25391. ID3D12GraphicsCommandList9 * This,
  25392. _In_ UINT RootParameterIndex,
  25393. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25394. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  25395. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  25396. ID3D12GraphicsCommandList9 * This,
  25397. _In_ UINT RootParameterIndex,
  25398. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25399. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  25400. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  25401. ID3D12GraphicsCommandList9 * This,
  25402. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  25403. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  25404. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  25405. ID3D12GraphicsCommandList9 * This,
  25406. _In_ UINT StartSlot,
  25407. _In_ UINT NumViews,
  25408. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  25409. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  25410. void ( STDMETHODCALLTYPE *SOSetTargets )(
  25411. ID3D12GraphicsCommandList9 * This,
  25412. _In_ UINT StartSlot,
  25413. _In_ UINT NumViews,
  25414. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  25415. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  25416. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  25417. ID3D12GraphicsCommandList9 * This,
  25418. _In_ UINT NumRenderTargetDescriptors,
  25419. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  25420. _In_ BOOL RTsSingleHandleToDescriptorRange,
  25421. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  25422. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  25423. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  25424. ID3D12GraphicsCommandList9 * This,
  25425. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  25426. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  25427. _In_ FLOAT Depth,
  25428. _In_ UINT8 Stencil,
  25429. _In_ UINT NumRects,
  25430. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25431. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  25432. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  25433. ID3D12GraphicsCommandList9 * This,
  25434. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  25435. _In_ const FLOAT ColorRGBA[ 4 ],
  25436. _In_ UINT NumRects,
  25437. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25438. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  25439. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  25440. ID3D12GraphicsCommandList9 * This,
  25441. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  25442. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  25443. _In_ ID3D12Resource *pResource,
  25444. _In_ const UINT Values[ 4 ],
  25445. _In_ UINT NumRects,
  25446. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25447. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  25448. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  25449. ID3D12GraphicsCommandList9 * This,
  25450. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  25451. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  25452. _In_ ID3D12Resource *pResource,
  25453. _In_ const FLOAT Values[ 4 ],
  25454. _In_ UINT NumRects,
  25455. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25456. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  25457. void ( STDMETHODCALLTYPE *DiscardResource )(
  25458. ID3D12GraphicsCommandList9 * This,
  25459. _In_ ID3D12Resource *pResource,
  25460. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  25461. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  25462. void ( STDMETHODCALLTYPE *BeginQuery )(
  25463. ID3D12GraphicsCommandList9 * This,
  25464. _In_ ID3D12QueryHeap *pQueryHeap,
  25465. _In_ D3D12_QUERY_TYPE Type,
  25466. _In_ UINT Index);
  25467. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  25468. void ( STDMETHODCALLTYPE *EndQuery )(
  25469. ID3D12GraphicsCommandList9 * This,
  25470. _In_ ID3D12QueryHeap *pQueryHeap,
  25471. _In_ D3D12_QUERY_TYPE Type,
  25472. _In_ UINT Index);
  25473. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  25474. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  25475. ID3D12GraphicsCommandList9 * This,
  25476. _In_ ID3D12QueryHeap *pQueryHeap,
  25477. _In_ D3D12_QUERY_TYPE Type,
  25478. _In_ UINT StartIndex,
  25479. _In_ UINT NumQueries,
  25480. _In_ ID3D12Resource *pDestinationBuffer,
  25481. _In_ UINT64 AlignedDestinationBufferOffset);
  25482. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  25483. void ( STDMETHODCALLTYPE *SetPredication )(
  25484. ID3D12GraphicsCommandList9 * This,
  25485. _In_opt_ ID3D12Resource *pBuffer,
  25486. _In_ UINT64 AlignedBufferOffset,
  25487. _In_ D3D12_PREDICATION_OP Operation);
  25488. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  25489. void ( STDMETHODCALLTYPE *SetMarker )(
  25490. ID3D12GraphicsCommandList9 * This,
  25491. UINT Metadata,
  25492. _In_reads_bytes_opt_(Size) const void *pData,
  25493. UINT Size);
  25494. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  25495. void ( STDMETHODCALLTYPE *BeginEvent )(
  25496. ID3D12GraphicsCommandList9 * This,
  25497. UINT Metadata,
  25498. _In_reads_bytes_opt_(Size) const void *pData,
  25499. UINT Size);
  25500. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  25501. void ( STDMETHODCALLTYPE *EndEvent )(
  25502. ID3D12GraphicsCommandList9 * This);
  25503. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  25504. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  25505. ID3D12GraphicsCommandList9 * This,
  25506. _In_ ID3D12CommandSignature *pCommandSignature,
  25507. _In_ UINT MaxCommandCount,
  25508. _In_ ID3D12Resource *pArgumentBuffer,
  25509. _In_ UINT64 ArgumentBufferOffset,
  25510. _In_opt_ ID3D12Resource *pCountBuffer,
  25511. _In_ UINT64 CountBufferOffset);
  25512. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  25513. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  25514. ID3D12GraphicsCommandList9 * This,
  25515. _In_ ID3D12Resource *pDstBuffer,
  25516. UINT64 DstOffset,
  25517. _In_ ID3D12Resource *pSrcBuffer,
  25518. UINT64 SrcOffset,
  25519. UINT Dependencies,
  25520. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  25521. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  25522. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  25523. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  25524. ID3D12GraphicsCommandList9 * This,
  25525. _In_ ID3D12Resource *pDstBuffer,
  25526. UINT64 DstOffset,
  25527. _In_ ID3D12Resource *pSrcBuffer,
  25528. UINT64 SrcOffset,
  25529. UINT Dependencies,
  25530. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  25531. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  25532. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  25533. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  25534. ID3D12GraphicsCommandList9 * This,
  25535. _In_ FLOAT Min,
  25536. _In_ FLOAT Max);
  25537. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  25538. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  25539. ID3D12GraphicsCommandList9 * This,
  25540. _In_ UINT NumSamplesPerPixel,
  25541. _In_ UINT NumPixels,
  25542. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  25543. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  25544. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  25545. ID3D12GraphicsCommandList9 * This,
  25546. _In_ ID3D12Resource *pDstResource,
  25547. _In_ UINT DstSubresource,
  25548. _In_ UINT DstX,
  25549. _In_ UINT DstY,
  25550. _In_ ID3D12Resource *pSrcResource,
  25551. _In_ UINT SrcSubresource,
  25552. _In_opt_ D3D12_RECT *pSrcRect,
  25553. _In_ DXGI_FORMAT Format,
  25554. _In_ D3D12_RESOLVE_MODE ResolveMode);
  25555. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  25556. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  25557. ID3D12GraphicsCommandList9 * This,
  25558. _In_ UINT Mask);
  25559. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  25560. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  25561. ID3D12GraphicsCommandList9 * This,
  25562. UINT Count,
  25563. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  25564. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  25565. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  25566. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  25567. ID3D12GraphicsCommandList9 * This,
  25568. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  25569. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  25570. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  25571. ID3D12GraphicsCommandList9 * This,
  25572. _In_ UINT NumRenderTargets,
  25573. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  25574. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  25575. D3D12_RENDER_PASS_FLAGS Flags);
  25576. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  25577. void ( STDMETHODCALLTYPE *EndRenderPass )(
  25578. ID3D12GraphicsCommandList9 * This);
  25579. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  25580. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  25581. ID3D12GraphicsCommandList9 * This,
  25582. _In_ ID3D12MetaCommand *pMetaCommand,
  25583. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  25584. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  25585. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  25586. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  25587. ID3D12GraphicsCommandList9 * This,
  25588. _In_ ID3D12MetaCommand *pMetaCommand,
  25589. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  25590. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  25591. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  25592. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  25593. ID3D12GraphicsCommandList9 * This,
  25594. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  25595. _In_ UINT NumPostbuildInfoDescs,
  25596. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  25597. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  25598. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  25599. ID3D12GraphicsCommandList9 * This,
  25600. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  25601. _In_ UINT NumSourceAccelerationStructures,
  25602. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  25603. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  25604. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  25605. ID3D12GraphicsCommandList9 * This,
  25606. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  25607. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  25608. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  25609. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  25610. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  25611. ID3D12GraphicsCommandList9 * This,
  25612. _In_ ID3D12StateObject *pStateObject);
  25613. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  25614. void ( STDMETHODCALLTYPE *DispatchRays )(
  25615. ID3D12GraphicsCommandList9 * This,
  25616. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  25617. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  25618. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  25619. ID3D12GraphicsCommandList9 * This,
  25620. _In_ D3D12_SHADING_RATE baseShadingRate,
  25621. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  25622. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  25623. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  25624. ID3D12GraphicsCommandList9 * This,
  25625. _In_opt_ ID3D12Resource *shadingRateImage);
  25626. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  25627. void ( STDMETHODCALLTYPE *DispatchMesh )(
  25628. ID3D12GraphicsCommandList9 * This,
  25629. _In_ UINT ThreadGroupCountX,
  25630. _In_ UINT ThreadGroupCountY,
  25631. _In_ UINT ThreadGroupCountZ);
  25632. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  25633. void ( STDMETHODCALLTYPE *Barrier )(
  25634. ID3D12GraphicsCommandList9 * This,
  25635. UINT32 NumBarrierGroups,
  25636. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  25637. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef)
  25638. void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )(
  25639. ID3D12GraphicsCommandList9 * This,
  25640. _In_ UINT FrontStencilRef,
  25641. _In_ UINT BackStencilRef);
  25642. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, RSSetDepthBias)
  25643. void ( STDMETHODCALLTYPE *RSSetDepthBias )(
  25644. ID3D12GraphicsCommandList9 * This,
  25645. _In_ FLOAT DepthBias,
  25646. _In_ FLOAT DepthBiasClamp,
  25647. _In_ FLOAT SlopeScaledDepthBias);
  25648. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, IASetIndexBufferStripCutValue)
  25649. void ( STDMETHODCALLTYPE *IASetIndexBufferStripCutValue )(
  25650. ID3D12GraphicsCommandList9 * This,
  25651. _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue);
  25652. END_INTERFACE
  25653. } ID3D12GraphicsCommandList9Vtbl;
  25654. interface ID3D12GraphicsCommandList9
  25655. {
  25656. CONST_VTBL struct ID3D12GraphicsCommandList9Vtbl *lpVtbl;
  25657. };
  25658. #ifdef COBJMACROS
  25659. #define ID3D12GraphicsCommandList9_QueryInterface(This,riid,ppvObject) \
  25660. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  25661. #define ID3D12GraphicsCommandList9_AddRef(This) \
  25662. ( (This)->lpVtbl -> AddRef(This) )
  25663. #define ID3D12GraphicsCommandList9_Release(This) \
  25664. ( (This)->lpVtbl -> Release(This) )
  25665. #define ID3D12GraphicsCommandList9_GetPrivateData(This,guid,pDataSize,pData) \
  25666. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  25667. #define ID3D12GraphicsCommandList9_SetPrivateData(This,guid,DataSize,pData) \
  25668. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  25669. #define ID3D12GraphicsCommandList9_SetPrivateDataInterface(This,guid,pData) \
  25670. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  25671. #define ID3D12GraphicsCommandList9_SetName(This,Name) \
  25672. ( (This)->lpVtbl -> SetName(This,Name) )
  25673. #define ID3D12GraphicsCommandList9_GetDevice(This,riid,ppvDevice) \
  25674. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  25675. #define ID3D12GraphicsCommandList9_GetType(This) \
  25676. ( (This)->lpVtbl -> GetType(This) )
  25677. #define ID3D12GraphicsCommandList9_Close(This) \
  25678. ( (This)->lpVtbl -> Close(This) )
  25679. #define ID3D12GraphicsCommandList9_Reset(This,pAllocator,pInitialState) \
  25680. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  25681. #define ID3D12GraphicsCommandList9_ClearState(This,pPipelineState) \
  25682. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  25683. #define ID3D12GraphicsCommandList9_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  25684. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  25685. #define ID3D12GraphicsCommandList9_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  25686. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  25687. #define ID3D12GraphicsCommandList9_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  25688. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  25689. #define ID3D12GraphicsCommandList9_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  25690. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  25691. #define ID3D12GraphicsCommandList9_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  25692. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  25693. #define ID3D12GraphicsCommandList9_CopyResource(This,pDstResource,pSrcResource) \
  25694. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  25695. #define ID3D12GraphicsCommandList9_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  25696. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  25697. #define ID3D12GraphicsCommandList9_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  25698. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  25699. #define ID3D12GraphicsCommandList9_IASetPrimitiveTopology(This,PrimitiveTopology) \
  25700. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  25701. #define ID3D12GraphicsCommandList9_RSSetViewports(This,NumViewports,pViewports) \
  25702. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  25703. #define ID3D12GraphicsCommandList9_RSSetScissorRects(This,NumRects,pRects) \
  25704. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  25705. #define ID3D12GraphicsCommandList9_OMSetBlendFactor(This,BlendFactor) \
  25706. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  25707. #define ID3D12GraphicsCommandList9_OMSetStencilRef(This,StencilRef) \
  25708. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  25709. #define ID3D12GraphicsCommandList9_SetPipelineState(This,pPipelineState) \
  25710. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  25711. #define ID3D12GraphicsCommandList9_ResourceBarrier(This,NumBarriers,pBarriers) \
  25712. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  25713. #define ID3D12GraphicsCommandList9_ExecuteBundle(This,pCommandList) \
  25714. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  25715. #define ID3D12GraphicsCommandList9_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  25716. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  25717. #define ID3D12GraphicsCommandList9_SetComputeRootSignature(This,pRootSignature) \
  25718. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  25719. #define ID3D12GraphicsCommandList9_SetGraphicsRootSignature(This,pRootSignature) \
  25720. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  25721. #define ID3D12GraphicsCommandList9_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  25722. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  25723. #define ID3D12GraphicsCommandList9_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  25724. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  25725. #define ID3D12GraphicsCommandList9_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  25726. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  25727. #define ID3D12GraphicsCommandList9_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  25728. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  25729. #define ID3D12GraphicsCommandList9_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  25730. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  25731. #define ID3D12GraphicsCommandList9_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  25732. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  25733. #define ID3D12GraphicsCommandList9_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  25734. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  25735. #define ID3D12GraphicsCommandList9_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  25736. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  25737. #define ID3D12GraphicsCommandList9_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  25738. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  25739. #define ID3D12GraphicsCommandList9_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  25740. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  25741. #define ID3D12GraphicsCommandList9_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  25742. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  25743. #define ID3D12GraphicsCommandList9_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  25744. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  25745. #define ID3D12GraphicsCommandList9_IASetIndexBuffer(This,pView) \
  25746. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  25747. #define ID3D12GraphicsCommandList9_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  25748. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  25749. #define ID3D12GraphicsCommandList9_SOSetTargets(This,StartSlot,NumViews,pViews) \
  25750. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  25751. #define ID3D12GraphicsCommandList9_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  25752. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  25753. #define ID3D12GraphicsCommandList9_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  25754. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  25755. #define ID3D12GraphicsCommandList9_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  25756. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  25757. #define ID3D12GraphicsCommandList9_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  25758. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  25759. #define ID3D12GraphicsCommandList9_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  25760. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  25761. #define ID3D12GraphicsCommandList9_DiscardResource(This,pResource,pRegion) \
  25762. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  25763. #define ID3D12GraphicsCommandList9_BeginQuery(This,pQueryHeap,Type,Index) \
  25764. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  25765. #define ID3D12GraphicsCommandList9_EndQuery(This,pQueryHeap,Type,Index) \
  25766. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  25767. #define ID3D12GraphicsCommandList9_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  25768. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  25769. #define ID3D12GraphicsCommandList9_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  25770. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  25771. #define ID3D12GraphicsCommandList9_SetMarker(This,Metadata,pData,Size) \
  25772. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  25773. #define ID3D12GraphicsCommandList9_BeginEvent(This,Metadata,pData,Size) \
  25774. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  25775. #define ID3D12GraphicsCommandList9_EndEvent(This) \
  25776. ( (This)->lpVtbl -> EndEvent(This) )
  25777. #define ID3D12GraphicsCommandList9_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  25778. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  25779. #define ID3D12GraphicsCommandList9_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  25780. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  25781. #define ID3D12GraphicsCommandList9_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  25782. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  25783. #define ID3D12GraphicsCommandList9_OMSetDepthBounds(This,Min,Max) \
  25784. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  25785. #define ID3D12GraphicsCommandList9_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  25786. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  25787. #define ID3D12GraphicsCommandList9_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  25788. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  25789. #define ID3D12GraphicsCommandList9_SetViewInstanceMask(This,Mask) \
  25790. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  25791. #define ID3D12GraphicsCommandList9_WriteBufferImmediate(This,Count,pParams,pModes) \
  25792. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  25793. #define ID3D12GraphicsCommandList9_SetProtectedResourceSession(This,pProtectedResourceSession) \
  25794. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  25795. #define ID3D12GraphicsCommandList9_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  25796. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  25797. #define ID3D12GraphicsCommandList9_EndRenderPass(This) \
  25798. ( (This)->lpVtbl -> EndRenderPass(This) )
  25799. #define ID3D12GraphicsCommandList9_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  25800. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  25801. #define ID3D12GraphicsCommandList9_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  25802. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  25803. #define ID3D12GraphicsCommandList9_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  25804. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  25805. #define ID3D12GraphicsCommandList9_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  25806. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  25807. #define ID3D12GraphicsCommandList9_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  25808. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  25809. #define ID3D12GraphicsCommandList9_SetPipelineState1(This,pStateObject) \
  25810. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  25811. #define ID3D12GraphicsCommandList9_DispatchRays(This,pDesc) \
  25812. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  25813. #define ID3D12GraphicsCommandList9_RSSetShadingRate(This,baseShadingRate,combiners) \
  25814. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  25815. #define ID3D12GraphicsCommandList9_RSSetShadingRateImage(This,shadingRateImage) \
  25816. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  25817. #define ID3D12GraphicsCommandList9_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  25818. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  25819. #define ID3D12GraphicsCommandList9_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  25820. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  25821. #define ID3D12GraphicsCommandList9_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \
  25822. ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) )
  25823. #define ID3D12GraphicsCommandList9_RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) \
  25824. ( (This)->lpVtbl -> RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) )
  25825. #define ID3D12GraphicsCommandList9_IASetIndexBufferStripCutValue(This,IBStripCutValue) \
  25826. ( (This)->lpVtbl -> IASetIndexBufferStripCutValue(This,IBStripCutValue) )
  25827. #endif /* COBJMACROS */
  25828. #endif /* C style interface */
  25829. #endif /* __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__ */
  25830. #ifndef __ID3D12GraphicsCommandList10_INTERFACE_DEFINED__
  25831. #define __ID3D12GraphicsCommandList10_INTERFACE_DEFINED__
  25832. /* interface ID3D12GraphicsCommandList10 */
  25833. /* [unique][local][object][uuid] */
  25834. EXTERN_C const IID IID_ID3D12GraphicsCommandList10;
  25835. #if defined(__cplusplus) && !defined(CINTERFACE)
  25836. MIDL_INTERFACE("7013c015-d161-4b63-a08c-238552dd8acc")
  25837. ID3D12GraphicsCommandList10 : public ID3D12GraphicsCommandList9
  25838. {
  25839. public:
  25840. virtual void STDMETHODCALLTYPE SetProgram(
  25841. _In_ const D3D12_SET_PROGRAM_DESC *pDesc) = 0;
  25842. virtual void STDMETHODCALLTYPE DispatchGraph(
  25843. _In_ const D3D12_DISPATCH_GRAPH_DESC *pDesc) = 0;
  25844. };
  25845. #else /* C style interface */
  25846. typedef struct ID3D12GraphicsCommandList10Vtbl
  25847. {
  25848. BEGIN_INTERFACE
  25849. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  25850. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  25851. ID3D12GraphicsCommandList10 * This,
  25852. REFIID riid,
  25853. _COM_Outptr_ void **ppvObject);
  25854. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  25855. ULONG ( STDMETHODCALLTYPE *AddRef )(
  25856. ID3D12GraphicsCommandList10 * This);
  25857. DECLSPEC_XFGVIRT(IUnknown, Release)
  25858. ULONG ( STDMETHODCALLTYPE *Release )(
  25859. ID3D12GraphicsCommandList10 * This);
  25860. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  25861. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  25862. ID3D12GraphicsCommandList10 * This,
  25863. _In_ REFGUID guid,
  25864. _Inout_ UINT *pDataSize,
  25865. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  25866. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  25867. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  25868. ID3D12GraphicsCommandList10 * This,
  25869. _In_ REFGUID guid,
  25870. _In_ UINT DataSize,
  25871. _In_reads_bytes_opt_( DataSize ) const void *pData);
  25872. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  25873. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  25874. ID3D12GraphicsCommandList10 * This,
  25875. _In_ REFGUID guid,
  25876. _In_opt_ const IUnknown *pData);
  25877. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  25878. HRESULT ( STDMETHODCALLTYPE *SetName )(
  25879. ID3D12GraphicsCommandList10 * This,
  25880. _In_z_ LPCWSTR Name);
  25881. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  25882. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  25883. ID3D12GraphicsCommandList10 * This,
  25884. REFIID riid,
  25885. _COM_Outptr_opt_ void **ppvDevice);
  25886. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  25887. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  25888. ID3D12GraphicsCommandList10 * This);
  25889. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  25890. HRESULT ( STDMETHODCALLTYPE *Close )(
  25891. ID3D12GraphicsCommandList10 * This);
  25892. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  25893. HRESULT ( STDMETHODCALLTYPE *Reset )(
  25894. ID3D12GraphicsCommandList10 * This,
  25895. _In_ ID3D12CommandAllocator *pAllocator,
  25896. _In_opt_ ID3D12PipelineState *pInitialState);
  25897. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  25898. void ( STDMETHODCALLTYPE *ClearState )(
  25899. ID3D12GraphicsCommandList10 * This,
  25900. _In_opt_ ID3D12PipelineState *pPipelineState);
  25901. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  25902. void ( STDMETHODCALLTYPE *DrawInstanced )(
  25903. ID3D12GraphicsCommandList10 * This,
  25904. _In_ UINT VertexCountPerInstance,
  25905. _In_ UINT InstanceCount,
  25906. _In_ UINT StartVertexLocation,
  25907. _In_ UINT StartInstanceLocation);
  25908. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  25909. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  25910. ID3D12GraphicsCommandList10 * This,
  25911. _In_ UINT IndexCountPerInstance,
  25912. _In_ UINT InstanceCount,
  25913. _In_ UINT StartIndexLocation,
  25914. _In_ INT BaseVertexLocation,
  25915. _In_ UINT StartInstanceLocation);
  25916. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  25917. void ( STDMETHODCALLTYPE *Dispatch )(
  25918. ID3D12GraphicsCommandList10 * This,
  25919. _In_ UINT ThreadGroupCountX,
  25920. _In_ UINT ThreadGroupCountY,
  25921. _In_ UINT ThreadGroupCountZ);
  25922. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  25923. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  25924. ID3D12GraphicsCommandList10 * This,
  25925. _In_ ID3D12Resource *pDstBuffer,
  25926. UINT64 DstOffset,
  25927. _In_ ID3D12Resource *pSrcBuffer,
  25928. UINT64 SrcOffset,
  25929. UINT64 NumBytes);
  25930. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  25931. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  25932. ID3D12GraphicsCommandList10 * This,
  25933. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  25934. UINT DstX,
  25935. UINT DstY,
  25936. UINT DstZ,
  25937. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  25938. _In_opt_ const D3D12_BOX *pSrcBox);
  25939. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  25940. void ( STDMETHODCALLTYPE *CopyResource )(
  25941. ID3D12GraphicsCommandList10 * This,
  25942. _In_ ID3D12Resource *pDstResource,
  25943. _In_ ID3D12Resource *pSrcResource);
  25944. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  25945. void ( STDMETHODCALLTYPE *CopyTiles )(
  25946. ID3D12GraphicsCommandList10 * This,
  25947. _In_ ID3D12Resource *pTiledResource,
  25948. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  25949. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  25950. _In_ ID3D12Resource *pBuffer,
  25951. UINT64 BufferStartOffsetInBytes,
  25952. D3D12_TILE_COPY_FLAGS Flags);
  25953. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  25954. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  25955. ID3D12GraphicsCommandList10 * This,
  25956. _In_ ID3D12Resource *pDstResource,
  25957. _In_ UINT DstSubresource,
  25958. _In_ ID3D12Resource *pSrcResource,
  25959. _In_ UINT SrcSubresource,
  25960. _In_ DXGI_FORMAT Format);
  25961. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  25962. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  25963. ID3D12GraphicsCommandList10 * This,
  25964. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  25965. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  25966. void ( STDMETHODCALLTYPE *RSSetViewports )(
  25967. ID3D12GraphicsCommandList10 * This,
  25968. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  25969. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  25970. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  25971. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  25972. ID3D12GraphicsCommandList10 * This,
  25973. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  25974. _In_reads_( NumRects) const D3D12_RECT *pRects);
  25975. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  25976. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  25977. ID3D12GraphicsCommandList10 * This,
  25978. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  25979. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  25980. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  25981. ID3D12GraphicsCommandList10 * This,
  25982. _In_ UINT StencilRef);
  25983. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  25984. void ( STDMETHODCALLTYPE *SetPipelineState )(
  25985. ID3D12GraphicsCommandList10 * This,
  25986. _In_ ID3D12PipelineState *pPipelineState);
  25987. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  25988. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  25989. ID3D12GraphicsCommandList10 * This,
  25990. _In_ UINT NumBarriers,
  25991. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  25992. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  25993. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  25994. ID3D12GraphicsCommandList10 * This,
  25995. _In_ ID3D12GraphicsCommandList *pCommandList);
  25996. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  25997. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  25998. ID3D12GraphicsCommandList10 * This,
  25999. _In_ UINT NumDescriptorHeaps,
  26000. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  26001. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  26002. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  26003. ID3D12GraphicsCommandList10 * This,
  26004. _In_opt_ ID3D12RootSignature *pRootSignature);
  26005. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  26006. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  26007. ID3D12GraphicsCommandList10 * This,
  26008. _In_opt_ ID3D12RootSignature *pRootSignature);
  26009. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  26010. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  26011. ID3D12GraphicsCommandList10 * This,
  26012. _In_ UINT RootParameterIndex,
  26013. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  26014. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  26015. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  26016. ID3D12GraphicsCommandList10 * This,
  26017. _In_ UINT RootParameterIndex,
  26018. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  26019. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  26020. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  26021. ID3D12GraphicsCommandList10 * This,
  26022. _In_ UINT RootParameterIndex,
  26023. _In_ UINT SrcData,
  26024. _In_ UINT DestOffsetIn32BitValues);
  26025. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  26026. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  26027. ID3D12GraphicsCommandList10 * This,
  26028. _In_ UINT RootParameterIndex,
  26029. _In_ UINT SrcData,
  26030. _In_ UINT DestOffsetIn32BitValues);
  26031. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  26032. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  26033. ID3D12GraphicsCommandList10 * This,
  26034. _In_ UINT RootParameterIndex,
  26035. _In_ UINT Num32BitValuesToSet,
  26036. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  26037. _In_ UINT DestOffsetIn32BitValues);
  26038. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  26039. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  26040. ID3D12GraphicsCommandList10 * This,
  26041. _In_ UINT RootParameterIndex,
  26042. _In_ UINT Num32BitValuesToSet,
  26043. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  26044. _In_ UINT DestOffsetIn32BitValues);
  26045. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  26046. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  26047. ID3D12GraphicsCommandList10 * This,
  26048. _In_ UINT RootParameterIndex,
  26049. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26050. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  26051. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  26052. ID3D12GraphicsCommandList10 * This,
  26053. _In_ UINT RootParameterIndex,
  26054. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26055. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  26056. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  26057. ID3D12GraphicsCommandList10 * This,
  26058. _In_ UINT RootParameterIndex,
  26059. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26060. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  26061. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  26062. ID3D12GraphicsCommandList10 * This,
  26063. _In_ UINT RootParameterIndex,
  26064. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26065. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  26066. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  26067. ID3D12GraphicsCommandList10 * This,
  26068. _In_ UINT RootParameterIndex,
  26069. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26070. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  26071. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  26072. ID3D12GraphicsCommandList10 * This,
  26073. _In_ UINT RootParameterIndex,
  26074. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26075. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  26076. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  26077. ID3D12GraphicsCommandList10 * This,
  26078. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  26079. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  26080. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  26081. ID3D12GraphicsCommandList10 * This,
  26082. _In_ UINT StartSlot,
  26083. _In_ UINT NumViews,
  26084. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  26085. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  26086. void ( STDMETHODCALLTYPE *SOSetTargets )(
  26087. ID3D12GraphicsCommandList10 * This,
  26088. _In_ UINT StartSlot,
  26089. _In_ UINT NumViews,
  26090. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  26091. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  26092. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  26093. ID3D12GraphicsCommandList10 * This,
  26094. _In_ UINT NumRenderTargetDescriptors,
  26095. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  26096. _In_ BOOL RTsSingleHandleToDescriptorRange,
  26097. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  26098. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  26099. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  26100. ID3D12GraphicsCommandList10 * This,
  26101. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  26102. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  26103. _In_ FLOAT Depth,
  26104. _In_ UINT8 Stencil,
  26105. _In_ UINT NumRects,
  26106. _In_reads_(NumRects) const D3D12_RECT *pRects);
  26107. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  26108. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  26109. ID3D12GraphicsCommandList10 * This,
  26110. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  26111. _In_ const FLOAT ColorRGBA[ 4 ],
  26112. _In_ UINT NumRects,
  26113. _In_reads_(NumRects) const D3D12_RECT *pRects);
  26114. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  26115. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  26116. ID3D12GraphicsCommandList10 * This,
  26117. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  26118. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  26119. _In_ ID3D12Resource *pResource,
  26120. _In_ const UINT Values[ 4 ],
  26121. _In_ UINT NumRects,
  26122. _In_reads_(NumRects) const D3D12_RECT *pRects);
  26123. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  26124. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  26125. ID3D12GraphicsCommandList10 * This,
  26126. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  26127. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  26128. _In_ ID3D12Resource *pResource,
  26129. _In_ const FLOAT Values[ 4 ],
  26130. _In_ UINT NumRects,
  26131. _In_reads_(NumRects) const D3D12_RECT *pRects);
  26132. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  26133. void ( STDMETHODCALLTYPE *DiscardResource )(
  26134. ID3D12GraphicsCommandList10 * This,
  26135. _In_ ID3D12Resource *pResource,
  26136. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  26137. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  26138. void ( STDMETHODCALLTYPE *BeginQuery )(
  26139. ID3D12GraphicsCommandList10 * This,
  26140. _In_ ID3D12QueryHeap *pQueryHeap,
  26141. _In_ D3D12_QUERY_TYPE Type,
  26142. _In_ UINT Index);
  26143. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  26144. void ( STDMETHODCALLTYPE *EndQuery )(
  26145. ID3D12GraphicsCommandList10 * This,
  26146. _In_ ID3D12QueryHeap *pQueryHeap,
  26147. _In_ D3D12_QUERY_TYPE Type,
  26148. _In_ UINT Index);
  26149. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  26150. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  26151. ID3D12GraphicsCommandList10 * This,
  26152. _In_ ID3D12QueryHeap *pQueryHeap,
  26153. _In_ D3D12_QUERY_TYPE Type,
  26154. _In_ UINT StartIndex,
  26155. _In_ UINT NumQueries,
  26156. _In_ ID3D12Resource *pDestinationBuffer,
  26157. _In_ UINT64 AlignedDestinationBufferOffset);
  26158. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  26159. void ( STDMETHODCALLTYPE *SetPredication )(
  26160. ID3D12GraphicsCommandList10 * This,
  26161. _In_opt_ ID3D12Resource *pBuffer,
  26162. _In_ UINT64 AlignedBufferOffset,
  26163. _In_ D3D12_PREDICATION_OP Operation);
  26164. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  26165. void ( STDMETHODCALLTYPE *SetMarker )(
  26166. ID3D12GraphicsCommandList10 * This,
  26167. UINT Metadata,
  26168. _In_reads_bytes_opt_(Size) const void *pData,
  26169. UINT Size);
  26170. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  26171. void ( STDMETHODCALLTYPE *BeginEvent )(
  26172. ID3D12GraphicsCommandList10 * This,
  26173. UINT Metadata,
  26174. _In_reads_bytes_opt_(Size) const void *pData,
  26175. UINT Size);
  26176. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  26177. void ( STDMETHODCALLTYPE *EndEvent )(
  26178. ID3D12GraphicsCommandList10 * This);
  26179. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  26180. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  26181. ID3D12GraphicsCommandList10 * This,
  26182. _In_ ID3D12CommandSignature *pCommandSignature,
  26183. _In_ UINT MaxCommandCount,
  26184. _In_ ID3D12Resource *pArgumentBuffer,
  26185. _In_ UINT64 ArgumentBufferOffset,
  26186. _In_opt_ ID3D12Resource *pCountBuffer,
  26187. _In_ UINT64 CountBufferOffset);
  26188. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  26189. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  26190. ID3D12GraphicsCommandList10 * This,
  26191. _In_ ID3D12Resource *pDstBuffer,
  26192. UINT64 DstOffset,
  26193. _In_ ID3D12Resource *pSrcBuffer,
  26194. UINT64 SrcOffset,
  26195. UINT Dependencies,
  26196. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  26197. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  26198. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  26199. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  26200. ID3D12GraphicsCommandList10 * This,
  26201. _In_ ID3D12Resource *pDstBuffer,
  26202. UINT64 DstOffset,
  26203. _In_ ID3D12Resource *pSrcBuffer,
  26204. UINT64 SrcOffset,
  26205. UINT Dependencies,
  26206. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  26207. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  26208. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  26209. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  26210. ID3D12GraphicsCommandList10 * This,
  26211. _In_ FLOAT Min,
  26212. _In_ FLOAT Max);
  26213. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  26214. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  26215. ID3D12GraphicsCommandList10 * This,
  26216. _In_ UINT NumSamplesPerPixel,
  26217. _In_ UINT NumPixels,
  26218. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  26219. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  26220. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  26221. ID3D12GraphicsCommandList10 * This,
  26222. _In_ ID3D12Resource *pDstResource,
  26223. _In_ UINT DstSubresource,
  26224. _In_ UINT DstX,
  26225. _In_ UINT DstY,
  26226. _In_ ID3D12Resource *pSrcResource,
  26227. _In_ UINT SrcSubresource,
  26228. _In_opt_ D3D12_RECT *pSrcRect,
  26229. _In_ DXGI_FORMAT Format,
  26230. _In_ D3D12_RESOLVE_MODE ResolveMode);
  26231. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  26232. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  26233. ID3D12GraphicsCommandList10 * This,
  26234. _In_ UINT Mask);
  26235. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  26236. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  26237. ID3D12GraphicsCommandList10 * This,
  26238. UINT Count,
  26239. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  26240. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  26241. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  26242. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  26243. ID3D12GraphicsCommandList10 * This,
  26244. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  26245. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  26246. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  26247. ID3D12GraphicsCommandList10 * This,
  26248. _In_ UINT NumRenderTargets,
  26249. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  26250. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  26251. D3D12_RENDER_PASS_FLAGS Flags);
  26252. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  26253. void ( STDMETHODCALLTYPE *EndRenderPass )(
  26254. ID3D12GraphicsCommandList10 * This);
  26255. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  26256. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  26257. ID3D12GraphicsCommandList10 * This,
  26258. _In_ ID3D12MetaCommand *pMetaCommand,
  26259. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  26260. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  26261. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  26262. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  26263. ID3D12GraphicsCommandList10 * This,
  26264. _In_ ID3D12MetaCommand *pMetaCommand,
  26265. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  26266. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  26267. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  26268. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  26269. ID3D12GraphicsCommandList10 * This,
  26270. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  26271. _In_ UINT NumPostbuildInfoDescs,
  26272. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  26273. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  26274. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  26275. ID3D12GraphicsCommandList10 * This,
  26276. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  26277. _In_ UINT NumSourceAccelerationStructures,
  26278. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  26279. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  26280. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  26281. ID3D12GraphicsCommandList10 * This,
  26282. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  26283. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  26284. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  26285. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  26286. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  26287. ID3D12GraphicsCommandList10 * This,
  26288. _In_ ID3D12StateObject *pStateObject);
  26289. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  26290. void ( STDMETHODCALLTYPE *DispatchRays )(
  26291. ID3D12GraphicsCommandList10 * This,
  26292. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  26293. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  26294. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  26295. ID3D12GraphicsCommandList10 * This,
  26296. _In_ D3D12_SHADING_RATE baseShadingRate,
  26297. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  26298. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  26299. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  26300. ID3D12GraphicsCommandList10 * This,
  26301. _In_opt_ ID3D12Resource *shadingRateImage);
  26302. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  26303. void ( STDMETHODCALLTYPE *DispatchMesh )(
  26304. ID3D12GraphicsCommandList10 * This,
  26305. _In_ UINT ThreadGroupCountX,
  26306. _In_ UINT ThreadGroupCountY,
  26307. _In_ UINT ThreadGroupCountZ);
  26308. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  26309. void ( STDMETHODCALLTYPE *Barrier )(
  26310. ID3D12GraphicsCommandList10 * This,
  26311. UINT32 NumBarrierGroups,
  26312. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  26313. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef)
  26314. void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )(
  26315. ID3D12GraphicsCommandList10 * This,
  26316. _In_ UINT FrontStencilRef,
  26317. _In_ UINT BackStencilRef);
  26318. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, RSSetDepthBias)
  26319. void ( STDMETHODCALLTYPE *RSSetDepthBias )(
  26320. ID3D12GraphicsCommandList10 * This,
  26321. _In_ FLOAT DepthBias,
  26322. _In_ FLOAT DepthBiasClamp,
  26323. _In_ FLOAT SlopeScaledDepthBias);
  26324. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, IASetIndexBufferStripCutValue)
  26325. void ( STDMETHODCALLTYPE *IASetIndexBufferStripCutValue )(
  26326. ID3D12GraphicsCommandList10 * This,
  26327. _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue);
  26328. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList10, SetProgram)
  26329. void ( STDMETHODCALLTYPE *SetProgram )(
  26330. ID3D12GraphicsCommandList10 * This,
  26331. _In_ const D3D12_SET_PROGRAM_DESC *pDesc);
  26332. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList10, DispatchGraph)
  26333. void ( STDMETHODCALLTYPE *DispatchGraph )(
  26334. ID3D12GraphicsCommandList10 * This,
  26335. _In_ const D3D12_DISPATCH_GRAPH_DESC *pDesc);
  26336. END_INTERFACE
  26337. } ID3D12GraphicsCommandList10Vtbl;
  26338. interface ID3D12GraphicsCommandList10
  26339. {
  26340. CONST_VTBL struct ID3D12GraphicsCommandList10Vtbl *lpVtbl;
  26341. };
  26342. #ifdef COBJMACROS
  26343. #define ID3D12GraphicsCommandList10_QueryInterface(This,riid,ppvObject) \
  26344. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  26345. #define ID3D12GraphicsCommandList10_AddRef(This) \
  26346. ( (This)->lpVtbl -> AddRef(This) )
  26347. #define ID3D12GraphicsCommandList10_Release(This) \
  26348. ( (This)->lpVtbl -> Release(This) )
  26349. #define ID3D12GraphicsCommandList10_GetPrivateData(This,guid,pDataSize,pData) \
  26350. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  26351. #define ID3D12GraphicsCommandList10_SetPrivateData(This,guid,DataSize,pData) \
  26352. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  26353. #define ID3D12GraphicsCommandList10_SetPrivateDataInterface(This,guid,pData) \
  26354. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  26355. #define ID3D12GraphicsCommandList10_SetName(This,Name) \
  26356. ( (This)->lpVtbl -> SetName(This,Name) )
  26357. #define ID3D12GraphicsCommandList10_GetDevice(This,riid,ppvDevice) \
  26358. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  26359. #define ID3D12GraphicsCommandList10_GetType(This) \
  26360. ( (This)->lpVtbl -> GetType(This) )
  26361. #define ID3D12GraphicsCommandList10_Close(This) \
  26362. ( (This)->lpVtbl -> Close(This) )
  26363. #define ID3D12GraphicsCommandList10_Reset(This,pAllocator,pInitialState) \
  26364. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  26365. #define ID3D12GraphicsCommandList10_ClearState(This,pPipelineState) \
  26366. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  26367. #define ID3D12GraphicsCommandList10_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  26368. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  26369. #define ID3D12GraphicsCommandList10_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  26370. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  26371. #define ID3D12GraphicsCommandList10_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  26372. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  26373. #define ID3D12GraphicsCommandList10_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  26374. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  26375. #define ID3D12GraphicsCommandList10_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  26376. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  26377. #define ID3D12GraphicsCommandList10_CopyResource(This,pDstResource,pSrcResource) \
  26378. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  26379. #define ID3D12GraphicsCommandList10_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  26380. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  26381. #define ID3D12GraphicsCommandList10_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  26382. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  26383. #define ID3D12GraphicsCommandList10_IASetPrimitiveTopology(This,PrimitiveTopology) \
  26384. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  26385. #define ID3D12GraphicsCommandList10_RSSetViewports(This,NumViewports,pViewports) \
  26386. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  26387. #define ID3D12GraphicsCommandList10_RSSetScissorRects(This,NumRects,pRects) \
  26388. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  26389. #define ID3D12GraphicsCommandList10_OMSetBlendFactor(This,BlendFactor) \
  26390. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  26391. #define ID3D12GraphicsCommandList10_OMSetStencilRef(This,StencilRef) \
  26392. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  26393. #define ID3D12GraphicsCommandList10_SetPipelineState(This,pPipelineState) \
  26394. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  26395. #define ID3D12GraphicsCommandList10_ResourceBarrier(This,NumBarriers,pBarriers) \
  26396. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  26397. #define ID3D12GraphicsCommandList10_ExecuteBundle(This,pCommandList) \
  26398. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  26399. #define ID3D12GraphicsCommandList10_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  26400. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  26401. #define ID3D12GraphicsCommandList10_SetComputeRootSignature(This,pRootSignature) \
  26402. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  26403. #define ID3D12GraphicsCommandList10_SetGraphicsRootSignature(This,pRootSignature) \
  26404. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  26405. #define ID3D12GraphicsCommandList10_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  26406. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  26407. #define ID3D12GraphicsCommandList10_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  26408. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  26409. #define ID3D12GraphicsCommandList10_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  26410. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  26411. #define ID3D12GraphicsCommandList10_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  26412. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  26413. #define ID3D12GraphicsCommandList10_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  26414. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  26415. #define ID3D12GraphicsCommandList10_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  26416. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  26417. #define ID3D12GraphicsCommandList10_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  26418. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  26419. #define ID3D12GraphicsCommandList10_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  26420. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  26421. #define ID3D12GraphicsCommandList10_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  26422. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  26423. #define ID3D12GraphicsCommandList10_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  26424. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  26425. #define ID3D12GraphicsCommandList10_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  26426. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  26427. #define ID3D12GraphicsCommandList10_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  26428. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  26429. #define ID3D12GraphicsCommandList10_IASetIndexBuffer(This,pView) \
  26430. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  26431. #define ID3D12GraphicsCommandList10_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  26432. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  26433. #define ID3D12GraphicsCommandList10_SOSetTargets(This,StartSlot,NumViews,pViews) \
  26434. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  26435. #define ID3D12GraphicsCommandList10_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  26436. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  26437. #define ID3D12GraphicsCommandList10_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  26438. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  26439. #define ID3D12GraphicsCommandList10_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  26440. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  26441. #define ID3D12GraphicsCommandList10_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  26442. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  26443. #define ID3D12GraphicsCommandList10_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  26444. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  26445. #define ID3D12GraphicsCommandList10_DiscardResource(This,pResource,pRegion) \
  26446. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  26447. #define ID3D12GraphicsCommandList10_BeginQuery(This,pQueryHeap,Type,Index) \
  26448. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  26449. #define ID3D12GraphicsCommandList10_EndQuery(This,pQueryHeap,Type,Index) \
  26450. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  26451. #define ID3D12GraphicsCommandList10_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  26452. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  26453. #define ID3D12GraphicsCommandList10_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  26454. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  26455. #define ID3D12GraphicsCommandList10_SetMarker(This,Metadata,pData,Size) \
  26456. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  26457. #define ID3D12GraphicsCommandList10_BeginEvent(This,Metadata,pData,Size) \
  26458. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  26459. #define ID3D12GraphicsCommandList10_EndEvent(This) \
  26460. ( (This)->lpVtbl -> EndEvent(This) )
  26461. #define ID3D12GraphicsCommandList10_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  26462. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  26463. #define ID3D12GraphicsCommandList10_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  26464. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  26465. #define ID3D12GraphicsCommandList10_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  26466. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  26467. #define ID3D12GraphicsCommandList10_OMSetDepthBounds(This,Min,Max) \
  26468. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  26469. #define ID3D12GraphicsCommandList10_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  26470. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  26471. #define ID3D12GraphicsCommandList10_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  26472. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  26473. #define ID3D12GraphicsCommandList10_SetViewInstanceMask(This,Mask) \
  26474. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  26475. #define ID3D12GraphicsCommandList10_WriteBufferImmediate(This,Count,pParams,pModes) \
  26476. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  26477. #define ID3D12GraphicsCommandList10_SetProtectedResourceSession(This,pProtectedResourceSession) \
  26478. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  26479. #define ID3D12GraphicsCommandList10_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  26480. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  26481. #define ID3D12GraphicsCommandList10_EndRenderPass(This) \
  26482. ( (This)->lpVtbl -> EndRenderPass(This) )
  26483. #define ID3D12GraphicsCommandList10_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  26484. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  26485. #define ID3D12GraphicsCommandList10_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  26486. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  26487. #define ID3D12GraphicsCommandList10_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  26488. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  26489. #define ID3D12GraphicsCommandList10_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  26490. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  26491. #define ID3D12GraphicsCommandList10_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  26492. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  26493. #define ID3D12GraphicsCommandList10_SetPipelineState1(This,pStateObject) \
  26494. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  26495. #define ID3D12GraphicsCommandList10_DispatchRays(This,pDesc) \
  26496. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  26497. #define ID3D12GraphicsCommandList10_RSSetShadingRate(This,baseShadingRate,combiners) \
  26498. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  26499. #define ID3D12GraphicsCommandList10_RSSetShadingRateImage(This,shadingRateImage) \
  26500. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  26501. #define ID3D12GraphicsCommandList10_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  26502. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  26503. #define ID3D12GraphicsCommandList10_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  26504. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  26505. #define ID3D12GraphicsCommandList10_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \
  26506. ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) )
  26507. #define ID3D12GraphicsCommandList10_RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) \
  26508. ( (This)->lpVtbl -> RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) )
  26509. #define ID3D12GraphicsCommandList10_IASetIndexBufferStripCutValue(This,IBStripCutValue) \
  26510. ( (This)->lpVtbl -> IASetIndexBufferStripCutValue(This,IBStripCutValue) )
  26511. #define ID3D12GraphicsCommandList10_SetProgram(This,pDesc) \
  26512. ( (This)->lpVtbl -> SetProgram(This,pDesc) )
  26513. #define ID3D12GraphicsCommandList10_DispatchGraph(This,pDesc) \
  26514. ( (This)->lpVtbl -> DispatchGraph(This,pDesc) )
  26515. #endif /* COBJMACROS */
  26516. #endif /* C style interface */
  26517. #endif /* __ID3D12GraphicsCommandList10_INTERFACE_DEFINED__ */
  26518. #ifndef __ID3D12GBVDiagnostics_INTERFACE_DEFINED__
  26519. #define __ID3D12GBVDiagnostics_INTERFACE_DEFINED__
  26520. /* interface ID3D12GBVDiagnostics */
  26521. /* [unique][local][object][uuid] */
  26522. EXTERN_C const IID IID_ID3D12GBVDiagnostics;
  26523. #if defined(__cplusplus) && !defined(CINTERFACE)
  26524. MIDL_INTERFACE("597985ab-9b75-4dbb-be23-0761195bebee")
  26525. ID3D12GBVDiagnostics : public IUnknown
  26526. {
  26527. public:
  26528. virtual HRESULT STDMETHODCALLTYPE GetGBVEntireSubresourceStatesData(
  26529. _In_ ID3D12Resource *pResource,
  26530. _Out_writes_bytes_(DataSize) int *pData,
  26531. UINT DataSize) = 0;
  26532. virtual HRESULT STDMETHODCALLTYPE GetGBVSubresourceState(
  26533. _In_ ID3D12Resource *pResource,
  26534. UINT Subresource,
  26535. _Out_ int *pData) = 0;
  26536. virtual HRESULT STDMETHODCALLTYPE GetGBVResourceUniformState(
  26537. _In_ ID3D12Resource *pResource,
  26538. _Out_ int *pData) = 0;
  26539. virtual HRESULT STDMETHODCALLTYPE GetGBVResourceInfo(
  26540. _In_ ID3D12Resource *pResource,
  26541. _In_opt_ D3D12_RESOURCE_DESC *pResourceDesc,
  26542. _In_opt_ UINT32 *pResourceHash,
  26543. _In_opt_ UINT32 *pSubresourceStatesByteOffset) = 0;
  26544. virtual void STDMETHODCALLTYPE GBVReserved0( void) = 0;
  26545. virtual void STDMETHODCALLTYPE GBVReserved1( void) = 0;
  26546. };
  26547. #else /* C style interface */
  26548. typedef struct ID3D12GBVDiagnosticsVtbl
  26549. {
  26550. BEGIN_INTERFACE
  26551. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  26552. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  26553. ID3D12GBVDiagnostics * This,
  26554. REFIID riid,
  26555. _COM_Outptr_ void **ppvObject);
  26556. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  26557. ULONG ( STDMETHODCALLTYPE *AddRef )(
  26558. ID3D12GBVDiagnostics * This);
  26559. DECLSPEC_XFGVIRT(IUnknown, Release)
  26560. ULONG ( STDMETHODCALLTYPE *Release )(
  26561. ID3D12GBVDiagnostics * This);
  26562. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVEntireSubresourceStatesData)
  26563. HRESULT ( STDMETHODCALLTYPE *GetGBVEntireSubresourceStatesData )(
  26564. ID3D12GBVDiagnostics * This,
  26565. _In_ ID3D12Resource *pResource,
  26566. _Out_writes_bytes_(DataSize) int *pData,
  26567. UINT DataSize);
  26568. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVSubresourceState)
  26569. HRESULT ( STDMETHODCALLTYPE *GetGBVSubresourceState )(
  26570. ID3D12GBVDiagnostics * This,
  26571. _In_ ID3D12Resource *pResource,
  26572. UINT Subresource,
  26573. _Out_ int *pData);
  26574. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVResourceUniformState)
  26575. HRESULT ( STDMETHODCALLTYPE *GetGBVResourceUniformState )(
  26576. ID3D12GBVDiagnostics * This,
  26577. _In_ ID3D12Resource *pResource,
  26578. _Out_ int *pData);
  26579. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVResourceInfo)
  26580. HRESULT ( STDMETHODCALLTYPE *GetGBVResourceInfo )(
  26581. ID3D12GBVDiagnostics * This,
  26582. _In_ ID3D12Resource *pResource,
  26583. _In_opt_ D3D12_RESOURCE_DESC *pResourceDesc,
  26584. _In_opt_ UINT32 *pResourceHash,
  26585. _In_opt_ UINT32 *pSubresourceStatesByteOffset);
  26586. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GBVReserved0)
  26587. void ( STDMETHODCALLTYPE *GBVReserved0 )(
  26588. ID3D12GBVDiagnostics * This);
  26589. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GBVReserved1)
  26590. void ( STDMETHODCALLTYPE *GBVReserved1 )(
  26591. ID3D12GBVDiagnostics * This);
  26592. END_INTERFACE
  26593. } ID3D12GBVDiagnosticsVtbl;
  26594. interface ID3D12GBVDiagnostics
  26595. {
  26596. CONST_VTBL struct ID3D12GBVDiagnosticsVtbl *lpVtbl;
  26597. };
  26598. #ifdef COBJMACROS
  26599. #define ID3D12GBVDiagnostics_QueryInterface(This,riid,ppvObject) \
  26600. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  26601. #define ID3D12GBVDiagnostics_AddRef(This) \
  26602. ( (This)->lpVtbl -> AddRef(This) )
  26603. #define ID3D12GBVDiagnostics_Release(This) \
  26604. ( (This)->lpVtbl -> Release(This) )
  26605. #define ID3D12GBVDiagnostics_GetGBVEntireSubresourceStatesData(This,pResource,pData,DataSize) \
  26606. ( (This)->lpVtbl -> GetGBVEntireSubresourceStatesData(This,pResource,pData,DataSize) )
  26607. #define ID3D12GBVDiagnostics_GetGBVSubresourceState(This,pResource,Subresource,pData) \
  26608. ( (This)->lpVtbl -> GetGBVSubresourceState(This,pResource,Subresource,pData) )
  26609. #define ID3D12GBVDiagnostics_GetGBVResourceUniformState(This,pResource,pData) \
  26610. ( (This)->lpVtbl -> GetGBVResourceUniformState(This,pResource,pData) )
  26611. #define ID3D12GBVDiagnostics_GetGBVResourceInfo(This,pResource,pResourceDesc,pResourceHash,pSubresourceStatesByteOffset) \
  26612. ( (This)->lpVtbl -> GetGBVResourceInfo(This,pResource,pResourceDesc,pResourceHash,pSubresourceStatesByteOffset) )
  26613. #define ID3D12GBVDiagnostics_GBVReserved0(This) \
  26614. ( (This)->lpVtbl -> GBVReserved0(This) )
  26615. #define ID3D12GBVDiagnostics_GBVReserved1(This) \
  26616. ( (This)->lpVtbl -> GBVReserved1(This) )
  26617. #endif /* COBJMACROS */
  26618. #endif /* C style interface */
  26619. #endif /* __ID3D12GBVDiagnostics_INTERFACE_DEFINED__ */
  26620. /* interface __MIDL_itf_d3d12_0000_0074 */
  26621. /* [local] */
  26622. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */
  26623. #ifdef _MSC_VER
  26624. #pragma endregion
  26625. #endif
  26626. DEFINE_GUID(IID_ID3D12Object,0xc4fec28f,0x7966,0x4e95,0x9f,0x94,0xf4,0x31,0xcb,0x56,0xc3,0xb8);
  26627. DEFINE_GUID(IID_ID3D12DeviceChild,0x905db94b,0xa00c,0x4140,0x9d,0xf5,0x2b,0x64,0xca,0x9e,0xa3,0x57);
  26628. DEFINE_GUID(IID_ID3D12RootSignature,0xc54a6b66,0x72df,0x4ee8,0x8b,0xe5,0xa9,0x46,0xa1,0x42,0x92,0x14);
  26629. DEFINE_GUID(IID_ID3D12RootSignatureDeserializer,0x34AB647B,0x3CC8,0x46AC,0x84,0x1B,0xC0,0x96,0x56,0x45,0xC0,0x46);
  26630. DEFINE_GUID(IID_ID3D12VersionedRootSignatureDeserializer,0x7F91CE67,0x090C,0x4BB7,0xB7,0x8E,0xED,0x8F,0xF2,0xE3,0x1D,0xA0);
  26631. DEFINE_GUID(IID_ID3D12Pageable,0x63ee58fb,0x1268,0x4835,0x86,0xda,0xf0,0x08,0xce,0x62,0xf0,0xd6);
  26632. DEFINE_GUID(IID_ID3D12Heap,0x6b3b2502,0x6e51,0x45b3,0x90,0xee,0x98,0x84,0x26,0x5e,0x8d,0xf3);
  26633. DEFINE_GUID(IID_ID3D12Resource,0x696442be,0xa72e,0x4059,0xbc,0x79,0x5b,0x5c,0x98,0x04,0x0f,0xad);
  26634. DEFINE_GUID(IID_ID3D12CommandAllocator,0x6102dee4,0xaf59,0x4b09,0xb9,0x99,0xb4,0x4d,0x73,0xf0,0x9b,0x24);
  26635. DEFINE_GUID(IID_ID3D12Fence,0x0a753dcf,0xc4d8,0x4b91,0xad,0xf6,0xbe,0x5a,0x60,0xd9,0x5a,0x76);
  26636. DEFINE_GUID(IID_ID3D12Fence1,0x433685fe,0xe22b,0x4ca0,0xa8,0xdb,0xb5,0xb4,0xf4,0xdd,0x0e,0x4a);
  26637. DEFINE_GUID(IID_ID3D12PipelineState,0x765a30f3,0xf624,0x4c6f,0xa8,0x28,0xac,0xe9,0x48,0x62,0x24,0x45);
  26638. DEFINE_GUID(IID_ID3D12DescriptorHeap,0x8efb471d,0x616c,0x4f49,0x90,0xf7,0x12,0x7b,0xb7,0x63,0xfa,0x51);
  26639. DEFINE_GUID(IID_ID3D12QueryHeap,0x0d9658ae,0xed45,0x469e,0xa6,0x1d,0x97,0x0e,0xc5,0x83,0xca,0xb4);
  26640. DEFINE_GUID(IID_ID3D12CommandSignature,0xc36a797c,0xec80,0x4f0a,0x89,0x85,0xa7,0xb2,0x47,0x50,0x82,0xd1);
  26641. DEFINE_GUID(IID_ID3D12CommandList,0x7116d91c,0xe7e4,0x47ce,0xb8,0xc6,0xec,0x81,0x68,0xf4,0x37,0xe5);
  26642. DEFINE_GUID(IID_ID3D12GraphicsCommandList,0x5b160d0f,0xac1b,0x4185,0x8b,0xa8,0xb3,0xae,0x42,0xa5,0xa4,0x55);
  26643. DEFINE_GUID(IID_ID3D12GraphicsCommandList1,0x553103fb,0x1fe7,0x4557,0xbb,0x38,0x94,0x6d,0x7d,0x0e,0x7c,0xa7);
  26644. DEFINE_GUID(IID_ID3D12GraphicsCommandList2,0x38C3E585,0xFF17,0x412C,0x91,0x50,0x4F,0xC6,0xF9,0xD7,0x2A,0x28);
  26645. DEFINE_GUID(IID_ID3D12CommandQueue,0x0ec870a6,0x5d7e,0x4c22,0x8c,0xfc,0x5b,0xaa,0xe0,0x76,0x16,0xed);
  26646. DEFINE_GUID(IID_ID3D12Device,0x189819f1,0x1db6,0x4b57,0xbe,0x54,0x18,0x21,0x33,0x9b,0x85,0xf7);
  26647. DEFINE_GUID(IID_ID3D12PipelineLibrary,0xc64226a8,0x9201,0x46af,0xb4,0xcc,0x53,0xfb,0x9f,0xf7,0x41,0x4f);
  26648. DEFINE_GUID(IID_ID3D12PipelineLibrary1,0x80eabf42,0x2568,0x4e5e,0xbd,0x82,0xc3,0x7f,0x86,0x96,0x1d,0xc3);
  26649. DEFINE_GUID(IID_ID3D12Device1,0x77acce80,0x638e,0x4e65,0x88,0x95,0xc1,0xf2,0x33,0x86,0x86,0x3e);
  26650. DEFINE_GUID(IID_ID3D12Device2,0x30baa41e,0xb15b,0x475c,0xa0,0xbb,0x1a,0xf5,0xc5,0xb6,0x43,0x28);
  26651. DEFINE_GUID(IID_ID3D12Device3,0x81dadc15,0x2bad,0x4392,0x93,0xc5,0x10,0x13,0x45,0xc4,0xaa,0x98);
  26652. DEFINE_GUID(IID_ID3D12ProtectedSession,0xA1533D18,0x0AC1,0x4084,0x85,0xB9,0x89,0xA9,0x61,0x16,0x80,0x6B);
  26653. DEFINE_GUID(IID_ID3D12ProtectedResourceSession,0x6CD696F4,0xF289,0x40CC,0x80,0x91,0x5A,0x6C,0x0A,0x09,0x9C,0x3D);
  26654. DEFINE_GUID(IID_ID3D12Device4,0xe865df17,0xa9ee,0x46f9,0xa4,0x63,0x30,0x98,0x31,0x5a,0xa2,0xe5);
  26655. DEFINE_GUID(IID_ID3D12LifetimeOwner,0xe667af9f,0xcd56,0x4f46,0x83,0xce,0x03,0x2e,0x59,0x5d,0x70,0xa8);
  26656. DEFINE_GUID(IID_ID3D12SwapChainAssistant,0xf1df64b6,0x57fd,0x49cd,0x88,0x07,0xc0,0xeb,0x88,0xb4,0x5c,0x8f);
  26657. DEFINE_GUID(IID_ID3D12LifetimeTracker,0x3fd03d36,0x4eb1,0x424a,0xa5,0x82,0x49,0x4e,0xcb,0x8b,0xa8,0x13);
  26658. DEFINE_GUID(IID_ID3D12StateObject,0x47016943,0xfca8,0x4594,0x93,0xea,0xaf,0x25,0x8b,0x55,0x34,0x6d);
  26659. DEFINE_GUID(IID_ID3D12StateObjectProperties,0xde5fa827,0x9bf9,0x4f26,0x89,0xff,0xd7,0xf5,0x6f,0xde,0x38,0x60);
  26660. DEFINE_GUID(IID_ID3D12StateObjectProperties1,0x460caac7,0x1d24,0x446a,0xa1,0x84,0xca,0x67,0xdb,0x49,0x41,0x38);
  26661. DEFINE_GUID(IID_ID3D12WorkGraphProperties,0x065acf71,0xf863,0x4b89,0x82,0xf4,0x02,0xe4,0xd5,0x88,0x67,0x57);
  26662. DEFINE_GUID(IID_ID3D12Device5,0x8b4f173b,0x2fea,0x4b80,0x8f,0x58,0x43,0x07,0x19,0x1a,0xb9,0x5d);
  26663. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings,0x82BC481C,0x6B9B,0x4030,0xAE,0xDB,0x7E,0xE3,0xD1,0xDF,0x1E,0x63);
  26664. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings1,0xDBD5AE51,0x3317,0x4F0A,0xAD,0xF9,0x1D,0x7C,0xED,0xCA,0xAE,0x0B);
  26665. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings2,0x61552388,0x01ab,0x4008,0xa4,0x36,0x83,0xdb,0x18,0x95,0x66,0xea);
  26666. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData,0x98931D33,0x5AE8,0x4791,0xAA,0x3C,0x1A,0x73,0xA2,0x93,0x4E,0x71);
  26667. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData1,0x9727A022,0xCF1D,0x4DDA,0x9E,0xBA,0xEF,0xFA,0x65,0x3F,0xC5,0x06);
  26668. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData2,0x67FC5816,0xE4CA,0x4915,0xBF,0x18,0x42,0x54,0x12,0x72,0xDA,0x54);
  26669. DEFINE_GUID(IID_ID3D12Device6,0xc70b221b,0x40e4,0x4a17,0x89,0xaf,0x02,0x5a,0x07,0x27,0xa6,0xdc);
  26670. DEFINE_GUID(IID_ID3D12ProtectedResourceSession1,0xD6F12DD6,0x76FB,0x406E,0x89,0x61,0x42,0x96,0xEE,0xFC,0x04,0x09);
  26671. DEFINE_GUID(IID_ID3D12Device7,0x5c014b53,0x68a1,0x4b9b,0x8b,0xd1,0xdd,0x60,0x46,0xb9,0x35,0x8b);
  26672. DEFINE_GUID(IID_ID3D12Device8,0x9218E6BB,0xF944,0x4F7E,0xA7,0x5C,0xB1,0xB2,0xC7,0xB7,0x01,0xF3);
  26673. DEFINE_GUID(IID_ID3D12Resource1,0x9D5E227A,0x4430,0x4161,0x88,0xB3,0x3E,0xCA,0x6B,0xB1,0x6E,0x19);
  26674. DEFINE_GUID(IID_ID3D12Resource2,0xBE36EC3B,0xEA85,0x4AEB,0xA4,0x5A,0xE9,0xD7,0x64,0x04,0xA4,0x95);
  26675. DEFINE_GUID(IID_ID3D12Heap1,0x572F7389,0x2168,0x49E3,0x96,0x93,0xD6,0xDF,0x58,0x71,0xBF,0x6D);
  26676. DEFINE_GUID(IID_ID3D12GraphicsCommandList3,0x6FDA83A7,0xB84C,0x4E38,0x9A,0xC8,0xC7,0xBD,0x22,0x01,0x6B,0x3D);
  26677. DEFINE_GUID(IID_ID3D12MetaCommand,0xDBB84C27,0x36CE,0x4FC9,0xB8,0x01,0xF0,0x48,0xC4,0x6A,0xC5,0x70);
  26678. DEFINE_GUID(IID_ID3D12GraphicsCommandList4,0x8754318e,0xd3a9,0x4541,0x98,0xcf,0x64,0x5b,0x50,0xdc,0x48,0x74);
  26679. DEFINE_GUID(IID_ID3D12ShaderCacheSession,0x28e2495d,0x0f64,0x4ae4,0xa6,0xec,0x12,0x92,0x55,0xdc,0x49,0xa8);
  26680. DEFINE_GUID(IID_ID3D12Device9,0x4c80e962,0xf032,0x4f60,0xbc,0x9e,0xeb,0xc2,0xcf,0xa1,0xd8,0x3c);
  26681. DEFINE_GUID(IID_ID3D12Device10,0x517f8718,0xaa66,0x49f9,0xb0,0x2b,0xa7,0xab,0x89,0xc0,0x60,0x31);
  26682. DEFINE_GUID(IID_ID3D12Device11,0x5405c344,0xd457,0x444e,0xb4,0xdd,0x23,0x66,0xe4,0x5a,0xee,0x39);
  26683. DEFINE_GUID(IID_ID3D12Device12,0x5af5c532,0x4c91,0x4cd0,0xb5,0x41,0x15,0xa4,0x05,0x39,0x5f,0xc5);
  26684. DEFINE_GUID(IID_ID3D12Device13,0x14eecffc,0x4df8,0x40f7,0xa1,0x18,0x5c,0x81,0x6f,0x45,0x69,0x5e);
  26685. DEFINE_GUID(IID_ID3D12Device14,0x5f6e592d,0xd895,0x44c2,0x8e,0x4a,0x88,0xad,0x49,0x26,0xd3,0x23);
  26686. DEFINE_GUID(IID_ID3D12VirtualizationGuestDevice,0xbc66d368,0x7373,0x4943,0x87,0x57,0xfc,0x87,0xdc,0x79,0xe4,0x76);
  26687. DEFINE_GUID(IID_ID3D12Tools,0x7071e1f0,0xe84b,0x4b33,0x97,0x4f,0x12,0xfa,0x49,0xde,0x65,0xc5);
  26688. DEFINE_GUID(IID_ID3D12SDKConfiguration,0xe9eb5314,0x33aa,0x42b2,0xa7,0x18,0xd7,0x7f,0x58,0xb1,0xf1,0xc7);
  26689. DEFINE_GUID(IID_ID3D12SDKConfiguration1,0x8aaf9303,0xad25,0x48b9,0x9a,0x57,0xd9,0xc3,0x7e,0x00,0x9d,0x9f);
  26690. DEFINE_GUID(IID_ID3D12DeviceFactory,0x61f307d3,0xd34e,0x4e7c,0x83,0x74,0x3b,0xa4,0xde,0x23,0xcc,0xcb);
  26691. DEFINE_GUID(IID_ID3D12DeviceConfiguration,0x78dbf87b,0xf766,0x422b,0xa6,0x1c,0xc8,0xc4,0x46,0xbd,0xb9,0xad);
  26692. DEFINE_GUID(IID_ID3D12DeviceConfiguration1,0xed342442,0x6343,0x4e16,0xbb,0x82,0xa3,0xa5,0x77,0x87,0x4e,0x56);
  26693. DEFINE_GUID(IID_ID3D12GraphicsCommandList5,0x55050859,0x4024,0x474c,0x87,0xf5,0x64,0x72,0xea,0xee,0x44,0xea);
  26694. DEFINE_GUID(IID_ID3D12GraphicsCommandList6,0xc3827890,0xe548,0x4cfa,0x96,0xcf,0x56,0x89,0xa9,0x37,0x0f,0x80);
  26695. DEFINE_GUID(IID_ID3D12GraphicsCommandList7,0xdd171223,0x8b61,0x4769,0x90,0xe3,0x16,0x0c,0xcd,0xe4,0xe2,0xc1);
  26696. DEFINE_GUID(IID_ID3D12GraphicsCommandList8,0xee936ef9,0x599d,0x4d28,0x93,0x8e,0x23,0xc4,0xad,0x05,0xce,0x51);
  26697. DEFINE_GUID(IID_ID3D12GraphicsCommandList9,0x34ed2808,0xffe6,0x4c2b,0xb1,0x1a,0xca,0xbd,0x2b,0x0c,0x59,0xe1);
  26698. DEFINE_GUID(IID_ID3D12GraphicsCommandList10,0x7013c015,0xd161,0x4b63,0xa0,0x8c,0x23,0x85,0x52,0xdd,0x8a,0xcc);
  26699. DEFINE_GUID(IID_ID3D12GBVDiagnostics,0x597985ab,0x9b75,0x4dbb,0xbe,0x23,0x07,0x61,0x19,0x5b,0xeb,0xee);
  26700. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0074_v0_0_c_ifspec;
  26701. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0074_v0_0_s_ifspec;
  26702. /* Additional Prototypes for ALL interfaces */
  26703. /* end of Additional Prototypes */
  26704. #ifdef __cplusplus
  26705. }
  26706. #endif
  26707. #endif