d3d12.h 1.5 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762
  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. /* Forward Declarations */
  39. #ifndef __ID3D12Object_FWD_DEFINED__
  40. #define __ID3D12Object_FWD_DEFINED__
  41. typedef interface ID3D12Object ID3D12Object;
  42. #endif /* __ID3D12Object_FWD_DEFINED__ */
  43. #ifndef __ID3D12DeviceChild_FWD_DEFINED__
  44. #define __ID3D12DeviceChild_FWD_DEFINED__
  45. typedef interface ID3D12DeviceChild ID3D12DeviceChild;
  46. #endif /* __ID3D12DeviceChild_FWD_DEFINED__ */
  47. #ifndef __ID3D12RootSignature_FWD_DEFINED__
  48. #define __ID3D12RootSignature_FWD_DEFINED__
  49. typedef interface ID3D12RootSignature ID3D12RootSignature;
  50. #endif /* __ID3D12RootSignature_FWD_DEFINED__ */
  51. #ifndef __ID3D12RootSignatureDeserializer_FWD_DEFINED__
  52. #define __ID3D12RootSignatureDeserializer_FWD_DEFINED__
  53. typedef interface ID3D12RootSignatureDeserializer ID3D12RootSignatureDeserializer;
  54. #endif /* __ID3D12RootSignatureDeserializer_FWD_DEFINED__ */
  55. #ifndef __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__
  56. #define __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__
  57. typedef interface ID3D12VersionedRootSignatureDeserializer ID3D12VersionedRootSignatureDeserializer;
  58. #endif /* __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__ */
  59. #ifndef __ID3D12Pageable_FWD_DEFINED__
  60. #define __ID3D12Pageable_FWD_DEFINED__
  61. typedef interface ID3D12Pageable ID3D12Pageable;
  62. #endif /* __ID3D12Pageable_FWD_DEFINED__ */
  63. #ifndef __ID3D12Heap_FWD_DEFINED__
  64. #define __ID3D12Heap_FWD_DEFINED__
  65. typedef interface ID3D12Heap ID3D12Heap;
  66. #endif /* __ID3D12Heap_FWD_DEFINED__ */
  67. #ifndef __ID3D12Resource_FWD_DEFINED__
  68. #define __ID3D12Resource_FWD_DEFINED__
  69. typedef interface ID3D12Resource ID3D12Resource;
  70. #endif /* __ID3D12Resource_FWD_DEFINED__ */
  71. #ifndef __ID3D12CommandAllocator_FWD_DEFINED__
  72. #define __ID3D12CommandAllocator_FWD_DEFINED__
  73. typedef interface ID3D12CommandAllocator ID3D12CommandAllocator;
  74. #endif /* __ID3D12CommandAllocator_FWD_DEFINED__ */
  75. #ifndef __ID3D12Fence_FWD_DEFINED__
  76. #define __ID3D12Fence_FWD_DEFINED__
  77. typedef interface ID3D12Fence ID3D12Fence;
  78. #endif /* __ID3D12Fence_FWD_DEFINED__ */
  79. #ifndef __ID3D12Fence1_FWD_DEFINED__
  80. #define __ID3D12Fence1_FWD_DEFINED__
  81. typedef interface ID3D12Fence1 ID3D12Fence1;
  82. #endif /* __ID3D12Fence1_FWD_DEFINED__ */
  83. #ifndef __ID3D12PipelineState_FWD_DEFINED__
  84. #define __ID3D12PipelineState_FWD_DEFINED__
  85. typedef interface ID3D12PipelineState ID3D12PipelineState;
  86. #endif /* __ID3D12PipelineState_FWD_DEFINED__ */
  87. #ifndef __ID3D12DescriptorHeap_FWD_DEFINED__
  88. #define __ID3D12DescriptorHeap_FWD_DEFINED__
  89. typedef interface ID3D12DescriptorHeap ID3D12DescriptorHeap;
  90. #endif /* __ID3D12DescriptorHeap_FWD_DEFINED__ */
  91. #ifndef __ID3D12QueryHeap_FWD_DEFINED__
  92. #define __ID3D12QueryHeap_FWD_DEFINED__
  93. typedef interface ID3D12QueryHeap ID3D12QueryHeap;
  94. #endif /* __ID3D12QueryHeap_FWD_DEFINED__ */
  95. #ifndef __ID3D12CommandSignature_FWD_DEFINED__
  96. #define __ID3D12CommandSignature_FWD_DEFINED__
  97. typedef interface ID3D12CommandSignature ID3D12CommandSignature;
  98. #endif /* __ID3D12CommandSignature_FWD_DEFINED__ */
  99. #ifndef __ID3D12CommandList_FWD_DEFINED__
  100. #define __ID3D12CommandList_FWD_DEFINED__
  101. typedef interface ID3D12CommandList ID3D12CommandList;
  102. #endif /* __ID3D12CommandList_FWD_DEFINED__ */
  103. #ifndef __ID3D12GraphicsCommandList_FWD_DEFINED__
  104. #define __ID3D12GraphicsCommandList_FWD_DEFINED__
  105. typedef interface ID3D12GraphicsCommandList ID3D12GraphicsCommandList;
  106. #endif /* __ID3D12GraphicsCommandList_FWD_DEFINED__ */
  107. #ifndef __ID3D12GraphicsCommandList1_FWD_DEFINED__
  108. #define __ID3D12GraphicsCommandList1_FWD_DEFINED__
  109. typedef interface ID3D12GraphicsCommandList1 ID3D12GraphicsCommandList1;
  110. #endif /* __ID3D12GraphicsCommandList1_FWD_DEFINED__ */
  111. #ifndef __ID3D12GraphicsCommandList2_FWD_DEFINED__
  112. #define __ID3D12GraphicsCommandList2_FWD_DEFINED__
  113. typedef interface ID3D12GraphicsCommandList2 ID3D12GraphicsCommandList2;
  114. #endif /* __ID3D12GraphicsCommandList2_FWD_DEFINED__ */
  115. #ifndef __ID3D12CommandQueue_FWD_DEFINED__
  116. #define __ID3D12CommandQueue_FWD_DEFINED__
  117. typedef interface ID3D12CommandQueue ID3D12CommandQueue;
  118. #endif /* __ID3D12CommandQueue_FWD_DEFINED__ */
  119. #ifndef __ID3D12Device_FWD_DEFINED__
  120. #define __ID3D12Device_FWD_DEFINED__
  121. typedef interface ID3D12Device ID3D12Device;
  122. #endif /* __ID3D12Device_FWD_DEFINED__ */
  123. #ifndef __ID3D12PipelineLibrary_FWD_DEFINED__
  124. #define __ID3D12PipelineLibrary_FWD_DEFINED__
  125. typedef interface ID3D12PipelineLibrary ID3D12PipelineLibrary;
  126. #endif /* __ID3D12PipelineLibrary_FWD_DEFINED__ */
  127. #ifndef __ID3D12PipelineLibrary1_FWD_DEFINED__
  128. #define __ID3D12PipelineLibrary1_FWD_DEFINED__
  129. typedef interface ID3D12PipelineLibrary1 ID3D12PipelineLibrary1;
  130. #endif /* __ID3D12PipelineLibrary1_FWD_DEFINED__ */
  131. #ifndef __ID3D12Device1_FWD_DEFINED__
  132. #define __ID3D12Device1_FWD_DEFINED__
  133. typedef interface ID3D12Device1 ID3D12Device1;
  134. #endif /* __ID3D12Device1_FWD_DEFINED__ */
  135. #ifndef __ID3D12Device2_FWD_DEFINED__
  136. #define __ID3D12Device2_FWD_DEFINED__
  137. typedef interface ID3D12Device2 ID3D12Device2;
  138. #endif /* __ID3D12Device2_FWD_DEFINED__ */
  139. #ifndef __ID3D12Device3_FWD_DEFINED__
  140. #define __ID3D12Device3_FWD_DEFINED__
  141. typedef interface ID3D12Device3 ID3D12Device3;
  142. #endif /* __ID3D12Device3_FWD_DEFINED__ */
  143. #ifndef __ID3D12ProtectedSession_FWD_DEFINED__
  144. #define __ID3D12ProtectedSession_FWD_DEFINED__
  145. typedef interface ID3D12ProtectedSession ID3D12ProtectedSession;
  146. #endif /* __ID3D12ProtectedSession_FWD_DEFINED__ */
  147. #ifndef __ID3D12ProtectedResourceSession_FWD_DEFINED__
  148. #define __ID3D12ProtectedResourceSession_FWD_DEFINED__
  149. typedef interface ID3D12ProtectedResourceSession ID3D12ProtectedResourceSession;
  150. #endif /* __ID3D12ProtectedResourceSession_FWD_DEFINED__ */
  151. #ifndef __ID3D12Device4_FWD_DEFINED__
  152. #define __ID3D12Device4_FWD_DEFINED__
  153. typedef interface ID3D12Device4 ID3D12Device4;
  154. #endif /* __ID3D12Device4_FWD_DEFINED__ */
  155. #ifndef __ID3D12LifetimeOwner_FWD_DEFINED__
  156. #define __ID3D12LifetimeOwner_FWD_DEFINED__
  157. typedef interface ID3D12LifetimeOwner ID3D12LifetimeOwner;
  158. #endif /* __ID3D12LifetimeOwner_FWD_DEFINED__ */
  159. #ifndef __ID3D12SwapChainAssistant_FWD_DEFINED__
  160. #define __ID3D12SwapChainAssistant_FWD_DEFINED__
  161. typedef interface ID3D12SwapChainAssistant ID3D12SwapChainAssistant;
  162. #endif /* __ID3D12SwapChainAssistant_FWD_DEFINED__ */
  163. #ifndef __ID3D12LifetimeTracker_FWD_DEFINED__
  164. #define __ID3D12LifetimeTracker_FWD_DEFINED__
  165. typedef interface ID3D12LifetimeTracker ID3D12LifetimeTracker;
  166. #endif /* __ID3D12LifetimeTracker_FWD_DEFINED__ */
  167. #ifndef __ID3D12StateObject_FWD_DEFINED__
  168. #define __ID3D12StateObject_FWD_DEFINED__
  169. typedef interface ID3D12StateObject ID3D12StateObject;
  170. #endif /* __ID3D12StateObject_FWD_DEFINED__ */
  171. #ifndef __ID3D12StateObjectProperties_FWD_DEFINED__
  172. #define __ID3D12StateObjectProperties_FWD_DEFINED__
  173. typedef interface ID3D12StateObjectProperties ID3D12StateObjectProperties;
  174. #endif /* __ID3D12StateObjectProperties_FWD_DEFINED__ */
  175. #ifndef __ID3D12StateObjectProperties1_FWD_DEFINED__
  176. #define __ID3D12StateObjectProperties1_FWD_DEFINED__
  177. typedef interface ID3D12StateObjectProperties1 ID3D12StateObjectProperties1;
  178. #endif /* __ID3D12StateObjectProperties1_FWD_DEFINED__ */
  179. #ifndef __ID3D12WorkGraphProperties_FWD_DEFINED__
  180. #define __ID3D12WorkGraphProperties_FWD_DEFINED__
  181. typedef interface ID3D12WorkGraphProperties ID3D12WorkGraphProperties;
  182. #endif /* __ID3D12WorkGraphProperties_FWD_DEFINED__ */
  183. #ifndef __ID3D12Device5_FWD_DEFINED__
  184. #define __ID3D12Device5_FWD_DEFINED__
  185. typedef interface ID3D12Device5 ID3D12Device5;
  186. #endif /* __ID3D12Device5_FWD_DEFINED__ */
  187. #ifndef __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__
  188. #define __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__
  189. typedef interface ID3D12DeviceRemovedExtendedDataSettings ID3D12DeviceRemovedExtendedDataSettings;
  190. #endif /* __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__ */
  191. #ifndef __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__
  192. #define __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__
  193. typedef interface ID3D12DeviceRemovedExtendedDataSettings1 ID3D12DeviceRemovedExtendedDataSettings1;
  194. #endif /* __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__ */
  195. #ifndef __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__
  196. #define __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__
  197. typedef interface ID3D12DeviceRemovedExtendedDataSettings2 ID3D12DeviceRemovedExtendedDataSettings2;
  198. #endif /* __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__ */
  199. #ifndef __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__
  200. #define __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__
  201. typedef interface ID3D12DeviceRemovedExtendedData ID3D12DeviceRemovedExtendedData;
  202. #endif /* __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__ */
  203. #ifndef __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__
  204. #define __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__
  205. typedef interface ID3D12DeviceRemovedExtendedData1 ID3D12DeviceRemovedExtendedData1;
  206. #endif /* __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__ */
  207. #ifndef __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__
  208. #define __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__
  209. typedef interface ID3D12DeviceRemovedExtendedData2 ID3D12DeviceRemovedExtendedData2;
  210. #endif /* __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__ */
  211. #ifndef __ID3D12Device6_FWD_DEFINED__
  212. #define __ID3D12Device6_FWD_DEFINED__
  213. typedef interface ID3D12Device6 ID3D12Device6;
  214. #endif /* __ID3D12Device6_FWD_DEFINED__ */
  215. #ifndef __ID3D12ProtectedResourceSession1_FWD_DEFINED__
  216. #define __ID3D12ProtectedResourceSession1_FWD_DEFINED__
  217. typedef interface ID3D12ProtectedResourceSession1 ID3D12ProtectedResourceSession1;
  218. #endif /* __ID3D12ProtectedResourceSession1_FWD_DEFINED__ */
  219. #ifndef __ID3D12Device7_FWD_DEFINED__
  220. #define __ID3D12Device7_FWD_DEFINED__
  221. typedef interface ID3D12Device7 ID3D12Device7;
  222. #endif /* __ID3D12Device7_FWD_DEFINED__ */
  223. #ifndef __ID3D12Device8_FWD_DEFINED__
  224. #define __ID3D12Device8_FWD_DEFINED__
  225. typedef interface ID3D12Device8 ID3D12Device8;
  226. #endif /* __ID3D12Device8_FWD_DEFINED__ */
  227. #ifndef __ID3D12Resource1_FWD_DEFINED__
  228. #define __ID3D12Resource1_FWD_DEFINED__
  229. typedef interface ID3D12Resource1 ID3D12Resource1;
  230. #endif /* __ID3D12Resource1_FWD_DEFINED__ */
  231. #ifndef __ID3D12Resource2_FWD_DEFINED__
  232. #define __ID3D12Resource2_FWD_DEFINED__
  233. typedef interface ID3D12Resource2 ID3D12Resource2;
  234. #endif /* __ID3D12Resource2_FWD_DEFINED__ */
  235. #ifndef __ID3D12Heap1_FWD_DEFINED__
  236. #define __ID3D12Heap1_FWD_DEFINED__
  237. typedef interface ID3D12Heap1 ID3D12Heap1;
  238. #endif /* __ID3D12Heap1_FWD_DEFINED__ */
  239. #ifndef __ID3D12GraphicsCommandList3_FWD_DEFINED__
  240. #define __ID3D12GraphicsCommandList3_FWD_DEFINED__
  241. typedef interface ID3D12GraphicsCommandList3 ID3D12GraphicsCommandList3;
  242. #endif /* __ID3D12GraphicsCommandList3_FWD_DEFINED__ */
  243. #ifndef __ID3D12MetaCommand_FWD_DEFINED__
  244. #define __ID3D12MetaCommand_FWD_DEFINED__
  245. typedef interface ID3D12MetaCommand ID3D12MetaCommand;
  246. #endif /* __ID3D12MetaCommand_FWD_DEFINED__ */
  247. #ifndef __ID3D12GraphicsCommandList4_FWD_DEFINED__
  248. #define __ID3D12GraphicsCommandList4_FWD_DEFINED__
  249. typedef interface ID3D12GraphicsCommandList4 ID3D12GraphicsCommandList4;
  250. #endif /* __ID3D12GraphicsCommandList4_FWD_DEFINED__ */
  251. #ifndef __ID3D12ShaderCacheSession_FWD_DEFINED__
  252. #define __ID3D12ShaderCacheSession_FWD_DEFINED__
  253. typedef interface ID3D12ShaderCacheSession ID3D12ShaderCacheSession;
  254. #endif /* __ID3D12ShaderCacheSession_FWD_DEFINED__ */
  255. #ifndef __ID3D12Device9_FWD_DEFINED__
  256. #define __ID3D12Device9_FWD_DEFINED__
  257. typedef interface ID3D12Device9 ID3D12Device9;
  258. #endif /* __ID3D12Device9_FWD_DEFINED__ */
  259. #ifndef __ID3D12Device10_FWD_DEFINED__
  260. #define __ID3D12Device10_FWD_DEFINED__
  261. typedef interface ID3D12Device10 ID3D12Device10;
  262. #endif /* __ID3D12Device10_FWD_DEFINED__ */
  263. #ifndef __ID3D12Device11_FWD_DEFINED__
  264. #define __ID3D12Device11_FWD_DEFINED__
  265. typedef interface ID3D12Device11 ID3D12Device11;
  266. #endif /* __ID3D12Device11_FWD_DEFINED__ */
  267. #ifndef __ID3D12Device12_FWD_DEFINED__
  268. #define __ID3D12Device12_FWD_DEFINED__
  269. typedef interface ID3D12Device12 ID3D12Device12;
  270. #endif /* __ID3D12Device12_FWD_DEFINED__ */
  271. #ifndef __ID3D12Device13_FWD_DEFINED__
  272. #define __ID3D12Device13_FWD_DEFINED__
  273. typedef interface ID3D12Device13 ID3D12Device13;
  274. #endif /* __ID3D12Device13_FWD_DEFINED__ */
  275. #ifndef __ID3D12Device14_FWD_DEFINED__
  276. #define __ID3D12Device14_FWD_DEFINED__
  277. typedef interface ID3D12Device14 ID3D12Device14;
  278. #endif /* __ID3D12Device14_FWD_DEFINED__ */
  279. #ifndef __ID3D12VirtualizationGuestDevice_FWD_DEFINED__
  280. #define __ID3D12VirtualizationGuestDevice_FWD_DEFINED__
  281. typedef interface ID3D12VirtualizationGuestDevice ID3D12VirtualizationGuestDevice;
  282. #endif /* __ID3D12VirtualizationGuestDevice_FWD_DEFINED__ */
  283. #ifndef __ID3D12Tools_FWD_DEFINED__
  284. #define __ID3D12Tools_FWD_DEFINED__
  285. typedef interface ID3D12Tools ID3D12Tools;
  286. #endif /* __ID3D12Tools_FWD_DEFINED__ */
  287. #ifndef __ID3D12Tools1_FWD_DEFINED__
  288. #define __ID3D12Tools1_FWD_DEFINED__
  289. typedef interface ID3D12Tools1 ID3D12Tools1;
  290. #endif /* __ID3D12Tools1_FWD_DEFINED__ */
  291. #ifndef __ID3D12Tools2_FWD_DEFINED__
  292. #define __ID3D12Tools2_FWD_DEFINED__
  293. typedef interface ID3D12Tools2 ID3D12Tools2;
  294. #endif /* __ID3D12Tools2_FWD_DEFINED__ */
  295. #ifndef __ID3D12PageableTools_FWD_DEFINED__
  296. #define __ID3D12PageableTools_FWD_DEFINED__
  297. typedef interface ID3D12PageableTools ID3D12PageableTools;
  298. #endif /* __ID3D12PageableTools_FWD_DEFINED__ */
  299. #ifndef __ID3D12DeviceTools_FWD_DEFINED__
  300. #define __ID3D12DeviceTools_FWD_DEFINED__
  301. typedef interface ID3D12DeviceTools ID3D12DeviceTools;
  302. #endif /* __ID3D12DeviceTools_FWD_DEFINED__ */
  303. #ifndef __ID3D12DeviceTools1_FWD_DEFINED__
  304. #define __ID3D12DeviceTools1_FWD_DEFINED__
  305. typedef interface ID3D12DeviceTools1 ID3D12DeviceTools1;
  306. #endif /* __ID3D12DeviceTools1_FWD_DEFINED__ */
  307. #ifndef __ID3D12SDKConfiguration_FWD_DEFINED__
  308. #define __ID3D12SDKConfiguration_FWD_DEFINED__
  309. typedef interface ID3D12SDKConfiguration ID3D12SDKConfiguration;
  310. #endif /* __ID3D12SDKConfiguration_FWD_DEFINED__ */
  311. #ifndef __ID3D12SDKConfiguration1_FWD_DEFINED__
  312. #define __ID3D12SDKConfiguration1_FWD_DEFINED__
  313. typedef interface ID3D12SDKConfiguration1 ID3D12SDKConfiguration1;
  314. #endif /* __ID3D12SDKConfiguration1_FWD_DEFINED__ */
  315. #ifndef __ID3D12DeviceFactory_FWD_DEFINED__
  316. #define __ID3D12DeviceFactory_FWD_DEFINED__
  317. typedef interface ID3D12DeviceFactory ID3D12DeviceFactory;
  318. #endif /* __ID3D12DeviceFactory_FWD_DEFINED__ */
  319. #ifndef __ID3D12DeviceConfiguration_FWD_DEFINED__
  320. #define __ID3D12DeviceConfiguration_FWD_DEFINED__
  321. typedef interface ID3D12DeviceConfiguration ID3D12DeviceConfiguration;
  322. #endif /* __ID3D12DeviceConfiguration_FWD_DEFINED__ */
  323. #ifndef __ID3D12DeviceConfiguration1_FWD_DEFINED__
  324. #define __ID3D12DeviceConfiguration1_FWD_DEFINED__
  325. typedef interface ID3D12DeviceConfiguration1 ID3D12DeviceConfiguration1;
  326. #endif /* __ID3D12DeviceConfiguration1_FWD_DEFINED__ */
  327. #ifndef __ID3D12GraphicsCommandList5_FWD_DEFINED__
  328. #define __ID3D12GraphicsCommandList5_FWD_DEFINED__
  329. typedef interface ID3D12GraphicsCommandList5 ID3D12GraphicsCommandList5;
  330. #endif /* __ID3D12GraphicsCommandList5_FWD_DEFINED__ */
  331. #ifndef __ID3D12GraphicsCommandList6_FWD_DEFINED__
  332. #define __ID3D12GraphicsCommandList6_FWD_DEFINED__
  333. typedef interface ID3D12GraphicsCommandList6 ID3D12GraphicsCommandList6;
  334. #endif /* __ID3D12GraphicsCommandList6_FWD_DEFINED__ */
  335. #ifndef __ID3D12GraphicsCommandList7_FWD_DEFINED__
  336. #define __ID3D12GraphicsCommandList7_FWD_DEFINED__
  337. typedef interface ID3D12GraphicsCommandList7 ID3D12GraphicsCommandList7;
  338. #endif /* __ID3D12GraphicsCommandList7_FWD_DEFINED__ */
  339. #ifndef __ID3D12GraphicsCommandList8_FWD_DEFINED__
  340. #define __ID3D12GraphicsCommandList8_FWD_DEFINED__
  341. typedef interface ID3D12GraphicsCommandList8 ID3D12GraphicsCommandList8;
  342. #endif /* __ID3D12GraphicsCommandList8_FWD_DEFINED__ */
  343. #ifndef __ID3D12GraphicsCommandList9_FWD_DEFINED__
  344. #define __ID3D12GraphicsCommandList9_FWD_DEFINED__
  345. typedef interface ID3D12GraphicsCommandList9 ID3D12GraphicsCommandList9;
  346. #endif /* __ID3D12GraphicsCommandList9_FWD_DEFINED__ */
  347. #ifndef __ID3D12GraphicsCommandList10_FWD_DEFINED__
  348. #define __ID3D12GraphicsCommandList10_FWD_DEFINED__
  349. typedef interface ID3D12GraphicsCommandList10 ID3D12GraphicsCommandList10;
  350. #endif /* __ID3D12GraphicsCommandList10_FWD_DEFINED__ */
  351. #ifndef __ID3D12DSRDeviceFactory_FWD_DEFINED__
  352. #define __ID3D12DSRDeviceFactory_FWD_DEFINED__
  353. typedef interface ID3D12DSRDeviceFactory ID3D12DSRDeviceFactory;
  354. #endif /* __ID3D12DSRDeviceFactory_FWD_DEFINED__ */
  355. #ifndef __ID3D12GBVDiagnostics_FWD_DEFINED__
  356. #define __ID3D12GBVDiagnostics_FWD_DEFINED__
  357. typedef interface ID3D12GBVDiagnostics ID3D12GBVDiagnostics;
  358. #endif /* __ID3D12GBVDiagnostics_FWD_DEFINED__ */
  359. /* header files for imported files */
  360. #include "oaidl.h"
  361. #include "ocidl.h"
  362. #include "dxgicommon.h"
  363. #include "dxgiformat.h"
  364. #include "d3dcommon.h"
  365. #ifdef __cplusplus
  366. extern "C"{
  367. #endif
  368. /* interface __MIDL_itf_d3d12_0000_0000 */
  369. /* [local] */
  370. #include <winapifamily.h>
  371. #pragma region App Family
  372. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)
  373. #ifndef _D3D12_CONSTANTS
  374. #define _D3D12_CONSTANTS
  375. #define D3D12_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )
  376. #define D3D12_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )
  377. #define D3D12_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )
  378. #define D3D12_APPEND_ALIGNED_ELEMENT ( 0xffffffff )
  379. #define D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )
  380. #define D3D12_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )
  381. #define D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )
  382. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )
  383. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )
  384. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )
  385. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )
  386. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 )
  387. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )
  388. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )
  389. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )
  390. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )
  391. #define D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )
  392. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )
  393. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )
  394. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )
  395. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )
  396. #define D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )
  397. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )
  398. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )
  399. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )
  400. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )
  401. #define D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )
  402. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )
  403. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )
  404. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )
  405. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )
  406. #define D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )
  407. #define D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )
  408. #define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )
  409. #define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  410. #define D3D12_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )
  411. #define D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )
  412. #define D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )
  413. #define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )
  414. #define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )
  415. #define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )
  416. #define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )
  417. #define D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT ( 256 )
  418. #define D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 )
  419. #define D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 )
  420. #define D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 )
  421. #define D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 )
  422. #define D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 )
  423. #define D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 )
  424. #define D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 )
  425. #define D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 )
  426. #define D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 )
  427. #define D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 )
  428. #define D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 )
  429. #define D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 )
  430. #define D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 )
  431. #define D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 )
  432. #define D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 )
  433. #define D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 )
  434. #define D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 )
  435. #define D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 )
  436. #define D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 )
  437. #define D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 )
  438. #define D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 )
  439. #define D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 )
  440. #define D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 )
  441. #define D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 )
  442. #define D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 )
  443. #define D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 )
  444. #define D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 )
  445. #define D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 )
  446. #define D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 )
  447. #define D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 )
  448. #define D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 )
  449. #define D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 )
  450. #define D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 )
  451. #define D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 )
  452. #define D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 )
  453. #define D3D12_CS_4_X_THREAD_GROUP_MAX_X ( 768 )
  454. #define D3D12_CS_4_X_THREAD_GROUP_MAX_Y ( 768 )
  455. #define D3D12_CS_4_X_UAV_REGISTER_COUNT ( 1 )
  456. #define D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 )
  457. #define D3D12_CS_TGSM_REGISTER_COUNT ( 8192 )
  458. #define D3D12_CS_TGSM_REGISTER_READS_PER_INST ( 1 )
  459. #define D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 )
  460. #define D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 )
  461. #define D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 )
  462. #define D3D12_CS_THREADGROUPID_REGISTER_COUNT ( 1 )
  463. #define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 )
  464. #define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 )
  465. #define D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 )
  466. #define D3D12_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 )
  467. #define D3D12_CS_THREADID_REGISTER_COMPONENTS ( 3 )
  468. #define D3D12_CS_THREADID_REGISTER_COUNT ( 1 )
  469. #define D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 )
  470. #define D3D12_CS_THREAD_GROUP_MAX_X ( 1024 )
  471. #define D3D12_CS_THREAD_GROUP_MAX_Y ( 1024 )
  472. #define D3D12_CS_THREAD_GROUP_MAX_Z ( 64 )
  473. #define D3D12_CS_THREAD_GROUP_MIN_X ( 1 )
  474. #define D3D12_CS_THREAD_GROUP_MIN_Y ( 1 )
  475. #define D3D12_CS_THREAD_GROUP_MIN_Z ( 1 )
  476. #define D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 )
  477. #define D3D12_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )
  478. #define D3D12_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )
  479. #define D3D12_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )
  480. #define D3D12_DEFAULT_BLEND_FACTOR_RED ( 1.0f )
  481. #define D3D12_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )
  482. #define D3D12_DEFAULT_DEPTH_BIAS ( 0 )
  483. #define D3D12_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )
  484. #define D3D12_DEFAULT_MAX_ANISOTROPY ( 16 )
  485. #define D3D12_DEFAULT_MIP_LOD_BIAS ( 0.0f )
  486. #define D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 4194304 )
  487. #define D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )
  488. #define D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )
  489. #define D3D12_DEFAULT_SAMPLE_MASK ( 0xffffffff )
  490. #define D3D12_DEFAULT_SCISSOR_ENDX ( 0 )
  491. #define D3D12_DEFAULT_SCISSOR_ENDY ( 0 )
  492. #define D3D12_DEFAULT_SCISSOR_STARTX ( 0 )
  493. #define D3D12_DEFAULT_SCISSOR_STARTY ( 0 )
  494. #define D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )
  495. #define D3D12_DEFAULT_STENCIL_READ_MASK ( 0xff )
  496. #define D3D12_DEFAULT_STENCIL_REFERENCE ( 0 )
  497. #define D3D12_DEFAULT_STENCIL_WRITE_MASK ( 0xff )
  498. #define D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )
  499. #define D3D12_DEFAULT_VIEWPORT_HEIGHT ( 0 )
  500. #define D3D12_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )
  501. #define D3D12_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )
  502. #define D3D12_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )
  503. #define D3D12_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )
  504. #define D3D12_DEFAULT_VIEWPORT_WIDTH ( 0 )
  505. #define D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND ( 0xffffffff )
  506. #define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END ( 0xfffffff7 )
  507. #define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )
  508. #define D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )
  509. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )
  510. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  511. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 )
  512. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )
  513. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )
  514. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 )
  515. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  516. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 )
  517. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 )
  518. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 )
  519. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )
  520. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  521. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )
  522. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )
  523. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )
  524. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )
  525. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  526. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )
  527. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )
  528. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )
  529. #define D3D12_DS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  530. #define D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  531. #define D3D12_DS_OUTPUT_REGISTER_COUNT ( 32 )
  532. #define D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )
  533. #define D3D12_FLOAT32_MAX ( 3.402823466e+38f )
  534. #define D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )
  535. #define D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )
  536. #define D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )
  537. #define D3D12_FLOAT_TO_SRGB_OFFSET ( 0.055f )
  538. #define D3D12_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )
  539. #define D3D12_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )
  540. #define D3D12_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )
  541. #define D3D12_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )
  542. #define D3D12_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )
  543. #define D3D12_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )
  544. #define D3D12_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )
  545. #define D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 )
  546. #define D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 )
  547. #define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )
  548. #define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  549. #define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 )
  550. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )
  551. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  552. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )
  553. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )
  554. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )
  555. #define D3D12_GS_INPUT_REGISTER_COMPONENTS ( 4 )
  556. #define D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  557. #define D3D12_GS_INPUT_REGISTER_COUNT ( 32 )
  558. #define D3D12_GS_INPUT_REGISTER_READS_PER_INST ( 2 )
  559. #define D3D12_GS_INPUT_REGISTER_READ_PORTS ( 1 )
  560. #define D3D12_GS_INPUT_REGISTER_VERTICES ( 32 )
  561. #define D3D12_GS_MAX_INSTANCE_COUNT ( 32 )
  562. #define D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 )
  563. #define D3D12_GS_OUTPUT_ELEMENTS ( 32 )
  564. #define D3D12_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  565. #define D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  566. #define D3D12_GS_OUTPUT_REGISTER_COUNT ( 32 )
  567. #define D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 )
  568. #define D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 )
  569. #define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )
  570. #define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  571. #define D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )
  572. #define D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )
  573. #define D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )
  574. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )
  575. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  576. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 )
  577. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )
  578. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )
  579. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )
  580. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  581. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 )
  582. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )
  583. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )
  584. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )
  585. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  586. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )
  587. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )
  588. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )
  589. #define D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )
  590. #define D3D12_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )
  591. #define D3D12_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )
  592. #define D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )
  593. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 )
  594. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  595. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 )
  596. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 )
  597. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 )
  598. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )
  599. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  600. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )
  601. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )
  602. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )
  603. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 )
  604. #define D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )
  605. #define D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )
  606. #define D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )
  607. #define D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )
  608. #define D3D12_IA_INSTANCE_ID_BIT_COUNT ( 32 )
  609. #define D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )
  610. #define D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 )
  611. #define D3D12_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )
  612. #define D3D12_IA_VERTEX_ID_BIT_COUNT ( 32 )
  613. #define D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )
  614. #define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )
  615. #define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )
  616. #define D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )
  617. #define D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )
  618. #define D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff )
  619. #define D3D12_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff )
  620. #define D3D12_LINEAR_GAMMA ( 1.0f )
  621. #define D3D12_MAJOR_VERSION ( 12 )
  622. #define D3D12_MAX_BORDER_COLOR_COMPONENT ( 1.0f )
  623. #define D3D12_MAX_DEPTH ( 1.0f )
  624. #define D3D12_MAX_LIVE_STATIC_SAMPLERS ( 2032 )
  625. #define D3D12_MAX_MAXANISOTROPY ( 16 )
  626. #define D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )
  627. #define D3D12_MAX_POSITION_VALUE ( 3.402823466e+34f )
  628. #define D3D12_MAX_ROOT_COST ( 64 )
  629. #define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 ( 1000000 )
  630. #define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 ( 1000000 )
  631. #define D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE ( 2048 )
  632. #define D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )
  633. #define D3D12_MAX_VIEW_INSTANCE_COUNT ( 4 )
  634. #define D3D12_MINOR_VERSION ( 0 )
  635. #define D3D12_MIN_BORDER_COLOR_COMPONENT ( 0.0f )
  636. #define D3D12_MIN_DEPTH ( 0.0f )
  637. #define D3D12_MIN_MAXANISOTROPY ( 0 )
  638. #define D3D12_MIP_LOD_BIAS_MAX ( 15.99f )
  639. #define D3D12_MIP_LOD_BIAS_MIN ( -16.0f )
  640. #define D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 )
  641. #define D3D12_MIP_LOD_RANGE_BIT_COUNT ( 8 )
  642. #define D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )
  643. #define D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )
  644. #define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )
  645. #define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff8 )
  646. #define D3D12_PACKED_TILE ( 0xffffffff )
  647. #define D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )
  648. #define D3D12_PREVIEW_SDK_VERSION ( 717 )
  649. #define D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )
  650. #define D3D12_PS_CS_UAV_REGISTER_COMPONENTS ( 1 )
  651. #define D3D12_PS_CS_UAV_REGISTER_COUNT ( 8 )
  652. #define D3D12_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 )
  653. #define D3D12_PS_CS_UAV_REGISTER_READ_PORTS ( 1 )
  654. #define D3D12_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )
  655. #define D3D12_PS_FRONTFACING_FALSE_VALUE ( 0 )
  656. #define D3D12_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )
  657. #define D3D12_PS_INPUT_REGISTER_COMPONENTS ( 4 )
  658. #define D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  659. #define D3D12_PS_INPUT_REGISTER_COUNT ( 32 )
  660. #define D3D12_PS_INPUT_REGISTER_READS_PER_INST ( 2 )
  661. #define D3D12_PS_INPUT_REGISTER_READ_PORTS ( 1 )
  662. #define D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )
  663. #define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )
  664. #define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  665. #define D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )
  666. #define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )
  667. #define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  668. #define D3D12_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )
  669. #define D3D12_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  670. #define D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  671. #define D3D12_PS_OUTPUT_REGISTER_COUNT ( 8 )
  672. #define D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )
  673. #define D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 )
  674. #define D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT ( 8 )
  675. #define D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT ( 256 )
  676. #define D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT ( 16 )
  677. #define D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES ( 32 )
  678. #define D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH ( 31 )
  679. #define D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )
  680. #define D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )
  681. #define D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 536870912 )
  682. #define D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS ( 1073741824 )
  683. #define D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE ( 4096 )
  684. #define D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT ( 32 )
  685. #define D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT ( 64 )
  686. #define D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT ( 16 )
  687. #define D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 )
  688. #define D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )
  689. #define D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )
  690. #define D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 )
  691. #define D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )
  692. #define D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )
  693. #define D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 )
  694. #define D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )
  695. #define D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )
  696. #define D3D12_REQ_MAXANISOTROPY ( 16 )
  697. #define D3D12_REQ_MIP_LEVELS ( 15 )
  698. #define D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )
  699. #define D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 )
  700. #define D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 )
  701. #define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 )
  702. #define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )
  703. #define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 )
  704. #define D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 )
  705. #define D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 )
  706. #define D3D12_REQ_SUBRESOURCES ( 30720 )
  707. #define D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 )
  708. #define D3D12_REQ_TEXTURE1D_U_DIMENSION ( 16384 )
  709. #define D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 )
  710. #define D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 )
  711. #define D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )
  712. #define D3D12_REQ_TEXTURECUBE_DIMENSION ( 16384 )
  713. #define D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )
  714. #define D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES ( 0xffffffff )
  715. #define D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT ( 2 )
  716. #define D3D12_SDK_VERSION ( 616 )
  717. #define D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES ( 32 )
  718. #define D3D12_SHADER_MAJOR_VERSION ( 5 )
  719. #define D3D12_SHADER_MAX_INSTANCES ( 65535 )
  720. #define D3D12_SHADER_MAX_INTERFACES ( 253 )
  721. #define D3D12_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 )
  722. #define D3D12_SHADER_MAX_TYPES ( 65535 )
  723. #define D3D12_SHADER_MINOR_VERSION ( 1 )
  724. #define D3D12_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )
  725. #define D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )
  726. #define D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )
  727. #define D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )
  728. #define D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT ( 4096 )
  729. #define D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )
  730. #define D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 )
  731. #define D3D12_SO_BUFFER_SLOT_COUNT ( 4 )
  732. #define D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )
  733. #define D3D12_SO_NO_RASTERIZED_STREAM ( 0xffffffff )
  734. #define D3D12_SO_OUTPUT_COMPONENT_COUNT ( 128 )
  735. #define D3D12_SO_STREAM_COUNT ( 4 )
  736. #define D3D12_SPEC_DATE_DAY ( 14 )
  737. #define D3D12_SPEC_DATE_MONTH ( 11 )
  738. #define D3D12_SPEC_DATE_YEAR ( 2014 )
  739. #define D3D12_SPEC_VERSION ( 1.16 )
  740. #define D3D12_SRGB_GAMMA ( 2.2f )
  741. #define D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )
  742. #define D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )
  743. #define D3D12_SRGB_TO_FLOAT_EXPONENT ( 2.4f )
  744. #define D3D12_SRGB_TO_FLOAT_OFFSET ( 0.055f )
  745. #define D3D12_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )
  746. #define D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )
  747. #define D3D12_STANDARD_COMPONENT_BIT_COUNT ( 32 )
  748. #define D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )
  749. #define D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )
  750. #define D3D12_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )
  751. #define D3D12_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )
  752. #define D3D12_STANDARD_VECTOR_SIZE ( 4 )
  753. #define D3D12_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )
  754. #define D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )
  755. #define D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )
  756. #define D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 )
  757. #define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )
  758. #define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )
  759. #define D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 )
  760. #define D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 )
  761. #define D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 )
  762. #define D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 )
  763. #define D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 )
  764. #define D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 )
  765. #define D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 )
  766. #define D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )
  767. #define D3D12_TEXTURE_DATA_PITCH_ALIGNMENT ( 256 )
  768. #define D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT ( 512 )
  769. #define D3D12_TIGHT_ALIGNMENT_MIN_COMMITTED_RESOURCE_ALIGNEMNT ( 4096 )
  770. #define D3D12_TIGHT_ALIGNMENT_MIN_PLACED_RESOURCE_ALIGNEMNT ( 8 )
  771. #define D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 )
  772. #define D3D12_TRACKED_WORKLOAD_MAX_INSTANCES ( 32 )
  773. #define D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT ( 4096 )
  774. #define D3D12_UAV_SLOT_COUNT ( 64 )
  775. #define D3D12_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )
  776. #define D3D12_VIDEO_DECODE_MAX_ARGUMENTS ( 10 )
  777. #define D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS ( 4 )
  778. #define D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT ( 256 )
  779. #define D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT ( 256 )
  780. #define D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN ( 0xffffffff )
  781. #define D3D12_VIDEO_ENCODER_AV1_INVALID_DPB_RESOURCE_INDEX ( 0xff )
  782. #define D3D12_VIDEO_ENCODER_AV1_MAX_TILE_COLS ( 64 )
  783. #define D3D12_VIDEO_ENCODER_AV1_MAX_TILE_ROWS ( 64 )
  784. #define D3D12_VIDEO_ENCODER_AV1_SUPERRES_DENOM_MIN ( 9 )
  785. #define D3D12_VIDEO_ENCODER_AV1_SUPERRES_NUM ( 8 )
  786. #define D3D12_VIDEO_PROCESS_MAX_FILTERS ( 32 )
  787. #define D3D12_VIDEO_PROCESS_STEREO_VIEWS ( 2 )
  788. #define D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )
  789. #define D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )
  790. #define D3D12_VIEWPORT_BOUNDS_MAX ( 32767 )
  791. #define D3D12_VIEWPORT_BOUNDS_MIN ( -32768 )
  792. #define D3D12_VS_INPUT_REGISTER_COMPONENTS ( 4 )
  793. #define D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  794. #define D3D12_VS_INPUT_REGISTER_COUNT ( 32 )
  795. #define D3D12_VS_INPUT_REGISTER_READS_PER_INST ( 2 )
  796. #define D3D12_VS_INPUT_REGISTER_READ_PORTS ( 1 )
  797. #define D3D12_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  798. #define D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  799. #define D3D12_VS_OUTPUT_REGISTER_COUNT ( 32 )
  800. #define D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )
  801. #define D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )
  802. #define D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )
  803. #define D3D12_WORK_GRAPHS_BACKING_MEMORY_ALIGNMENT_IN_BYTES ( 8 )
  804. #define D3D12_WORK_GRAPHS_MAX_NODE_DEPTH ( 32 )
  805. #endif
  806. typedef UINT64 D3D12_GPU_VIRTUAL_ADDRESS;
  807. typedef
  808. enum D3D12_COMMAND_LIST_TYPE
  809. {
  810. D3D12_COMMAND_LIST_TYPE_DIRECT = 0,
  811. D3D12_COMMAND_LIST_TYPE_BUNDLE = 1,
  812. D3D12_COMMAND_LIST_TYPE_COMPUTE = 2,
  813. D3D12_COMMAND_LIST_TYPE_COPY = 3,
  814. D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE = 4,
  815. D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS = 5,
  816. D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE = 6,
  817. D3D12_COMMAND_LIST_TYPE_NONE = -1
  818. } D3D12_COMMAND_LIST_TYPE;
  819. typedef
  820. enum D3D12_COMMAND_QUEUE_FLAGS
  821. {
  822. D3D12_COMMAND_QUEUE_FLAG_NONE = 0,
  823. D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT = 0x1
  824. } D3D12_COMMAND_QUEUE_FLAGS;
  825. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_QUEUE_FLAGS )
  826. typedef
  827. enum D3D12_COMMAND_QUEUE_PRIORITY
  828. {
  829. D3D12_COMMAND_QUEUE_PRIORITY_NORMAL = 0,
  830. D3D12_COMMAND_QUEUE_PRIORITY_HIGH = 100,
  831. D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME = 10000
  832. } D3D12_COMMAND_QUEUE_PRIORITY;
  833. typedef struct D3D12_COMMAND_QUEUE_DESC
  834. {
  835. D3D12_COMMAND_LIST_TYPE Type;
  836. INT Priority;
  837. D3D12_COMMAND_QUEUE_FLAGS Flags;
  838. UINT NodeMask;
  839. } D3D12_COMMAND_QUEUE_DESC;
  840. typedef
  841. enum D3D12_PRIMITIVE_TOPOLOGY_TYPE
  842. {
  843. D3D12_PRIMITIVE_TOPOLOGY_TYPE_UNDEFINED = 0,
  844. D3D12_PRIMITIVE_TOPOLOGY_TYPE_POINT = 1,
  845. D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE = 2,
  846. D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE = 3,
  847. D3D12_PRIMITIVE_TOPOLOGY_TYPE_PATCH = 4
  848. } D3D12_PRIMITIVE_TOPOLOGY_TYPE;
  849. typedef
  850. enum D3D12_INPUT_CLASSIFICATION
  851. {
  852. D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA = 0,
  853. D3D12_INPUT_CLASSIFICATION_PER_INSTANCE_DATA = 1
  854. } D3D12_INPUT_CLASSIFICATION;
  855. typedef struct D3D12_INPUT_ELEMENT_DESC
  856. {
  857. LPCSTR SemanticName;
  858. UINT SemanticIndex;
  859. DXGI_FORMAT Format;
  860. UINT InputSlot;
  861. UINT AlignedByteOffset;
  862. D3D12_INPUT_CLASSIFICATION InputSlotClass;
  863. UINT InstanceDataStepRate;
  864. } D3D12_INPUT_ELEMENT_DESC;
  865. typedef
  866. enum D3D12_FILL_MODE
  867. {
  868. D3D12_FILL_MODE_WIREFRAME = 2,
  869. D3D12_FILL_MODE_SOLID = 3
  870. } D3D12_FILL_MODE;
  871. typedef D3D_PRIMITIVE_TOPOLOGY D3D12_PRIMITIVE_TOPOLOGY;
  872. typedef D3D_PRIMITIVE D3D12_PRIMITIVE;
  873. typedef
  874. enum D3D12_CULL_MODE
  875. {
  876. D3D12_CULL_MODE_NONE = 1,
  877. D3D12_CULL_MODE_FRONT = 2,
  878. D3D12_CULL_MODE_BACK = 3
  879. } D3D12_CULL_MODE;
  880. typedef struct D3D12_SO_DECLARATION_ENTRY
  881. {
  882. UINT Stream;
  883. LPCSTR SemanticName;
  884. UINT SemanticIndex;
  885. BYTE StartComponent;
  886. BYTE ComponentCount;
  887. BYTE OutputSlot;
  888. } D3D12_SO_DECLARATION_ENTRY;
  889. typedef struct D3D12_VIEWPORT
  890. {
  891. FLOAT TopLeftX;
  892. FLOAT TopLeftY;
  893. FLOAT Width;
  894. FLOAT Height;
  895. FLOAT MinDepth;
  896. FLOAT MaxDepth;
  897. } D3D12_VIEWPORT;
  898. typedef RECT D3D12_RECT;
  899. typedef struct D3D12_BOX
  900. {
  901. UINT left;
  902. UINT top;
  903. UINT front;
  904. UINT right;
  905. UINT bottom;
  906. UINT back;
  907. } D3D12_BOX;
  908. #ifdef __midl
  909. #ifndef LUID_DEFINED
  910. #define LUID_DEFINED 1
  911. typedef struct __LUID
  912. {
  913. DWORD LowPart;
  914. LONG HighPart;
  915. } LUID;
  916. typedef struct __LUID *PLUID;
  917. #endif
  918. #endif
  919. typedef
  920. enum D3D12_COMPARISON_FUNC
  921. {
  922. D3D12_COMPARISON_FUNC_NONE = 0,
  923. D3D12_COMPARISON_FUNC_NEVER = 1,
  924. D3D12_COMPARISON_FUNC_LESS = 2,
  925. D3D12_COMPARISON_FUNC_EQUAL = 3,
  926. D3D12_COMPARISON_FUNC_LESS_EQUAL = 4,
  927. D3D12_COMPARISON_FUNC_GREATER = 5,
  928. D3D12_COMPARISON_FUNC_NOT_EQUAL = 6,
  929. D3D12_COMPARISON_FUNC_GREATER_EQUAL = 7,
  930. D3D12_COMPARISON_FUNC_ALWAYS = 8
  931. } D3D12_COMPARISON_FUNC;
  932. typedef
  933. enum D3D12_DEPTH_WRITE_MASK
  934. {
  935. D3D12_DEPTH_WRITE_MASK_ZERO = 0,
  936. D3D12_DEPTH_WRITE_MASK_ALL = 1
  937. } D3D12_DEPTH_WRITE_MASK;
  938. typedef
  939. enum D3D12_STENCIL_OP
  940. {
  941. D3D12_STENCIL_OP_KEEP = 1,
  942. D3D12_STENCIL_OP_ZERO = 2,
  943. D3D12_STENCIL_OP_REPLACE = 3,
  944. D3D12_STENCIL_OP_INCR_SAT = 4,
  945. D3D12_STENCIL_OP_DECR_SAT = 5,
  946. D3D12_STENCIL_OP_INVERT = 6,
  947. D3D12_STENCIL_OP_INCR = 7,
  948. D3D12_STENCIL_OP_DECR = 8
  949. } D3D12_STENCIL_OP;
  950. typedef struct D3D12_DEPTH_STENCILOP_DESC
  951. {
  952. D3D12_STENCIL_OP StencilFailOp;
  953. D3D12_STENCIL_OP StencilDepthFailOp;
  954. D3D12_STENCIL_OP StencilPassOp;
  955. D3D12_COMPARISON_FUNC StencilFunc;
  956. } D3D12_DEPTH_STENCILOP_DESC;
  957. typedef struct D3D12_DEPTH_STENCIL_DESC
  958. {
  959. BOOL DepthEnable;
  960. D3D12_DEPTH_WRITE_MASK DepthWriteMask;
  961. D3D12_COMPARISON_FUNC DepthFunc;
  962. BOOL StencilEnable;
  963. UINT8 StencilReadMask;
  964. UINT8 StencilWriteMask;
  965. D3D12_DEPTH_STENCILOP_DESC FrontFace;
  966. D3D12_DEPTH_STENCILOP_DESC BackFace;
  967. } D3D12_DEPTH_STENCIL_DESC;
  968. typedef struct D3D12_DEPTH_STENCIL_DESC1
  969. {
  970. BOOL DepthEnable;
  971. D3D12_DEPTH_WRITE_MASK DepthWriteMask;
  972. D3D12_COMPARISON_FUNC DepthFunc;
  973. BOOL StencilEnable;
  974. UINT8 StencilReadMask;
  975. UINT8 StencilWriteMask;
  976. D3D12_DEPTH_STENCILOP_DESC FrontFace;
  977. D3D12_DEPTH_STENCILOP_DESC BackFace;
  978. BOOL DepthBoundsTestEnable;
  979. } D3D12_DEPTH_STENCIL_DESC1;
  980. typedef struct D3D12_DEPTH_STENCILOP_DESC1
  981. {
  982. D3D12_STENCIL_OP StencilFailOp;
  983. D3D12_STENCIL_OP StencilDepthFailOp;
  984. D3D12_STENCIL_OP StencilPassOp;
  985. D3D12_COMPARISON_FUNC StencilFunc;
  986. UINT8 StencilReadMask;
  987. UINT8 StencilWriteMask;
  988. } D3D12_DEPTH_STENCILOP_DESC1;
  989. typedef struct D3D12_DEPTH_STENCIL_DESC2
  990. {
  991. BOOL DepthEnable;
  992. D3D12_DEPTH_WRITE_MASK DepthWriteMask;
  993. D3D12_COMPARISON_FUNC DepthFunc;
  994. BOOL StencilEnable;
  995. D3D12_DEPTH_STENCILOP_DESC1 FrontFace;
  996. D3D12_DEPTH_STENCILOP_DESC1 BackFace;
  997. BOOL DepthBoundsTestEnable;
  998. } D3D12_DEPTH_STENCIL_DESC2;
  999. typedef
  1000. enum D3D12_BLEND
  1001. {
  1002. D3D12_BLEND_ZERO = 1,
  1003. D3D12_BLEND_ONE = 2,
  1004. D3D12_BLEND_SRC_COLOR = 3,
  1005. D3D12_BLEND_INV_SRC_COLOR = 4,
  1006. D3D12_BLEND_SRC_ALPHA = 5,
  1007. D3D12_BLEND_INV_SRC_ALPHA = 6,
  1008. D3D12_BLEND_DEST_ALPHA = 7,
  1009. D3D12_BLEND_INV_DEST_ALPHA = 8,
  1010. D3D12_BLEND_DEST_COLOR = 9,
  1011. D3D12_BLEND_INV_DEST_COLOR = 10,
  1012. D3D12_BLEND_SRC_ALPHA_SAT = 11,
  1013. D3D12_BLEND_BLEND_FACTOR = 14,
  1014. D3D12_BLEND_INV_BLEND_FACTOR = 15,
  1015. D3D12_BLEND_SRC1_COLOR = 16,
  1016. D3D12_BLEND_INV_SRC1_COLOR = 17,
  1017. D3D12_BLEND_SRC1_ALPHA = 18,
  1018. D3D12_BLEND_INV_SRC1_ALPHA = 19,
  1019. D3D12_BLEND_ALPHA_FACTOR = 20,
  1020. D3D12_BLEND_INV_ALPHA_FACTOR = 21
  1021. } D3D12_BLEND;
  1022. typedef
  1023. enum D3D12_BLEND_OP
  1024. {
  1025. D3D12_BLEND_OP_ADD = 1,
  1026. D3D12_BLEND_OP_SUBTRACT = 2,
  1027. D3D12_BLEND_OP_REV_SUBTRACT = 3,
  1028. D3D12_BLEND_OP_MIN = 4,
  1029. D3D12_BLEND_OP_MAX = 5
  1030. } D3D12_BLEND_OP;
  1031. typedef
  1032. enum D3D12_COLOR_WRITE_ENABLE
  1033. {
  1034. D3D12_COLOR_WRITE_ENABLE_RED = 1,
  1035. D3D12_COLOR_WRITE_ENABLE_GREEN = 2,
  1036. D3D12_COLOR_WRITE_ENABLE_BLUE = 4,
  1037. D3D12_COLOR_WRITE_ENABLE_ALPHA = 8,
  1038. 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 )
  1039. } D3D12_COLOR_WRITE_ENABLE;
  1040. typedef
  1041. enum D3D12_LOGIC_OP
  1042. {
  1043. D3D12_LOGIC_OP_CLEAR = 0,
  1044. D3D12_LOGIC_OP_SET = ( D3D12_LOGIC_OP_CLEAR + 1 ) ,
  1045. D3D12_LOGIC_OP_COPY = ( D3D12_LOGIC_OP_SET + 1 ) ,
  1046. D3D12_LOGIC_OP_COPY_INVERTED = ( D3D12_LOGIC_OP_COPY + 1 ) ,
  1047. D3D12_LOGIC_OP_NOOP = ( D3D12_LOGIC_OP_COPY_INVERTED + 1 ) ,
  1048. D3D12_LOGIC_OP_INVERT = ( D3D12_LOGIC_OP_NOOP + 1 ) ,
  1049. D3D12_LOGIC_OP_AND = ( D3D12_LOGIC_OP_INVERT + 1 ) ,
  1050. D3D12_LOGIC_OP_NAND = ( D3D12_LOGIC_OP_AND + 1 ) ,
  1051. D3D12_LOGIC_OP_OR = ( D3D12_LOGIC_OP_NAND + 1 ) ,
  1052. D3D12_LOGIC_OP_NOR = ( D3D12_LOGIC_OP_OR + 1 ) ,
  1053. D3D12_LOGIC_OP_XOR = ( D3D12_LOGIC_OP_NOR + 1 ) ,
  1054. D3D12_LOGIC_OP_EQUIV = ( D3D12_LOGIC_OP_XOR + 1 ) ,
  1055. D3D12_LOGIC_OP_AND_REVERSE = ( D3D12_LOGIC_OP_EQUIV + 1 ) ,
  1056. D3D12_LOGIC_OP_AND_INVERTED = ( D3D12_LOGIC_OP_AND_REVERSE + 1 ) ,
  1057. D3D12_LOGIC_OP_OR_REVERSE = ( D3D12_LOGIC_OP_AND_INVERTED + 1 ) ,
  1058. D3D12_LOGIC_OP_OR_INVERTED = ( D3D12_LOGIC_OP_OR_REVERSE + 1 )
  1059. } D3D12_LOGIC_OP;
  1060. typedef struct D3D12_RENDER_TARGET_BLEND_DESC
  1061. {
  1062. BOOL BlendEnable;
  1063. BOOL LogicOpEnable;
  1064. D3D12_BLEND SrcBlend;
  1065. D3D12_BLEND DestBlend;
  1066. D3D12_BLEND_OP BlendOp;
  1067. D3D12_BLEND SrcBlendAlpha;
  1068. D3D12_BLEND DestBlendAlpha;
  1069. D3D12_BLEND_OP BlendOpAlpha;
  1070. D3D12_LOGIC_OP LogicOp;
  1071. UINT8 RenderTargetWriteMask;
  1072. } D3D12_RENDER_TARGET_BLEND_DESC;
  1073. typedef struct D3D12_BLEND_DESC
  1074. {
  1075. BOOL AlphaToCoverageEnable;
  1076. BOOL IndependentBlendEnable;
  1077. D3D12_RENDER_TARGET_BLEND_DESC RenderTarget[ 8 ];
  1078. } D3D12_BLEND_DESC;
  1079. /* Note, the array size for RenderTarget[] above is D3D12_SIMULTANEOUS_RENDERTARGET_COUNT.
  1080. IDL processing/generation of this header replaces the define; this comment is merely explaining what happened. */
  1081. typedef
  1082. enum D3D12_CONSERVATIVE_RASTERIZATION_MODE
  1083. {
  1084. D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF = 0,
  1085. D3D12_CONSERVATIVE_RASTERIZATION_MODE_ON = 1
  1086. } D3D12_CONSERVATIVE_RASTERIZATION_MODE;
  1087. typedef struct D3D12_RASTERIZER_DESC
  1088. {
  1089. D3D12_FILL_MODE FillMode;
  1090. D3D12_CULL_MODE CullMode;
  1091. BOOL FrontCounterClockwise;
  1092. INT DepthBias;
  1093. FLOAT DepthBiasClamp;
  1094. FLOAT SlopeScaledDepthBias;
  1095. BOOL DepthClipEnable;
  1096. BOOL MultisampleEnable;
  1097. BOOL AntialiasedLineEnable;
  1098. UINT ForcedSampleCount;
  1099. D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster;
  1100. } D3D12_RASTERIZER_DESC;
  1101. typedef struct D3D12_RASTERIZER_DESC1
  1102. {
  1103. D3D12_FILL_MODE FillMode;
  1104. D3D12_CULL_MODE CullMode;
  1105. BOOL FrontCounterClockwise;
  1106. FLOAT DepthBias;
  1107. FLOAT DepthBiasClamp;
  1108. FLOAT SlopeScaledDepthBias;
  1109. BOOL DepthClipEnable;
  1110. BOOL MultisampleEnable;
  1111. BOOL AntialiasedLineEnable;
  1112. UINT ForcedSampleCount;
  1113. D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster;
  1114. } D3D12_RASTERIZER_DESC1;
  1115. typedef
  1116. enum D3D12_LINE_RASTERIZATION_MODE
  1117. {
  1118. D3D12_LINE_RASTERIZATION_MODE_ALIASED = 0,
  1119. D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED = ( D3D12_LINE_RASTERIZATION_MODE_ALIASED + 1 ) ,
  1120. D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE = ( D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED + 1 ) ,
  1121. D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_NARROW = ( D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE + 1 )
  1122. } D3D12_LINE_RASTERIZATION_MODE;
  1123. typedef struct D3D12_RASTERIZER_DESC2
  1124. {
  1125. D3D12_FILL_MODE FillMode;
  1126. D3D12_CULL_MODE CullMode;
  1127. BOOL FrontCounterClockwise;
  1128. FLOAT DepthBias;
  1129. FLOAT DepthBiasClamp;
  1130. FLOAT SlopeScaledDepthBias;
  1131. BOOL DepthClipEnable;
  1132. D3D12_LINE_RASTERIZATION_MODE LineRasterizationMode;
  1133. UINT ForcedSampleCount;
  1134. D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster;
  1135. } D3D12_RASTERIZER_DESC2;
  1136. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0000_v0_0_c_ifspec;
  1137. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0000_v0_0_s_ifspec;
  1138. #ifndef __ID3D12Object_INTERFACE_DEFINED__
  1139. #define __ID3D12Object_INTERFACE_DEFINED__
  1140. /* interface ID3D12Object */
  1141. /* [unique][local][object][uuid] */
  1142. EXTERN_C const IID IID_ID3D12Object;
  1143. #if defined(__cplusplus) && !defined(CINTERFACE)
  1144. MIDL_INTERFACE("c4fec28f-7966-4e95-9f94-f431cb56c3b8")
  1145. ID3D12Object : public IUnknown
  1146. {
  1147. public:
  1148. virtual HRESULT STDMETHODCALLTYPE GetPrivateData(
  1149. _In_ REFGUID guid,
  1150. _Inout_ UINT *pDataSize,
  1151. _Out_writes_bytes_opt_( *pDataSize ) void *pData) = 0;
  1152. virtual HRESULT STDMETHODCALLTYPE SetPrivateData(
  1153. _In_ REFGUID guid,
  1154. _In_ UINT DataSize,
  1155. _In_reads_bytes_opt_( DataSize ) const void *pData) = 0;
  1156. virtual HRESULT STDMETHODCALLTYPE SetPrivateDataInterface(
  1157. _In_ REFGUID guid,
  1158. _In_opt_ const IUnknown *pData) = 0;
  1159. virtual HRESULT STDMETHODCALLTYPE SetName(
  1160. _In_z_ LPCWSTR Name) = 0;
  1161. };
  1162. #else /* C style interface */
  1163. typedef struct ID3D12ObjectVtbl
  1164. {
  1165. BEGIN_INTERFACE
  1166. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  1167. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1168. ID3D12Object * This,
  1169. REFIID riid,
  1170. _COM_Outptr_ void **ppvObject);
  1171. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  1172. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1173. ID3D12Object * This);
  1174. DECLSPEC_XFGVIRT(IUnknown, Release)
  1175. ULONG ( STDMETHODCALLTYPE *Release )(
  1176. ID3D12Object * This);
  1177. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  1178. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1179. ID3D12Object * This,
  1180. _In_ REFGUID guid,
  1181. _Inout_ UINT *pDataSize,
  1182. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1183. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  1184. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1185. ID3D12Object * This,
  1186. _In_ REFGUID guid,
  1187. _In_ UINT DataSize,
  1188. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1189. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  1190. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1191. ID3D12Object * This,
  1192. _In_ REFGUID guid,
  1193. _In_opt_ const IUnknown *pData);
  1194. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  1195. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1196. ID3D12Object * This,
  1197. _In_z_ LPCWSTR Name);
  1198. END_INTERFACE
  1199. } ID3D12ObjectVtbl;
  1200. interface ID3D12Object
  1201. {
  1202. CONST_VTBL struct ID3D12ObjectVtbl *lpVtbl;
  1203. };
  1204. #ifdef COBJMACROS
  1205. #define ID3D12Object_QueryInterface(This,riid,ppvObject) \
  1206. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1207. #define ID3D12Object_AddRef(This) \
  1208. ( (This)->lpVtbl -> AddRef(This) )
  1209. #define ID3D12Object_Release(This) \
  1210. ( (This)->lpVtbl -> Release(This) )
  1211. #define ID3D12Object_GetPrivateData(This,guid,pDataSize,pData) \
  1212. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1213. #define ID3D12Object_SetPrivateData(This,guid,DataSize,pData) \
  1214. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1215. #define ID3D12Object_SetPrivateDataInterface(This,guid,pData) \
  1216. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1217. #define ID3D12Object_SetName(This,Name) \
  1218. ( (This)->lpVtbl -> SetName(This,Name) )
  1219. #endif /* COBJMACROS */
  1220. #endif /* C style interface */
  1221. #endif /* __ID3D12Object_INTERFACE_DEFINED__ */
  1222. #ifndef __ID3D12DeviceChild_INTERFACE_DEFINED__
  1223. #define __ID3D12DeviceChild_INTERFACE_DEFINED__
  1224. /* interface ID3D12DeviceChild */
  1225. /* [unique][local][object][uuid] */
  1226. EXTERN_C const IID IID_ID3D12DeviceChild;
  1227. #if defined(__cplusplus) && !defined(CINTERFACE)
  1228. MIDL_INTERFACE("905db94b-a00c-4140-9df5-2b64ca9ea357")
  1229. ID3D12DeviceChild : public ID3D12Object
  1230. {
  1231. public:
  1232. virtual HRESULT STDMETHODCALLTYPE GetDevice(
  1233. REFIID riid,
  1234. _COM_Outptr_opt_ void **ppvDevice) = 0;
  1235. };
  1236. #else /* C style interface */
  1237. typedef struct ID3D12DeviceChildVtbl
  1238. {
  1239. BEGIN_INTERFACE
  1240. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  1241. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1242. ID3D12DeviceChild * This,
  1243. REFIID riid,
  1244. _COM_Outptr_ void **ppvObject);
  1245. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  1246. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1247. ID3D12DeviceChild * This);
  1248. DECLSPEC_XFGVIRT(IUnknown, Release)
  1249. ULONG ( STDMETHODCALLTYPE *Release )(
  1250. ID3D12DeviceChild * This);
  1251. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  1252. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1253. ID3D12DeviceChild * This,
  1254. _In_ REFGUID guid,
  1255. _Inout_ UINT *pDataSize,
  1256. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1257. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  1258. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1259. ID3D12DeviceChild * This,
  1260. _In_ REFGUID guid,
  1261. _In_ UINT DataSize,
  1262. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1263. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  1264. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1265. ID3D12DeviceChild * This,
  1266. _In_ REFGUID guid,
  1267. _In_opt_ const IUnknown *pData);
  1268. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  1269. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1270. ID3D12DeviceChild * This,
  1271. _In_z_ LPCWSTR Name);
  1272. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  1273. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  1274. ID3D12DeviceChild * This,
  1275. REFIID riid,
  1276. _COM_Outptr_opt_ void **ppvDevice);
  1277. END_INTERFACE
  1278. } ID3D12DeviceChildVtbl;
  1279. interface ID3D12DeviceChild
  1280. {
  1281. CONST_VTBL struct ID3D12DeviceChildVtbl *lpVtbl;
  1282. };
  1283. #ifdef COBJMACROS
  1284. #define ID3D12DeviceChild_QueryInterface(This,riid,ppvObject) \
  1285. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1286. #define ID3D12DeviceChild_AddRef(This) \
  1287. ( (This)->lpVtbl -> AddRef(This) )
  1288. #define ID3D12DeviceChild_Release(This) \
  1289. ( (This)->lpVtbl -> Release(This) )
  1290. #define ID3D12DeviceChild_GetPrivateData(This,guid,pDataSize,pData) \
  1291. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1292. #define ID3D12DeviceChild_SetPrivateData(This,guid,DataSize,pData) \
  1293. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1294. #define ID3D12DeviceChild_SetPrivateDataInterface(This,guid,pData) \
  1295. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1296. #define ID3D12DeviceChild_SetName(This,Name) \
  1297. ( (This)->lpVtbl -> SetName(This,Name) )
  1298. #define ID3D12DeviceChild_GetDevice(This,riid,ppvDevice) \
  1299. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  1300. #endif /* COBJMACROS */
  1301. #endif /* C style interface */
  1302. #endif /* __ID3D12DeviceChild_INTERFACE_DEFINED__ */
  1303. #ifndef __ID3D12RootSignature_INTERFACE_DEFINED__
  1304. #define __ID3D12RootSignature_INTERFACE_DEFINED__
  1305. /* interface ID3D12RootSignature */
  1306. /* [unique][local][object][uuid] */
  1307. EXTERN_C const IID IID_ID3D12RootSignature;
  1308. #if defined(__cplusplus) && !defined(CINTERFACE)
  1309. MIDL_INTERFACE("c54a6b66-72df-4ee8-8be5-a946a1429214")
  1310. ID3D12RootSignature : public ID3D12DeviceChild
  1311. {
  1312. public:
  1313. };
  1314. #else /* C style interface */
  1315. typedef struct ID3D12RootSignatureVtbl
  1316. {
  1317. BEGIN_INTERFACE
  1318. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  1319. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1320. ID3D12RootSignature * This,
  1321. REFIID riid,
  1322. _COM_Outptr_ void **ppvObject);
  1323. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  1324. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1325. ID3D12RootSignature * This);
  1326. DECLSPEC_XFGVIRT(IUnknown, Release)
  1327. ULONG ( STDMETHODCALLTYPE *Release )(
  1328. ID3D12RootSignature * This);
  1329. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  1330. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1331. ID3D12RootSignature * This,
  1332. _In_ REFGUID guid,
  1333. _Inout_ UINT *pDataSize,
  1334. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1335. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  1336. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1337. ID3D12RootSignature * This,
  1338. _In_ REFGUID guid,
  1339. _In_ UINT DataSize,
  1340. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1341. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  1342. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1343. ID3D12RootSignature * This,
  1344. _In_ REFGUID guid,
  1345. _In_opt_ const IUnknown *pData);
  1346. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  1347. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1348. ID3D12RootSignature * This,
  1349. _In_z_ LPCWSTR Name);
  1350. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  1351. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  1352. ID3D12RootSignature * This,
  1353. REFIID riid,
  1354. _COM_Outptr_opt_ void **ppvDevice);
  1355. END_INTERFACE
  1356. } ID3D12RootSignatureVtbl;
  1357. interface ID3D12RootSignature
  1358. {
  1359. CONST_VTBL struct ID3D12RootSignatureVtbl *lpVtbl;
  1360. };
  1361. #ifdef COBJMACROS
  1362. #define ID3D12RootSignature_QueryInterface(This,riid,ppvObject) \
  1363. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1364. #define ID3D12RootSignature_AddRef(This) \
  1365. ( (This)->lpVtbl -> AddRef(This) )
  1366. #define ID3D12RootSignature_Release(This) \
  1367. ( (This)->lpVtbl -> Release(This) )
  1368. #define ID3D12RootSignature_GetPrivateData(This,guid,pDataSize,pData) \
  1369. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1370. #define ID3D12RootSignature_SetPrivateData(This,guid,DataSize,pData) \
  1371. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1372. #define ID3D12RootSignature_SetPrivateDataInterface(This,guid,pData) \
  1373. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1374. #define ID3D12RootSignature_SetName(This,Name) \
  1375. ( (This)->lpVtbl -> SetName(This,Name) )
  1376. #define ID3D12RootSignature_GetDevice(This,riid,ppvDevice) \
  1377. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  1378. #endif /* COBJMACROS */
  1379. #endif /* C style interface */
  1380. #endif /* __ID3D12RootSignature_INTERFACE_DEFINED__ */
  1381. /* interface __MIDL_itf_d3d12_0000_0001 */
  1382. /* [local] */
  1383. typedef struct D3D12_SHADER_BYTECODE
  1384. {
  1385. _Field_size_bytes_full_(BytecodeLength) const void *pShaderBytecode;
  1386. SIZE_T BytecodeLength;
  1387. } D3D12_SHADER_BYTECODE;
  1388. typedef struct D3D12_STREAM_OUTPUT_DESC
  1389. {
  1390. _Field_size_full_(NumEntries) const D3D12_SO_DECLARATION_ENTRY *pSODeclaration;
  1391. UINT NumEntries;
  1392. _Field_size_full_(NumStrides) const UINT *pBufferStrides;
  1393. UINT NumStrides;
  1394. UINT RasterizedStream;
  1395. } D3D12_STREAM_OUTPUT_DESC;
  1396. typedef struct D3D12_INPUT_LAYOUT_DESC
  1397. {
  1398. _Field_size_full_(NumElements) const D3D12_INPUT_ELEMENT_DESC *pInputElementDescs;
  1399. UINT NumElements;
  1400. } D3D12_INPUT_LAYOUT_DESC;
  1401. typedef
  1402. enum D3D12_INDEX_BUFFER_STRIP_CUT_VALUE
  1403. {
  1404. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_DISABLED = 0,
  1405. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFF = 1,
  1406. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFFFFFF = 2
  1407. } D3D12_INDEX_BUFFER_STRIP_CUT_VALUE;
  1408. typedef
  1409. enum D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS
  1410. {
  1411. D3D12_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff,
  1412. D3D12_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe
  1413. } D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS;
  1414. typedef struct D3D12_CACHED_PIPELINE_STATE
  1415. {
  1416. _Field_size_bytes_full_(CachedBlobSizeInBytes) const void *pCachedBlob;
  1417. SIZE_T CachedBlobSizeInBytes;
  1418. } D3D12_CACHED_PIPELINE_STATE;
  1419. typedef
  1420. enum D3D12_PIPELINE_STATE_FLAGS
  1421. {
  1422. D3D12_PIPELINE_STATE_FLAG_NONE = 0,
  1423. D3D12_PIPELINE_STATE_FLAG_TOOL_DEBUG = 0x1,
  1424. D3D12_PIPELINE_STATE_FLAG_DYNAMIC_DEPTH_BIAS = 0x4,
  1425. D3D12_PIPELINE_STATE_FLAG_DYNAMIC_INDEX_BUFFER_STRIP_CUT = 0x8
  1426. } D3D12_PIPELINE_STATE_FLAGS;
  1427. DEFINE_ENUM_FLAG_OPERATORS( D3D12_PIPELINE_STATE_FLAGS )
  1428. typedef struct D3D12_GRAPHICS_PIPELINE_STATE_DESC
  1429. {
  1430. ID3D12RootSignature *pRootSignature;
  1431. D3D12_SHADER_BYTECODE VS;
  1432. D3D12_SHADER_BYTECODE PS;
  1433. D3D12_SHADER_BYTECODE DS;
  1434. D3D12_SHADER_BYTECODE HS;
  1435. D3D12_SHADER_BYTECODE GS;
  1436. D3D12_STREAM_OUTPUT_DESC StreamOutput;
  1437. D3D12_BLEND_DESC BlendState;
  1438. UINT SampleMask;
  1439. D3D12_RASTERIZER_DESC RasterizerState;
  1440. D3D12_DEPTH_STENCIL_DESC DepthStencilState;
  1441. D3D12_INPUT_LAYOUT_DESC InputLayout;
  1442. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue;
  1443. D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType;
  1444. UINT NumRenderTargets;
  1445. DXGI_FORMAT RTVFormats[ 8 ];
  1446. DXGI_FORMAT DSVFormat;
  1447. DXGI_SAMPLE_DESC SampleDesc;
  1448. UINT NodeMask;
  1449. D3D12_CACHED_PIPELINE_STATE CachedPSO;
  1450. D3D12_PIPELINE_STATE_FLAGS Flags;
  1451. } D3D12_GRAPHICS_PIPELINE_STATE_DESC;
  1452. typedef struct D3D12_COMPUTE_PIPELINE_STATE_DESC
  1453. {
  1454. ID3D12RootSignature *pRootSignature;
  1455. D3D12_SHADER_BYTECODE CS;
  1456. UINT NodeMask;
  1457. D3D12_CACHED_PIPELINE_STATE CachedPSO;
  1458. D3D12_PIPELINE_STATE_FLAGS Flags;
  1459. } D3D12_COMPUTE_PIPELINE_STATE_DESC;
  1460. struct D3D12_RT_FORMAT_ARRAY
  1461. {
  1462. DXGI_FORMAT RTFormats[ 8 ];
  1463. UINT NumRenderTargets;
  1464. } ;
  1465. typedef struct D3D12_PIPELINE_STATE_STREAM_DESC
  1466. {
  1467. _In_ SIZE_T SizeInBytes;
  1468. _In_reads_(_Inexpressible_("Dependent on size of subobjects")) void *pPipelineStateSubobjectStream;
  1469. } D3D12_PIPELINE_STATE_STREAM_DESC;
  1470. typedef
  1471. enum D3D12_PIPELINE_STATE_SUBOBJECT_TYPE
  1472. {
  1473. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE = 0,
  1474. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE + 1 ) ,
  1475. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS + 1 ) ,
  1476. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS + 1 ) ,
  1477. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS + 1 ) ,
  1478. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS + 1 ) ,
  1479. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS + 1 ) ,
  1480. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS + 1 ) ,
  1481. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT + 1 ) ,
  1482. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND + 1 ) ,
  1483. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK + 1 ) ,
  1484. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER + 1 ) ,
  1485. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL + 1 ) ,
  1486. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT + 1 ) ,
  1487. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE + 1 ) ,
  1488. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY + 1 ) ,
  1489. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS + 1 ) ,
  1490. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT + 1 ) ,
  1491. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC + 1 ) ,
  1492. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK + 1 ) ,
  1493. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO + 1 ) ,
  1494. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS + 1 ) ,
  1495. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 + 1 ) ,
  1496. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS = 24,
  1497. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS = 25,
  1498. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 = 26,
  1499. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER1 = 27,
  1500. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2 = 28,
  1501. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MAX_VALID = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2 + 1 )
  1502. } D3D12_PIPELINE_STATE_SUBOBJECT_TYPE;
  1503. typedef
  1504. enum D3D12_FEATURE
  1505. {
  1506. D3D12_FEATURE_D3D12_OPTIONS = 0,
  1507. D3D12_FEATURE_ARCHITECTURE = 1,
  1508. D3D12_FEATURE_FEATURE_LEVELS = 2,
  1509. D3D12_FEATURE_FORMAT_SUPPORT = 3,
  1510. D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS = 4,
  1511. D3D12_FEATURE_FORMAT_INFO = 5,
  1512. D3D12_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT = 6,
  1513. D3D12_FEATURE_SHADER_MODEL = 7,
  1514. D3D12_FEATURE_D3D12_OPTIONS1 = 8,
  1515. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT = 10,
  1516. D3D12_FEATURE_ROOT_SIGNATURE = 12,
  1517. D3D12_FEATURE_ARCHITECTURE1 = 16,
  1518. D3D12_FEATURE_D3D12_OPTIONS2 = 18,
  1519. D3D12_FEATURE_SHADER_CACHE = 19,
  1520. D3D12_FEATURE_COMMAND_QUEUE_PRIORITY = 20,
  1521. D3D12_FEATURE_D3D12_OPTIONS3 = 21,
  1522. D3D12_FEATURE_EXISTING_HEAPS = 22,
  1523. D3D12_FEATURE_D3D12_OPTIONS4 = 23,
  1524. D3D12_FEATURE_SERIALIZATION = 24,
  1525. D3D12_FEATURE_CROSS_NODE = 25,
  1526. D3D12_FEATURE_D3D12_OPTIONS5 = 27,
  1527. D3D12_FEATURE_DISPLAYABLE = 28,
  1528. D3D12_FEATURE_D3D12_OPTIONS6 = 30,
  1529. D3D12_FEATURE_QUERY_META_COMMAND = 31,
  1530. D3D12_FEATURE_D3D12_OPTIONS7 = 32,
  1531. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPE_COUNT = 33,
  1532. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPES = 34,
  1533. D3D12_FEATURE_D3D12_OPTIONS8 = 36,
  1534. D3D12_FEATURE_D3D12_OPTIONS9 = 37,
  1535. D3D12_FEATURE_D3D12_OPTIONS10 = 39,
  1536. D3D12_FEATURE_D3D12_OPTIONS11 = 40,
  1537. D3D12_FEATURE_D3D12_OPTIONS12 = 41,
  1538. D3D12_FEATURE_D3D12_OPTIONS13 = 42,
  1539. D3D12_FEATURE_D3D12_OPTIONS14 = 43,
  1540. D3D12_FEATURE_D3D12_OPTIONS15 = 44,
  1541. D3D12_FEATURE_D3D12_OPTIONS16 = 45,
  1542. D3D12_FEATURE_D3D12_OPTIONS17 = 46,
  1543. D3D12_FEATURE_D3D12_OPTIONS18 = 47,
  1544. D3D12_FEATURE_D3D12_OPTIONS19 = 48,
  1545. D3D12_FEATURE_D3D12_OPTIONS20 = 49,
  1546. D3D12_FEATURE_PREDICATION = 50,
  1547. D3D12_FEATURE_PLACED_RESOURCE_SUPPORT_INFO = 51,
  1548. D3D12_FEATURE_HARDWARE_COPY = 52,
  1549. D3D12_FEATURE_D3D12_OPTIONS21 = 53,
  1550. D3D12_FEATURE_APPLICATION_SPECIFIC_DRIVER_STATE = 56,
  1551. D3D12_FEATURE_BYTECODE_BYPASS_HASH_SUPPORTED = 57
  1552. } D3D12_FEATURE;
  1553. typedef
  1554. enum D3D12_SHADER_MIN_PRECISION_SUPPORT
  1555. {
  1556. D3D12_SHADER_MIN_PRECISION_SUPPORT_NONE = 0,
  1557. D3D12_SHADER_MIN_PRECISION_SUPPORT_10_BIT = 0x1,
  1558. D3D12_SHADER_MIN_PRECISION_SUPPORT_16_BIT = 0x2
  1559. } D3D12_SHADER_MIN_PRECISION_SUPPORT;
  1560. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_MIN_PRECISION_SUPPORT )
  1561. typedef
  1562. enum D3D12_TILED_RESOURCES_TIER
  1563. {
  1564. D3D12_TILED_RESOURCES_TIER_NOT_SUPPORTED = 0,
  1565. D3D12_TILED_RESOURCES_TIER_1 = 1,
  1566. D3D12_TILED_RESOURCES_TIER_2 = 2,
  1567. D3D12_TILED_RESOURCES_TIER_3 = 3,
  1568. D3D12_TILED_RESOURCES_TIER_4 = 4
  1569. } D3D12_TILED_RESOURCES_TIER;
  1570. typedef
  1571. enum D3D12_RESOURCE_BINDING_TIER
  1572. {
  1573. D3D12_RESOURCE_BINDING_TIER_1 = 1,
  1574. D3D12_RESOURCE_BINDING_TIER_2 = 2,
  1575. D3D12_RESOURCE_BINDING_TIER_3 = 3
  1576. } D3D12_RESOURCE_BINDING_TIER;
  1577. typedef
  1578. enum D3D12_CONSERVATIVE_RASTERIZATION_TIER
  1579. {
  1580. D3D12_CONSERVATIVE_RASTERIZATION_TIER_NOT_SUPPORTED = 0,
  1581. D3D12_CONSERVATIVE_RASTERIZATION_TIER_1 = 1,
  1582. D3D12_CONSERVATIVE_RASTERIZATION_TIER_2 = 2,
  1583. D3D12_CONSERVATIVE_RASTERIZATION_TIER_3 = 3
  1584. } D3D12_CONSERVATIVE_RASTERIZATION_TIER;
  1585. typedef
  1586. enum D3D12_FORMAT_SUPPORT1
  1587. {
  1588. D3D12_FORMAT_SUPPORT1_NONE = 0,
  1589. D3D12_FORMAT_SUPPORT1_BUFFER = 0x1,
  1590. D3D12_FORMAT_SUPPORT1_IA_VERTEX_BUFFER = 0x2,
  1591. D3D12_FORMAT_SUPPORT1_IA_INDEX_BUFFER = 0x4,
  1592. D3D12_FORMAT_SUPPORT1_SO_BUFFER = 0x8,
  1593. D3D12_FORMAT_SUPPORT1_TEXTURE1D = 0x10,
  1594. D3D12_FORMAT_SUPPORT1_TEXTURE2D = 0x20,
  1595. D3D12_FORMAT_SUPPORT1_TEXTURE3D = 0x40,
  1596. D3D12_FORMAT_SUPPORT1_TEXTURECUBE = 0x80,
  1597. D3D12_FORMAT_SUPPORT1_SHADER_LOAD = 0x100,
  1598. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE = 0x200,
  1599. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_COMPARISON = 0x400,
  1600. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_MONO_TEXT = 0x800,
  1601. D3D12_FORMAT_SUPPORT1_MIP = 0x1000,
  1602. D3D12_FORMAT_SUPPORT1_RENDER_TARGET = 0x4000,
  1603. D3D12_FORMAT_SUPPORT1_BLENDABLE = 0x8000,
  1604. D3D12_FORMAT_SUPPORT1_DEPTH_STENCIL = 0x10000,
  1605. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RESOLVE = 0x40000,
  1606. D3D12_FORMAT_SUPPORT1_DISPLAY = 0x80000,
  1607. D3D12_FORMAT_SUPPORT1_CAST_WITHIN_BIT_LAYOUT = 0x100000,
  1608. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RENDERTARGET = 0x200000,
  1609. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_LOAD = 0x400000,
  1610. D3D12_FORMAT_SUPPORT1_SHADER_GATHER = 0x800000,
  1611. D3D12_FORMAT_SUPPORT1_BACK_BUFFER_CAST = 0x1000000,
  1612. D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW = 0x2000000,
  1613. D3D12_FORMAT_SUPPORT1_SHADER_GATHER_COMPARISON = 0x4000000,
  1614. D3D12_FORMAT_SUPPORT1_DECODER_OUTPUT = 0x8000000,
  1615. D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
  1616. D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_INPUT = 0x20000000,
  1617. D3D12_FORMAT_SUPPORT1_VIDEO_ENCODER = 0x40000000
  1618. } D3D12_FORMAT_SUPPORT1;
  1619. DEFINE_ENUM_FLAG_OPERATORS( D3D12_FORMAT_SUPPORT1 )
  1620. typedef
  1621. enum D3D12_FORMAT_SUPPORT2
  1622. {
  1623. D3D12_FORMAT_SUPPORT2_NONE = 0,
  1624. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x1,
  1625. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x2,
  1626. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x4,
  1627. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x8,
  1628. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x10,
  1629. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x20,
  1630. D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x40,
  1631. D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x80,
  1632. D3D12_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x100,
  1633. D3D12_FORMAT_SUPPORT2_TILED = 0x200,
  1634. D3D12_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x4000,
  1635. D3D12_FORMAT_SUPPORT2_SAMPLER_FEEDBACK = 0x8000
  1636. } D3D12_FORMAT_SUPPORT2;
  1637. DEFINE_ENUM_FLAG_OPERATORS( D3D12_FORMAT_SUPPORT2 )
  1638. typedef
  1639. enum D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS
  1640. {
  1641. D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_NONE = 0,
  1642. D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_TILED_RESOURCE = 0x1
  1643. } D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS;
  1644. DEFINE_ENUM_FLAG_OPERATORS( D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS )
  1645. typedef
  1646. enum D3D12_CROSS_NODE_SHARING_TIER
  1647. {
  1648. D3D12_CROSS_NODE_SHARING_TIER_NOT_SUPPORTED = 0,
  1649. D3D12_CROSS_NODE_SHARING_TIER_1_EMULATED = 1,
  1650. D3D12_CROSS_NODE_SHARING_TIER_1 = 2,
  1651. D3D12_CROSS_NODE_SHARING_TIER_2 = 3,
  1652. D3D12_CROSS_NODE_SHARING_TIER_3 = 4
  1653. } D3D12_CROSS_NODE_SHARING_TIER;
  1654. typedef
  1655. enum D3D12_RESOURCE_HEAP_TIER
  1656. {
  1657. D3D12_RESOURCE_HEAP_TIER_1 = 1,
  1658. D3D12_RESOURCE_HEAP_TIER_2 = 2
  1659. } D3D12_RESOURCE_HEAP_TIER;
  1660. typedef
  1661. enum D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER
  1662. {
  1663. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_NOT_SUPPORTED = 0,
  1664. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_1 = 1,
  1665. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_2 = 2
  1666. } D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER;
  1667. typedef
  1668. enum D3D12_VIEW_INSTANCING_TIER
  1669. {
  1670. D3D12_VIEW_INSTANCING_TIER_NOT_SUPPORTED = 0,
  1671. D3D12_VIEW_INSTANCING_TIER_1 = 1,
  1672. D3D12_VIEW_INSTANCING_TIER_2 = 2,
  1673. D3D12_VIEW_INSTANCING_TIER_3 = 3
  1674. } D3D12_VIEW_INSTANCING_TIER;
  1675. typedef
  1676. enum D3D12_WORK_GRAPHS_TIER
  1677. {
  1678. D3D12_WORK_GRAPHS_TIER_NOT_SUPPORTED = 0,
  1679. D3D12_WORK_GRAPHS_TIER_1_0 = 10
  1680. } D3D12_WORK_GRAPHS_TIER;
  1681. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS
  1682. {
  1683. _Out_ BOOL DoublePrecisionFloatShaderOps;
  1684. _Out_ BOOL OutputMergerLogicOp;
  1685. _Out_ D3D12_SHADER_MIN_PRECISION_SUPPORT MinPrecisionSupport;
  1686. _Out_ D3D12_TILED_RESOURCES_TIER TiledResourcesTier;
  1687. _Out_ D3D12_RESOURCE_BINDING_TIER ResourceBindingTier;
  1688. _Out_ BOOL PSSpecifiedStencilRefSupported;
  1689. _Out_ BOOL TypedUAVLoadAdditionalFormats;
  1690. _Out_ BOOL ROVsSupported;
  1691. _Out_ D3D12_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
  1692. _Out_ UINT MaxGPUVirtualAddressBitsPerResource;
  1693. _Out_ BOOL StandardSwizzle64KBSupported;
  1694. _Out_ D3D12_CROSS_NODE_SHARING_TIER CrossNodeSharingTier;
  1695. _Out_ BOOL CrossAdapterRowMajorTextureSupported;
  1696. _Out_ BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation;
  1697. _Out_ D3D12_RESOURCE_HEAP_TIER ResourceHeapTier;
  1698. } D3D12_FEATURE_DATA_D3D12_OPTIONS;
  1699. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS1
  1700. {
  1701. _Out_ BOOL WaveOps;
  1702. _Out_ UINT WaveLaneCountMin;
  1703. _Out_ UINT WaveLaneCountMax;
  1704. _Out_ UINT TotalLaneCount;
  1705. _Out_ BOOL ExpandedComputeResourceStates;
  1706. _Out_ BOOL Int64ShaderOps;
  1707. } D3D12_FEATURE_DATA_D3D12_OPTIONS1;
  1708. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS2
  1709. {
  1710. _Out_ BOOL DepthBoundsTestSupported;
  1711. _Out_ D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER ProgrammableSamplePositionsTier;
  1712. } D3D12_FEATURE_DATA_D3D12_OPTIONS2;
  1713. typedef
  1714. enum D3D_ROOT_SIGNATURE_VERSION
  1715. {
  1716. D3D_ROOT_SIGNATURE_VERSION_1 = 0x1,
  1717. D3D_ROOT_SIGNATURE_VERSION_1_0 = 0x1,
  1718. D3D_ROOT_SIGNATURE_VERSION_1_1 = 0x2,
  1719. D3D_ROOT_SIGNATURE_VERSION_1_2 = 0x3
  1720. } D3D_ROOT_SIGNATURE_VERSION;
  1721. typedef struct D3D12_FEATURE_DATA_ROOT_SIGNATURE
  1722. {
  1723. _Inout_ D3D_ROOT_SIGNATURE_VERSION HighestVersion;
  1724. } D3D12_FEATURE_DATA_ROOT_SIGNATURE;
  1725. typedef struct D3D12_FEATURE_DATA_ARCHITECTURE
  1726. {
  1727. _In_ UINT NodeIndex;
  1728. _Out_ BOOL TileBasedRenderer;
  1729. _Out_ BOOL UMA;
  1730. _Out_ BOOL CacheCoherentUMA;
  1731. } D3D12_FEATURE_DATA_ARCHITECTURE;
  1732. typedef struct D3D12_FEATURE_DATA_ARCHITECTURE1
  1733. {
  1734. _In_ UINT NodeIndex;
  1735. _Out_ BOOL TileBasedRenderer;
  1736. _Out_ BOOL UMA;
  1737. _Out_ BOOL CacheCoherentUMA;
  1738. _Out_ BOOL IsolatedMMU;
  1739. } D3D12_FEATURE_DATA_ARCHITECTURE1;
  1740. typedef struct D3D12_FEATURE_DATA_FEATURE_LEVELS
  1741. {
  1742. _In_ UINT NumFeatureLevels;
  1743. _In_reads_(NumFeatureLevels) const D3D_FEATURE_LEVEL *pFeatureLevelsRequested;
  1744. _Out_ D3D_FEATURE_LEVEL MaxSupportedFeatureLevel;
  1745. } D3D12_FEATURE_DATA_FEATURE_LEVELS;
  1746. typedef
  1747. enum D3D_SHADER_MODEL
  1748. {
  1749. D3D_SHADER_MODEL_NONE = 0,
  1750. D3D_SHADER_MODEL_5_1 = 0x51,
  1751. D3D_SHADER_MODEL_6_0 = 0x60,
  1752. D3D_SHADER_MODEL_6_1 = 0x61,
  1753. D3D_SHADER_MODEL_6_2 = 0x62,
  1754. D3D_SHADER_MODEL_6_3 = 0x63,
  1755. D3D_SHADER_MODEL_6_4 = 0x64,
  1756. D3D_SHADER_MODEL_6_5 = 0x65,
  1757. D3D_SHADER_MODEL_6_6 = 0x66,
  1758. D3D_SHADER_MODEL_6_7 = 0x67,
  1759. D3D_SHADER_MODEL_6_8 = 0x68,
  1760. D3D_SHADER_MODEL_6_9 = 0x69,
  1761. D3D_HIGHEST_SHADER_MODEL = D3D_SHADER_MODEL_6_9
  1762. } D3D_SHADER_MODEL;
  1763. typedef struct D3D12_FEATURE_DATA_SHADER_MODEL
  1764. {
  1765. _Inout_ D3D_SHADER_MODEL HighestShaderModel;
  1766. } D3D12_FEATURE_DATA_SHADER_MODEL;
  1767. typedef struct D3D12_FEATURE_DATA_FORMAT_SUPPORT
  1768. {
  1769. _In_ DXGI_FORMAT Format;
  1770. _Out_ D3D12_FORMAT_SUPPORT1 Support1;
  1771. _Out_ D3D12_FORMAT_SUPPORT2 Support2;
  1772. } D3D12_FEATURE_DATA_FORMAT_SUPPORT;
  1773. typedef struct D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS
  1774. {
  1775. _In_ DXGI_FORMAT Format;
  1776. _In_ UINT SampleCount;
  1777. _In_ D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS Flags;
  1778. _Out_ UINT NumQualityLevels;
  1779. } D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS;
  1780. typedef struct D3D12_FEATURE_DATA_FORMAT_INFO
  1781. {
  1782. DXGI_FORMAT Format;
  1783. UINT8 PlaneCount;
  1784. } D3D12_FEATURE_DATA_FORMAT_INFO;
  1785. typedef struct D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
  1786. {
  1787. UINT MaxGPUVirtualAddressBitsPerResource;
  1788. UINT MaxGPUVirtualAddressBitsPerProcess;
  1789. } D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
  1790. typedef
  1791. enum D3D12_SHADER_CACHE_SUPPORT_FLAGS
  1792. {
  1793. D3D12_SHADER_CACHE_SUPPORT_NONE = 0,
  1794. D3D12_SHADER_CACHE_SUPPORT_SINGLE_PSO = 0x1,
  1795. D3D12_SHADER_CACHE_SUPPORT_LIBRARY = 0x2,
  1796. D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x4,
  1797. D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x8,
  1798. D3D12_SHADER_CACHE_SUPPORT_DRIVER_MANAGED_CACHE = 0x10,
  1799. D3D12_SHADER_CACHE_SUPPORT_SHADER_CONTROL_CLEAR = 0x20,
  1800. D3D12_SHADER_CACHE_SUPPORT_SHADER_SESSION_DELETE = 0x40
  1801. } D3D12_SHADER_CACHE_SUPPORT_FLAGS;
  1802. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_SUPPORT_FLAGS )
  1803. typedef struct D3D12_FEATURE_DATA_SHADER_CACHE
  1804. {
  1805. _Out_ D3D12_SHADER_CACHE_SUPPORT_FLAGS SupportFlags;
  1806. } D3D12_FEATURE_DATA_SHADER_CACHE;
  1807. typedef struct D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY
  1808. {
  1809. _In_ D3D12_COMMAND_LIST_TYPE CommandListType;
  1810. _In_ UINT Priority;
  1811. _Out_ BOOL PriorityForTypeIsSupported;
  1812. } D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY;
  1813. typedef
  1814. enum D3D12_COMMAND_LIST_SUPPORT_FLAGS
  1815. {
  1816. D3D12_COMMAND_LIST_SUPPORT_FLAG_NONE = 0,
  1817. D3D12_COMMAND_LIST_SUPPORT_FLAG_DIRECT = ( 1 << D3D12_COMMAND_LIST_TYPE_DIRECT ) ,
  1818. D3D12_COMMAND_LIST_SUPPORT_FLAG_BUNDLE = ( 1 << D3D12_COMMAND_LIST_TYPE_BUNDLE ) ,
  1819. D3D12_COMMAND_LIST_SUPPORT_FLAG_COMPUTE = ( 1 << D3D12_COMMAND_LIST_TYPE_COMPUTE ) ,
  1820. D3D12_COMMAND_LIST_SUPPORT_FLAG_COPY = ( 1 << D3D12_COMMAND_LIST_TYPE_COPY ) ,
  1821. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_DECODE = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE ) ,
  1822. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_PROCESS = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS ) ,
  1823. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_ENCODE = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE )
  1824. } D3D12_COMMAND_LIST_SUPPORT_FLAGS;
  1825. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_LIST_SUPPORT_FLAGS )
  1826. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS3
  1827. {
  1828. _Out_ BOOL CopyQueueTimestampQueriesSupported;
  1829. _Out_ BOOL CastingFullyTypedFormatSupported;
  1830. _Out_ D3D12_COMMAND_LIST_SUPPORT_FLAGS WriteBufferImmediateSupportFlags;
  1831. _Out_ D3D12_VIEW_INSTANCING_TIER ViewInstancingTier;
  1832. _Out_ BOOL BarycentricsSupported;
  1833. } D3D12_FEATURE_DATA_D3D12_OPTIONS3;
  1834. typedef struct D3D12_FEATURE_DATA_EXISTING_HEAPS
  1835. {
  1836. _Out_ BOOL Supported;
  1837. } D3D12_FEATURE_DATA_EXISTING_HEAPS;
  1838. typedef
  1839. enum D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER
  1840. {
  1841. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 = 0,
  1842. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 = ( D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 + 1 ) ,
  1843. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_2 = ( D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 + 1 )
  1844. } D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER;
  1845. typedef struct D3D12_FEATURE_DATA_DISPLAYABLE
  1846. {
  1847. _Out_ BOOL DisplayableTexture;
  1848. _Out_ D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier;
  1849. } D3D12_FEATURE_DATA_DISPLAYABLE;
  1850. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS4
  1851. {
  1852. _Out_ BOOL MSAA64KBAlignedTextureSupported;
  1853. _Out_ D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier;
  1854. _Out_ BOOL Native16BitShaderOpsSupported;
  1855. } D3D12_FEATURE_DATA_D3D12_OPTIONS4;
  1856. typedef
  1857. enum D3D12_HEAP_SERIALIZATION_TIER
  1858. {
  1859. D3D12_HEAP_SERIALIZATION_TIER_0 = 0,
  1860. D3D12_HEAP_SERIALIZATION_TIER_10 = 10
  1861. } D3D12_HEAP_SERIALIZATION_TIER;
  1862. typedef struct D3D12_FEATURE_DATA_SERIALIZATION
  1863. {
  1864. _In_ UINT NodeIndex;
  1865. _Out_ D3D12_HEAP_SERIALIZATION_TIER HeapSerializationTier;
  1866. } D3D12_FEATURE_DATA_SERIALIZATION;
  1867. typedef struct D3D12_FEATURE_DATA_CROSS_NODE
  1868. {
  1869. D3D12_CROSS_NODE_SHARING_TIER SharingTier;
  1870. BOOL AtomicShaderInstructions;
  1871. } D3D12_FEATURE_DATA_CROSS_NODE;
  1872. typedef
  1873. enum D3D12_RENDER_PASS_TIER
  1874. {
  1875. D3D12_RENDER_PASS_TIER_0 = 0,
  1876. D3D12_RENDER_PASS_TIER_1 = 1,
  1877. D3D12_RENDER_PASS_TIER_2 = 2
  1878. } D3D12_RENDER_PASS_TIER;
  1879. typedef
  1880. enum D3D12_RAYTRACING_TIER
  1881. {
  1882. D3D12_RAYTRACING_TIER_NOT_SUPPORTED = 0,
  1883. D3D12_RAYTRACING_TIER_1_0 = 10,
  1884. D3D12_RAYTRACING_TIER_1_1 = 11,
  1885. D3D12_RAYTRACING_TIER_1_2 = 12
  1886. } D3D12_RAYTRACING_TIER;
  1887. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS5
  1888. {
  1889. _Out_ BOOL SRVOnlyTiledResourceTier3;
  1890. _Out_ D3D12_RENDER_PASS_TIER RenderPassesTier;
  1891. _Out_ D3D12_RAYTRACING_TIER RaytracingTier;
  1892. } D3D12_FEATURE_DATA_D3D12_OPTIONS5;
  1893. typedef
  1894. enum D3D12_VARIABLE_SHADING_RATE_TIER
  1895. {
  1896. D3D12_VARIABLE_SHADING_RATE_TIER_NOT_SUPPORTED = 0,
  1897. D3D12_VARIABLE_SHADING_RATE_TIER_1 = 1,
  1898. D3D12_VARIABLE_SHADING_RATE_TIER_2 = 2
  1899. } D3D12_VARIABLE_SHADING_RATE_TIER;
  1900. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS6
  1901. {
  1902. _Out_ BOOL AdditionalShadingRatesSupported;
  1903. _Out_ BOOL PerPrimitiveShadingRateSupportedWithViewportIndexing;
  1904. _Out_ D3D12_VARIABLE_SHADING_RATE_TIER VariableShadingRateTier;
  1905. _Out_ UINT ShadingRateImageTileSize;
  1906. _Out_ BOOL BackgroundProcessingSupported;
  1907. } D3D12_FEATURE_DATA_D3D12_OPTIONS6;
  1908. typedef
  1909. enum D3D12_MESH_SHADER_TIER
  1910. {
  1911. D3D12_MESH_SHADER_TIER_NOT_SUPPORTED = 0,
  1912. D3D12_MESH_SHADER_TIER_1 = 10
  1913. } D3D12_MESH_SHADER_TIER;
  1914. typedef
  1915. enum D3D12_SAMPLER_FEEDBACK_TIER
  1916. {
  1917. D3D12_SAMPLER_FEEDBACK_TIER_NOT_SUPPORTED = 0,
  1918. D3D12_SAMPLER_FEEDBACK_TIER_0_9 = 90,
  1919. D3D12_SAMPLER_FEEDBACK_TIER_1_0 = 100
  1920. } D3D12_SAMPLER_FEEDBACK_TIER;
  1921. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS7
  1922. {
  1923. _Out_ D3D12_MESH_SHADER_TIER MeshShaderTier;
  1924. _Out_ D3D12_SAMPLER_FEEDBACK_TIER SamplerFeedbackTier;
  1925. } D3D12_FEATURE_DATA_D3D12_OPTIONS7;
  1926. typedef struct D3D12_FEATURE_DATA_QUERY_META_COMMAND
  1927. {
  1928. _In_ GUID CommandId;
  1929. _In_ UINT NodeMask;
  1930. _Field_size_bytes_full_opt_( QueryInputDataSizeInBytes ) const void *pQueryInputData;
  1931. _In_ SIZE_T QueryInputDataSizeInBytes;
  1932. _Field_size_bytes_full_( QueryOutputDataSizeInBytes ) void *pQueryOutputData;
  1933. _In_ SIZE_T QueryOutputDataSizeInBytes;
  1934. } D3D12_FEATURE_DATA_QUERY_META_COMMAND;
  1935. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS8
  1936. {
  1937. _Out_ BOOL UnalignedBlockTexturesSupported;
  1938. } D3D12_FEATURE_DATA_D3D12_OPTIONS8;
  1939. typedef
  1940. enum D3D12_WAVE_MMA_TIER
  1941. {
  1942. D3D12_WAVE_MMA_TIER_NOT_SUPPORTED = 0,
  1943. D3D12_WAVE_MMA_TIER_1_0 = 10
  1944. } D3D12_WAVE_MMA_TIER;
  1945. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS9
  1946. {
  1947. _Out_ BOOL MeshShaderPipelineStatsSupported;
  1948. _Out_ BOOL MeshShaderSupportsFullRangeRenderTargetArrayIndex;
  1949. _Out_ BOOL AtomicInt64OnTypedResourceSupported;
  1950. _Out_ BOOL AtomicInt64OnGroupSharedSupported;
  1951. _Out_ BOOL DerivativesInMeshAndAmplificationShadersSupported;
  1952. _Out_ D3D12_WAVE_MMA_TIER WaveMMATier;
  1953. } D3D12_FEATURE_DATA_D3D12_OPTIONS9;
  1954. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS10
  1955. {
  1956. _Out_ BOOL VariableRateShadingSumCombinerSupported;
  1957. _Out_ BOOL MeshShaderPerPrimitiveShadingRateSupported;
  1958. } D3D12_FEATURE_DATA_D3D12_OPTIONS10;
  1959. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS11
  1960. {
  1961. _Out_ BOOL AtomicInt64OnDescriptorHeapResourceSupported;
  1962. } D3D12_FEATURE_DATA_D3D12_OPTIONS11;
  1963. typedef
  1964. enum D3D12_TRI_STATE
  1965. {
  1966. D3D12_TRI_STATE_UNKNOWN = -1,
  1967. D3D12_TRI_STATE_FALSE = 0,
  1968. D3D12_TRI_STATE_TRUE = 1
  1969. } D3D12_TRI_STATE;
  1970. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS12
  1971. {
  1972. _Out_ D3D12_TRI_STATE MSPrimitivesPipelineStatisticIncludesCulledPrimitives;
  1973. _Out_ BOOL EnhancedBarriersSupported;
  1974. _Out_ BOOL RelaxedFormatCastingSupported;
  1975. } D3D12_FEATURE_DATA_D3D12_OPTIONS12;
  1976. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS13
  1977. {
  1978. _Out_ BOOL UnrestrictedBufferTextureCopyPitchSupported;
  1979. _Out_ BOOL UnrestrictedVertexElementAlignmentSupported;
  1980. _Out_ BOOL InvertedViewportHeightFlipsYSupported;
  1981. _Out_ BOOL InvertedViewportDepthFlipsZSupported;
  1982. _Out_ BOOL TextureCopyBetweenDimensionsSupported;
  1983. _Out_ BOOL AlphaBlendFactorSupported;
  1984. } D3D12_FEATURE_DATA_D3D12_OPTIONS13;
  1985. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS14
  1986. {
  1987. _Out_ BOOL AdvancedTextureOpsSupported;
  1988. _Out_ BOOL WriteableMSAATexturesSupported;
  1989. _Out_ BOOL IndependentFrontAndBackStencilRefMaskSupported;
  1990. } D3D12_FEATURE_DATA_D3D12_OPTIONS14;
  1991. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS15
  1992. {
  1993. _Out_ BOOL TriangleFanSupported;
  1994. _Out_ BOOL DynamicIndexBufferStripCutSupported;
  1995. } D3D12_FEATURE_DATA_D3D12_OPTIONS15;
  1996. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS16
  1997. {
  1998. _Out_ BOOL DynamicDepthBiasSupported;
  1999. _Out_ BOOL GPUUploadHeapSupported;
  2000. } D3D12_FEATURE_DATA_D3D12_OPTIONS16;
  2001. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS17
  2002. {
  2003. _Out_ BOOL NonNormalizedCoordinateSamplersSupported;
  2004. _Out_ BOOL ManualWriteTrackingResourceSupported;
  2005. } D3D12_FEATURE_DATA_D3D12_OPTIONS17;
  2006. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS18
  2007. {
  2008. _Out_ BOOL RenderPassesValid;
  2009. } D3D12_FEATURE_DATA_D3D12_OPTIONS18;
  2010. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS19
  2011. {
  2012. BOOL MismatchingOutputDimensionsSupported;
  2013. UINT SupportedSampleCountsWithNoOutputs;
  2014. BOOL PointSamplingAddressesNeverRoundUp;
  2015. BOOL RasterizerDesc2Supported;
  2016. BOOL NarrowQuadrilateralLinesSupported;
  2017. BOOL AnisoFilterWithPointMipSupported;
  2018. UINT MaxSamplerDescriptorHeapSize;
  2019. UINT MaxSamplerDescriptorHeapSizeWithStaticSamplers;
  2020. UINT MaxViewDescriptorHeapSize;
  2021. _Out_ BOOL ComputeOnlyCustomHeapSupported;
  2022. } D3D12_FEATURE_DATA_D3D12_OPTIONS19;
  2023. typedef
  2024. enum D3D12_RECREATE_AT_TIER
  2025. {
  2026. D3D12_RECREATE_AT_TIER_NOT_SUPPORTED = 0,
  2027. D3D12_RECREATE_AT_TIER_1 = 1
  2028. } D3D12_RECREATE_AT_TIER;
  2029. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS20
  2030. {
  2031. _Out_ BOOL ComputeOnlyWriteWatchSupported;
  2032. D3D12_RECREATE_AT_TIER RecreateAtTier;
  2033. } D3D12_FEATURE_DATA_D3D12_OPTIONS20;
  2034. typedef
  2035. enum D3D12_EXECUTE_INDIRECT_TIER
  2036. {
  2037. D3D12_EXECUTE_INDIRECT_TIER_1_0 = 10,
  2038. D3D12_EXECUTE_INDIRECT_TIER_1_1 = 11
  2039. } D3D12_EXECUTE_INDIRECT_TIER;
  2040. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS21
  2041. {
  2042. _Out_ D3D12_WORK_GRAPHS_TIER WorkGraphsTier;
  2043. _Out_ D3D12_EXECUTE_INDIRECT_TIER ExecuteIndirectTier;
  2044. _Out_ BOOL SampleCmpGradientAndBiasSupported;
  2045. _Out_ BOOL ExtendedCommandInfoSupported;
  2046. } D3D12_FEATURE_DATA_D3D12_OPTIONS21;
  2047. typedef struct D3D12_FEATURE_DATA_PREDICATION
  2048. {
  2049. _Out_ BOOL Supported;
  2050. } D3D12_FEATURE_DATA_PREDICATION;
  2051. typedef struct D3D12_FEATURE_DATA_HARDWARE_COPY
  2052. {
  2053. _Out_ BOOL Supported;
  2054. } D3D12_FEATURE_DATA_HARDWARE_COPY;
  2055. typedef struct D3D12_FEATURE_DATA_APPLICATION_SPECIFIC_DRIVER_STATE
  2056. {
  2057. _Out_ BOOL Supported;
  2058. } D3D12_FEATURE_DATA_APPLICATION_SPECIFIC_DRIVER_STATE;
  2059. typedef struct D3D12_FEATURE_DATA_BYTECODE_BYPASS_HASH_SUPPORTED
  2060. {
  2061. _Out_ BOOL Supported;
  2062. } D3D12_FEATURE_DATA_BYTECODE_BYPASS_HASH_SUPPORTED;
  2063. typedef struct D3D12_RESOURCE_ALLOCATION_INFO
  2064. {
  2065. UINT64 SizeInBytes;
  2066. UINT64 Alignment;
  2067. } D3D12_RESOURCE_ALLOCATION_INFO;
  2068. typedef struct D3D12_RESOURCE_ALLOCATION_INFO1
  2069. {
  2070. UINT64 Offset;
  2071. UINT64 Alignment;
  2072. UINT64 SizeInBytes;
  2073. } D3D12_RESOURCE_ALLOCATION_INFO1;
  2074. typedef
  2075. enum D3D12_HEAP_TYPE
  2076. {
  2077. D3D12_HEAP_TYPE_DEFAULT = 1,
  2078. D3D12_HEAP_TYPE_UPLOAD = 2,
  2079. D3D12_HEAP_TYPE_READBACK = 3,
  2080. D3D12_HEAP_TYPE_CUSTOM = 4,
  2081. D3D12_HEAP_TYPE_GPU_UPLOAD = 5
  2082. } D3D12_HEAP_TYPE;
  2083. typedef
  2084. enum D3D12_CPU_PAGE_PROPERTY
  2085. {
  2086. D3D12_CPU_PAGE_PROPERTY_UNKNOWN = 0,
  2087. D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE = 1,
  2088. D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE = 2,
  2089. D3D12_CPU_PAGE_PROPERTY_WRITE_BACK = 3
  2090. } D3D12_CPU_PAGE_PROPERTY;
  2091. typedef
  2092. enum D3D12_MEMORY_POOL
  2093. {
  2094. D3D12_MEMORY_POOL_UNKNOWN = 0,
  2095. D3D12_MEMORY_POOL_L0 = 1,
  2096. D3D12_MEMORY_POOL_L1 = 2
  2097. } D3D12_MEMORY_POOL;
  2098. typedef struct D3D12_HEAP_PROPERTIES
  2099. {
  2100. D3D12_HEAP_TYPE Type;
  2101. D3D12_CPU_PAGE_PROPERTY CPUPageProperty;
  2102. D3D12_MEMORY_POOL MemoryPoolPreference;
  2103. UINT CreationNodeMask;
  2104. UINT VisibleNodeMask;
  2105. } D3D12_HEAP_PROPERTIES;
  2106. typedef
  2107. enum D3D12_HEAP_FLAGS
  2108. {
  2109. D3D12_HEAP_FLAG_NONE = 0,
  2110. D3D12_HEAP_FLAG_SHARED = 0x1,
  2111. D3D12_HEAP_FLAG_DENY_BUFFERS = 0x4,
  2112. D3D12_HEAP_FLAG_ALLOW_DISPLAY = 0x8,
  2113. D3D12_HEAP_FLAG_SHARED_CROSS_ADAPTER = 0x20,
  2114. D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES = 0x40,
  2115. D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES = 0x80,
  2116. D3D12_HEAP_FLAG_HARDWARE_PROTECTED = 0x100,
  2117. D3D12_HEAP_FLAG_ALLOW_WRITE_WATCH = 0x200,
  2118. D3D12_HEAP_FLAG_ALLOW_SHADER_ATOMICS = 0x400,
  2119. D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT = 0x800,
  2120. D3D12_HEAP_FLAG_CREATE_NOT_ZEROED = 0x1000,
  2121. D3D12_HEAP_FLAG_TOOLS_USE_MANUAL_WRITE_TRACKING = 0x2000,
  2122. D3D12_HEAP_FLAG_ALLOW_ALL_BUFFERS_AND_TEXTURES = 0,
  2123. D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS = 0xc0,
  2124. D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES = 0x44,
  2125. D3D12_HEAP_FLAG_ALLOW_ONLY_RT_DS_TEXTURES = 0x84
  2126. } D3D12_HEAP_FLAGS;
  2127. DEFINE_ENUM_FLAG_OPERATORS( D3D12_HEAP_FLAGS )
  2128. typedef struct D3D12_HEAP_DESC
  2129. {
  2130. UINT64 SizeInBytes;
  2131. D3D12_HEAP_PROPERTIES Properties;
  2132. UINT64 Alignment;
  2133. D3D12_HEAP_FLAGS Flags;
  2134. } D3D12_HEAP_DESC;
  2135. typedef
  2136. enum D3D12_RESOURCE_DIMENSION
  2137. {
  2138. D3D12_RESOURCE_DIMENSION_UNKNOWN = 0,
  2139. D3D12_RESOURCE_DIMENSION_BUFFER = 1,
  2140. D3D12_RESOURCE_DIMENSION_TEXTURE1D = 2,
  2141. D3D12_RESOURCE_DIMENSION_TEXTURE2D = 3,
  2142. D3D12_RESOURCE_DIMENSION_TEXTURE3D = 4
  2143. } D3D12_RESOURCE_DIMENSION;
  2144. typedef struct D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO
  2145. {
  2146. _In_ DXGI_FORMAT Format;
  2147. _In_ D3D12_RESOURCE_DIMENSION Dimension;
  2148. _In_ D3D12_HEAP_PROPERTIES DestHeapProperties;
  2149. _Out_ BOOL Supported;
  2150. } D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO;
  2151. typedef
  2152. enum D3D12_TEXTURE_LAYOUT
  2153. {
  2154. D3D12_TEXTURE_LAYOUT_UNKNOWN = 0,
  2155. D3D12_TEXTURE_LAYOUT_ROW_MAJOR = 1,
  2156. D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE = 2,
  2157. D3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE = 3
  2158. } D3D12_TEXTURE_LAYOUT;
  2159. typedef
  2160. enum D3D12_RESOURCE_FLAGS
  2161. {
  2162. D3D12_RESOURCE_FLAG_NONE = 0,
  2163. D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET = 0x1,
  2164. D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL = 0x2,
  2165. D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS = 0x4,
  2166. D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE = 0x8,
  2167. D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER = 0x10,
  2168. D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS = 0x20,
  2169. D3D12_RESOURCE_FLAG_VIDEO_DECODE_REFERENCE_ONLY = 0x40,
  2170. D3D12_RESOURCE_FLAG_VIDEO_ENCODE_REFERENCE_ONLY = 0x80,
  2171. D3D12_RESOURCE_FLAG_RAYTRACING_ACCELERATION_STRUCTURE = 0x100
  2172. } D3D12_RESOURCE_FLAGS;
  2173. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_FLAGS )
  2174. typedef struct D3D12_MIP_REGION
  2175. {
  2176. UINT Width;
  2177. UINT Height;
  2178. UINT Depth;
  2179. } D3D12_MIP_REGION;
  2180. typedef struct D3D12_RESOURCE_DESC
  2181. {
  2182. D3D12_RESOURCE_DIMENSION Dimension;
  2183. UINT64 Alignment;
  2184. UINT64 Width;
  2185. UINT Height;
  2186. UINT16 DepthOrArraySize;
  2187. UINT16 MipLevels;
  2188. DXGI_FORMAT Format;
  2189. DXGI_SAMPLE_DESC SampleDesc;
  2190. D3D12_TEXTURE_LAYOUT Layout;
  2191. D3D12_RESOURCE_FLAGS Flags;
  2192. } D3D12_RESOURCE_DESC;
  2193. typedef struct D3D12_RESOURCE_DESC1
  2194. {
  2195. D3D12_RESOURCE_DIMENSION Dimension;
  2196. UINT64 Alignment;
  2197. UINT64 Width;
  2198. UINT Height;
  2199. UINT16 DepthOrArraySize;
  2200. UINT16 MipLevels;
  2201. DXGI_FORMAT Format;
  2202. DXGI_SAMPLE_DESC SampleDesc;
  2203. D3D12_TEXTURE_LAYOUT Layout;
  2204. D3D12_RESOURCE_FLAGS Flags;
  2205. D3D12_MIP_REGION SamplerFeedbackMipRegion;
  2206. } D3D12_RESOURCE_DESC1;
  2207. typedef struct D3D12_DEPTH_STENCIL_VALUE
  2208. {
  2209. FLOAT Depth;
  2210. UINT8 Stencil;
  2211. } D3D12_DEPTH_STENCIL_VALUE;
  2212. typedef struct D3D12_CLEAR_VALUE
  2213. {
  2214. DXGI_FORMAT Format;
  2215. union
  2216. {
  2217. FLOAT Color[ 4 ];
  2218. D3D12_DEPTH_STENCIL_VALUE DepthStencil;
  2219. } ;
  2220. } D3D12_CLEAR_VALUE;
  2221. typedef struct D3D12_RANGE
  2222. {
  2223. SIZE_T Begin;
  2224. SIZE_T End;
  2225. } D3D12_RANGE;
  2226. typedef struct D3D12_RANGE_UINT64
  2227. {
  2228. UINT64 Begin;
  2229. UINT64 End;
  2230. } D3D12_RANGE_UINT64;
  2231. typedef struct D3D12_SUBRESOURCE_RANGE_UINT64
  2232. {
  2233. UINT Subresource;
  2234. D3D12_RANGE_UINT64 Range;
  2235. } D3D12_SUBRESOURCE_RANGE_UINT64;
  2236. typedef struct D3D12_SUBRESOURCE_INFO
  2237. {
  2238. UINT64 Offset;
  2239. UINT RowPitch;
  2240. UINT DepthPitch;
  2241. } D3D12_SUBRESOURCE_INFO;
  2242. typedef struct D3D12_TILED_RESOURCE_COORDINATE
  2243. {
  2244. UINT X;
  2245. UINT Y;
  2246. UINT Z;
  2247. UINT Subresource;
  2248. } D3D12_TILED_RESOURCE_COORDINATE;
  2249. typedef struct D3D12_TILE_REGION_SIZE
  2250. {
  2251. UINT NumTiles;
  2252. BOOL UseBox;
  2253. UINT Width;
  2254. UINT16 Height;
  2255. UINT16 Depth;
  2256. } D3D12_TILE_REGION_SIZE;
  2257. typedef
  2258. enum D3D12_TILE_RANGE_FLAGS
  2259. {
  2260. D3D12_TILE_RANGE_FLAG_NONE = 0,
  2261. D3D12_TILE_RANGE_FLAG_NULL = 1,
  2262. D3D12_TILE_RANGE_FLAG_SKIP = 2,
  2263. D3D12_TILE_RANGE_FLAG_REUSE_SINGLE_TILE = 4
  2264. } D3D12_TILE_RANGE_FLAGS;
  2265. typedef struct D3D12_SUBRESOURCE_TILING
  2266. {
  2267. UINT WidthInTiles;
  2268. UINT16 HeightInTiles;
  2269. UINT16 DepthInTiles;
  2270. UINT StartTileIndexInOverallResource;
  2271. } D3D12_SUBRESOURCE_TILING;
  2272. typedef struct D3D12_TILE_SHAPE
  2273. {
  2274. UINT WidthInTexels;
  2275. UINT HeightInTexels;
  2276. UINT DepthInTexels;
  2277. } D3D12_TILE_SHAPE;
  2278. typedef struct D3D12_PACKED_MIP_INFO
  2279. {
  2280. UINT8 NumStandardMips;
  2281. UINT8 NumPackedMips;
  2282. UINT NumTilesForPackedMips;
  2283. UINT StartTileIndexInOverallResource;
  2284. } D3D12_PACKED_MIP_INFO;
  2285. typedef
  2286. enum D3D12_TILE_MAPPING_FLAGS
  2287. {
  2288. D3D12_TILE_MAPPING_FLAG_NONE = 0,
  2289. D3D12_TILE_MAPPING_FLAG_NO_HAZARD = 0x1
  2290. } D3D12_TILE_MAPPING_FLAGS;
  2291. DEFINE_ENUM_FLAG_OPERATORS( D3D12_TILE_MAPPING_FLAGS )
  2292. typedef
  2293. enum D3D12_TILE_COPY_FLAGS
  2294. {
  2295. D3D12_TILE_COPY_FLAG_NONE = 0,
  2296. D3D12_TILE_COPY_FLAG_NO_HAZARD = 0x1,
  2297. D3D12_TILE_COPY_FLAG_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2,
  2298. D3D12_TILE_COPY_FLAG_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4
  2299. } D3D12_TILE_COPY_FLAGS;
  2300. DEFINE_ENUM_FLAG_OPERATORS( D3D12_TILE_COPY_FLAGS )
  2301. typedef
  2302. enum D3D12_RESOURCE_STATES
  2303. {
  2304. D3D12_RESOURCE_STATE_COMMON = 0,
  2305. D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER = 0x1,
  2306. D3D12_RESOURCE_STATE_INDEX_BUFFER = 0x2,
  2307. D3D12_RESOURCE_STATE_RENDER_TARGET = 0x4,
  2308. D3D12_RESOURCE_STATE_UNORDERED_ACCESS = 0x8,
  2309. D3D12_RESOURCE_STATE_DEPTH_WRITE = 0x10,
  2310. D3D12_RESOURCE_STATE_DEPTH_READ = 0x20,
  2311. D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE = 0x40,
  2312. D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE = 0x80,
  2313. D3D12_RESOURCE_STATE_STREAM_OUT = 0x100,
  2314. D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT = 0x200,
  2315. D3D12_RESOURCE_STATE_COPY_DEST = 0x400,
  2316. D3D12_RESOURCE_STATE_COPY_SOURCE = 0x800,
  2317. D3D12_RESOURCE_STATE_RESOLVE_DEST = 0x1000,
  2318. D3D12_RESOURCE_STATE_RESOLVE_SOURCE = 0x2000,
  2319. D3D12_RESOURCE_STATE_RAYTRACING_ACCELERATION_STRUCTURE = 0x400000,
  2320. D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE = 0x1000000,
  2321. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_8000 = 0x8000,
  2322. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_4000 = 0x4000,
  2323. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_100000 = 0x100000,
  2324. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_40000000 = 0x40000000,
  2325. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_80000000 = 0x80000000,
  2326. D3D12_RESOURCE_STATE_GENERIC_READ = ( ( ( ( ( 0x1 | 0x2 ) | 0x40 ) | 0x80 ) | 0x200 ) | 0x800 ) ,
  2327. D3D12_RESOURCE_STATE_ALL_SHADER_RESOURCE = ( 0x40 | 0x80 ) ,
  2328. D3D12_RESOURCE_STATE_PRESENT = 0,
  2329. D3D12_RESOURCE_STATE_PREDICATION = 0x200,
  2330. D3D12_RESOURCE_STATE_VIDEO_DECODE_READ = 0x10000,
  2331. D3D12_RESOURCE_STATE_VIDEO_DECODE_WRITE = 0x20000,
  2332. D3D12_RESOURCE_STATE_VIDEO_PROCESS_READ = 0x40000,
  2333. D3D12_RESOURCE_STATE_VIDEO_PROCESS_WRITE = 0x80000,
  2334. D3D12_RESOURCE_STATE_VIDEO_ENCODE_READ = 0x200000,
  2335. D3D12_RESOURCE_STATE_VIDEO_ENCODE_WRITE = 0x800000
  2336. } D3D12_RESOURCE_STATES;
  2337. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_STATES )
  2338. typedef
  2339. enum D3D12_RESOURCE_BARRIER_TYPE
  2340. {
  2341. D3D12_RESOURCE_BARRIER_TYPE_TRANSITION = 0,
  2342. D3D12_RESOURCE_BARRIER_TYPE_ALIASING = ( D3D12_RESOURCE_BARRIER_TYPE_TRANSITION + 1 ) ,
  2343. D3D12_RESOURCE_BARRIER_TYPE_UAV = ( D3D12_RESOURCE_BARRIER_TYPE_ALIASING + 1 )
  2344. } D3D12_RESOURCE_BARRIER_TYPE;
  2345. typedef struct D3D12_RESOURCE_TRANSITION_BARRIER
  2346. {
  2347. ID3D12Resource *pResource;
  2348. UINT Subresource;
  2349. D3D12_RESOURCE_STATES StateBefore;
  2350. D3D12_RESOURCE_STATES StateAfter;
  2351. } D3D12_RESOURCE_TRANSITION_BARRIER;
  2352. typedef struct D3D12_RESOURCE_ALIASING_BARRIER
  2353. {
  2354. ID3D12Resource *pResourceBefore;
  2355. ID3D12Resource *pResourceAfter;
  2356. } D3D12_RESOURCE_ALIASING_BARRIER;
  2357. typedef struct D3D12_RESOURCE_UAV_BARRIER
  2358. {
  2359. ID3D12Resource *pResource;
  2360. } D3D12_RESOURCE_UAV_BARRIER;
  2361. typedef
  2362. enum D3D12_RESOURCE_BARRIER_FLAGS
  2363. {
  2364. D3D12_RESOURCE_BARRIER_FLAG_NONE = 0,
  2365. D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY = 0x1,
  2366. D3D12_RESOURCE_BARRIER_FLAG_END_ONLY = 0x2
  2367. } D3D12_RESOURCE_BARRIER_FLAGS;
  2368. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_BARRIER_FLAGS )
  2369. typedef struct D3D12_RESOURCE_BARRIER
  2370. {
  2371. D3D12_RESOURCE_BARRIER_TYPE Type;
  2372. D3D12_RESOURCE_BARRIER_FLAGS Flags;
  2373. union
  2374. {
  2375. D3D12_RESOURCE_TRANSITION_BARRIER Transition;
  2376. D3D12_RESOURCE_ALIASING_BARRIER Aliasing;
  2377. D3D12_RESOURCE_UAV_BARRIER UAV;
  2378. } ;
  2379. } D3D12_RESOURCE_BARRIER;
  2380. typedef struct D3D12_SUBRESOURCE_FOOTPRINT
  2381. {
  2382. DXGI_FORMAT Format;
  2383. UINT Width;
  2384. UINT Height;
  2385. UINT Depth;
  2386. UINT RowPitch;
  2387. } D3D12_SUBRESOURCE_FOOTPRINT;
  2388. typedef struct D3D12_PLACED_SUBRESOURCE_FOOTPRINT
  2389. {
  2390. UINT64 Offset;
  2391. D3D12_SUBRESOURCE_FOOTPRINT Footprint;
  2392. } D3D12_PLACED_SUBRESOURCE_FOOTPRINT;
  2393. typedef
  2394. enum D3D12_TEXTURE_COPY_TYPE
  2395. {
  2396. D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX = 0,
  2397. D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT = 1
  2398. } D3D12_TEXTURE_COPY_TYPE;
  2399. typedef struct D3D12_TEXTURE_COPY_LOCATION
  2400. {
  2401. ID3D12Resource *pResource;
  2402. D3D12_TEXTURE_COPY_TYPE Type;
  2403. union
  2404. {
  2405. D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint;
  2406. UINT SubresourceIndex;
  2407. } ;
  2408. } D3D12_TEXTURE_COPY_LOCATION;
  2409. typedef
  2410. enum D3D12_RESOLVE_MODE
  2411. {
  2412. D3D12_RESOLVE_MODE_DECOMPRESS = 0,
  2413. D3D12_RESOLVE_MODE_MIN = 1,
  2414. D3D12_RESOLVE_MODE_MAX = 2,
  2415. D3D12_RESOLVE_MODE_AVERAGE = 3,
  2416. D3D12_RESOLVE_MODE_ENCODE_SAMPLER_FEEDBACK = 4,
  2417. D3D12_RESOLVE_MODE_DECODE_SAMPLER_FEEDBACK = 5
  2418. } D3D12_RESOLVE_MODE;
  2419. typedef struct D3D12_SAMPLE_POSITION
  2420. {
  2421. INT8 X;
  2422. INT8 Y;
  2423. } D3D12_SAMPLE_POSITION;
  2424. typedef struct D3D12_VIEW_INSTANCE_LOCATION
  2425. {
  2426. UINT ViewportArrayIndex;
  2427. UINT RenderTargetArrayIndex;
  2428. } D3D12_VIEW_INSTANCE_LOCATION;
  2429. typedef
  2430. enum D3D12_VIEW_INSTANCING_FLAGS
  2431. {
  2432. D3D12_VIEW_INSTANCING_FLAG_NONE = 0,
  2433. D3D12_VIEW_INSTANCING_FLAG_ENABLE_VIEW_INSTANCE_MASKING = 0x1
  2434. } D3D12_VIEW_INSTANCING_FLAGS;
  2435. DEFINE_ENUM_FLAG_OPERATORS( D3D12_VIEW_INSTANCING_FLAGS )
  2436. typedef struct D3D12_VIEW_INSTANCING_DESC
  2437. {
  2438. UINT ViewInstanceCount;
  2439. _Field_size_full_(ViewInstanceCount) const D3D12_VIEW_INSTANCE_LOCATION *pViewInstanceLocations;
  2440. D3D12_VIEW_INSTANCING_FLAGS Flags;
  2441. } D3D12_VIEW_INSTANCING_DESC;
  2442. typedef
  2443. enum D3D12_SHADER_COMPONENT_MAPPING
  2444. {
  2445. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_0 = 0,
  2446. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_1 = 1,
  2447. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_2 = 2,
  2448. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_3 = 3,
  2449. D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_0 = 4,
  2450. D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_1 = 5
  2451. } D3D12_SHADER_COMPONENT_MAPPING;
  2452. #define D3D12_SHADER_COMPONENT_MAPPING_MASK 0x7
  2453. #define D3D12_SHADER_COMPONENT_MAPPING_SHIFT 3
  2454. #define D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES (1<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*4))
  2455. #define D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(Src0,Src1,Src2,Src3) ((((Src0)&D3D12_SHADER_COMPONENT_MAPPING_MASK)| \
  2456. (((Src1)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<<D3D12_SHADER_COMPONENT_MAPPING_SHIFT)| \
  2457. (((Src2)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*2))| \
  2458. (((Src3)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*3))| \
  2459. D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES))
  2460. #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))
  2461. #define D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(0,1,2,3)
  2462. typedef
  2463. enum D3D12_BUFFER_SRV_FLAGS
  2464. {
  2465. D3D12_BUFFER_SRV_FLAG_NONE = 0,
  2466. D3D12_BUFFER_SRV_FLAG_RAW = 0x1
  2467. } D3D12_BUFFER_SRV_FLAGS;
  2468. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BUFFER_SRV_FLAGS )
  2469. typedef struct D3D12_BUFFER_SRV
  2470. {
  2471. UINT64 FirstElement;
  2472. UINT NumElements;
  2473. UINT StructureByteStride;
  2474. D3D12_BUFFER_SRV_FLAGS Flags;
  2475. } D3D12_BUFFER_SRV;
  2476. typedef struct D3D12_TEX1D_SRV
  2477. {
  2478. UINT MostDetailedMip;
  2479. UINT MipLevels;
  2480. FLOAT ResourceMinLODClamp;
  2481. } D3D12_TEX1D_SRV;
  2482. typedef struct D3D12_TEX1D_ARRAY_SRV
  2483. {
  2484. UINT MostDetailedMip;
  2485. UINT MipLevels;
  2486. UINT FirstArraySlice;
  2487. UINT ArraySize;
  2488. FLOAT ResourceMinLODClamp;
  2489. } D3D12_TEX1D_ARRAY_SRV;
  2490. typedef struct D3D12_TEX2D_SRV
  2491. {
  2492. UINT MostDetailedMip;
  2493. UINT MipLevels;
  2494. UINT PlaneSlice;
  2495. FLOAT ResourceMinLODClamp;
  2496. } D3D12_TEX2D_SRV;
  2497. typedef struct D3D12_TEX2D_ARRAY_SRV
  2498. {
  2499. UINT MostDetailedMip;
  2500. UINT MipLevels;
  2501. UINT FirstArraySlice;
  2502. UINT ArraySize;
  2503. UINT PlaneSlice;
  2504. FLOAT ResourceMinLODClamp;
  2505. } D3D12_TEX2D_ARRAY_SRV;
  2506. typedef struct D3D12_TEX3D_SRV
  2507. {
  2508. UINT MostDetailedMip;
  2509. UINT MipLevels;
  2510. FLOAT ResourceMinLODClamp;
  2511. } D3D12_TEX3D_SRV;
  2512. typedef struct D3D12_TEXCUBE_SRV
  2513. {
  2514. UINT MostDetailedMip;
  2515. UINT MipLevels;
  2516. FLOAT ResourceMinLODClamp;
  2517. } D3D12_TEXCUBE_SRV;
  2518. typedef struct D3D12_TEXCUBE_ARRAY_SRV
  2519. {
  2520. UINT MostDetailedMip;
  2521. UINT MipLevels;
  2522. UINT First2DArrayFace;
  2523. UINT NumCubes;
  2524. FLOAT ResourceMinLODClamp;
  2525. } D3D12_TEXCUBE_ARRAY_SRV;
  2526. typedef struct D3D12_TEX2DMS_SRV
  2527. {
  2528. UINT UnusedField_NothingToDefine;
  2529. } D3D12_TEX2DMS_SRV;
  2530. typedef struct D3D12_TEX2DMS_ARRAY_SRV
  2531. {
  2532. UINT FirstArraySlice;
  2533. UINT ArraySize;
  2534. } D3D12_TEX2DMS_ARRAY_SRV;
  2535. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV
  2536. {
  2537. D3D12_GPU_VIRTUAL_ADDRESS Location;
  2538. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV;
  2539. typedef
  2540. enum D3D12_SRV_DIMENSION
  2541. {
  2542. D3D12_SRV_DIMENSION_UNKNOWN = 0,
  2543. D3D12_SRV_DIMENSION_BUFFER = 1,
  2544. D3D12_SRV_DIMENSION_TEXTURE1D = 2,
  2545. D3D12_SRV_DIMENSION_TEXTURE1DARRAY = 3,
  2546. D3D12_SRV_DIMENSION_TEXTURE2D = 4,
  2547. D3D12_SRV_DIMENSION_TEXTURE2DARRAY = 5,
  2548. D3D12_SRV_DIMENSION_TEXTURE2DMS = 6,
  2549. D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY = 7,
  2550. D3D12_SRV_DIMENSION_TEXTURE3D = 8,
  2551. D3D12_SRV_DIMENSION_TEXTURECUBE = 9,
  2552. D3D12_SRV_DIMENSION_TEXTURECUBEARRAY = 10,
  2553. D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE = 11
  2554. } D3D12_SRV_DIMENSION;
  2555. typedef struct D3D12_SHADER_RESOURCE_VIEW_DESC
  2556. {
  2557. DXGI_FORMAT Format;
  2558. D3D12_SRV_DIMENSION ViewDimension;
  2559. UINT Shader4ComponentMapping;
  2560. union
  2561. {
  2562. D3D12_BUFFER_SRV Buffer;
  2563. D3D12_TEX1D_SRV Texture1D;
  2564. D3D12_TEX1D_ARRAY_SRV Texture1DArray;
  2565. D3D12_TEX2D_SRV Texture2D;
  2566. D3D12_TEX2D_ARRAY_SRV Texture2DArray;
  2567. D3D12_TEX2DMS_SRV Texture2DMS;
  2568. D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray;
  2569. D3D12_TEX3D_SRV Texture3D;
  2570. D3D12_TEXCUBE_SRV TextureCube;
  2571. D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray;
  2572. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV RaytracingAccelerationStructure;
  2573. } ;
  2574. } D3D12_SHADER_RESOURCE_VIEW_DESC;
  2575. typedef struct D3D12_CONSTANT_BUFFER_VIEW_DESC
  2576. {
  2577. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  2578. UINT SizeInBytes;
  2579. } D3D12_CONSTANT_BUFFER_VIEW_DESC;
  2580. typedef
  2581. enum D3D12_FILTER
  2582. {
  2583. D3D12_FILTER_MIN_MAG_MIP_POINT = 0,
  2584. D3D12_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x1,
  2585. D3D12_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x4,
  2586. D3D12_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x5,
  2587. D3D12_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
  2588. D3D12_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
  2589. D3D12_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
  2590. D3D12_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
  2591. D3D12_FILTER_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x54,
  2592. D3D12_FILTER_ANISOTROPIC = 0x55,
  2593. D3D12_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
  2594. D3D12_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
  2595. D3D12_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
  2596. D3D12_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
  2597. D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
  2598. D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
  2599. D3D12_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
  2600. D3D12_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
  2601. D3D12_FILTER_COMPARISON_MIN_MAG_ANISOTROPIC_MIP_POINT = 0xd4,
  2602. D3D12_FILTER_COMPARISON_ANISOTROPIC = 0xd5,
  2603. D3D12_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100,
  2604. D3D12_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101,
  2605. D3D12_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104,
  2606. D3D12_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105,
  2607. D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110,
  2608. D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111,
  2609. D3D12_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114,
  2610. D3D12_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115,
  2611. D3D12_FILTER_MINIMUM_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x154,
  2612. D3D12_FILTER_MINIMUM_ANISOTROPIC = 0x155,
  2613. D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180,
  2614. D3D12_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181,
  2615. D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184,
  2616. D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185,
  2617. D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190,
  2618. D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191,
  2619. D3D12_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194,
  2620. D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195,
  2621. D3D12_FILTER_MAXIMUM_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x1d4,
  2622. D3D12_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5
  2623. } D3D12_FILTER;
  2624. typedef
  2625. enum D3D12_FILTER_TYPE
  2626. {
  2627. D3D12_FILTER_TYPE_POINT = 0,
  2628. D3D12_FILTER_TYPE_LINEAR = 1
  2629. } D3D12_FILTER_TYPE;
  2630. typedef
  2631. enum D3D12_FILTER_REDUCTION_TYPE
  2632. {
  2633. D3D12_FILTER_REDUCTION_TYPE_STANDARD = 0,
  2634. D3D12_FILTER_REDUCTION_TYPE_COMPARISON = 1,
  2635. D3D12_FILTER_REDUCTION_TYPE_MINIMUM = 2,
  2636. D3D12_FILTER_REDUCTION_TYPE_MAXIMUM = 3
  2637. } D3D12_FILTER_REDUCTION_TYPE;
  2638. #define D3D12_FILTER_REDUCTION_TYPE_MASK ( 0x3 )
  2639. #define D3D12_FILTER_REDUCTION_TYPE_SHIFT ( 7 )
  2640. #define D3D12_FILTER_TYPE_MASK ( 0x3 )
  2641. #define D3D12_MIN_FILTER_SHIFT ( 4 )
  2642. #define D3D12_MAG_FILTER_SHIFT ( 2 )
  2643. #define D3D12_MIP_FILTER_SHIFT ( 0 )
  2644. #define D3D12_ANISOTROPIC_FILTERING_BIT ( 0x40 )
  2645. #define D3D12_ENCODE_BASIC_FILTER( min, mag, mip, reduction ) \
  2646. ( ( D3D12_FILTER ) ( \
  2647. ( ( ( min ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MIN_FILTER_SHIFT ) | \
  2648. ( ( ( mag ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MAG_FILTER_SHIFT ) | \
  2649. ( ( ( mip ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MIP_FILTER_SHIFT ) | \
  2650. ( ( ( reduction ) & D3D12_FILTER_REDUCTION_TYPE_MASK ) << D3D12_FILTER_REDUCTION_TYPE_SHIFT ) ) )
  2651. #define D3D12_ENCODE_ANISOTROPIC_FILTER( reduction ) \
  2652. ( ( D3D12_FILTER ) ( \
  2653. D3D12_ANISOTROPIC_FILTERING_BIT | \
  2654. D3D12_ENCODE_BASIC_FILTER( D3D12_FILTER_TYPE_LINEAR, \
  2655. D3D12_FILTER_TYPE_LINEAR, \
  2656. D3D12_FILTER_TYPE_LINEAR, \
  2657. reduction ) ) )
  2658. #define D3D12_ENCODE_MIN_MAG_ANISOTROPIC_MIP_POINT_FILTER( reduction ) \
  2659. ( ( D3D12_FILTER ) ( \
  2660. D3D12_ANISOTROPIC_FILTERING_BIT | \
  2661. D3D12_ENCODE_BASIC_FILTER( D3D12_FILTER_TYPE_LINEAR, \
  2662. D3D12_FILTER_TYPE_LINEAR, \
  2663. D3D12_FILTER_TYPE_POINT, \
  2664. reduction ) ) )
  2665. #define D3D12_DECODE_MIN_FILTER( D3D12Filter ) \
  2666. ( ( D3D12_FILTER_TYPE ) \
  2667. ( ( ( D3D12Filter ) >> D3D12_MIN_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) )
  2668. #define D3D12_DECODE_MAG_FILTER( D3D12Filter ) \
  2669. ( ( D3D12_FILTER_TYPE ) \
  2670. ( ( ( D3D12Filter ) >> D3D12_MAG_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) )
  2671. #define D3D12_DECODE_MIP_FILTER( D3D12Filter ) \
  2672. ( ( D3D12_FILTER_TYPE ) \
  2673. ( ( ( D3D12Filter ) >> D3D12_MIP_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) )
  2674. #define D3D12_DECODE_FILTER_REDUCTION( D3D12Filter ) \
  2675. ( ( D3D12_FILTER_REDUCTION_TYPE ) \
  2676. ( ( ( D3D12Filter ) >> D3D12_FILTER_REDUCTION_TYPE_SHIFT ) & D3D12_FILTER_REDUCTION_TYPE_MASK ) )
  2677. #define D3D12_DECODE_IS_COMPARISON_FILTER( D3D12Filter ) \
  2678. ( D3D12_DECODE_FILTER_REDUCTION( D3D12Filter ) == D3D12_FILTER_REDUCTION_TYPE_COMPARISON )
  2679. #define D3D12_DECODE_IS_ANISOTROPIC_FILTER( D3D12Filter ) \
  2680. ( ( ( D3D12Filter ) & D3D12_ANISOTROPIC_FILTERING_BIT ) && \
  2681. ( D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MIN_FILTER( D3D12Filter ) ) && \
  2682. ( D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MAG_FILTER( D3D12Filter ) ) )
  2683. typedef
  2684. enum D3D12_TEXTURE_ADDRESS_MODE
  2685. {
  2686. D3D12_TEXTURE_ADDRESS_MODE_WRAP = 1,
  2687. D3D12_TEXTURE_ADDRESS_MODE_MIRROR = 2,
  2688. D3D12_TEXTURE_ADDRESS_MODE_CLAMP = 3,
  2689. D3D12_TEXTURE_ADDRESS_MODE_BORDER = 4,
  2690. D3D12_TEXTURE_ADDRESS_MODE_MIRROR_ONCE = 5
  2691. } D3D12_TEXTURE_ADDRESS_MODE;
  2692. typedef struct D3D12_SAMPLER_DESC
  2693. {
  2694. D3D12_FILTER Filter;
  2695. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  2696. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  2697. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  2698. FLOAT MipLODBias;
  2699. UINT MaxAnisotropy;
  2700. D3D12_COMPARISON_FUNC ComparisonFunc;
  2701. FLOAT BorderColor[ 4 ];
  2702. FLOAT MinLOD;
  2703. FLOAT MaxLOD;
  2704. } D3D12_SAMPLER_DESC;
  2705. typedef
  2706. enum D3D12_SAMPLER_FLAGS
  2707. {
  2708. D3D12_SAMPLER_FLAG_NONE = 0,
  2709. D3D12_SAMPLER_FLAG_UINT_BORDER_COLOR = 0x1,
  2710. D3D12_SAMPLER_FLAG_NON_NORMALIZED_COORDINATES = 0x2
  2711. } D3D12_SAMPLER_FLAGS;
  2712. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SAMPLER_FLAGS )
  2713. typedef struct D3D12_SAMPLER_DESC2
  2714. {
  2715. D3D12_FILTER Filter;
  2716. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  2717. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  2718. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  2719. FLOAT MipLODBias;
  2720. UINT MaxAnisotropy;
  2721. D3D12_COMPARISON_FUNC ComparisonFunc;
  2722. union
  2723. {
  2724. FLOAT FloatBorderColor[ 4 ];
  2725. UINT UintBorderColor[ 4 ];
  2726. } ;
  2727. FLOAT MinLOD;
  2728. FLOAT MaxLOD;
  2729. D3D12_SAMPLER_FLAGS Flags;
  2730. } D3D12_SAMPLER_DESC2;
  2731. typedef
  2732. enum D3D12_BUFFER_UAV_FLAGS
  2733. {
  2734. D3D12_BUFFER_UAV_FLAG_NONE = 0,
  2735. D3D12_BUFFER_UAV_FLAG_RAW = 0x1
  2736. } D3D12_BUFFER_UAV_FLAGS;
  2737. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BUFFER_UAV_FLAGS )
  2738. typedef struct D3D12_BUFFER_UAV
  2739. {
  2740. UINT64 FirstElement;
  2741. UINT NumElements;
  2742. UINT StructureByteStride;
  2743. UINT64 CounterOffsetInBytes;
  2744. D3D12_BUFFER_UAV_FLAGS Flags;
  2745. } D3D12_BUFFER_UAV;
  2746. typedef struct D3D12_TEX1D_UAV
  2747. {
  2748. UINT MipSlice;
  2749. } D3D12_TEX1D_UAV;
  2750. typedef struct D3D12_TEX1D_ARRAY_UAV
  2751. {
  2752. UINT MipSlice;
  2753. UINT FirstArraySlice;
  2754. UINT ArraySize;
  2755. } D3D12_TEX1D_ARRAY_UAV;
  2756. typedef struct D3D12_TEX2D_UAV
  2757. {
  2758. UINT MipSlice;
  2759. UINT PlaneSlice;
  2760. } D3D12_TEX2D_UAV;
  2761. typedef struct D3D12_TEX2D_ARRAY_UAV
  2762. {
  2763. UINT MipSlice;
  2764. UINT FirstArraySlice;
  2765. UINT ArraySize;
  2766. UINT PlaneSlice;
  2767. } D3D12_TEX2D_ARRAY_UAV;
  2768. typedef struct D3D12_TEX2DMS_UAV
  2769. {
  2770. UINT UnusedField_NothingToDefine;
  2771. } D3D12_TEX2DMS_UAV;
  2772. typedef struct D3D12_TEX2DMS_ARRAY_UAV
  2773. {
  2774. UINT FirstArraySlice;
  2775. UINT ArraySize;
  2776. } D3D12_TEX2DMS_ARRAY_UAV;
  2777. typedef struct D3D12_TEX3D_UAV
  2778. {
  2779. UINT MipSlice;
  2780. UINT FirstWSlice;
  2781. UINT WSize;
  2782. } D3D12_TEX3D_UAV;
  2783. typedef
  2784. enum D3D12_UAV_DIMENSION
  2785. {
  2786. D3D12_UAV_DIMENSION_UNKNOWN = 0,
  2787. D3D12_UAV_DIMENSION_BUFFER = 1,
  2788. D3D12_UAV_DIMENSION_TEXTURE1D = 2,
  2789. D3D12_UAV_DIMENSION_TEXTURE1DARRAY = 3,
  2790. D3D12_UAV_DIMENSION_TEXTURE2D = 4,
  2791. D3D12_UAV_DIMENSION_TEXTURE2DARRAY = 5,
  2792. D3D12_UAV_DIMENSION_TEXTURE2DMS = 6,
  2793. D3D12_UAV_DIMENSION_TEXTURE2DMSARRAY = 7,
  2794. D3D12_UAV_DIMENSION_TEXTURE3D = 8
  2795. } D3D12_UAV_DIMENSION;
  2796. typedef struct D3D12_UNORDERED_ACCESS_VIEW_DESC
  2797. {
  2798. DXGI_FORMAT Format;
  2799. D3D12_UAV_DIMENSION ViewDimension;
  2800. union
  2801. {
  2802. D3D12_BUFFER_UAV Buffer;
  2803. D3D12_TEX1D_UAV Texture1D;
  2804. D3D12_TEX1D_ARRAY_UAV Texture1DArray;
  2805. D3D12_TEX2D_UAV Texture2D;
  2806. D3D12_TEX2D_ARRAY_UAV Texture2DArray;
  2807. D3D12_TEX2DMS_UAV Texture2DMS;
  2808. D3D12_TEX2DMS_ARRAY_UAV Texture2DMSArray;
  2809. D3D12_TEX3D_UAV Texture3D;
  2810. } ;
  2811. } D3D12_UNORDERED_ACCESS_VIEW_DESC;
  2812. typedef struct D3D12_BUFFER_RTV
  2813. {
  2814. UINT64 FirstElement;
  2815. UINT NumElements;
  2816. } D3D12_BUFFER_RTV;
  2817. typedef struct D3D12_TEX1D_RTV
  2818. {
  2819. UINT MipSlice;
  2820. } D3D12_TEX1D_RTV;
  2821. typedef struct D3D12_TEX1D_ARRAY_RTV
  2822. {
  2823. UINT MipSlice;
  2824. UINT FirstArraySlice;
  2825. UINT ArraySize;
  2826. } D3D12_TEX1D_ARRAY_RTV;
  2827. typedef struct D3D12_TEX2D_RTV
  2828. {
  2829. UINT MipSlice;
  2830. UINT PlaneSlice;
  2831. } D3D12_TEX2D_RTV;
  2832. typedef struct D3D12_TEX2DMS_RTV
  2833. {
  2834. UINT UnusedField_NothingToDefine;
  2835. } D3D12_TEX2DMS_RTV;
  2836. typedef struct D3D12_TEX2D_ARRAY_RTV
  2837. {
  2838. UINT MipSlice;
  2839. UINT FirstArraySlice;
  2840. UINT ArraySize;
  2841. UINT PlaneSlice;
  2842. } D3D12_TEX2D_ARRAY_RTV;
  2843. typedef struct D3D12_TEX2DMS_ARRAY_RTV
  2844. {
  2845. UINT FirstArraySlice;
  2846. UINT ArraySize;
  2847. } D3D12_TEX2DMS_ARRAY_RTV;
  2848. typedef struct D3D12_TEX3D_RTV
  2849. {
  2850. UINT MipSlice;
  2851. UINT FirstWSlice;
  2852. UINT WSize;
  2853. } D3D12_TEX3D_RTV;
  2854. typedef
  2855. enum D3D12_RTV_DIMENSION
  2856. {
  2857. D3D12_RTV_DIMENSION_UNKNOWN = 0,
  2858. D3D12_RTV_DIMENSION_BUFFER = 1,
  2859. D3D12_RTV_DIMENSION_TEXTURE1D = 2,
  2860. D3D12_RTV_DIMENSION_TEXTURE1DARRAY = 3,
  2861. D3D12_RTV_DIMENSION_TEXTURE2D = 4,
  2862. D3D12_RTV_DIMENSION_TEXTURE2DARRAY = 5,
  2863. D3D12_RTV_DIMENSION_TEXTURE2DMS = 6,
  2864. D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY = 7,
  2865. D3D12_RTV_DIMENSION_TEXTURE3D = 8
  2866. } D3D12_RTV_DIMENSION;
  2867. typedef struct D3D12_RENDER_TARGET_VIEW_DESC
  2868. {
  2869. DXGI_FORMAT Format;
  2870. D3D12_RTV_DIMENSION ViewDimension;
  2871. union
  2872. {
  2873. D3D12_BUFFER_RTV Buffer;
  2874. D3D12_TEX1D_RTV Texture1D;
  2875. D3D12_TEX1D_ARRAY_RTV Texture1DArray;
  2876. D3D12_TEX2D_RTV Texture2D;
  2877. D3D12_TEX2D_ARRAY_RTV Texture2DArray;
  2878. D3D12_TEX2DMS_RTV Texture2DMS;
  2879. D3D12_TEX2DMS_ARRAY_RTV Texture2DMSArray;
  2880. D3D12_TEX3D_RTV Texture3D;
  2881. } ;
  2882. } D3D12_RENDER_TARGET_VIEW_DESC;
  2883. typedef struct D3D12_TEX1D_DSV
  2884. {
  2885. UINT MipSlice;
  2886. } D3D12_TEX1D_DSV;
  2887. typedef struct D3D12_TEX1D_ARRAY_DSV
  2888. {
  2889. UINT MipSlice;
  2890. UINT FirstArraySlice;
  2891. UINT ArraySize;
  2892. } D3D12_TEX1D_ARRAY_DSV;
  2893. typedef struct D3D12_TEX2D_DSV
  2894. {
  2895. UINT MipSlice;
  2896. } D3D12_TEX2D_DSV;
  2897. typedef struct D3D12_TEX2D_ARRAY_DSV
  2898. {
  2899. UINT MipSlice;
  2900. UINT FirstArraySlice;
  2901. UINT ArraySize;
  2902. } D3D12_TEX2D_ARRAY_DSV;
  2903. typedef struct D3D12_TEX2DMS_DSV
  2904. {
  2905. UINT UnusedField_NothingToDefine;
  2906. } D3D12_TEX2DMS_DSV;
  2907. typedef struct D3D12_TEX2DMS_ARRAY_DSV
  2908. {
  2909. UINT FirstArraySlice;
  2910. UINT ArraySize;
  2911. } D3D12_TEX2DMS_ARRAY_DSV;
  2912. typedef
  2913. enum D3D12_DSV_FLAGS
  2914. {
  2915. D3D12_DSV_FLAG_NONE = 0,
  2916. D3D12_DSV_FLAG_READ_ONLY_DEPTH = 0x1,
  2917. D3D12_DSV_FLAG_READ_ONLY_STENCIL = 0x2
  2918. } D3D12_DSV_FLAGS;
  2919. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DSV_FLAGS )
  2920. typedef
  2921. enum D3D12_DSV_DIMENSION
  2922. {
  2923. D3D12_DSV_DIMENSION_UNKNOWN = 0,
  2924. D3D12_DSV_DIMENSION_TEXTURE1D = 1,
  2925. D3D12_DSV_DIMENSION_TEXTURE1DARRAY = 2,
  2926. D3D12_DSV_DIMENSION_TEXTURE2D = 3,
  2927. D3D12_DSV_DIMENSION_TEXTURE2DARRAY = 4,
  2928. D3D12_DSV_DIMENSION_TEXTURE2DMS = 5,
  2929. D3D12_DSV_DIMENSION_TEXTURE2DMSARRAY = 6
  2930. } D3D12_DSV_DIMENSION;
  2931. typedef struct D3D12_DEPTH_STENCIL_VIEW_DESC
  2932. {
  2933. DXGI_FORMAT Format;
  2934. D3D12_DSV_DIMENSION ViewDimension;
  2935. D3D12_DSV_FLAGS Flags;
  2936. union
  2937. {
  2938. D3D12_TEX1D_DSV Texture1D;
  2939. D3D12_TEX1D_ARRAY_DSV Texture1DArray;
  2940. D3D12_TEX2D_DSV Texture2D;
  2941. D3D12_TEX2D_ARRAY_DSV Texture2DArray;
  2942. D3D12_TEX2DMS_DSV Texture2DMS;
  2943. D3D12_TEX2DMS_ARRAY_DSV Texture2DMSArray;
  2944. } ;
  2945. } D3D12_DEPTH_STENCIL_VIEW_DESC;
  2946. typedef
  2947. enum D3D12_CLEAR_FLAGS
  2948. {
  2949. D3D12_CLEAR_FLAG_DEPTH = 0x1,
  2950. D3D12_CLEAR_FLAG_STENCIL = 0x2
  2951. } D3D12_CLEAR_FLAGS;
  2952. DEFINE_ENUM_FLAG_OPERATORS( D3D12_CLEAR_FLAGS )
  2953. typedef
  2954. enum D3D12_FENCE_FLAGS
  2955. {
  2956. D3D12_FENCE_FLAG_NONE = 0,
  2957. D3D12_FENCE_FLAG_SHARED = 0x1,
  2958. D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER = 0x2,
  2959. D3D12_FENCE_FLAG_NON_MONITORED = 0x4
  2960. } D3D12_FENCE_FLAGS;
  2961. DEFINE_ENUM_FLAG_OPERATORS( D3D12_FENCE_FLAGS )
  2962. typedef
  2963. enum D3D12_DESCRIPTOR_HEAP_TYPE
  2964. {
  2965. D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV = 0,
  2966. D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER = ( D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV + 1 ) ,
  2967. D3D12_DESCRIPTOR_HEAP_TYPE_RTV = ( D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER + 1 ) ,
  2968. D3D12_DESCRIPTOR_HEAP_TYPE_DSV = ( D3D12_DESCRIPTOR_HEAP_TYPE_RTV + 1 ) ,
  2969. D3D12_DESCRIPTOR_HEAP_TYPE_NUM_TYPES = ( D3D12_DESCRIPTOR_HEAP_TYPE_DSV + 1 )
  2970. } D3D12_DESCRIPTOR_HEAP_TYPE;
  2971. typedef
  2972. enum D3D12_DESCRIPTOR_HEAP_FLAGS
  2973. {
  2974. D3D12_DESCRIPTOR_HEAP_FLAG_NONE = 0,
  2975. D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE = 0x1
  2976. } D3D12_DESCRIPTOR_HEAP_FLAGS;
  2977. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DESCRIPTOR_HEAP_FLAGS )
  2978. typedef struct D3D12_DESCRIPTOR_HEAP_DESC
  2979. {
  2980. D3D12_DESCRIPTOR_HEAP_TYPE Type;
  2981. UINT NumDescriptors;
  2982. D3D12_DESCRIPTOR_HEAP_FLAGS Flags;
  2983. UINT NodeMask;
  2984. } D3D12_DESCRIPTOR_HEAP_DESC;
  2985. typedef
  2986. enum D3D12_DESCRIPTOR_RANGE_TYPE
  2987. {
  2988. D3D12_DESCRIPTOR_RANGE_TYPE_SRV = 0,
  2989. D3D12_DESCRIPTOR_RANGE_TYPE_UAV = ( D3D12_DESCRIPTOR_RANGE_TYPE_SRV + 1 ) ,
  2990. D3D12_DESCRIPTOR_RANGE_TYPE_CBV = ( D3D12_DESCRIPTOR_RANGE_TYPE_UAV + 1 ) ,
  2991. D3D12_DESCRIPTOR_RANGE_TYPE_SAMPLER = ( D3D12_DESCRIPTOR_RANGE_TYPE_CBV + 1 )
  2992. } D3D12_DESCRIPTOR_RANGE_TYPE;
  2993. typedef struct D3D12_DESCRIPTOR_RANGE
  2994. {
  2995. D3D12_DESCRIPTOR_RANGE_TYPE RangeType;
  2996. UINT NumDescriptors;
  2997. UINT BaseShaderRegister;
  2998. UINT RegisterSpace;
  2999. UINT OffsetInDescriptorsFromTableStart;
  3000. } D3D12_DESCRIPTOR_RANGE;
  3001. typedef struct D3D12_ROOT_DESCRIPTOR_TABLE
  3002. {
  3003. UINT NumDescriptorRanges;
  3004. _Field_size_full_(NumDescriptorRanges) const D3D12_DESCRIPTOR_RANGE *pDescriptorRanges;
  3005. } D3D12_ROOT_DESCRIPTOR_TABLE;
  3006. typedef struct D3D12_ROOT_CONSTANTS
  3007. {
  3008. UINT ShaderRegister;
  3009. UINT RegisterSpace;
  3010. UINT Num32BitValues;
  3011. } D3D12_ROOT_CONSTANTS;
  3012. typedef struct D3D12_ROOT_DESCRIPTOR
  3013. {
  3014. UINT ShaderRegister;
  3015. UINT RegisterSpace;
  3016. } D3D12_ROOT_DESCRIPTOR;
  3017. typedef
  3018. enum D3D12_SHADER_VISIBILITY
  3019. {
  3020. D3D12_SHADER_VISIBILITY_ALL = 0,
  3021. D3D12_SHADER_VISIBILITY_VERTEX = 1,
  3022. D3D12_SHADER_VISIBILITY_HULL = 2,
  3023. D3D12_SHADER_VISIBILITY_DOMAIN = 3,
  3024. D3D12_SHADER_VISIBILITY_GEOMETRY = 4,
  3025. D3D12_SHADER_VISIBILITY_PIXEL = 5,
  3026. D3D12_SHADER_VISIBILITY_AMPLIFICATION = 6,
  3027. D3D12_SHADER_VISIBILITY_MESH = 7
  3028. } D3D12_SHADER_VISIBILITY;
  3029. typedef
  3030. enum D3D12_ROOT_PARAMETER_TYPE
  3031. {
  3032. D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE = 0,
  3033. D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS = ( D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE + 1 ) ,
  3034. D3D12_ROOT_PARAMETER_TYPE_CBV = ( D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS + 1 ) ,
  3035. D3D12_ROOT_PARAMETER_TYPE_SRV = ( D3D12_ROOT_PARAMETER_TYPE_CBV + 1 ) ,
  3036. D3D12_ROOT_PARAMETER_TYPE_UAV = ( D3D12_ROOT_PARAMETER_TYPE_SRV + 1 )
  3037. } D3D12_ROOT_PARAMETER_TYPE;
  3038. typedef struct D3D12_ROOT_PARAMETER
  3039. {
  3040. D3D12_ROOT_PARAMETER_TYPE ParameterType;
  3041. union
  3042. {
  3043. D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable;
  3044. D3D12_ROOT_CONSTANTS Constants;
  3045. D3D12_ROOT_DESCRIPTOR Descriptor;
  3046. } ;
  3047. D3D12_SHADER_VISIBILITY ShaderVisibility;
  3048. } D3D12_ROOT_PARAMETER;
  3049. typedef
  3050. enum D3D12_ROOT_SIGNATURE_FLAGS
  3051. {
  3052. D3D12_ROOT_SIGNATURE_FLAG_NONE = 0,
  3053. D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT = 0x1,
  3054. D3D12_ROOT_SIGNATURE_FLAG_DENY_VERTEX_SHADER_ROOT_ACCESS = 0x2,
  3055. D3D12_ROOT_SIGNATURE_FLAG_DENY_HULL_SHADER_ROOT_ACCESS = 0x4,
  3056. D3D12_ROOT_SIGNATURE_FLAG_DENY_DOMAIN_SHADER_ROOT_ACCESS = 0x8,
  3057. D3D12_ROOT_SIGNATURE_FLAG_DENY_GEOMETRY_SHADER_ROOT_ACCESS = 0x10,
  3058. D3D12_ROOT_SIGNATURE_FLAG_DENY_PIXEL_SHADER_ROOT_ACCESS = 0x20,
  3059. D3D12_ROOT_SIGNATURE_FLAG_ALLOW_STREAM_OUTPUT = 0x40,
  3060. D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE = 0x80,
  3061. D3D12_ROOT_SIGNATURE_FLAG_DENY_AMPLIFICATION_SHADER_ROOT_ACCESS = 0x100,
  3062. D3D12_ROOT_SIGNATURE_FLAG_DENY_MESH_SHADER_ROOT_ACCESS = 0x200,
  3063. D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED = 0x400,
  3064. D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED = 0x800
  3065. } D3D12_ROOT_SIGNATURE_FLAGS;
  3066. DEFINE_ENUM_FLAG_OPERATORS( D3D12_ROOT_SIGNATURE_FLAGS )
  3067. typedef
  3068. enum D3D12_STATIC_BORDER_COLOR
  3069. {
  3070. D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK = 0,
  3071. D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK = ( D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK + 1 ) ,
  3072. D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK + 1 ) ,
  3073. D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE + 1 ) ,
  3074. D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE_UINT = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT + 1 )
  3075. } D3D12_STATIC_BORDER_COLOR;
  3076. typedef struct D3D12_STATIC_SAMPLER_DESC
  3077. {
  3078. D3D12_FILTER Filter;
  3079. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  3080. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  3081. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  3082. FLOAT MipLODBias;
  3083. UINT MaxAnisotropy;
  3084. D3D12_COMPARISON_FUNC ComparisonFunc;
  3085. D3D12_STATIC_BORDER_COLOR BorderColor;
  3086. FLOAT MinLOD;
  3087. FLOAT MaxLOD;
  3088. UINT ShaderRegister;
  3089. UINT RegisterSpace;
  3090. D3D12_SHADER_VISIBILITY ShaderVisibility;
  3091. } D3D12_STATIC_SAMPLER_DESC;
  3092. typedef struct D3D12_STATIC_SAMPLER_DESC1
  3093. {
  3094. D3D12_FILTER Filter;
  3095. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  3096. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  3097. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  3098. FLOAT MipLODBias;
  3099. UINT MaxAnisotropy;
  3100. D3D12_COMPARISON_FUNC ComparisonFunc;
  3101. D3D12_STATIC_BORDER_COLOR BorderColor;
  3102. FLOAT MinLOD;
  3103. FLOAT MaxLOD;
  3104. UINT ShaderRegister;
  3105. UINT RegisterSpace;
  3106. D3D12_SHADER_VISIBILITY ShaderVisibility;
  3107. D3D12_SAMPLER_FLAGS Flags;
  3108. } D3D12_STATIC_SAMPLER_DESC1;
  3109. typedef struct D3D12_ROOT_SIGNATURE_DESC
  3110. {
  3111. UINT NumParameters;
  3112. _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER *pParameters;
  3113. UINT NumStaticSamplers;
  3114. _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers;
  3115. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  3116. } D3D12_ROOT_SIGNATURE_DESC;
  3117. typedef
  3118. enum D3D12_DESCRIPTOR_RANGE_FLAGS
  3119. {
  3120. D3D12_DESCRIPTOR_RANGE_FLAG_NONE = 0,
  3121. D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_VOLATILE = 0x1,
  3122. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_VOLATILE = 0x2,
  3123. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4,
  3124. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC = 0x8,
  3125. D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS = 0x10000
  3126. } D3D12_DESCRIPTOR_RANGE_FLAGS;
  3127. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DESCRIPTOR_RANGE_FLAGS )
  3128. typedef struct D3D12_DESCRIPTOR_RANGE1
  3129. {
  3130. D3D12_DESCRIPTOR_RANGE_TYPE RangeType;
  3131. UINT NumDescriptors;
  3132. UINT BaseShaderRegister;
  3133. UINT RegisterSpace;
  3134. D3D12_DESCRIPTOR_RANGE_FLAGS Flags;
  3135. UINT OffsetInDescriptorsFromTableStart;
  3136. } D3D12_DESCRIPTOR_RANGE1;
  3137. typedef struct D3D12_ROOT_DESCRIPTOR_TABLE1
  3138. {
  3139. UINT NumDescriptorRanges;
  3140. _Field_size_full_(NumDescriptorRanges) const D3D12_DESCRIPTOR_RANGE1 *pDescriptorRanges;
  3141. } D3D12_ROOT_DESCRIPTOR_TABLE1;
  3142. typedef
  3143. enum D3D12_ROOT_DESCRIPTOR_FLAGS
  3144. {
  3145. D3D12_ROOT_DESCRIPTOR_FLAG_NONE = 0,
  3146. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_VOLATILE = 0x2,
  3147. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4,
  3148. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC = 0x8
  3149. } D3D12_ROOT_DESCRIPTOR_FLAGS;
  3150. DEFINE_ENUM_FLAG_OPERATORS( D3D12_ROOT_DESCRIPTOR_FLAGS )
  3151. typedef struct D3D12_ROOT_DESCRIPTOR1
  3152. {
  3153. UINT ShaderRegister;
  3154. UINT RegisterSpace;
  3155. D3D12_ROOT_DESCRIPTOR_FLAGS Flags;
  3156. } D3D12_ROOT_DESCRIPTOR1;
  3157. typedef struct D3D12_ROOT_PARAMETER1
  3158. {
  3159. D3D12_ROOT_PARAMETER_TYPE ParameterType;
  3160. union
  3161. {
  3162. D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable;
  3163. D3D12_ROOT_CONSTANTS Constants;
  3164. D3D12_ROOT_DESCRIPTOR1 Descriptor;
  3165. } ;
  3166. D3D12_SHADER_VISIBILITY ShaderVisibility;
  3167. } D3D12_ROOT_PARAMETER1;
  3168. typedef struct D3D12_ROOT_SIGNATURE_DESC1
  3169. {
  3170. UINT NumParameters;
  3171. _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER1 *pParameters;
  3172. UINT NumStaticSamplers;
  3173. _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers;
  3174. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  3175. } D3D12_ROOT_SIGNATURE_DESC1;
  3176. typedef struct D3D12_ROOT_SIGNATURE_DESC2
  3177. {
  3178. UINT NumParameters;
  3179. _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER1 *pParameters;
  3180. UINT NumStaticSamplers;
  3181. _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC1 *pStaticSamplers;
  3182. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  3183. } D3D12_ROOT_SIGNATURE_DESC2;
  3184. typedef struct D3D12_VERSIONED_ROOT_SIGNATURE_DESC
  3185. {
  3186. D3D_ROOT_SIGNATURE_VERSION Version;
  3187. union
  3188. {
  3189. D3D12_ROOT_SIGNATURE_DESC Desc_1_0;
  3190. D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1;
  3191. D3D12_ROOT_SIGNATURE_DESC2 Desc_1_2;
  3192. } ;
  3193. } D3D12_VERSIONED_ROOT_SIGNATURE_DESC;
  3194. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0001_v0_0_c_ifspec;
  3195. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0001_v0_0_s_ifspec;
  3196. #ifndef __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__
  3197. #define __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__
  3198. /* interface ID3D12RootSignatureDeserializer */
  3199. /* [unique][local][object][uuid] */
  3200. EXTERN_C const IID IID_ID3D12RootSignatureDeserializer;
  3201. #if defined(__cplusplus) && !defined(CINTERFACE)
  3202. MIDL_INTERFACE("34AB647B-3CC8-46AC-841B-C0965645C046")
  3203. ID3D12RootSignatureDeserializer : public IUnknown
  3204. {
  3205. public:
  3206. virtual const D3D12_ROOT_SIGNATURE_DESC *STDMETHODCALLTYPE GetRootSignatureDesc( void) = 0;
  3207. };
  3208. #else /* C style interface */
  3209. typedef struct ID3D12RootSignatureDeserializerVtbl
  3210. {
  3211. BEGIN_INTERFACE
  3212. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3213. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3214. ID3D12RootSignatureDeserializer * This,
  3215. REFIID riid,
  3216. _COM_Outptr_ void **ppvObject);
  3217. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3218. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3219. ID3D12RootSignatureDeserializer * This);
  3220. DECLSPEC_XFGVIRT(IUnknown, Release)
  3221. ULONG ( STDMETHODCALLTYPE *Release )(
  3222. ID3D12RootSignatureDeserializer * This);
  3223. DECLSPEC_XFGVIRT(ID3D12RootSignatureDeserializer, GetRootSignatureDesc)
  3224. const D3D12_ROOT_SIGNATURE_DESC *( STDMETHODCALLTYPE *GetRootSignatureDesc )(
  3225. ID3D12RootSignatureDeserializer * This);
  3226. END_INTERFACE
  3227. } ID3D12RootSignatureDeserializerVtbl;
  3228. interface ID3D12RootSignatureDeserializer
  3229. {
  3230. CONST_VTBL struct ID3D12RootSignatureDeserializerVtbl *lpVtbl;
  3231. };
  3232. #ifdef COBJMACROS
  3233. #define ID3D12RootSignatureDeserializer_QueryInterface(This,riid,ppvObject) \
  3234. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3235. #define ID3D12RootSignatureDeserializer_AddRef(This) \
  3236. ( (This)->lpVtbl -> AddRef(This) )
  3237. #define ID3D12RootSignatureDeserializer_Release(This) \
  3238. ( (This)->lpVtbl -> Release(This) )
  3239. #define ID3D12RootSignatureDeserializer_GetRootSignatureDesc(This) \
  3240. ( (This)->lpVtbl -> GetRootSignatureDesc(This) )
  3241. #endif /* COBJMACROS */
  3242. #endif /* C style interface */
  3243. #endif /* __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__ */
  3244. #ifndef __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__
  3245. #define __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__
  3246. /* interface ID3D12VersionedRootSignatureDeserializer */
  3247. /* [unique][local][object][uuid] */
  3248. EXTERN_C const IID IID_ID3D12VersionedRootSignatureDeserializer;
  3249. #if defined(__cplusplus) && !defined(CINTERFACE)
  3250. MIDL_INTERFACE("7F91CE67-090C-4BB7-B78E-ED8FF2E31DA0")
  3251. ID3D12VersionedRootSignatureDeserializer : public IUnknown
  3252. {
  3253. public:
  3254. virtual HRESULT STDMETHODCALLTYPE GetRootSignatureDescAtVersion(
  3255. D3D_ROOT_SIGNATURE_VERSION convertToVersion,
  3256. _Out_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **ppDesc) = 0;
  3257. virtual const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *STDMETHODCALLTYPE GetUnconvertedRootSignatureDesc( void) = 0;
  3258. };
  3259. #else /* C style interface */
  3260. typedef struct ID3D12VersionedRootSignatureDeserializerVtbl
  3261. {
  3262. BEGIN_INTERFACE
  3263. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3264. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3265. ID3D12VersionedRootSignatureDeserializer * This,
  3266. REFIID riid,
  3267. _COM_Outptr_ void **ppvObject);
  3268. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3269. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3270. ID3D12VersionedRootSignatureDeserializer * This);
  3271. DECLSPEC_XFGVIRT(IUnknown, Release)
  3272. ULONG ( STDMETHODCALLTYPE *Release )(
  3273. ID3D12VersionedRootSignatureDeserializer * This);
  3274. DECLSPEC_XFGVIRT(ID3D12VersionedRootSignatureDeserializer, GetRootSignatureDescAtVersion)
  3275. HRESULT ( STDMETHODCALLTYPE *GetRootSignatureDescAtVersion )(
  3276. ID3D12VersionedRootSignatureDeserializer * This,
  3277. D3D_ROOT_SIGNATURE_VERSION convertToVersion,
  3278. _Out_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **ppDesc);
  3279. DECLSPEC_XFGVIRT(ID3D12VersionedRootSignatureDeserializer, GetUnconvertedRootSignatureDesc)
  3280. const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *( STDMETHODCALLTYPE *GetUnconvertedRootSignatureDesc )(
  3281. ID3D12VersionedRootSignatureDeserializer * This);
  3282. END_INTERFACE
  3283. } ID3D12VersionedRootSignatureDeserializerVtbl;
  3284. interface ID3D12VersionedRootSignatureDeserializer
  3285. {
  3286. CONST_VTBL struct ID3D12VersionedRootSignatureDeserializerVtbl *lpVtbl;
  3287. };
  3288. #ifdef COBJMACROS
  3289. #define ID3D12VersionedRootSignatureDeserializer_QueryInterface(This,riid,ppvObject) \
  3290. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3291. #define ID3D12VersionedRootSignatureDeserializer_AddRef(This) \
  3292. ( (This)->lpVtbl -> AddRef(This) )
  3293. #define ID3D12VersionedRootSignatureDeserializer_Release(This) \
  3294. ( (This)->lpVtbl -> Release(This) )
  3295. #define ID3D12VersionedRootSignatureDeserializer_GetRootSignatureDescAtVersion(This,convertToVersion,ppDesc) \
  3296. ( (This)->lpVtbl -> GetRootSignatureDescAtVersion(This,convertToVersion,ppDesc) )
  3297. #define ID3D12VersionedRootSignatureDeserializer_GetUnconvertedRootSignatureDesc(This) \
  3298. ( (This)->lpVtbl -> GetUnconvertedRootSignatureDesc(This) )
  3299. #endif /* COBJMACROS */
  3300. #endif /* C style interface */
  3301. #endif /* __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__ */
  3302. /* interface __MIDL_itf_d3d12_0000_0003 */
  3303. /* [local] */
  3304. typedef HRESULT (WINAPI* PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(
  3305. _In_ const D3D12_ROOT_SIGNATURE_DESC* pRootSignature,
  3306. _In_ D3D_ROOT_SIGNATURE_VERSION Version,
  3307. _Out_ ID3DBlob** ppBlob,
  3308. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3309. HRESULT WINAPI D3D12SerializeRootSignature(
  3310. _In_ const D3D12_ROOT_SIGNATURE_DESC* pRootSignature,
  3311. _In_ D3D_ROOT_SIGNATURE_VERSION Version,
  3312. _Out_ ID3DBlob** ppBlob,
  3313. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3314. typedef HRESULT (WINAPI* PFN_D3D12_CREATE_ROOT_SIGNATURE_DESERIALIZER)(
  3315. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3316. _In_ SIZE_T SrcDataSizeInBytes,
  3317. _In_ REFIID pRootSignatureDeserializerInterface,
  3318. _Out_ void** ppRootSignatureDeserializer);
  3319. HRESULT WINAPI D3D12CreateRootSignatureDeserializer(
  3320. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3321. _In_ SIZE_T SrcDataSizeInBytes,
  3322. _In_ REFIID pRootSignatureDeserializerInterface,
  3323. _Out_ void** ppRootSignatureDeserializer);
  3324. typedef HRESULT (WINAPI* PFN_D3D12_SERIALIZE_VERSIONED_ROOT_SIGNATURE)(
  3325. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature,
  3326. _Out_ ID3DBlob** ppBlob,
  3327. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3328. HRESULT WINAPI D3D12SerializeVersionedRootSignature(
  3329. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature,
  3330. _Out_ ID3DBlob** ppBlob,
  3331. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3332. typedef HRESULT (WINAPI* PFN_D3D12_CREATE_VERSIONED_ROOT_SIGNATURE_DESERIALIZER)(
  3333. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3334. _In_ SIZE_T SrcDataSizeInBytes,
  3335. _In_ REFIID pRootSignatureDeserializerInterface,
  3336. _Out_ void** ppRootSignatureDeserializer);
  3337. HRESULT WINAPI D3D12CreateVersionedRootSignatureDeserializer(
  3338. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3339. _In_ SIZE_T SrcDataSizeInBytes,
  3340. _In_ REFIID pRootSignatureDeserializerInterface,
  3341. _Out_ void** ppRootSignatureDeserializer);
  3342. typedef HRESULT (WINAPI* PFN_D3D12_CREATE_VERSIONED_ROOT_SIGNATURE_DESERIALIZER_FROM_SUBOBJECT_IN_LIBRARY)(
  3343. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3344. _In_ SIZE_T SrcDataSizeInBytes,
  3345. _In_ LPCWSTR RootSignatureSubobjectName,
  3346. _In_ REFIID pRootSignatureDeserializerInterface,
  3347. _Out_ void** ppRootSignatureDeserializer);
  3348. HRESULT WINAPI D3D12CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(
  3349. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3350. _In_ SIZE_T SrcDataSizeInBytes,
  3351. _In_opt_ LPCWSTR RootSignatureSubobjectName,
  3352. _In_ REFIID pRootSignatureDeserializerInterface,
  3353. _Out_ void** ppRootSignatureDeserializer);
  3354. typedef struct D3D12_CPU_DESCRIPTOR_HANDLE
  3355. {
  3356. SIZE_T ptr;
  3357. } D3D12_CPU_DESCRIPTOR_HANDLE;
  3358. typedef struct D3D12_GPU_DESCRIPTOR_HANDLE
  3359. {
  3360. UINT64 ptr;
  3361. } D3D12_GPU_DESCRIPTOR_HANDLE;
  3362. // If rects are supplied in D3D12_DISCARD_REGION, below, the resource
  3363. // must have 2D subresources with all specified subresources the same dimension.
  3364. typedef struct D3D12_DISCARD_REGION
  3365. {
  3366. UINT NumRects;
  3367. _In_reads_(NumRects) const D3D12_RECT *pRects;
  3368. UINT FirstSubresource;
  3369. UINT NumSubresources;
  3370. } D3D12_DISCARD_REGION;
  3371. typedef
  3372. enum D3D12_QUERY_HEAP_TYPE
  3373. {
  3374. D3D12_QUERY_HEAP_TYPE_OCCLUSION = 0,
  3375. D3D12_QUERY_HEAP_TYPE_TIMESTAMP = 1,
  3376. D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS = 2,
  3377. D3D12_QUERY_HEAP_TYPE_SO_STATISTICS = 3,
  3378. D3D12_QUERY_HEAP_TYPE_VIDEO_DECODE_STATISTICS = 4,
  3379. D3D12_QUERY_HEAP_TYPE_COPY_QUEUE_TIMESTAMP = 5,
  3380. D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS1 = 7
  3381. } D3D12_QUERY_HEAP_TYPE;
  3382. typedef struct D3D12_QUERY_HEAP_DESC
  3383. {
  3384. D3D12_QUERY_HEAP_TYPE Type;
  3385. UINT Count;
  3386. UINT NodeMask;
  3387. } D3D12_QUERY_HEAP_DESC;
  3388. typedef
  3389. enum D3D12_QUERY_TYPE
  3390. {
  3391. D3D12_QUERY_TYPE_OCCLUSION = 0,
  3392. D3D12_QUERY_TYPE_BINARY_OCCLUSION = 1,
  3393. D3D12_QUERY_TYPE_TIMESTAMP = 2,
  3394. D3D12_QUERY_TYPE_PIPELINE_STATISTICS = 3,
  3395. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM0 = 4,
  3396. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM1 = 5,
  3397. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM2 = 6,
  3398. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM3 = 7,
  3399. D3D12_QUERY_TYPE_VIDEO_DECODE_STATISTICS = 8,
  3400. D3D12_QUERY_TYPE_PIPELINE_STATISTICS1 = 10
  3401. } D3D12_QUERY_TYPE;
  3402. typedef
  3403. enum D3D12_PREDICATION_OP
  3404. {
  3405. D3D12_PREDICATION_OP_EQUAL_ZERO = 0,
  3406. D3D12_PREDICATION_OP_NOT_EQUAL_ZERO = 1
  3407. } D3D12_PREDICATION_OP;
  3408. typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS
  3409. {
  3410. UINT64 IAVertices;
  3411. UINT64 IAPrimitives;
  3412. UINT64 VSInvocations;
  3413. UINT64 GSInvocations;
  3414. UINT64 GSPrimitives;
  3415. UINT64 CInvocations;
  3416. UINT64 CPrimitives;
  3417. UINT64 PSInvocations;
  3418. UINT64 HSInvocations;
  3419. UINT64 DSInvocations;
  3420. UINT64 CSInvocations;
  3421. } D3D12_QUERY_DATA_PIPELINE_STATISTICS;
  3422. typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS1
  3423. {
  3424. UINT64 IAVertices;
  3425. UINT64 IAPrimitives;
  3426. UINT64 VSInvocations;
  3427. UINT64 GSInvocations;
  3428. UINT64 GSPrimitives;
  3429. UINT64 CInvocations;
  3430. UINT64 CPrimitives;
  3431. UINT64 PSInvocations;
  3432. UINT64 HSInvocations;
  3433. UINT64 DSInvocations;
  3434. UINT64 CSInvocations;
  3435. UINT64 ASInvocations;
  3436. UINT64 MSInvocations;
  3437. UINT64 MSPrimitives;
  3438. } D3D12_QUERY_DATA_PIPELINE_STATISTICS1;
  3439. typedef struct D3D12_QUERY_DATA_SO_STATISTICS
  3440. {
  3441. UINT64 NumPrimitivesWritten;
  3442. UINT64 PrimitivesStorageNeeded;
  3443. } D3D12_QUERY_DATA_SO_STATISTICS;
  3444. typedef struct D3D12_STREAM_OUTPUT_BUFFER_VIEW
  3445. {
  3446. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  3447. UINT64 SizeInBytes;
  3448. D3D12_GPU_VIRTUAL_ADDRESS BufferFilledSizeLocation;
  3449. } D3D12_STREAM_OUTPUT_BUFFER_VIEW;
  3450. typedef struct D3D12_DRAW_ARGUMENTS
  3451. {
  3452. UINT VertexCountPerInstance;
  3453. UINT InstanceCount;
  3454. UINT StartVertexLocation;
  3455. UINT StartInstanceLocation;
  3456. } D3D12_DRAW_ARGUMENTS;
  3457. typedef struct D3D12_DRAW_INDEXED_ARGUMENTS
  3458. {
  3459. UINT IndexCountPerInstance;
  3460. UINT InstanceCount;
  3461. UINT StartIndexLocation;
  3462. INT BaseVertexLocation;
  3463. UINT StartInstanceLocation;
  3464. } D3D12_DRAW_INDEXED_ARGUMENTS;
  3465. typedef struct D3D12_DISPATCH_ARGUMENTS
  3466. {
  3467. UINT ThreadGroupCountX;
  3468. UINT ThreadGroupCountY;
  3469. UINT ThreadGroupCountZ;
  3470. } D3D12_DISPATCH_ARGUMENTS;
  3471. typedef struct D3D12_VERTEX_BUFFER_VIEW
  3472. {
  3473. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  3474. UINT SizeInBytes;
  3475. UINT StrideInBytes;
  3476. } D3D12_VERTEX_BUFFER_VIEW;
  3477. typedef struct D3D12_INDEX_BUFFER_VIEW
  3478. {
  3479. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  3480. UINT SizeInBytes;
  3481. DXGI_FORMAT Format;
  3482. } D3D12_INDEX_BUFFER_VIEW;
  3483. typedef
  3484. enum D3D12_INDIRECT_ARGUMENT_TYPE
  3485. {
  3486. D3D12_INDIRECT_ARGUMENT_TYPE_DRAW = 0,
  3487. D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED = ( D3D12_INDIRECT_ARGUMENT_TYPE_DRAW + 1 ) ,
  3488. D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH = ( D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED + 1 ) ,
  3489. D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH + 1 ) ,
  3490. D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW + 1 ) ,
  3491. D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT = ( D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW + 1 ) ,
  3492. D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT + 1 ) ,
  3493. D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW + 1 ) ,
  3494. D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW + 1 ) ,
  3495. D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS = ( D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW + 1 ) ,
  3496. D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS + 1 ) ,
  3497. D3D12_INDIRECT_ARGUMENT_TYPE_INCREMENTING_CONSTANT = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH + 1 )
  3498. } D3D12_INDIRECT_ARGUMENT_TYPE;
  3499. typedef struct D3D12_INDIRECT_ARGUMENT_DESC
  3500. {
  3501. D3D12_INDIRECT_ARGUMENT_TYPE Type;
  3502. union
  3503. {
  3504. struct
  3505. {
  3506. UINT Slot;
  3507. } VertexBuffer;
  3508. struct
  3509. {
  3510. UINT RootParameterIndex;
  3511. UINT DestOffsetIn32BitValues;
  3512. UINT Num32BitValuesToSet;
  3513. } Constant;
  3514. struct
  3515. {
  3516. UINT RootParameterIndex;
  3517. } ConstantBufferView;
  3518. struct
  3519. {
  3520. UINT RootParameterIndex;
  3521. } ShaderResourceView;
  3522. struct
  3523. {
  3524. UINT RootParameterIndex;
  3525. } UnorderedAccessView;
  3526. struct
  3527. {
  3528. UINT RootParameterIndex;
  3529. UINT DestOffsetIn32BitValues;
  3530. } IncrementingConstant;
  3531. } ;
  3532. } D3D12_INDIRECT_ARGUMENT_DESC;
  3533. typedef struct D3D12_COMMAND_SIGNATURE_DESC
  3534. {
  3535. UINT ByteStride;
  3536. UINT NumArgumentDescs;
  3537. _Field_size_full_(NumArgumentDescs) const D3D12_INDIRECT_ARGUMENT_DESC *pArgumentDescs;
  3538. UINT NodeMask;
  3539. } D3D12_COMMAND_SIGNATURE_DESC;
  3540. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0003_v0_0_c_ifspec;
  3541. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0003_v0_0_s_ifspec;
  3542. #ifndef __ID3D12Pageable_INTERFACE_DEFINED__
  3543. #define __ID3D12Pageable_INTERFACE_DEFINED__
  3544. /* interface ID3D12Pageable */
  3545. /* [unique][local][object][uuid] */
  3546. EXTERN_C const IID IID_ID3D12Pageable;
  3547. #if defined(__cplusplus) && !defined(CINTERFACE)
  3548. MIDL_INTERFACE("63ee58fb-1268-4835-86da-f008ce62f0d6")
  3549. ID3D12Pageable : public ID3D12DeviceChild
  3550. {
  3551. public:
  3552. };
  3553. #else /* C style interface */
  3554. typedef struct ID3D12PageableVtbl
  3555. {
  3556. BEGIN_INTERFACE
  3557. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3558. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3559. ID3D12Pageable * This,
  3560. REFIID riid,
  3561. _COM_Outptr_ void **ppvObject);
  3562. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3563. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3564. ID3D12Pageable * This);
  3565. DECLSPEC_XFGVIRT(IUnknown, Release)
  3566. ULONG ( STDMETHODCALLTYPE *Release )(
  3567. ID3D12Pageable * This);
  3568. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3569. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3570. ID3D12Pageable * This,
  3571. _In_ REFGUID guid,
  3572. _Inout_ UINT *pDataSize,
  3573. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3574. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3575. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3576. ID3D12Pageable * This,
  3577. _In_ REFGUID guid,
  3578. _In_ UINT DataSize,
  3579. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3580. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3581. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3582. ID3D12Pageable * This,
  3583. _In_ REFGUID guid,
  3584. _In_opt_ const IUnknown *pData);
  3585. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3586. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3587. ID3D12Pageable * This,
  3588. _In_z_ LPCWSTR Name);
  3589. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3590. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3591. ID3D12Pageable * This,
  3592. REFIID riid,
  3593. _COM_Outptr_opt_ void **ppvDevice);
  3594. END_INTERFACE
  3595. } ID3D12PageableVtbl;
  3596. interface ID3D12Pageable
  3597. {
  3598. CONST_VTBL struct ID3D12PageableVtbl *lpVtbl;
  3599. };
  3600. #ifdef COBJMACROS
  3601. #define ID3D12Pageable_QueryInterface(This,riid,ppvObject) \
  3602. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3603. #define ID3D12Pageable_AddRef(This) \
  3604. ( (This)->lpVtbl -> AddRef(This) )
  3605. #define ID3D12Pageable_Release(This) \
  3606. ( (This)->lpVtbl -> Release(This) )
  3607. #define ID3D12Pageable_GetPrivateData(This,guid,pDataSize,pData) \
  3608. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3609. #define ID3D12Pageable_SetPrivateData(This,guid,DataSize,pData) \
  3610. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3611. #define ID3D12Pageable_SetPrivateDataInterface(This,guid,pData) \
  3612. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3613. #define ID3D12Pageable_SetName(This,Name) \
  3614. ( (This)->lpVtbl -> SetName(This,Name) )
  3615. #define ID3D12Pageable_GetDevice(This,riid,ppvDevice) \
  3616. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3617. #endif /* COBJMACROS */
  3618. #endif /* C style interface */
  3619. #endif /* __ID3D12Pageable_INTERFACE_DEFINED__ */
  3620. #ifndef __ID3D12Heap_INTERFACE_DEFINED__
  3621. #define __ID3D12Heap_INTERFACE_DEFINED__
  3622. /* interface ID3D12Heap */
  3623. /* [unique][local][object][uuid] */
  3624. EXTERN_C const IID IID_ID3D12Heap;
  3625. #if defined(__cplusplus) && !defined(CINTERFACE)
  3626. MIDL_INTERFACE("6b3b2502-6e51-45b3-90ee-9884265e8df3")
  3627. ID3D12Heap : public ID3D12Pageable
  3628. {
  3629. public:
  3630. #if defined(_MSC_VER) || !defined(_WIN32)
  3631. virtual D3D12_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  3632. #else
  3633. virtual D3D12_HEAP_DESC *STDMETHODCALLTYPE GetDesc(
  3634. D3D12_HEAP_DESC * RetVal) = 0;
  3635. #endif
  3636. };
  3637. #else /* C style interface */
  3638. typedef struct ID3D12HeapVtbl
  3639. {
  3640. BEGIN_INTERFACE
  3641. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3642. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3643. ID3D12Heap * This,
  3644. REFIID riid,
  3645. _COM_Outptr_ void **ppvObject);
  3646. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3647. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3648. ID3D12Heap * This);
  3649. DECLSPEC_XFGVIRT(IUnknown, Release)
  3650. ULONG ( STDMETHODCALLTYPE *Release )(
  3651. ID3D12Heap * This);
  3652. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3653. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3654. ID3D12Heap * This,
  3655. _In_ REFGUID guid,
  3656. _Inout_ UINT *pDataSize,
  3657. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3658. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3659. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3660. ID3D12Heap * This,
  3661. _In_ REFGUID guid,
  3662. _In_ UINT DataSize,
  3663. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3664. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3665. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3666. ID3D12Heap * This,
  3667. _In_ REFGUID guid,
  3668. _In_opt_ const IUnknown *pData);
  3669. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3670. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3671. ID3D12Heap * This,
  3672. _In_z_ LPCWSTR Name);
  3673. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3674. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3675. ID3D12Heap * This,
  3676. REFIID riid,
  3677. _COM_Outptr_opt_ void **ppvDevice);
  3678. DECLSPEC_XFGVIRT(ID3D12Heap, GetDesc)
  3679. #if !defined(_WIN32)
  3680. D3D12_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )(
  3681. ID3D12Heap * This);
  3682. #else
  3683. D3D12_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )(
  3684. ID3D12Heap * This,
  3685. D3D12_HEAP_DESC * RetVal);
  3686. #endif
  3687. END_INTERFACE
  3688. } ID3D12HeapVtbl;
  3689. interface ID3D12Heap
  3690. {
  3691. CONST_VTBL struct ID3D12HeapVtbl *lpVtbl;
  3692. };
  3693. #ifdef COBJMACROS
  3694. #define ID3D12Heap_QueryInterface(This,riid,ppvObject) \
  3695. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3696. #define ID3D12Heap_AddRef(This) \
  3697. ( (This)->lpVtbl -> AddRef(This) )
  3698. #define ID3D12Heap_Release(This) \
  3699. ( (This)->lpVtbl -> Release(This) )
  3700. #define ID3D12Heap_GetPrivateData(This,guid,pDataSize,pData) \
  3701. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3702. #define ID3D12Heap_SetPrivateData(This,guid,DataSize,pData) \
  3703. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3704. #define ID3D12Heap_SetPrivateDataInterface(This,guid,pData) \
  3705. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3706. #define ID3D12Heap_SetName(This,Name) \
  3707. ( (This)->lpVtbl -> SetName(This,Name) )
  3708. #define ID3D12Heap_GetDevice(This,riid,ppvDevice) \
  3709. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3710. #if !defined(_WIN32)
  3711. #define ID3D12Heap_GetDesc(This) \
  3712. ( (This)->lpVtbl -> GetDesc(This) )
  3713. #else
  3714. #define ID3D12Heap_GetDesc(This,RetVal) \
  3715. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  3716. #endif
  3717. #endif /* COBJMACROS */
  3718. #endif /* C style interface */
  3719. #endif /* __ID3D12Heap_INTERFACE_DEFINED__ */
  3720. #ifndef __ID3D12Resource_INTERFACE_DEFINED__
  3721. #define __ID3D12Resource_INTERFACE_DEFINED__
  3722. /* interface ID3D12Resource */
  3723. /* [unique][local][object][uuid] */
  3724. EXTERN_C const IID IID_ID3D12Resource;
  3725. #if defined(__cplusplus) && !defined(CINTERFACE)
  3726. MIDL_INTERFACE("696442be-a72e-4059-bc79-5b5c98040fad")
  3727. ID3D12Resource : public ID3D12Pageable
  3728. {
  3729. public:
  3730. virtual HRESULT STDMETHODCALLTYPE Map(
  3731. UINT Subresource,
  3732. _In_opt_ const D3D12_RANGE *pReadRange,
  3733. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData) = 0;
  3734. virtual void STDMETHODCALLTYPE Unmap(
  3735. UINT Subresource,
  3736. _In_opt_ const D3D12_RANGE *pWrittenRange) = 0;
  3737. #if defined(_MSC_VER) || !defined(_WIN32)
  3738. virtual D3D12_RESOURCE_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  3739. #else
  3740. virtual D3D12_RESOURCE_DESC *STDMETHODCALLTYPE GetDesc(
  3741. D3D12_RESOURCE_DESC * RetVal) = 0;
  3742. #endif
  3743. virtual D3D12_GPU_VIRTUAL_ADDRESS STDMETHODCALLTYPE GetGPUVirtualAddress( void) = 0;
  3744. virtual HRESULT STDMETHODCALLTYPE WriteToSubresource(
  3745. UINT DstSubresource,
  3746. _In_opt_ const D3D12_BOX *pDstBox,
  3747. _In_ const void *pSrcData,
  3748. UINT SrcRowPitch,
  3749. UINT SrcDepthPitch) = 0;
  3750. virtual HRESULT STDMETHODCALLTYPE ReadFromSubresource(
  3751. _Out_ void *pDstData,
  3752. UINT DstRowPitch,
  3753. UINT DstDepthPitch,
  3754. UINT SrcSubresource,
  3755. _In_opt_ const D3D12_BOX *pSrcBox) = 0;
  3756. virtual HRESULT STDMETHODCALLTYPE GetHeapProperties(
  3757. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  3758. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags) = 0;
  3759. };
  3760. #else /* C style interface */
  3761. typedef struct ID3D12ResourceVtbl
  3762. {
  3763. BEGIN_INTERFACE
  3764. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3765. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3766. ID3D12Resource * This,
  3767. REFIID riid,
  3768. _COM_Outptr_ void **ppvObject);
  3769. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3770. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3771. ID3D12Resource * This);
  3772. DECLSPEC_XFGVIRT(IUnknown, Release)
  3773. ULONG ( STDMETHODCALLTYPE *Release )(
  3774. ID3D12Resource * This);
  3775. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3776. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3777. ID3D12Resource * This,
  3778. _In_ REFGUID guid,
  3779. _Inout_ UINT *pDataSize,
  3780. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3781. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3782. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3783. ID3D12Resource * This,
  3784. _In_ REFGUID guid,
  3785. _In_ UINT DataSize,
  3786. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3787. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3788. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3789. ID3D12Resource * This,
  3790. _In_ REFGUID guid,
  3791. _In_opt_ const IUnknown *pData);
  3792. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3793. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3794. ID3D12Resource * This,
  3795. _In_z_ LPCWSTR Name);
  3796. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3797. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3798. ID3D12Resource * This,
  3799. REFIID riid,
  3800. _COM_Outptr_opt_ void **ppvDevice);
  3801. DECLSPEC_XFGVIRT(ID3D12Resource, Map)
  3802. HRESULT ( STDMETHODCALLTYPE *Map )(
  3803. ID3D12Resource * This,
  3804. UINT Subresource,
  3805. _In_opt_ const D3D12_RANGE *pReadRange,
  3806. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData);
  3807. DECLSPEC_XFGVIRT(ID3D12Resource, Unmap)
  3808. void ( STDMETHODCALLTYPE *Unmap )(
  3809. ID3D12Resource * This,
  3810. UINT Subresource,
  3811. _In_opt_ const D3D12_RANGE *pWrittenRange);
  3812. DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc)
  3813. #if !defined(_WIN32)
  3814. D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  3815. ID3D12Resource * This);
  3816. #else
  3817. D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  3818. ID3D12Resource * This,
  3819. D3D12_RESOURCE_DESC * RetVal);
  3820. #endif
  3821. DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress)
  3822. D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )(
  3823. ID3D12Resource * This);
  3824. DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource)
  3825. HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )(
  3826. ID3D12Resource * This,
  3827. UINT DstSubresource,
  3828. _In_opt_ const D3D12_BOX *pDstBox,
  3829. _In_ const void *pSrcData,
  3830. UINT SrcRowPitch,
  3831. UINT SrcDepthPitch);
  3832. DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource)
  3833. HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )(
  3834. ID3D12Resource * This,
  3835. _Out_ void *pDstData,
  3836. UINT DstRowPitch,
  3837. UINT DstDepthPitch,
  3838. UINT SrcSubresource,
  3839. _In_opt_ const D3D12_BOX *pSrcBox);
  3840. DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties)
  3841. HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )(
  3842. ID3D12Resource * This,
  3843. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  3844. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags);
  3845. END_INTERFACE
  3846. } ID3D12ResourceVtbl;
  3847. interface ID3D12Resource
  3848. {
  3849. CONST_VTBL struct ID3D12ResourceVtbl *lpVtbl;
  3850. };
  3851. #ifdef COBJMACROS
  3852. #define ID3D12Resource_QueryInterface(This,riid,ppvObject) \
  3853. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3854. #define ID3D12Resource_AddRef(This) \
  3855. ( (This)->lpVtbl -> AddRef(This) )
  3856. #define ID3D12Resource_Release(This) \
  3857. ( (This)->lpVtbl -> Release(This) )
  3858. #define ID3D12Resource_GetPrivateData(This,guid,pDataSize,pData) \
  3859. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3860. #define ID3D12Resource_SetPrivateData(This,guid,DataSize,pData) \
  3861. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3862. #define ID3D12Resource_SetPrivateDataInterface(This,guid,pData) \
  3863. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3864. #define ID3D12Resource_SetName(This,Name) \
  3865. ( (This)->lpVtbl -> SetName(This,Name) )
  3866. #define ID3D12Resource_GetDevice(This,riid,ppvDevice) \
  3867. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3868. #define ID3D12Resource_Map(This,Subresource,pReadRange,ppData) \
  3869. ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) )
  3870. #define ID3D12Resource_Unmap(This,Subresource,pWrittenRange) \
  3871. ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) )
  3872. #if !defined(_WIN32)
  3873. #define ID3D12Resource_GetDesc(This) \
  3874. ( (This)->lpVtbl -> GetDesc(This) )
  3875. #else
  3876. #define ID3D12Resource_GetDesc(This,RetVal) \
  3877. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  3878. #endif
  3879. #define ID3D12Resource_GetGPUVirtualAddress(This) \
  3880. ( (This)->lpVtbl -> GetGPUVirtualAddress(This) )
  3881. #define ID3D12Resource_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  3882. ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  3883. #define ID3D12Resource_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \
  3884. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) )
  3885. #define ID3D12Resource_GetHeapProperties(This,pHeapProperties,pHeapFlags) \
  3886. ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) )
  3887. #endif /* COBJMACROS */
  3888. #endif /* C style interface */
  3889. #endif /* __ID3D12Resource_INTERFACE_DEFINED__ */
  3890. #ifndef __ID3D12CommandAllocator_INTERFACE_DEFINED__
  3891. #define __ID3D12CommandAllocator_INTERFACE_DEFINED__
  3892. /* interface ID3D12CommandAllocator */
  3893. /* [unique][local][object][uuid] */
  3894. EXTERN_C const IID IID_ID3D12CommandAllocator;
  3895. #if defined(__cplusplus) && !defined(CINTERFACE)
  3896. MIDL_INTERFACE("6102dee4-af59-4b09-b999-b44d73f09b24")
  3897. ID3D12CommandAllocator : public ID3D12Pageable
  3898. {
  3899. public:
  3900. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  3901. };
  3902. #else /* C style interface */
  3903. typedef struct ID3D12CommandAllocatorVtbl
  3904. {
  3905. BEGIN_INTERFACE
  3906. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3907. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3908. ID3D12CommandAllocator * This,
  3909. REFIID riid,
  3910. _COM_Outptr_ void **ppvObject);
  3911. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3912. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3913. ID3D12CommandAllocator * This);
  3914. DECLSPEC_XFGVIRT(IUnknown, Release)
  3915. ULONG ( STDMETHODCALLTYPE *Release )(
  3916. ID3D12CommandAllocator * This);
  3917. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3918. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3919. ID3D12CommandAllocator * This,
  3920. _In_ REFGUID guid,
  3921. _Inout_ UINT *pDataSize,
  3922. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3923. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3924. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3925. ID3D12CommandAllocator * This,
  3926. _In_ REFGUID guid,
  3927. _In_ UINT DataSize,
  3928. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3929. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3930. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3931. ID3D12CommandAllocator * This,
  3932. _In_ REFGUID guid,
  3933. _In_opt_ const IUnknown *pData);
  3934. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3935. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3936. ID3D12CommandAllocator * This,
  3937. _In_z_ LPCWSTR Name);
  3938. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3939. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3940. ID3D12CommandAllocator * This,
  3941. REFIID riid,
  3942. _COM_Outptr_opt_ void **ppvDevice);
  3943. DECLSPEC_XFGVIRT(ID3D12CommandAllocator, Reset)
  3944. HRESULT ( STDMETHODCALLTYPE *Reset )(
  3945. ID3D12CommandAllocator * This);
  3946. END_INTERFACE
  3947. } ID3D12CommandAllocatorVtbl;
  3948. interface ID3D12CommandAllocator
  3949. {
  3950. CONST_VTBL struct ID3D12CommandAllocatorVtbl *lpVtbl;
  3951. };
  3952. #ifdef COBJMACROS
  3953. #define ID3D12CommandAllocator_QueryInterface(This,riid,ppvObject) \
  3954. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3955. #define ID3D12CommandAllocator_AddRef(This) \
  3956. ( (This)->lpVtbl -> AddRef(This) )
  3957. #define ID3D12CommandAllocator_Release(This) \
  3958. ( (This)->lpVtbl -> Release(This) )
  3959. #define ID3D12CommandAllocator_GetPrivateData(This,guid,pDataSize,pData) \
  3960. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3961. #define ID3D12CommandAllocator_SetPrivateData(This,guid,DataSize,pData) \
  3962. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3963. #define ID3D12CommandAllocator_SetPrivateDataInterface(This,guid,pData) \
  3964. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3965. #define ID3D12CommandAllocator_SetName(This,Name) \
  3966. ( (This)->lpVtbl -> SetName(This,Name) )
  3967. #define ID3D12CommandAllocator_GetDevice(This,riid,ppvDevice) \
  3968. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3969. #define ID3D12CommandAllocator_Reset(This) \
  3970. ( (This)->lpVtbl -> Reset(This) )
  3971. #endif /* COBJMACROS */
  3972. #endif /* C style interface */
  3973. #endif /* __ID3D12CommandAllocator_INTERFACE_DEFINED__ */
  3974. #ifndef __ID3D12Fence_INTERFACE_DEFINED__
  3975. #define __ID3D12Fence_INTERFACE_DEFINED__
  3976. /* interface ID3D12Fence */
  3977. /* [unique][local][object][uuid] */
  3978. EXTERN_C const IID IID_ID3D12Fence;
  3979. #if defined(__cplusplus) && !defined(CINTERFACE)
  3980. MIDL_INTERFACE("0a753dcf-c4d8-4b91-adf6-be5a60d95a76")
  3981. ID3D12Fence : public ID3D12Pageable
  3982. {
  3983. public:
  3984. virtual UINT64 STDMETHODCALLTYPE GetCompletedValue( void) = 0;
  3985. virtual HRESULT STDMETHODCALLTYPE SetEventOnCompletion(
  3986. UINT64 Value,
  3987. HANDLE hEvent) = 0;
  3988. virtual HRESULT STDMETHODCALLTYPE Signal(
  3989. UINT64 Value) = 0;
  3990. };
  3991. #else /* C style interface */
  3992. typedef struct ID3D12FenceVtbl
  3993. {
  3994. BEGIN_INTERFACE
  3995. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3996. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3997. ID3D12Fence * This,
  3998. REFIID riid,
  3999. _COM_Outptr_ void **ppvObject);
  4000. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4001. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4002. ID3D12Fence * This);
  4003. DECLSPEC_XFGVIRT(IUnknown, Release)
  4004. ULONG ( STDMETHODCALLTYPE *Release )(
  4005. ID3D12Fence * This);
  4006. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4007. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4008. ID3D12Fence * This,
  4009. _In_ REFGUID guid,
  4010. _Inout_ UINT *pDataSize,
  4011. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4012. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4013. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4014. ID3D12Fence * This,
  4015. _In_ REFGUID guid,
  4016. _In_ UINT DataSize,
  4017. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4018. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4019. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4020. ID3D12Fence * This,
  4021. _In_ REFGUID guid,
  4022. _In_opt_ const IUnknown *pData);
  4023. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4024. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4025. ID3D12Fence * This,
  4026. _In_z_ LPCWSTR Name);
  4027. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4028. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4029. ID3D12Fence * This,
  4030. REFIID riid,
  4031. _COM_Outptr_opt_ void **ppvDevice);
  4032. DECLSPEC_XFGVIRT(ID3D12Fence, GetCompletedValue)
  4033. UINT64 ( STDMETHODCALLTYPE *GetCompletedValue )(
  4034. ID3D12Fence * This);
  4035. DECLSPEC_XFGVIRT(ID3D12Fence, SetEventOnCompletion)
  4036. HRESULT ( STDMETHODCALLTYPE *SetEventOnCompletion )(
  4037. ID3D12Fence * This,
  4038. UINT64 Value,
  4039. HANDLE hEvent);
  4040. DECLSPEC_XFGVIRT(ID3D12Fence, Signal)
  4041. HRESULT ( STDMETHODCALLTYPE *Signal )(
  4042. ID3D12Fence * This,
  4043. UINT64 Value);
  4044. END_INTERFACE
  4045. } ID3D12FenceVtbl;
  4046. interface ID3D12Fence
  4047. {
  4048. CONST_VTBL struct ID3D12FenceVtbl *lpVtbl;
  4049. };
  4050. #ifdef COBJMACROS
  4051. #define ID3D12Fence_QueryInterface(This,riid,ppvObject) \
  4052. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4053. #define ID3D12Fence_AddRef(This) \
  4054. ( (This)->lpVtbl -> AddRef(This) )
  4055. #define ID3D12Fence_Release(This) \
  4056. ( (This)->lpVtbl -> Release(This) )
  4057. #define ID3D12Fence_GetPrivateData(This,guid,pDataSize,pData) \
  4058. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4059. #define ID3D12Fence_SetPrivateData(This,guid,DataSize,pData) \
  4060. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4061. #define ID3D12Fence_SetPrivateDataInterface(This,guid,pData) \
  4062. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4063. #define ID3D12Fence_SetName(This,Name) \
  4064. ( (This)->lpVtbl -> SetName(This,Name) )
  4065. #define ID3D12Fence_GetDevice(This,riid,ppvDevice) \
  4066. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4067. #define ID3D12Fence_GetCompletedValue(This) \
  4068. ( (This)->lpVtbl -> GetCompletedValue(This) )
  4069. #define ID3D12Fence_SetEventOnCompletion(This,Value,hEvent) \
  4070. ( (This)->lpVtbl -> SetEventOnCompletion(This,Value,hEvent) )
  4071. #define ID3D12Fence_Signal(This,Value) \
  4072. ( (This)->lpVtbl -> Signal(This,Value) )
  4073. #endif /* COBJMACROS */
  4074. #endif /* C style interface */
  4075. #endif /* __ID3D12Fence_INTERFACE_DEFINED__ */
  4076. #ifndef __ID3D12Fence1_INTERFACE_DEFINED__
  4077. #define __ID3D12Fence1_INTERFACE_DEFINED__
  4078. /* interface ID3D12Fence1 */
  4079. /* [unique][local][object][uuid] */
  4080. EXTERN_C const IID IID_ID3D12Fence1;
  4081. #if defined(__cplusplus) && !defined(CINTERFACE)
  4082. MIDL_INTERFACE("433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a")
  4083. ID3D12Fence1 : public ID3D12Fence
  4084. {
  4085. public:
  4086. virtual D3D12_FENCE_FLAGS STDMETHODCALLTYPE GetCreationFlags( void) = 0;
  4087. };
  4088. #else /* C style interface */
  4089. typedef struct ID3D12Fence1Vtbl
  4090. {
  4091. BEGIN_INTERFACE
  4092. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4093. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4094. ID3D12Fence1 * This,
  4095. REFIID riid,
  4096. _COM_Outptr_ void **ppvObject);
  4097. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4098. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4099. ID3D12Fence1 * This);
  4100. DECLSPEC_XFGVIRT(IUnknown, Release)
  4101. ULONG ( STDMETHODCALLTYPE *Release )(
  4102. ID3D12Fence1 * This);
  4103. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4104. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4105. ID3D12Fence1 * This,
  4106. _In_ REFGUID guid,
  4107. _Inout_ UINT *pDataSize,
  4108. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4109. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4110. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4111. ID3D12Fence1 * This,
  4112. _In_ REFGUID guid,
  4113. _In_ UINT DataSize,
  4114. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4115. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4116. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4117. ID3D12Fence1 * This,
  4118. _In_ REFGUID guid,
  4119. _In_opt_ const IUnknown *pData);
  4120. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4121. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4122. ID3D12Fence1 * This,
  4123. _In_z_ LPCWSTR Name);
  4124. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4125. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4126. ID3D12Fence1 * This,
  4127. REFIID riid,
  4128. _COM_Outptr_opt_ void **ppvDevice);
  4129. DECLSPEC_XFGVIRT(ID3D12Fence, GetCompletedValue)
  4130. UINT64 ( STDMETHODCALLTYPE *GetCompletedValue )(
  4131. ID3D12Fence1 * This);
  4132. DECLSPEC_XFGVIRT(ID3D12Fence, SetEventOnCompletion)
  4133. HRESULT ( STDMETHODCALLTYPE *SetEventOnCompletion )(
  4134. ID3D12Fence1 * This,
  4135. UINT64 Value,
  4136. HANDLE hEvent);
  4137. DECLSPEC_XFGVIRT(ID3D12Fence, Signal)
  4138. HRESULT ( STDMETHODCALLTYPE *Signal )(
  4139. ID3D12Fence1 * This,
  4140. UINT64 Value);
  4141. DECLSPEC_XFGVIRT(ID3D12Fence1, GetCreationFlags)
  4142. D3D12_FENCE_FLAGS ( STDMETHODCALLTYPE *GetCreationFlags )(
  4143. ID3D12Fence1 * This);
  4144. END_INTERFACE
  4145. } ID3D12Fence1Vtbl;
  4146. interface ID3D12Fence1
  4147. {
  4148. CONST_VTBL struct ID3D12Fence1Vtbl *lpVtbl;
  4149. };
  4150. #ifdef COBJMACROS
  4151. #define ID3D12Fence1_QueryInterface(This,riid,ppvObject) \
  4152. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4153. #define ID3D12Fence1_AddRef(This) \
  4154. ( (This)->lpVtbl -> AddRef(This) )
  4155. #define ID3D12Fence1_Release(This) \
  4156. ( (This)->lpVtbl -> Release(This) )
  4157. #define ID3D12Fence1_GetPrivateData(This,guid,pDataSize,pData) \
  4158. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4159. #define ID3D12Fence1_SetPrivateData(This,guid,DataSize,pData) \
  4160. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4161. #define ID3D12Fence1_SetPrivateDataInterface(This,guid,pData) \
  4162. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4163. #define ID3D12Fence1_SetName(This,Name) \
  4164. ( (This)->lpVtbl -> SetName(This,Name) )
  4165. #define ID3D12Fence1_GetDevice(This,riid,ppvDevice) \
  4166. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4167. #define ID3D12Fence1_GetCompletedValue(This) \
  4168. ( (This)->lpVtbl -> GetCompletedValue(This) )
  4169. #define ID3D12Fence1_SetEventOnCompletion(This,Value,hEvent) \
  4170. ( (This)->lpVtbl -> SetEventOnCompletion(This,Value,hEvent) )
  4171. #define ID3D12Fence1_Signal(This,Value) \
  4172. ( (This)->lpVtbl -> Signal(This,Value) )
  4173. #define ID3D12Fence1_GetCreationFlags(This) \
  4174. ( (This)->lpVtbl -> GetCreationFlags(This) )
  4175. #endif /* COBJMACROS */
  4176. #endif /* C style interface */
  4177. #endif /* __ID3D12Fence1_INTERFACE_DEFINED__ */
  4178. #ifndef __ID3D12PipelineState_INTERFACE_DEFINED__
  4179. #define __ID3D12PipelineState_INTERFACE_DEFINED__
  4180. /* interface ID3D12PipelineState */
  4181. /* [unique][local][object][uuid] */
  4182. EXTERN_C const IID IID_ID3D12PipelineState;
  4183. #if defined(__cplusplus) && !defined(CINTERFACE)
  4184. MIDL_INTERFACE("765a30f3-f624-4c6f-a828-ace948622445")
  4185. ID3D12PipelineState : public ID3D12Pageable
  4186. {
  4187. public:
  4188. virtual HRESULT STDMETHODCALLTYPE GetCachedBlob(
  4189. _COM_Outptr_ ID3DBlob **ppBlob) = 0;
  4190. };
  4191. #else /* C style interface */
  4192. typedef struct ID3D12PipelineStateVtbl
  4193. {
  4194. BEGIN_INTERFACE
  4195. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4196. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4197. ID3D12PipelineState * This,
  4198. REFIID riid,
  4199. _COM_Outptr_ void **ppvObject);
  4200. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4201. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4202. ID3D12PipelineState * This);
  4203. DECLSPEC_XFGVIRT(IUnknown, Release)
  4204. ULONG ( STDMETHODCALLTYPE *Release )(
  4205. ID3D12PipelineState * This);
  4206. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4207. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4208. ID3D12PipelineState * This,
  4209. _In_ REFGUID guid,
  4210. _Inout_ UINT *pDataSize,
  4211. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4212. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4213. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4214. ID3D12PipelineState * This,
  4215. _In_ REFGUID guid,
  4216. _In_ UINT DataSize,
  4217. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4218. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4219. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4220. ID3D12PipelineState * This,
  4221. _In_ REFGUID guid,
  4222. _In_opt_ const IUnknown *pData);
  4223. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4224. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4225. ID3D12PipelineState * This,
  4226. _In_z_ LPCWSTR Name);
  4227. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4228. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4229. ID3D12PipelineState * This,
  4230. REFIID riid,
  4231. _COM_Outptr_opt_ void **ppvDevice);
  4232. DECLSPEC_XFGVIRT(ID3D12PipelineState, GetCachedBlob)
  4233. HRESULT ( STDMETHODCALLTYPE *GetCachedBlob )(
  4234. ID3D12PipelineState * This,
  4235. _COM_Outptr_ ID3DBlob **ppBlob);
  4236. END_INTERFACE
  4237. } ID3D12PipelineStateVtbl;
  4238. interface ID3D12PipelineState
  4239. {
  4240. CONST_VTBL struct ID3D12PipelineStateVtbl *lpVtbl;
  4241. };
  4242. #ifdef COBJMACROS
  4243. #define ID3D12PipelineState_QueryInterface(This,riid,ppvObject) \
  4244. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4245. #define ID3D12PipelineState_AddRef(This) \
  4246. ( (This)->lpVtbl -> AddRef(This) )
  4247. #define ID3D12PipelineState_Release(This) \
  4248. ( (This)->lpVtbl -> Release(This) )
  4249. #define ID3D12PipelineState_GetPrivateData(This,guid,pDataSize,pData) \
  4250. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4251. #define ID3D12PipelineState_SetPrivateData(This,guid,DataSize,pData) \
  4252. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4253. #define ID3D12PipelineState_SetPrivateDataInterface(This,guid,pData) \
  4254. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4255. #define ID3D12PipelineState_SetName(This,Name) \
  4256. ( (This)->lpVtbl -> SetName(This,Name) )
  4257. #define ID3D12PipelineState_GetDevice(This,riid,ppvDevice) \
  4258. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4259. #define ID3D12PipelineState_GetCachedBlob(This,ppBlob) \
  4260. ( (This)->lpVtbl -> GetCachedBlob(This,ppBlob) )
  4261. #endif /* COBJMACROS */
  4262. #endif /* C style interface */
  4263. #endif /* __ID3D12PipelineState_INTERFACE_DEFINED__ */
  4264. #ifndef __ID3D12DescriptorHeap_INTERFACE_DEFINED__
  4265. #define __ID3D12DescriptorHeap_INTERFACE_DEFINED__
  4266. /* interface ID3D12DescriptorHeap */
  4267. /* [unique][local][object][uuid] */
  4268. EXTERN_C const IID IID_ID3D12DescriptorHeap;
  4269. #if defined(__cplusplus) && !defined(CINTERFACE)
  4270. MIDL_INTERFACE("8efb471d-616c-4f49-90f7-127bb763fa51")
  4271. ID3D12DescriptorHeap : public ID3D12Pageable
  4272. {
  4273. public:
  4274. #if defined(_MSC_VER) || !defined(_WIN32)
  4275. virtual D3D12_DESCRIPTOR_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  4276. #else
  4277. virtual D3D12_DESCRIPTOR_HEAP_DESC *STDMETHODCALLTYPE GetDesc(
  4278. D3D12_DESCRIPTOR_HEAP_DESC * RetVal) = 0;
  4279. #endif
  4280. #if defined(_MSC_VER) || !defined(_WIN32)
  4281. virtual D3D12_CPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart( void) = 0;
  4282. #else
  4283. virtual D3D12_CPU_DESCRIPTOR_HANDLE *STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart(
  4284. D3D12_CPU_DESCRIPTOR_HANDLE * RetVal) = 0;
  4285. #endif
  4286. #if defined(_MSC_VER) || !defined(_WIN32)
  4287. virtual D3D12_GPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart( void) = 0;
  4288. #else
  4289. virtual D3D12_GPU_DESCRIPTOR_HANDLE *STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart(
  4290. D3D12_GPU_DESCRIPTOR_HANDLE * RetVal) = 0;
  4291. #endif
  4292. };
  4293. #else /* C style interface */
  4294. typedef struct ID3D12DescriptorHeapVtbl
  4295. {
  4296. BEGIN_INTERFACE
  4297. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4298. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4299. ID3D12DescriptorHeap * This,
  4300. REFIID riid,
  4301. _COM_Outptr_ void **ppvObject);
  4302. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4303. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4304. ID3D12DescriptorHeap * This);
  4305. DECLSPEC_XFGVIRT(IUnknown, Release)
  4306. ULONG ( STDMETHODCALLTYPE *Release )(
  4307. ID3D12DescriptorHeap * This);
  4308. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4309. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4310. ID3D12DescriptorHeap * This,
  4311. _In_ REFGUID guid,
  4312. _Inout_ UINT *pDataSize,
  4313. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4314. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4315. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4316. ID3D12DescriptorHeap * This,
  4317. _In_ REFGUID guid,
  4318. _In_ UINT DataSize,
  4319. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4320. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4321. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4322. ID3D12DescriptorHeap * This,
  4323. _In_ REFGUID guid,
  4324. _In_opt_ const IUnknown *pData);
  4325. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4326. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4327. ID3D12DescriptorHeap * This,
  4328. _In_z_ LPCWSTR Name);
  4329. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4330. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4331. ID3D12DescriptorHeap * This,
  4332. REFIID riid,
  4333. _COM_Outptr_opt_ void **ppvDevice);
  4334. DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetDesc)
  4335. #if !defined(_WIN32)
  4336. D3D12_DESCRIPTOR_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )(
  4337. ID3D12DescriptorHeap * This);
  4338. #else
  4339. D3D12_DESCRIPTOR_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )(
  4340. ID3D12DescriptorHeap * This,
  4341. D3D12_DESCRIPTOR_HEAP_DESC * RetVal);
  4342. #endif
  4343. DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetCPUDescriptorHandleForHeapStart)
  4344. #if !defined(_WIN32)
  4345. D3D12_CPU_DESCRIPTOR_HANDLE ( STDMETHODCALLTYPE *GetCPUDescriptorHandleForHeapStart )(
  4346. ID3D12DescriptorHeap * This);
  4347. #else
  4348. D3D12_CPU_DESCRIPTOR_HANDLE *( STDMETHODCALLTYPE *GetCPUDescriptorHandleForHeapStart )(
  4349. ID3D12DescriptorHeap * This,
  4350. D3D12_CPU_DESCRIPTOR_HANDLE * RetVal);
  4351. #endif
  4352. DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetGPUDescriptorHandleForHeapStart)
  4353. #if !defined(_WIN32)
  4354. D3D12_GPU_DESCRIPTOR_HANDLE ( STDMETHODCALLTYPE *GetGPUDescriptorHandleForHeapStart )(
  4355. ID3D12DescriptorHeap * This);
  4356. #else
  4357. D3D12_GPU_DESCRIPTOR_HANDLE *( STDMETHODCALLTYPE *GetGPUDescriptorHandleForHeapStart )(
  4358. ID3D12DescriptorHeap * This,
  4359. D3D12_GPU_DESCRIPTOR_HANDLE * RetVal);
  4360. #endif
  4361. END_INTERFACE
  4362. } ID3D12DescriptorHeapVtbl;
  4363. interface ID3D12DescriptorHeap
  4364. {
  4365. CONST_VTBL struct ID3D12DescriptorHeapVtbl *lpVtbl;
  4366. };
  4367. #ifdef COBJMACROS
  4368. #define ID3D12DescriptorHeap_QueryInterface(This,riid,ppvObject) \
  4369. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4370. #define ID3D12DescriptorHeap_AddRef(This) \
  4371. ( (This)->lpVtbl -> AddRef(This) )
  4372. #define ID3D12DescriptorHeap_Release(This) \
  4373. ( (This)->lpVtbl -> Release(This) )
  4374. #define ID3D12DescriptorHeap_GetPrivateData(This,guid,pDataSize,pData) \
  4375. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4376. #define ID3D12DescriptorHeap_SetPrivateData(This,guid,DataSize,pData) \
  4377. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4378. #define ID3D12DescriptorHeap_SetPrivateDataInterface(This,guid,pData) \
  4379. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4380. #define ID3D12DescriptorHeap_SetName(This,Name) \
  4381. ( (This)->lpVtbl -> SetName(This,Name) )
  4382. #define ID3D12DescriptorHeap_GetDevice(This,riid,ppvDevice) \
  4383. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4384. #if !defined(_WIN32)
  4385. #define ID3D12DescriptorHeap_GetDesc(This) \
  4386. ( (This)->lpVtbl -> GetDesc(This) )
  4387. #else
  4388. #define ID3D12DescriptorHeap_GetDesc(This,RetVal) \
  4389. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  4390. #endif
  4391. #if !defined(_WIN32)
  4392. #define ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(This) \
  4393. ( (This)->lpVtbl -> GetCPUDescriptorHandleForHeapStart(This) )
  4394. #else
  4395. #define ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(This,RetVal) \
  4396. ( (This)->lpVtbl -> GetCPUDescriptorHandleForHeapStart(This,RetVal) )
  4397. #endif
  4398. #if !defined(_WIN32)
  4399. #define ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(This) \
  4400. ( (This)->lpVtbl -> GetGPUDescriptorHandleForHeapStart(This) )
  4401. #else
  4402. #define ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(This,RetVal) \
  4403. ( (This)->lpVtbl -> GetGPUDescriptorHandleForHeapStart(This,RetVal) )
  4404. #endif
  4405. #endif /* COBJMACROS */
  4406. #endif /* C style interface */
  4407. #endif /* __ID3D12DescriptorHeap_INTERFACE_DEFINED__ */
  4408. #ifndef __ID3D12QueryHeap_INTERFACE_DEFINED__
  4409. #define __ID3D12QueryHeap_INTERFACE_DEFINED__
  4410. /* interface ID3D12QueryHeap */
  4411. /* [unique][local][object][uuid] */
  4412. EXTERN_C const IID IID_ID3D12QueryHeap;
  4413. #if defined(__cplusplus) && !defined(CINTERFACE)
  4414. MIDL_INTERFACE("0d9658ae-ed45-469e-a61d-970ec583cab4")
  4415. ID3D12QueryHeap : public ID3D12Pageable
  4416. {
  4417. public:
  4418. };
  4419. #else /* C style interface */
  4420. typedef struct ID3D12QueryHeapVtbl
  4421. {
  4422. BEGIN_INTERFACE
  4423. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4424. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4425. ID3D12QueryHeap * This,
  4426. REFIID riid,
  4427. _COM_Outptr_ void **ppvObject);
  4428. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4429. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4430. ID3D12QueryHeap * This);
  4431. DECLSPEC_XFGVIRT(IUnknown, Release)
  4432. ULONG ( STDMETHODCALLTYPE *Release )(
  4433. ID3D12QueryHeap * This);
  4434. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4435. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4436. ID3D12QueryHeap * This,
  4437. _In_ REFGUID guid,
  4438. _Inout_ UINT *pDataSize,
  4439. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4440. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4441. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4442. ID3D12QueryHeap * This,
  4443. _In_ REFGUID guid,
  4444. _In_ UINT DataSize,
  4445. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4446. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4447. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4448. ID3D12QueryHeap * This,
  4449. _In_ REFGUID guid,
  4450. _In_opt_ const IUnknown *pData);
  4451. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4452. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4453. ID3D12QueryHeap * This,
  4454. _In_z_ LPCWSTR Name);
  4455. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4456. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4457. ID3D12QueryHeap * This,
  4458. REFIID riid,
  4459. _COM_Outptr_opt_ void **ppvDevice);
  4460. END_INTERFACE
  4461. } ID3D12QueryHeapVtbl;
  4462. interface ID3D12QueryHeap
  4463. {
  4464. CONST_VTBL struct ID3D12QueryHeapVtbl *lpVtbl;
  4465. };
  4466. #ifdef COBJMACROS
  4467. #define ID3D12QueryHeap_QueryInterface(This,riid,ppvObject) \
  4468. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4469. #define ID3D12QueryHeap_AddRef(This) \
  4470. ( (This)->lpVtbl -> AddRef(This) )
  4471. #define ID3D12QueryHeap_Release(This) \
  4472. ( (This)->lpVtbl -> Release(This) )
  4473. #define ID3D12QueryHeap_GetPrivateData(This,guid,pDataSize,pData) \
  4474. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4475. #define ID3D12QueryHeap_SetPrivateData(This,guid,DataSize,pData) \
  4476. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4477. #define ID3D12QueryHeap_SetPrivateDataInterface(This,guid,pData) \
  4478. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4479. #define ID3D12QueryHeap_SetName(This,Name) \
  4480. ( (This)->lpVtbl -> SetName(This,Name) )
  4481. #define ID3D12QueryHeap_GetDevice(This,riid,ppvDevice) \
  4482. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4483. #endif /* COBJMACROS */
  4484. #endif /* C style interface */
  4485. #endif /* __ID3D12QueryHeap_INTERFACE_DEFINED__ */
  4486. #ifndef __ID3D12CommandSignature_INTERFACE_DEFINED__
  4487. #define __ID3D12CommandSignature_INTERFACE_DEFINED__
  4488. /* interface ID3D12CommandSignature */
  4489. /* [unique][local][object][uuid] */
  4490. EXTERN_C const IID IID_ID3D12CommandSignature;
  4491. #if defined(__cplusplus) && !defined(CINTERFACE)
  4492. MIDL_INTERFACE("c36a797c-ec80-4f0a-8985-a7b2475082d1")
  4493. ID3D12CommandSignature : public ID3D12Pageable
  4494. {
  4495. public:
  4496. };
  4497. #else /* C style interface */
  4498. typedef struct ID3D12CommandSignatureVtbl
  4499. {
  4500. BEGIN_INTERFACE
  4501. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4502. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4503. ID3D12CommandSignature * This,
  4504. REFIID riid,
  4505. _COM_Outptr_ void **ppvObject);
  4506. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4507. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4508. ID3D12CommandSignature * This);
  4509. DECLSPEC_XFGVIRT(IUnknown, Release)
  4510. ULONG ( STDMETHODCALLTYPE *Release )(
  4511. ID3D12CommandSignature * This);
  4512. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4513. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4514. ID3D12CommandSignature * This,
  4515. _In_ REFGUID guid,
  4516. _Inout_ UINT *pDataSize,
  4517. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4518. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4519. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4520. ID3D12CommandSignature * This,
  4521. _In_ REFGUID guid,
  4522. _In_ UINT DataSize,
  4523. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4524. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4525. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4526. ID3D12CommandSignature * This,
  4527. _In_ REFGUID guid,
  4528. _In_opt_ const IUnknown *pData);
  4529. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4530. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4531. ID3D12CommandSignature * This,
  4532. _In_z_ LPCWSTR Name);
  4533. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4534. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4535. ID3D12CommandSignature * This,
  4536. REFIID riid,
  4537. _COM_Outptr_opt_ void **ppvDevice);
  4538. END_INTERFACE
  4539. } ID3D12CommandSignatureVtbl;
  4540. interface ID3D12CommandSignature
  4541. {
  4542. CONST_VTBL struct ID3D12CommandSignatureVtbl *lpVtbl;
  4543. };
  4544. #ifdef COBJMACROS
  4545. #define ID3D12CommandSignature_QueryInterface(This,riid,ppvObject) \
  4546. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4547. #define ID3D12CommandSignature_AddRef(This) \
  4548. ( (This)->lpVtbl -> AddRef(This) )
  4549. #define ID3D12CommandSignature_Release(This) \
  4550. ( (This)->lpVtbl -> Release(This) )
  4551. #define ID3D12CommandSignature_GetPrivateData(This,guid,pDataSize,pData) \
  4552. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4553. #define ID3D12CommandSignature_SetPrivateData(This,guid,DataSize,pData) \
  4554. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4555. #define ID3D12CommandSignature_SetPrivateDataInterface(This,guid,pData) \
  4556. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4557. #define ID3D12CommandSignature_SetName(This,Name) \
  4558. ( (This)->lpVtbl -> SetName(This,Name) )
  4559. #define ID3D12CommandSignature_GetDevice(This,riid,ppvDevice) \
  4560. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4561. #endif /* COBJMACROS */
  4562. #endif /* C style interface */
  4563. #endif /* __ID3D12CommandSignature_INTERFACE_DEFINED__ */
  4564. #ifndef __ID3D12CommandList_INTERFACE_DEFINED__
  4565. #define __ID3D12CommandList_INTERFACE_DEFINED__
  4566. /* interface ID3D12CommandList */
  4567. /* [unique][local][object][uuid] */
  4568. EXTERN_C const IID IID_ID3D12CommandList;
  4569. #if defined(__cplusplus) && !defined(CINTERFACE)
  4570. MIDL_INTERFACE("7116d91c-e7e4-47ce-b8c6-ec8168f437e5")
  4571. ID3D12CommandList : public ID3D12DeviceChild
  4572. {
  4573. public:
  4574. virtual D3D12_COMMAND_LIST_TYPE STDMETHODCALLTYPE GetType( void) = 0;
  4575. };
  4576. #else /* C style interface */
  4577. typedef struct ID3D12CommandListVtbl
  4578. {
  4579. BEGIN_INTERFACE
  4580. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4581. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4582. ID3D12CommandList * This,
  4583. REFIID riid,
  4584. _COM_Outptr_ void **ppvObject);
  4585. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4586. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4587. ID3D12CommandList * This);
  4588. DECLSPEC_XFGVIRT(IUnknown, Release)
  4589. ULONG ( STDMETHODCALLTYPE *Release )(
  4590. ID3D12CommandList * This);
  4591. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4592. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4593. ID3D12CommandList * This,
  4594. _In_ REFGUID guid,
  4595. _Inout_ UINT *pDataSize,
  4596. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4597. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4598. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4599. ID3D12CommandList * This,
  4600. _In_ REFGUID guid,
  4601. _In_ UINT DataSize,
  4602. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4603. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4604. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4605. ID3D12CommandList * This,
  4606. _In_ REFGUID guid,
  4607. _In_opt_ const IUnknown *pData);
  4608. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4609. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4610. ID3D12CommandList * This,
  4611. _In_z_ LPCWSTR Name);
  4612. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4613. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4614. ID3D12CommandList * This,
  4615. REFIID riid,
  4616. _COM_Outptr_opt_ void **ppvDevice);
  4617. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  4618. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  4619. ID3D12CommandList * This);
  4620. END_INTERFACE
  4621. } ID3D12CommandListVtbl;
  4622. interface ID3D12CommandList
  4623. {
  4624. CONST_VTBL struct ID3D12CommandListVtbl *lpVtbl;
  4625. };
  4626. #ifdef COBJMACROS
  4627. #define ID3D12CommandList_QueryInterface(This,riid,ppvObject) \
  4628. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4629. #define ID3D12CommandList_AddRef(This) \
  4630. ( (This)->lpVtbl -> AddRef(This) )
  4631. #define ID3D12CommandList_Release(This) \
  4632. ( (This)->lpVtbl -> Release(This) )
  4633. #define ID3D12CommandList_GetPrivateData(This,guid,pDataSize,pData) \
  4634. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4635. #define ID3D12CommandList_SetPrivateData(This,guid,DataSize,pData) \
  4636. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4637. #define ID3D12CommandList_SetPrivateDataInterface(This,guid,pData) \
  4638. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4639. #define ID3D12CommandList_SetName(This,Name) \
  4640. ( (This)->lpVtbl -> SetName(This,Name) )
  4641. #define ID3D12CommandList_GetDevice(This,riid,ppvDevice) \
  4642. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4643. #define ID3D12CommandList_GetType(This) \
  4644. ( (This)->lpVtbl -> GetType(This) )
  4645. #endif /* COBJMACROS */
  4646. #endif /* C style interface */
  4647. #endif /* __ID3D12CommandList_INTERFACE_DEFINED__ */
  4648. #ifndef __ID3D12GraphicsCommandList_INTERFACE_DEFINED__
  4649. #define __ID3D12GraphicsCommandList_INTERFACE_DEFINED__
  4650. /* interface ID3D12GraphicsCommandList */
  4651. /* [unique][local][object][uuid] */
  4652. EXTERN_C const IID IID_ID3D12GraphicsCommandList;
  4653. #if defined(__cplusplus) && !defined(CINTERFACE)
  4654. MIDL_INTERFACE("5b160d0f-ac1b-4185-8ba8-b3ae42a5a455")
  4655. ID3D12GraphicsCommandList : public ID3D12CommandList
  4656. {
  4657. public:
  4658. virtual HRESULT STDMETHODCALLTYPE Close( void) = 0;
  4659. virtual HRESULT STDMETHODCALLTYPE Reset(
  4660. _In_ ID3D12CommandAllocator *pAllocator,
  4661. _In_opt_ ID3D12PipelineState *pInitialState) = 0;
  4662. virtual void STDMETHODCALLTYPE ClearState(
  4663. _In_opt_ ID3D12PipelineState *pPipelineState) = 0;
  4664. virtual void STDMETHODCALLTYPE DrawInstanced(
  4665. _In_ UINT VertexCountPerInstance,
  4666. _In_ UINT InstanceCount,
  4667. _In_ UINT StartVertexLocation,
  4668. _In_ UINT StartInstanceLocation) = 0;
  4669. virtual void STDMETHODCALLTYPE DrawIndexedInstanced(
  4670. _In_ UINT IndexCountPerInstance,
  4671. _In_ UINT InstanceCount,
  4672. _In_ UINT StartIndexLocation,
  4673. _In_ INT BaseVertexLocation,
  4674. _In_ UINT StartInstanceLocation) = 0;
  4675. virtual void STDMETHODCALLTYPE Dispatch(
  4676. _In_ UINT ThreadGroupCountX,
  4677. _In_ UINT ThreadGroupCountY,
  4678. _In_ UINT ThreadGroupCountZ) = 0;
  4679. virtual void STDMETHODCALLTYPE CopyBufferRegion(
  4680. _In_ ID3D12Resource *pDstBuffer,
  4681. UINT64 DstOffset,
  4682. _In_ ID3D12Resource *pSrcBuffer,
  4683. UINT64 SrcOffset,
  4684. UINT64 NumBytes) = 0;
  4685. virtual void STDMETHODCALLTYPE CopyTextureRegion(
  4686. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  4687. UINT DstX,
  4688. UINT DstY,
  4689. UINT DstZ,
  4690. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  4691. _In_opt_ const D3D12_BOX *pSrcBox) = 0;
  4692. virtual void STDMETHODCALLTYPE CopyResource(
  4693. _In_ ID3D12Resource *pDstResource,
  4694. _In_ ID3D12Resource *pSrcResource) = 0;
  4695. virtual void STDMETHODCALLTYPE CopyTiles(
  4696. _In_ ID3D12Resource *pTiledResource,
  4697. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  4698. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  4699. _In_ ID3D12Resource *pBuffer,
  4700. UINT64 BufferStartOffsetInBytes,
  4701. D3D12_TILE_COPY_FLAGS Flags) = 0;
  4702. virtual void STDMETHODCALLTYPE ResolveSubresource(
  4703. _In_ ID3D12Resource *pDstResource,
  4704. _In_ UINT DstSubresource,
  4705. _In_ ID3D12Resource *pSrcResource,
  4706. _In_ UINT SrcSubresource,
  4707. _In_ DXGI_FORMAT Format) = 0;
  4708. virtual void STDMETHODCALLTYPE IASetPrimitiveTopology(
  4709. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology) = 0;
  4710. virtual void STDMETHODCALLTYPE RSSetViewports(
  4711. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  4712. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports) = 0;
  4713. virtual void STDMETHODCALLTYPE RSSetScissorRects(
  4714. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  4715. _In_reads_( NumRects) const D3D12_RECT *pRects) = 0;
  4716. virtual void STDMETHODCALLTYPE OMSetBlendFactor(
  4717. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]) = 0;
  4718. virtual void STDMETHODCALLTYPE OMSetStencilRef(
  4719. _In_ UINT StencilRef) = 0;
  4720. virtual void STDMETHODCALLTYPE SetPipelineState(
  4721. _In_ ID3D12PipelineState *pPipelineState) = 0;
  4722. virtual void STDMETHODCALLTYPE ResourceBarrier(
  4723. _In_ UINT NumBarriers,
  4724. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers) = 0;
  4725. virtual void STDMETHODCALLTYPE ExecuteBundle(
  4726. _In_ ID3D12GraphicsCommandList *pCommandList) = 0;
  4727. virtual void STDMETHODCALLTYPE SetDescriptorHeaps(
  4728. _In_ UINT NumDescriptorHeaps,
  4729. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps) = 0;
  4730. virtual void STDMETHODCALLTYPE SetComputeRootSignature(
  4731. _In_opt_ ID3D12RootSignature *pRootSignature) = 0;
  4732. virtual void STDMETHODCALLTYPE SetGraphicsRootSignature(
  4733. _In_opt_ ID3D12RootSignature *pRootSignature) = 0;
  4734. virtual void STDMETHODCALLTYPE SetComputeRootDescriptorTable(
  4735. _In_ UINT RootParameterIndex,
  4736. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor) = 0;
  4737. virtual void STDMETHODCALLTYPE SetGraphicsRootDescriptorTable(
  4738. _In_ UINT RootParameterIndex,
  4739. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor) = 0;
  4740. virtual void STDMETHODCALLTYPE SetComputeRoot32BitConstant(
  4741. _In_ UINT RootParameterIndex,
  4742. _In_ UINT SrcData,
  4743. _In_ UINT DestOffsetIn32BitValues) = 0;
  4744. virtual void STDMETHODCALLTYPE SetGraphicsRoot32BitConstant(
  4745. _In_ UINT RootParameterIndex,
  4746. _In_ UINT SrcData,
  4747. _In_ UINT DestOffsetIn32BitValues) = 0;
  4748. virtual void STDMETHODCALLTYPE SetComputeRoot32BitConstants(
  4749. _In_ UINT RootParameterIndex,
  4750. _In_ UINT Num32BitValuesToSet,
  4751. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  4752. _In_ UINT DestOffsetIn32BitValues) = 0;
  4753. virtual void STDMETHODCALLTYPE SetGraphicsRoot32BitConstants(
  4754. _In_ UINT RootParameterIndex,
  4755. _In_ UINT Num32BitValuesToSet,
  4756. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  4757. _In_ UINT DestOffsetIn32BitValues) = 0;
  4758. virtual void STDMETHODCALLTYPE SetComputeRootConstantBufferView(
  4759. _In_ UINT RootParameterIndex,
  4760. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4761. virtual void STDMETHODCALLTYPE SetGraphicsRootConstantBufferView(
  4762. _In_ UINT RootParameterIndex,
  4763. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4764. virtual void STDMETHODCALLTYPE SetComputeRootShaderResourceView(
  4765. _In_ UINT RootParameterIndex,
  4766. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4767. virtual void STDMETHODCALLTYPE SetGraphicsRootShaderResourceView(
  4768. _In_ UINT RootParameterIndex,
  4769. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4770. virtual void STDMETHODCALLTYPE SetComputeRootUnorderedAccessView(
  4771. _In_ UINT RootParameterIndex,
  4772. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4773. virtual void STDMETHODCALLTYPE SetGraphicsRootUnorderedAccessView(
  4774. _In_ UINT RootParameterIndex,
  4775. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4776. virtual void STDMETHODCALLTYPE IASetIndexBuffer(
  4777. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView) = 0;
  4778. virtual void STDMETHODCALLTYPE IASetVertexBuffers(
  4779. _In_ UINT StartSlot,
  4780. _In_ UINT NumViews,
  4781. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews) = 0;
  4782. virtual void STDMETHODCALLTYPE SOSetTargets(
  4783. _In_ UINT StartSlot,
  4784. _In_ UINT NumViews,
  4785. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews) = 0;
  4786. virtual void STDMETHODCALLTYPE OMSetRenderTargets(
  4787. _In_ UINT NumRenderTargetDescriptors,
  4788. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  4789. _In_ BOOL RTsSingleHandleToDescriptorRange,
  4790. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor) = 0;
  4791. virtual void STDMETHODCALLTYPE ClearDepthStencilView(
  4792. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  4793. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  4794. _In_ FLOAT Depth,
  4795. _In_ UINT8 Stencil,
  4796. _In_ UINT NumRects,
  4797. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4798. virtual void STDMETHODCALLTYPE ClearRenderTargetView(
  4799. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  4800. _In_ const FLOAT ColorRGBA[ 4 ],
  4801. _In_ UINT NumRects,
  4802. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4803. virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewUint(
  4804. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  4805. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  4806. _In_ ID3D12Resource *pResource,
  4807. _In_ const UINT Values[ 4 ],
  4808. _In_ UINT NumRects,
  4809. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4810. virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewFloat(
  4811. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  4812. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  4813. _In_ ID3D12Resource *pResource,
  4814. _In_ const FLOAT Values[ 4 ],
  4815. _In_ UINT NumRects,
  4816. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4817. virtual void STDMETHODCALLTYPE DiscardResource(
  4818. _In_ ID3D12Resource *pResource,
  4819. _In_opt_ const D3D12_DISCARD_REGION *pRegion) = 0;
  4820. virtual void STDMETHODCALLTYPE BeginQuery(
  4821. _In_ ID3D12QueryHeap *pQueryHeap,
  4822. _In_ D3D12_QUERY_TYPE Type,
  4823. _In_ UINT Index) = 0;
  4824. virtual void STDMETHODCALLTYPE EndQuery(
  4825. _In_ ID3D12QueryHeap *pQueryHeap,
  4826. _In_ D3D12_QUERY_TYPE Type,
  4827. _In_ UINT Index) = 0;
  4828. virtual void STDMETHODCALLTYPE ResolveQueryData(
  4829. _In_ ID3D12QueryHeap *pQueryHeap,
  4830. _In_ D3D12_QUERY_TYPE Type,
  4831. _In_ UINT StartIndex,
  4832. _In_ UINT NumQueries,
  4833. _In_ ID3D12Resource *pDestinationBuffer,
  4834. _In_ UINT64 AlignedDestinationBufferOffset) = 0;
  4835. virtual void STDMETHODCALLTYPE SetPredication(
  4836. _In_opt_ ID3D12Resource *pBuffer,
  4837. _In_ UINT64 AlignedBufferOffset,
  4838. _In_ D3D12_PREDICATION_OP Operation) = 0;
  4839. virtual void STDMETHODCALLTYPE SetMarker(
  4840. UINT Metadata,
  4841. _In_reads_bytes_opt_(Size) const void *pData,
  4842. UINT Size) = 0;
  4843. virtual void STDMETHODCALLTYPE BeginEvent(
  4844. UINT Metadata,
  4845. _In_reads_bytes_opt_(Size) const void *pData,
  4846. UINT Size) = 0;
  4847. virtual void STDMETHODCALLTYPE EndEvent( void) = 0;
  4848. virtual void STDMETHODCALLTYPE ExecuteIndirect(
  4849. _In_ ID3D12CommandSignature *pCommandSignature,
  4850. _In_ UINT MaxCommandCount,
  4851. _In_ ID3D12Resource *pArgumentBuffer,
  4852. _In_ UINT64 ArgumentBufferOffset,
  4853. _In_opt_ ID3D12Resource *pCountBuffer,
  4854. _In_ UINT64 CountBufferOffset) = 0;
  4855. };
  4856. #else /* C style interface */
  4857. typedef struct ID3D12GraphicsCommandListVtbl
  4858. {
  4859. BEGIN_INTERFACE
  4860. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4861. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4862. ID3D12GraphicsCommandList * This,
  4863. REFIID riid,
  4864. _COM_Outptr_ void **ppvObject);
  4865. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4866. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4867. ID3D12GraphicsCommandList * This);
  4868. DECLSPEC_XFGVIRT(IUnknown, Release)
  4869. ULONG ( STDMETHODCALLTYPE *Release )(
  4870. ID3D12GraphicsCommandList * This);
  4871. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4872. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4873. ID3D12GraphicsCommandList * This,
  4874. _In_ REFGUID guid,
  4875. _Inout_ UINT *pDataSize,
  4876. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4877. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4878. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4879. ID3D12GraphicsCommandList * This,
  4880. _In_ REFGUID guid,
  4881. _In_ UINT DataSize,
  4882. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4883. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4884. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4885. ID3D12GraphicsCommandList * This,
  4886. _In_ REFGUID guid,
  4887. _In_opt_ const IUnknown *pData);
  4888. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4889. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4890. ID3D12GraphicsCommandList * This,
  4891. _In_z_ LPCWSTR Name);
  4892. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4893. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4894. ID3D12GraphicsCommandList * This,
  4895. REFIID riid,
  4896. _COM_Outptr_opt_ void **ppvDevice);
  4897. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  4898. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  4899. ID3D12GraphicsCommandList * This);
  4900. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  4901. HRESULT ( STDMETHODCALLTYPE *Close )(
  4902. ID3D12GraphicsCommandList * This);
  4903. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  4904. HRESULT ( STDMETHODCALLTYPE *Reset )(
  4905. ID3D12GraphicsCommandList * This,
  4906. _In_ ID3D12CommandAllocator *pAllocator,
  4907. _In_opt_ ID3D12PipelineState *pInitialState);
  4908. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  4909. void ( STDMETHODCALLTYPE *ClearState )(
  4910. ID3D12GraphicsCommandList * This,
  4911. _In_opt_ ID3D12PipelineState *pPipelineState);
  4912. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  4913. void ( STDMETHODCALLTYPE *DrawInstanced )(
  4914. ID3D12GraphicsCommandList * This,
  4915. _In_ UINT VertexCountPerInstance,
  4916. _In_ UINT InstanceCount,
  4917. _In_ UINT StartVertexLocation,
  4918. _In_ UINT StartInstanceLocation);
  4919. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  4920. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  4921. ID3D12GraphicsCommandList * This,
  4922. _In_ UINT IndexCountPerInstance,
  4923. _In_ UINT InstanceCount,
  4924. _In_ UINT StartIndexLocation,
  4925. _In_ INT BaseVertexLocation,
  4926. _In_ UINT StartInstanceLocation);
  4927. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  4928. void ( STDMETHODCALLTYPE *Dispatch )(
  4929. ID3D12GraphicsCommandList * This,
  4930. _In_ UINT ThreadGroupCountX,
  4931. _In_ UINT ThreadGroupCountY,
  4932. _In_ UINT ThreadGroupCountZ);
  4933. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  4934. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  4935. ID3D12GraphicsCommandList * This,
  4936. _In_ ID3D12Resource *pDstBuffer,
  4937. UINT64 DstOffset,
  4938. _In_ ID3D12Resource *pSrcBuffer,
  4939. UINT64 SrcOffset,
  4940. UINT64 NumBytes);
  4941. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  4942. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  4943. ID3D12GraphicsCommandList * This,
  4944. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  4945. UINT DstX,
  4946. UINT DstY,
  4947. UINT DstZ,
  4948. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  4949. _In_opt_ const D3D12_BOX *pSrcBox);
  4950. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  4951. void ( STDMETHODCALLTYPE *CopyResource )(
  4952. ID3D12GraphicsCommandList * This,
  4953. _In_ ID3D12Resource *pDstResource,
  4954. _In_ ID3D12Resource *pSrcResource);
  4955. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  4956. void ( STDMETHODCALLTYPE *CopyTiles )(
  4957. ID3D12GraphicsCommandList * This,
  4958. _In_ ID3D12Resource *pTiledResource,
  4959. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  4960. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  4961. _In_ ID3D12Resource *pBuffer,
  4962. UINT64 BufferStartOffsetInBytes,
  4963. D3D12_TILE_COPY_FLAGS Flags);
  4964. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  4965. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  4966. ID3D12GraphicsCommandList * This,
  4967. _In_ ID3D12Resource *pDstResource,
  4968. _In_ UINT DstSubresource,
  4969. _In_ ID3D12Resource *pSrcResource,
  4970. _In_ UINT SrcSubresource,
  4971. _In_ DXGI_FORMAT Format);
  4972. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  4973. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  4974. ID3D12GraphicsCommandList * This,
  4975. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  4976. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  4977. void ( STDMETHODCALLTYPE *RSSetViewports )(
  4978. ID3D12GraphicsCommandList * This,
  4979. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  4980. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  4981. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  4982. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  4983. ID3D12GraphicsCommandList * This,
  4984. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  4985. _In_reads_( NumRects) const D3D12_RECT *pRects);
  4986. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  4987. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  4988. ID3D12GraphicsCommandList * This,
  4989. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  4990. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  4991. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  4992. ID3D12GraphicsCommandList * This,
  4993. _In_ UINT StencilRef);
  4994. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  4995. void ( STDMETHODCALLTYPE *SetPipelineState )(
  4996. ID3D12GraphicsCommandList * This,
  4997. _In_ ID3D12PipelineState *pPipelineState);
  4998. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  4999. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  5000. ID3D12GraphicsCommandList * This,
  5001. _In_ UINT NumBarriers,
  5002. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  5003. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  5004. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  5005. ID3D12GraphicsCommandList * This,
  5006. _In_ ID3D12GraphicsCommandList *pCommandList);
  5007. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  5008. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  5009. ID3D12GraphicsCommandList * This,
  5010. _In_ UINT NumDescriptorHeaps,
  5011. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  5012. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  5013. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  5014. ID3D12GraphicsCommandList * This,
  5015. _In_opt_ ID3D12RootSignature *pRootSignature);
  5016. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  5017. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  5018. ID3D12GraphicsCommandList * This,
  5019. _In_opt_ ID3D12RootSignature *pRootSignature);
  5020. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  5021. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  5022. ID3D12GraphicsCommandList * This,
  5023. _In_ UINT RootParameterIndex,
  5024. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  5025. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  5026. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  5027. ID3D12GraphicsCommandList * This,
  5028. _In_ UINT RootParameterIndex,
  5029. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  5030. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  5031. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  5032. ID3D12GraphicsCommandList * This,
  5033. _In_ UINT RootParameterIndex,
  5034. _In_ UINT SrcData,
  5035. _In_ UINT DestOffsetIn32BitValues);
  5036. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  5037. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  5038. ID3D12GraphicsCommandList * This,
  5039. _In_ UINT RootParameterIndex,
  5040. _In_ UINT SrcData,
  5041. _In_ UINT DestOffsetIn32BitValues);
  5042. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  5043. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  5044. ID3D12GraphicsCommandList * This,
  5045. _In_ UINT RootParameterIndex,
  5046. _In_ UINT Num32BitValuesToSet,
  5047. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  5048. _In_ UINT DestOffsetIn32BitValues);
  5049. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  5050. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  5051. ID3D12GraphicsCommandList * This,
  5052. _In_ UINT RootParameterIndex,
  5053. _In_ UINT Num32BitValuesToSet,
  5054. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  5055. _In_ UINT DestOffsetIn32BitValues);
  5056. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  5057. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  5058. ID3D12GraphicsCommandList * This,
  5059. _In_ UINT RootParameterIndex,
  5060. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5061. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  5062. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  5063. ID3D12GraphicsCommandList * This,
  5064. _In_ UINT RootParameterIndex,
  5065. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5066. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  5067. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  5068. ID3D12GraphicsCommandList * This,
  5069. _In_ UINT RootParameterIndex,
  5070. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5071. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  5072. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  5073. ID3D12GraphicsCommandList * This,
  5074. _In_ UINT RootParameterIndex,
  5075. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5076. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  5077. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  5078. ID3D12GraphicsCommandList * This,
  5079. _In_ UINT RootParameterIndex,
  5080. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5081. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  5082. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  5083. ID3D12GraphicsCommandList * This,
  5084. _In_ UINT RootParameterIndex,
  5085. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5086. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  5087. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  5088. ID3D12GraphicsCommandList * This,
  5089. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  5090. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  5091. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  5092. ID3D12GraphicsCommandList * This,
  5093. _In_ UINT StartSlot,
  5094. _In_ UINT NumViews,
  5095. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  5096. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  5097. void ( STDMETHODCALLTYPE *SOSetTargets )(
  5098. ID3D12GraphicsCommandList * This,
  5099. _In_ UINT StartSlot,
  5100. _In_ UINT NumViews,
  5101. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  5102. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  5103. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  5104. ID3D12GraphicsCommandList * This,
  5105. _In_ UINT NumRenderTargetDescriptors,
  5106. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  5107. _In_ BOOL RTsSingleHandleToDescriptorRange,
  5108. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  5109. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  5110. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  5111. ID3D12GraphicsCommandList * This,
  5112. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  5113. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  5114. _In_ FLOAT Depth,
  5115. _In_ UINT8 Stencil,
  5116. _In_ UINT NumRects,
  5117. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5118. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  5119. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  5120. ID3D12GraphicsCommandList * This,
  5121. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  5122. _In_ const FLOAT ColorRGBA[ 4 ],
  5123. _In_ UINT NumRects,
  5124. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5125. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  5126. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  5127. ID3D12GraphicsCommandList * This,
  5128. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5129. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5130. _In_ ID3D12Resource *pResource,
  5131. _In_ const UINT Values[ 4 ],
  5132. _In_ UINT NumRects,
  5133. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5134. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  5135. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  5136. ID3D12GraphicsCommandList * This,
  5137. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5138. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5139. _In_ ID3D12Resource *pResource,
  5140. _In_ const FLOAT Values[ 4 ],
  5141. _In_ UINT NumRects,
  5142. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5143. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  5144. void ( STDMETHODCALLTYPE *DiscardResource )(
  5145. ID3D12GraphicsCommandList * This,
  5146. _In_ ID3D12Resource *pResource,
  5147. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  5148. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  5149. void ( STDMETHODCALLTYPE *BeginQuery )(
  5150. ID3D12GraphicsCommandList * This,
  5151. _In_ ID3D12QueryHeap *pQueryHeap,
  5152. _In_ D3D12_QUERY_TYPE Type,
  5153. _In_ UINT Index);
  5154. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  5155. void ( STDMETHODCALLTYPE *EndQuery )(
  5156. ID3D12GraphicsCommandList * This,
  5157. _In_ ID3D12QueryHeap *pQueryHeap,
  5158. _In_ D3D12_QUERY_TYPE Type,
  5159. _In_ UINT Index);
  5160. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  5161. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  5162. ID3D12GraphicsCommandList * This,
  5163. _In_ ID3D12QueryHeap *pQueryHeap,
  5164. _In_ D3D12_QUERY_TYPE Type,
  5165. _In_ UINT StartIndex,
  5166. _In_ UINT NumQueries,
  5167. _In_ ID3D12Resource *pDestinationBuffer,
  5168. _In_ UINT64 AlignedDestinationBufferOffset);
  5169. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  5170. void ( STDMETHODCALLTYPE *SetPredication )(
  5171. ID3D12GraphicsCommandList * This,
  5172. _In_opt_ ID3D12Resource *pBuffer,
  5173. _In_ UINT64 AlignedBufferOffset,
  5174. _In_ D3D12_PREDICATION_OP Operation);
  5175. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  5176. void ( STDMETHODCALLTYPE *SetMarker )(
  5177. ID3D12GraphicsCommandList * This,
  5178. UINT Metadata,
  5179. _In_reads_bytes_opt_(Size) const void *pData,
  5180. UINT Size);
  5181. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  5182. void ( STDMETHODCALLTYPE *BeginEvent )(
  5183. ID3D12GraphicsCommandList * This,
  5184. UINT Metadata,
  5185. _In_reads_bytes_opt_(Size) const void *pData,
  5186. UINT Size);
  5187. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  5188. void ( STDMETHODCALLTYPE *EndEvent )(
  5189. ID3D12GraphicsCommandList * This);
  5190. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  5191. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  5192. ID3D12GraphicsCommandList * This,
  5193. _In_ ID3D12CommandSignature *pCommandSignature,
  5194. _In_ UINT MaxCommandCount,
  5195. _In_ ID3D12Resource *pArgumentBuffer,
  5196. _In_ UINT64 ArgumentBufferOffset,
  5197. _In_opt_ ID3D12Resource *pCountBuffer,
  5198. _In_ UINT64 CountBufferOffset);
  5199. END_INTERFACE
  5200. } ID3D12GraphicsCommandListVtbl;
  5201. interface ID3D12GraphicsCommandList
  5202. {
  5203. CONST_VTBL struct ID3D12GraphicsCommandListVtbl *lpVtbl;
  5204. };
  5205. #ifdef COBJMACROS
  5206. #define ID3D12GraphicsCommandList_QueryInterface(This,riid,ppvObject) \
  5207. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  5208. #define ID3D12GraphicsCommandList_AddRef(This) \
  5209. ( (This)->lpVtbl -> AddRef(This) )
  5210. #define ID3D12GraphicsCommandList_Release(This) \
  5211. ( (This)->lpVtbl -> Release(This) )
  5212. #define ID3D12GraphicsCommandList_GetPrivateData(This,guid,pDataSize,pData) \
  5213. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  5214. #define ID3D12GraphicsCommandList_SetPrivateData(This,guid,DataSize,pData) \
  5215. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  5216. #define ID3D12GraphicsCommandList_SetPrivateDataInterface(This,guid,pData) \
  5217. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  5218. #define ID3D12GraphicsCommandList_SetName(This,Name) \
  5219. ( (This)->lpVtbl -> SetName(This,Name) )
  5220. #define ID3D12GraphicsCommandList_GetDevice(This,riid,ppvDevice) \
  5221. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  5222. #define ID3D12GraphicsCommandList_GetType(This) \
  5223. ( (This)->lpVtbl -> GetType(This) )
  5224. #define ID3D12GraphicsCommandList_Close(This) \
  5225. ( (This)->lpVtbl -> Close(This) )
  5226. #define ID3D12GraphicsCommandList_Reset(This,pAllocator,pInitialState) \
  5227. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  5228. #define ID3D12GraphicsCommandList_ClearState(This,pPipelineState) \
  5229. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  5230. #define ID3D12GraphicsCommandList_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  5231. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  5232. #define ID3D12GraphicsCommandList_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  5233. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  5234. #define ID3D12GraphicsCommandList_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  5235. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  5236. #define ID3D12GraphicsCommandList_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  5237. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  5238. #define ID3D12GraphicsCommandList_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  5239. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  5240. #define ID3D12GraphicsCommandList_CopyResource(This,pDstResource,pSrcResource) \
  5241. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  5242. #define ID3D12GraphicsCommandList_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  5243. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  5244. #define ID3D12GraphicsCommandList_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  5245. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  5246. #define ID3D12GraphicsCommandList_IASetPrimitiveTopology(This,PrimitiveTopology) \
  5247. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  5248. #define ID3D12GraphicsCommandList_RSSetViewports(This,NumViewports,pViewports) \
  5249. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  5250. #define ID3D12GraphicsCommandList_RSSetScissorRects(This,NumRects,pRects) \
  5251. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  5252. #define ID3D12GraphicsCommandList_OMSetBlendFactor(This,BlendFactor) \
  5253. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  5254. #define ID3D12GraphicsCommandList_OMSetStencilRef(This,StencilRef) \
  5255. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  5256. #define ID3D12GraphicsCommandList_SetPipelineState(This,pPipelineState) \
  5257. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  5258. #define ID3D12GraphicsCommandList_ResourceBarrier(This,NumBarriers,pBarriers) \
  5259. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  5260. #define ID3D12GraphicsCommandList_ExecuteBundle(This,pCommandList) \
  5261. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  5262. #define ID3D12GraphicsCommandList_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  5263. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  5264. #define ID3D12GraphicsCommandList_SetComputeRootSignature(This,pRootSignature) \
  5265. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  5266. #define ID3D12GraphicsCommandList_SetGraphicsRootSignature(This,pRootSignature) \
  5267. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  5268. #define ID3D12GraphicsCommandList_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5269. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5270. #define ID3D12GraphicsCommandList_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5271. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5272. #define ID3D12GraphicsCommandList_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5273. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5274. #define ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5275. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5276. #define ID3D12GraphicsCommandList_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5277. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5278. #define ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5279. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5280. #define ID3D12GraphicsCommandList_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5281. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5282. #define ID3D12GraphicsCommandList_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5283. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5284. #define ID3D12GraphicsCommandList_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5285. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5286. #define ID3D12GraphicsCommandList_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5287. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5288. #define ID3D12GraphicsCommandList_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5289. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5290. #define ID3D12GraphicsCommandList_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5291. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5292. #define ID3D12GraphicsCommandList_IASetIndexBuffer(This,pView) \
  5293. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  5294. #define ID3D12GraphicsCommandList_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  5295. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  5296. #define ID3D12GraphicsCommandList_SOSetTargets(This,StartSlot,NumViews,pViews) \
  5297. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  5298. #define ID3D12GraphicsCommandList_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  5299. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  5300. #define ID3D12GraphicsCommandList_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  5301. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  5302. #define ID3D12GraphicsCommandList_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  5303. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  5304. #define ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5305. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5306. #define ID3D12GraphicsCommandList_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5307. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5308. #define ID3D12GraphicsCommandList_DiscardResource(This,pResource,pRegion) \
  5309. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  5310. #define ID3D12GraphicsCommandList_BeginQuery(This,pQueryHeap,Type,Index) \
  5311. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  5312. #define ID3D12GraphicsCommandList_EndQuery(This,pQueryHeap,Type,Index) \
  5313. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  5314. #define ID3D12GraphicsCommandList_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  5315. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  5316. #define ID3D12GraphicsCommandList_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  5317. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  5318. #define ID3D12GraphicsCommandList_SetMarker(This,Metadata,pData,Size) \
  5319. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  5320. #define ID3D12GraphicsCommandList_BeginEvent(This,Metadata,pData,Size) \
  5321. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  5322. #define ID3D12GraphicsCommandList_EndEvent(This) \
  5323. ( (This)->lpVtbl -> EndEvent(This) )
  5324. #define ID3D12GraphicsCommandList_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  5325. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  5326. #endif /* COBJMACROS */
  5327. #endif /* C style interface */
  5328. #endif /* __ID3D12GraphicsCommandList_INTERFACE_DEFINED__ */
  5329. #ifndef __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__
  5330. #define __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__
  5331. /* interface ID3D12GraphicsCommandList1 */
  5332. /* [unique][local][object][uuid] */
  5333. EXTERN_C const IID IID_ID3D12GraphicsCommandList1;
  5334. #if defined(__cplusplus) && !defined(CINTERFACE)
  5335. MIDL_INTERFACE("553103fb-1fe7-4557-bb38-946d7d0e7ca7")
  5336. ID3D12GraphicsCommandList1 : public ID3D12GraphicsCommandList
  5337. {
  5338. public:
  5339. virtual void STDMETHODCALLTYPE AtomicCopyBufferUINT(
  5340. _In_ ID3D12Resource *pDstBuffer,
  5341. UINT64 DstOffset,
  5342. _In_ ID3D12Resource *pSrcBuffer,
  5343. UINT64 SrcOffset,
  5344. UINT Dependencies,
  5345. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5346. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges) = 0;
  5347. virtual void STDMETHODCALLTYPE AtomicCopyBufferUINT64(
  5348. _In_ ID3D12Resource *pDstBuffer,
  5349. UINT64 DstOffset,
  5350. _In_ ID3D12Resource *pSrcBuffer,
  5351. UINT64 SrcOffset,
  5352. UINT Dependencies,
  5353. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5354. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges) = 0;
  5355. virtual void STDMETHODCALLTYPE OMSetDepthBounds(
  5356. _In_ FLOAT Min,
  5357. _In_ FLOAT Max) = 0;
  5358. virtual void STDMETHODCALLTYPE SetSamplePositions(
  5359. _In_ UINT NumSamplesPerPixel,
  5360. _In_ UINT NumPixels,
  5361. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions) = 0;
  5362. virtual void STDMETHODCALLTYPE ResolveSubresourceRegion(
  5363. _In_ ID3D12Resource *pDstResource,
  5364. _In_ UINT DstSubresource,
  5365. _In_ UINT DstX,
  5366. _In_ UINT DstY,
  5367. _In_ ID3D12Resource *pSrcResource,
  5368. _In_ UINT SrcSubresource,
  5369. _In_opt_ D3D12_RECT *pSrcRect,
  5370. _In_ DXGI_FORMAT Format,
  5371. _In_ D3D12_RESOLVE_MODE ResolveMode) = 0;
  5372. virtual void STDMETHODCALLTYPE SetViewInstanceMask(
  5373. _In_ UINT Mask) = 0;
  5374. };
  5375. #else /* C style interface */
  5376. typedef struct ID3D12GraphicsCommandList1Vtbl
  5377. {
  5378. BEGIN_INTERFACE
  5379. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  5380. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5381. ID3D12GraphicsCommandList1 * This,
  5382. REFIID riid,
  5383. _COM_Outptr_ void **ppvObject);
  5384. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  5385. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5386. ID3D12GraphicsCommandList1 * This);
  5387. DECLSPEC_XFGVIRT(IUnknown, Release)
  5388. ULONG ( STDMETHODCALLTYPE *Release )(
  5389. ID3D12GraphicsCommandList1 * This);
  5390. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  5391. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  5392. ID3D12GraphicsCommandList1 * This,
  5393. _In_ REFGUID guid,
  5394. _Inout_ UINT *pDataSize,
  5395. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  5396. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  5397. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  5398. ID3D12GraphicsCommandList1 * This,
  5399. _In_ REFGUID guid,
  5400. _In_ UINT DataSize,
  5401. _In_reads_bytes_opt_( DataSize ) const void *pData);
  5402. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  5403. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  5404. ID3D12GraphicsCommandList1 * This,
  5405. _In_ REFGUID guid,
  5406. _In_opt_ const IUnknown *pData);
  5407. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  5408. HRESULT ( STDMETHODCALLTYPE *SetName )(
  5409. ID3D12GraphicsCommandList1 * This,
  5410. _In_z_ LPCWSTR Name);
  5411. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  5412. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  5413. ID3D12GraphicsCommandList1 * This,
  5414. REFIID riid,
  5415. _COM_Outptr_opt_ void **ppvDevice);
  5416. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  5417. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  5418. ID3D12GraphicsCommandList1 * This);
  5419. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  5420. HRESULT ( STDMETHODCALLTYPE *Close )(
  5421. ID3D12GraphicsCommandList1 * This);
  5422. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  5423. HRESULT ( STDMETHODCALLTYPE *Reset )(
  5424. ID3D12GraphicsCommandList1 * This,
  5425. _In_ ID3D12CommandAllocator *pAllocator,
  5426. _In_opt_ ID3D12PipelineState *pInitialState);
  5427. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  5428. void ( STDMETHODCALLTYPE *ClearState )(
  5429. ID3D12GraphicsCommandList1 * This,
  5430. _In_opt_ ID3D12PipelineState *pPipelineState);
  5431. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  5432. void ( STDMETHODCALLTYPE *DrawInstanced )(
  5433. ID3D12GraphicsCommandList1 * This,
  5434. _In_ UINT VertexCountPerInstance,
  5435. _In_ UINT InstanceCount,
  5436. _In_ UINT StartVertexLocation,
  5437. _In_ UINT StartInstanceLocation);
  5438. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  5439. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  5440. ID3D12GraphicsCommandList1 * This,
  5441. _In_ UINT IndexCountPerInstance,
  5442. _In_ UINT InstanceCount,
  5443. _In_ UINT StartIndexLocation,
  5444. _In_ INT BaseVertexLocation,
  5445. _In_ UINT StartInstanceLocation);
  5446. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  5447. void ( STDMETHODCALLTYPE *Dispatch )(
  5448. ID3D12GraphicsCommandList1 * This,
  5449. _In_ UINT ThreadGroupCountX,
  5450. _In_ UINT ThreadGroupCountY,
  5451. _In_ UINT ThreadGroupCountZ);
  5452. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  5453. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  5454. ID3D12GraphicsCommandList1 * This,
  5455. _In_ ID3D12Resource *pDstBuffer,
  5456. UINT64 DstOffset,
  5457. _In_ ID3D12Resource *pSrcBuffer,
  5458. UINT64 SrcOffset,
  5459. UINT64 NumBytes);
  5460. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  5461. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  5462. ID3D12GraphicsCommandList1 * This,
  5463. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  5464. UINT DstX,
  5465. UINT DstY,
  5466. UINT DstZ,
  5467. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  5468. _In_opt_ const D3D12_BOX *pSrcBox);
  5469. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  5470. void ( STDMETHODCALLTYPE *CopyResource )(
  5471. ID3D12GraphicsCommandList1 * This,
  5472. _In_ ID3D12Resource *pDstResource,
  5473. _In_ ID3D12Resource *pSrcResource);
  5474. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  5475. void ( STDMETHODCALLTYPE *CopyTiles )(
  5476. ID3D12GraphicsCommandList1 * This,
  5477. _In_ ID3D12Resource *pTiledResource,
  5478. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  5479. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  5480. _In_ ID3D12Resource *pBuffer,
  5481. UINT64 BufferStartOffsetInBytes,
  5482. D3D12_TILE_COPY_FLAGS Flags);
  5483. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  5484. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  5485. ID3D12GraphicsCommandList1 * This,
  5486. _In_ ID3D12Resource *pDstResource,
  5487. _In_ UINT DstSubresource,
  5488. _In_ ID3D12Resource *pSrcResource,
  5489. _In_ UINT SrcSubresource,
  5490. _In_ DXGI_FORMAT Format);
  5491. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  5492. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  5493. ID3D12GraphicsCommandList1 * This,
  5494. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  5495. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  5496. void ( STDMETHODCALLTYPE *RSSetViewports )(
  5497. ID3D12GraphicsCommandList1 * This,
  5498. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  5499. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  5500. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  5501. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  5502. ID3D12GraphicsCommandList1 * This,
  5503. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  5504. _In_reads_( NumRects) const D3D12_RECT *pRects);
  5505. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  5506. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  5507. ID3D12GraphicsCommandList1 * This,
  5508. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  5509. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  5510. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  5511. ID3D12GraphicsCommandList1 * This,
  5512. _In_ UINT StencilRef);
  5513. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  5514. void ( STDMETHODCALLTYPE *SetPipelineState )(
  5515. ID3D12GraphicsCommandList1 * This,
  5516. _In_ ID3D12PipelineState *pPipelineState);
  5517. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  5518. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  5519. ID3D12GraphicsCommandList1 * This,
  5520. _In_ UINT NumBarriers,
  5521. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  5522. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  5523. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  5524. ID3D12GraphicsCommandList1 * This,
  5525. _In_ ID3D12GraphicsCommandList *pCommandList);
  5526. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  5527. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  5528. ID3D12GraphicsCommandList1 * This,
  5529. _In_ UINT NumDescriptorHeaps,
  5530. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  5531. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  5532. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  5533. ID3D12GraphicsCommandList1 * This,
  5534. _In_opt_ ID3D12RootSignature *pRootSignature);
  5535. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  5536. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  5537. ID3D12GraphicsCommandList1 * This,
  5538. _In_opt_ ID3D12RootSignature *pRootSignature);
  5539. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  5540. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  5541. ID3D12GraphicsCommandList1 * This,
  5542. _In_ UINT RootParameterIndex,
  5543. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  5544. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  5545. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  5546. ID3D12GraphicsCommandList1 * This,
  5547. _In_ UINT RootParameterIndex,
  5548. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  5549. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  5550. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  5551. ID3D12GraphicsCommandList1 * This,
  5552. _In_ UINT RootParameterIndex,
  5553. _In_ UINT SrcData,
  5554. _In_ UINT DestOffsetIn32BitValues);
  5555. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  5556. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  5557. ID3D12GraphicsCommandList1 * This,
  5558. _In_ UINT RootParameterIndex,
  5559. _In_ UINT SrcData,
  5560. _In_ UINT DestOffsetIn32BitValues);
  5561. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  5562. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  5563. ID3D12GraphicsCommandList1 * This,
  5564. _In_ UINT RootParameterIndex,
  5565. _In_ UINT Num32BitValuesToSet,
  5566. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  5567. _In_ UINT DestOffsetIn32BitValues);
  5568. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  5569. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  5570. ID3D12GraphicsCommandList1 * This,
  5571. _In_ UINT RootParameterIndex,
  5572. _In_ UINT Num32BitValuesToSet,
  5573. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  5574. _In_ UINT DestOffsetIn32BitValues);
  5575. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  5576. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  5577. ID3D12GraphicsCommandList1 * This,
  5578. _In_ UINT RootParameterIndex,
  5579. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5580. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  5581. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  5582. ID3D12GraphicsCommandList1 * This,
  5583. _In_ UINT RootParameterIndex,
  5584. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5585. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  5586. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  5587. ID3D12GraphicsCommandList1 * This,
  5588. _In_ UINT RootParameterIndex,
  5589. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5590. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  5591. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  5592. ID3D12GraphicsCommandList1 * This,
  5593. _In_ UINT RootParameterIndex,
  5594. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5595. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  5596. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  5597. ID3D12GraphicsCommandList1 * This,
  5598. _In_ UINT RootParameterIndex,
  5599. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5600. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  5601. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  5602. ID3D12GraphicsCommandList1 * This,
  5603. _In_ UINT RootParameterIndex,
  5604. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5605. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  5606. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  5607. ID3D12GraphicsCommandList1 * This,
  5608. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  5609. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  5610. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  5611. ID3D12GraphicsCommandList1 * This,
  5612. _In_ UINT StartSlot,
  5613. _In_ UINT NumViews,
  5614. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  5615. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  5616. void ( STDMETHODCALLTYPE *SOSetTargets )(
  5617. ID3D12GraphicsCommandList1 * This,
  5618. _In_ UINT StartSlot,
  5619. _In_ UINT NumViews,
  5620. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  5621. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  5622. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  5623. ID3D12GraphicsCommandList1 * This,
  5624. _In_ UINT NumRenderTargetDescriptors,
  5625. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  5626. _In_ BOOL RTsSingleHandleToDescriptorRange,
  5627. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  5628. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  5629. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  5630. ID3D12GraphicsCommandList1 * This,
  5631. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  5632. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  5633. _In_ FLOAT Depth,
  5634. _In_ UINT8 Stencil,
  5635. _In_ UINT NumRects,
  5636. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5637. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  5638. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  5639. ID3D12GraphicsCommandList1 * This,
  5640. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  5641. _In_ const FLOAT ColorRGBA[ 4 ],
  5642. _In_ UINT NumRects,
  5643. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5644. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  5645. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  5646. ID3D12GraphicsCommandList1 * This,
  5647. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5648. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5649. _In_ ID3D12Resource *pResource,
  5650. _In_ const UINT Values[ 4 ],
  5651. _In_ UINT NumRects,
  5652. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5653. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  5654. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  5655. ID3D12GraphicsCommandList1 * This,
  5656. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5657. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5658. _In_ ID3D12Resource *pResource,
  5659. _In_ const FLOAT Values[ 4 ],
  5660. _In_ UINT NumRects,
  5661. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5662. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  5663. void ( STDMETHODCALLTYPE *DiscardResource )(
  5664. ID3D12GraphicsCommandList1 * This,
  5665. _In_ ID3D12Resource *pResource,
  5666. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  5667. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  5668. void ( STDMETHODCALLTYPE *BeginQuery )(
  5669. ID3D12GraphicsCommandList1 * This,
  5670. _In_ ID3D12QueryHeap *pQueryHeap,
  5671. _In_ D3D12_QUERY_TYPE Type,
  5672. _In_ UINT Index);
  5673. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  5674. void ( STDMETHODCALLTYPE *EndQuery )(
  5675. ID3D12GraphicsCommandList1 * This,
  5676. _In_ ID3D12QueryHeap *pQueryHeap,
  5677. _In_ D3D12_QUERY_TYPE Type,
  5678. _In_ UINT Index);
  5679. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  5680. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  5681. ID3D12GraphicsCommandList1 * This,
  5682. _In_ ID3D12QueryHeap *pQueryHeap,
  5683. _In_ D3D12_QUERY_TYPE Type,
  5684. _In_ UINT StartIndex,
  5685. _In_ UINT NumQueries,
  5686. _In_ ID3D12Resource *pDestinationBuffer,
  5687. _In_ UINT64 AlignedDestinationBufferOffset);
  5688. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  5689. void ( STDMETHODCALLTYPE *SetPredication )(
  5690. ID3D12GraphicsCommandList1 * This,
  5691. _In_opt_ ID3D12Resource *pBuffer,
  5692. _In_ UINT64 AlignedBufferOffset,
  5693. _In_ D3D12_PREDICATION_OP Operation);
  5694. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  5695. void ( STDMETHODCALLTYPE *SetMarker )(
  5696. ID3D12GraphicsCommandList1 * This,
  5697. UINT Metadata,
  5698. _In_reads_bytes_opt_(Size) const void *pData,
  5699. UINT Size);
  5700. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  5701. void ( STDMETHODCALLTYPE *BeginEvent )(
  5702. ID3D12GraphicsCommandList1 * This,
  5703. UINT Metadata,
  5704. _In_reads_bytes_opt_(Size) const void *pData,
  5705. UINT Size);
  5706. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  5707. void ( STDMETHODCALLTYPE *EndEvent )(
  5708. ID3D12GraphicsCommandList1 * This);
  5709. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  5710. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  5711. ID3D12GraphicsCommandList1 * This,
  5712. _In_ ID3D12CommandSignature *pCommandSignature,
  5713. _In_ UINT MaxCommandCount,
  5714. _In_ ID3D12Resource *pArgumentBuffer,
  5715. _In_ UINT64 ArgumentBufferOffset,
  5716. _In_opt_ ID3D12Resource *pCountBuffer,
  5717. _In_ UINT64 CountBufferOffset);
  5718. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  5719. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  5720. ID3D12GraphicsCommandList1 * This,
  5721. _In_ ID3D12Resource *pDstBuffer,
  5722. UINT64 DstOffset,
  5723. _In_ ID3D12Resource *pSrcBuffer,
  5724. UINT64 SrcOffset,
  5725. UINT Dependencies,
  5726. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5727. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  5728. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  5729. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  5730. ID3D12GraphicsCommandList1 * This,
  5731. _In_ ID3D12Resource *pDstBuffer,
  5732. UINT64 DstOffset,
  5733. _In_ ID3D12Resource *pSrcBuffer,
  5734. UINT64 SrcOffset,
  5735. UINT Dependencies,
  5736. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5737. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  5738. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  5739. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  5740. ID3D12GraphicsCommandList1 * This,
  5741. _In_ FLOAT Min,
  5742. _In_ FLOAT Max);
  5743. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  5744. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  5745. ID3D12GraphicsCommandList1 * This,
  5746. _In_ UINT NumSamplesPerPixel,
  5747. _In_ UINT NumPixels,
  5748. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  5749. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  5750. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  5751. ID3D12GraphicsCommandList1 * This,
  5752. _In_ ID3D12Resource *pDstResource,
  5753. _In_ UINT DstSubresource,
  5754. _In_ UINT DstX,
  5755. _In_ UINT DstY,
  5756. _In_ ID3D12Resource *pSrcResource,
  5757. _In_ UINT SrcSubresource,
  5758. _In_opt_ D3D12_RECT *pSrcRect,
  5759. _In_ DXGI_FORMAT Format,
  5760. _In_ D3D12_RESOLVE_MODE ResolveMode);
  5761. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  5762. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  5763. ID3D12GraphicsCommandList1 * This,
  5764. _In_ UINT Mask);
  5765. END_INTERFACE
  5766. } ID3D12GraphicsCommandList1Vtbl;
  5767. interface ID3D12GraphicsCommandList1
  5768. {
  5769. CONST_VTBL struct ID3D12GraphicsCommandList1Vtbl *lpVtbl;
  5770. };
  5771. #ifdef COBJMACROS
  5772. #define ID3D12GraphicsCommandList1_QueryInterface(This,riid,ppvObject) \
  5773. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  5774. #define ID3D12GraphicsCommandList1_AddRef(This) \
  5775. ( (This)->lpVtbl -> AddRef(This) )
  5776. #define ID3D12GraphicsCommandList1_Release(This) \
  5777. ( (This)->lpVtbl -> Release(This) )
  5778. #define ID3D12GraphicsCommandList1_GetPrivateData(This,guid,pDataSize,pData) \
  5779. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  5780. #define ID3D12GraphicsCommandList1_SetPrivateData(This,guid,DataSize,pData) \
  5781. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  5782. #define ID3D12GraphicsCommandList1_SetPrivateDataInterface(This,guid,pData) \
  5783. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  5784. #define ID3D12GraphicsCommandList1_SetName(This,Name) \
  5785. ( (This)->lpVtbl -> SetName(This,Name) )
  5786. #define ID3D12GraphicsCommandList1_GetDevice(This,riid,ppvDevice) \
  5787. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  5788. #define ID3D12GraphicsCommandList1_GetType(This) \
  5789. ( (This)->lpVtbl -> GetType(This) )
  5790. #define ID3D12GraphicsCommandList1_Close(This) \
  5791. ( (This)->lpVtbl -> Close(This) )
  5792. #define ID3D12GraphicsCommandList1_Reset(This,pAllocator,pInitialState) \
  5793. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  5794. #define ID3D12GraphicsCommandList1_ClearState(This,pPipelineState) \
  5795. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  5796. #define ID3D12GraphicsCommandList1_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  5797. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  5798. #define ID3D12GraphicsCommandList1_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  5799. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  5800. #define ID3D12GraphicsCommandList1_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  5801. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  5802. #define ID3D12GraphicsCommandList1_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  5803. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  5804. #define ID3D12GraphicsCommandList1_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  5805. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  5806. #define ID3D12GraphicsCommandList1_CopyResource(This,pDstResource,pSrcResource) \
  5807. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  5808. #define ID3D12GraphicsCommandList1_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  5809. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  5810. #define ID3D12GraphicsCommandList1_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  5811. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  5812. #define ID3D12GraphicsCommandList1_IASetPrimitiveTopology(This,PrimitiveTopology) \
  5813. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  5814. #define ID3D12GraphicsCommandList1_RSSetViewports(This,NumViewports,pViewports) \
  5815. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  5816. #define ID3D12GraphicsCommandList1_RSSetScissorRects(This,NumRects,pRects) \
  5817. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  5818. #define ID3D12GraphicsCommandList1_OMSetBlendFactor(This,BlendFactor) \
  5819. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  5820. #define ID3D12GraphicsCommandList1_OMSetStencilRef(This,StencilRef) \
  5821. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  5822. #define ID3D12GraphicsCommandList1_SetPipelineState(This,pPipelineState) \
  5823. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  5824. #define ID3D12GraphicsCommandList1_ResourceBarrier(This,NumBarriers,pBarriers) \
  5825. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  5826. #define ID3D12GraphicsCommandList1_ExecuteBundle(This,pCommandList) \
  5827. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  5828. #define ID3D12GraphicsCommandList1_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  5829. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  5830. #define ID3D12GraphicsCommandList1_SetComputeRootSignature(This,pRootSignature) \
  5831. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  5832. #define ID3D12GraphicsCommandList1_SetGraphicsRootSignature(This,pRootSignature) \
  5833. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  5834. #define ID3D12GraphicsCommandList1_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5835. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5836. #define ID3D12GraphicsCommandList1_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5837. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5838. #define ID3D12GraphicsCommandList1_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5839. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5840. #define ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5841. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5842. #define ID3D12GraphicsCommandList1_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5843. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5844. #define ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5845. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5846. #define ID3D12GraphicsCommandList1_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5847. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5848. #define ID3D12GraphicsCommandList1_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5849. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5850. #define ID3D12GraphicsCommandList1_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5851. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5852. #define ID3D12GraphicsCommandList1_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5853. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5854. #define ID3D12GraphicsCommandList1_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5855. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5856. #define ID3D12GraphicsCommandList1_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5857. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5858. #define ID3D12GraphicsCommandList1_IASetIndexBuffer(This,pView) \
  5859. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  5860. #define ID3D12GraphicsCommandList1_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  5861. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  5862. #define ID3D12GraphicsCommandList1_SOSetTargets(This,StartSlot,NumViews,pViews) \
  5863. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  5864. #define ID3D12GraphicsCommandList1_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  5865. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  5866. #define ID3D12GraphicsCommandList1_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  5867. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  5868. #define ID3D12GraphicsCommandList1_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  5869. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  5870. #define ID3D12GraphicsCommandList1_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5871. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5872. #define ID3D12GraphicsCommandList1_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5873. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5874. #define ID3D12GraphicsCommandList1_DiscardResource(This,pResource,pRegion) \
  5875. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  5876. #define ID3D12GraphicsCommandList1_BeginQuery(This,pQueryHeap,Type,Index) \
  5877. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  5878. #define ID3D12GraphicsCommandList1_EndQuery(This,pQueryHeap,Type,Index) \
  5879. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  5880. #define ID3D12GraphicsCommandList1_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  5881. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  5882. #define ID3D12GraphicsCommandList1_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  5883. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  5884. #define ID3D12GraphicsCommandList1_SetMarker(This,Metadata,pData,Size) \
  5885. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  5886. #define ID3D12GraphicsCommandList1_BeginEvent(This,Metadata,pData,Size) \
  5887. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  5888. #define ID3D12GraphicsCommandList1_EndEvent(This) \
  5889. ( (This)->lpVtbl -> EndEvent(This) )
  5890. #define ID3D12GraphicsCommandList1_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  5891. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  5892. #define ID3D12GraphicsCommandList1_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  5893. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  5894. #define ID3D12GraphicsCommandList1_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  5895. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  5896. #define ID3D12GraphicsCommandList1_OMSetDepthBounds(This,Min,Max) \
  5897. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  5898. #define ID3D12GraphicsCommandList1_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  5899. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  5900. #define ID3D12GraphicsCommandList1_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  5901. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  5902. #define ID3D12GraphicsCommandList1_SetViewInstanceMask(This,Mask) \
  5903. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  5904. #endif /* COBJMACROS */
  5905. #endif /* C style interface */
  5906. #endif /* __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__ */
  5907. /* interface __MIDL_itf_d3d12_0000_0018 */
  5908. /* [local] */
  5909. typedef struct D3D12_WRITEBUFFERIMMEDIATE_PARAMETER
  5910. {
  5911. D3D12_GPU_VIRTUAL_ADDRESS Dest;
  5912. UINT32 Value;
  5913. } D3D12_WRITEBUFFERIMMEDIATE_PARAMETER;
  5914. typedef
  5915. enum D3D12_WRITEBUFFERIMMEDIATE_MODE
  5916. {
  5917. D3D12_WRITEBUFFERIMMEDIATE_MODE_DEFAULT = 0,
  5918. D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_IN = 0x1,
  5919. D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_OUT = 0x2
  5920. } D3D12_WRITEBUFFERIMMEDIATE_MODE;
  5921. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0018_v0_0_c_ifspec;
  5922. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0018_v0_0_s_ifspec;
  5923. #ifndef __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__
  5924. #define __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__
  5925. /* interface ID3D12GraphicsCommandList2 */
  5926. /* [unique][local][object][uuid] */
  5927. EXTERN_C const IID IID_ID3D12GraphicsCommandList2;
  5928. #if defined(__cplusplus) && !defined(CINTERFACE)
  5929. MIDL_INTERFACE("38C3E585-FF17-412C-9150-4FC6F9D72A28")
  5930. ID3D12GraphicsCommandList2 : public ID3D12GraphicsCommandList1
  5931. {
  5932. public:
  5933. virtual void STDMETHODCALLTYPE WriteBufferImmediate(
  5934. UINT Count,
  5935. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  5936. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes) = 0;
  5937. };
  5938. #else /* C style interface */
  5939. typedef struct ID3D12GraphicsCommandList2Vtbl
  5940. {
  5941. BEGIN_INTERFACE
  5942. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  5943. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5944. ID3D12GraphicsCommandList2 * This,
  5945. REFIID riid,
  5946. _COM_Outptr_ void **ppvObject);
  5947. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  5948. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5949. ID3D12GraphicsCommandList2 * This);
  5950. DECLSPEC_XFGVIRT(IUnknown, Release)
  5951. ULONG ( STDMETHODCALLTYPE *Release )(
  5952. ID3D12GraphicsCommandList2 * This);
  5953. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  5954. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  5955. ID3D12GraphicsCommandList2 * This,
  5956. _In_ REFGUID guid,
  5957. _Inout_ UINT *pDataSize,
  5958. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  5959. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  5960. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  5961. ID3D12GraphicsCommandList2 * This,
  5962. _In_ REFGUID guid,
  5963. _In_ UINT DataSize,
  5964. _In_reads_bytes_opt_( DataSize ) const void *pData);
  5965. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  5966. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  5967. ID3D12GraphicsCommandList2 * This,
  5968. _In_ REFGUID guid,
  5969. _In_opt_ const IUnknown *pData);
  5970. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  5971. HRESULT ( STDMETHODCALLTYPE *SetName )(
  5972. ID3D12GraphicsCommandList2 * This,
  5973. _In_z_ LPCWSTR Name);
  5974. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  5975. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  5976. ID3D12GraphicsCommandList2 * This,
  5977. REFIID riid,
  5978. _COM_Outptr_opt_ void **ppvDevice);
  5979. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  5980. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  5981. ID3D12GraphicsCommandList2 * This);
  5982. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  5983. HRESULT ( STDMETHODCALLTYPE *Close )(
  5984. ID3D12GraphicsCommandList2 * This);
  5985. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  5986. HRESULT ( STDMETHODCALLTYPE *Reset )(
  5987. ID3D12GraphicsCommandList2 * This,
  5988. _In_ ID3D12CommandAllocator *pAllocator,
  5989. _In_opt_ ID3D12PipelineState *pInitialState);
  5990. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  5991. void ( STDMETHODCALLTYPE *ClearState )(
  5992. ID3D12GraphicsCommandList2 * This,
  5993. _In_opt_ ID3D12PipelineState *pPipelineState);
  5994. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  5995. void ( STDMETHODCALLTYPE *DrawInstanced )(
  5996. ID3D12GraphicsCommandList2 * This,
  5997. _In_ UINT VertexCountPerInstance,
  5998. _In_ UINT InstanceCount,
  5999. _In_ UINT StartVertexLocation,
  6000. _In_ UINT StartInstanceLocation);
  6001. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  6002. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  6003. ID3D12GraphicsCommandList2 * This,
  6004. _In_ UINT IndexCountPerInstance,
  6005. _In_ UINT InstanceCount,
  6006. _In_ UINT StartIndexLocation,
  6007. _In_ INT BaseVertexLocation,
  6008. _In_ UINT StartInstanceLocation);
  6009. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  6010. void ( STDMETHODCALLTYPE *Dispatch )(
  6011. ID3D12GraphicsCommandList2 * This,
  6012. _In_ UINT ThreadGroupCountX,
  6013. _In_ UINT ThreadGroupCountY,
  6014. _In_ UINT ThreadGroupCountZ);
  6015. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  6016. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  6017. ID3D12GraphicsCommandList2 * This,
  6018. _In_ ID3D12Resource *pDstBuffer,
  6019. UINT64 DstOffset,
  6020. _In_ ID3D12Resource *pSrcBuffer,
  6021. UINT64 SrcOffset,
  6022. UINT64 NumBytes);
  6023. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  6024. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  6025. ID3D12GraphicsCommandList2 * This,
  6026. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  6027. UINT DstX,
  6028. UINT DstY,
  6029. UINT DstZ,
  6030. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  6031. _In_opt_ const D3D12_BOX *pSrcBox);
  6032. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  6033. void ( STDMETHODCALLTYPE *CopyResource )(
  6034. ID3D12GraphicsCommandList2 * This,
  6035. _In_ ID3D12Resource *pDstResource,
  6036. _In_ ID3D12Resource *pSrcResource);
  6037. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  6038. void ( STDMETHODCALLTYPE *CopyTiles )(
  6039. ID3D12GraphicsCommandList2 * This,
  6040. _In_ ID3D12Resource *pTiledResource,
  6041. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  6042. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  6043. _In_ ID3D12Resource *pBuffer,
  6044. UINT64 BufferStartOffsetInBytes,
  6045. D3D12_TILE_COPY_FLAGS Flags);
  6046. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  6047. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  6048. ID3D12GraphicsCommandList2 * This,
  6049. _In_ ID3D12Resource *pDstResource,
  6050. _In_ UINT DstSubresource,
  6051. _In_ ID3D12Resource *pSrcResource,
  6052. _In_ UINT SrcSubresource,
  6053. _In_ DXGI_FORMAT Format);
  6054. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  6055. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  6056. ID3D12GraphicsCommandList2 * This,
  6057. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  6058. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  6059. void ( STDMETHODCALLTYPE *RSSetViewports )(
  6060. ID3D12GraphicsCommandList2 * This,
  6061. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  6062. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  6063. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  6064. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  6065. ID3D12GraphicsCommandList2 * This,
  6066. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  6067. _In_reads_( NumRects) const D3D12_RECT *pRects);
  6068. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  6069. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  6070. ID3D12GraphicsCommandList2 * This,
  6071. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  6072. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  6073. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  6074. ID3D12GraphicsCommandList2 * This,
  6075. _In_ UINT StencilRef);
  6076. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  6077. void ( STDMETHODCALLTYPE *SetPipelineState )(
  6078. ID3D12GraphicsCommandList2 * This,
  6079. _In_ ID3D12PipelineState *pPipelineState);
  6080. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  6081. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  6082. ID3D12GraphicsCommandList2 * This,
  6083. _In_ UINT NumBarriers,
  6084. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  6085. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  6086. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  6087. ID3D12GraphicsCommandList2 * This,
  6088. _In_ ID3D12GraphicsCommandList *pCommandList);
  6089. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  6090. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  6091. ID3D12GraphicsCommandList2 * This,
  6092. _In_ UINT NumDescriptorHeaps,
  6093. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  6094. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  6095. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  6096. ID3D12GraphicsCommandList2 * This,
  6097. _In_opt_ ID3D12RootSignature *pRootSignature);
  6098. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  6099. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  6100. ID3D12GraphicsCommandList2 * This,
  6101. _In_opt_ ID3D12RootSignature *pRootSignature);
  6102. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  6103. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  6104. ID3D12GraphicsCommandList2 * This,
  6105. _In_ UINT RootParameterIndex,
  6106. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  6107. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  6108. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  6109. ID3D12GraphicsCommandList2 * This,
  6110. _In_ UINT RootParameterIndex,
  6111. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  6112. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  6113. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  6114. ID3D12GraphicsCommandList2 * This,
  6115. _In_ UINT RootParameterIndex,
  6116. _In_ UINT SrcData,
  6117. _In_ UINT DestOffsetIn32BitValues);
  6118. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  6119. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  6120. ID3D12GraphicsCommandList2 * This,
  6121. _In_ UINT RootParameterIndex,
  6122. _In_ UINT SrcData,
  6123. _In_ UINT DestOffsetIn32BitValues);
  6124. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  6125. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  6126. ID3D12GraphicsCommandList2 * This,
  6127. _In_ UINT RootParameterIndex,
  6128. _In_ UINT Num32BitValuesToSet,
  6129. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  6130. _In_ UINT DestOffsetIn32BitValues);
  6131. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  6132. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  6133. ID3D12GraphicsCommandList2 * This,
  6134. _In_ UINT RootParameterIndex,
  6135. _In_ UINT Num32BitValuesToSet,
  6136. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  6137. _In_ UINT DestOffsetIn32BitValues);
  6138. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  6139. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  6140. ID3D12GraphicsCommandList2 * This,
  6141. _In_ UINT RootParameterIndex,
  6142. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6143. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  6144. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  6145. ID3D12GraphicsCommandList2 * This,
  6146. _In_ UINT RootParameterIndex,
  6147. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6148. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  6149. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  6150. ID3D12GraphicsCommandList2 * This,
  6151. _In_ UINT RootParameterIndex,
  6152. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6153. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  6154. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  6155. ID3D12GraphicsCommandList2 * This,
  6156. _In_ UINT RootParameterIndex,
  6157. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6158. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  6159. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  6160. ID3D12GraphicsCommandList2 * This,
  6161. _In_ UINT RootParameterIndex,
  6162. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6163. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  6164. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  6165. ID3D12GraphicsCommandList2 * This,
  6166. _In_ UINT RootParameterIndex,
  6167. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6168. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  6169. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  6170. ID3D12GraphicsCommandList2 * This,
  6171. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  6172. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  6173. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  6174. ID3D12GraphicsCommandList2 * This,
  6175. _In_ UINT StartSlot,
  6176. _In_ UINT NumViews,
  6177. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  6178. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  6179. void ( STDMETHODCALLTYPE *SOSetTargets )(
  6180. ID3D12GraphicsCommandList2 * This,
  6181. _In_ UINT StartSlot,
  6182. _In_ UINT NumViews,
  6183. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  6184. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  6185. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  6186. ID3D12GraphicsCommandList2 * This,
  6187. _In_ UINT NumRenderTargetDescriptors,
  6188. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  6189. _In_ BOOL RTsSingleHandleToDescriptorRange,
  6190. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  6191. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  6192. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  6193. ID3D12GraphicsCommandList2 * This,
  6194. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  6195. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  6196. _In_ FLOAT Depth,
  6197. _In_ UINT8 Stencil,
  6198. _In_ UINT NumRects,
  6199. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6200. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  6201. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  6202. ID3D12GraphicsCommandList2 * This,
  6203. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  6204. _In_ const FLOAT ColorRGBA[ 4 ],
  6205. _In_ UINT NumRects,
  6206. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6207. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  6208. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  6209. ID3D12GraphicsCommandList2 * This,
  6210. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  6211. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  6212. _In_ ID3D12Resource *pResource,
  6213. _In_ const UINT Values[ 4 ],
  6214. _In_ UINT NumRects,
  6215. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6216. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  6217. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  6218. ID3D12GraphicsCommandList2 * This,
  6219. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  6220. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  6221. _In_ ID3D12Resource *pResource,
  6222. _In_ const FLOAT Values[ 4 ],
  6223. _In_ UINT NumRects,
  6224. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6225. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  6226. void ( STDMETHODCALLTYPE *DiscardResource )(
  6227. ID3D12GraphicsCommandList2 * This,
  6228. _In_ ID3D12Resource *pResource,
  6229. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  6230. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  6231. void ( STDMETHODCALLTYPE *BeginQuery )(
  6232. ID3D12GraphicsCommandList2 * This,
  6233. _In_ ID3D12QueryHeap *pQueryHeap,
  6234. _In_ D3D12_QUERY_TYPE Type,
  6235. _In_ UINT Index);
  6236. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  6237. void ( STDMETHODCALLTYPE *EndQuery )(
  6238. ID3D12GraphicsCommandList2 * This,
  6239. _In_ ID3D12QueryHeap *pQueryHeap,
  6240. _In_ D3D12_QUERY_TYPE Type,
  6241. _In_ UINT Index);
  6242. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  6243. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  6244. ID3D12GraphicsCommandList2 * This,
  6245. _In_ ID3D12QueryHeap *pQueryHeap,
  6246. _In_ D3D12_QUERY_TYPE Type,
  6247. _In_ UINT StartIndex,
  6248. _In_ UINT NumQueries,
  6249. _In_ ID3D12Resource *pDestinationBuffer,
  6250. _In_ UINT64 AlignedDestinationBufferOffset);
  6251. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  6252. void ( STDMETHODCALLTYPE *SetPredication )(
  6253. ID3D12GraphicsCommandList2 * This,
  6254. _In_opt_ ID3D12Resource *pBuffer,
  6255. _In_ UINT64 AlignedBufferOffset,
  6256. _In_ D3D12_PREDICATION_OP Operation);
  6257. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  6258. void ( STDMETHODCALLTYPE *SetMarker )(
  6259. ID3D12GraphicsCommandList2 * This,
  6260. UINT Metadata,
  6261. _In_reads_bytes_opt_(Size) const void *pData,
  6262. UINT Size);
  6263. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  6264. void ( STDMETHODCALLTYPE *BeginEvent )(
  6265. ID3D12GraphicsCommandList2 * This,
  6266. UINT Metadata,
  6267. _In_reads_bytes_opt_(Size) const void *pData,
  6268. UINT Size);
  6269. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  6270. void ( STDMETHODCALLTYPE *EndEvent )(
  6271. ID3D12GraphicsCommandList2 * This);
  6272. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  6273. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  6274. ID3D12GraphicsCommandList2 * This,
  6275. _In_ ID3D12CommandSignature *pCommandSignature,
  6276. _In_ UINT MaxCommandCount,
  6277. _In_ ID3D12Resource *pArgumentBuffer,
  6278. _In_ UINT64 ArgumentBufferOffset,
  6279. _In_opt_ ID3D12Resource *pCountBuffer,
  6280. _In_ UINT64 CountBufferOffset);
  6281. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  6282. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  6283. ID3D12GraphicsCommandList2 * This,
  6284. _In_ ID3D12Resource *pDstBuffer,
  6285. UINT64 DstOffset,
  6286. _In_ ID3D12Resource *pSrcBuffer,
  6287. UINT64 SrcOffset,
  6288. UINT Dependencies,
  6289. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  6290. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  6291. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  6292. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  6293. ID3D12GraphicsCommandList2 * This,
  6294. _In_ ID3D12Resource *pDstBuffer,
  6295. UINT64 DstOffset,
  6296. _In_ ID3D12Resource *pSrcBuffer,
  6297. UINT64 SrcOffset,
  6298. UINT Dependencies,
  6299. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  6300. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  6301. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  6302. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  6303. ID3D12GraphicsCommandList2 * This,
  6304. _In_ FLOAT Min,
  6305. _In_ FLOAT Max);
  6306. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  6307. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  6308. ID3D12GraphicsCommandList2 * This,
  6309. _In_ UINT NumSamplesPerPixel,
  6310. _In_ UINT NumPixels,
  6311. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  6312. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  6313. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  6314. ID3D12GraphicsCommandList2 * This,
  6315. _In_ ID3D12Resource *pDstResource,
  6316. _In_ UINT DstSubresource,
  6317. _In_ UINT DstX,
  6318. _In_ UINT DstY,
  6319. _In_ ID3D12Resource *pSrcResource,
  6320. _In_ UINT SrcSubresource,
  6321. _In_opt_ D3D12_RECT *pSrcRect,
  6322. _In_ DXGI_FORMAT Format,
  6323. _In_ D3D12_RESOLVE_MODE ResolveMode);
  6324. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  6325. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  6326. ID3D12GraphicsCommandList2 * This,
  6327. _In_ UINT Mask);
  6328. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  6329. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  6330. ID3D12GraphicsCommandList2 * This,
  6331. UINT Count,
  6332. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  6333. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  6334. END_INTERFACE
  6335. } ID3D12GraphicsCommandList2Vtbl;
  6336. interface ID3D12GraphicsCommandList2
  6337. {
  6338. CONST_VTBL struct ID3D12GraphicsCommandList2Vtbl *lpVtbl;
  6339. };
  6340. #ifdef COBJMACROS
  6341. #define ID3D12GraphicsCommandList2_QueryInterface(This,riid,ppvObject) \
  6342. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  6343. #define ID3D12GraphicsCommandList2_AddRef(This) \
  6344. ( (This)->lpVtbl -> AddRef(This) )
  6345. #define ID3D12GraphicsCommandList2_Release(This) \
  6346. ( (This)->lpVtbl -> Release(This) )
  6347. #define ID3D12GraphicsCommandList2_GetPrivateData(This,guid,pDataSize,pData) \
  6348. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  6349. #define ID3D12GraphicsCommandList2_SetPrivateData(This,guid,DataSize,pData) \
  6350. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  6351. #define ID3D12GraphicsCommandList2_SetPrivateDataInterface(This,guid,pData) \
  6352. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  6353. #define ID3D12GraphicsCommandList2_SetName(This,Name) \
  6354. ( (This)->lpVtbl -> SetName(This,Name) )
  6355. #define ID3D12GraphicsCommandList2_GetDevice(This,riid,ppvDevice) \
  6356. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  6357. #define ID3D12GraphicsCommandList2_GetType(This) \
  6358. ( (This)->lpVtbl -> GetType(This) )
  6359. #define ID3D12GraphicsCommandList2_Close(This) \
  6360. ( (This)->lpVtbl -> Close(This) )
  6361. #define ID3D12GraphicsCommandList2_Reset(This,pAllocator,pInitialState) \
  6362. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  6363. #define ID3D12GraphicsCommandList2_ClearState(This,pPipelineState) \
  6364. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  6365. #define ID3D12GraphicsCommandList2_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  6366. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  6367. #define ID3D12GraphicsCommandList2_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  6368. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  6369. #define ID3D12GraphicsCommandList2_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  6370. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  6371. #define ID3D12GraphicsCommandList2_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  6372. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  6373. #define ID3D12GraphicsCommandList2_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  6374. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  6375. #define ID3D12GraphicsCommandList2_CopyResource(This,pDstResource,pSrcResource) \
  6376. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  6377. #define ID3D12GraphicsCommandList2_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  6378. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  6379. #define ID3D12GraphicsCommandList2_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  6380. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  6381. #define ID3D12GraphicsCommandList2_IASetPrimitiveTopology(This,PrimitiveTopology) \
  6382. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  6383. #define ID3D12GraphicsCommandList2_RSSetViewports(This,NumViewports,pViewports) \
  6384. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  6385. #define ID3D12GraphicsCommandList2_RSSetScissorRects(This,NumRects,pRects) \
  6386. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  6387. #define ID3D12GraphicsCommandList2_OMSetBlendFactor(This,BlendFactor) \
  6388. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  6389. #define ID3D12GraphicsCommandList2_OMSetStencilRef(This,StencilRef) \
  6390. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  6391. #define ID3D12GraphicsCommandList2_SetPipelineState(This,pPipelineState) \
  6392. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  6393. #define ID3D12GraphicsCommandList2_ResourceBarrier(This,NumBarriers,pBarriers) \
  6394. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  6395. #define ID3D12GraphicsCommandList2_ExecuteBundle(This,pCommandList) \
  6396. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  6397. #define ID3D12GraphicsCommandList2_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  6398. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  6399. #define ID3D12GraphicsCommandList2_SetComputeRootSignature(This,pRootSignature) \
  6400. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  6401. #define ID3D12GraphicsCommandList2_SetGraphicsRootSignature(This,pRootSignature) \
  6402. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  6403. #define ID3D12GraphicsCommandList2_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  6404. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  6405. #define ID3D12GraphicsCommandList2_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  6406. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  6407. #define ID3D12GraphicsCommandList2_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  6408. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  6409. #define ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  6410. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  6411. #define ID3D12GraphicsCommandList2_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  6412. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  6413. #define ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  6414. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  6415. #define ID3D12GraphicsCommandList2_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  6416. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  6417. #define ID3D12GraphicsCommandList2_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  6418. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  6419. #define ID3D12GraphicsCommandList2_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  6420. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  6421. #define ID3D12GraphicsCommandList2_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  6422. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  6423. #define ID3D12GraphicsCommandList2_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  6424. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  6425. #define ID3D12GraphicsCommandList2_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  6426. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  6427. #define ID3D12GraphicsCommandList2_IASetIndexBuffer(This,pView) \
  6428. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  6429. #define ID3D12GraphicsCommandList2_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  6430. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  6431. #define ID3D12GraphicsCommandList2_SOSetTargets(This,StartSlot,NumViews,pViews) \
  6432. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  6433. #define ID3D12GraphicsCommandList2_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  6434. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  6435. #define ID3D12GraphicsCommandList2_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  6436. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  6437. #define ID3D12GraphicsCommandList2_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  6438. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  6439. #define ID3D12GraphicsCommandList2_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  6440. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  6441. #define ID3D12GraphicsCommandList2_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  6442. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  6443. #define ID3D12GraphicsCommandList2_DiscardResource(This,pResource,pRegion) \
  6444. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  6445. #define ID3D12GraphicsCommandList2_BeginQuery(This,pQueryHeap,Type,Index) \
  6446. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  6447. #define ID3D12GraphicsCommandList2_EndQuery(This,pQueryHeap,Type,Index) \
  6448. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  6449. #define ID3D12GraphicsCommandList2_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  6450. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  6451. #define ID3D12GraphicsCommandList2_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  6452. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  6453. #define ID3D12GraphicsCommandList2_SetMarker(This,Metadata,pData,Size) \
  6454. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  6455. #define ID3D12GraphicsCommandList2_BeginEvent(This,Metadata,pData,Size) \
  6456. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  6457. #define ID3D12GraphicsCommandList2_EndEvent(This) \
  6458. ( (This)->lpVtbl -> EndEvent(This) )
  6459. #define ID3D12GraphicsCommandList2_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  6460. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  6461. #define ID3D12GraphicsCommandList2_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  6462. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  6463. #define ID3D12GraphicsCommandList2_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  6464. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  6465. #define ID3D12GraphicsCommandList2_OMSetDepthBounds(This,Min,Max) \
  6466. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  6467. #define ID3D12GraphicsCommandList2_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  6468. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  6469. #define ID3D12GraphicsCommandList2_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  6470. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  6471. #define ID3D12GraphicsCommandList2_SetViewInstanceMask(This,Mask) \
  6472. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  6473. #define ID3D12GraphicsCommandList2_WriteBufferImmediate(This,Count,pParams,pModes) \
  6474. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  6475. #endif /* COBJMACROS */
  6476. #endif /* C style interface */
  6477. #endif /* __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__ */
  6478. #ifndef __ID3D12CommandQueue_INTERFACE_DEFINED__
  6479. #define __ID3D12CommandQueue_INTERFACE_DEFINED__
  6480. /* interface ID3D12CommandQueue */
  6481. /* [unique][local][object][uuid] */
  6482. EXTERN_C const IID IID_ID3D12CommandQueue;
  6483. #if defined(__cplusplus) && !defined(CINTERFACE)
  6484. MIDL_INTERFACE("0ec870a6-5d7e-4c22-8cfc-5baae07616ed")
  6485. ID3D12CommandQueue : public ID3D12Pageable
  6486. {
  6487. public:
  6488. virtual void STDMETHODCALLTYPE UpdateTileMappings(
  6489. _In_ ID3D12Resource *pResource,
  6490. UINT NumResourceRegions,
  6491. _In_reads_opt_(NumResourceRegions) const D3D12_TILED_RESOURCE_COORDINATE *pResourceRegionStartCoordinates,
  6492. _In_reads_opt_(NumResourceRegions) const D3D12_TILE_REGION_SIZE *pResourceRegionSizes,
  6493. _In_opt_ ID3D12Heap *pHeap,
  6494. UINT NumRanges,
  6495. _In_reads_opt_(NumRanges) const D3D12_TILE_RANGE_FLAGS *pRangeFlags,
  6496. _In_reads_opt_(NumRanges) const UINT *pHeapRangeStartOffsets,
  6497. _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts,
  6498. D3D12_TILE_MAPPING_FLAGS Flags) = 0;
  6499. virtual void STDMETHODCALLTYPE CopyTileMappings(
  6500. _In_ ID3D12Resource *pDstResource,
  6501. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pDstRegionStartCoordinate,
  6502. _In_ ID3D12Resource *pSrcResource,
  6503. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pSrcRegionStartCoordinate,
  6504. _In_ const D3D12_TILE_REGION_SIZE *pRegionSize,
  6505. D3D12_TILE_MAPPING_FLAGS Flags) = 0;
  6506. virtual void STDMETHODCALLTYPE ExecuteCommandLists(
  6507. _In_ UINT NumCommandLists,
  6508. _In_reads_(NumCommandLists) ID3D12CommandList *const *ppCommandLists) = 0;
  6509. virtual void STDMETHODCALLTYPE SetMarker(
  6510. UINT Metadata,
  6511. _In_reads_bytes_opt_(Size) const void *pData,
  6512. UINT Size) = 0;
  6513. virtual void STDMETHODCALLTYPE BeginEvent(
  6514. UINT Metadata,
  6515. _In_reads_bytes_opt_(Size) const void *pData,
  6516. UINT Size) = 0;
  6517. virtual void STDMETHODCALLTYPE EndEvent( void) = 0;
  6518. virtual HRESULT STDMETHODCALLTYPE Signal(
  6519. ID3D12Fence *pFence,
  6520. UINT64 Value) = 0;
  6521. virtual HRESULT STDMETHODCALLTYPE Wait(
  6522. ID3D12Fence *pFence,
  6523. UINT64 Value) = 0;
  6524. virtual HRESULT STDMETHODCALLTYPE GetTimestampFrequency(
  6525. _Out_ UINT64 *pFrequency) = 0;
  6526. virtual HRESULT STDMETHODCALLTYPE GetClockCalibration(
  6527. _Out_ UINT64 *pGpuTimestamp,
  6528. _Out_ UINT64 *pCpuTimestamp) = 0;
  6529. #if defined(_MSC_VER) || !defined(_WIN32)
  6530. virtual D3D12_COMMAND_QUEUE_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  6531. #else
  6532. virtual D3D12_COMMAND_QUEUE_DESC *STDMETHODCALLTYPE GetDesc(
  6533. D3D12_COMMAND_QUEUE_DESC * RetVal) = 0;
  6534. #endif
  6535. };
  6536. #else /* C style interface */
  6537. typedef struct ID3D12CommandQueueVtbl
  6538. {
  6539. BEGIN_INTERFACE
  6540. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  6541. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6542. ID3D12CommandQueue * This,
  6543. REFIID riid,
  6544. _COM_Outptr_ void **ppvObject);
  6545. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  6546. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6547. ID3D12CommandQueue * This);
  6548. DECLSPEC_XFGVIRT(IUnknown, Release)
  6549. ULONG ( STDMETHODCALLTYPE *Release )(
  6550. ID3D12CommandQueue * This);
  6551. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  6552. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  6553. ID3D12CommandQueue * This,
  6554. _In_ REFGUID guid,
  6555. _Inout_ UINT *pDataSize,
  6556. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  6557. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  6558. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  6559. ID3D12CommandQueue * This,
  6560. _In_ REFGUID guid,
  6561. _In_ UINT DataSize,
  6562. _In_reads_bytes_opt_( DataSize ) const void *pData);
  6563. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  6564. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  6565. ID3D12CommandQueue * This,
  6566. _In_ REFGUID guid,
  6567. _In_opt_ const IUnknown *pData);
  6568. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  6569. HRESULT ( STDMETHODCALLTYPE *SetName )(
  6570. ID3D12CommandQueue * This,
  6571. _In_z_ LPCWSTR Name);
  6572. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  6573. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  6574. ID3D12CommandQueue * This,
  6575. REFIID riid,
  6576. _COM_Outptr_opt_ void **ppvDevice);
  6577. DECLSPEC_XFGVIRT(ID3D12CommandQueue, UpdateTileMappings)
  6578. void ( STDMETHODCALLTYPE *UpdateTileMappings )(
  6579. ID3D12CommandQueue * This,
  6580. _In_ ID3D12Resource *pResource,
  6581. UINT NumResourceRegions,
  6582. _In_reads_opt_(NumResourceRegions) const D3D12_TILED_RESOURCE_COORDINATE *pResourceRegionStartCoordinates,
  6583. _In_reads_opt_(NumResourceRegions) const D3D12_TILE_REGION_SIZE *pResourceRegionSizes,
  6584. _In_opt_ ID3D12Heap *pHeap,
  6585. UINT NumRanges,
  6586. _In_reads_opt_(NumRanges) const D3D12_TILE_RANGE_FLAGS *pRangeFlags,
  6587. _In_reads_opt_(NumRanges) const UINT *pHeapRangeStartOffsets,
  6588. _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts,
  6589. D3D12_TILE_MAPPING_FLAGS Flags);
  6590. DECLSPEC_XFGVIRT(ID3D12CommandQueue, CopyTileMappings)
  6591. void ( STDMETHODCALLTYPE *CopyTileMappings )(
  6592. ID3D12CommandQueue * This,
  6593. _In_ ID3D12Resource *pDstResource,
  6594. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pDstRegionStartCoordinate,
  6595. _In_ ID3D12Resource *pSrcResource,
  6596. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pSrcRegionStartCoordinate,
  6597. _In_ const D3D12_TILE_REGION_SIZE *pRegionSize,
  6598. D3D12_TILE_MAPPING_FLAGS Flags);
  6599. DECLSPEC_XFGVIRT(ID3D12CommandQueue, ExecuteCommandLists)
  6600. void ( STDMETHODCALLTYPE *ExecuteCommandLists )(
  6601. ID3D12CommandQueue * This,
  6602. _In_ UINT NumCommandLists,
  6603. _In_reads_(NumCommandLists) ID3D12CommandList *const *ppCommandLists);
  6604. DECLSPEC_XFGVIRT(ID3D12CommandQueue, SetMarker)
  6605. void ( STDMETHODCALLTYPE *SetMarker )(
  6606. ID3D12CommandQueue * This,
  6607. UINT Metadata,
  6608. _In_reads_bytes_opt_(Size) const void *pData,
  6609. UINT Size);
  6610. DECLSPEC_XFGVIRT(ID3D12CommandQueue, BeginEvent)
  6611. void ( STDMETHODCALLTYPE *BeginEvent )(
  6612. ID3D12CommandQueue * This,
  6613. UINT Metadata,
  6614. _In_reads_bytes_opt_(Size) const void *pData,
  6615. UINT Size);
  6616. DECLSPEC_XFGVIRT(ID3D12CommandQueue, EndEvent)
  6617. void ( STDMETHODCALLTYPE *EndEvent )(
  6618. ID3D12CommandQueue * This);
  6619. DECLSPEC_XFGVIRT(ID3D12CommandQueue, Signal)
  6620. HRESULT ( STDMETHODCALLTYPE *Signal )(
  6621. ID3D12CommandQueue * This,
  6622. ID3D12Fence *pFence,
  6623. UINT64 Value);
  6624. DECLSPEC_XFGVIRT(ID3D12CommandQueue, Wait)
  6625. HRESULT ( STDMETHODCALLTYPE *Wait )(
  6626. ID3D12CommandQueue * This,
  6627. ID3D12Fence *pFence,
  6628. UINT64 Value);
  6629. DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetTimestampFrequency)
  6630. HRESULT ( STDMETHODCALLTYPE *GetTimestampFrequency )(
  6631. ID3D12CommandQueue * This,
  6632. _Out_ UINT64 *pFrequency);
  6633. DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetClockCalibration)
  6634. HRESULT ( STDMETHODCALLTYPE *GetClockCalibration )(
  6635. ID3D12CommandQueue * This,
  6636. _Out_ UINT64 *pGpuTimestamp,
  6637. _Out_ UINT64 *pCpuTimestamp);
  6638. DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetDesc)
  6639. #if !defined(_WIN32)
  6640. D3D12_COMMAND_QUEUE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  6641. ID3D12CommandQueue * This);
  6642. #else
  6643. D3D12_COMMAND_QUEUE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  6644. ID3D12CommandQueue * This,
  6645. D3D12_COMMAND_QUEUE_DESC * RetVal);
  6646. #endif
  6647. END_INTERFACE
  6648. } ID3D12CommandQueueVtbl;
  6649. interface ID3D12CommandQueue
  6650. {
  6651. CONST_VTBL struct ID3D12CommandQueueVtbl *lpVtbl;
  6652. };
  6653. #ifdef COBJMACROS
  6654. #define ID3D12CommandQueue_QueryInterface(This,riid,ppvObject) \
  6655. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  6656. #define ID3D12CommandQueue_AddRef(This) \
  6657. ( (This)->lpVtbl -> AddRef(This) )
  6658. #define ID3D12CommandQueue_Release(This) \
  6659. ( (This)->lpVtbl -> Release(This) )
  6660. #define ID3D12CommandQueue_GetPrivateData(This,guid,pDataSize,pData) \
  6661. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  6662. #define ID3D12CommandQueue_SetPrivateData(This,guid,DataSize,pData) \
  6663. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  6664. #define ID3D12CommandQueue_SetPrivateDataInterface(This,guid,pData) \
  6665. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  6666. #define ID3D12CommandQueue_SetName(This,Name) \
  6667. ( (This)->lpVtbl -> SetName(This,Name) )
  6668. #define ID3D12CommandQueue_GetDevice(This,riid,ppvDevice) \
  6669. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  6670. #define ID3D12CommandQueue_UpdateTileMappings(This,pResource,NumResourceRegions,pResourceRegionStartCoordinates,pResourceRegionSizes,pHeap,NumRanges,pRangeFlags,pHeapRangeStartOffsets,pRangeTileCounts,Flags) \
  6671. ( (This)->lpVtbl -> UpdateTileMappings(This,pResource,NumResourceRegions,pResourceRegionStartCoordinates,pResourceRegionSizes,pHeap,NumRanges,pRangeFlags,pHeapRangeStartOffsets,pRangeTileCounts,Flags) )
  6672. #define ID3D12CommandQueue_CopyTileMappings(This,pDstResource,pDstRegionStartCoordinate,pSrcResource,pSrcRegionStartCoordinate,pRegionSize,Flags) \
  6673. ( (This)->lpVtbl -> CopyTileMappings(This,pDstResource,pDstRegionStartCoordinate,pSrcResource,pSrcRegionStartCoordinate,pRegionSize,Flags) )
  6674. #define ID3D12CommandQueue_ExecuteCommandLists(This,NumCommandLists,ppCommandLists) \
  6675. ( (This)->lpVtbl -> ExecuteCommandLists(This,NumCommandLists,ppCommandLists) )
  6676. #define ID3D12CommandQueue_SetMarker(This,Metadata,pData,Size) \
  6677. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  6678. #define ID3D12CommandQueue_BeginEvent(This,Metadata,pData,Size) \
  6679. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  6680. #define ID3D12CommandQueue_EndEvent(This) \
  6681. ( (This)->lpVtbl -> EndEvent(This) )
  6682. #define ID3D12CommandQueue_Signal(This,pFence,Value) \
  6683. ( (This)->lpVtbl -> Signal(This,pFence,Value) )
  6684. #define ID3D12CommandQueue_Wait(This,pFence,Value) \
  6685. ( (This)->lpVtbl -> Wait(This,pFence,Value) )
  6686. #define ID3D12CommandQueue_GetTimestampFrequency(This,pFrequency) \
  6687. ( (This)->lpVtbl -> GetTimestampFrequency(This,pFrequency) )
  6688. #define ID3D12CommandQueue_GetClockCalibration(This,pGpuTimestamp,pCpuTimestamp) \
  6689. ( (This)->lpVtbl -> GetClockCalibration(This,pGpuTimestamp,pCpuTimestamp) )
  6690. #if !defined(_WIN32)
  6691. #define ID3D12CommandQueue_GetDesc(This) \
  6692. ( (This)->lpVtbl -> GetDesc(This) )
  6693. #else
  6694. #define ID3D12CommandQueue_GetDesc(This,RetVal) \
  6695. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  6696. #endif
  6697. #endif /* COBJMACROS */
  6698. #endif /* C style interface */
  6699. #endif /* __ID3D12CommandQueue_INTERFACE_DEFINED__ */
  6700. #ifndef __ID3D12Device_INTERFACE_DEFINED__
  6701. #define __ID3D12Device_INTERFACE_DEFINED__
  6702. /* interface ID3D12Device */
  6703. /* [unique][local][object][uuid] */
  6704. EXTERN_C const IID IID_ID3D12Device;
  6705. #if defined(__cplusplus) && !defined(CINTERFACE)
  6706. MIDL_INTERFACE("189819f1-1db6-4b57-be54-1821339b85f7")
  6707. ID3D12Device : public ID3D12Object
  6708. {
  6709. public:
  6710. virtual UINT STDMETHODCALLTYPE GetNodeCount( void) = 0;
  6711. virtual HRESULT STDMETHODCALLTYPE CreateCommandQueue(
  6712. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  6713. REFIID riid,
  6714. _COM_Outptr_ void **ppCommandQueue) = 0;
  6715. virtual HRESULT STDMETHODCALLTYPE CreateCommandAllocator(
  6716. _In_ D3D12_COMMAND_LIST_TYPE type,
  6717. REFIID riid,
  6718. _COM_Outptr_ void **ppCommandAllocator) = 0;
  6719. virtual HRESULT STDMETHODCALLTYPE CreateGraphicsPipelineState(
  6720. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  6721. REFIID riid,
  6722. _COM_Outptr_ void **ppPipelineState) = 0;
  6723. virtual HRESULT STDMETHODCALLTYPE CreateComputePipelineState(
  6724. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  6725. REFIID riid,
  6726. _COM_Outptr_ void **ppPipelineState) = 0;
  6727. virtual HRESULT STDMETHODCALLTYPE CreateCommandList(
  6728. _In_ UINT nodeMask,
  6729. _In_ D3D12_COMMAND_LIST_TYPE type,
  6730. _In_ ID3D12CommandAllocator *pCommandAllocator,
  6731. _In_opt_ ID3D12PipelineState *pInitialState,
  6732. REFIID riid,
  6733. _COM_Outptr_ void **ppCommandList) = 0;
  6734. virtual HRESULT STDMETHODCALLTYPE CheckFeatureSupport(
  6735. D3D12_FEATURE Feature,
  6736. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  6737. UINT FeatureSupportDataSize) = 0;
  6738. virtual HRESULT STDMETHODCALLTYPE CreateDescriptorHeap(
  6739. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  6740. REFIID riid,
  6741. _COM_Outptr_ void **ppvHeap) = 0;
  6742. virtual UINT STDMETHODCALLTYPE GetDescriptorHandleIncrementSize(
  6743. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) = 0;
  6744. virtual HRESULT STDMETHODCALLTYPE CreateRootSignature(
  6745. _In_ UINT nodeMask,
  6746. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  6747. _In_ SIZE_T blobLengthInBytes,
  6748. REFIID riid,
  6749. _COM_Outptr_ void **ppvRootSignature) = 0;
  6750. virtual void STDMETHODCALLTYPE CreateConstantBufferView(
  6751. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  6752. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6753. virtual void STDMETHODCALLTYPE CreateShaderResourceView(
  6754. _In_opt_ ID3D12Resource *pResource,
  6755. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  6756. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6757. virtual void STDMETHODCALLTYPE CreateUnorderedAccessView(
  6758. _In_opt_ ID3D12Resource *pResource,
  6759. _In_opt_ ID3D12Resource *pCounterResource,
  6760. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  6761. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6762. virtual void STDMETHODCALLTYPE CreateRenderTargetView(
  6763. _In_opt_ ID3D12Resource *pResource,
  6764. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  6765. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6766. virtual void STDMETHODCALLTYPE CreateDepthStencilView(
  6767. _In_opt_ ID3D12Resource *pResource,
  6768. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  6769. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6770. virtual void STDMETHODCALLTYPE CreateSampler(
  6771. _In_ const D3D12_SAMPLER_DESC *pDesc,
  6772. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6773. virtual void STDMETHODCALLTYPE CopyDescriptors(
  6774. _In_ UINT NumDestDescriptorRanges,
  6775. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  6776. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  6777. _In_ UINT NumSrcDescriptorRanges,
  6778. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  6779. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  6780. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType) = 0;
  6781. virtual void STDMETHODCALLTYPE CopyDescriptorsSimple(
  6782. _In_ UINT NumDescriptors,
  6783. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  6784. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  6785. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType) = 0;
  6786. #if defined(_MSC_VER) || !defined(_WIN32)
  6787. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo(
  6788. _In_ UINT visibleMask,
  6789. _In_ UINT numResourceDescs,
  6790. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs) = 0;
  6791. #else
  6792. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo(
  6793. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  6794. _In_ UINT visibleMask,
  6795. _In_ UINT numResourceDescs,
  6796. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs) = 0;
  6797. #endif
  6798. #if defined(_MSC_VER) || !defined(_WIN32)
  6799. virtual D3D12_HEAP_PROPERTIES STDMETHODCALLTYPE GetCustomHeapProperties(
  6800. _In_ UINT nodeMask,
  6801. D3D12_HEAP_TYPE heapType) = 0;
  6802. #else
  6803. virtual D3D12_HEAP_PROPERTIES *STDMETHODCALLTYPE GetCustomHeapProperties(
  6804. D3D12_HEAP_PROPERTIES * RetVal,
  6805. _In_ UINT nodeMask,
  6806. D3D12_HEAP_TYPE heapType) = 0;
  6807. #endif
  6808. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource(
  6809. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  6810. D3D12_HEAP_FLAGS HeapFlags,
  6811. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6812. D3D12_RESOURCE_STATES InitialResourceState,
  6813. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6814. REFIID riidResource,
  6815. _COM_Outptr_opt_ void **ppvResource) = 0;
  6816. virtual HRESULT STDMETHODCALLTYPE CreateHeap(
  6817. _In_ const D3D12_HEAP_DESC *pDesc,
  6818. REFIID riid,
  6819. _COM_Outptr_opt_ void **ppvHeap) = 0;
  6820. virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource(
  6821. _In_ ID3D12Heap *pHeap,
  6822. UINT64 HeapOffset,
  6823. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6824. D3D12_RESOURCE_STATES InitialState,
  6825. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6826. REFIID riid,
  6827. _COM_Outptr_opt_ void **ppvResource) = 0;
  6828. virtual HRESULT STDMETHODCALLTYPE CreateReservedResource(
  6829. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6830. D3D12_RESOURCE_STATES InitialState,
  6831. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6832. REFIID riid,
  6833. _COM_Outptr_opt_ void **ppvResource) = 0;
  6834. virtual HRESULT STDMETHODCALLTYPE CreateSharedHandle(
  6835. _In_ ID3D12DeviceChild *pObject,
  6836. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  6837. DWORD Access,
  6838. _In_opt_ LPCWSTR Name,
  6839. _Out_ HANDLE *pHandle) = 0;
  6840. virtual HRESULT STDMETHODCALLTYPE OpenSharedHandle(
  6841. _In_ HANDLE NTHandle,
  6842. REFIID riid,
  6843. _COM_Outptr_opt_ void **ppvObj) = 0;
  6844. virtual HRESULT STDMETHODCALLTYPE OpenSharedHandleByName(
  6845. _In_ LPCWSTR Name,
  6846. DWORD Access,
  6847. /* [annotation][out] */
  6848. _Out_ HANDLE *pNTHandle) = 0;
  6849. virtual HRESULT STDMETHODCALLTYPE MakeResident(
  6850. UINT NumObjects,
  6851. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects) = 0;
  6852. virtual HRESULT STDMETHODCALLTYPE Evict(
  6853. UINT NumObjects,
  6854. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects) = 0;
  6855. virtual HRESULT STDMETHODCALLTYPE CreateFence(
  6856. UINT64 InitialValue,
  6857. D3D12_FENCE_FLAGS Flags,
  6858. REFIID riid,
  6859. _COM_Outptr_ void **ppFence) = 0;
  6860. virtual HRESULT STDMETHODCALLTYPE GetDeviceRemovedReason( void) = 0;
  6861. virtual void STDMETHODCALLTYPE GetCopyableFootprints(
  6862. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  6863. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  6864. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  6865. UINT64 BaseOffset,
  6866. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  6867. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  6868. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  6869. _Out_opt_ UINT64 *pTotalBytes) = 0;
  6870. virtual HRESULT STDMETHODCALLTYPE CreateQueryHeap(
  6871. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  6872. REFIID riid,
  6873. _COM_Outptr_opt_ void **ppvHeap) = 0;
  6874. virtual HRESULT STDMETHODCALLTYPE SetStablePowerState(
  6875. BOOL Enable) = 0;
  6876. virtual HRESULT STDMETHODCALLTYPE CreateCommandSignature(
  6877. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  6878. _In_opt_ ID3D12RootSignature *pRootSignature,
  6879. REFIID riid,
  6880. _COM_Outptr_opt_ void **ppvCommandSignature) = 0;
  6881. virtual void STDMETHODCALLTYPE GetResourceTiling(
  6882. _In_ ID3D12Resource *pTiledResource,
  6883. _Out_opt_ UINT *pNumTilesForEntireResource,
  6884. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  6885. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  6886. _Inout_opt_ UINT *pNumSubresourceTilings,
  6887. _In_ UINT FirstSubresourceTilingToGet,
  6888. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips) = 0;
  6889. #if defined(_MSC_VER) || !defined(_WIN32)
  6890. virtual LUID STDMETHODCALLTYPE GetAdapterLuid( void) = 0;
  6891. #else
  6892. virtual LUID *STDMETHODCALLTYPE GetAdapterLuid(
  6893. LUID * RetVal) = 0;
  6894. #endif
  6895. };
  6896. #else /* C style interface */
  6897. typedef struct ID3D12DeviceVtbl
  6898. {
  6899. BEGIN_INTERFACE
  6900. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  6901. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6902. ID3D12Device * This,
  6903. REFIID riid,
  6904. _COM_Outptr_ void **ppvObject);
  6905. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  6906. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6907. ID3D12Device * This);
  6908. DECLSPEC_XFGVIRT(IUnknown, Release)
  6909. ULONG ( STDMETHODCALLTYPE *Release )(
  6910. ID3D12Device * This);
  6911. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  6912. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  6913. ID3D12Device * This,
  6914. _In_ REFGUID guid,
  6915. _Inout_ UINT *pDataSize,
  6916. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  6917. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  6918. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  6919. ID3D12Device * This,
  6920. _In_ REFGUID guid,
  6921. _In_ UINT DataSize,
  6922. _In_reads_bytes_opt_( DataSize ) const void *pData);
  6923. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  6924. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  6925. ID3D12Device * This,
  6926. _In_ REFGUID guid,
  6927. _In_opt_ const IUnknown *pData);
  6928. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  6929. HRESULT ( STDMETHODCALLTYPE *SetName )(
  6930. ID3D12Device * This,
  6931. _In_z_ LPCWSTR Name);
  6932. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  6933. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  6934. ID3D12Device * This);
  6935. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  6936. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  6937. ID3D12Device * This,
  6938. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  6939. REFIID riid,
  6940. _COM_Outptr_ void **ppCommandQueue);
  6941. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  6942. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  6943. ID3D12Device * This,
  6944. _In_ D3D12_COMMAND_LIST_TYPE type,
  6945. REFIID riid,
  6946. _COM_Outptr_ void **ppCommandAllocator);
  6947. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  6948. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  6949. ID3D12Device * This,
  6950. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  6951. REFIID riid,
  6952. _COM_Outptr_ void **ppPipelineState);
  6953. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  6954. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  6955. ID3D12Device * This,
  6956. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  6957. REFIID riid,
  6958. _COM_Outptr_ void **ppPipelineState);
  6959. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  6960. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  6961. ID3D12Device * This,
  6962. _In_ UINT nodeMask,
  6963. _In_ D3D12_COMMAND_LIST_TYPE type,
  6964. _In_ ID3D12CommandAllocator *pCommandAllocator,
  6965. _In_opt_ ID3D12PipelineState *pInitialState,
  6966. REFIID riid,
  6967. _COM_Outptr_ void **ppCommandList);
  6968. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  6969. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  6970. ID3D12Device * This,
  6971. D3D12_FEATURE Feature,
  6972. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  6973. UINT FeatureSupportDataSize);
  6974. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  6975. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  6976. ID3D12Device * This,
  6977. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  6978. REFIID riid,
  6979. _COM_Outptr_ void **ppvHeap);
  6980. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  6981. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  6982. ID3D12Device * This,
  6983. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  6984. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  6985. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  6986. ID3D12Device * This,
  6987. _In_ UINT nodeMask,
  6988. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  6989. _In_ SIZE_T blobLengthInBytes,
  6990. REFIID riid,
  6991. _COM_Outptr_ void **ppvRootSignature);
  6992. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  6993. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  6994. ID3D12Device * This,
  6995. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  6996. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6997. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  6998. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  6999. ID3D12Device * This,
  7000. _In_opt_ ID3D12Resource *pResource,
  7001. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  7002. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7003. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  7004. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  7005. ID3D12Device * This,
  7006. _In_opt_ ID3D12Resource *pResource,
  7007. _In_opt_ ID3D12Resource *pCounterResource,
  7008. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  7009. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7010. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  7011. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  7012. ID3D12Device * This,
  7013. _In_opt_ ID3D12Resource *pResource,
  7014. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  7015. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7016. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  7017. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  7018. ID3D12Device * This,
  7019. _In_opt_ ID3D12Resource *pResource,
  7020. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  7021. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7022. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  7023. void ( STDMETHODCALLTYPE *CreateSampler )(
  7024. ID3D12Device * This,
  7025. _In_ const D3D12_SAMPLER_DESC *pDesc,
  7026. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7027. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  7028. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  7029. ID3D12Device * This,
  7030. _In_ UINT NumDestDescriptorRanges,
  7031. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  7032. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  7033. _In_ UINT NumSrcDescriptorRanges,
  7034. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  7035. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  7036. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  7037. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  7038. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  7039. ID3D12Device * This,
  7040. _In_ UINT NumDescriptors,
  7041. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  7042. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  7043. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  7044. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  7045. #if !defined(_WIN32)
  7046. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  7047. ID3D12Device * This,
  7048. _In_ UINT visibleMask,
  7049. _In_ UINT numResourceDescs,
  7050. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  7051. #else
  7052. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  7053. ID3D12Device * This,
  7054. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  7055. _In_ UINT visibleMask,
  7056. _In_ UINT numResourceDescs,
  7057. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  7058. #endif
  7059. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  7060. #if !defined(_WIN32)
  7061. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  7062. ID3D12Device * This,
  7063. _In_ UINT nodeMask,
  7064. D3D12_HEAP_TYPE heapType);
  7065. #else
  7066. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  7067. ID3D12Device * This,
  7068. D3D12_HEAP_PROPERTIES * RetVal,
  7069. _In_ UINT nodeMask,
  7070. D3D12_HEAP_TYPE heapType);
  7071. #endif
  7072. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  7073. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  7074. ID3D12Device * This,
  7075. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  7076. D3D12_HEAP_FLAGS HeapFlags,
  7077. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7078. D3D12_RESOURCE_STATES InitialResourceState,
  7079. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7080. REFIID riidResource,
  7081. _COM_Outptr_opt_ void **ppvResource);
  7082. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  7083. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  7084. ID3D12Device * This,
  7085. _In_ const D3D12_HEAP_DESC *pDesc,
  7086. REFIID riid,
  7087. _COM_Outptr_opt_ void **ppvHeap);
  7088. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  7089. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  7090. ID3D12Device * This,
  7091. _In_ ID3D12Heap *pHeap,
  7092. UINT64 HeapOffset,
  7093. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7094. D3D12_RESOURCE_STATES InitialState,
  7095. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7096. REFIID riid,
  7097. _COM_Outptr_opt_ void **ppvResource);
  7098. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  7099. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  7100. ID3D12Device * This,
  7101. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7102. D3D12_RESOURCE_STATES InitialState,
  7103. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7104. REFIID riid,
  7105. _COM_Outptr_opt_ void **ppvResource);
  7106. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  7107. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  7108. ID3D12Device * This,
  7109. _In_ ID3D12DeviceChild *pObject,
  7110. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  7111. DWORD Access,
  7112. _In_opt_ LPCWSTR Name,
  7113. _Out_ HANDLE *pHandle);
  7114. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  7115. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  7116. ID3D12Device * This,
  7117. _In_ HANDLE NTHandle,
  7118. REFIID riid,
  7119. _COM_Outptr_opt_ void **ppvObj);
  7120. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  7121. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  7122. ID3D12Device * This,
  7123. _In_ LPCWSTR Name,
  7124. DWORD Access,
  7125. /* [annotation][out] */
  7126. _Out_ HANDLE *pNTHandle);
  7127. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  7128. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  7129. ID3D12Device * This,
  7130. UINT NumObjects,
  7131. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7132. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  7133. HRESULT ( STDMETHODCALLTYPE *Evict )(
  7134. ID3D12Device * This,
  7135. UINT NumObjects,
  7136. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7137. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  7138. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  7139. ID3D12Device * This,
  7140. UINT64 InitialValue,
  7141. D3D12_FENCE_FLAGS Flags,
  7142. REFIID riid,
  7143. _COM_Outptr_ void **ppFence);
  7144. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  7145. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  7146. ID3D12Device * This);
  7147. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  7148. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  7149. ID3D12Device * This,
  7150. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  7151. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  7152. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  7153. UINT64 BaseOffset,
  7154. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  7155. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  7156. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  7157. _Out_opt_ UINT64 *pTotalBytes);
  7158. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  7159. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  7160. ID3D12Device * This,
  7161. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  7162. REFIID riid,
  7163. _COM_Outptr_opt_ void **ppvHeap);
  7164. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  7165. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  7166. ID3D12Device * This,
  7167. BOOL Enable);
  7168. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  7169. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  7170. ID3D12Device * This,
  7171. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  7172. _In_opt_ ID3D12RootSignature *pRootSignature,
  7173. REFIID riid,
  7174. _COM_Outptr_opt_ void **ppvCommandSignature);
  7175. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  7176. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  7177. ID3D12Device * This,
  7178. _In_ ID3D12Resource *pTiledResource,
  7179. _Out_opt_ UINT *pNumTilesForEntireResource,
  7180. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  7181. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  7182. _Inout_opt_ UINT *pNumSubresourceTilings,
  7183. _In_ UINT FirstSubresourceTilingToGet,
  7184. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  7185. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  7186. #if !defined(_WIN32)
  7187. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  7188. ID3D12Device * This);
  7189. #else
  7190. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  7191. ID3D12Device * This,
  7192. LUID * RetVal);
  7193. #endif
  7194. END_INTERFACE
  7195. } ID3D12DeviceVtbl;
  7196. interface ID3D12Device
  7197. {
  7198. CONST_VTBL struct ID3D12DeviceVtbl *lpVtbl;
  7199. };
  7200. #ifdef COBJMACROS
  7201. #define ID3D12Device_QueryInterface(This,riid,ppvObject) \
  7202. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7203. #define ID3D12Device_AddRef(This) \
  7204. ( (This)->lpVtbl -> AddRef(This) )
  7205. #define ID3D12Device_Release(This) \
  7206. ( (This)->lpVtbl -> Release(This) )
  7207. #define ID3D12Device_GetPrivateData(This,guid,pDataSize,pData) \
  7208. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7209. #define ID3D12Device_SetPrivateData(This,guid,DataSize,pData) \
  7210. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7211. #define ID3D12Device_SetPrivateDataInterface(This,guid,pData) \
  7212. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7213. #define ID3D12Device_SetName(This,Name) \
  7214. ( (This)->lpVtbl -> SetName(This,Name) )
  7215. #define ID3D12Device_GetNodeCount(This) \
  7216. ( (This)->lpVtbl -> GetNodeCount(This) )
  7217. #define ID3D12Device_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  7218. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  7219. #define ID3D12Device_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  7220. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  7221. #define ID3D12Device_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  7222. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  7223. #define ID3D12Device_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  7224. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  7225. #define ID3D12Device_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  7226. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  7227. #define ID3D12Device_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  7228. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  7229. #define ID3D12Device_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  7230. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  7231. #define ID3D12Device_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  7232. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  7233. #define ID3D12Device_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  7234. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  7235. #define ID3D12Device_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  7236. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  7237. #define ID3D12Device_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  7238. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  7239. #define ID3D12Device_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  7240. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  7241. #define ID3D12Device_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  7242. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  7243. #define ID3D12Device_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  7244. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  7245. #define ID3D12Device_CreateSampler(This,pDesc,DestDescriptor) \
  7246. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  7247. #define ID3D12Device_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  7248. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  7249. #define ID3D12Device_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  7250. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  7251. #if !defined(_WIN32)
  7252. #define ID3D12Device_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  7253. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  7254. #else
  7255. #define ID3D12Device_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  7256. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  7257. #endif
  7258. #if !defined(_WIN32)
  7259. #define ID3D12Device_GetCustomHeapProperties(This,nodeMask,heapType) \
  7260. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  7261. #else
  7262. #define ID3D12Device_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  7263. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  7264. #endif
  7265. #define ID3D12Device_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  7266. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  7267. #define ID3D12Device_CreateHeap(This,pDesc,riid,ppvHeap) \
  7268. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  7269. #define ID3D12Device_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  7270. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  7271. #define ID3D12Device_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  7272. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  7273. #define ID3D12Device_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  7274. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  7275. #define ID3D12Device_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  7276. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  7277. #define ID3D12Device_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  7278. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  7279. #define ID3D12Device_MakeResident(This,NumObjects,ppObjects) \
  7280. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  7281. #define ID3D12Device_Evict(This,NumObjects,ppObjects) \
  7282. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  7283. #define ID3D12Device_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  7284. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  7285. #define ID3D12Device_GetDeviceRemovedReason(This) \
  7286. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  7287. #define ID3D12Device_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  7288. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  7289. #define ID3D12Device_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  7290. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  7291. #define ID3D12Device_SetStablePowerState(This,Enable) \
  7292. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  7293. #define ID3D12Device_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  7294. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  7295. #define ID3D12Device_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  7296. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  7297. #if !defined(_WIN32)
  7298. #define ID3D12Device_GetAdapterLuid(This) \
  7299. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  7300. #else
  7301. #define ID3D12Device_GetAdapterLuid(This,RetVal) \
  7302. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  7303. #endif
  7304. #endif /* COBJMACROS */
  7305. #endif /* C style interface */
  7306. #endif /* __ID3D12Device_INTERFACE_DEFINED__ */
  7307. #ifndef __ID3D12PipelineLibrary_INTERFACE_DEFINED__
  7308. #define __ID3D12PipelineLibrary_INTERFACE_DEFINED__
  7309. /* interface ID3D12PipelineLibrary */
  7310. /* [unique][local][object][uuid] */
  7311. EXTERN_C const IID IID_ID3D12PipelineLibrary;
  7312. #if defined(__cplusplus) && !defined(CINTERFACE)
  7313. MIDL_INTERFACE("c64226a8-9201-46af-b4cc-53fb9ff7414f")
  7314. ID3D12PipelineLibrary : public ID3D12DeviceChild
  7315. {
  7316. public:
  7317. virtual HRESULT STDMETHODCALLTYPE StorePipeline(
  7318. _In_opt_ LPCWSTR pName,
  7319. _In_ ID3D12PipelineState *pPipeline) = 0;
  7320. virtual HRESULT STDMETHODCALLTYPE LoadGraphicsPipeline(
  7321. _In_ LPCWSTR pName,
  7322. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7323. REFIID riid,
  7324. _COM_Outptr_ void **ppPipelineState) = 0;
  7325. virtual HRESULT STDMETHODCALLTYPE LoadComputePipeline(
  7326. _In_ LPCWSTR pName,
  7327. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7328. REFIID riid,
  7329. _COM_Outptr_ void **ppPipelineState) = 0;
  7330. virtual SIZE_T STDMETHODCALLTYPE GetSerializedSize( void) = 0;
  7331. virtual HRESULT STDMETHODCALLTYPE Serialize(
  7332. _Out_writes_(DataSizeInBytes) void *pData,
  7333. SIZE_T DataSizeInBytes) = 0;
  7334. };
  7335. #else /* C style interface */
  7336. typedef struct ID3D12PipelineLibraryVtbl
  7337. {
  7338. BEGIN_INTERFACE
  7339. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  7340. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7341. ID3D12PipelineLibrary * This,
  7342. REFIID riid,
  7343. _COM_Outptr_ void **ppvObject);
  7344. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  7345. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7346. ID3D12PipelineLibrary * This);
  7347. DECLSPEC_XFGVIRT(IUnknown, Release)
  7348. ULONG ( STDMETHODCALLTYPE *Release )(
  7349. ID3D12PipelineLibrary * This);
  7350. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  7351. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  7352. ID3D12PipelineLibrary * This,
  7353. _In_ REFGUID guid,
  7354. _Inout_ UINT *pDataSize,
  7355. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  7356. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  7357. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  7358. ID3D12PipelineLibrary * This,
  7359. _In_ REFGUID guid,
  7360. _In_ UINT DataSize,
  7361. _In_reads_bytes_opt_( DataSize ) const void *pData);
  7362. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  7363. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  7364. ID3D12PipelineLibrary * This,
  7365. _In_ REFGUID guid,
  7366. _In_opt_ const IUnknown *pData);
  7367. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  7368. HRESULT ( STDMETHODCALLTYPE *SetName )(
  7369. ID3D12PipelineLibrary * This,
  7370. _In_z_ LPCWSTR Name);
  7371. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  7372. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  7373. ID3D12PipelineLibrary * This,
  7374. REFIID riid,
  7375. _COM_Outptr_opt_ void **ppvDevice);
  7376. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, StorePipeline)
  7377. HRESULT ( STDMETHODCALLTYPE *StorePipeline )(
  7378. ID3D12PipelineLibrary * This,
  7379. _In_opt_ LPCWSTR pName,
  7380. _In_ ID3D12PipelineState *pPipeline);
  7381. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadGraphicsPipeline)
  7382. HRESULT ( STDMETHODCALLTYPE *LoadGraphicsPipeline )(
  7383. ID3D12PipelineLibrary * This,
  7384. _In_ LPCWSTR pName,
  7385. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7386. REFIID riid,
  7387. _COM_Outptr_ void **ppPipelineState);
  7388. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadComputePipeline)
  7389. HRESULT ( STDMETHODCALLTYPE *LoadComputePipeline )(
  7390. ID3D12PipelineLibrary * This,
  7391. _In_ LPCWSTR pName,
  7392. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7393. REFIID riid,
  7394. _COM_Outptr_ void **ppPipelineState);
  7395. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, GetSerializedSize)
  7396. SIZE_T ( STDMETHODCALLTYPE *GetSerializedSize )(
  7397. ID3D12PipelineLibrary * This);
  7398. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, Serialize)
  7399. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  7400. ID3D12PipelineLibrary * This,
  7401. _Out_writes_(DataSizeInBytes) void *pData,
  7402. SIZE_T DataSizeInBytes);
  7403. END_INTERFACE
  7404. } ID3D12PipelineLibraryVtbl;
  7405. interface ID3D12PipelineLibrary
  7406. {
  7407. CONST_VTBL struct ID3D12PipelineLibraryVtbl *lpVtbl;
  7408. };
  7409. #ifdef COBJMACROS
  7410. #define ID3D12PipelineLibrary_QueryInterface(This,riid,ppvObject) \
  7411. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7412. #define ID3D12PipelineLibrary_AddRef(This) \
  7413. ( (This)->lpVtbl -> AddRef(This) )
  7414. #define ID3D12PipelineLibrary_Release(This) \
  7415. ( (This)->lpVtbl -> Release(This) )
  7416. #define ID3D12PipelineLibrary_GetPrivateData(This,guid,pDataSize,pData) \
  7417. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7418. #define ID3D12PipelineLibrary_SetPrivateData(This,guid,DataSize,pData) \
  7419. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7420. #define ID3D12PipelineLibrary_SetPrivateDataInterface(This,guid,pData) \
  7421. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7422. #define ID3D12PipelineLibrary_SetName(This,Name) \
  7423. ( (This)->lpVtbl -> SetName(This,Name) )
  7424. #define ID3D12PipelineLibrary_GetDevice(This,riid,ppvDevice) \
  7425. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  7426. #define ID3D12PipelineLibrary_StorePipeline(This,pName,pPipeline) \
  7427. ( (This)->lpVtbl -> StorePipeline(This,pName,pPipeline) )
  7428. #define ID3D12PipelineLibrary_LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) \
  7429. ( (This)->lpVtbl -> LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) )
  7430. #define ID3D12PipelineLibrary_LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) \
  7431. ( (This)->lpVtbl -> LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) )
  7432. #define ID3D12PipelineLibrary_GetSerializedSize(This) \
  7433. ( (This)->lpVtbl -> GetSerializedSize(This) )
  7434. #define ID3D12PipelineLibrary_Serialize(This,pData,DataSizeInBytes) \
  7435. ( (This)->lpVtbl -> Serialize(This,pData,DataSizeInBytes) )
  7436. #endif /* COBJMACROS */
  7437. #endif /* C style interface */
  7438. #endif /* __ID3D12PipelineLibrary_INTERFACE_DEFINED__ */
  7439. #ifndef __ID3D12PipelineLibrary1_INTERFACE_DEFINED__
  7440. #define __ID3D12PipelineLibrary1_INTERFACE_DEFINED__
  7441. /* interface ID3D12PipelineLibrary1 */
  7442. /* [unique][local][object][uuid] */
  7443. EXTERN_C const IID IID_ID3D12PipelineLibrary1;
  7444. #if defined(__cplusplus) && !defined(CINTERFACE)
  7445. MIDL_INTERFACE("80eabf42-2568-4e5e-bd82-c37f86961dc3")
  7446. ID3D12PipelineLibrary1 : public ID3D12PipelineLibrary
  7447. {
  7448. public:
  7449. virtual HRESULT STDMETHODCALLTYPE LoadPipeline(
  7450. _In_ LPCWSTR pName,
  7451. _In_ const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  7452. REFIID riid,
  7453. _COM_Outptr_ void **ppPipelineState) = 0;
  7454. };
  7455. #else /* C style interface */
  7456. typedef struct ID3D12PipelineLibrary1Vtbl
  7457. {
  7458. BEGIN_INTERFACE
  7459. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  7460. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7461. ID3D12PipelineLibrary1 * This,
  7462. REFIID riid,
  7463. _COM_Outptr_ void **ppvObject);
  7464. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  7465. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7466. ID3D12PipelineLibrary1 * This);
  7467. DECLSPEC_XFGVIRT(IUnknown, Release)
  7468. ULONG ( STDMETHODCALLTYPE *Release )(
  7469. ID3D12PipelineLibrary1 * This);
  7470. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  7471. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  7472. ID3D12PipelineLibrary1 * This,
  7473. _In_ REFGUID guid,
  7474. _Inout_ UINT *pDataSize,
  7475. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  7476. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  7477. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  7478. ID3D12PipelineLibrary1 * This,
  7479. _In_ REFGUID guid,
  7480. _In_ UINT DataSize,
  7481. _In_reads_bytes_opt_( DataSize ) const void *pData);
  7482. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  7483. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  7484. ID3D12PipelineLibrary1 * This,
  7485. _In_ REFGUID guid,
  7486. _In_opt_ const IUnknown *pData);
  7487. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  7488. HRESULT ( STDMETHODCALLTYPE *SetName )(
  7489. ID3D12PipelineLibrary1 * This,
  7490. _In_z_ LPCWSTR Name);
  7491. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  7492. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  7493. ID3D12PipelineLibrary1 * This,
  7494. REFIID riid,
  7495. _COM_Outptr_opt_ void **ppvDevice);
  7496. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, StorePipeline)
  7497. HRESULT ( STDMETHODCALLTYPE *StorePipeline )(
  7498. ID3D12PipelineLibrary1 * This,
  7499. _In_opt_ LPCWSTR pName,
  7500. _In_ ID3D12PipelineState *pPipeline);
  7501. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadGraphicsPipeline)
  7502. HRESULT ( STDMETHODCALLTYPE *LoadGraphicsPipeline )(
  7503. ID3D12PipelineLibrary1 * This,
  7504. _In_ LPCWSTR pName,
  7505. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7506. REFIID riid,
  7507. _COM_Outptr_ void **ppPipelineState);
  7508. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadComputePipeline)
  7509. HRESULT ( STDMETHODCALLTYPE *LoadComputePipeline )(
  7510. ID3D12PipelineLibrary1 * This,
  7511. _In_ LPCWSTR pName,
  7512. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7513. REFIID riid,
  7514. _COM_Outptr_ void **ppPipelineState);
  7515. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, GetSerializedSize)
  7516. SIZE_T ( STDMETHODCALLTYPE *GetSerializedSize )(
  7517. ID3D12PipelineLibrary1 * This);
  7518. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, Serialize)
  7519. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  7520. ID3D12PipelineLibrary1 * This,
  7521. _Out_writes_(DataSizeInBytes) void *pData,
  7522. SIZE_T DataSizeInBytes);
  7523. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary1, LoadPipeline)
  7524. HRESULT ( STDMETHODCALLTYPE *LoadPipeline )(
  7525. ID3D12PipelineLibrary1 * This,
  7526. _In_ LPCWSTR pName,
  7527. _In_ const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  7528. REFIID riid,
  7529. _COM_Outptr_ void **ppPipelineState);
  7530. END_INTERFACE
  7531. } ID3D12PipelineLibrary1Vtbl;
  7532. interface ID3D12PipelineLibrary1
  7533. {
  7534. CONST_VTBL struct ID3D12PipelineLibrary1Vtbl *lpVtbl;
  7535. };
  7536. #ifdef COBJMACROS
  7537. #define ID3D12PipelineLibrary1_QueryInterface(This,riid,ppvObject) \
  7538. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7539. #define ID3D12PipelineLibrary1_AddRef(This) \
  7540. ( (This)->lpVtbl -> AddRef(This) )
  7541. #define ID3D12PipelineLibrary1_Release(This) \
  7542. ( (This)->lpVtbl -> Release(This) )
  7543. #define ID3D12PipelineLibrary1_GetPrivateData(This,guid,pDataSize,pData) \
  7544. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7545. #define ID3D12PipelineLibrary1_SetPrivateData(This,guid,DataSize,pData) \
  7546. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7547. #define ID3D12PipelineLibrary1_SetPrivateDataInterface(This,guid,pData) \
  7548. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7549. #define ID3D12PipelineLibrary1_SetName(This,Name) \
  7550. ( (This)->lpVtbl -> SetName(This,Name) )
  7551. #define ID3D12PipelineLibrary1_GetDevice(This,riid,ppvDevice) \
  7552. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  7553. #define ID3D12PipelineLibrary1_StorePipeline(This,pName,pPipeline) \
  7554. ( (This)->lpVtbl -> StorePipeline(This,pName,pPipeline) )
  7555. #define ID3D12PipelineLibrary1_LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) \
  7556. ( (This)->lpVtbl -> LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) )
  7557. #define ID3D12PipelineLibrary1_LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) \
  7558. ( (This)->lpVtbl -> LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) )
  7559. #define ID3D12PipelineLibrary1_GetSerializedSize(This) \
  7560. ( (This)->lpVtbl -> GetSerializedSize(This) )
  7561. #define ID3D12PipelineLibrary1_Serialize(This,pData,DataSizeInBytes) \
  7562. ( (This)->lpVtbl -> Serialize(This,pData,DataSizeInBytes) )
  7563. #define ID3D12PipelineLibrary1_LoadPipeline(This,pName,pDesc,riid,ppPipelineState) \
  7564. ( (This)->lpVtbl -> LoadPipeline(This,pName,pDesc,riid,ppPipelineState) )
  7565. #endif /* COBJMACROS */
  7566. #endif /* C style interface */
  7567. #endif /* __ID3D12PipelineLibrary1_INTERFACE_DEFINED__ */
  7568. /* interface __MIDL_itf_d3d12_0000_0023 */
  7569. /* [local] */
  7570. typedef
  7571. enum D3D12_MULTIPLE_FENCE_WAIT_FLAGS
  7572. {
  7573. D3D12_MULTIPLE_FENCE_WAIT_FLAG_NONE = 0,
  7574. D3D12_MULTIPLE_FENCE_WAIT_FLAG_ANY = 0x1,
  7575. D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL = 0
  7576. } D3D12_MULTIPLE_FENCE_WAIT_FLAGS;
  7577. DEFINE_ENUM_FLAG_OPERATORS( D3D12_MULTIPLE_FENCE_WAIT_FLAGS )
  7578. typedef
  7579. enum D3D12_RESIDENCY_PRIORITY
  7580. {
  7581. D3D12_RESIDENCY_PRIORITY_MINIMUM = 0x28000000,
  7582. D3D12_RESIDENCY_PRIORITY_LOW = 0x50000000,
  7583. D3D12_RESIDENCY_PRIORITY_NORMAL = 0x78000000,
  7584. D3D12_RESIDENCY_PRIORITY_HIGH = 0xa0010000,
  7585. D3D12_RESIDENCY_PRIORITY_MAXIMUM = 0xc8000000
  7586. } D3D12_RESIDENCY_PRIORITY;
  7587. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0023_v0_0_c_ifspec;
  7588. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0023_v0_0_s_ifspec;
  7589. #ifndef __ID3D12Device1_INTERFACE_DEFINED__
  7590. #define __ID3D12Device1_INTERFACE_DEFINED__
  7591. /* interface ID3D12Device1 */
  7592. /* [unique][local][object][uuid] */
  7593. EXTERN_C const IID IID_ID3D12Device1;
  7594. #if defined(__cplusplus) && !defined(CINTERFACE)
  7595. MIDL_INTERFACE("77acce80-638e-4e65-8895-c1f23386863e")
  7596. ID3D12Device1 : public ID3D12Device
  7597. {
  7598. public:
  7599. virtual HRESULT STDMETHODCALLTYPE CreatePipelineLibrary(
  7600. _In_reads_(BlobLength) const void *pLibraryBlob,
  7601. SIZE_T BlobLength,
  7602. REFIID riid,
  7603. _COM_Outptr_ void **ppPipelineLibrary) = 0;
  7604. virtual HRESULT STDMETHODCALLTYPE SetEventOnMultipleFenceCompletion(
  7605. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  7606. _In_reads_(NumFences) const UINT64 *pFenceValues,
  7607. UINT NumFences,
  7608. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  7609. HANDLE hEvent) = 0;
  7610. virtual HRESULT STDMETHODCALLTYPE SetResidencyPriority(
  7611. UINT NumObjects,
  7612. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  7613. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities) = 0;
  7614. };
  7615. #else /* C style interface */
  7616. typedef struct ID3D12Device1Vtbl
  7617. {
  7618. BEGIN_INTERFACE
  7619. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  7620. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7621. ID3D12Device1 * This,
  7622. REFIID riid,
  7623. _COM_Outptr_ void **ppvObject);
  7624. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  7625. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7626. ID3D12Device1 * This);
  7627. DECLSPEC_XFGVIRT(IUnknown, Release)
  7628. ULONG ( STDMETHODCALLTYPE *Release )(
  7629. ID3D12Device1 * This);
  7630. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  7631. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  7632. ID3D12Device1 * This,
  7633. _In_ REFGUID guid,
  7634. _Inout_ UINT *pDataSize,
  7635. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  7636. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  7637. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  7638. ID3D12Device1 * This,
  7639. _In_ REFGUID guid,
  7640. _In_ UINT DataSize,
  7641. _In_reads_bytes_opt_( DataSize ) const void *pData);
  7642. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  7643. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  7644. ID3D12Device1 * This,
  7645. _In_ REFGUID guid,
  7646. _In_opt_ const IUnknown *pData);
  7647. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  7648. HRESULT ( STDMETHODCALLTYPE *SetName )(
  7649. ID3D12Device1 * This,
  7650. _In_z_ LPCWSTR Name);
  7651. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  7652. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  7653. ID3D12Device1 * This);
  7654. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  7655. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  7656. ID3D12Device1 * This,
  7657. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  7658. REFIID riid,
  7659. _COM_Outptr_ void **ppCommandQueue);
  7660. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  7661. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  7662. ID3D12Device1 * This,
  7663. _In_ D3D12_COMMAND_LIST_TYPE type,
  7664. REFIID riid,
  7665. _COM_Outptr_ void **ppCommandAllocator);
  7666. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  7667. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  7668. ID3D12Device1 * This,
  7669. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7670. REFIID riid,
  7671. _COM_Outptr_ void **ppPipelineState);
  7672. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  7673. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  7674. ID3D12Device1 * This,
  7675. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7676. REFIID riid,
  7677. _COM_Outptr_ void **ppPipelineState);
  7678. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  7679. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  7680. ID3D12Device1 * This,
  7681. _In_ UINT nodeMask,
  7682. _In_ D3D12_COMMAND_LIST_TYPE type,
  7683. _In_ ID3D12CommandAllocator *pCommandAllocator,
  7684. _In_opt_ ID3D12PipelineState *pInitialState,
  7685. REFIID riid,
  7686. _COM_Outptr_ void **ppCommandList);
  7687. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  7688. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  7689. ID3D12Device1 * This,
  7690. D3D12_FEATURE Feature,
  7691. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  7692. UINT FeatureSupportDataSize);
  7693. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  7694. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  7695. ID3D12Device1 * This,
  7696. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  7697. REFIID riid,
  7698. _COM_Outptr_ void **ppvHeap);
  7699. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  7700. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  7701. ID3D12Device1 * This,
  7702. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  7703. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  7704. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  7705. ID3D12Device1 * This,
  7706. _In_ UINT nodeMask,
  7707. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  7708. _In_ SIZE_T blobLengthInBytes,
  7709. REFIID riid,
  7710. _COM_Outptr_ void **ppvRootSignature);
  7711. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  7712. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  7713. ID3D12Device1 * This,
  7714. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  7715. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7716. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  7717. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  7718. ID3D12Device1 * This,
  7719. _In_opt_ ID3D12Resource *pResource,
  7720. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  7721. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7722. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  7723. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  7724. ID3D12Device1 * This,
  7725. _In_opt_ ID3D12Resource *pResource,
  7726. _In_opt_ ID3D12Resource *pCounterResource,
  7727. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  7728. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7729. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  7730. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  7731. ID3D12Device1 * This,
  7732. _In_opt_ ID3D12Resource *pResource,
  7733. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  7734. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7735. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  7736. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  7737. ID3D12Device1 * This,
  7738. _In_opt_ ID3D12Resource *pResource,
  7739. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  7740. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7741. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  7742. void ( STDMETHODCALLTYPE *CreateSampler )(
  7743. ID3D12Device1 * This,
  7744. _In_ const D3D12_SAMPLER_DESC *pDesc,
  7745. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7746. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  7747. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  7748. ID3D12Device1 * This,
  7749. _In_ UINT NumDestDescriptorRanges,
  7750. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  7751. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  7752. _In_ UINT NumSrcDescriptorRanges,
  7753. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  7754. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  7755. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  7756. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  7757. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  7758. ID3D12Device1 * This,
  7759. _In_ UINT NumDescriptors,
  7760. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  7761. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  7762. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  7763. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  7764. #if !defined(_WIN32)
  7765. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  7766. ID3D12Device1 * This,
  7767. _In_ UINT visibleMask,
  7768. _In_ UINT numResourceDescs,
  7769. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  7770. #else
  7771. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  7772. ID3D12Device1 * This,
  7773. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  7774. _In_ UINT visibleMask,
  7775. _In_ UINT numResourceDescs,
  7776. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  7777. #endif
  7778. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  7779. #if !defined(_WIN32)
  7780. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  7781. ID3D12Device1 * This,
  7782. _In_ UINT nodeMask,
  7783. D3D12_HEAP_TYPE heapType);
  7784. #else
  7785. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  7786. ID3D12Device1 * This,
  7787. D3D12_HEAP_PROPERTIES * RetVal,
  7788. _In_ UINT nodeMask,
  7789. D3D12_HEAP_TYPE heapType);
  7790. #endif
  7791. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  7792. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  7793. ID3D12Device1 * This,
  7794. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  7795. D3D12_HEAP_FLAGS HeapFlags,
  7796. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7797. D3D12_RESOURCE_STATES InitialResourceState,
  7798. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7799. REFIID riidResource,
  7800. _COM_Outptr_opt_ void **ppvResource);
  7801. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  7802. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  7803. ID3D12Device1 * This,
  7804. _In_ const D3D12_HEAP_DESC *pDesc,
  7805. REFIID riid,
  7806. _COM_Outptr_opt_ void **ppvHeap);
  7807. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  7808. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  7809. ID3D12Device1 * This,
  7810. _In_ ID3D12Heap *pHeap,
  7811. UINT64 HeapOffset,
  7812. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7813. D3D12_RESOURCE_STATES InitialState,
  7814. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7815. REFIID riid,
  7816. _COM_Outptr_opt_ void **ppvResource);
  7817. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  7818. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  7819. ID3D12Device1 * This,
  7820. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7821. D3D12_RESOURCE_STATES InitialState,
  7822. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7823. REFIID riid,
  7824. _COM_Outptr_opt_ void **ppvResource);
  7825. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  7826. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  7827. ID3D12Device1 * This,
  7828. _In_ ID3D12DeviceChild *pObject,
  7829. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  7830. DWORD Access,
  7831. _In_opt_ LPCWSTR Name,
  7832. _Out_ HANDLE *pHandle);
  7833. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  7834. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  7835. ID3D12Device1 * This,
  7836. _In_ HANDLE NTHandle,
  7837. REFIID riid,
  7838. _COM_Outptr_opt_ void **ppvObj);
  7839. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  7840. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  7841. ID3D12Device1 * This,
  7842. _In_ LPCWSTR Name,
  7843. DWORD Access,
  7844. /* [annotation][out] */
  7845. _Out_ HANDLE *pNTHandle);
  7846. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  7847. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  7848. ID3D12Device1 * This,
  7849. UINT NumObjects,
  7850. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7851. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  7852. HRESULT ( STDMETHODCALLTYPE *Evict )(
  7853. ID3D12Device1 * This,
  7854. UINT NumObjects,
  7855. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7856. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  7857. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  7858. ID3D12Device1 * This,
  7859. UINT64 InitialValue,
  7860. D3D12_FENCE_FLAGS Flags,
  7861. REFIID riid,
  7862. _COM_Outptr_ void **ppFence);
  7863. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  7864. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  7865. ID3D12Device1 * This);
  7866. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  7867. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  7868. ID3D12Device1 * This,
  7869. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  7870. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  7871. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  7872. UINT64 BaseOffset,
  7873. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  7874. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  7875. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  7876. _Out_opt_ UINT64 *pTotalBytes);
  7877. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  7878. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  7879. ID3D12Device1 * This,
  7880. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  7881. REFIID riid,
  7882. _COM_Outptr_opt_ void **ppvHeap);
  7883. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  7884. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  7885. ID3D12Device1 * This,
  7886. BOOL Enable);
  7887. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  7888. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  7889. ID3D12Device1 * This,
  7890. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  7891. _In_opt_ ID3D12RootSignature *pRootSignature,
  7892. REFIID riid,
  7893. _COM_Outptr_opt_ void **ppvCommandSignature);
  7894. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  7895. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  7896. ID3D12Device1 * This,
  7897. _In_ ID3D12Resource *pTiledResource,
  7898. _Out_opt_ UINT *pNumTilesForEntireResource,
  7899. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  7900. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  7901. _Inout_opt_ UINT *pNumSubresourceTilings,
  7902. _In_ UINT FirstSubresourceTilingToGet,
  7903. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  7904. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  7905. #if !defined(_WIN32)
  7906. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  7907. ID3D12Device1 * This);
  7908. #else
  7909. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  7910. ID3D12Device1 * This,
  7911. LUID * RetVal);
  7912. #endif
  7913. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  7914. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  7915. ID3D12Device1 * This,
  7916. _In_reads_(BlobLength) const void *pLibraryBlob,
  7917. SIZE_T BlobLength,
  7918. REFIID riid,
  7919. _COM_Outptr_ void **ppPipelineLibrary);
  7920. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  7921. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  7922. ID3D12Device1 * This,
  7923. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  7924. _In_reads_(NumFences) const UINT64 *pFenceValues,
  7925. UINT NumFences,
  7926. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  7927. HANDLE hEvent);
  7928. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  7929. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  7930. ID3D12Device1 * This,
  7931. UINT NumObjects,
  7932. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  7933. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  7934. END_INTERFACE
  7935. } ID3D12Device1Vtbl;
  7936. interface ID3D12Device1
  7937. {
  7938. CONST_VTBL struct ID3D12Device1Vtbl *lpVtbl;
  7939. };
  7940. #ifdef COBJMACROS
  7941. #define ID3D12Device1_QueryInterface(This,riid,ppvObject) \
  7942. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7943. #define ID3D12Device1_AddRef(This) \
  7944. ( (This)->lpVtbl -> AddRef(This) )
  7945. #define ID3D12Device1_Release(This) \
  7946. ( (This)->lpVtbl -> Release(This) )
  7947. #define ID3D12Device1_GetPrivateData(This,guid,pDataSize,pData) \
  7948. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7949. #define ID3D12Device1_SetPrivateData(This,guid,DataSize,pData) \
  7950. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7951. #define ID3D12Device1_SetPrivateDataInterface(This,guid,pData) \
  7952. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7953. #define ID3D12Device1_SetName(This,Name) \
  7954. ( (This)->lpVtbl -> SetName(This,Name) )
  7955. #define ID3D12Device1_GetNodeCount(This) \
  7956. ( (This)->lpVtbl -> GetNodeCount(This) )
  7957. #define ID3D12Device1_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  7958. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  7959. #define ID3D12Device1_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  7960. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  7961. #define ID3D12Device1_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  7962. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  7963. #define ID3D12Device1_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  7964. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  7965. #define ID3D12Device1_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  7966. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  7967. #define ID3D12Device1_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  7968. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  7969. #define ID3D12Device1_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  7970. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  7971. #define ID3D12Device1_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  7972. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  7973. #define ID3D12Device1_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  7974. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  7975. #define ID3D12Device1_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  7976. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  7977. #define ID3D12Device1_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  7978. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  7979. #define ID3D12Device1_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  7980. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  7981. #define ID3D12Device1_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  7982. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  7983. #define ID3D12Device1_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  7984. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  7985. #define ID3D12Device1_CreateSampler(This,pDesc,DestDescriptor) \
  7986. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  7987. #define ID3D12Device1_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  7988. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  7989. #define ID3D12Device1_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  7990. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  7991. #if !defined(_WIN32)
  7992. #define ID3D12Device1_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  7993. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  7994. #else
  7995. #define ID3D12Device1_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  7996. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  7997. #endif
  7998. #if !defined(_WIN32)
  7999. #define ID3D12Device1_GetCustomHeapProperties(This,nodeMask,heapType) \
  8000. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  8001. #else
  8002. #define ID3D12Device1_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  8003. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  8004. #endif
  8005. #define ID3D12Device1_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  8006. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  8007. #define ID3D12Device1_CreateHeap(This,pDesc,riid,ppvHeap) \
  8008. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  8009. #define ID3D12Device1_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8010. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8011. #define ID3D12Device1_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8012. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8013. #define ID3D12Device1_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  8014. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  8015. #define ID3D12Device1_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  8016. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  8017. #define ID3D12Device1_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  8018. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  8019. #define ID3D12Device1_MakeResident(This,NumObjects,ppObjects) \
  8020. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  8021. #define ID3D12Device1_Evict(This,NumObjects,ppObjects) \
  8022. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  8023. #define ID3D12Device1_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  8024. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  8025. #define ID3D12Device1_GetDeviceRemovedReason(This) \
  8026. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  8027. #define ID3D12Device1_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  8028. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  8029. #define ID3D12Device1_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  8030. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  8031. #define ID3D12Device1_SetStablePowerState(This,Enable) \
  8032. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  8033. #define ID3D12Device1_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  8034. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  8035. #define ID3D12Device1_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  8036. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  8037. #if !defined(_WIN32)
  8038. #define ID3D12Device1_GetAdapterLuid(This) \
  8039. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  8040. #else
  8041. #define ID3D12Device1_GetAdapterLuid(This,RetVal) \
  8042. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  8043. #endif
  8044. #define ID3D12Device1_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  8045. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  8046. #define ID3D12Device1_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  8047. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  8048. #define ID3D12Device1_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  8049. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  8050. #endif /* COBJMACROS */
  8051. #endif /* C style interface */
  8052. #endif /* __ID3D12Device1_INTERFACE_DEFINED__ */
  8053. #ifndef __ID3D12Device2_INTERFACE_DEFINED__
  8054. #define __ID3D12Device2_INTERFACE_DEFINED__
  8055. /* interface ID3D12Device2 */
  8056. /* [unique][local][object][uuid] */
  8057. EXTERN_C const IID IID_ID3D12Device2;
  8058. #if defined(__cplusplus) && !defined(CINTERFACE)
  8059. MIDL_INTERFACE("30baa41e-b15b-475c-a0bb-1af5c5b64328")
  8060. ID3D12Device2 : public ID3D12Device1
  8061. {
  8062. public:
  8063. virtual HRESULT STDMETHODCALLTYPE CreatePipelineState(
  8064. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  8065. REFIID riid,
  8066. _COM_Outptr_ void **ppPipelineState) = 0;
  8067. };
  8068. #else /* C style interface */
  8069. typedef struct ID3D12Device2Vtbl
  8070. {
  8071. BEGIN_INTERFACE
  8072. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  8073. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8074. ID3D12Device2 * This,
  8075. REFIID riid,
  8076. _COM_Outptr_ void **ppvObject);
  8077. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  8078. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8079. ID3D12Device2 * This);
  8080. DECLSPEC_XFGVIRT(IUnknown, Release)
  8081. ULONG ( STDMETHODCALLTYPE *Release )(
  8082. ID3D12Device2 * This);
  8083. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  8084. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  8085. ID3D12Device2 * This,
  8086. _In_ REFGUID guid,
  8087. _Inout_ UINT *pDataSize,
  8088. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  8089. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  8090. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  8091. ID3D12Device2 * This,
  8092. _In_ REFGUID guid,
  8093. _In_ UINT DataSize,
  8094. _In_reads_bytes_opt_( DataSize ) const void *pData);
  8095. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  8096. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  8097. ID3D12Device2 * This,
  8098. _In_ REFGUID guid,
  8099. _In_opt_ const IUnknown *pData);
  8100. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  8101. HRESULT ( STDMETHODCALLTYPE *SetName )(
  8102. ID3D12Device2 * This,
  8103. _In_z_ LPCWSTR Name);
  8104. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  8105. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  8106. ID3D12Device2 * This);
  8107. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  8108. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  8109. ID3D12Device2 * This,
  8110. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  8111. REFIID riid,
  8112. _COM_Outptr_ void **ppCommandQueue);
  8113. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  8114. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  8115. ID3D12Device2 * This,
  8116. _In_ D3D12_COMMAND_LIST_TYPE type,
  8117. REFIID riid,
  8118. _COM_Outptr_ void **ppCommandAllocator);
  8119. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  8120. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  8121. ID3D12Device2 * This,
  8122. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  8123. REFIID riid,
  8124. _COM_Outptr_ void **ppPipelineState);
  8125. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  8126. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  8127. ID3D12Device2 * This,
  8128. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  8129. REFIID riid,
  8130. _COM_Outptr_ void **ppPipelineState);
  8131. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  8132. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  8133. ID3D12Device2 * This,
  8134. _In_ UINT nodeMask,
  8135. _In_ D3D12_COMMAND_LIST_TYPE type,
  8136. _In_ ID3D12CommandAllocator *pCommandAllocator,
  8137. _In_opt_ ID3D12PipelineState *pInitialState,
  8138. REFIID riid,
  8139. _COM_Outptr_ void **ppCommandList);
  8140. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  8141. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  8142. ID3D12Device2 * This,
  8143. D3D12_FEATURE Feature,
  8144. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  8145. UINT FeatureSupportDataSize);
  8146. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  8147. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  8148. ID3D12Device2 * This,
  8149. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  8150. REFIID riid,
  8151. _COM_Outptr_ void **ppvHeap);
  8152. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  8153. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  8154. ID3D12Device2 * This,
  8155. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  8156. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  8157. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  8158. ID3D12Device2 * This,
  8159. _In_ UINT nodeMask,
  8160. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  8161. _In_ SIZE_T blobLengthInBytes,
  8162. REFIID riid,
  8163. _COM_Outptr_ void **ppvRootSignature);
  8164. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  8165. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  8166. ID3D12Device2 * This,
  8167. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  8168. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8169. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  8170. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  8171. ID3D12Device2 * This,
  8172. _In_opt_ ID3D12Resource *pResource,
  8173. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  8174. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8175. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  8176. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  8177. ID3D12Device2 * This,
  8178. _In_opt_ ID3D12Resource *pResource,
  8179. _In_opt_ ID3D12Resource *pCounterResource,
  8180. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  8181. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8182. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  8183. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  8184. ID3D12Device2 * This,
  8185. _In_opt_ ID3D12Resource *pResource,
  8186. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  8187. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8188. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  8189. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  8190. ID3D12Device2 * This,
  8191. _In_opt_ ID3D12Resource *pResource,
  8192. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  8193. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8194. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  8195. void ( STDMETHODCALLTYPE *CreateSampler )(
  8196. ID3D12Device2 * This,
  8197. _In_ const D3D12_SAMPLER_DESC *pDesc,
  8198. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8199. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  8200. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  8201. ID3D12Device2 * This,
  8202. _In_ UINT NumDestDescriptorRanges,
  8203. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  8204. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  8205. _In_ UINT NumSrcDescriptorRanges,
  8206. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  8207. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  8208. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8209. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  8210. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  8211. ID3D12Device2 * This,
  8212. _In_ UINT NumDescriptors,
  8213. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  8214. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  8215. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8216. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  8217. #if !defined(_WIN32)
  8218. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8219. ID3D12Device2 * This,
  8220. _In_ UINT visibleMask,
  8221. _In_ UINT numResourceDescs,
  8222. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8223. #else
  8224. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8225. ID3D12Device2 * This,
  8226. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  8227. _In_ UINT visibleMask,
  8228. _In_ UINT numResourceDescs,
  8229. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8230. #endif
  8231. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  8232. #if !defined(_WIN32)
  8233. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8234. ID3D12Device2 * This,
  8235. _In_ UINT nodeMask,
  8236. D3D12_HEAP_TYPE heapType);
  8237. #else
  8238. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8239. ID3D12Device2 * This,
  8240. D3D12_HEAP_PROPERTIES * RetVal,
  8241. _In_ UINT nodeMask,
  8242. D3D12_HEAP_TYPE heapType);
  8243. #endif
  8244. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  8245. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  8246. ID3D12Device2 * This,
  8247. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  8248. D3D12_HEAP_FLAGS HeapFlags,
  8249. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8250. D3D12_RESOURCE_STATES InitialResourceState,
  8251. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8252. REFIID riidResource,
  8253. _COM_Outptr_opt_ void **ppvResource);
  8254. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  8255. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  8256. ID3D12Device2 * This,
  8257. _In_ const D3D12_HEAP_DESC *pDesc,
  8258. REFIID riid,
  8259. _COM_Outptr_opt_ void **ppvHeap);
  8260. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  8261. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  8262. ID3D12Device2 * This,
  8263. _In_ ID3D12Heap *pHeap,
  8264. UINT64 HeapOffset,
  8265. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8266. D3D12_RESOURCE_STATES InitialState,
  8267. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8268. REFIID riid,
  8269. _COM_Outptr_opt_ void **ppvResource);
  8270. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  8271. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  8272. ID3D12Device2 * This,
  8273. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8274. D3D12_RESOURCE_STATES InitialState,
  8275. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8276. REFIID riid,
  8277. _COM_Outptr_opt_ void **ppvResource);
  8278. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  8279. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  8280. ID3D12Device2 * This,
  8281. _In_ ID3D12DeviceChild *pObject,
  8282. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  8283. DWORD Access,
  8284. _In_opt_ LPCWSTR Name,
  8285. _Out_ HANDLE *pHandle);
  8286. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  8287. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  8288. ID3D12Device2 * This,
  8289. _In_ HANDLE NTHandle,
  8290. REFIID riid,
  8291. _COM_Outptr_opt_ void **ppvObj);
  8292. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  8293. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  8294. ID3D12Device2 * This,
  8295. _In_ LPCWSTR Name,
  8296. DWORD Access,
  8297. /* [annotation][out] */
  8298. _Out_ HANDLE *pNTHandle);
  8299. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  8300. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  8301. ID3D12Device2 * This,
  8302. UINT NumObjects,
  8303. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8304. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  8305. HRESULT ( STDMETHODCALLTYPE *Evict )(
  8306. ID3D12Device2 * This,
  8307. UINT NumObjects,
  8308. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8309. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  8310. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  8311. ID3D12Device2 * This,
  8312. UINT64 InitialValue,
  8313. D3D12_FENCE_FLAGS Flags,
  8314. REFIID riid,
  8315. _COM_Outptr_ void **ppFence);
  8316. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  8317. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  8318. ID3D12Device2 * This);
  8319. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  8320. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  8321. ID3D12Device2 * This,
  8322. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  8323. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  8324. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  8325. UINT64 BaseOffset,
  8326. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  8327. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  8328. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  8329. _Out_opt_ UINT64 *pTotalBytes);
  8330. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  8331. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  8332. ID3D12Device2 * This,
  8333. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  8334. REFIID riid,
  8335. _COM_Outptr_opt_ void **ppvHeap);
  8336. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  8337. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  8338. ID3D12Device2 * This,
  8339. BOOL Enable);
  8340. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  8341. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  8342. ID3D12Device2 * This,
  8343. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  8344. _In_opt_ ID3D12RootSignature *pRootSignature,
  8345. REFIID riid,
  8346. _COM_Outptr_opt_ void **ppvCommandSignature);
  8347. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  8348. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  8349. ID3D12Device2 * This,
  8350. _In_ ID3D12Resource *pTiledResource,
  8351. _Out_opt_ UINT *pNumTilesForEntireResource,
  8352. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  8353. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  8354. _Inout_opt_ UINT *pNumSubresourceTilings,
  8355. _In_ UINT FirstSubresourceTilingToGet,
  8356. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  8357. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  8358. #if !defined(_WIN32)
  8359. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  8360. ID3D12Device2 * This);
  8361. #else
  8362. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  8363. ID3D12Device2 * This,
  8364. LUID * RetVal);
  8365. #endif
  8366. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  8367. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  8368. ID3D12Device2 * This,
  8369. _In_reads_(BlobLength) const void *pLibraryBlob,
  8370. SIZE_T BlobLength,
  8371. REFIID riid,
  8372. _COM_Outptr_ void **ppPipelineLibrary);
  8373. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  8374. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  8375. ID3D12Device2 * This,
  8376. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  8377. _In_reads_(NumFences) const UINT64 *pFenceValues,
  8378. UINT NumFences,
  8379. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  8380. HANDLE hEvent);
  8381. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  8382. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  8383. ID3D12Device2 * This,
  8384. UINT NumObjects,
  8385. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8386. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  8387. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  8388. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  8389. ID3D12Device2 * This,
  8390. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  8391. REFIID riid,
  8392. _COM_Outptr_ void **ppPipelineState);
  8393. END_INTERFACE
  8394. } ID3D12Device2Vtbl;
  8395. interface ID3D12Device2
  8396. {
  8397. CONST_VTBL struct ID3D12Device2Vtbl *lpVtbl;
  8398. };
  8399. #ifdef COBJMACROS
  8400. #define ID3D12Device2_QueryInterface(This,riid,ppvObject) \
  8401. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  8402. #define ID3D12Device2_AddRef(This) \
  8403. ( (This)->lpVtbl -> AddRef(This) )
  8404. #define ID3D12Device2_Release(This) \
  8405. ( (This)->lpVtbl -> Release(This) )
  8406. #define ID3D12Device2_GetPrivateData(This,guid,pDataSize,pData) \
  8407. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  8408. #define ID3D12Device2_SetPrivateData(This,guid,DataSize,pData) \
  8409. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  8410. #define ID3D12Device2_SetPrivateDataInterface(This,guid,pData) \
  8411. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  8412. #define ID3D12Device2_SetName(This,Name) \
  8413. ( (This)->lpVtbl -> SetName(This,Name) )
  8414. #define ID3D12Device2_GetNodeCount(This) \
  8415. ( (This)->lpVtbl -> GetNodeCount(This) )
  8416. #define ID3D12Device2_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  8417. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  8418. #define ID3D12Device2_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  8419. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  8420. #define ID3D12Device2_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  8421. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  8422. #define ID3D12Device2_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  8423. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  8424. #define ID3D12Device2_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  8425. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  8426. #define ID3D12Device2_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  8427. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  8428. #define ID3D12Device2_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  8429. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  8430. #define ID3D12Device2_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  8431. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  8432. #define ID3D12Device2_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  8433. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  8434. #define ID3D12Device2_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  8435. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  8436. #define ID3D12Device2_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  8437. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  8438. #define ID3D12Device2_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  8439. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  8440. #define ID3D12Device2_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  8441. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  8442. #define ID3D12Device2_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  8443. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  8444. #define ID3D12Device2_CreateSampler(This,pDesc,DestDescriptor) \
  8445. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  8446. #define ID3D12Device2_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  8447. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  8448. #define ID3D12Device2_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  8449. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  8450. #if !defined(_WIN32)
  8451. #define ID3D12Device2_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  8452. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  8453. #else
  8454. #define ID3D12Device2_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  8455. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  8456. #endif
  8457. #if !defined(_WIN32)
  8458. #define ID3D12Device2_GetCustomHeapProperties(This,nodeMask,heapType) \
  8459. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  8460. #else
  8461. #define ID3D12Device2_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  8462. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  8463. #endif
  8464. #define ID3D12Device2_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  8465. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  8466. #define ID3D12Device2_CreateHeap(This,pDesc,riid,ppvHeap) \
  8467. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  8468. #define ID3D12Device2_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8469. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8470. #define ID3D12Device2_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8471. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8472. #define ID3D12Device2_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  8473. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  8474. #define ID3D12Device2_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  8475. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  8476. #define ID3D12Device2_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  8477. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  8478. #define ID3D12Device2_MakeResident(This,NumObjects,ppObjects) \
  8479. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  8480. #define ID3D12Device2_Evict(This,NumObjects,ppObjects) \
  8481. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  8482. #define ID3D12Device2_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  8483. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  8484. #define ID3D12Device2_GetDeviceRemovedReason(This) \
  8485. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  8486. #define ID3D12Device2_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  8487. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  8488. #define ID3D12Device2_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  8489. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  8490. #define ID3D12Device2_SetStablePowerState(This,Enable) \
  8491. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  8492. #define ID3D12Device2_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  8493. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  8494. #define ID3D12Device2_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  8495. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  8496. #if !defined(_WIN32)
  8497. #define ID3D12Device2_GetAdapterLuid(This) \
  8498. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  8499. #else
  8500. #define ID3D12Device2_GetAdapterLuid(This,RetVal) \
  8501. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  8502. #endif
  8503. #define ID3D12Device2_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  8504. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  8505. #define ID3D12Device2_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  8506. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  8507. #define ID3D12Device2_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  8508. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  8509. #define ID3D12Device2_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  8510. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  8511. #endif /* COBJMACROS */
  8512. #endif /* C style interface */
  8513. #endif /* __ID3D12Device2_INTERFACE_DEFINED__ */
  8514. /* interface __MIDL_itf_d3d12_0000_0025 */
  8515. /* [local] */
  8516. typedef
  8517. enum D3D12_RESIDENCY_FLAGS
  8518. {
  8519. D3D12_RESIDENCY_FLAG_NONE = 0,
  8520. D3D12_RESIDENCY_FLAG_DENY_OVERBUDGET = 0x1
  8521. } D3D12_RESIDENCY_FLAGS;
  8522. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESIDENCY_FLAGS )
  8523. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0025_v0_0_c_ifspec;
  8524. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0025_v0_0_s_ifspec;
  8525. #ifndef __ID3D12Device3_INTERFACE_DEFINED__
  8526. #define __ID3D12Device3_INTERFACE_DEFINED__
  8527. /* interface ID3D12Device3 */
  8528. /* [unique][local][object][uuid] */
  8529. EXTERN_C const IID IID_ID3D12Device3;
  8530. #if defined(__cplusplus) && !defined(CINTERFACE)
  8531. MIDL_INTERFACE("81dadc15-2bad-4392-93c5-101345c4aa98")
  8532. ID3D12Device3 : public ID3D12Device2
  8533. {
  8534. public:
  8535. virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromAddress(
  8536. _In_ const void *pAddress,
  8537. REFIID riid,
  8538. _COM_Outptr_ void **ppvHeap) = 0;
  8539. virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromFileMapping(
  8540. _In_ HANDLE hFileMapping,
  8541. REFIID riid,
  8542. _COM_Outptr_ void **ppvHeap) = 0;
  8543. virtual HRESULT STDMETHODCALLTYPE EnqueueMakeResident(
  8544. D3D12_RESIDENCY_FLAGS Flags,
  8545. UINT NumObjects,
  8546. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8547. _In_ ID3D12Fence *pFenceToSignal,
  8548. UINT64 FenceValueToSignal) = 0;
  8549. };
  8550. #else /* C style interface */
  8551. typedef struct ID3D12Device3Vtbl
  8552. {
  8553. BEGIN_INTERFACE
  8554. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  8555. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8556. ID3D12Device3 * This,
  8557. REFIID riid,
  8558. _COM_Outptr_ void **ppvObject);
  8559. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  8560. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8561. ID3D12Device3 * This);
  8562. DECLSPEC_XFGVIRT(IUnknown, Release)
  8563. ULONG ( STDMETHODCALLTYPE *Release )(
  8564. ID3D12Device3 * This);
  8565. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  8566. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  8567. ID3D12Device3 * This,
  8568. _In_ REFGUID guid,
  8569. _Inout_ UINT *pDataSize,
  8570. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  8571. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  8572. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  8573. ID3D12Device3 * This,
  8574. _In_ REFGUID guid,
  8575. _In_ UINT DataSize,
  8576. _In_reads_bytes_opt_( DataSize ) const void *pData);
  8577. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  8578. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  8579. ID3D12Device3 * This,
  8580. _In_ REFGUID guid,
  8581. _In_opt_ const IUnknown *pData);
  8582. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  8583. HRESULT ( STDMETHODCALLTYPE *SetName )(
  8584. ID3D12Device3 * This,
  8585. _In_z_ LPCWSTR Name);
  8586. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  8587. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  8588. ID3D12Device3 * This);
  8589. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  8590. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  8591. ID3D12Device3 * This,
  8592. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  8593. REFIID riid,
  8594. _COM_Outptr_ void **ppCommandQueue);
  8595. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  8596. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  8597. ID3D12Device3 * This,
  8598. _In_ D3D12_COMMAND_LIST_TYPE type,
  8599. REFIID riid,
  8600. _COM_Outptr_ void **ppCommandAllocator);
  8601. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  8602. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  8603. ID3D12Device3 * This,
  8604. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  8605. REFIID riid,
  8606. _COM_Outptr_ void **ppPipelineState);
  8607. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  8608. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  8609. ID3D12Device3 * This,
  8610. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  8611. REFIID riid,
  8612. _COM_Outptr_ void **ppPipelineState);
  8613. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  8614. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  8615. ID3D12Device3 * This,
  8616. _In_ UINT nodeMask,
  8617. _In_ D3D12_COMMAND_LIST_TYPE type,
  8618. _In_ ID3D12CommandAllocator *pCommandAllocator,
  8619. _In_opt_ ID3D12PipelineState *pInitialState,
  8620. REFIID riid,
  8621. _COM_Outptr_ void **ppCommandList);
  8622. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  8623. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  8624. ID3D12Device3 * This,
  8625. D3D12_FEATURE Feature,
  8626. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  8627. UINT FeatureSupportDataSize);
  8628. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  8629. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  8630. ID3D12Device3 * This,
  8631. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  8632. REFIID riid,
  8633. _COM_Outptr_ void **ppvHeap);
  8634. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  8635. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  8636. ID3D12Device3 * This,
  8637. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  8638. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  8639. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  8640. ID3D12Device3 * This,
  8641. _In_ UINT nodeMask,
  8642. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  8643. _In_ SIZE_T blobLengthInBytes,
  8644. REFIID riid,
  8645. _COM_Outptr_ void **ppvRootSignature);
  8646. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  8647. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  8648. ID3D12Device3 * This,
  8649. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  8650. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8651. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  8652. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  8653. ID3D12Device3 * This,
  8654. _In_opt_ ID3D12Resource *pResource,
  8655. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  8656. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8657. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  8658. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  8659. ID3D12Device3 * This,
  8660. _In_opt_ ID3D12Resource *pResource,
  8661. _In_opt_ ID3D12Resource *pCounterResource,
  8662. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  8663. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8664. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  8665. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  8666. ID3D12Device3 * This,
  8667. _In_opt_ ID3D12Resource *pResource,
  8668. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  8669. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8670. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  8671. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  8672. ID3D12Device3 * This,
  8673. _In_opt_ ID3D12Resource *pResource,
  8674. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  8675. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8676. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  8677. void ( STDMETHODCALLTYPE *CreateSampler )(
  8678. ID3D12Device3 * This,
  8679. _In_ const D3D12_SAMPLER_DESC *pDesc,
  8680. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8681. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  8682. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  8683. ID3D12Device3 * This,
  8684. _In_ UINT NumDestDescriptorRanges,
  8685. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  8686. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  8687. _In_ UINT NumSrcDescriptorRanges,
  8688. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  8689. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  8690. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8691. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  8692. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  8693. ID3D12Device3 * This,
  8694. _In_ UINT NumDescriptors,
  8695. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  8696. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  8697. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8698. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  8699. #if !defined(_WIN32)
  8700. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8701. ID3D12Device3 * This,
  8702. _In_ UINT visibleMask,
  8703. _In_ UINT numResourceDescs,
  8704. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8705. #else
  8706. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8707. ID3D12Device3 * This,
  8708. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  8709. _In_ UINT visibleMask,
  8710. _In_ UINT numResourceDescs,
  8711. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8712. #endif
  8713. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  8714. #if !defined(_WIN32)
  8715. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8716. ID3D12Device3 * This,
  8717. _In_ UINT nodeMask,
  8718. D3D12_HEAP_TYPE heapType);
  8719. #else
  8720. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8721. ID3D12Device3 * This,
  8722. D3D12_HEAP_PROPERTIES * RetVal,
  8723. _In_ UINT nodeMask,
  8724. D3D12_HEAP_TYPE heapType);
  8725. #endif
  8726. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  8727. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  8728. ID3D12Device3 * This,
  8729. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  8730. D3D12_HEAP_FLAGS HeapFlags,
  8731. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8732. D3D12_RESOURCE_STATES InitialResourceState,
  8733. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8734. REFIID riidResource,
  8735. _COM_Outptr_opt_ void **ppvResource);
  8736. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  8737. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  8738. ID3D12Device3 * This,
  8739. _In_ const D3D12_HEAP_DESC *pDesc,
  8740. REFIID riid,
  8741. _COM_Outptr_opt_ void **ppvHeap);
  8742. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  8743. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  8744. ID3D12Device3 * This,
  8745. _In_ ID3D12Heap *pHeap,
  8746. UINT64 HeapOffset,
  8747. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8748. D3D12_RESOURCE_STATES InitialState,
  8749. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8750. REFIID riid,
  8751. _COM_Outptr_opt_ void **ppvResource);
  8752. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  8753. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  8754. ID3D12Device3 * This,
  8755. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8756. D3D12_RESOURCE_STATES InitialState,
  8757. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8758. REFIID riid,
  8759. _COM_Outptr_opt_ void **ppvResource);
  8760. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  8761. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  8762. ID3D12Device3 * This,
  8763. _In_ ID3D12DeviceChild *pObject,
  8764. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  8765. DWORD Access,
  8766. _In_opt_ LPCWSTR Name,
  8767. _Out_ HANDLE *pHandle);
  8768. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  8769. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  8770. ID3D12Device3 * This,
  8771. _In_ HANDLE NTHandle,
  8772. REFIID riid,
  8773. _COM_Outptr_opt_ void **ppvObj);
  8774. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  8775. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  8776. ID3D12Device3 * This,
  8777. _In_ LPCWSTR Name,
  8778. DWORD Access,
  8779. /* [annotation][out] */
  8780. _Out_ HANDLE *pNTHandle);
  8781. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  8782. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  8783. ID3D12Device3 * This,
  8784. UINT NumObjects,
  8785. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8786. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  8787. HRESULT ( STDMETHODCALLTYPE *Evict )(
  8788. ID3D12Device3 * This,
  8789. UINT NumObjects,
  8790. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8791. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  8792. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  8793. ID3D12Device3 * This,
  8794. UINT64 InitialValue,
  8795. D3D12_FENCE_FLAGS Flags,
  8796. REFIID riid,
  8797. _COM_Outptr_ void **ppFence);
  8798. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  8799. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  8800. ID3D12Device3 * This);
  8801. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  8802. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  8803. ID3D12Device3 * This,
  8804. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  8805. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  8806. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  8807. UINT64 BaseOffset,
  8808. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  8809. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  8810. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  8811. _Out_opt_ UINT64 *pTotalBytes);
  8812. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  8813. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  8814. ID3D12Device3 * This,
  8815. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  8816. REFIID riid,
  8817. _COM_Outptr_opt_ void **ppvHeap);
  8818. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  8819. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  8820. ID3D12Device3 * This,
  8821. BOOL Enable);
  8822. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  8823. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  8824. ID3D12Device3 * This,
  8825. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  8826. _In_opt_ ID3D12RootSignature *pRootSignature,
  8827. REFIID riid,
  8828. _COM_Outptr_opt_ void **ppvCommandSignature);
  8829. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  8830. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  8831. ID3D12Device3 * This,
  8832. _In_ ID3D12Resource *pTiledResource,
  8833. _Out_opt_ UINT *pNumTilesForEntireResource,
  8834. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  8835. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  8836. _Inout_opt_ UINT *pNumSubresourceTilings,
  8837. _In_ UINT FirstSubresourceTilingToGet,
  8838. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  8839. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  8840. #if !defined(_WIN32)
  8841. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  8842. ID3D12Device3 * This);
  8843. #else
  8844. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  8845. ID3D12Device3 * This,
  8846. LUID * RetVal);
  8847. #endif
  8848. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  8849. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  8850. ID3D12Device3 * This,
  8851. _In_reads_(BlobLength) const void *pLibraryBlob,
  8852. SIZE_T BlobLength,
  8853. REFIID riid,
  8854. _COM_Outptr_ void **ppPipelineLibrary);
  8855. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  8856. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  8857. ID3D12Device3 * This,
  8858. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  8859. _In_reads_(NumFences) const UINT64 *pFenceValues,
  8860. UINT NumFences,
  8861. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  8862. HANDLE hEvent);
  8863. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  8864. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  8865. ID3D12Device3 * This,
  8866. UINT NumObjects,
  8867. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8868. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  8869. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  8870. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  8871. ID3D12Device3 * This,
  8872. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  8873. REFIID riid,
  8874. _COM_Outptr_ void **ppPipelineState);
  8875. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  8876. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  8877. ID3D12Device3 * This,
  8878. _In_ const void *pAddress,
  8879. REFIID riid,
  8880. _COM_Outptr_ void **ppvHeap);
  8881. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  8882. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  8883. ID3D12Device3 * This,
  8884. _In_ HANDLE hFileMapping,
  8885. REFIID riid,
  8886. _COM_Outptr_ void **ppvHeap);
  8887. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  8888. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  8889. ID3D12Device3 * This,
  8890. D3D12_RESIDENCY_FLAGS Flags,
  8891. UINT NumObjects,
  8892. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8893. _In_ ID3D12Fence *pFenceToSignal,
  8894. UINT64 FenceValueToSignal);
  8895. END_INTERFACE
  8896. } ID3D12Device3Vtbl;
  8897. interface ID3D12Device3
  8898. {
  8899. CONST_VTBL struct ID3D12Device3Vtbl *lpVtbl;
  8900. };
  8901. #ifdef COBJMACROS
  8902. #define ID3D12Device3_QueryInterface(This,riid,ppvObject) \
  8903. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  8904. #define ID3D12Device3_AddRef(This) \
  8905. ( (This)->lpVtbl -> AddRef(This) )
  8906. #define ID3D12Device3_Release(This) \
  8907. ( (This)->lpVtbl -> Release(This) )
  8908. #define ID3D12Device3_GetPrivateData(This,guid,pDataSize,pData) \
  8909. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  8910. #define ID3D12Device3_SetPrivateData(This,guid,DataSize,pData) \
  8911. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  8912. #define ID3D12Device3_SetPrivateDataInterface(This,guid,pData) \
  8913. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  8914. #define ID3D12Device3_SetName(This,Name) \
  8915. ( (This)->lpVtbl -> SetName(This,Name) )
  8916. #define ID3D12Device3_GetNodeCount(This) \
  8917. ( (This)->lpVtbl -> GetNodeCount(This) )
  8918. #define ID3D12Device3_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  8919. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  8920. #define ID3D12Device3_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  8921. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  8922. #define ID3D12Device3_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  8923. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  8924. #define ID3D12Device3_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  8925. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  8926. #define ID3D12Device3_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  8927. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  8928. #define ID3D12Device3_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  8929. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  8930. #define ID3D12Device3_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  8931. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  8932. #define ID3D12Device3_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  8933. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  8934. #define ID3D12Device3_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  8935. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  8936. #define ID3D12Device3_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  8937. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  8938. #define ID3D12Device3_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  8939. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  8940. #define ID3D12Device3_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  8941. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  8942. #define ID3D12Device3_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  8943. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  8944. #define ID3D12Device3_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  8945. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  8946. #define ID3D12Device3_CreateSampler(This,pDesc,DestDescriptor) \
  8947. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  8948. #define ID3D12Device3_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  8949. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  8950. #define ID3D12Device3_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  8951. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  8952. #if !defined(_WIN32)
  8953. #define ID3D12Device3_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  8954. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  8955. #else
  8956. #define ID3D12Device3_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  8957. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  8958. #endif
  8959. #if !defined(_WIN32)
  8960. #define ID3D12Device3_GetCustomHeapProperties(This,nodeMask,heapType) \
  8961. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  8962. #else
  8963. #define ID3D12Device3_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  8964. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  8965. #endif
  8966. #define ID3D12Device3_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  8967. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  8968. #define ID3D12Device3_CreateHeap(This,pDesc,riid,ppvHeap) \
  8969. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  8970. #define ID3D12Device3_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8971. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8972. #define ID3D12Device3_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8973. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8974. #define ID3D12Device3_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  8975. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  8976. #define ID3D12Device3_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  8977. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  8978. #define ID3D12Device3_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  8979. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  8980. #define ID3D12Device3_MakeResident(This,NumObjects,ppObjects) \
  8981. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  8982. #define ID3D12Device3_Evict(This,NumObjects,ppObjects) \
  8983. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  8984. #define ID3D12Device3_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  8985. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  8986. #define ID3D12Device3_GetDeviceRemovedReason(This) \
  8987. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  8988. #define ID3D12Device3_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  8989. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  8990. #define ID3D12Device3_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  8991. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  8992. #define ID3D12Device3_SetStablePowerState(This,Enable) \
  8993. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  8994. #define ID3D12Device3_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  8995. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  8996. #define ID3D12Device3_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  8997. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  8998. #if !defined(_WIN32)
  8999. #define ID3D12Device3_GetAdapterLuid(This) \
  9000. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  9001. #else
  9002. #define ID3D12Device3_GetAdapterLuid(This,RetVal) \
  9003. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  9004. #endif
  9005. #define ID3D12Device3_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  9006. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  9007. #define ID3D12Device3_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  9008. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  9009. #define ID3D12Device3_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  9010. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  9011. #define ID3D12Device3_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  9012. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  9013. #define ID3D12Device3_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  9014. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  9015. #define ID3D12Device3_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  9016. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  9017. #define ID3D12Device3_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  9018. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  9019. #endif /* COBJMACROS */
  9020. #endif /* C style interface */
  9021. #endif /* __ID3D12Device3_INTERFACE_DEFINED__ */
  9022. /* interface __MIDL_itf_d3d12_0000_0026 */
  9023. /* [local] */
  9024. typedef
  9025. enum D3D12_COMMAND_LIST_FLAGS
  9026. {
  9027. D3D12_COMMAND_LIST_FLAG_NONE = 0
  9028. } D3D12_COMMAND_LIST_FLAGS;
  9029. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_LIST_FLAGS )
  9030. typedef
  9031. enum D3D12_COMMAND_POOL_FLAGS
  9032. {
  9033. D3D12_COMMAND_POOL_FLAG_NONE = 0
  9034. } D3D12_COMMAND_POOL_FLAGS;
  9035. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_POOL_FLAGS )
  9036. typedef
  9037. enum D3D12_COMMAND_RECORDER_FLAGS
  9038. {
  9039. D3D12_COMMAND_RECORDER_FLAG_NONE = 0
  9040. } D3D12_COMMAND_RECORDER_FLAGS;
  9041. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_RECORDER_FLAGS )
  9042. typedef
  9043. enum D3D12_PROTECTED_SESSION_STATUS
  9044. {
  9045. D3D12_PROTECTED_SESSION_STATUS_OK = 0,
  9046. D3D12_PROTECTED_SESSION_STATUS_INVALID = 1
  9047. } D3D12_PROTECTED_SESSION_STATUS;
  9048. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0026_v0_0_c_ifspec;
  9049. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0026_v0_0_s_ifspec;
  9050. #ifndef __ID3D12ProtectedSession_INTERFACE_DEFINED__
  9051. #define __ID3D12ProtectedSession_INTERFACE_DEFINED__
  9052. /* interface ID3D12ProtectedSession */
  9053. /* [unique][local][object][uuid] */
  9054. EXTERN_C const IID IID_ID3D12ProtectedSession;
  9055. #if defined(__cplusplus) && !defined(CINTERFACE)
  9056. MIDL_INTERFACE("A1533D18-0AC1-4084-85B9-89A96116806B")
  9057. ID3D12ProtectedSession : public ID3D12DeviceChild
  9058. {
  9059. public:
  9060. virtual HRESULT STDMETHODCALLTYPE GetStatusFence(
  9061. REFIID riid,
  9062. _COM_Outptr_opt_ void **ppFence) = 0;
  9063. virtual D3D12_PROTECTED_SESSION_STATUS STDMETHODCALLTYPE GetSessionStatus( void) = 0;
  9064. };
  9065. #else /* C style interface */
  9066. typedef struct ID3D12ProtectedSessionVtbl
  9067. {
  9068. BEGIN_INTERFACE
  9069. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9070. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9071. ID3D12ProtectedSession * This,
  9072. REFIID riid,
  9073. _COM_Outptr_ void **ppvObject);
  9074. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9075. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9076. ID3D12ProtectedSession * This);
  9077. DECLSPEC_XFGVIRT(IUnknown, Release)
  9078. ULONG ( STDMETHODCALLTYPE *Release )(
  9079. ID3D12ProtectedSession * This);
  9080. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  9081. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  9082. ID3D12ProtectedSession * This,
  9083. _In_ REFGUID guid,
  9084. _Inout_ UINT *pDataSize,
  9085. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  9086. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  9087. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  9088. ID3D12ProtectedSession * This,
  9089. _In_ REFGUID guid,
  9090. _In_ UINT DataSize,
  9091. _In_reads_bytes_opt_( DataSize ) const void *pData);
  9092. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  9093. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  9094. ID3D12ProtectedSession * This,
  9095. _In_ REFGUID guid,
  9096. _In_opt_ const IUnknown *pData);
  9097. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  9098. HRESULT ( STDMETHODCALLTYPE *SetName )(
  9099. ID3D12ProtectedSession * This,
  9100. _In_z_ LPCWSTR Name);
  9101. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  9102. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  9103. ID3D12ProtectedSession * This,
  9104. REFIID riid,
  9105. _COM_Outptr_opt_ void **ppvDevice);
  9106. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence)
  9107. HRESULT ( STDMETHODCALLTYPE *GetStatusFence )(
  9108. ID3D12ProtectedSession * This,
  9109. REFIID riid,
  9110. _COM_Outptr_opt_ void **ppFence);
  9111. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus)
  9112. D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )(
  9113. ID3D12ProtectedSession * This);
  9114. END_INTERFACE
  9115. } ID3D12ProtectedSessionVtbl;
  9116. interface ID3D12ProtectedSession
  9117. {
  9118. CONST_VTBL struct ID3D12ProtectedSessionVtbl *lpVtbl;
  9119. };
  9120. #ifdef COBJMACROS
  9121. #define ID3D12ProtectedSession_QueryInterface(This,riid,ppvObject) \
  9122. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9123. #define ID3D12ProtectedSession_AddRef(This) \
  9124. ( (This)->lpVtbl -> AddRef(This) )
  9125. #define ID3D12ProtectedSession_Release(This) \
  9126. ( (This)->lpVtbl -> Release(This) )
  9127. #define ID3D12ProtectedSession_GetPrivateData(This,guid,pDataSize,pData) \
  9128. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  9129. #define ID3D12ProtectedSession_SetPrivateData(This,guid,DataSize,pData) \
  9130. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  9131. #define ID3D12ProtectedSession_SetPrivateDataInterface(This,guid,pData) \
  9132. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  9133. #define ID3D12ProtectedSession_SetName(This,Name) \
  9134. ( (This)->lpVtbl -> SetName(This,Name) )
  9135. #define ID3D12ProtectedSession_GetDevice(This,riid,ppvDevice) \
  9136. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  9137. #define ID3D12ProtectedSession_GetStatusFence(This,riid,ppFence) \
  9138. ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) )
  9139. #define ID3D12ProtectedSession_GetSessionStatus(This) \
  9140. ( (This)->lpVtbl -> GetSessionStatus(This) )
  9141. #endif /* COBJMACROS */
  9142. #endif /* C style interface */
  9143. #endif /* __ID3D12ProtectedSession_INTERFACE_DEFINED__ */
  9144. /* interface __MIDL_itf_d3d12_0000_0027 */
  9145. /* [local] */
  9146. typedef
  9147. enum D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS
  9148. {
  9149. D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_NONE = 0,
  9150. D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_SUPPORTED = 0x1
  9151. } D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS;
  9152. DEFINE_ENUM_FLAG_OPERATORS( D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS )
  9153. typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT
  9154. {
  9155. UINT NodeIndex;
  9156. D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS Support;
  9157. } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT;
  9158. typedef
  9159. enum D3D12_PROTECTED_RESOURCE_SESSION_FLAGS
  9160. {
  9161. D3D12_PROTECTED_RESOURCE_SESSION_FLAG_NONE = 0
  9162. } D3D12_PROTECTED_RESOURCE_SESSION_FLAGS;
  9163. DEFINE_ENUM_FLAG_OPERATORS( D3D12_PROTECTED_RESOURCE_SESSION_FLAGS )
  9164. typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC
  9165. {
  9166. UINT NodeMask;
  9167. D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags;
  9168. } D3D12_PROTECTED_RESOURCE_SESSION_DESC;
  9169. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0027_v0_0_c_ifspec;
  9170. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0027_v0_0_s_ifspec;
  9171. #ifndef __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__
  9172. #define __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__
  9173. /* interface ID3D12ProtectedResourceSession */
  9174. /* [unique][local][object][uuid] */
  9175. EXTERN_C const IID IID_ID3D12ProtectedResourceSession;
  9176. #if defined(__cplusplus) && !defined(CINTERFACE)
  9177. MIDL_INTERFACE("6CD696F4-F289-40CC-8091-5A6C0A099C3D")
  9178. ID3D12ProtectedResourceSession : public ID3D12ProtectedSession
  9179. {
  9180. public:
  9181. #if defined(_MSC_VER) || !defined(_WIN32)
  9182. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  9183. #else
  9184. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC *STDMETHODCALLTYPE GetDesc(
  9185. D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal) = 0;
  9186. #endif
  9187. };
  9188. #else /* C style interface */
  9189. typedef struct ID3D12ProtectedResourceSessionVtbl
  9190. {
  9191. BEGIN_INTERFACE
  9192. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9193. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9194. ID3D12ProtectedResourceSession * This,
  9195. REFIID riid,
  9196. _COM_Outptr_ void **ppvObject);
  9197. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9198. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9199. ID3D12ProtectedResourceSession * This);
  9200. DECLSPEC_XFGVIRT(IUnknown, Release)
  9201. ULONG ( STDMETHODCALLTYPE *Release )(
  9202. ID3D12ProtectedResourceSession * This);
  9203. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  9204. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  9205. ID3D12ProtectedResourceSession * This,
  9206. _In_ REFGUID guid,
  9207. _Inout_ UINT *pDataSize,
  9208. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  9209. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  9210. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  9211. ID3D12ProtectedResourceSession * This,
  9212. _In_ REFGUID guid,
  9213. _In_ UINT DataSize,
  9214. _In_reads_bytes_opt_( DataSize ) const void *pData);
  9215. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  9216. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  9217. ID3D12ProtectedResourceSession * This,
  9218. _In_ REFGUID guid,
  9219. _In_opt_ const IUnknown *pData);
  9220. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  9221. HRESULT ( STDMETHODCALLTYPE *SetName )(
  9222. ID3D12ProtectedResourceSession * This,
  9223. _In_z_ LPCWSTR Name);
  9224. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  9225. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  9226. ID3D12ProtectedResourceSession * This,
  9227. REFIID riid,
  9228. _COM_Outptr_opt_ void **ppvDevice);
  9229. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence)
  9230. HRESULT ( STDMETHODCALLTYPE *GetStatusFence )(
  9231. ID3D12ProtectedResourceSession * This,
  9232. REFIID riid,
  9233. _COM_Outptr_opt_ void **ppFence);
  9234. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus)
  9235. D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )(
  9236. ID3D12ProtectedResourceSession * This);
  9237. DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession, GetDesc)
  9238. #if !defined(_WIN32)
  9239. D3D12_PROTECTED_RESOURCE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  9240. ID3D12ProtectedResourceSession * This);
  9241. #else
  9242. D3D12_PROTECTED_RESOURCE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  9243. ID3D12ProtectedResourceSession * This,
  9244. D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal);
  9245. #endif
  9246. END_INTERFACE
  9247. } ID3D12ProtectedResourceSessionVtbl;
  9248. interface ID3D12ProtectedResourceSession
  9249. {
  9250. CONST_VTBL struct ID3D12ProtectedResourceSessionVtbl *lpVtbl;
  9251. };
  9252. #ifdef COBJMACROS
  9253. #define ID3D12ProtectedResourceSession_QueryInterface(This,riid,ppvObject) \
  9254. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9255. #define ID3D12ProtectedResourceSession_AddRef(This) \
  9256. ( (This)->lpVtbl -> AddRef(This) )
  9257. #define ID3D12ProtectedResourceSession_Release(This) \
  9258. ( (This)->lpVtbl -> Release(This) )
  9259. #define ID3D12ProtectedResourceSession_GetPrivateData(This,guid,pDataSize,pData) \
  9260. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  9261. #define ID3D12ProtectedResourceSession_SetPrivateData(This,guid,DataSize,pData) \
  9262. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  9263. #define ID3D12ProtectedResourceSession_SetPrivateDataInterface(This,guid,pData) \
  9264. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  9265. #define ID3D12ProtectedResourceSession_SetName(This,Name) \
  9266. ( (This)->lpVtbl -> SetName(This,Name) )
  9267. #define ID3D12ProtectedResourceSession_GetDevice(This,riid,ppvDevice) \
  9268. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  9269. #define ID3D12ProtectedResourceSession_GetStatusFence(This,riid,ppFence) \
  9270. ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) )
  9271. #define ID3D12ProtectedResourceSession_GetSessionStatus(This) \
  9272. ( (This)->lpVtbl -> GetSessionStatus(This) )
  9273. #if !defined(_WIN32)
  9274. #define ID3D12ProtectedResourceSession_GetDesc(This) \
  9275. ( (This)->lpVtbl -> GetDesc(This) )
  9276. #else
  9277. #define ID3D12ProtectedResourceSession_GetDesc(This,RetVal) \
  9278. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  9279. #endif
  9280. #endif /* COBJMACROS */
  9281. #endif /* C style interface */
  9282. #endif /* __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__ */
  9283. #ifndef __ID3D12Device4_INTERFACE_DEFINED__
  9284. #define __ID3D12Device4_INTERFACE_DEFINED__
  9285. /* interface ID3D12Device4 */
  9286. /* [unique][local][object][uuid] */
  9287. EXTERN_C const IID IID_ID3D12Device4;
  9288. #if defined(__cplusplus) && !defined(CINTERFACE)
  9289. MIDL_INTERFACE("e865df17-a9ee-46f9-a463-3098315aa2e5")
  9290. ID3D12Device4 : public ID3D12Device3
  9291. {
  9292. public:
  9293. virtual HRESULT STDMETHODCALLTYPE CreateCommandList1(
  9294. _In_ UINT nodeMask,
  9295. _In_ D3D12_COMMAND_LIST_TYPE type,
  9296. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  9297. REFIID riid,
  9298. _COM_Outptr_ void **ppCommandList) = 0;
  9299. virtual HRESULT STDMETHODCALLTYPE CreateProtectedResourceSession(
  9300. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  9301. _In_ REFIID riid,
  9302. _COM_Outptr_ void **ppSession) = 0;
  9303. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource1(
  9304. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  9305. D3D12_HEAP_FLAGS HeapFlags,
  9306. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9307. D3D12_RESOURCE_STATES InitialResourceState,
  9308. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9309. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9310. REFIID riidResource,
  9311. _COM_Outptr_opt_ void **ppvResource) = 0;
  9312. virtual HRESULT STDMETHODCALLTYPE CreateHeap1(
  9313. _In_ const D3D12_HEAP_DESC *pDesc,
  9314. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9315. REFIID riid,
  9316. _COM_Outptr_opt_ void **ppvHeap) = 0;
  9317. virtual HRESULT STDMETHODCALLTYPE CreateReservedResource1(
  9318. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9319. D3D12_RESOURCE_STATES InitialState,
  9320. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9321. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9322. REFIID riid,
  9323. _COM_Outptr_opt_ void **ppvResource) = 0;
  9324. #if defined(_MSC_VER) || !defined(_WIN32)
  9325. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo1(
  9326. UINT visibleMask,
  9327. UINT numResourceDescs,
  9328. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9329. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  9330. #else
  9331. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo1(
  9332. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  9333. UINT visibleMask,
  9334. UINT numResourceDescs,
  9335. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9336. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  9337. #endif
  9338. };
  9339. #else /* C style interface */
  9340. typedef struct ID3D12Device4Vtbl
  9341. {
  9342. BEGIN_INTERFACE
  9343. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9344. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9345. ID3D12Device4 * This,
  9346. REFIID riid,
  9347. _COM_Outptr_ void **ppvObject);
  9348. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9349. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9350. ID3D12Device4 * This);
  9351. DECLSPEC_XFGVIRT(IUnknown, Release)
  9352. ULONG ( STDMETHODCALLTYPE *Release )(
  9353. ID3D12Device4 * This);
  9354. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  9355. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  9356. ID3D12Device4 * This,
  9357. _In_ REFGUID guid,
  9358. _Inout_ UINT *pDataSize,
  9359. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  9360. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  9361. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  9362. ID3D12Device4 * This,
  9363. _In_ REFGUID guid,
  9364. _In_ UINT DataSize,
  9365. _In_reads_bytes_opt_( DataSize ) const void *pData);
  9366. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  9367. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  9368. ID3D12Device4 * This,
  9369. _In_ REFGUID guid,
  9370. _In_opt_ const IUnknown *pData);
  9371. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  9372. HRESULT ( STDMETHODCALLTYPE *SetName )(
  9373. ID3D12Device4 * This,
  9374. _In_z_ LPCWSTR Name);
  9375. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  9376. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  9377. ID3D12Device4 * This);
  9378. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  9379. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  9380. ID3D12Device4 * This,
  9381. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  9382. REFIID riid,
  9383. _COM_Outptr_ void **ppCommandQueue);
  9384. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  9385. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  9386. ID3D12Device4 * This,
  9387. _In_ D3D12_COMMAND_LIST_TYPE type,
  9388. REFIID riid,
  9389. _COM_Outptr_ void **ppCommandAllocator);
  9390. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  9391. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  9392. ID3D12Device4 * This,
  9393. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  9394. REFIID riid,
  9395. _COM_Outptr_ void **ppPipelineState);
  9396. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  9397. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  9398. ID3D12Device4 * This,
  9399. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  9400. REFIID riid,
  9401. _COM_Outptr_ void **ppPipelineState);
  9402. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  9403. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  9404. ID3D12Device4 * This,
  9405. _In_ UINT nodeMask,
  9406. _In_ D3D12_COMMAND_LIST_TYPE type,
  9407. _In_ ID3D12CommandAllocator *pCommandAllocator,
  9408. _In_opt_ ID3D12PipelineState *pInitialState,
  9409. REFIID riid,
  9410. _COM_Outptr_ void **ppCommandList);
  9411. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  9412. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  9413. ID3D12Device4 * This,
  9414. D3D12_FEATURE Feature,
  9415. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  9416. UINT FeatureSupportDataSize);
  9417. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  9418. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  9419. ID3D12Device4 * This,
  9420. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  9421. REFIID riid,
  9422. _COM_Outptr_ void **ppvHeap);
  9423. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  9424. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  9425. ID3D12Device4 * This,
  9426. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  9427. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  9428. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  9429. ID3D12Device4 * This,
  9430. _In_ UINT nodeMask,
  9431. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  9432. _In_ SIZE_T blobLengthInBytes,
  9433. REFIID riid,
  9434. _COM_Outptr_ void **ppvRootSignature);
  9435. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  9436. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  9437. ID3D12Device4 * This,
  9438. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  9439. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9440. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  9441. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  9442. ID3D12Device4 * This,
  9443. _In_opt_ ID3D12Resource *pResource,
  9444. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  9445. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9446. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  9447. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  9448. ID3D12Device4 * This,
  9449. _In_opt_ ID3D12Resource *pResource,
  9450. _In_opt_ ID3D12Resource *pCounterResource,
  9451. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  9452. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9453. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  9454. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  9455. ID3D12Device4 * This,
  9456. _In_opt_ ID3D12Resource *pResource,
  9457. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  9458. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9459. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  9460. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  9461. ID3D12Device4 * This,
  9462. _In_opt_ ID3D12Resource *pResource,
  9463. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  9464. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9465. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  9466. void ( STDMETHODCALLTYPE *CreateSampler )(
  9467. ID3D12Device4 * This,
  9468. _In_ const D3D12_SAMPLER_DESC *pDesc,
  9469. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9470. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  9471. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  9472. ID3D12Device4 * This,
  9473. _In_ UINT NumDestDescriptorRanges,
  9474. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  9475. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  9476. _In_ UINT NumSrcDescriptorRanges,
  9477. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  9478. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  9479. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  9480. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  9481. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  9482. ID3D12Device4 * This,
  9483. _In_ UINT NumDescriptors,
  9484. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  9485. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  9486. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  9487. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  9488. #if !defined(_WIN32)
  9489. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  9490. ID3D12Device4 * This,
  9491. _In_ UINT visibleMask,
  9492. _In_ UINT numResourceDescs,
  9493. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  9494. #else
  9495. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  9496. ID3D12Device4 * This,
  9497. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  9498. _In_ UINT visibleMask,
  9499. _In_ UINT numResourceDescs,
  9500. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  9501. #endif
  9502. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  9503. #if !defined(_WIN32)
  9504. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  9505. ID3D12Device4 * This,
  9506. _In_ UINT nodeMask,
  9507. D3D12_HEAP_TYPE heapType);
  9508. #else
  9509. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  9510. ID3D12Device4 * This,
  9511. D3D12_HEAP_PROPERTIES * RetVal,
  9512. _In_ UINT nodeMask,
  9513. D3D12_HEAP_TYPE heapType);
  9514. #endif
  9515. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  9516. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  9517. ID3D12Device4 * This,
  9518. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  9519. D3D12_HEAP_FLAGS HeapFlags,
  9520. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9521. D3D12_RESOURCE_STATES InitialResourceState,
  9522. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9523. REFIID riidResource,
  9524. _COM_Outptr_opt_ void **ppvResource);
  9525. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  9526. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  9527. ID3D12Device4 * This,
  9528. _In_ const D3D12_HEAP_DESC *pDesc,
  9529. REFIID riid,
  9530. _COM_Outptr_opt_ void **ppvHeap);
  9531. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  9532. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  9533. ID3D12Device4 * This,
  9534. _In_ ID3D12Heap *pHeap,
  9535. UINT64 HeapOffset,
  9536. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9537. D3D12_RESOURCE_STATES InitialState,
  9538. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9539. REFIID riid,
  9540. _COM_Outptr_opt_ void **ppvResource);
  9541. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  9542. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  9543. ID3D12Device4 * This,
  9544. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9545. D3D12_RESOURCE_STATES InitialState,
  9546. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9547. REFIID riid,
  9548. _COM_Outptr_opt_ void **ppvResource);
  9549. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  9550. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  9551. ID3D12Device4 * This,
  9552. _In_ ID3D12DeviceChild *pObject,
  9553. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  9554. DWORD Access,
  9555. _In_opt_ LPCWSTR Name,
  9556. _Out_ HANDLE *pHandle);
  9557. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  9558. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  9559. ID3D12Device4 * This,
  9560. _In_ HANDLE NTHandle,
  9561. REFIID riid,
  9562. _COM_Outptr_opt_ void **ppvObj);
  9563. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  9564. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  9565. ID3D12Device4 * This,
  9566. _In_ LPCWSTR Name,
  9567. DWORD Access,
  9568. /* [annotation][out] */
  9569. _Out_ HANDLE *pNTHandle);
  9570. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  9571. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  9572. ID3D12Device4 * This,
  9573. UINT NumObjects,
  9574. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  9575. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  9576. HRESULT ( STDMETHODCALLTYPE *Evict )(
  9577. ID3D12Device4 * This,
  9578. UINT NumObjects,
  9579. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  9580. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  9581. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  9582. ID3D12Device4 * This,
  9583. UINT64 InitialValue,
  9584. D3D12_FENCE_FLAGS Flags,
  9585. REFIID riid,
  9586. _COM_Outptr_ void **ppFence);
  9587. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  9588. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  9589. ID3D12Device4 * This);
  9590. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  9591. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  9592. ID3D12Device4 * This,
  9593. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  9594. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  9595. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  9596. UINT64 BaseOffset,
  9597. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  9598. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  9599. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  9600. _Out_opt_ UINT64 *pTotalBytes);
  9601. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  9602. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  9603. ID3D12Device4 * This,
  9604. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  9605. REFIID riid,
  9606. _COM_Outptr_opt_ void **ppvHeap);
  9607. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  9608. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  9609. ID3D12Device4 * This,
  9610. BOOL Enable);
  9611. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  9612. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  9613. ID3D12Device4 * This,
  9614. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  9615. _In_opt_ ID3D12RootSignature *pRootSignature,
  9616. REFIID riid,
  9617. _COM_Outptr_opt_ void **ppvCommandSignature);
  9618. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  9619. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  9620. ID3D12Device4 * This,
  9621. _In_ ID3D12Resource *pTiledResource,
  9622. _Out_opt_ UINT *pNumTilesForEntireResource,
  9623. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  9624. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  9625. _Inout_opt_ UINT *pNumSubresourceTilings,
  9626. _In_ UINT FirstSubresourceTilingToGet,
  9627. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  9628. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  9629. #if !defined(_WIN32)
  9630. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  9631. ID3D12Device4 * This);
  9632. #else
  9633. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  9634. ID3D12Device4 * This,
  9635. LUID * RetVal);
  9636. #endif
  9637. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  9638. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  9639. ID3D12Device4 * This,
  9640. _In_reads_(BlobLength) const void *pLibraryBlob,
  9641. SIZE_T BlobLength,
  9642. REFIID riid,
  9643. _COM_Outptr_ void **ppPipelineLibrary);
  9644. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  9645. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  9646. ID3D12Device4 * This,
  9647. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  9648. _In_reads_(NumFences) const UINT64 *pFenceValues,
  9649. UINT NumFences,
  9650. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  9651. HANDLE hEvent);
  9652. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  9653. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  9654. ID3D12Device4 * This,
  9655. UINT NumObjects,
  9656. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  9657. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  9658. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  9659. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  9660. ID3D12Device4 * This,
  9661. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  9662. REFIID riid,
  9663. _COM_Outptr_ void **ppPipelineState);
  9664. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  9665. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  9666. ID3D12Device4 * This,
  9667. _In_ const void *pAddress,
  9668. REFIID riid,
  9669. _COM_Outptr_ void **ppvHeap);
  9670. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  9671. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  9672. ID3D12Device4 * This,
  9673. _In_ HANDLE hFileMapping,
  9674. REFIID riid,
  9675. _COM_Outptr_ void **ppvHeap);
  9676. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  9677. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  9678. ID3D12Device4 * This,
  9679. D3D12_RESIDENCY_FLAGS Flags,
  9680. UINT NumObjects,
  9681. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  9682. _In_ ID3D12Fence *pFenceToSignal,
  9683. UINT64 FenceValueToSignal);
  9684. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  9685. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  9686. ID3D12Device4 * This,
  9687. _In_ UINT nodeMask,
  9688. _In_ D3D12_COMMAND_LIST_TYPE type,
  9689. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  9690. REFIID riid,
  9691. _COM_Outptr_ void **ppCommandList);
  9692. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  9693. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  9694. ID3D12Device4 * This,
  9695. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  9696. _In_ REFIID riid,
  9697. _COM_Outptr_ void **ppSession);
  9698. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  9699. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  9700. ID3D12Device4 * This,
  9701. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  9702. D3D12_HEAP_FLAGS HeapFlags,
  9703. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9704. D3D12_RESOURCE_STATES InitialResourceState,
  9705. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9706. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9707. REFIID riidResource,
  9708. _COM_Outptr_opt_ void **ppvResource);
  9709. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  9710. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  9711. ID3D12Device4 * This,
  9712. _In_ const D3D12_HEAP_DESC *pDesc,
  9713. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9714. REFIID riid,
  9715. _COM_Outptr_opt_ void **ppvHeap);
  9716. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  9717. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  9718. ID3D12Device4 * This,
  9719. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9720. D3D12_RESOURCE_STATES InitialState,
  9721. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9722. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9723. REFIID riid,
  9724. _COM_Outptr_opt_ void **ppvResource);
  9725. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  9726. #if !defined(_WIN32)
  9727. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  9728. ID3D12Device4 * This,
  9729. UINT visibleMask,
  9730. UINT numResourceDescs,
  9731. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9732. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  9733. #else
  9734. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  9735. ID3D12Device4 * This,
  9736. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  9737. UINT visibleMask,
  9738. UINT numResourceDescs,
  9739. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9740. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  9741. #endif
  9742. END_INTERFACE
  9743. } ID3D12Device4Vtbl;
  9744. interface ID3D12Device4
  9745. {
  9746. CONST_VTBL struct ID3D12Device4Vtbl *lpVtbl;
  9747. };
  9748. #ifdef COBJMACROS
  9749. #define ID3D12Device4_QueryInterface(This,riid,ppvObject) \
  9750. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9751. #define ID3D12Device4_AddRef(This) \
  9752. ( (This)->lpVtbl -> AddRef(This) )
  9753. #define ID3D12Device4_Release(This) \
  9754. ( (This)->lpVtbl -> Release(This) )
  9755. #define ID3D12Device4_GetPrivateData(This,guid,pDataSize,pData) \
  9756. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  9757. #define ID3D12Device4_SetPrivateData(This,guid,DataSize,pData) \
  9758. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  9759. #define ID3D12Device4_SetPrivateDataInterface(This,guid,pData) \
  9760. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  9761. #define ID3D12Device4_SetName(This,Name) \
  9762. ( (This)->lpVtbl -> SetName(This,Name) )
  9763. #define ID3D12Device4_GetNodeCount(This) \
  9764. ( (This)->lpVtbl -> GetNodeCount(This) )
  9765. #define ID3D12Device4_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  9766. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  9767. #define ID3D12Device4_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  9768. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  9769. #define ID3D12Device4_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  9770. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  9771. #define ID3D12Device4_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  9772. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  9773. #define ID3D12Device4_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  9774. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  9775. #define ID3D12Device4_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  9776. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  9777. #define ID3D12Device4_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  9778. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  9779. #define ID3D12Device4_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  9780. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  9781. #define ID3D12Device4_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  9782. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  9783. #define ID3D12Device4_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  9784. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  9785. #define ID3D12Device4_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  9786. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  9787. #define ID3D12Device4_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  9788. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  9789. #define ID3D12Device4_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  9790. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  9791. #define ID3D12Device4_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  9792. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  9793. #define ID3D12Device4_CreateSampler(This,pDesc,DestDescriptor) \
  9794. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  9795. #define ID3D12Device4_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  9796. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  9797. #define ID3D12Device4_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  9798. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  9799. #if !defined(_WIN32)
  9800. #define ID3D12Device4_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  9801. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  9802. #else
  9803. #define ID3D12Device4_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  9804. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  9805. #endif
  9806. #if !defined(_WIN32)
  9807. #define ID3D12Device4_GetCustomHeapProperties(This,nodeMask,heapType) \
  9808. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  9809. #else
  9810. #define ID3D12Device4_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  9811. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  9812. #endif
  9813. #define ID3D12Device4_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  9814. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  9815. #define ID3D12Device4_CreateHeap(This,pDesc,riid,ppvHeap) \
  9816. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  9817. #define ID3D12Device4_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  9818. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  9819. #define ID3D12Device4_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  9820. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  9821. #define ID3D12Device4_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  9822. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  9823. #define ID3D12Device4_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  9824. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  9825. #define ID3D12Device4_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  9826. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  9827. #define ID3D12Device4_MakeResident(This,NumObjects,ppObjects) \
  9828. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  9829. #define ID3D12Device4_Evict(This,NumObjects,ppObjects) \
  9830. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  9831. #define ID3D12Device4_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  9832. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  9833. #define ID3D12Device4_GetDeviceRemovedReason(This) \
  9834. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  9835. #define ID3D12Device4_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  9836. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  9837. #define ID3D12Device4_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  9838. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  9839. #define ID3D12Device4_SetStablePowerState(This,Enable) \
  9840. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  9841. #define ID3D12Device4_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  9842. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  9843. #define ID3D12Device4_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  9844. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  9845. #if !defined(_WIN32)
  9846. #define ID3D12Device4_GetAdapterLuid(This) \
  9847. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  9848. #else
  9849. #define ID3D12Device4_GetAdapterLuid(This,RetVal) \
  9850. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  9851. #endif
  9852. #define ID3D12Device4_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  9853. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  9854. #define ID3D12Device4_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  9855. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  9856. #define ID3D12Device4_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  9857. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  9858. #define ID3D12Device4_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  9859. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  9860. #define ID3D12Device4_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  9861. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  9862. #define ID3D12Device4_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  9863. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  9864. #define ID3D12Device4_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  9865. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  9866. #define ID3D12Device4_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  9867. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  9868. #define ID3D12Device4_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  9869. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  9870. #define ID3D12Device4_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  9871. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  9872. #define ID3D12Device4_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  9873. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  9874. #define ID3D12Device4_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  9875. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  9876. #if !defined(_WIN32)
  9877. #define ID3D12Device4_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  9878. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  9879. #else
  9880. #define ID3D12Device4_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  9881. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  9882. #endif
  9883. #endif /* COBJMACROS */
  9884. #endif /* C style interface */
  9885. #endif /* __ID3D12Device4_INTERFACE_DEFINED__ */
  9886. /* interface __MIDL_itf_d3d12_0000_0029 */
  9887. /* [local] */
  9888. typedef
  9889. enum D3D12_LIFETIME_STATE
  9890. {
  9891. D3D12_LIFETIME_STATE_IN_USE = 0,
  9892. D3D12_LIFETIME_STATE_NOT_IN_USE = ( D3D12_LIFETIME_STATE_IN_USE + 1 )
  9893. } D3D12_LIFETIME_STATE;
  9894. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0029_v0_0_c_ifspec;
  9895. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0029_v0_0_s_ifspec;
  9896. #ifndef __ID3D12LifetimeOwner_INTERFACE_DEFINED__
  9897. #define __ID3D12LifetimeOwner_INTERFACE_DEFINED__
  9898. /* interface ID3D12LifetimeOwner */
  9899. /* [unique][local][object][uuid] */
  9900. EXTERN_C const IID IID_ID3D12LifetimeOwner;
  9901. #if defined(__cplusplus) && !defined(CINTERFACE)
  9902. MIDL_INTERFACE("e667af9f-cd56-4f46-83ce-032e595d70a8")
  9903. ID3D12LifetimeOwner : public IUnknown
  9904. {
  9905. public:
  9906. virtual void STDMETHODCALLTYPE LifetimeStateUpdated(
  9907. D3D12_LIFETIME_STATE NewState) = 0;
  9908. };
  9909. #else /* C style interface */
  9910. typedef struct ID3D12LifetimeOwnerVtbl
  9911. {
  9912. BEGIN_INTERFACE
  9913. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9914. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9915. ID3D12LifetimeOwner * This,
  9916. REFIID riid,
  9917. _COM_Outptr_ void **ppvObject);
  9918. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9919. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9920. ID3D12LifetimeOwner * This);
  9921. DECLSPEC_XFGVIRT(IUnknown, Release)
  9922. ULONG ( STDMETHODCALLTYPE *Release )(
  9923. ID3D12LifetimeOwner * This);
  9924. DECLSPEC_XFGVIRT(ID3D12LifetimeOwner, LifetimeStateUpdated)
  9925. void ( STDMETHODCALLTYPE *LifetimeStateUpdated )(
  9926. ID3D12LifetimeOwner * This,
  9927. D3D12_LIFETIME_STATE NewState);
  9928. END_INTERFACE
  9929. } ID3D12LifetimeOwnerVtbl;
  9930. interface ID3D12LifetimeOwner
  9931. {
  9932. CONST_VTBL struct ID3D12LifetimeOwnerVtbl *lpVtbl;
  9933. };
  9934. #ifdef COBJMACROS
  9935. #define ID3D12LifetimeOwner_QueryInterface(This,riid,ppvObject) \
  9936. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9937. #define ID3D12LifetimeOwner_AddRef(This) \
  9938. ( (This)->lpVtbl -> AddRef(This) )
  9939. #define ID3D12LifetimeOwner_Release(This) \
  9940. ( (This)->lpVtbl -> Release(This) )
  9941. #define ID3D12LifetimeOwner_LifetimeStateUpdated(This,NewState) \
  9942. ( (This)->lpVtbl -> LifetimeStateUpdated(This,NewState) )
  9943. #endif /* COBJMACROS */
  9944. #endif /* C style interface */
  9945. #endif /* __ID3D12LifetimeOwner_INTERFACE_DEFINED__ */
  9946. #ifndef __ID3D12SwapChainAssistant_INTERFACE_DEFINED__
  9947. #define __ID3D12SwapChainAssistant_INTERFACE_DEFINED__
  9948. /* interface ID3D12SwapChainAssistant */
  9949. /* [unique][local][object][uuid] */
  9950. EXTERN_C const IID IID_ID3D12SwapChainAssistant;
  9951. #if defined(__cplusplus) && !defined(CINTERFACE)
  9952. MIDL_INTERFACE("f1df64b6-57fd-49cd-8807-c0eb88b45c8f")
  9953. ID3D12SwapChainAssistant : public IUnknown
  9954. {
  9955. public:
  9956. #if defined(_MSC_VER) || !defined(_WIN32)
  9957. virtual LUID STDMETHODCALLTYPE GetLUID( void) = 0;
  9958. #else
  9959. virtual LUID *STDMETHODCALLTYPE GetLUID(
  9960. LUID * RetVal) = 0;
  9961. #endif
  9962. virtual HRESULT STDMETHODCALLTYPE GetSwapChainObject(
  9963. REFIID riid,
  9964. _COM_Outptr_ void **ppv) = 0;
  9965. virtual HRESULT STDMETHODCALLTYPE GetCurrentResourceAndCommandQueue(
  9966. REFIID riidResource,
  9967. _COM_Outptr_ void **ppvResource,
  9968. REFIID riidQueue,
  9969. _COM_Outptr_ void **ppvQueue) = 0;
  9970. virtual HRESULT STDMETHODCALLTYPE InsertImplicitSync( void) = 0;
  9971. };
  9972. #else /* C style interface */
  9973. typedef struct ID3D12SwapChainAssistantVtbl
  9974. {
  9975. BEGIN_INTERFACE
  9976. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9977. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9978. ID3D12SwapChainAssistant * This,
  9979. REFIID riid,
  9980. _COM_Outptr_ void **ppvObject);
  9981. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9982. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9983. ID3D12SwapChainAssistant * This);
  9984. DECLSPEC_XFGVIRT(IUnknown, Release)
  9985. ULONG ( STDMETHODCALLTYPE *Release )(
  9986. ID3D12SwapChainAssistant * This);
  9987. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetLUID)
  9988. #if !defined(_WIN32)
  9989. LUID ( STDMETHODCALLTYPE *GetLUID )(
  9990. ID3D12SwapChainAssistant * This);
  9991. #else
  9992. LUID *( STDMETHODCALLTYPE *GetLUID )(
  9993. ID3D12SwapChainAssistant * This,
  9994. LUID * RetVal);
  9995. #endif
  9996. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetSwapChainObject)
  9997. HRESULT ( STDMETHODCALLTYPE *GetSwapChainObject )(
  9998. ID3D12SwapChainAssistant * This,
  9999. REFIID riid,
  10000. _COM_Outptr_ void **ppv);
  10001. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetCurrentResourceAndCommandQueue)
  10002. HRESULT ( STDMETHODCALLTYPE *GetCurrentResourceAndCommandQueue )(
  10003. ID3D12SwapChainAssistant * This,
  10004. REFIID riidResource,
  10005. _COM_Outptr_ void **ppvResource,
  10006. REFIID riidQueue,
  10007. _COM_Outptr_ void **ppvQueue);
  10008. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, InsertImplicitSync)
  10009. HRESULT ( STDMETHODCALLTYPE *InsertImplicitSync )(
  10010. ID3D12SwapChainAssistant * This);
  10011. END_INTERFACE
  10012. } ID3D12SwapChainAssistantVtbl;
  10013. interface ID3D12SwapChainAssistant
  10014. {
  10015. CONST_VTBL struct ID3D12SwapChainAssistantVtbl *lpVtbl;
  10016. };
  10017. #ifdef COBJMACROS
  10018. #define ID3D12SwapChainAssistant_QueryInterface(This,riid,ppvObject) \
  10019. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10020. #define ID3D12SwapChainAssistant_AddRef(This) \
  10021. ( (This)->lpVtbl -> AddRef(This) )
  10022. #define ID3D12SwapChainAssistant_Release(This) \
  10023. ( (This)->lpVtbl -> Release(This) )
  10024. #if !defined(_WIN32)
  10025. #define ID3D12SwapChainAssistant_GetLUID(This) \
  10026. ( (This)->lpVtbl -> GetLUID(This) )
  10027. #else
  10028. #define ID3D12SwapChainAssistant_GetLUID(This,RetVal) \
  10029. ( (This)->lpVtbl -> GetLUID(This,RetVal) )
  10030. #endif
  10031. #define ID3D12SwapChainAssistant_GetSwapChainObject(This,riid,ppv) \
  10032. ( (This)->lpVtbl -> GetSwapChainObject(This,riid,ppv) )
  10033. #define ID3D12SwapChainAssistant_GetCurrentResourceAndCommandQueue(This,riidResource,ppvResource,riidQueue,ppvQueue) \
  10034. ( (This)->lpVtbl -> GetCurrentResourceAndCommandQueue(This,riidResource,ppvResource,riidQueue,ppvQueue) )
  10035. #define ID3D12SwapChainAssistant_InsertImplicitSync(This) \
  10036. ( (This)->lpVtbl -> InsertImplicitSync(This) )
  10037. #endif /* COBJMACROS */
  10038. #endif /* C style interface */
  10039. #endif /* __ID3D12SwapChainAssistant_INTERFACE_DEFINED__ */
  10040. #ifndef __ID3D12LifetimeTracker_INTERFACE_DEFINED__
  10041. #define __ID3D12LifetimeTracker_INTERFACE_DEFINED__
  10042. /* interface ID3D12LifetimeTracker */
  10043. /* [unique][local][object][uuid] */
  10044. EXTERN_C const IID IID_ID3D12LifetimeTracker;
  10045. #if defined(__cplusplus) && !defined(CINTERFACE)
  10046. MIDL_INTERFACE("3fd03d36-4eb1-424a-a582-494ecb8ba813")
  10047. ID3D12LifetimeTracker : public ID3D12DeviceChild
  10048. {
  10049. public:
  10050. virtual HRESULT STDMETHODCALLTYPE DestroyOwnedObject(
  10051. _In_ ID3D12DeviceChild *pObject) = 0;
  10052. };
  10053. #else /* C style interface */
  10054. typedef struct ID3D12LifetimeTrackerVtbl
  10055. {
  10056. BEGIN_INTERFACE
  10057. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10058. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10059. ID3D12LifetimeTracker * This,
  10060. REFIID riid,
  10061. _COM_Outptr_ void **ppvObject);
  10062. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10063. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10064. ID3D12LifetimeTracker * This);
  10065. DECLSPEC_XFGVIRT(IUnknown, Release)
  10066. ULONG ( STDMETHODCALLTYPE *Release )(
  10067. ID3D12LifetimeTracker * This);
  10068. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  10069. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  10070. ID3D12LifetimeTracker * This,
  10071. _In_ REFGUID guid,
  10072. _Inout_ UINT *pDataSize,
  10073. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  10074. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  10075. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  10076. ID3D12LifetimeTracker * This,
  10077. _In_ REFGUID guid,
  10078. _In_ UINT DataSize,
  10079. _In_reads_bytes_opt_( DataSize ) const void *pData);
  10080. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  10081. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  10082. ID3D12LifetimeTracker * This,
  10083. _In_ REFGUID guid,
  10084. _In_opt_ const IUnknown *pData);
  10085. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  10086. HRESULT ( STDMETHODCALLTYPE *SetName )(
  10087. ID3D12LifetimeTracker * This,
  10088. _In_z_ LPCWSTR Name);
  10089. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  10090. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  10091. ID3D12LifetimeTracker * This,
  10092. REFIID riid,
  10093. _COM_Outptr_opt_ void **ppvDevice);
  10094. DECLSPEC_XFGVIRT(ID3D12LifetimeTracker, DestroyOwnedObject)
  10095. HRESULT ( STDMETHODCALLTYPE *DestroyOwnedObject )(
  10096. ID3D12LifetimeTracker * This,
  10097. _In_ ID3D12DeviceChild *pObject);
  10098. END_INTERFACE
  10099. } ID3D12LifetimeTrackerVtbl;
  10100. interface ID3D12LifetimeTracker
  10101. {
  10102. CONST_VTBL struct ID3D12LifetimeTrackerVtbl *lpVtbl;
  10103. };
  10104. #ifdef COBJMACROS
  10105. #define ID3D12LifetimeTracker_QueryInterface(This,riid,ppvObject) \
  10106. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10107. #define ID3D12LifetimeTracker_AddRef(This) \
  10108. ( (This)->lpVtbl -> AddRef(This) )
  10109. #define ID3D12LifetimeTracker_Release(This) \
  10110. ( (This)->lpVtbl -> Release(This) )
  10111. #define ID3D12LifetimeTracker_GetPrivateData(This,guid,pDataSize,pData) \
  10112. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  10113. #define ID3D12LifetimeTracker_SetPrivateData(This,guid,DataSize,pData) \
  10114. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  10115. #define ID3D12LifetimeTracker_SetPrivateDataInterface(This,guid,pData) \
  10116. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  10117. #define ID3D12LifetimeTracker_SetName(This,Name) \
  10118. ( (This)->lpVtbl -> SetName(This,Name) )
  10119. #define ID3D12LifetimeTracker_GetDevice(This,riid,ppvDevice) \
  10120. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  10121. #define ID3D12LifetimeTracker_DestroyOwnedObject(This,pObject) \
  10122. ( (This)->lpVtbl -> DestroyOwnedObject(This,pObject) )
  10123. #endif /* COBJMACROS */
  10124. #endif /* C style interface */
  10125. #endif /* __ID3D12LifetimeTracker_INTERFACE_DEFINED__ */
  10126. /* interface __MIDL_itf_d3d12_0000_0032 */
  10127. /* [local] */
  10128. typedef
  10129. enum D3D12_META_COMMAND_PARAMETER_TYPE
  10130. {
  10131. D3D12_META_COMMAND_PARAMETER_TYPE_FLOAT = 0,
  10132. D3D12_META_COMMAND_PARAMETER_TYPE_UINT64 = 1,
  10133. D3D12_META_COMMAND_PARAMETER_TYPE_GPU_VIRTUAL_ADDRESS = 2,
  10134. D3D12_META_COMMAND_PARAMETER_TYPE_CPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 3,
  10135. D3D12_META_COMMAND_PARAMETER_TYPE_GPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 4
  10136. } D3D12_META_COMMAND_PARAMETER_TYPE;
  10137. typedef
  10138. enum D3D12_META_COMMAND_PARAMETER_FLAGS
  10139. {
  10140. D3D12_META_COMMAND_PARAMETER_FLAG_INPUT = 0x1,
  10141. D3D12_META_COMMAND_PARAMETER_FLAG_OUTPUT = 0x2
  10142. } D3D12_META_COMMAND_PARAMETER_FLAGS;
  10143. DEFINE_ENUM_FLAG_OPERATORS( D3D12_META_COMMAND_PARAMETER_FLAGS )
  10144. typedef
  10145. enum D3D12_META_COMMAND_PARAMETER_STAGE
  10146. {
  10147. D3D12_META_COMMAND_PARAMETER_STAGE_CREATION = 0,
  10148. D3D12_META_COMMAND_PARAMETER_STAGE_INITIALIZATION = 1,
  10149. D3D12_META_COMMAND_PARAMETER_STAGE_EXECUTION = 2
  10150. } D3D12_META_COMMAND_PARAMETER_STAGE;
  10151. typedef struct D3D12_META_COMMAND_PARAMETER_DESC
  10152. {
  10153. LPCWSTR Name;
  10154. D3D12_META_COMMAND_PARAMETER_TYPE Type;
  10155. D3D12_META_COMMAND_PARAMETER_FLAGS Flags;
  10156. D3D12_RESOURCE_STATES RequiredResourceState;
  10157. UINT StructureOffset;
  10158. } D3D12_META_COMMAND_PARAMETER_DESC;
  10159. typedef
  10160. enum D3D12_GRAPHICS_STATES
  10161. {
  10162. D3D12_GRAPHICS_STATE_NONE = 0,
  10163. D3D12_GRAPHICS_STATE_IA_VERTEX_BUFFERS = ( 1 << 0 ) ,
  10164. D3D12_GRAPHICS_STATE_IA_INDEX_BUFFER = ( 1 << 1 ) ,
  10165. D3D12_GRAPHICS_STATE_IA_PRIMITIVE_TOPOLOGY = ( 1 << 2 ) ,
  10166. D3D12_GRAPHICS_STATE_DESCRIPTOR_HEAP = ( 1 << 3 ) ,
  10167. D3D12_GRAPHICS_STATE_GRAPHICS_ROOT_SIGNATURE = ( 1 << 4 ) ,
  10168. D3D12_GRAPHICS_STATE_COMPUTE_ROOT_SIGNATURE = ( 1 << 5 ) ,
  10169. D3D12_GRAPHICS_STATE_RS_VIEWPORTS = ( 1 << 6 ) ,
  10170. D3D12_GRAPHICS_STATE_RS_SCISSOR_RECTS = ( 1 << 7 ) ,
  10171. D3D12_GRAPHICS_STATE_PREDICATION = ( 1 << 8 ) ,
  10172. D3D12_GRAPHICS_STATE_OM_RENDER_TARGETS = ( 1 << 9 ) ,
  10173. D3D12_GRAPHICS_STATE_OM_STENCIL_REF = ( 1 << 10 ) ,
  10174. D3D12_GRAPHICS_STATE_OM_BLEND_FACTOR = ( 1 << 11 ) ,
  10175. D3D12_GRAPHICS_STATE_PIPELINE_STATE = ( 1 << 12 ) ,
  10176. D3D12_GRAPHICS_STATE_SO_TARGETS = ( 1 << 13 ) ,
  10177. D3D12_GRAPHICS_STATE_OM_DEPTH_BOUNDS = ( 1 << 14 ) ,
  10178. D3D12_GRAPHICS_STATE_SAMPLE_POSITIONS = ( 1 << 15 ) ,
  10179. D3D12_GRAPHICS_STATE_VIEW_INSTANCE_MASK = ( 1 << 16 )
  10180. } D3D12_GRAPHICS_STATES;
  10181. DEFINE_ENUM_FLAG_OPERATORS( D3D12_GRAPHICS_STATES )
  10182. typedef struct D3D12_META_COMMAND_DESC
  10183. {
  10184. GUID Id;
  10185. LPCWSTR Name;
  10186. D3D12_GRAPHICS_STATES InitializationDirtyState;
  10187. D3D12_GRAPHICS_STATES ExecutionDirtyState;
  10188. } D3D12_META_COMMAND_DESC;
  10189. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0032_v0_0_c_ifspec;
  10190. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0032_v0_0_s_ifspec;
  10191. #ifndef __ID3D12StateObject_INTERFACE_DEFINED__
  10192. #define __ID3D12StateObject_INTERFACE_DEFINED__
  10193. /* interface ID3D12StateObject */
  10194. /* [unique][local][object][uuid] */
  10195. EXTERN_C const IID IID_ID3D12StateObject;
  10196. #if defined(__cplusplus) && !defined(CINTERFACE)
  10197. MIDL_INTERFACE("47016943-fca8-4594-93ea-af258b55346d")
  10198. ID3D12StateObject : public ID3D12Pageable
  10199. {
  10200. public:
  10201. };
  10202. #else /* C style interface */
  10203. typedef struct ID3D12StateObjectVtbl
  10204. {
  10205. BEGIN_INTERFACE
  10206. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10207. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10208. ID3D12StateObject * This,
  10209. REFIID riid,
  10210. _COM_Outptr_ void **ppvObject);
  10211. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10212. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10213. ID3D12StateObject * This);
  10214. DECLSPEC_XFGVIRT(IUnknown, Release)
  10215. ULONG ( STDMETHODCALLTYPE *Release )(
  10216. ID3D12StateObject * This);
  10217. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  10218. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  10219. ID3D12StateObject * This,
  10220. _In_ REFGUID guid,
  10221. _Inout_ UINT *pDataSize,
  10222. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  10223. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  10224. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  10225. ID3D12StateObject * This,
  10226. _In_ REFGUID guid,
  10227. _In_ UINT DataSize,
  10228. _In_reads_bytes_opt_( DataSize ) const void *pData);
  10229. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  10230. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  10231. ID3D12StateObject * This,
  10232. _In_ REFGUID guid,
  10233. _In_opt_ const IUnknown *pData);
  10234. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  10235. HRESULT ( STDMETHODCALLTYPE *SetName )(
  10236. ID3D12StateObject * This,
  10237. _In_z_ LPCWSTR Name);
  10238. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  10239. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  10240. ID3D12StateObject * This,
  10241. REFIID riid,
  10242. _COM_Outptr_opt_ void **ppvDevice);
  10243. END_INTERFACE
  10244. } ID3D12StateObjectVtbl;
  10245. interface ID3D12StateObject
  10246. {
  10247. CONST_VTBL struct ID3D12StateObjectVtbl *lpVtbl;
  10248. };
  10249. #ifdef COBJMACROS
  10250. #define ID3D12StateObject_QueryInterface(This,riid,ppvObject) \
  10251. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10252. #define ID3D12StateObject_AddRef(This) \
  10253. ( (This)->lpVtbl -> AddRef(This) )
  10254. #define ID3D12StateObject_Release(This) \
  10255. ( (This)->lpVtbl -> Release(This) )
  10256. #define ID3D12StateObject_GetPrivateData(This,guid,pDataSize,pData) \
  10257. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  10258. #define ID3D12StateObject_SetPrivateData(This,guid,DataSize,pData) \
  10259. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  10260. #define ID3D12StateObject_SetPrivateDataInterface(This,guid,pData) \
  10261. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  10262. #define ID3D12StateObject_SetName(This,Name) \
  10263. ( (This)->lpVtbl -> SetName(This,Name) )
  10264. #define ID3D12StateObject_GetDevice(This,riid,ppvDevice) \
  10265. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  10266. #endif /* COBJMACROS */
  10267. #endif /* C style interface */
  10268. #endif /* __ID3D12StateObject_INTERFACE_DEFINED__ */
  10269. #ifndef __ID3D12StateObjectProperties_INTERFACE_DEFINED__
  10270. #define __ID3D12StateObjectProperties_INTERFACE_DEFINED__
  10271. /* interface ID3D12StateObjectProperties */
  10272. /* [unique][local][object][uuid] */
  10273. EXTERN_C const IID IID_ID3D12StateObjectProperties;
  10274. #if defined(__cplusplus) && !defined(CINTERFACE)
  10275. MIDL_INTERFACE("de5fa827-9bf9-4f26-89ff-d7f56fde3860")
  10276. ID3D12StateObjectProperties : public IUnknown
  10277. {
  10278. public:
  10279. virtual void *STDMETHODCALLTYPE GetShaderIdentifier(
  10280. _In_ LPCWSTR pExportName) = 0;
  10281. virtual UINT64 STDMETHODCALLTYPE GetShaderStackSize(
  10282. _In_ LPCWSTR pExportName) = 0;
  10283. virtual UINT64 STDMETHODCALLTYPE GetPipelineStackSize( void) = 0;
  10284. virtual void STDMETHODCALLTYPE SetPipelineStackSize(
  10285. UINT64 PipelineStackSizeInBytes) = 0;
  10286. };
  10287. #else /* C style interface */
  10288. typedef struct ID3D12StateObjectPropertiesVtbl
  10289. {
  10290. BEGIN_INTERFACE
  10291. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10292. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10293. ID3D12StateObjectProperties * This,
  10294. REFIID riid,
  10295. _COM_Outptr_ void **ppvObject);
  10296. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10297. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10298. ID3D12StateObjectProperties * This);
  10299. DECLSPEC_XFGVIRT(IUnknown, Release)
  10300. ULONG ( STDMETHODCALLTYPE *Release )(
  10301. ID3D12StateObjectProperties * This);
  10302. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderIdentifier)
  10303. void *( STDMETHODCALLTYPE *GetShaderIdentifier )(
  10304. ID3D12StateObjectProperties * This,
  10305. _In_ LPCWSTR pExportName);
  10306. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderStackSize)
  10307. UINT64 ( STDMETHODCALLTYPE *GetShaderStackSize )(
  10308. ID3D12StateObjectProperties * This,
  10309. _In_ LPCWSTR pExportName);
  10310. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetPipelineStackSize)
  10311. UINT64 ( STDMETHODCALLTYPE *GetPipelineStackSize )(
  10312. ID3D12StateObjectProperties * This);
  10313. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, SetPipelineStackSize)
  10314. void ( STDMETHODCALLTYPE *SetPipelineStackSize )(
  10315. ID3D12StateObjectProperties * This,
  10316. UINT64 PipelineStackSizeInBytes);
  10317. END_INTERFACE
  10318. } ID3D12StateObjectPropertiesVtbl;
  10319. interface ID3D12StateObjectProperties
  10320. {
  10321. CONST_VTBL struct ID3D12StateObjectPropertiesVtbl *lpVtbl;
  10322. };
  10323. #ifdef COBJMACROS
  10324. #define ID3D12StateObjectProperties_QueryInterface(This,riid,ppvObject) \
  10325. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10326. #define ID3D12StateObjectProperties_AddRef(This) \
  10327. ( (This)->lpVtbl -> AddRef(This) )
  10328. #define ID3D12StateObjectProperties_Release(This) \
  10329. ( (This)->lpVtbl -> Release(This) )
  10330. #define ID3D12StateObjectProperties_GetShaderIdentifier(This,pExportName) \
  10331. ( (This)->lpVtbl -> GetShaderIdentifier(This,pExportName) )
  10332. #define ID3D12StateObjectProperties_GetShaderStackSize(This,pExportName) \
  10333. ( (This)->lpVtbl -> GetShaderStackSize(This,pExportName) )
  10334. #define ID3D12StateObjectProperties_GetPipelineStackSize(This) \
  10335. ( (This)->lpVtbl -> GetPipelineStackSize(This) )
  10336. #define ID3D12StateObjectProperties_SetPipelineStackSize(This,PipelineStackSizeInBytes) \
  10337. ( (This)->lpVtbl -> SetPipelineStackSize(This,PipelineStackSizeInBytes) )
  10338. #endif /* COBJMACROS */
  10339. #endif /* C style interface */
  10340. #endif /* __ID3D12StateObjectProperties_INTERFACE_DEFINED__ */
  10341. /* interface __MIDL_itf_d3d12_0000_0034 */
  10342. /* [local] */
  10343. typedef struct D3D12_PROGRAM_IDENTIFIER
  10344. {
  10345. UINT64 OpaqueData[ 4 ];
  10346. } D3D12_PROGRAM_IDENTIFIER;
  10347. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0034_v0_0_c_ifspec;
  10348. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0034_v0_0_s_ifspec;
  10349. #ifndef __ID3D12StateObjectProperties1_INTERFACE_DEFINED__
  10350. #define __ID3D12StateObjectProperties1_INTERFACE_DEFINED__
  10351. /* interface ID3D12StateObjectProperties1 */
  10352. /* [unique][local][object][uuid] */
  10353. EXTERN_C const IID IID_ID3D12StateObjectProperties1;
  10354. #if defined(__cplusplus) && !defined(CINTERFACE)
  10355. MIDL_INTERFACE("460caac7-1d24-446a-a184-ca67db494138")
  10356. ID3D12StateObjectProperties1 : public ID3D12StateObjectProperties
  10357. {
  10358. public:
  10359. #if defined(_MSC_VER) || !defined(_WIN32)
  10360. virtual D3D12_PROGRAM_IDENTIFIER STDMETHODCALLTYPE GetProgramIdentifier(
  10361. LPCWSTR pProgramName) = 0;
  10362. #else
  10363. virtual D3D12_PROGRAM_IDENTIFIER *STDMETHODCALLTYPE GetProgramIdentifier(
  10364. D3D12_PROGRAM_IDENTIFIER * RetVal,
  10365. LPCWSTR pProgramName) = 0;
  10366. #endif
  10367. };
  10368. #else /* C style interface */
  10369. typedef struct ID3D12StateObjectProperties1Vtbl
  10370. {
  10371. BEGIN_INTERFACE
  10372. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10373. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10374. ID3D12StateObjectProperties1 * This,
  10375. REFIID riid,
  10376. _COM_Outptr_ void **ppvObject);
  10377. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10378. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10379. ID3D12StateObjectProperties1 * This);
  10380. DECLSPEC_XFGVIRT(IUnknown, Release)
  10381. ULONG ( STDMETHODCALLTYPE *Release )(
  10382. ID3D12StateObjectProperties1 * This);
  10383. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderIdentifier)
  10384. void *( STDMETHODCALLTYPE *GetShaderIdentifier )(
  10385. ID3D12StateObjectProperties1 * This,
  10386. _In_ LPCWSTR pExportName);
  10387. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderStackSize)
  10388. UINT64 ( STDMETHODCALLTYPE *GetShaderStackSize )(
  10389. ID3D12StateObjectProperties1 * This,
  10390. _In_ LPCWSTR pExportName);
  10391. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetPipelineStackSize)
  10392. UINT64 ( STDMETHODCALLTYPE *GetPipelineStackSize )(
  10393. ID3D12StateObjectProperties1 * This);
  10394. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, SetPipelineStackSize)
  10395. void ( STDMETHODCALLTYPE *SetPipelineStackSize )(
  10396. ID3D12StateObjectProperties1 * This,
  10397. UINT64 PipelineStackSizeInBytes);
  10398. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties1, GetProgramIdentifier)
  10399. #if !defined(_WIN32)
  10400. D3D12_PROGRAM_IDENTIFIER ( STDMETHODCALLTYPE *GetProgramIdentifier )(
  10401. ID3D12StateObjectProperties1 * This,
  10402. LPCWSTR pProgramName);
  10403. #else
  10404. D3D12_PROGRAM_IDENTIFIER *( STDMETHODCALLTYPE *GetProgramIdentifier )(
  10405. ID3D12StateObjectProperties1 * This,
  10406. D3D12_PROGRAM_IDENTIFIER * RetVal,
  10407. LPCWSTR pProgramName);
  10408. #endif
  10409. END_INTERFACE
  10410. } ID3D12StateObjectProperties1Vtbl;
  10411. interface ID3D12StateObjectProperties1
  10412. {
  10413. CONST_VTBL struct ID3D12StateObjectProperties1Vtbl *lpVtbl;
  10414. };
  10415. #ifdef COBJMACROS
  10416. #define ID3D12StateObjectProperties1_QueryInterface(This,riid,ppvObject) \
  10417. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10418. #define ID3D12StateObjectProperties1_AddRef(This) \
  10419. ( (This)->lpVtbl -> AddRef(This) )
  10420. #define ID3D12StateObjectProperties1_Release(This) \
  10421. ( (This)->lpVtbl -> Release(This) )
  10422. #define ID3D12StateObjectProperties1_GetShaderIdentifier(This,pExportName) \
  10423. ( (This)->lpVtbl -> GetShaderIdentifier(This,pExportName) )
  10424. #define ID3D12StateObjectProperties1_GetShaderStackSize(This,pExportName) \
  10425. ( (This)->lpVtbl -> GetShaderStackSize(This,pExportName) )
  10426. #define ID3D12StateObjectProperties1_GetPipelineStackSize(This) \
  10427. ( (This)->lpVtbl -> GetPipelineStackSize(This) )
  10428. #define ID3D12StateObjectProperties1_SetPipelineStackSize(This,PipelineStackSizeInBytes) \
  10429. ( (This)->lpVtbl -> SetPipelineStackSize(This,PipelineStackSizeInBytes) )
  10430. #if !defined(_WIN32)
  10431. #define ID3D12StateObjectProperties1_GetProgramIdentifier(This,pProgramName) \
  10432. ( (This)->lpVtbl -> GetProgramIdentifier(This,pProgramName) )
  10433. #else
  10434. #define ID3D12StateObjectProperties1_GetProgramIdentifier(This,RetVal,pProgramName) \
  10435. ( (This)->lpVtbl -> GetProgramIdentifier(This,RetVal,pProgramName) )
  10436. #endif
  10437. #endif /* COBJMACROS */
  10438. #endif /* C style interface */
  10439. #endif /* __ID3D12StateObjectProperties1_INTERFACE_DEFINED__ */
  10440. /* interface __MIDL_itf_d3d12_0000_0035 */
  10441. /* [local] */
  10442. typedef struct D3D12_NODE_ID
  10443. {
  10444. LPCWSTR Name;
  10445. UINT ArrayIndex;
  10446. } D3D12_NODE_ID;
  10447. typedef struct D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS
  10448. {
  10449. UINT64 MinSizeInBytes;
  10450. UINT64 MaxSizeInBytes;
  10451. UINT SizeGranularityInBytes;
  10452. } D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS;
  10453. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0035_v0_0_c_ifspec;
  10454. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0035_v0_0_s_ifspec;
  10455. #ifndef __ID3D12WorkGraphProperties_INTERFACE_DEFINED__
  10456. #define __ID3D12WorkGraphProperties_INTERFACE_DEFINED__
  10457. /* interface ID3D12WorkGraphProperties */
  10458. /* [unique][local][object][uuid] */
  10459. EXTERN_C const IID IID_ID3D12WorkGraphProperties;
  10460. #if defined(__cplusplus) && !defined(CINTERFACE)
  10461. MIDL_INTERFACE("065acf71-f863-4b89-82f4-02e4d5886757")
  10462. ID3D12WorkGraphProperties : public IUnknown
  10463. {
  10464. public:
  10465. virtual UINT STDMETHODCALLTYPE GetNumWorkGraphs( void) = 0;
  10466. virtual LPCWSTR STDMETHODCALLTYPE GetProgramName(
  10467. UINT WorkGraphIndex) = 0;
  10468. virtual UINT STDMETHODCALLTYPE GetWorkGraphIndex(
  10469. LPCWSTR pProgramName) = 0;
  10470. virtual UINT STDMETHODCALLTYPE GetNumNodes(
  10471. UINT WorkGraphIndex) = 0;
  10472. #if defined(_MSC_VER) || !defined(_WIN32)
  10473. virtual D3D12_NODE_ID STDMETHODCALLTYPE GetNodeID(
  10474. UINT WorkGraphIndex,
  10475. UINT NodeIndex) = 0;
  10476. #else
  10477. virtual D3D12_NODE_ID *STDMETHODCALLTYPE GetNodeID(
  10478. D3D12_NODE_ID * RetVal,
  10479. UINT WorkGraphIndex,
  10480. UINT NodeIndex) = 0;
  10481. #endif
  10482. virtual UINT STDMETHODCALLTYPE GetNodeIndex(
  10483. UINT WorkGraphIndex,
  10484. D3D12_NODE_ID NodeID) = 0;
  10485. virtual UINT STDMETHODCALLTYPE GetNodeLocalRootArgumentsTableIndex(
  10486. UINT WorkGraphIndex,
  10487. UINT NodeIndex) = 0;
  10488. virtual UINT STDMETHODCALLTYPE GetNumEntrypoints(
  10489. UINT WorkGraphIndex) = 0;
  10490. #if defined(_MSC_VER) || !defined(_WIN32)
  10491. virtual D3D12_NODE_ID STDMETHODCALLTYPE GetEntrypointID(
  10492. UINT WorkGraphIndex,
  10493. UINT EntrypointIndex) = 0;
  10494. #else
  10495. virtual D3D12_NODE_ID *STDMETHODCALLTYPE GetEntrypointID(
  10496. D3D12_NODE_ID * RetVal,
  10497. UINT WorkGraphIndex,
  10498. UINT EntrypointIndex) = 0;
  10499. #endif
  10500. virtual UINT STDMETHODCALLTYPE GetEntrypointIndex(
  10501. UINT WorkGraphIndex,
  10502. D3D12_NODE_ID NodeID) = 0;
  10503. virtual UINT STDMETHODCALLTYPE GetEntrypointRecordSizeInBytes(
  10504. UINT WorkGraphIndex,
  10505. UINT EntrypointIndex) = 0;
  10506. virtual void STDMETHODCALLTYPE GetWorkGraphMemoryRequirements(
  10507. UINT WorkGraphIndex,
  10508. _Out_ D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS *pWorkGraphMemoryRequirements) = 0;
  10509. virtual UINT STDMETHODCALLTYPE GetEntrypointRecordAlignmentInBytes(
  10510. UINT WorkGraphIndex,
  10511. UINT EntrypointIndex) = 0;
  10512. };
  10513. #else /* C style interface */
  10514. typedef struct ID3D12WorkGraphPropertiesVtbl
  10515. {
  10516. BEGIN_INTERFACE
  10517. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10518. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10519. ID3D12WorkGraphProperties * This,
  10520. REFIID riid,
  10521. _COM_Outptr_ void **ppvObject);
  10522. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10523. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10524. ID3D12WorkGraphProperties * This);
  10525. DECLSPEC_XFGVIRT(IUnknown, Release)
  10526. ULONG ( STDMETHODCALLTYPE *Release )(
  10527. ID3D12WorkGraphProperties * This);
  10528. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNumWorkGraphs)
  10529. UINT ( STDMETHODCALLTYPE *GetNumWorkGraphs )(
  10530. ID3D12WorkGraphProperties * This);
  10531. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetProgramName)
  10532. LPCWSTR ( STDMETHODCALLTYPE *GetProgramName )(
  10533. ID3D12WorkGraphProperties * This,
  10534. UINT WorkGraphIndex);
  10535. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetWorkGraphIndex)
  10536. UINT ( STDMETHODCALLTYPE *GetWorkGraphIndex )(
  10537. ID3D12WorkGraphProperties * This,
  10538. LPCWSTR pProgramName);
  10539. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNumNodes)
  10540. UINT ( STDMETHODCALLTYPE *GetNumNodes )(
  10541. ID3D12WorkGraphProperties * This,
  10542. UINT WorkGraphIndex);
  10543. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNodeID)
  10544. #if !defined(_WIN32)
  10545. D3D12_NODE_ID ( STDMETHODCALLTYPE *GetNodeID )(
  10546. ID3D12WorkGraphProperties * This,
  10547. UINT WorkGraphIndex,
  10548. UINT NodeIndex);
  10549. #else
  10550. D3D12_NODE_ID *( STDMETHODCALLTYPE *GetNodeID )(
  10551. ID3D12WorkGraphProperties * This,
  10552. D3D12_NODE_ID * RetVal,
  10553. UINT WorkGraphIndex,
  10554. UINT NodeIndex);
  10555. #endif
  10556. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNodeIndex)
  10557. UINT ( STDMETHODCALLTYPE *GetNodeIndex )(
  10558. ID3D12WorkGraphProperties * This,
  10559. UINT WorkGraphIndex,
  10560. D3D12_NODE_ID NodeID);
  10561. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNodeLocalRootArgumentsTableIndex)
  10562. UINT ( STDMETHODCALLTYPE *GetNodeLocalRootArgumentsTableIndex )(
  10563. ID3D12WorkGraphProperties * This,
  10564. UINT WorkGraphIndex,
  10565. UINT NodeIndex);
  10566. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNumEntrypoints)
  10567. UINT ( STDMETHODCALLTYPE *GetNumEntrypoints )(
  10568. ID3D12WorkGraphProperties * This,
  10569. UINT WorkGraphIndex);
  10570. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointID)
  10571. #if !defined(_WIN32)
  10572. D3D12_NODE_ID ( STDMETHODCALLTYPE *GetEntrypointID )(
  10573. ID3D12WorkGraphProperties * This,
  10574. UINT WorkGraphIndex,
  10575. UINT EntrypointIndex);
  10576. #else
  10577. D3D12_NODE_ID *( STDMETHODCALLTYPE *GetEntrypointID )(
  10578. ID3D12WorkGraphProperties * This,
  10579. D3D12_NODE_ID * RetVal,
  10580. UINT WorkGraphIndex,
  10581. UINT EntrypointIndex);
  10582. #endif
  10583. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointIndex)
  10584. UINT ( STDMETHODCALLTYPE *GetEntrypointIndex )(
  10585. ID3D12WorkGraphProperties * This,
  10586. UINT WorkGraphIndex,
  10587. D3D12_NODE_ID NodeID);
  10588. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointRecordSizeInBytes)
  10589. UINT ( STDMETHODCALLTYPE *GetEntrypointRecordSizeInBytes )(
  10590. ID3D12WorkGraphProperties * This,
  10591. UINT WorkGraphIndex,
  10592. UINT EntrypointIndex);
  10593. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetWorkGraphMemoryRequirements)
  10594. void ( STDMETHODCALLTYPE *GetWorkGraphMemoryRequirements )(
  10595. ID3D12WorkGraphProperties * This,
  10596. UINT WorkGraphIndex,
  10597. _Out_ D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS *pWorkGraphMemoryRequirements);
  10598. DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointRecordAlignmentInBytes)
  10599. UINT ( STDMETHODCALLTYPE *GetEntrypointRecordAlignmentInBytes )(
  10600. ID3D12WorkGraphProperties * This,
  10601. UINT WorkGraphIndex,
  10602. UINT EntrypointIndex);
  10603. END_INTERFACE
  10604. } ID3D12WorkGraphPropertiesVtbl;
  10605. interface ID3D12WorkGraphProperties
  10606. {
  10607. CONST_VTBL struct ID3D12WorkGraphPropertiesVtbl *lpVtbl;
  10608. };
  10609. #ifdef COBJMACROS
  10610. #define ID3D12WorkGraphProperties_QueryInterface(This,riid,ppvObject) \
  10611. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10612. #define ID3D12WorkGraphProperties_AddRef(This) \
  10613. ( (This)->lpVtbl -> AddRef(This) )
  10614. #define ID3D12WorkGraphProperties_Release(This) \
  10615. ( (This)->lpVtbl -> Release(This) )
  10616. #define ID3D12WorkGraphProperties_GetNumWorkGraphs(This) \
  10617. ( (This)->lpVtbl -> GetNumWorkGraphs(This) )
  10618. #define ID3D12WorkGraphProperties_GetProgramName(This,WorkGraphIndex) \
  10619. ( (This)->lpVtbl -> GetProgramName(This,WorkGraphIndex) )
  10620. #define ID3D12WorkGraphProperties_GetWorkGraphIndex(This,pProgramName) \
  10621. ( (This)->lpVtbl -> GetWorkGraphIndex(This,pProgramName) )
  10622. #define ID3D12WorkGraphProperties_GetNumNodes(This,WorkGraphIndex) \
  10623. ( (This)->lpVtbl -> GetNumNodes(This,WorkGraphIndex) )
  10624. #if !defined(_WIN32)
  10625. #define ID3D12WorkGraphProperties_GetNodeID(This,WorkGraphIndex,NodeIndex) \
  10626. ( (This)->lpVtbl -> GetNodeID(This,WorkGraphIndex,NodeIndex) )
  10627. #else
  10628. #define ID3D12WorkGraphProperties_GetNodeID(This,RetVal,WorkGraphIndex,NodeIndex) \
  10629. ( (This)->lpVtbl -> GetNodeID(This,RetVal,WorkGraphIndex,NodeIndex) )
  10630. #endif
  10631. #define ID3D12WorkGraphProperties_GetNodeIndex(This,WorkGraphIndex,NodeID) \
  10632. ( (This)->lpVtbl -> GetNodeIndex(This,WorkGraphIndex,NodeID) )
  10633. #define ID3D12WorkGraphProperties_GetNodeLocalRootArgumentsTableIndex(This,WorkGraphIndex,NodeIndex) \
  10634. ( (This)->lpVtbl -> GetNodeLocalRootArgumentsTableIndex(This,WorkGraphIndex,NodeIndex) )
  10635. #define ID3D12WorkGraphProperties_GetNumEntrypoints(This,WorkGraphIndex) \
  10636. ( (This)->lpVtbl -> GetNumEntrypoints(This,WorkGraphIndex) )
  10637. #if !defined(_WIN32)
  10638. #define ID3D12WorkGraphProperties_GetEntrypointID(This,WorkGraphIndex,EntrypointIndex) \
  10639. ( (This)->lpVtbl -> GetEntrypointID(This,WorkGraphIndex,EntrypointIndex) )
  10640. #else
  10641. #define ID3D12WorkGraphProperties_GetEntrypointID(This,RetVal,WorkGraphIndex,EntrypointIndex) \
  10642. ( (This)->lpVtbl -> GetEntrypointID(This,RetVal,WorkGraphIndex,EntrypointIndex) )
  10643. #endif
  10644. #define ID3D12WorkGraphProperties_GetEntrypointIndex(This,WorkGraphIndex,NodeID) \
  10645. ( (This)->lpVtbl -> GetEntrypointIndex(This,WorkGraphIndex,NodeID) )
  10646. #define ID3D12WorkGraphProperties_GetEntrypointRecordSizeInBytes(This,WorkGraphIndex,EntrypointIndex) \
  10647. ( (This)->lpVtbl -> GetEntrypointRecordSizeInBytes(This,WorkGraphIndex,EntrypointIndex) )
  10648. #define ID3D12WorkGraphProperties_GetWorkGraphMemoryRequirements(This,WorkGraphIndex,pWorkGraphMemoryRequirements) \
  10649. ( (This)->lpVtbl -> GetWorkGraphMemoryRequirements(This,WorkGraphIndex,pWorkGraphMemoryRequirements) )
  10650. #define ID3D12WorkGraphProperties_GetEntrypointRecordAlignmentInBytes(This,WorkGraphIndex,EntrypointIndex) \
  10651. ( (This)->lpVtbl -> GetEntrypointRecordAlignmentInBytes(This,WorkGraphIndex,EntrypointIndex) )
  10652. #endif /* COBJMACROS */
  10653. #endif /* C style interface */
  10654. #endif /* __ID3D12WorkGraphProperties_INTERFACE_DEFINED__ */
  10655. /* interface __MIDL_itf_d3d12_0000_0036 */
  10656. /* [local] */
  10657. typedef
  10658. enum D3D12_STATE_SUBOBJECT_TYPE
  10659. {
  10660. D3D12_STATE_SUBOBJECT_TYPE_STATE_OBJECT_CONFIG = 0,
  10661. D3D12_STATE_SUBOBJECT_TYPE_GLOBAL_ROOT_SIGNATURE = 1,
  10662. D3D12_STATE_SUBOBJECT_TYPE_LOCAL_ROOT_SIGNATURE = 2,
  10663. D3D12_STATE_SUBOBJECT_TYPE_NODE_MASK = 3,
  10664. D3D12_STATE_SUBOBJECT_TYPE_DXIL_LIBRARY = 5,
  10665. D3D12_STATE_SUBOBJECT_TYPE_EXISTING_COLLECTION = 6,
  10666. D3D12_STATE_SUBOBJECT_TYPE_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 7,
  10667. D3D12_STATE_SUBOBJECT_TYPE_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 8,
  10668. D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_SHADER_CONFIG = 9,
  10669. D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG = 10,
  10670. D3D12_STATE_SUBOBJECT_TYPE_HIT_GROUP = 11,
  10671. D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1 = 12,
  10672. D3D12_STATE_SUBOBJECT_TYPE_WORK_GRAPH = 13,
  10673. D3D12_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT = 14,
  10674. D3D12_STATE_SUBOBJECT_TYPE_BLEND = 15,
  10675. D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_MASK = 16,
  10676. D3D12_STATE_SUBOBJECT_TYPE_RASTERIZER = 17,
  10677. D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL = 18,
  10678. D3D12_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT = 19,
  10679. D3D12_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE = 20,
  10680. D3D12_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY = 21,
  10681. D3D12_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS = 22,
  10682. D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT = 23,
  10683. D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_DESC = 24,
  10684. D3D12_STATE_SUBOBJECT_TYPE_FLAGS = 26,
  10685. D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 = 27,
  10686. D3D12_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING = 28,
  10687. D3D12_STATE_SUBOBJECT_TYPE_GENERIC_PROGRAM = 29,
  10688. D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 = 30,
  10689. D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID = ( D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 + 1 )
  10690. } D3D12_STATE_SUBOBJECT_TYPE;
  10691. typedef struct D3D12_STATE_SUBOBJECT
  10692. {
  10693. D3D12_STATE_SUBOBJECT_TYPE Type;
  10694. const void *pDesc;
  10695. } D3D12_STATE_SUBOBJECT;
  10696. typedef
  10697. enum D3D12_STATE_OBJECT_FLAGS
  10698. {
  10699. D3D12_STATE_OBJECT_FLAG_NONE = 0,
  10700. D3D12_STATE_OBJECT_FLAG_ALLOW_LOCAL_DEPENDENCIES_ON_EXTERNAL_DEFINITIONS = 0x1,
  10701. D3D12_STATE_OBJECT_FLAG_ALLOW_EXTERNAL_DEPENDENCIES_ON_LOCAL_DEFINITIONS = 0x2,
  10702. D3D12_STATE_OBJECT_FLAG_ALLOW_STATE_OBJECT_ADDITIONS = 0x4
  10703. } D3D12_STATE_OBJECT_FLAGS;
  10704. DEFINE_ENUM_FLAG_OPERATORS( D3D12_STATE_OBJECT_FLAGS )
  10705. typedef struct D3D12_STATE_OBJECT_CONFIG
  10706. {
  10707. D3D12_STATE_OBJECT_FLAGS Flags;
  10708. } D3D12_STATE_OBJECT_CONFIG;
  10709. typedef struct D3D12_GLOBAL_ROOT_SIGNATURE
  10710. {
  10711. ID3D12RootSignature *pGlobalRootSignature;
  10712. } D3D12_GLOBAL_ROOT_SIGNATURE;
  10713. typedef struct D3D12_LOCAL_ROOT_SIGNATURE
  10714. {
  10715. ID3D12RootSignature *pLocalRootSignature;
  10716. } D3D12_LOCAL_ROOT_SIGNATURE;
  10717. typedef struct D3D12_NODE_MASK
  10718. {
  10719. UINT NodeMask;
  10720. } D3D12_NODE_MASK;
  10721. typedef struct D3D12_SAMPLE_MASK
  10722. {
  10723. UINT SampleMask;
  10724. } D3D12_SAMPLE_MASK;
  10725. typedef struct D3D12_IB_STRIP_CUT_VALUE
  10726. {
  10727. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IndexBufferStripCutValue;
  10728. } D3D12_IB_STRIP_CUT_VALUE;
  10729. typedef struct D3D12_PRIMITIVE_TOPOLOGY_DESC
  10730. {
  10731. D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopology;
  10732. } D3D12_PRIMITIVE_TOPOLOGY_DESC;
  10733. typedef struct D3D12_DEPTH_STENCIL_FORMAT
  10734. {
  10735. DXGI_FORMAT DepthStencilFormat;
  10736. } D3D12_DEPTH_STENCIL_FORMAT;
  10737. typedef
  10738. enum D3D12_EXPORT_FLAGS
  10739. {
  10740. D3D12_EXPORT_FLAG_NONE = 0
  10741. } D3D12_EXPORT_FLAGS;
  10742. DEFINE_ENUM_FLAG_OPERATORS( D3D12_EXPORT_FLAGS )
  10743. typedef struct D3D12_EXPORT_DESC
  10744. {
  10745. LPCWSTR Name;
  10746. _In_opt_ LPCWSTR ExportToRename;
  10747. D3D12_EXPORT_FLAGS Flags;
  10748. } D3D12_EXPORT_DESC;
  10749. typedef struct D3D12_DXIL_LIBRARY_DESC
  10750. {
  10751. D3D12_SHADER_BYTECODE DXILLibrary;
  10752. UINT NumExports;
  10753. _In_reads_(NumExports) const D3D12_EXPORT_DESC *pExports;
  10754. } D3D12_DXIL_LIBRARY_DESC;
  10755. typedef struct D3D12_EXISTING_COLLECTION_DESC
  10756. {
  10757. ID3D12StateObject *pExistingCollection;
  10758. UINT NumExports;
  10759. _In_reads_(NumExports) const D3D12_EXPORT_DESC *pExports;
  10760. } D3D12_EXISTING_COLLECTION_DESC;
  10761. typedef struct D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION
  10762. {
  10763. const D3D12_STATE_SUBOBJECT *pSubobjectToAssociate;
  10764. UINT NumExports;
  10765. _In_reads_(NumExports) LPCWSTR *pExports;
  10766. } D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION;
  10767. typedef struct D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION
  10768. {
  10769. LPCWSTR SubobjectToAssociate;
  10770. UINT NumExports;
  10771. _In_reads_(NumExports) LPCWSTR *pExports;
  10772. } D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION;
  10773. typedef
  10774. enum D3D12_HIT_GROUP_TYPE
  10775. {
  10776. D3D12_HIT_GROUP_TYPE_TRIANGLES = 0,
  10777. D3D12_HIT_GROUP_TYPE_PROCEDURAL_PRIMITIVE = 0x1
  10778. } D3D12_HIT_GROUP_TYPE;
  10779. typedef struct D3D12_HIT_GROUP_DESC
  10780. {
  10781. LPCWSTR HitGroupExport;
  10782. D3D12_HIT_GROUP_TYPE Type;
  10783. _In_opt_ LPCWSTR AnyHitShaderImport;
  10784. _In_opt_ LPCWSTR ClosestHitShaderImport;
  10785. _In_opt_ LPCWSTR IntersectionShaderImport;
  10786. } D3D12_HIT_GROUP_DESC;
  10787. typedef struct D3D12_RAYTRACING_SHADER_CONFIG
  10788. {
  10789. UINT MaxPayloadSizeInBytes;
  10790. UINT MaxAttributeSizeInBytes;
  10791. } D3D12_RAYTRACING_SHADER_CONFIG;
  10792. typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG
  10793. {
  10794. UINT MaxTraceRecursionDepth;
  10795. } D3D12_RAYTRACING_PIPELINE_CONFIG;
  10796. typedef
  10797. enum D3D12_RAYTRACING_PIPELINE_FLAGS
  10798. {
  10799. D3D12_RAYTRACING_PIPELINE_FLAG_NONE = 0,
  10800. D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_TRIANGLES = 0x100,
  10801. D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200,
  10802. D3D12_RAYTRACING_PIPELINE_FLAG_ALLOW_OPACITY_MICROMAPS = 0x400
  10803. } D3D12_RAYTRACING_PIPELINE_FLAGS;
  10804. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_PIPELINE_FLAGS )
  10805. typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG1
  10806. {
  10807. UINT MaxTraceRecursionDepth;
  10808. D3D12_RAYTRACING_PIPELINE_FLAGS Flags;
  10809. } D3D12_RAYTRACING_PIPELINE_CONFIG1;
  10810. typedef struct D3D12_NODE_OUTPUT_OVERRIDES
  10811. {
  10812. UINT OutputIndex;
  10813. _In_opt_ const D3D12_NODE_ID *pNewName;
  10814. _In_opt_ const BOOL *pAllowSparseNodes;
  10815. _In_opt_ const UINT *pMaxRecords;
  10816. _In_opt_ const UINT *pMaxRecordsSharedWithOutputIndex;
  10817. } D3D12_NODE_OUTPUT_OVERRIDES;
  10818. typedef struct D3D12_BROADCASTING_LAUNCH_OVERRIDES
  10819. {
  10820. _In_opt_ const UINT *pLocalRootArgumentsTableIndex;
  10821. _In_opt_ const BOOL *pProgramEntry;
  10822. _In_opt_ const D3D12_NODE_ID *pNewName;
  10823. _In_opt_ const D3D12_NODE_ID *pShareInputOf;
  10824. _In_reads_opt_(3) const UINT *pDispatchGrid;
  10825. _In_reads_opt_(3) const UINT *pMaxDispatchGrid;
  10826. UINT NumOutputOverrides;
  10827. _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides;
  10828. } D3D12_BROADCASTING_LAUNCH_OVERRIDES;
  10829. typedef struct D3D12_COALESCING_LAUNCH_OVERRIDES
  10830. {
  10831. _In_opt_ const UINT *pLocalRootArgumentsTableIndex;
  10832. _In_opt_ const BOOL *pProgramEntry;
  10833. _In_opt_ const D3D12_NODE_ID *pNewName;
  10834. _In_opt_ const D3D12_NODE_ID *pShareInputOf;
  10835. UINT NumOutputOverrides;
  10836. _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides;
  10837. } D3D12_COALESCING_LAUNCH_OVERRIDES;
  10838. typedef struct D3D12_THREAD_LAUNCH_OVERRIDES
  10839. {
  10840. _In_opt_ const UINT *pLocalRootArgumentsTableIndex;
  10841. _In_opt_ const BOOL *pProgramEntry;
  10842. _In_opt_ const D3D12_NODE_ID *pNewName;
  10843. _In_opt_ const D3D12_NODE_ID *pShareInputOf;
  10844. UINT NumOutputOverrides;
  10845. _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides;
  10846. } D3D12_THREAD_LAUNCH_OVERRIDES;
  10847. typedef struct D3D12_COMMON_COMPUTE_NODE_OVERRIDES
  10848. {
  10849. _In_opt_ const UINT *pLocalRootArgumentsTableIndex;
  10850. _In_opt_ const BOOL *pProgramEntry;
  10851. _In_opt_ const D3D12_NODE_ID *pNewName;
  10852. _In_opt_ const D3D12_NODE_ID *pShareInputOf;
  10853. UINT NumOutputOverrides;
  10854. _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides;
  10855. } D3D12_COMMON_COMPUTE_NODE_OVERRIDES;
  10856. typedef
  10857. enum D3D12_NODE_OVERRIDES_TYPE
  10858. {
  10859. D3D12_NODE_OVERRIDES_TYPE_NONE = 0,
  10860. D3D12_NODE_OVERRIDES_TYPE_BROADCASTING_LAUNCH = 1,
  10861. D3D12_NODE_OVERRIDES_TYPE_COALESCING_LAUNCH = 2,
  10862. D3D12_NODE_OVERRIDES_TYPE_THREAD_LAUNCH = 3,
  10863. D3D12_NODE_OVERRIDES_TYPE_COMMON_COMPUTE = 4
  10864. } D3D12_NODE_OVERRIDES_TYPE;
  10865. typedef struct D3D12_SHADER_NODE
  10866. {
  10867. LPCWSTR Shader;
  10868. D3D12_NODE_OVERRIDES_TYPE OverridesType;
  10869. union
  10870. {
  10871. const D3D12_BROADCASTING_LAUNCH_OVERRIDES *pBroadcastingLaunchOverrides;
  10872. const D3D12_COALESCING_LAUNCH_OVERRIDES *pCoalescingLaunchOverrides;
  10873. const D3D12_THREAD_LAUNCH_OVERRIDES *pThreadLaunchOverrides;
  10874. const D3D12_COMMON_COMPUTE_NODE_OVERRIDES *pCommonComputeNodeOverrides;
  10875. } ;
  10876. } D3D12_SHADER_NODE;
  10877. typedef
  10878. enum D3D12_NODE_TYPE
  10879. {
  10880. D3D12_NODE_TYPE_SHADER = 0
  10881. } D3D12_NODE_TYPE;
  10882. typedef struct D3D12_NODE
  10883. {
  10884. D3D12_NODE_TYPE NodeType;
  10885. union
  10886. {
  10887. D3D12_SHADER_NODE Shader;
  10888. } ;
  10889. } D3D12_NODE;
  10890. typedef
  10891. enum D3D12_WORK_GRAPH_FLAGS
  10892. {
  10893. D3D12_WORK_GRAPH_FLAG_NONE = 0,
  10894. D3D12_WORK_GRAPH_FLAG_INCLUDE_ALL_AVAILABLE_NODES = 0x1
  10895. } D3D12_WORK_GRAPH_FLAGS;
  10896. DEFINE_ENUM_FLAG_OPERATORS( D3D12_WORK_GRAPH_FLAGS )
  10897. typedef struct D3D12_WORK_GRAPH_DESC
  10898. {
  10899. LPCWSTR ProgramName;
  10900. D3D12_WORK_GRAPH_FLAGS Flags;
  10901. UINT NumEntrypoints;
  10902. _In_reads_opt_(NumEntrypoints) const D3D12_NODE_ID *pEntrypoints;
  10903. UINT NumExplicitlyDefinedNodes;
  10904. _In_reads_opt_(NumExplicitlyDefinedNodes) const D3D12_NODE *pExplicitlyDefinedNodes;
  10905. } D3D12_WORK_GRAPH_DESC;
  10906. typedef struct D3D12_GENERIC_PROGRAM_DESC
  10907. {
  10908. LPCWSTR ProgramName;
  10909. UINT NumExports;
  10910. _In_reads_(NumExports) LPCWSTR *pExports;
  10911. UINT NumSubobjects;
  10912. _In_reads_opt_(NumSubobjects) const D3D12_STATE_SUBOBJECT *const *ppSubobjects;
  10913. } D3D12_GENERIC_PROGRAM_DESC;
  10914. typedef
  10915. enum D3D12_STATE_OBJECT_TYPE
  10916. {
  10917. D3D12_STATE_OBJECT_TYPE_COLLECTION = 0,
  10918. D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE = 3,
  10919. D3D12_STATE_OBJECT_TYPE_EXECUTABLE = 4
  10920. } D3D12_STATE_OBJECT_TYPE;
  10921. typedef struct D3D12_STATE_OBJECT_DESC
  10922. {
  10923. D3D12_STATE_OBJECT_TYPE Type;
  10924. UINT NumSubobjects;
  10925. _In_reads_(NumSubobjects) const D3D12_STATE_SUBOBJECT *pSubobjects;
  10926. } D3D12_STATE_OBJECT_DESC;
  10927. typedef
  10928. enum D3D12_RAYTRACING_GEOMETRY_FLAGS
  10929. {
  10930. D3D12_RAYTRACING_GEOMETRY_FLAG_NONE = 0,
  10931. D3D12_RAYTRACING_GEOMETRY_FLAG_OPAQUE = 0x1,
  10932. D3D12_RAYTRACING_GEOMETRY_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION = 0x2
  10933. } D3D12_RAYTRACING_GEOMETRY_FLAGS;
  10934. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_GEOMETRY_FLAGS )
  10935. typedef
  10936. enum D3D12_RAYTRACING_GEOMETRY_TYPE
  10937. {
  10938. D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES = 0,
  10939. D3D12_RAYTRACING_GEOMETRY_TYPE_PROCEDURAL_PRIMITIVE_AABBS = ( D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES + 1 ) ,
  10940. D3D12_RAYTRACING_GEOMETRY_TYPE_OMM_TRIANGLES = ( D3D12_RAYTRACING_GEOMETRY_TYPE_PROCEDURAL_PRIMITIVE_AABBS + 1 )
  10941. } D3D12_RAYTRACING_GEOMETRY_TYPE;
  10942. typedef
  10943. enum D3D12_RAYTRACING_INSTANCE_FLAGS
  10944. {
  10945. D3D12_RAYTRACING_INSTANCE_FLAG_NONE = 0,
  10946. D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_CULL_DISABLE = 0x1,
  10947. D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_FRONT_COUNTERCLOCKWISE = 0x2,
  10948. D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_OPAQUE = 0x4,
  10949. D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_NON_OPAQUE = 0x8,
  10950. D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_OMM_2_STATE = 0x10,
  10951. D3D12_RAYTRACING_INSTANCE_FLAG_DISABLE_OMMS = 0x20
  10952. } D3D12_RAYTRACING_INSTANCE_FLAGS;
  10953. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_INSTANCE_FLAGS )
  10954. typedef struct D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE
  10955. {
  10956. D3D12_GPU_VIRTUAL_ADDRESS StartAddress;
  10957. UINT64 StrideInBytes;
  10958. } D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE;
  10959. typedef struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE
  10960. {
  10961. D3D12_GPU_VIRTUAL_ADDRESS StartAddress;
  10962. UINT64 SizeInBytes;
  10963. } D3D12_GPU_VIRTUAL_ADDRESS_RANGE;
  10964. typedef struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE
  10965. {
  10966. D3D12_GPU_VIRTUAL_ADDRESS StartAddress;
  10967. UINT64 SizeInBytes;
  10968. UINT64 StrideInBytes;
  10969. } D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE;
  10970. typedef struct D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC
  10971. {
  10972. D3D12_GPU_VIRTUAL_ADDRESS Transform3x4;
  10973. DXGI_FORMAT IndexFormat;
  10974. DXGI_FORMAT VertexFormat;
  10975. UINT IndexCount;
  10976. UINT VertexCount;
  10977. D3D12_GPU_VIRTUAL_ADDRESS IndexBuffer;
  10978. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE VertexBuffer;
  10979. } D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC;
  10980. typedef struct D3D12_RAYTRACING_AABB
  10981. {
  10982. FLOAT MinX;
  10983. FLOAT MinY;
  10984. FLOAT MinZ;
  10985. FLOAT MaxX;
  10986. FLOAT MaxY;
  10987. FLOAT MaxZ;
  10988. } D3D12_RAYTRACING_AABB;
  10989. typedef struct D3D12_RAYTRACING_GEOMETRY_AABBS_DESC
  10990. {
  10991. UINT64 AABBCount;
  10992. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE AABBs;
  10993. } D3D12_RAYTRACING_GEOMETRY_AABBS_DESC;
  10994. typedef
  10995. enum D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX
  10996. {
  10997. D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_TRANSPARENT = -1,
  10998. D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_OPAQUE = -2,
  10999. D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_TRANSPARENT = -3,
  11000. D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_OPAQUE = -4
  11001. } D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX;
  11002. typedef
  11003. enum D3D12_RAYTRACING_OPACITY_MICROMAP_STATE
  11004. {
  11005. D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_TRANSPARENT = 0,
  11006. D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_OPAQUE = 1,
  11007. D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_UNKNOWN_TRANSPARENT = 2,
  11008. D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_UNKNOWN_OPAQUE = 3
  11009. } D3D12_RAYTRACING_OPACITY_MICROMAP_STATE;
  11010. typedef
  11011. enum D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT
  11012. {
  11013. D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT_OC1_2_STATE = 0x1,
  11014. D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT_OC1_4_STATE = 0x2
  11015. } D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT;
  11016. typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_DESC
  11017. {
  11018. UINT ByteOffset;
  11019. UINT SubdivisionLevel : 16;
  11020. D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT Format : 16;
  11021. } D3D12_RAYTRACING_OPACITY_MICROMAP_DESC;
  11022. typedef struct D3D12_RAYTRACING_GEOMETRY_OMM_LINKAGE_DESC
  11023. {
  11024. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE OpacityMicromapIndexBuffer;
  11025. DXGI_FORMAT OpacityMicromapIndexFormat;
  11026. UINT OpacityMicromapBaseLocation;
  11027. D3D12_GPU_VIRTUAL_ADDRESS OpacityMicromapArray;
  11028. } D3D12_RAYTRACING_GEOMETRY_OMM_LINKAGE_DESC;
  11029. typedef struct D3D12_RAYTRACING_GEOMETRY_OMM_TRIANGLES_DESC
  11030. {
  11031. const D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC *pTriangles;
  11032. const D3D12_RAYTRACING_GEOMETRY_OMM_LINKAGE_DESC *pOmmLinkage;
  11033. } D3D12_RAYTRACING_GEOMETRY_OMM_TRIANGLES_DESC;
  11034. typedef
  11035. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS
  11036. {
  11037. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_NONE = 0,
  11038. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_UPDATE = 0x1,
  11039. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_COMPACTION = 0x2,
  11040. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_TRACE = 0x4,
  11041. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_BUILD = 0x8,
  11042. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_MINIMIZE_MEMORY = 0x10,
  11043. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PERFORM_UPDATE = 0x20,
  11044. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_OMM_UPDATE = 0x40,
  11045. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_DISABLE_OMMS = 0x80
  11046. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS;
  11047. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS )
  11048. typedef
  11049. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE
  11050. {
  11051. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_CLONE = 0,
  11052. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_COMPACT = 0x1,
  11053. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_VISUALIZATION_DECODE_FOR_TOOLS = 0x2,
  11054. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_SERIALIZE = 0x3,
  11055. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_DESERIALIZE = 0x4
  11056. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE;
  11057. typedef
  11058. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE
  11059. {
  11060. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL = 0,
  11061. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL = 0x1,
  11062. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_OPACITY_MICROMAP_ARRAY = 0x2
  11063. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE;
  11064. typedef
  11065. enum D3D12_ELEMENTS_LAYOUT
  11066. {
  11067. D3D12_ELEMENTS_LAYOUT_ARRAY = 0,
  11068. D3D12_ELEMENTS_LAYOUT_ARRAY_OF_POINTERS = 0x1
  11069. } D3D12_ELEMENTS_LAYOUT;
  11070. typedef
  11071. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE
  11072. {
  11073. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE = 0,
  11074. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION = 0x1,
  11075. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION = 0x2,
  11076. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE = 0x3
  11077. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE;
  11078. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC
  11079. {
  11080. D3D12_GPU_VIRTUAL_ADDRESS DestBuffer;
  11081. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE InfoType;
  11082. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC;
  11083. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC
  11084. {
  11085. UINT64 CompactedSizeInBytes;
  11086. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC;
  11087. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC
  11088. {
  11089. UINT64 DecodedSizeInBytes;
  11090. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC;
  11091. typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER
  11092. {
  11093. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type;
  11094. UINT NumDescs;
  11095. } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER;
  11096. // Regarding D3D12_BUILD_RAY_TRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER above,
  11097. // depending on Type field, NumDescs above is followed by either:
  11098. // D3D12_RAY_TRACING_INSTANCE_DESC InstanceDescs[NumDescs]
  11099. // or D3D12_RAY_TRACING_GEOMETRY_DESC GeometryDescs[NumDescs].
  11100. // or D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC (NumDescs == 1 in this case).
  11101. //
  11102. // For D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC, the pOmmHistogram pointer becomes a GPUVA instead of CPU pointer
  11103. //
  11104. // There is 4 bytes of padding between GeometryDesc structs in the array so alignment is natural when viewed by CPU.
  11105. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC
  11106. {
  11107. UINT64 SerializedSizeInBytes;
  11108. union
  11109. {
  11110. UINT64 NumBottomLevelAccelerationStructurePointers;
  11111. UINT64 NumBottomLevelAccelerationStructureHeaderAndPointerListPairs;
  11112. } ;
  11113. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC;
  11114. typedef struct D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER
  11115. {
  11116. GUID DriverOpaqueGUID;
  11117. BYTE DriverOpaqueVersioningData[ 16 ];
  11118. } D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER;
  11119. typedef
  11120. enum D3D12_SERIALIZED_DATA_TYPE
  11121. {
  11122. D3D12_SERIALIZED_DATA_RAYTRACING_ACCELERATION_STRUCTURE = 0,
  11123. D3D12_SERIALIZED_DATA_APPLICATION_SPECIFIC_DRIVER_STATE = 0x1
  11124. } D3D12_SERIALIZED_DATA_TYPE;
  11125. typedef
  11126. enum D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS
  11127. {
  11128. D3D12_DRIVER_MATCHING_IDENTIFIER_COMPATIBLE_WITH_DEVICE = 0,
  11129. D3D12_DRIVER_MATCHING_IDENTIFIER_UNSUPPORTED_TYPE = 0x1,
  11130. D3D12_DRIVER_MATCHING_IDENTIFIER_UNRECOGNIZED = 0x2,
  11131. D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_VERSION = 0x3,
  11132. D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_TYPE = 0x4
  11133. } D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS;
  11134. typedef struct D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER
  11135. {
  11136. D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER DriverMatchingIdentifier;
  11137. UINT64 SerializedSizeInBytesIncludingHeader;
  11138. UINT64 DeserializedSizeInBytes;
  11139. UINT64 NumBottomLevelAccelerationStructurePointersAfterHeader;
  11140. } D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER;
  11141. typedef
  11142. enum D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE
  11143. {
  11144. D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE_NONE = 0,
  11145. D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE_BOTTOM_LEVEL_POINTERS = 0,
  11146. D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE_BLOCKS = 0xffffffff
  11147. } D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE;
  11148. typedef struct D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER1
  11149. {
  11150. D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER DriverMatchingIdentifier;
  11151. UINT64 SerializedSizeInBytesIncludingHeader;
  11152. UINT64 DeserializedSizeInBytes;
  11153. union
  11154. {
  11155. UINT NumBottomLevelAccelerationStructurePointersAfterHeader;
  11156. UINT NumBlocks;
  11157. } ;
  11158. D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE HeaderPostambleType;
  11159. } D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER1;
  11160. typedef
  11161. enum D3D12_SERIALIZED_BLOCK_TYPE
  11162. {
  11163. D3D12_RAYTRACING_SERIALIZED_BLOCK_TYPE_OPACITY_MICROMAPS = 0
  11164. } D3D12_RAYTRACING_SERIALIZED_BLOCK_TYPE;
  11165. typedef struct D3D12_RAYTRACING_SERIALIZED_BLOCK
  11166. {
  11167. D3D12_RAYTRACING_SERIALIZED_BLOCK_TYPE Type;
  11168. UINT64 NumBlockPointersAfterHeader;
  11169. } D3D12_RAYTRACING_SERIALIZED_BLOCK;
  11170. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC
  11171. {
  11172. UINT64 CurrentSizeInBytes;
  11173. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC;
  11174. typedef struct D3D12_RAYTRACING_INSTANCE_DESC
  11175. {
  11176. FLOAT Transform[ 3 ][ 4 ];
  11177. UINT InstanceID : 24;
  11178. UINT InstanceMask : 8;
  11179. UINT InstanceContributionToHitGroupIndex : 24;
  11180. UINT Flags : 8;
  11181. D3D12_GPU_VIRTUAL_ADDRESS AccelerationStructure;
  11182. } D3D12_RAYTRACING_INSTANCE_DESC;
  11183. typedef struct D3D12_RAYTRACING_GEOMETRY_DESC
  11184. {
  11185. D3D12_RAYTRACING_GEOMETRY_TYPE Type;
  11186. D3D12_RAYTRACING_GEOMETRY_FLAGS Flags;
  11187. union
  11188. {
  11189. D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC Triangles;
  11190. D3D12_RAYTRACING_GEOMETRY_AABBS_DESC AABBs;
  11191. D3D12_RAYTRACING_GEOMETRY_OMM_TRIANGLES_DESC OmmTriangles;
  11192. } ;
  11193. } D3D12_RAYTRACING_GEOMETRY_DESC;
  11194. typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_HISTOGRAM_ENTRY
  11195. {
  11196. UINT Count;
  11197. UINT SubdivisionLevel;
  11198. D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT Format;
  11199. } D3D12_RAYTRACING_OPACITY_MICROMAP_HISTOGRAM_ENTRY;
  11200. typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC
  11201. {
  11202. UINT NumOmmHistogramEntries;
  11203. const D3D12_RAYTRACING_OPACITY_MICROMAP_HISTOGRAM_ENTRY *pOmmHistogram;
  11204. D3D12_GPU_VIRTUAL_ADDRESS InputBuffer;
  11205. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE PerOmmDescs;
  11206. } D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC;
  11207. typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS
  11208. {
  11209. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type;
  11210. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS Flags;
  11211. UINT NumDescs;
  11212. D3D12_ELEMENTS_LAYOUT DescsLayout;
  11213. union
  11214. {
  11215. D3D12_GPU_VIRTUAL_ADDRESS InstanceDescs;
  11216. const D3D12_RAYTRACING_GEOMETRY_DESC *pGeometryDescs;
  11217. const D3D12_RAYTRACING_GEOMETRY_DESC *const *ppGeometryDescs;
  11218. const D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC *pOpacityMicromapArrayDesc;
  11219. } ;
  11220. } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS;
  11221. typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC
  11222. {
  11223. D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData;
  11224. D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS Inputs;
  11225. _In_opt_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData;
  11226. D3D12_GPU_VIRTUAL_ADDRESS ScratchAccelerationStructureData;
  11227. } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC;
  11228. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO
  11229. {
  11230. UINT64 ResultDataMaxSizeInBytes;
  11231. UINT64 ScratchDataSizeInBytes;
  11232. UINT64 UpdateScratchDataSizeInBytes;
  11233. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO;
  11234. typedef
  11235. enum D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TYPE
  11236. {
  11237. D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_CURRENT_SIZE = 0,
  11238. D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TOOLS_VISUALIZATION = 0x1
  11239. } D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TYPE;
  11240. typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_DESC
  11241. {
  11242. D3D12_GPU_VIRTUAL_ADDRESS DestBuffer;
  11243. D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TYPE InfoType;
  11244. } D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_DESC;
  11245. typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_CURRENT_SIZE_DESC
  11246. {
  11247. UINT64 CurrentSizeInBytes;
  11248. } D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_CURRENT_SIZE_DESC;
  11249. typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC
  11250. {
  11251. UINT64 DecodedSizeInBytes;
  11252. } D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC;
  11253. typedef
  11254. enum D3D12_RAY_FLAGS
  11255. {
  11256. D3D12_RAY_FLAG_NONE = 0,
  11257. D3D12_RAY_FLAG_FORCE_OPAQUE = 0x1,
  11258. D3D12_RAY_FLAG_FORCE_NON_OPAQUE = 0x2,
  11259. D3D12_RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH = 0x4,
  11260. D3D12_RAY_FLAG_SKIP_CLOSEST_HIT_SHADER = 0x8,
  11261. D3D12_RAY_FLAG_CULL_BACK_FACING_TRIANGLES = 0x10,
  11262. D3D12_RAY_FLAG_CULL_FRONT_FACING_TRIANGLES = 0x20,
  11263. D3D12_RAY_FLAG_CULL_OPAQUE = 0x40,
  11264. D3D12_RAY_FLAG_CULL_NON_OPAQUE = 0x80,
  11265. D3D12_RAY_FLAG_SKIP_TRIANGLES = 0x100,
  11266. D3D12_RAY_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200,
  11267. D3D12_RAY_FLAG_FORCE_OMM_2_STATE = 0x400
  11268. } D3D12_RAY_FLAGS;
  11269. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAY_FLAGS )
  11270. typedef
  11271. enum D3D12_HIT_KIND
  11272. {
  11273. D3D12_HIT_KIND_TRIANGLE_FRONT_FACE = 0xfe,
  11274. D3D12_HIT_KIND_TRIANGLE_BACK_FACE = 0xff
  11275. } D3D12_HIT_KIND;
  11276. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0036_v0_0_c_ifspec;
  11277. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0036_v0_0_s_ifspec;
  11278. #ifndef __ID3D12Device5_INTERFACE_DEFINED__
  11279. #define __ID3D12Device5_INTERFACE_DEFINED__
  11280. /* interface ID3D12Device5 */
  11281. /* [unique][local][object][uuid] */
  11282. EXTERN_C const IID IID_ID3D12Device5;
  11283. #if defined(__cplusplus) && !defined(CINTERFACE)
  11284. MIDL_INTERFACE("8b4f173b-2fea-4b80-8f58-4307191ab95d")
  11285. ID3D12Device5 : public ID3D12Device4
  11286. {
  11287. public:
  11288. virtual HRESULT STDMETHODCALLTYPE CreateLifetimeTracker(
  11289. _In_ ID3D12LifetimeOwner *pOwner,
  11290. REFIID riid,
  11291. _COM_Outptr_ void **ppvTracker) = 0;
  11292. virtual void STDMETHODCALLTYPE RemoveDevice( void) = 0;
  11293. virtual HRESULT STDMETHODCALLTYPE EnumerateMetaCommands(
  11294. _Inout_ UINT *pNumMetaCommands,
  11295. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs) = 0;
  11296. virtual HRESULT STDMETHODCALLTYPE EnumerateMetaCommandParameters(
  11297. _In_ REFGUID CommandId,
  11298. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  11299. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  11300. _Inout_ UINT *pParameterCount,
  11301. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs) = 0;
  11302. virtual HRESULT STDMETHODCALLTYPE CreateMetaCommand(
  11303. _In_ REFGUID CommandId,
  11304. _In_ UINT NodeMask,
  11305. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  11306. _In_ SIZE_T CreationParametersDataSizeInBytes,
  11307. REFIID riid,
  11308. _COM_Outptr_ void **ppMetaCommand) = 0;
  11309. virtual HRESULT STDMETHODCALLTYPE CreateStateObject(
  11310. const D3D12_STATE_OBJECT_DESC *pDesc,
  11311. REFIID riid,
  11312. _COM_Outptr_ void **ppStateObject) = 0;
  11313. virtual void STDMETHODCALLTYPE GetRaytracingAccelerationStructurePrebuildInfo(
  11314. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  11315. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo) = 0;
  11316. virtual D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS STDMETHODCALLTYPE CheckDriverMatchingIdentifier(
  11317. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  11318. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck) = 0;
  11319. };
  11320. #else /* C style interface */
  11321. typedef struct ID3D12Device5Vtbl
  11322. {
  11323. BEGIN_INTERFACE
  11324. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  11325. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11326. ID3D12Device5 * This,
  11327. REFIID riid,
  11328. _COM_Outptr_ void **ppvObject);
  11329. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  11330. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11331. ID3D12Device5 * This);
  11332. DECLSPEC_XFGVIRT(IUnknown, Release)
  11333. ULONG ( STDMETHODCALLTYPE *Release )(
  11334. ID3D12Device5 * This);
  11335. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  11336. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  11337. ID3D12Device5 * This,
  11338. _In_ REFGUID guid,
  11339. _Inout_ UINT *pDataSize,
  11340. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  11341. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  11342. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  11343. ID3D12Device5 * This,
  11344. _In_ REFGUID guid,
  11345. _In_ UINT DataSize,
  11346. _In_reads_bytes_opt_( DataSize ) const void *pData);
  11347. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  11348. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  11349. ID3D12Device5 * This,
  11350. _In_ REFGUID guid,
  11351. _In_opt_ const IUnknown *pData);
  11352. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  11353. HRESULT ( STDMETHODCALLTYPE *SetName )(
  11354. ID3D12Device5 * This,
  11355. _In_z_ LPCWSTR Name);
  11356. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  11357. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  11358. ID3D12Device5 * This);
  11359. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  11360. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  11361. ID3D12Device5 * This,
  11362. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  11363. REFIID riid,
  11364. _COM_Outptr_ void **ppCommandQueue);
  11365. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  11366. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  11367. ID3D12Device5 * This,
  11368. _In_ D3D12_COMMAND_LIST_TYPE type,
  11369. REFIID riid,
  11370. _COM_Outptr_ void **ppCommandAllocator);
  11371. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  11372. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  11373. ID3D12Device5 * This,
  11374. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  11375. REFIID riid,
  11376. _COM_Outptr_ void **ppPipelineState);
  11377. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  11378. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  11379. ID3D12Device5 * This,
  11380. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  11381. REFIID riid,
  11382. _COM_Outptr_ void **ppPipelineState);
  11383. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  11384. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  11385. ID3D12Device5 * This,
  11386. _In_ UINT nodeMask,
  11387. _In_ D3D12_COMMAND_LIST_TYPE type,
  11388. _In_ ID3D12CommandAllocator *pCommandAllocator,
  11389. _In_opt_ ID3D12PipelineState *pInitialState,
  11390. REFIID riid,
  11391. _COM_Outptr_ void **ppCommandList);
  11392. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  11393. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  11394. ID3D12Device5 * This,
  11395. D3D12_FEATURE Feature,
  11396. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  11397. UINT FeatureSupportDataSize);
  11398. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  11399. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  11400. ID3D12Device5 * This,
  11401. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  11402. REFIID riid,
  11403. _COM_Outptr_ void **ppvHeap);
  11404. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  11405. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  11406. ID3D12Device5 * This,
  11407. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  11408. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  11409. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  11410. ID3D12Device5 * This,
  11411. _In_ UINT nodeMask,
  11412. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  11413. _In_ SIZE_T blobLengthInBytes,
  11414. REFIID riid,
  11415. _COM_Outptr_ void **ppvRootSignature);
  11416. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  11417. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  11418. ID3D12Device5 * This,
  11419. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  11420. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11421. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  11422. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  11423. ID3D12Device5 * This,
  11424. _In_opt_ ID3D12Resource *pResource,
  11425. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  11426. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11427. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  11428. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  11429. ID3D12Device5 * This,
  11430. _In_opt_ ID3D12Resource *pResource,
  11431. _In_opt_ ID3D12Resource *pCounterResource,
  11432. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  11433. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11434. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  11435. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  11436. ID3D12Device5 * This,
  11437. _In_opt_ ID3D12Resource *pResource,
  11438. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  11439. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11440. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  11441. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  11442. ID3D12Device5 * This,
  11443. _In_opt_ ID3D12Resource *pResource,
  11444. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  11445. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11446. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  11447. void ( STDMETHODCALLTYPE *CreateSampler )(
  11448. ID3D12Device5 * This,
  11449. _In_ const D3D12_SAMPLER_DESC *pDesc,
  11450. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  11451. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  11452. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  11453. ID3D12Device5 * This,
  11454. _In_ UINT NumDestDescriptorRanges,
  11455. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  11456. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  11457. _In_ UINT NumSrcDescriptorRanges,
  11458. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  11459. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  11460. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  11461. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  11462. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  11463. ID3D12Device5 * This,
  11464. _In_ UINT NumDescriptors,
  11465. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  11466. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  11467. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  11468. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  11469. #if !defined(_WIN32)
  11470. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  11471. ID3D12Device5 * This,
  11472. _In_ UINT visibleMask,
  11473. _In_ UINT numResourceDescs,
  11474. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  11475. #else
  11476. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  11477. ID3D12Device5 * This,
  11478. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  11479. _In_ UINT visibleMask,
  11480. _In_ UINT numResourceDescs,
  11481. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  11482. #endif
  11483. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  11484. #if !defined(_WIN32)
  11485. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  11486. ID3D12Device5 * This,
  11487. _In_ UINT nodeMask,
  11488. D3D12_HEAP_TYPE heapType);
  11489. #else
  11490. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  11491. ID3D12Device5 * This,
  11492. D3D12_HEAP_PROPERTIES * RetVal,
  11493. _In_ UINT nodeMask,
  11494. D3D12_HEAP_TYPE heapType);
  11495. #endif
  11496. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  11497. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  11498. ID3D12Device5 * This,
  11499. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  11500. D3D12_HEAP_FLAGS HeapFlags,
  11501. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11502. D3D12_RESOURCE_STATES InitialResourceState,
  11503. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11504. REFIID riidResource,
  11505. _COM_Outptr_opt_ void **ppvResource);
  11506. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  11507. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  11508. ID3D12Device5 * This,
  11509. _In_ const D3D12_HEAP_DESC *pDesc,
  11510. REFIID riid,
  11511. _COM_Outptr_opt_ void **ppvHeap);
  11512. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  11513. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  11514. ID3D12Device5 * This,
  11515. _In_ ID3D12Heap *pHeap,
  11516. UINT64 HeapOffset,
  11517. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11518. D3D12_RESOURCE_STATES InitialState,
  11519. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11520. REFIID riid,
  11521. _COM_Outptr_opt_ void **ppvResource);
  11522. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  11523. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  11524. ID3D12Device5 * This,
  11525. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11526. D3D12_RESOURCE_STATES InitialState,
  11527. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11528. REFIID riid,
  11529. _COM_Outptr_opt_ void **ppvResource);
  11530. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  11531. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  11532. ID3D12Device5 * This,
  11533. _In_ ID3D12DeviceChild *pObject,
  11534. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  11535. DWORD Access,
  11536. _In_opt_ LPCWSTR Name,
  11537. _Out_ HANDLE *pHandle);
  11538. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  11539. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  11540. ID3D12Device5 * This,
  11541. _In_ HANDLE NTHandle,
  11542. REFIID riid,
  11543. _COM_Outptr_opt_ void **ppvObj);
  11544. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  11545. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  11546. ID3D12Device5 * This,
  11547. _In_ LPCWSTR Name,
  11548. DWORD Access,
  11549. /* [annotation][out] */
  11550. _Out_ HANDLE *pNTHandle);
  11551. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  11552. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  11553. ID3D12Device5 * This,
  11554. UINT NumObjects,
  11555. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  11556. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  11557. HRESULT ( STDMETHODCALLTYPE *Evict )(
  11558. ID3D12Device5 * This,
  11559. UINT NumObjects,
  11560. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  11561. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  11562. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  11563. ID3D12Device5 * This,
  11564. UINT64 InitialValue,
  11565. D3D12_FENCE_FLAGS Flags,
  11566. REFIID riid,
  11567. _COM_Outptr_ void **ppFence);
  11568. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  11569. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  11570. ID3D12Device5 * This);
  11571. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  11572. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  11573. ID3D12Device5 * This,
  11574. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  11575. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  11576. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  11577. UINT64 BaseOffset,
  11578. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  11579. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  11580. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  11581. _Out_opt_ UINT64 *pTotalBytes);
  11582. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  11583. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  11584. ID3D12Device5 * This,
  11585. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  11586. REFIID riid,
  11587. _COM_Outptr_opt_ void **ppvHeap);
  11588. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  11589. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  11590. ID3D12Device5 * This,
  11591. BOOL Enable);
  11592. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  11593. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  11594. ID3D12Device5 * This,
  11595. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  11596. _In_opt_ ID3D12RootSignature *pRootSignature,
  11597. REFIID riid,
  11598. _COM_Outptr_opt_ void **ppvCommandSignature);
  11599. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  11600. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  11601. ID3D12Device5 * This,
  11602. _In_ ID3D12Resource *pTiledResource,
  11603. _Out_opt_ UINT *pNumTilesForEntireResource,
  11604. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  11605. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  11606. _Inout_opt_ UINT *pNumSubresourceTilings,
  11607. _In_ UINT FirstSubresourceTilingToGet,
  11608. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  11609. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  11610. #if !defined(_WIN32)
  11611. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  11612. ID3D12Device5 * This);
  11613. #else
  11614. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  11615. ID3D12Device5 * This,
  11616. LUID * RetVal);
  11617. #endif
  11618. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  11619. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  11620. ID3D12Device5 * This,
  11621. _In_reads_(BlobLength) const void *pLibraryBlob,
  11622. SIZE_T BlobLength,
  11623. REFIID riid,
  11624. _COM_Outptr_ void **ppPipelineLibrary);
  11625. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  11626. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  11627. ID3D12Device5 * This,
  11628. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  11629. _In_reads_(NumFences) const UINT64 *pFenceValues,
  11630. UINT NumFences,
  11631. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  11632. HANDLE hEvent);
  11633. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  11634. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  11635. ID3D12Device5 * This,
  11636. UINT NumObjects,
  11637. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  11638. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  11639. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  11640. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  11641. ID3D12Device5 * This,
  11642. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  11643. REFIID riid,
  11644. _COM_Outptr_ void **ppPipelineState);
  11645. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  11646. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  11647. ID3D12Device5 * This,
  11648. _In_ const void *pAddress,
  11649. REFIID riid,
  11650. _COM_Outptr_ void **ppvHeap);
  11651. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  11652. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  11653. ID3D12Device5 * This,
  11654. _In_ HANDLE hFileMapping,
  11655. REFIID riid,
  11656. _COM_Outptr_ void **ppvHeap);
  11657. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  11658. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  11659. ID3D12Device5 * This,
  11660. D3D12_RESIDENCY_FLAGS Flags,
  11661. UINT NumObjects,
  11662. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  11663. _In_ ID3D12Fence *pFenceToSignal,
  11664. UINT64 FenceValueToSignal);
  11665. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  11666. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  11667. ID3D12Device5 * This,
  11668. _In_ UINT nodeMask,
  11669. _In_ D3D12_COMMAND_LIST_TYPE type,
  11670. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  11671. REFIID riid,
  11672. _COM_Outptr_ void **ppCommandList);
  11673. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  11674. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  11675. ID3D12Device5 * This,
  11676. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  11677. _In_ REFIID riid,
  11678. _COM_Outptr_ void **ppSession);
  11679. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  11680. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  11681. ID3D12Device5 * This,
  11682. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  11683. D3D12_HEAP_FLAGS HeapFlags,
  11684. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11685. D3D12_RESOURCE_STATES InitialResourceState,
  11686. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11687. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  11688. REFIID riidResource,
  11689. _COM_Outptr_opt_ void **ppvResource);
  11690. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  11691. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  11692. ID3D12Device5 * This,
  11693. _In_ const D3D12_HEAP_DESC *pDesc,
  11694. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  11695. REFIID riid,
  11696. _COM_Outptr_opt_ void **ppvHeap);
  11697. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  11698. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  11699. ID3D12Device5 * This,
  11700. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11701. D3D12_RESOURCE_STATES InitialState,
  11702. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11703. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  11704. REFIID riid,
  11705. _COM_Outptr_opt_ void **ppvResource);
  11706. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  11707. #if !defined(_WIN32)
  11708. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  11709. ID3D12Device5 * This,
  11710. UINT visibleMask,
  11711. UINT numResourceDescs,
  11712. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  11713. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  11714. #else
  11715. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  11716. ID3D12Device5 * This,
  11717. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  11718. UINT visibleMask,
  11719. UINT numResourceDescs,
  11720. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  11721. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  11722. #endif
  11723. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  11724. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  11725. ID3D12Device5 * This,
  11726. _In_ ID3D12LifetimeOwner *pOwner,
  11727. REFIID riid,
  11728. _COM_Outptr_ void **ppvTracker);
  11729. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  11730. void ( STDMETHODCALLTYPE *RemoveDevice )(
  11731. ID3D12Device5 * This);
  11732. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  11733. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  11734. ID3D12Device5 * This,
  11735. _Inout_ UINT *pNumMetaCommands,
  11736. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  11737. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  11738. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  11739. ID3D12Device5 * This,
  11740. _In_ REFGUID CommandId,
  11741. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  11742. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  11743. _Inout_ UINT *pParameterCount,
  11744. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  11745. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  11746. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  11747. ID3D12Device5 * This,
  11748. _In_ REFGUID CommandId,
  11749. _In_ UINT NodeMask,
  11750. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  11751. _In_ SIZE_T CreationParametersDataSizeInBytes,
  11752. REFIID riid,
  11753. _COM_Outptr_ void **ppMetaCommand);
  11754. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  11755. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  11756. ID3D12Device5 * This,
  11757. const D3D12_STATE_OBJECT_DESC *pDesc,
  11758. REFIID riid,
  11759. _COM_Outptr_ void **ppStateObject);
  11760. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  11761. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  11762. ID3D12Device5 * This,
  11763. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  11764. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  11765. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  11766. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  11767. ID3D12Device5 * This,
  11768. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  11769. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  11770. END_INTERFACE
  11771. } ID3D12Device5Vtbl;
  11772. interface ID3D12Device5
  11773. {
  11774. CONST_VTBL struct ID3D12Device5Vtbl *lpVtbl;
  11775. };
  11776. #ifdef COBJMACROS
  11777. #define ID3D12Device5_QueryInterface(This,riid,ppvObject) \
  11778. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  11779. #define ID3D12Device5_AddRef(This) \
  11780. ( (This)->lpVtbl -> AddRef(This) )
  11781. #define ID3D12Device5_Release(This) \
  11782. ( (This)->lpVtbl -> Release(This) )
  11783. #define ID3D12Device5_GetPrivateData(This,guid,pDataSize,pData) \
  11784. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  11785. #define ID3D12Device5_SetPrivateData(This,guid,DataSize,pData) \
  11786. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  11787. #define ID3D12Device5_SetPrivateDataInterface(This,guid,pData) \
  11788. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  11789. #define ID3D12Device5_SetName(This,Name) \
  11790. ( (This)->lpVtbl -> SetName(This,Name) )
  11791. #define ID3D12Device5_GetNodeCount(This) \
  11792. ( (This)->lpVtbl -> GetNodeCount(This) )
  11793. #define ID3D12Device5_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  11794. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  11795. #define ID3D12Device5_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  11796. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  11797. #define ID3D12Device5_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  11798. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  11799. #define ID3D12Device5_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  11800. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  11801. #define ID3D12Device5_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  11802. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  11803. #define ID3D12Device5_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  11804. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  11805. #define ID3D12Device5_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  11806. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  11807. #define ID3D12Device5_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  11808. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  11809. #define ID3D12Device5_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  11810. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  11811. #define ID3D12Device5_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  11812. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  11813. #define ID3D12Device5_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  11814. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  11815. #define ID3D12Device5_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  11816. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  11817. #define ID3D12Device5_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  11818. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  11819. #define ID3D12Device5_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  11820. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  11821. #define ID3D12Device5_CreateSampler(This,pDesc,DestDescriptor) \
  11822. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  11823. #define ID3D12Device5_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  11824. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  11825. #define ID3D12Device5_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  11826. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  11827. #if !defined(_WIN32)
  11828. #define ID3D12Device5_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  11829. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  11830. #else
  11831. #define ID3D12Device5_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  11832. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  11833. #endif
  11834. #if !defined(_WIN32)
  11835. #define ID3D12Device5_GetCustomHeapProperties(This,nodeMask,heapType) \
  11836. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  11837. #else
  11838. #define ID3D12Device5_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  11839. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  11840. #endif
  11841. #define ID3D12Device5_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  11842. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  11843. #define ID3D12Device5_CreateHeap(This,pDesc,riid,ppvHeap) \
  11844. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  11845. #define ID3D12Device5_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  11846. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  11847. #define ID3D12Device5_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  11848. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  11849. #define ID3D12Device5_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  11850. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  11851. #define ID3D12Device5_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  11852. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  11853. #define ID3D12Device5_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  11854. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  11855. #define ID3D12Device5_MakeResident(This,NumObjects,ppObjects) \
  11856. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  11857. #define ID3D12Device5_Evict(This,NumObjects,ppObjects) \
  11858. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  11859. #define ID3D12Device5_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  11860. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  11861. #define ID3D12Device5_GetDeviceRemovedReason(This) \
  11862. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  11863. #define ID3D12Device5_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  11864. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  11865. #define ID3D12Device5_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  11866. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  11867. #define ID3D12Device5_SetStablePowerState(This,Enable) \
  11868. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  11869. #define ID3D12Device5_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  11870. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  11871. #define ID3D12Device5_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  11872. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  11873. #if !defined(_WIN32)
  11874. #define ID3D12Device5_GetAdapterLuid(This) \
  11875. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  11876. #else
  11877. #define ID3D12Device5_GetAdapterLuid(This,RetVal) \
  11878. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  11879. #endif
  11880. #define ID3D12Device5_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  11881. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  11882. #define ID3D12Device5_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  11883. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  11884. #define ID3D12Device5_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  11885. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  11886. #define ID3D12Device5_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  11887. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  11888. #define ID3D12Device5_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  11889. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  11890. #define ID3D12Device5_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  11891. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  11892. #define ID3D12Device5_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  11893. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  11894. #define ID3D12Device5_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  11895. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  11896. #define ID3D12Device5_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  11897. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  11898. #define ID3D12Device5_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  11899. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  11900. #define ID3D12Device5_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  11901. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  11902. #define ID3D12Device5_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  11903. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  11904. #if !defined(_WIN32)
  11905. #define ID3D12Device5_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  11906. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  11907. #else
  11908. #define ID3D12Device5_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  11909. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  11910. #endif
  11911. #define ID3D12Device5_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  11912. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  11913. #define ID3D12Device5_RemoveDevice(This) \
  11914. ( (This)->lpVtbl -> RemoveDevice(This) )
  11915. #define ID3D12Device5_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  11916. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  11917. #define ID3D12Device5_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  11918. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  11919. #define ID3D12Device5_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  11920. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  11921. #define ID3D12Device5_CreateStateObject(This,pDesc,riid,ppStateObject) \
  11922. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  11923. #define ID3D12Device5_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  11924. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  11925. #define ID3D12Device5_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  11926. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  11927. #endif /* COBJMACROS */
  11928. #endif /* C style interface */
  11929. #endif /* __ID3D12Device5_INTERFACE_DEFINED__ */
  11930. /* interface __MIDL_itf_d3d12_0000_0037 */
  11931. /* [local] */
  11932. typedef
  11933. enum D3D12_AUTO_BREADCRUMB_OP
  11934. {
  11935. D3D12_AUTO_BREADCRUMB_OP_SETMARKER = 0,
  11936. D3D12_AUTO_BREADCRUMB_OP_BEGINEVENT = 1,
  11937. D3D12_AUTO_BREADCRUMB_OP_ENDEVENT = 2,
  11938. D3D12_AUTO_BREADCRUMB_OP_DRAWINSTANCED = 3,
  11939. D3D12_AUTO_BREADCRUMB_OP_DRAWINDEXEDINSTANCED = 4,
  11940. D3D12_AUTO_BREADCRUMB_OP_EXECUTEINDIRECT = 5,
  11941. D3D12_AUTO_BREADCRUMB_OP_DISPATCH = 6,
  11942. D3D12_AUTO_BREADCRUMB_OP_COPYBUFFERREGION = 7,
  11943. D3D12_AUTO_BREADCRUMB_OP_COPYTEXTUREREGION = 8,
  11944. D3D12_AUTO_BREADCRUMB_OP_COPYRESOURCE = 9,
  11945. D3D12_AUTO_BREADCRUMB_OP_COPYTILES = 10,
  11946. D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCE = 11,
  11947. D3D12_AUTO_BREADCRUMB_OP_CLEARRENDERTARGETVIEW = 12,
  11948. D3D12_AUTO_BREADCRUMB_OP_CLEARUNORDEREDACCESSVIEW = 13,
  11949. D3D12_AUTO_BREADCRUMB_OP_CLEARDEPTHSTENCILVIEW = 14,
  11950. D3D12_AUTO_BREADCRUMB_OP_RESOURCEBARRIER = 15,
  11951. D3D12_AUTO_BREADCRUMB_OP_EXECUTEBUNDLE = 16,
  11952. D3D12_AUTO_BREADCRUMB_OP_PRESENT = 17,
  11953. D3D12_AUTO_BREADCRUMB_OP_RESOLVEQUERYDATA = 18,
  11954. D3D12_AUTO_BREADCRUMB_OP_BEGINSUBMISSION = 19,
  11955. D3D12_AUTO_BREADCRUMB_OP_ENDSUBMISSION = 20,
  11956. D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME = 21,
  11957. D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES = 22,
  11958. D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT = 23,
  11959. D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT64 = 24,
  11960. D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCEREGION = 25,
  11961. D3D12_AUTO_BREADCRUMB_OP_WRITEBUFFERIMMEDIATE = 26,
  11962. D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME1 = 27,
  11963. D3D12_AUTO_BREADCRUMB_OP_SETPROTECTEDRESOURCESESSION = 28,
  11964. D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME2 = 29,
  11965. D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES1 = 30,
  11966. D3D12_AUTO_BREADCRUMB_OP_BUILDRAYTRACINGACCELERATIONSTRUCTURE = 31,
  11967. D3D12_AUTO_BREADCRUMB_OP_EMITRAYTRACINGACCELERATIONSTRUCTUREPOSTBUILDINFO = 32,
  11968. D3D12_AUTO_BREADCRUMB_OP_COPYRAYTRACINGACCELERATIONSTRUCTURE = 33,
  11969. D3D12_AUTO_BREADCRUMB_OP_DISPATCHRAYS = 34,
  11970. D3D12_AUTO_BREADCRUMB_OP_INITIALIZEMETACOMMAND = 35,
  11971. D3D12_AUTO_BREADCRUMB_OP_EXECUTEMETACOMMAND = 36,
  11972. D3D12_AUTO_BREADCRUMB_OP_ESTIMATEMOTION = 37,
  11973. D3D12_AUTO_BREADCRUMB_OP_RESOLVEMOTIONVECTORHEAP = 38,
  11974. D3D12_AUTO_BREADCRUMB_OP_SETPIPELINESTATE1 = 39,
  11975. D3D12_AUTO_BREADCRUMB_OP_INITIALIZEEXTENSIONCOMMAND = 40,
  11976. D3D12_AUTO_BREADCRUMB_OP_EXECUTEEXTENSIONCOMMAND = 41,
  11977. D3D12_AUTO_BREADCRUMB_OP_DISPATCHMESH = 42,
  11978. D3D12_AUTO_BREADCRUMB_OP_ENCODEFRAME = 43,
  11979. D3D12_AUTO_BREADCRUMB_OP_RESOLVEENCODEROUTPUTMETADATA = 44,
  11980. D3D12_AUTO_BREADCRUMB_OP_BARRIER = 45,
  11981. D3D12_AUTO_BREADCRUMB_OP_BEGIN_COMMAND_LIST = 46,
  11982. D3D12_AUTO_BREADCRUMB_OP_DISPATCHGRAPH = 47,
  11983. D3D12_AUTO_BREADCRUMB_OP_SETPROGRAM = 48,
  11984. D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES2 = 52
  11985. } D3D12_AUTO_BREADCRUMB_OP;
  11986. typedef struct D3D12_AUTO_BREADCRUMB_NODE
  11987. {
  11988. const char *pCommandListDebugNameA;
  11989. const wchar_t *pCommandListDebugNameW;
  11990. const char *pCommandQueueDebugNameA;
  11991. const wchar_t *pCommandQueueDebugNameW;
  11992. ID3D12GraphicsCommandList *pCommandList;
  11993. ID3D12CommandQueue *pCommandQueue;
  11994. UINT32 BreadcrumbCount;
  11995. const UINT32 *pLastBreadcrumbValue;
  11996. const D3D12_AUTO_BREADCRUMB_OP *pCommandHistory;
  11997. const struct D3D12_AUTO_BREADCRUMB_NODE *pNext;
  11998. } D3D12_AUTO_BREADCRUMB_NODE;
  11999. typedef struct D3D12_DRED_BREADCRUMB_CONTEXT
  12000. {
  12001. UINT BreadcrumbIndex;
  12002. const wchar_t *pContextString;
  12003. } D3D12_DRED_BREADCRUMB_CONTEXT;
  12004. typedef struct D3D12_AUTO_BREADCRUMB_NODE1
  12005. {
  12006. const char *pCommandListDebugNameA;
  12007. const wchar_t *pCommandListDebugNameW;
  12008. const char *pCommandQueueDebugNameA;
  12009. const wchar_t *pCommandQueueDebugNameW;
  12010. ID3D12GraphicsCommandList *pCommandList;
  12011. ID3D12CommandQueue *pCommandQueue;
  12012. UINT BreadcrumbCount;
  12013. const UINT *pLastBreadcrumbValue;
  12014. const D3D12_AUTO_BREADCRUMB_OP *pCommandHistory;
  12015. const struct D3D12_AUTO_BREADCRUMB_NODE1 *pNext;
  12016. UINT BreadcrumbContextsCount;
  12017. D3D12_DRED_BREADCRUMB_CONTEXT *pBreadcrumbContexts;
  12018. } D3D12_AUTO_BREADCRUMB_NODE1;
  12019. typedef
  12020. enum D3D12_DRED_VERSION
  12021. {
  12022. D3D12_DRED_VERSION_1_0 = 0x1,
  12023. D3D12_DRED_VERSION_1_1 = 0x2,
  12024. D3D12_DRED_VERSION_1_2 = 0x3,
  12025. D3D12_DRED_VERSION_1_3 = 0x4
  12026. } D3D12_DRED_VERSION;
  12027. typedef
  12028. enum D3D12_DRED_FLAGS
  12029. {
  12030. D3D12_DRED_FLAG_NONE = 0,
  12031. D3D12_DRED_FLAG_FORCE_ENABLE = 1,
  12032. D3D12_DRED_FLAG_DISABLE_AUTOBREADCRUMBS = 2
  12033. } D3D12_DRED_FLAGS;
  12034. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DRED_FLAGS )
  12035. typedef
  12036. enum D3D12_DRED_ENABLEMENT
  12037. {
  12038. D3D12_DRED_ENABLEMENT_SYSTEM_CONTROLLED = 0,
  12039. D3D12_DRED_ENABLEMENT_FORCED_OFF = 1,
  12040. D3D12_DRED_ENABLEMENT_FORCED_ON = 2
  12041. } D3D12_DRED_ENABLEMENT;
  12042. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA
  12043. {
  12044. _In_ D3D12_DRED_FLAGS Flags;
  12045. _Out_ D3D12_AUTO_BREADCRUMB_NODE *pHeadAutoBreadcrumbNode;
  12046. } D3D12_DEVICE_REMOVED_EXTENDED_DATA;
  12047. typedef
  12048. enum D3D12_DRED_ALLOCATION_TYPE
  12049. {
  12050. D3D12_DRED_ALLOCATION_TYPE_COMMAND_QUEUE = 19,
  12051. D3D12_DRED_ALLOCATION_TYPE_COMMAND_ALLOCATOR = 20,
  12052. D3D12_DRED_ALLOCATION_TYPE_PIPELINE_STATE = 21,
  12053. D3D12_DRED_ALLOCATION_TYPE_COMMAND_LIST = 22,
  12054. D3D12_DRED_ALLOCATION_TYPE_FENCE = 23,
  12055. D3D12_DRED_ALLOCATION_TYPE_DESCRIPTOR_HEAP = 24,
  12056. D3D12_DRED_ALLOCATION_TYPE_HEAP = 25,
  12057. D3D12_DRED_ALLOCATION_TYPE_QUERY_HEAP = 27,
  12058. D3D12_DRED_ALLOCATION_TYPE_COMMAND_SIGNATURE = 28,
  12059. D3D12_DRED_ALLOCATION_TYPE_PIPELINE_LIBRARY = 29,
  12060. D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER = 30,
  12061. D3D12_DRED_ALLOCATION_TYPE_VIDEO_PROCESSOR = 32,
  12062. D3D12_DRED_ALLOCATION_TYPE_RESOURCE = 34,
  12063. D3D12_DRED_ALLOCATION_TYPE_PASS = 35,
  12064. D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSION = 36,
  12065. D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSIONPOLICY = 37,
  12066. D3D12_DRED_ALLOCATION_TYPE_PROTECTEDRESOURCESESSION = 38,
  12067. D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER_HEAP = 39,
  12068. D3D12_DRED_ALLOCATION_TYPE_COMMAND_POOL = 40,
  12069. D3D12_DRED_ALLOCATION_TYPE_COMMAND_RECORDER = 41,
  12070. D3D12_DRED_ALLOCATION_TYPE_STATE_OBJECT = 42,
  12071. D3D12_DRED_ALLOCATION_TYPE_METACOMMAND = 43,
  12072. D3D12_DRED_ALLOCATION_TYPE_SCHEDULINGGROUP = 44,
  12073. D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_ESTIMATOR = 45,
  12074. D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_VECTOR_HEAP = 46,
  12075. D3D12_DRED_ALLOCATION_TYPE_VIDEO_EXTENSION_COMMAND = 47,
  12076. D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER = 48,
  12077. D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER_HEAP = 49,
  12078. D3D12_DRED_ALLOCATION_TYPE_INVALID = 0xffffffff
  12079. } D3D12_DRED_ALLOCATION_TYPE;
  12080. typedef struct D3D12_DRED_ALLOCATION_NODE
  12081. {
  12082. const char *ObjectNameA;
  12083. const wchar_t *ObjectNameW;
  12084. D3D12_DRED_ALLOCATION_TYPE AllocationType;
  12085. const struct D3D12_DRED_ALLOCATION_NODE *pNext;
  12086. } D3D12_DRED_ALLOCATION_NODE;
  12087. typedef struct D3D12_DRED_ALLOCATION_NODE1
  12088. {
  12089. const char *ObjectNameA;
  12090. const wchar_t *ObjectNameW;
  12091. D3D12_DRED_ALLOCATION_TYPE AllocationType;
  12092. const struct D3D12_DRED_ALLOCATION_NODE1 *pNext;
  12093. const IUnknown *pObject;
  12094. } D3D12_DRED_ALLOCATION_NODE1;
  12095. typedef struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT
  12096. {
  12097. _Out_ const D3D12_AUTO_BREADCRUMB_NODE *pHeadAutoBreadcrumbNode;
  12098. } D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT;
  12099. typedef struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1
  12100. {
  12101. _Out_ const D3D12_AUTO_BREADCRUMB_NODE1 *pHeadAutoBreadcrumbNode;
  12102. } D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1;
  12103. typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT
  12104. {
  12105. D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA;
  12106. _Out_ const D3D12_DRED_ALLOCATION_NODE *pHeadExistingAllocationNode;
  12107. _Out_ const D3D12_DRED_ALLOCATION_NODE *pHeadRecentFreedAllocationNode;
  12108. } D3D12_DRED_PAGE_FAULT_OUTPUT;
  12109. typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT1
  12110. {
  12111. D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA;
  12112. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadExistingAllocationNode;
  12113. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadRecentFreedAllocationNode;
  12114. } D3D12_DRED_PAGE_FAULT_OUTPUT1;
  12115. typedef
  12116. enum D3D12_DRED_PAGE_FAULT_FLAGS
  12117. {
  12118. D3D12_DRED_PAGE_FAULT_FLAGS_NONE = 0
  12119. } D3D12_DRED_PAGE_FAULT_FLAGS;
  12120. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DRED_PAGE_FAULT_FLAGS )
  12121. typedef
  12122. enum D3D12_DRED_DEVICE_STATE
  12123. {
  12124. D3D12_DRED_DEVICE_STATE_UNKNOWN = 0,
  12125. D3D12_DRED_DEVICE_STATE_HUNG = 3,
  12126. D3D12_DRED_DEVICE_STATE_FAULT = 6,
  12127. D3D12_DRED_DEVICE_STATE_PAGEFAULT = 7
  12128. } D3D12_DRED_DEVICE_STATE;
  12129. typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT2
  12130. {
  12131. D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA;
  12132. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadExistingAllocationNode;
  12133. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadRecentFreedAllocationNode;
  12134. D3D12_DRED_PAGE_FAULT_FLAGS PageFaultFlags;
  12135. } D3D12_DRED_PAGE_FAULT_OUTPUT2;
  12136. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA1
  12137. {
  12138. HRESULT DeviceRemovedReason;
  12139. D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT AutoBreadcrumbsOutput;
  12140. D3D12_DRED_PAGE_FAULT_OUTPUT PageFaultOutput;
  12141. } D3D12_DEVICE_REMOVED_EXTENDED_DATA1;
  12142. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA2
  12143. {
  12144. HRESULT DeviceRemovedReason;
  12145. D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput;
  12146. D3D12_DRED_PAGE_FAULT_OUTPUT1 PageFaultOutput;
  12147. } D3D12_DEVICE_REMOVED_EXTENDED_DATA2;
  12148. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA3
  12149. {
  12150. HRESULT DeviceRemovedReason;
  12151. D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput;
  12152. D3D12_DRED_PAGE_FAULT_OUTPUT2 PageFaultOutput;
  12153. D3D12_DRED_DEVICE_STATE DeviceState;
  12154. } D3D12_DEVICE_REMOVED_EXTENDED_DATA3;
  12155. typedef struct D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA
  12156. {
  12157. D3D12_DRED_VERSION Version;
  12158. union
  12159. {
  12160. D3D12_DEVICE_REMOVED_EXTENDED_DATA Dred_1_0;
  12161. D3D12_DEVICE_REMOVED_EXTENDED_DATA1 Dred_1_1;
  12162. D3D12_DEVICE_REMOVED_EXTENDED_DATA2 Dred_1_2;
  12163. D3D12_DEVICE_REMOVED_EXTENDED_DATA3 Dred_1_3;
  12164. } ;
  12165. } D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA;
  12166. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0037_v0_0_c_ifspec;
  12167. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0037_v0_0_s_ifspec;
  12168. #ifndef __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__
  12169. #define __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__
  12170. /* interface ID3D12DeviceRemovedExtendedDataSettings */
  12171. /* [unique][local][object][uuid] */
  12172. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings;
  12173. #if defined(__cplusplus) && !defined(CINTERFACE)
  12174. MIDL_INTERFACE("82BC481C-6B9B-4030-AEDB-7EE3D1DF1E63")
  12175. ID3D12DeviceRemovedExtendedDataSettings : public IUnknown
  12176. {
  12177. public:
  12178. virtual void STDMETHODCALLTYPE SetAutoBreadcrumbsEnablement(
  12179. D3D12_DRED_ENABLEMENT Enablement) = 0;
  12180. virtual void STDMETHODCALLTYPE SetPageFaultEnablement(
  12181. D3D12_DRED_ENABLEMENT Enablement) = 0;
  12182. virtual void STDMETHODCALLTYPE SetWatsonDumpEnablement(
  12183. D3D12_DRED_ENABLEMENT Enablement) = 0;
  12184. };
  12185. #else /* C style interface */
  12186. typedef struct ID3D12DeviceRemovedExtendedDataSettingsVtbl
  12187. {
  12188. BEGIN_INTERFACE
  12189. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12190. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12191. ID3D12DeviceRemovedExtendedDataSettings * This,
  12192. REFIID riid,
  12193. _COM_Outptr_ void **ppvObject);
  12194. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12195. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12196. ID3D12DeviceRemovedExtendedDataSettings * This);
  12197. DECLSPEC_XFGVIRT(IUnknown, Release)
  12198. ULONG ( STDMETHODCALLTYPE *Release )(
  12199. ID3D12DeviceRemovedExtendedDataSettings * This);
  12200. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement)
  12201. void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )(
  12202. ID3D12DeviceRemovedExtendedDataSettings * This,
  12203. D3D12_DRED_ENABLEMENT Enablement);
  12204. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement)
  12205. void ( STDMETHODCALLTYPE *SetPageFaultEnablement )(
  12206. ID3D12DeviceRemovedExtendedDataSettings * This,
  12207. D3D12_DRED_ENABLEMENT Enablement);
  12208. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement)
  12209. void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )(
  12210. ID3D12DeviceRemovedExtendedDataSettings * This,
  12211. D3D12_DRED_ENABLEMENT Enablement);
  12212. END_INTERFACE
  12213. } ID3D12DeviceRemovedExtendedDataSettingsVtbl;
  12214. interface ID3D12DeviceRemovedExtendedDataSettings
  12215. {
  12216. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettingsVtbl *lpVtbl;
  12217. };
  12218. #ifdef COBJMACROS
  12219. #define ID3D12DeviceRemovedExtendedDataSettings_QueryInterface(This,riid,ppvObject) \
  12220. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12221. #define ID3D12DeviceRemovedExtendedDataSettings_AddRef(This) \
  12222. ( (This)->lpVtbl -> AddRef(This) )
  12223. #define ID3D12DeviceRemovedExtendedDataSettings_Release(This) \
  12224. ( (This)->lpVtbl -> Release(This) )
  12225. #define ID3D12DeviceRemovedExtendedDataSettings_SetAutoBreadcrumbsEnablement(This,Enablement) \
  12226. ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) )
  12227. #define ID3D12DeviceRemovedExtendedDataSettings_SetPageFaultEnablement(This,Enablement) \
  12228. ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) )
  12229. #define ID3D12DeviceRemovedExtendedDataSettings_SetWatsonDumpEnablement(This,Enablement) \
  12230. ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) )
  12231. #endif /* COBJMACROS */
  12232. #endif /* C style interface */
  12233. #endif /* __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__ */
  12234. #ifndef __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__
  12235. #define __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__
  12236. /* interface ID3D12DeviceRemovedExtendedDataSettings1 */
  12237. /* [unique][local][object][uuid] */
  12238. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings1;
  12239. #if defined(__cplusplus) && !defined(CINTERFACE)
  12240. MIDL_INTERFACE("DBD5AE51-3317-4F0A-ADF9-1D7CEDCAAE0B")
  12241. ID3D12DeviceRemovedExtendedDataSettings1 : public ID3D12DeviceRemovedExtendedDataSettings
  12242. {
  12243. public:
  12244. virtual void STDMETHODCALLTYPE SetBreadcrumbContextEnablement(
  12245. D3D12_DRED_ENABLEMENT Enablement) = 0;
  12246. };
  12247. #else /* C style interface */
  12248. typedef struct ID3D12DeviceRemovedExtendedDataSettings1Vtbl
  12249. {
  12250. BEGIN_INTERFACE
  12251. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12252. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12253. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  12254. REFIID riid,
  12255. _COM_Outptr_ void **ppvObject);
  12256. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12257. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12258. ID3D12DeviceRemovedExtendedDataSettings1 * This);
  12259. DECLSPEC_XFGVIRT(IUnknown, Release)
  12260. ULONG ( STDMETHODCALLTYPE *Release )(
  12261. ID3D12DeviceRemovedExtendedDataSettings1 * This);
  12262. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement)
  12263. void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )(
  12264. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  12265. D3D12_DRED_ENABLEMENT Enablement);
  12266. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement)
  12267. void ( STDMETHODCALLTYPE *SetPageFaultEnablement )(
  12268. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  12269. D3D12_DRED_ENABLEMENT Enablement);
  12270. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement)
  12271. void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )(
  12272. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  12273. D3D12_DRED_ENABLEMENT Enablement);
  12274. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings1, SetBreadcrumbContextEnablement)
  12275. void ( STDMETHODCALLTYPE *SetBreadcrumbContextEnablement )(
  12276. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  12277. D3D12_DRED_ENABLEMENT Enablement);
  12278. END_INTERFACE
  12279. } ID3D12DeviceRemovedExtendedDataSettings1Vtbl;
  12280. interface ID3D12DeviceRemovedExtendedDataSettings1
  12281. {
  12282. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettings1Vtbl *lpVtbl;
  12283. };
  12284. #ifdef COBJMACROS
  12285. #define ID3D12DeviceRemovedExtendedDataSettings1_QueryInterface(This,riid,ppvObject) \
  12286. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12287. #define ID3D12DeviceRemovedExtendedDataSettings1_AddRef(This) \
  12288. ( (This)->lpVtbl -> AddRef(This) )
  12289. #define ID3D12DeviceRemovedExtendedDataSettings1_Release(This) \
  12290. ( (This)->lpVtbl -> Release(This) )
  12291. #define ID3D12DeviceRemovedExtendedDataSettings1_SetAutoBreadcrumbsEnablement(This,Enablement) \
  12292. ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) )
  12293. #define ID3D12DeviceRemovedExtendedDataSettings1_SetPageFaultEnablement(This,Enablement) \
  12294. ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) )
  12295. #define ID3D12DeviceRemovedExtendedDataSettings1_SetWatsonDumpEnablement(This,Enablement) \
  12296. ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) )
  12297. #define ID3D12DeviceRemovedExtendedDataSettings1_SetBreadcrumbContextEnablement(This,Enablement) \
  12298. ( (This)->lpVtbl -> SetBreadcrumbContextEnablement(This,Enablement) )
  12299. #endif /* COBJMACROS */
  12300. #endif /* C style interface */
  12301. #endif /* __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__ */
  12302. #ifndef __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__
  12303. #define __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__
  12304. /* interface ID3D12DeviceRemovedExtendedDataSettings2 */
  12305. /* [unique][local][object][uuid] */
  12306. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings2;
  12307. #if defined(__cplusplus) && !defined(CINTERFACE)
  12308. MIDL_INTERFACE("61552388-01ab-4008-a436-83db189566ea")
  12309. ID3D12DeviceRemovedExtendedDataSettings2 : public ID3D12DeviceRemovedExtendedDataSettings1
  12310. {
  12311. public:
  12312. virtual void STDMETHODCALLTYPE UseMarkersOnlyAutoBreadcrumbs(
  12313. BOOL MarkersOnly) = 0;
  12314. };
  12315. #else /* C style interface */
  12316. typedef struct ID3D12DeviceRemovedExtendedDataSettings2Vtbl
  12317. {
  12318. BEGIN_INTERFACE
  12319. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12320. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12321. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12322. REFIID riid,
  12323. _COM_Outptr_ void **ppvObject);
  12324. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12325. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12326. ID3D12DeviceRemovedExtendedDataSettings2 * This);
  12327. DECLSPEC_XFGVIRT(IUnknown, Release)
  12328. ULONG ( STDMETHODCALLTYPE *Release )(
  12329. ID3D12DeviceRemovedExtendedDataSettings2 * This);
  12330. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement)
  12331. void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )(
  12332. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12333. D3D12_DRED_ENABLEMENT Enablement);
  12334. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement)
  12335. void ( STDMETHODCALLTYPE *SetPageFaultEnablement )(
  12336. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12337. D3D12_DRED_ENABLEMENT Enablement);
  12338. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement)
  12339. void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )(
  12340. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12341. D3D12_DRED_ENABLEMENT Enablement);
  12342. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings1, SetBreadcrumbContextEnablement)
  12343. void ( STDMETHODCALLTYPE *SetBreadcrumbContextEnablement )(
  12344. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12345. D3D12_DRED_ENABLEMENT Enablement);
  12346. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings2, UseMarkersOnlyAutoBreadcrumbs)
  12347. void ( STDMETHODCALLTYPE *UseMarkersOnlyAutoBreadcrumbs )(
  12348. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  12349. BOOL MarkersOnly);
  12350. END_INTERFACE
  12351. } ID3D12DeviceRemovedExtendedDataSettings2Vtbl;
  12352. interface ID3D12DeviceRemovedExtendedDataSettings2
  12353. {
  12354. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettings2Vtbl *lpVtbl;
  12355. };
  12356. #ifdef COBJMACROS
  12357. #define ID3D12DeviceRemovedExtendedDataSettings2_QueryInterface(This,riid,ppvObject) \
  12358. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12359. #define ID3D12DeviceRemovedExtendedDataSettings2_AddRef(This) \
  12360. ( (This)->lpVtbl -> AddRef(This) )
  12361. #define ID3D12DeviceRemovedExtendedDataSettings2_Release(This) \
  12362. ( (This)->lpVtbl -> Release(This) )
  12363. #define ID3D12DeviceRemovedExtendedDataSettings2_SetAutoBreadcrumbsEnablement(This,Enablement) \
  12364. ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) )
  12365. #define ID3D12DeviceRemovedExtendedDataSettings2_SetPageFaultEnablement(This,Enablement) \
  12366. ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) )
  12367. #define ID3D12DeviceRemovedExtendedDataSettings2_SetWatsonDumpEnablement(This,Enablement) \
  12368. ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) )
  12369. #define ID3D12DeviceRemovedExtendedDataSettings2_SetBreadcrumbContextEnablement(This,Enablement) \
  12370. ( (This)->lpVtbl -> SetBreadcrumbContextEnablement(This,Enablement) )
  12371. #define ID3D12DeviceRemovedExtendedDataSettings2_UseMarkersOnlyAutoBreadcrumbs(This,MarkersOnly) \
  12372. ( (This)->lpVtbl -> UseMarkersOnlyAutoBreadcrumbs(This,MarkersOnly) )
  12373. #endif /* COBJMACROS */
  12374. #endif /* C style interface */
  12375. #endif /* __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__ */
  12376. #ifndef __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__
  12377. #define __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__
  12378. /* interface ID3D12DeviceRemovedExtendedData */
  12379. /* [unique][local][object][uuid] */
  12380. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData;
  12381. #if defined(__cplusplus) && !defined(CINTERFACE)
  12382. MIDL_INTERFACE("98931D33-5AE8-4791-AA3C-1A73A2934E71")
  12383. ID3D12DeviceRemovedExtendedData : public IUnknown
  12384. {
  12385. public:
  12386. virtual HRESULT STDMETHODCALLTYPE GetAutoBreadcrumbsOutput(
  12387. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput) = 0;
  12388. virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput(
  12389. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput) = 0;
  12390. };
  12391. #else /* C style interface */
  12392. typedef struct ID3D12DeviceRemovedExtendedDataVtbl
  12393. {
  12394. BEGIN_INTERFACE
  12395. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12396. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12397. ID3D12DeviceRemovedExtendedData * This,
  12398. REFIID riid,
  12399. _COM_Outptr_ void **ppvObject);
  12400. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12401. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12402. ID3D12DeviceRemovedExtendedData * This);
  12403. DECLSPEC_XFGVIRT(IUnknown, Release)
  12404. ULONG ( STDMETHODCALLTYPE *Release )(
  12405. ID3D12DeviceRemovedExtendedData * This);
  12406. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput)
  12407. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )(
  12408. ID3D12DeviceRemovedExtendedData * This,
  12409. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput);
  12410. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput)
  12411. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )(
  12412. ID3D12DeviceRemovedExtendedData * This,
  12413. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput);
  12414. END_INTERFACE
  12415. } ID3D12DeviceRemovedExtendedDataVtbl;
  12416. interface ID3D12DeviceRemovedExtendedData
  12417. {
  12418. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataVtbl *lpVtbl;
  12419. };
  12420. #ifdef COBJMACROS
  12421. #define ID3D12DeviceRemovedExtendedData_QueryInterface(This,riid,ppvObject) \
  12422. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12423. #define ID3D12DeviceRemovedExtendedData_AddRef(This) \
  12424. ( (This)->lpVtbl -> AddRef(This) )
  12425. #define ID3D12DeviceRemovedExtendedData_Release(This) \
  12426. ( (This)->lpVtbl -> Release(This) )
  12427. #define ID3D12DeviceRemovedExtendedData_GetAutoBreadcrumbsOutput(This,pOutput) \
  12428. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) )
  12429. #define ID3D12DeviceRemovedExtendedData_GetPageFaultAllocationOutput(This,pOutput) \
  12430. ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) )
  12431. #endif /* COBJMACROS */
  12432. #endif /* C style interface */
  12433. #endif /* __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__ */
  12434. #ifndef __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__
  12435. #define __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__
  12436. /* interface ID3D12DeviceRemovedExtendedData1 */
  12437. /* [unique][local][object][uuid] */
  12438. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData1;
  12439. #if defined(__cplusplus) && !defined(CINTERFACE)
  12440. MIDL_INTERFACE("9727A022-CF1D-4DDA-9EBA-EFFA653FC506")
  12441. ID3D12DeviceRemovedExtendedData1 : public ID3D12DeviceRemovedExtendedData
  12442. {
  12443. public:
  12444. virtual HRESULT STDMETHODCALLTYPE GetAutoBreadcrumbsOutput1(
  12445. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput) = 0;
  12446. virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput1(
  12447. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput) = 0;
  12448. };
  12449. #else /* C style interface */
  12450. typedef struct ID3D12DeviceRemovedExtendedData1Vtbl
  12451. {
  12452. BEGIN_INTERFACE
  12453. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12454. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12455. ID3D12DeviceRemovedExtendedData1 * This,
  12456. REFIID riid,
  12457. _COM_Outptr_ void **ppvObject);
  12458. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12459. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12460. ID3D12DeviceRemovedExtendedData1 * This);
  12461. DECLSPEC_XFGVIRT(IUnknown, Release)
  12462. ULONG ( STDMETHODCALLTYPE *Release )(
  12463. ID3D12DeviceRemovedExtendedData1 * This);
  12464. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput)
  12465. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )(
  12466. ID3D12DeviceRemovedExtendedData1 * This,
  12467. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput);
  12468. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput)
  12469. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )(
  12470. ID3D12DeviceRemovedExtendedData1 * This,
  12471. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput);
  12472. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetAutoBreadcrumbsOutput1)
  12473. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput1 )(
  12474. ID3D12DeviceRemovedExtendedData1 * This,
  12475. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput);
  12476. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetPageFaultAllocationOutput1)
  12477. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput1 )(
  12478. ID3D12DeviceRemovedExtendedData1 * This,
  12479. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput);
  12480. END_INTERFACE
  12481. } ID3D12DeviceRemovedExtendedData1Vtbl;
  12482. interface ID3D12DeviceRemovedExtendedData1
  12483. {
  12484. CONST_VTBL struct ID3D12DeviceRemovedExtendedData1Vtbl *lpVtbl;
  12485. };
  12486. #ifdef COBJMACROS
  12487. #define ID3D12DeviceRemovedExtendedData1_QueryInterface(This,riid,ppvObject) \
  12488. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12489. #define ID3D12DeviceRemovedExtendedData1_AddRef(This) \
  12490. ( (This)->lpVtbl -> AddRef(This) )
  12491. #define ID3D12DeviceRemovedExtendedData1_Release(This) \
  12492. ( (This)->lpVtbl -> Release(This) )
  12493. #define ID3D12DeviceRemovedExtendedData1_GetAutoBreadcrumbsOutput(This,pOutput) \
  12494. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) )
  12495. #define ID3D12DeviceRemovedExtendedData1_GetPageFaultAllocationOutput(This,pOutput) \
  12496. ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) )
  12497. #define ID3D12DeviceRemovedExtendedData1_GetAutoBreadcrumbsOutput1(This,pOutput) \
  12498. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput1(This,pOutput) )
  12499. #define ID3D12DeviceRemovedExtendedData1_GetPageFaultAllocationOutput1(This,pOutput) \
  12500. ( (This)->lpVtbl -> GetPageFaultAllocationOutput1(This,pOutput) )
  12501. #endif /* COBJMACROS */
  12502. #endif /* C style interface */
  12503. #endif /* __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__ */
  12504. #ifndef __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__
  12505. #define __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__
  12506. /* interface ID3D12DeviceRemovedExtendedData2 */
  12507. /* [unique][local][object][uuid] */
  12508. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData2;
  12509. #if defined(__cplusplus) && !defined(CINTERFACE)
  12510. MIDL_INTERFACE("67FC5816-E4CA-4915-BF18-42541272DA54")
  12511. ID3D12DeviceRemovedExtendedData2 : public ID3D12DeviceRemovedExtendedData1
  12512. {
  12513. public:
  12514. virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput2(
  12515. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT2 *pOutput) = 0;
  12516. virtual D3D12_DRED_DEVICE_STATE STDMETHODCALLTYPE GetDeviceState( void) = 0;
  12517. };
  12518. #else /* C style interface */
  12519. typedef struct ID3D12DeviceRemovedExtendedData2Vtbl
  12520. {
  12521. BEGIN_INTERFACE
  12522. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12523. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12524. ID3D12DeviceRemovedExtendedData2 * This,
  12525. REFIID riid,
  12526. _COM_Outptr_ void **ppvObject);
  12527. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12528. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12529. ID3D12DeviceRemovedExtendedData2 * This);
  12530. DECLSPEC_XFGVIRT(IUnknown, Release)
  12531. ULONG ( STDMETHODCALLTYPE *Release )(
  12532. ID3D12DeviceRemovedExtendedData2 * This);
  12533. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput)
  12534. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )(
  12535. ID3D12DeviceRemovedExtendedData2 * This,
  12536. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput);
  12537. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput)
  12538. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )(
  12539. ID3D12DeviceRemovedExtendedData2 * This,
  12540. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput);
  12541. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetAutoBreadcrumbsOutput1)
  12542. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput1 )(
  12543. ID3D12DeviceRemovedExtendedData2 * This,
  12544. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput);
  12545. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetPageFaultAllocationOutput1)
  12546. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput1 )(
  12547. ID3D12DeviceRemovedExtendedData2 * This,
  12548. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput);
  12549. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData2, GetPageFaultAllocationOutput2)
  12550. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput2 )(
  12551. ID3D12DeviceRemovedExtendedData2 * This,
  12552. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT2 *pOutput);
  12553. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData2, GetDeviceState)
  12554. D3D12_DRED_DEVICE_STATE ( STDMETHODCALLTYPE *GetDeviceState )(
  12555. ID3D12DeviceRemovedExtendedData2 * This);
  12556. END_INTERFACE
  12557. } ID3D12DeviceRemovedExtendedData2Vtbl;
  12558. interface ID3D12DeviceRemovedExtendedData2
  12559. {
  12560. CONST_VTBL struct ID3D12DeviceRemovedExtendedData2Vtbl *lpVtbl;
  12561. };
  12562. #ifdef COBJMACROS
  12563. #define ID3D12DeviceRemovedExtendedData2_QueryInterface(This,riid,ppvObject) \
  12564. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12565. #define ID3D12DeviceRemovedExtendedData2_AddRef(This) \
  12566. ( (This)->lpVtbl -> AddRef(This) )
  12567. #define ID3D12DeviceRemovedExtendedData2_Release(This) \
  12568. ( (This)->lpVtbl -> Release(This) )
  12569. #define ID3D12DeviceRemovedExtendedData2_GetAutoBreadcrumbsOutput(This,pOutput) \
  12570. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) )
  12571. #define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput(This,pOutput) \
  12572. ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) )
  12573. #define ID3D12DeviceRemovedExtendedData2_GetAutoBreadcrumbsOutput1(This,pOutput) \
  12574. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput1(This,pOutput) )
  12575. #define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput1(This,pOutput) \
  12576. ( (This)->lpVtbl -> GetPageFaultAllocationOutput1(This,pOutput) )
  12577. #define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput2(This,pOutput) \
  12578. ( (This)->lpVtbl -> GetPageFaultAllocationOutput2(This,pOutput) )
  12579. #define ID3D12DeviceRemovedExtendedData2_GetDeviceState(This) \
  12580. ( (This)->lpVtbl -> GetDeviceState(This) )
  12581. #endif /* COBJMACROS */
  12582. #endif /* C style interface */
  12583. #endif /* __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__ */
  12584. /* interface __MIDL_itf_d3d12_0000_0043 */
  12585. /* [local] */
  12586. typedef
  12587. enum D3D12_BACKGROUND_PROCESSING_MODE
  12588. {
  12589. D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED = 0,
  12590. D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS = ( D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED + 1 ) ,
  12591. D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK = ( D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS + 1 ) ,
  12592. D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_PROFILING_BY_SYSTEM = ( D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK + 1 )
  12593. } D3D12_BACKGROUND_PROCESSING_MODE;
  12594. typedef
  12595. enum D3D12_MEASUREMENTS_ACTION
  12596. {
  12597. D3D12_MEASUREMENTS_ACTION_KEEP_ALL = 0,
  12598. D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS = ( D3D12_MEASUREMENTS_ACTION_KEEP_ALL + 1 ) ,
  12599. D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY = ( D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS + 1 ) ,
  12600. D3D12_MEASUREMENTS_ACTION_DISCARD_PREVIOUS = ( D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY + 1 )
  12601. } D3D12_MEASUREMENTS_ACTION;
  12602. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0043_v0_0_c_ifspec;
  12603. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0043_v0_0_s_ifspec;
  12604. #ifndef __ID3D12Device6_INTERFACE_DEFINED__
  12605. #define __ID3D12Device6_INTERFACE_DEFINED__
  12606. /* interface ID3D12Device6 */
  12607. /* [unique][local][object][uuid] */
  12608. EXTERN_C const IID IID_ID3D12Device6;
  12609. #if defined(__cplusplus) && !defined(CINTERFACE)
  12610. MIDL_INTERFACE("c70b221b-40e4-4a17-89af-025a0727a6dc")
  12611. ID3D12Device6 : public ID3D12Device5
  12612. {
  12613. public:
  12614. virtual HRESULT STDMETHODCALLTYPE SetBackgroundProcessingMode(
  12615. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  12616. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  12617. _In_opt_ HANDLE hEventToSignalUponCompletion,
  12618. _Out_opt_ BOOL *pbFurtherMeasurementsDesired) = 0;
  12619. };
  12620. #else /* C style interface */
  12621. typedef struct ID3D12Device6Vtbl
  12622. {
  12623. BEGIN_INTERFACE
  12624. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12625. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12626. ID3D12Device6 * This,
  12627. REFIID riid,
  12628. _COM_Outptr_ void **ppvObject);
  12629. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12630. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12631. ID3D12Device6 * This);
  12632. DECLSPEC_XFGVIRT(IUnknown, Release)
  12633. ULONG ( STDMETHODCALLTYPE *Release )(
  12634. ID3D12Device6 * This);
  12635. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  12636. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  12637. ID3D12Device6 * This,
  12638. _In_ REFGUID guid,
  12639. _Inout_ UINT *pDataSize,
  12640. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  12641. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  12642. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  12643. ID3D12Device6 * This,
  12644. _In_ REFGUID guid,
  12645. _In_ UINT DataSize,
  12646. _In_reads_bytes_opt_( DataSize ) const void *pData);
  12647. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  12648. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  12649. ID3D12Device6 * This,
  12650. _In_ REFGUID guid,
  12651. _In_opt_ const IUnknown *pData);
  12652. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  12653. HRESULT ( STDMETHODCALLTYPE *SetName )(
  12654. ID3D12Device6 * This,
  12655. _In_z_ LPCWSTR Name);
  12656. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  12657. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  12658. ID3D12Device6 * This);
  12659. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  12660. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  12661. ID3D12Device6 * This,
  12662. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  12663. REFIID riid,
  12664. _COM_Outptr_ void **ppCommandQueue);
  12665. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  12666. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  12667. ID3D12Device6 * This,
  12668. _In_ D3D12_COMMAND_LIST_TYPE type,
  12669. REFIID riid,
  12670. _COM_Outptr_ void **ppCommandAllocator);
  12671. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  12672. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  12673. ID3D12Device6 * This,
  12674. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  12675. REFIID riid,
  12676. _COM_Outptr_ void **ppPipelineState);
  12677. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  12678. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  12679. ID3D12Device6 * This,
  12680. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  12681. REFIID riid,
  12682. _COM_Outptr_ void **ppPipelineState);
  12683. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  12684. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  12685. ID3D12Device6 * This,
  12686. _In_ UINT nodeMask,
  12687. _In_ D3D12_COMMAND_LIST_TYPE type,
  12688. _In_ ID3D12CommandAllocator *pCommandAllocator,
  12689. _In_opt_ ID3D12PipelineState *pInitialState,
  12690. REFIID riid,
  12691. _COM_Outptr_ void **ppCommandList);
  12692. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  12693. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  12694. ID3D12Device6 * This,
  12695. D3D12_FEATURE Feature,
  12696. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  12697. UINT FeatureSupportDataSize);
  12698. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  12699. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  12700. ID3D12Device6 * This,
  12701. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  12702. REFIID riid,
  12703. _COM_Outptr_ void **ppvHeap);
  12704. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  12705. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  12706. ID3D12Device6 * This,
  12707. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  12708. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  12709. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  12710. ID3D12Device6 * This,
  12711. _In_ UINT nodeMask,
  12712. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  12713. _In_ SIZE_T blobLengthInBytes,
  12714. REFIID riid,
  12715. _COM_Outptr_ void **ppvRootSignature);
  12716. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  12717. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  12718. ID3D12Device6 * This,
  12719. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  12720. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12721. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  12722. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  12723. ID3D12Device6 * This,
  12724. _In_opt_ ID3D12Resource *pResource,
  12725. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  12726. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12727. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  12728. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  12729. ID3D12Device6 * This,
  12730. _In_opt_ ID3D12Resource *pResource,
  12731. _In_opt_ ID3D12Resource *pCounterResource,
  12732. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  12733. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12734. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  12735. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  12736. ID3D12Device6 * This,
  12737. _In_opt_ ID3D12Resource *pResource,
  12738. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  12739. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12740. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  12741. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  12742. ID3D12Device6 * This,
  12743. _In_opt_ ID3D12Resource *pResource,
  12744. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  12745. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12746. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  12747. void ( STDMETHODCALLTYPE *CreateSampler )(
  12748. ID3D12Device6 * This,
  12749. _In_ const D3D12_SAMPLER_DESC *pDesc,
  12750. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12751. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  12752. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  12753. ID3D12Device6 * This,
  12754. _In_ UINT NumDestDescriptorRanges,
  12755. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  12756. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  12757. _In_ UINT NumSrcDescriptorRanges,
  12758. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  12759. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  12760. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  12761. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  12762. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  12763. ID3D12Device6 * This,
  12764. _In_ UINT NumDescriptors,
  12765. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  12766. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  12767. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  12768. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  12769. #if !defined(_WIN32)
  12770. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  12771. ID3D12Device6 * This,
  12772. _In_ UINT visibleMask,
  12773. _In_ UINT numResourceDescs,
  12774. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  12775. #else
  12776. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  12777. ID3D12Device6 * This,
  12778. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  12779. _In_ UINT visibleMask,
  12780. _In_ UINT numResourceDescs,
  12781. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  12782. #endif
  12783. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  12784. #if !defined(_WIN32)
  12785. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  12786. ID3D12Device6 * This,
  12787. _In_ UINT nodeMask,
  12788. D3D12_HEAP_TYPE heapType);
  12789. #else
  12790. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  12791. ID3D12Device6 * This,
  12792. D3D12_HEAP_PROPERTIES * RetVal,
  12793. _In_ UINT nodeMask,
  12794. D3D12_HEAP_TYPE heapType);
  12795. #endif
  12796. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  12797. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  12798. ID3D12Device6 * This,
  12799. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  12800. D3D12_HEAP_FLAGS HeapFlags,
  12801. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12802. D3D12_RESOURCE_STATES InitialResourceState,
  12803. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12804. REFIID riidResource,
  12805. _COM_Outptr_opt_ void **ppvResource);
  12806. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  12807. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  12808. ID3D12Device6 * This,
  12809. _In_ const D3D12_HEAP_DESC *pDesc,
  12810. REFIID riid,
  12811. _COM_Outptr_opt_ void **ppvHeap);
  12812. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  12813. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  12814. ID3D12Device6 * This,
  12815. _In_ ID3D12Heap *pHeap,
  12816. UINT64 HeapOffset,
  12817. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12818. D3D12_RESOURCE_STATES InitialState,
  12819. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12820. REFIID riid,
  12821. _COM_Outptr_opt_ void **ppvResource);
  12822. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  12823. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  12824. ID3D12Device6 * This,
  12825. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12826. D3D12_RESOURCE_STATES InitialState,
  12827. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12828. REFIID riid,
  12829. _COM_Outptr_opt_ void **ppvResource);
  12830. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  12831. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  12832. ID3D12Device6 * This,
  12833. _In_ ID3D12DeviceChild *pObject,
  12834. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  12835. DWORD Access,
  12836. _In_opt_ LPCWSTR Name,
  12837. _Out_ HANDLE *pHandle);
  12838. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  12839. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  12840. ID3D12Device6 * This,
  12841. _In_ HANDLE NTHandle,
  12842. REFIID riid,
  12843. _COM_Outptr_opt_ void **ppvObj);
  12844. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  12845. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  12846. ID3D12Device6 * This,
  12847. _In_ LPCWSTR Name,
  12848. DWORD Access,
  12849. /* [annotation][out] */
  12850. _Out_ HANDLE *pNTHandle);
  12851. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  12852. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  12853. ID3D12Device6 * This,
  12854. UINT NumObjects,
  12855. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  12856. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  12857. HRESULT ( STDMETHODCALLTYPE *Evict )(
  12858. ID3D12Device6 * This,
  12859. UINT NumObjects,
  12860. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  12861. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  12862. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  12863. ID3D12Device6 * This,
  12864. UINT64 InitialValue,
  12865. D3D12_FENCE_FLAGS Flags,
  12866. REFIID riid,
  12867. _COM_Outptr_ void **ppFence);
  12868. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  12869. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  12870. ID3D12Device6 * This);
  12871. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  12872. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  12873. ID3D12Device6 * This,
  12874. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  12875. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  12876. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  12877. UINT64 BaseOffset,
  12878. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  12879. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  12880. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  12881. _Out_opt_ UINT64 *pTotalBytes);
  12882. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  12883. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  12884. ID3D12Device6 * This,
  12885. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  12886. REFIID riid,
  12887. _COM_Outptr_opt_ void **ppvHeap);
  12888. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  12889. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  12890. ID3D12Device6 * This,
  12891. BOOL Enable);
  12892. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  12893. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  12894. ID3D12Device6 * This,
  12895. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  12896. _In_opt_ ID3D12RootSignature *pRootSignature,
  12897. REFIID riid,
  12898. _COM_Outptr_opt_ void **ppvCommandSignature);
  12899. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  12900. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  12901. ID3D12Device6 * This,
  12902. _In_ ID3D12Resource *pTiledResource,
  12903. _Out_opt_ UINT *pNumTilesForEntireResource,
  12904. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  12905. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  12906. _Inout_opt_ UINT *pNumSubresourceTilings,
  12907. _In_ UINT FirstSubresourceTilingToGet,
  12908. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  12909. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  12910. #if !defined(_WIN32)
  12911. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  12912. ID3D12Device6 * This);
  12913. #else
  12914. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  12915. ID3D12Device6 * This,
  12916. LUID * RetVal);
  12917. #endif
  12918. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  12919. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  12920. ID3D12Device6 * This,
  12921. _In_reads_(BlobLength) const void *pLibraryBlob,
  12922. SIZE_T BlobLength,
  12923. REFIID riid,
  12924. _COM_Outptr_ void **ppPipelineLibrary);
  12925. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  12926. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  12927. ID3D12Device6 * This,
  12928. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  12929. _In_reads_(NumFences) const UINT64 *pFenceValues,
  12930. UINT NumFences,
  12931. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  12932. HANDLE hEvent);
  12933. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  12934. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  12935. ID3D12Device6 * This,
  12936. UINT NumObjects,
  12937. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  12938. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  12939. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  12940. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  12941. ID3D12Device6 * This,
  12942. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  12943. REFIID riid,
  12944. _COM_Outptr_ void **ppPipelineState);
  12945. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  12946. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  12947. ID3D12Device6 * This,
  12948. _In_ const void *pAddress,
  12949. REFIID riid,
  12950. _COM_Outptr_ void **ppvHeap);
  12951. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  12952. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  12953. ID3D12Device6 * This,
  12954. _In_ HANDLE hFileMapping,
  12955. REFIID riid,
  12956. _COM_Outptr_ void **ppvHeap);
  12957. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  12958. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  12959. ID3D12Device6 * This,
  12960. D3D12_RESIDENCY_FLAGS Flags,
  12961. UINT NumObjects,
  12962. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  12963. _In_ ID3D12Fence *pFenceToSignal,
  12964. UINT64 FenceValueToSignal);
  12965. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  12966. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  12967. ID3D12Device6 * This,
  12968. _In_ UINT nodeMask,
  12969. _In_ D3D12_COMMAND_LIST_TYPE type,
  12970. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  12971. REFIID riid,
  12972. _COM_Outptr_ void **ppCommandList);
  12973. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  12974. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  12975. ID3D12Device6 * This,
  12976. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  12977. _In_ REFIID riid,
  12978. _COM_Outptr_ void **ppSession);
  12979. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  12980. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  12981. ID3D12Device6 * This,
  12982. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  12983. D3D12_HEAP_FLAGS HeapFlags,
  12984. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12985. D3D12_RESOURCE_STATES InitialResourceState,
  12986. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12987. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  12988. REFIID riidResource,
  12989. _COM_Outptr_opt_ void **ppvResource);
  12990. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  12991. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  12992. ID3D12Device6 * This,
  12993. _In_ const D3D12_HEAP_DESC *pDesc,
  12994. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  12995. REFIID riid,
  12996. _COM_Outptr_opt_ void **ppvHeap);
  12997. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  12998. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  12999. ID3D12Device6 * This,
  13000. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13001. D3D12_RESOURCE_STATES InitialState,
  13002. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13003. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13004. REFIID riid,
  13005. _COM_Outptr_opt_ void **ppvResource);
  13006. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  13007. #if !defined(_WIN32)
  13008. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  13009. ID3D12Device6 * This,
  13010. UINT visibleMask,
  13011. UINT numResourceDescs,
  13012. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  13013. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13014. #else
  13015. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  13016. ID3D12Device6 * This,
  13017. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13018. UINT visibleMask,
  13019. UINT numResourceDescs,
  13020. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  13021. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13022. #endif
  13023. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  13024. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  13025. ID3D12Device6 * This,
  13026. _In_ ID3D12LifetimeOwner *pOwner,
  13027. REFIID riid,
  13028. _COM_Outptr_ void **ppvTracker);
  13029. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  13030. void ( STDMETHODCALLTYPE *RemoveDevice )(
  13031. ID3D12Device6 * This);
  13032. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  13033. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  13034. ID3D12Device6 * This,
  13035. _Inout_ UINT *pNumMetaCommands,
  13036. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  13037. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  13038. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  13039. ID3D12Device6 * This,
  13040. _In_ REFGUID CommandId,
  13041. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  13042. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  13043. _Inout_ UINT *pParameterCount,
  13044. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  13045. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  13046. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  13047. ID3D12Device6 * This,
  13048. _In_ REFGUID CommandId,
  13049. _In_ UINT NodeMask,
  13050. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  13051. _In_ SIZE_T CreationParametersDataSizeInBytes,
  13052. REFIID riid,
  13053. _COM_Outptr_ void **ppMetaCommand);
  13054. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  13055. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  13056. ID3D12Device6 * This,
  13057. const D3D12_STATE_OBJECT_DESC *pDesc,
  13058. REFIID riid,
  13059. _COM_Outptr_ void **ppStateObject);
  13060. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  13061. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  13062. ID3D12Device6 * This,
  13063. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  13064. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  13065. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  13066. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  13067. ID3D12Device6 * This,
  13068. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  13069. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  13070. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  13071. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  13072. ID3D12Device6 * This,
  13073. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  13074. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  13075. _In_opt_ HANDLE hEventToSignalUponCompletion,
  13076. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  13077. END_INTERFACE
  13078. } ID3D12Device6Vtbl;
  13079. interface ID3D12Device6
  13080. {
  13081. CONST_VTBL struct ID3D12Device6Vtbl *lpVtbl;
  13082. };
  13083. #ifdef COBJMACROS
  13084. #define ID3D12Device6_QueryInterface(This,riid,ppvObject) \
  13085. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  13086. #define ID3D12Device6_AddRef(This) \
  13087. ( (This)->lpVtbl -> AddRef(This) )
  13088. #define ID3D12Device6_Release(This) \
  13089. ( (This)->lpVtbl -> Release(This) )
  13090. #define ID3D12Device6_GetPrivateData(This,guid,pDataSize,pData) \
  13091. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  13092. #define ID3D12Device6_SetPrivateData(This,guid,DataSize,pData) \
  13093. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  13094. #define ID3D12Device6_SetPrivateDataInterface(This,guid,pData) \
  13095. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  13096. #define ID3D12Device6_SetName(This,Name) \
  13097. ( (This)->lpVtbl -> SetName(This,Name) )
  13098. #define ID3D12Device6_GetNodeCount(This) \
  13099. ( (This)->lpVtbl -> GetNodeCount(This) )
  13100. #define ID3D12Device6_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  13101. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  13102. #define ID3D12Device6_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  13103. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  13104. #define ID3D12Device6_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  13105. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  13106. #define ID3D12Device6_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  13107. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  13108. #define ID3D12Device6_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  13109. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  13110. #define ID3D12Device6_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  13111. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  13112. #define ID3D12Device6_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  13113. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  13114. #define ID3D12Device6_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  13115. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  13116. #define ID3D12Device6_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  13117. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  13118. #define ID3D12Device6_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  13119. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  13120. #define ID3D12Device6_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  13121. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  13122. #define ID3D12Device6_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  13123. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  13124. #define ID3D12Device6_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  13125. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  13126. #define ID3D12Device6_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  13127. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  13128. #define ID3D12Device6_CreateSampler(This,pDesc,DestDescriptor) \
  13129. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  13130. #define ID3D12Device6_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  13131. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  13132. #define ID3D12Device6_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  13133. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  13134. #if !defined(_WIN32)
  13135. #define ID3D12Device6_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  13136. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  13137. #else
  13138. #define ID3D12Device6_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  13139. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  13140. #endif
  13141. #if !defined(_WIN32)
  13142. #define ID3D12Device6_GetCustomHeapProperties(This,nodeMask,heapType) \
  13143. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  13144. #else
  13145. #define ID3D12Device6_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  13146. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  13147. #endif
  13148. #define ID3D12Device6_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  13149. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  13150. #define ID3D12Device6_CreateHeap(This,pDesc,riid,ppvHeap) \
  13151. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  13152. #define ID3D12Device6_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  13153. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  13154. #define ID3D12Device6_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  13155. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  13156. #define ID3D12Device6_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  13157. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  13158. #define ID3D12Device6_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  13159. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  13160. #define ID3D12Device6_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  13161. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  13162. #define ID3D12Device6_MakeResident(This,NumObjects,ppObjects) \
  13163. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  13164. #define ID3D12Device6_Evict(This,NumObjects,ppObjects) \
  13165. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  13166. #define ID3D12Device6_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  13167. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  13168. #define ID3D12Device6_GetDeviceRemovedReason(This) \
  13169. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  13170. #define ID3D12Device6_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  13171. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  13172. #define ID3D12Device6_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  13173. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  13174. #define ID3D12Device6_SetStablePowerState(This,Enable) \
  13175. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  13176. #define ID3D12Device6_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  13177. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  13178. #define ID3D12Device6_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  13179. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  13180. #if !defined(_WIN32)
  13181. #define ID3D12Device6_GetAdapterLuid(This) \
  13182. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  13183. #else
  13184. #define ID3D12Device6_GetAdapterLuid(This,RetVal) \
  13185. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  13186. #endif
  13187. #define ID3D12Device6_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  13188. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  13189. #define ID3D12Device6_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  13190. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  13191. #define ID3D12Device6_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  13192. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  13193. #define ID3D12Device6_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  13194. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  13195. #define ID3D12Device6_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  13196. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  13197. #define ID3D12Device6_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  13198. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  13199. #define ID3D12Device6_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  13200. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  13201. #define ID3D12Device6_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  13202. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  13203. #define ID3D12Device6_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  13204. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  13205. #define ID3D12Device6_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  13206. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  13207. #define ID3D12Device6_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  13208. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  13209. #define ID3D12Device6_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  13210. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  13211. #if !defined(_WIN32)
  13212. #define ID3D12Device6_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  13213. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  13214. #else
  13215. #define ID3D12Device6_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  13216. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  13217. #endif
  13218. #define ID3D12Device6_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  13219. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  13220. #define ID3D12Device6_RemoveDevice(This) \
  13221. ( (This)->lpVtbl -> RemoveDevice(This) )
  13222. #define ID3D12Device6_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  13223. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  13224. #define ID3D12Device6_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  13225. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  13226. #define ID3D12Device6_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  13227. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  13228. #define ID3D12Device6_CreateStateObject(This,pDesc,riid,ppStateObject) \
  13229. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  13230. #define ID3D12Device6_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  13231. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  13232. #define ID3D12Device6_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  13233. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  13234. #define ID3D12Device6_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  13235. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  13236. #endif /* COBJMACROS */
  13237. #endif /* C style interface */
  13238. #endif /* __ID3D12Device6_INTERFACE_DEFINED__ */
  13239. /* interface __MIDL_itf_d3d12_0000_0044 */
  13240. /* [local] */
  13241. DEFINE_GUID(D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED, 0x62B0084E, 0xC70E, 0x4DAA, 0xA1, 0x09, 0x30, 0xFF, 0x8D, 0x5A, 0x04, 0x82);
  13242. typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT
  13243. {
  13244. UINT NodeIndex;
  13245. UINT Count;
  13246. } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT;
  13247. typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES
  13248. {
  13249. UINT NodeIndex;
  13250. UINT Count;
  13251. GUID *pTypes;
  13252. } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES;
  13253. typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC1
  13254. {
  13255. UINT NodeMask;
  13256. D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags;
  13257. GUID ProtectionType;
  13258. } D3D12_PROTECTED_RESOURCE_SESSION_DESC1;
  13259. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0044_v0_0_c_ifspec;
  13260. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0044_v0_0_s_ifspec;
  13261. #ifndef __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__
  13262. #define __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__
  13263. /* interface ID3D12ProtectedResourceSession1 */
  13264. /* [unique][local][object][uuid] */
  13265. EXTERN_C const IID IID_ID3D12ProtectedResourceSession1;
  13266. #if defined(__cplusplus) && !defined(CINTERFACE)
  13267. MIDL_INTERFACE("D6F12DD6-76FB-406E-8961-4296EEFC0409")
  13268. ID3D12ProtectedResourceSession1 : public ID3D12ProtectedResourceSession
  13269. {
  13270. public:
  13271. #if defined(_MSC_VER) || !defined(_WIN32)
  13272. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC1 STDMETHODCALLTYPE GetDesc1( void) = 0;
  13273. #else
  13274. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *STDMETHODCALLTYPE GetDesc1(
  13275. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 * RetVal) = 0;
  13276. #endif
  13277. };
  13278. #else /* C style interface */
  13279. typedef struct ID3D12ProtectedResourceSession1Vtbl
  13280. {
  13281. BEGIN_INTERFACE
  13282. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  13283. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13284. ID3D12ProtectedResourceSession1 * This,
  13285. REFIID riid,
  13286. _COM_Outptr_ void **ppvObject);
  13287. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  13288. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13289. ID3D12ProtectedResourceSession1 * This);
  13290. DECLSPEC_XFGVIRT(IUnknown, Release)
  13291. ULONG ( STDMETHODCALLTYPE *Release )(
  13292. ID3D12ProtectedResourceSession1 * This);
  13293. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  13294. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  13295. ID3D12ProtectedResourceSession1 * This,
  13296. _In_ REFGUID guid,
  13297. _Inout_ UINT *pDataSize,
  13298. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  13299. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  13300. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  13301. ID3D12ProtectedResourceSession1 * This,
  13302. _In_ REFGUID guid,
  13303. _In_ UINT DataSize,
  13304. _In_reads_bytes_opt_( DataSize ) const void *pData);
  13305. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  13306. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  13307. ID3D12ProtectedResourceSession1 * This,
  13308. _In_ REFGUID guid,
  13309. _In_opt_ const IUnknown *pData);
  13310. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  13311. HRESULT ( STDMETHODCALLTYPE *SetName )(
  13312. ID3D12ProtectedResourceSession1 * This,
  13313. _In_z_ LPCWSTR Name);
  13314. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  13315. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  13316. ID3D12ProtectedResourceSession1 * This,
  13317. REFIID riid,
  13318. _COM_Outptr_opt_ void **ppvDevice);
  13319. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence)
  13320. HRESULT ( STDMETHODCALLTYPE *GetStatusFence )(
  13321. ID3D12ProtectedResourceSession1 * This,
  13322. REFIID riid,
  13323. _COM_Outptr_opt_ void **ppFence);
  13324. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus)
  13325. D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )(
  13326. ID3D12ProtectedResourceSession1 * This);
  13327. DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession, GetDesc)
  13328. #if !defined(_WIN32)
  13329. D3D12_PROTECTED_RESOURCE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  13330. ID3D12ProtectedResourceSession1 * This);
  13331. #else
  13332. D3D12_PROTECTED_RESOURCE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  13333. ID3D12ProtectedResourceSession1 * This,
  13334. D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal);
  13335. #endif
  13336. DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession1, GetDesc1)
  13337. #if !defined(_WIN32)
  13338. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 ( STDMETHODCALLTYPE *GetDesc1 )(
  13339. ID3D12ProtectedResourceSession1 * This);
  13340. #else
  13341. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *( STDMETHODCALLTYPE *GetDesc1 )(
  13342. ID3D12ProtectedResourceSession1 * This,
  13343. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 * RetVal);
  13344. #endif
  13345. END_INTERFACE
  13346. } ID3D12ProtectedResourceSession1Vtbl;
  13347. interface ID3D12ProtectedResourceSession1
  13348. {
  13349. CONST_VTBL struct ID3D12ProtectedResourceSession1Vtbl *lpVtbl;
  13350. };
  13351. #ifdef COBJMACROS
  13352. #define ID3D12ProtectedResourceSession1_QueryInterface(This,riid,ppvObject) \
  13353. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  13354. #define ID3D12ProtectedResourceSession1_AddRef(This) \
  13355. ( (This)->lpVtbl -> AddRef(This) )
  13356. #define ID3D12ProtectedResourceSession1_Release(This) \
  13357. ( (This)->lpVtbl -> Release(This) )
  13358. #define ID3D12ProtectedResourceSession1_GetPrivateData(This,guid,pDataSize,pData) \
  13359. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  13360. #define ID3D12ProtectedResourceSession1_SetPrivateData(This,guid,DataSize,pData) \
  13361. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  13362. #define ID3D12ProtectedResourceSession1_SetPrivateDataInterface(This,guid,pData) \
  13363. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  13364. #define ID3D12ProtectedResourceSession1_SetName(This,Name) \
  13365. ( (This)->lpVtbl -> SetName(This,Name) )
  13366. #define ID3D12ProtectedResourceSession1_GetDevice(This,riid,ppvDevice) \
  13367. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  13368. #define ID3D12ProtectedResourceSession1_GetStatusFence(This,riid,ppFence) \
  13369. ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) )
  13370. #define ID3D12ProtectedResourceSession1_GetSessionStatus(This) \
  13371. ( (This)->lpVtbl -> GetSessionStatus(This) )
  13372. #if !defined(_WIN32)
  13373. #define ID3D12ProtectedResourceSession1_GetDesc(This) \
  13374. ( (This)->lpVtbl -> GetDesc(This) )
  13375. #else
  13376. #define ID3D12ProtectedResourceSession1_GetDesc(This,RetVal) \
  13377. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  13378. #endif
  13379. #if !defined(_WIN32)
  13380. #define ID3D12ProtectedResourceSession1_GetDesc1(This) \
  13381. ( (This)->lpVtbl -> GetDesc1(This) )
  13382. #else
  13383. #define ID3D12ProtectedResourceSession1_GetDesc1(This,RetVal) \
  13384. ( (This)->lpVtbl -> GetDesc1(This,RetVal) )
  13385. #endif
  13386. #endif /* COBJMACROS */
  13387. #endif /* C style interface */
  13388. #endif /* __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__ */
  13389. #ifndef __ID3D12Device7_INTERFACE_DEFINED__
  13390. #define __ID3D12Device7_INTERFACE_DEFINED__
  13391. /* interface ID3D12Device7 */
  13392. /* [unique][local][object][uuid] */
  13393. EXTERN_C const IID IID_ID3D12Device7;
  13394. #if defined(__cplusplus) && !defined(CINTERFACE)
  13395. MIDL_INTERFACE("5c014b53-68a1-4b9b-8bd1-dd6046b9358b")
  13396. ID3D12Device7 : public ID3D12Device6
  13397. {
  13398. public:
  13399. virtual HRESULT STDMETHODCALLTYPE AddToStateObject(
  13400. const D3D12_STATE_OBJECT_DESC *pAddition,
  13401. ID3D12StateObject *pStateObjectToGrowFrom,
  13402. REFIID riid,
  13403. _COM_Outptr_ void **ppNewStateObject) = 0;
  13404. virtual HRESULT STDMETHODCALLTYPE CreateProtectedResourceSession1(
  13405. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  13406. _In_ REFIID riid,
  13407. _COM_Outptr_ void **ppSession) = 0;
  13408. };
  13409. #else /* C style interface */
  13410. typedef struct ID3D12Device7Vtbl
  13411. {
  13412. BEGIN_INTERFACE
  13413. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  13414. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13415. ID3D12Device7 * This,
  13416. REFIID riid,
  13417. _COM_Outptr_ void **ppvObject);
  13418. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  13419. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13420. ID3D12Device7 * This);
  13421. DECLSPEC_XFGVIRT(IUnknown, Release)
  13422. ULONG ( STDMETHODCALLTYPE *Release )(
  13423. ID3D12Device7 * This);
  13424. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  13425. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  13426. ID3D12Device7 * This,
  13427. _In_ REFGUID guid,
  13428. _Inout_ UINT *pDataSize,
  13429. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  13430. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  13431. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  13432. ID3D12Device7 * This,
  13433. _In_ REFGUID guid,
  13434. _In_ UINT DataSize,
  13435. _In_reads_bytes_opt_( DataSize ) const void *pData);
  13436. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  13437. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  13438. ID3D12Device7 * This,
  13439. _In_ REFGUID guid,
  13440. _In_opt_ const IUnknown *pData);
  13441. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  13442. HRESULT ( STDMETHODCALLTYPE *SetName )(
  13443. ID3D12Device7 * This,
  13444. _In_z_ LPCWSTR Name);
  13445. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  13446. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  13447. ID3D12Device7 * This);
  13448. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  13449. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  13450. ID3D12Device7 * This,
  13451. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  13452. REFIID riid,
  13453. _COM_Outptr_ void **ppCommandQueue);
  13454. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  13455. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  13456. ID3D12Device7 * This,
  13457. _In_ D3D12_COMMAND_LIST_TYPE type,
  13458. REFIID riid,
  13459. _COM_Outptr_ void **ppCommandAllocator);
  13460. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  13461. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  13462. ID3D12Device7 * This,
  13463. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  13464. REFIID riid,
  13465. _COM_Outptr_ void **ppPipelineState);
  13466. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  13467. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  13468. ID3D12Device7 * This,
  13469. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  13470. REFIID riid,
  13471. _COM_Outptr_ void **ppPipelineState);
  13472. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  13473. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  13474. ID3D12Device7 * This,
  13475. _In_ UINT nodeMask,
  13476. _In_ D3D12_COMMAND_LIST_TYPE type,
  13477. _In_ ID3D12CommandAllocator *pCommandAllocator,
  13478. _In_opt_ ID3D12PipelineState *pInitialState,
  13479. REFIID riid,
  13480. _COM_Outptr_ void **ppCommandList);
  13481. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  13482. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  13483. ID3D12Device7 * This,
  13484. D3D12_FEATURE Feature,
  13485. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  13486. UINT FeatureSupportDataSize);
  13487. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  13488. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  13489. ID3D12Device7 * This,
  13490. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  13491. REFIID riid,
  13492. _COM_Outptr_ void **ppvHeap);
  13493. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  13494. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  13495. ID3D12Device7 * This,
  13496. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  13497. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  13498. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  13499. ID3D12Device7 * This,
  13500. _In_ UINT nodeMask,
  13501. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  13502. _In_ SIZE_T blobLengthInBytes,
  13503. REFIID riid,
  13504. _COM_Outptr_ void **ppvRootSignature);
  13505. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  13506. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  13507. ID3D12Device7 * This,
  13508. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  13509. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13510. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  13511. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  13512. ID3D12Device7 * This,
  13513. _In_opt_ ID3D12Resource *pResource,
  13514. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  13515. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13516. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  13517. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  13518. ID3D12Device7 * This,
  13519. _In_opt_ ID3D12Resource *pResource,
  13520. _In_opt_ ID3D12Resource *pCounterResource,
  13521. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  13522. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13523. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  13524. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  13525. ID3D12Device7 * This,
  13526. _In_opt_ ID3D12Resource *pResource,
  13527. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  13528. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13529. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  13530. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  13531. ID3D12Device7 * This,
  13532. _In_opt_ ID3D12Resource *pResource,
  13533. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  13534. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13535. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  13536. void ( STDMETHODCALLTYPE *CreateSampler )(
  13537. ID3D12Device7 * This,
  13538. _In_ const D3D12_SAMPLER_DESC *pDesc,
  13539. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13540. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  13541. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  13542. ID3D12Device7 * This,
  13543. _In_ UINT NumDestDescriptorRanges,
  13544. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  13545. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  13546. _In_ UINT NumSrcDescriptorRanges,
  13547. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  13548. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  13549. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  13550. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  13551. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  13552. ID3D12Device7 * This,
  13553. _In_ UINT NumDescriptors,
  13554. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  13555. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  13556. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  13557. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  13558. #if !defined(_WIN32)
  13559. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  13560. ID3D12Device7 * This,
  13561. _In_ UINT visibleMask,
  13562. _In_ UINT numResourceDescs,
  13563. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  13564. #else
  13565. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  13566. ID3D12Device7 * This,
  13567. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13568. _In_ UINT visibleMask,
  13569. _In_ UINT numResourceDescs,
  13570. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  13571. #endif
  13572. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  13573. #if !defined(_WIN32)
  13574. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  13575. ID3D12Device7 * This,
  13576. _In_ UINT nodeMask,
  13577. D3D12_HEAP_TYPE heapType);
  13578. #else
  13579. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  13580. ID3D12Device7 * This,
  13581. D3D12_HEAP_PROPERTIES * RetVal,
  13582. _In_ UINT nodeMask,
  13583. D3D12_HEAP_TYPE heapType);
  13584. #endif
  13585. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  13586. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  13587. ID3D12Device7 * This,
  13588. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  13589. D3D12_HEAP_FLAGS HeapFlags,
  13590. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13591. D3D12_RESOURCE_STATES InitialResourceState,
  13592. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13593. REFIID riidResource,
  13594. _COM_Outptr_opt_ void **ppvResource);
  13595. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  13596. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  13597. ID3D12Device7 * This,
  13598. _In_ const D3D12_HEAP_DESC *pDesc,
  13599. REFIID riid,
  13600. _COM_Outptr_opt_ void **ppvHeap);
  13601. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  13602. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  13603. ID3D12Device7 * This,
  13604. _In_ ID3D12Heap *pHeap,
  13605. UINT64 HeapOffset,
  13606. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13607. D3D12_RESOURCE_STATES InitialState,
  13608. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13609. REFIID riid,
  13610. _COM_Outptr_opt_ void **ppvResource);
  13611. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  13612. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  13613. ID3D12Device7 * This,
  13614. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13615. D3D12_RESOURCE_STATES InitialState,
  13616. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13617. REFIID riid,
  13618. _COM_Outptr_opt_ void **ppvResource);
  13619. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  13620. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  13621. ID3D12Device7 * This,
  13622. _In_ ID3D12DeviceChild *pObject,
  13623. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  13624. DWORD Access,
  13625. _In_opt_ LPCWSTR Name,
  13626. _Out_ HANDLE *pHandle);
  13627. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  13628. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  13629. ID3D12Device7 * This,
  13630. _In_ HANDLE NTHandle,
  13631. REFIID riid,
  13632. _COM_Outptr_opt_ void **ppvObj);
  13633. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  13634. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  13635. ID3D12Device7 * This,
  13636. _In_ LPCWSTR Name,
  13637. DWORD Access,
  13638. /* [annotation][out] */
  13639. _Out_ HANDLE *pNTHandle);
  13640. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  13641. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  13642. ID3D12Device7 * This,
  13643. UINT NumObjects,
  13644. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  13645. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  13646. HRESULT ( STDMETHODCALLTYPE *Evict )(
  13647. ID3D12Device7 * This,
  13648. UINT NumObjects,
  13649. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  13650. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  13651. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  13652. ID3D12Device7 * This,
  13653. UINT64 InitialValue,
  13654. D3D12_FENCE_FLAGS Flags,
  13655. REFIID riid,
  13656. _COM_Outptr_ void **ppFence);
  13657. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  13658. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  13659. ID3D12Device7 * This);
  13660. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  13661. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  13662. ID3D12Device7 * This,
  13663. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  13664. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  13665. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  13666. UINT64 BaseOffset,
  13667. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  13668. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  13669. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  13670. _Out_opt_ UINT64 *pTotalBytes);
  13671. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  13672. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  13673. ID3D12Device7 * This,
  13674. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  13675. REFIID riid,
  13676. _COM_Outptr_opt_ void **ppvHeap);
  13677. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  13678. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  13679. ID3D12Device7 * This,
  13680. BOOL Enable);
  13681. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  13682. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  13683. ID3D12Device7 * This,
  13684. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  13685. _In_opt_ ID3D12RootSignature *pRootSignature,
  13686. REFIID riid,
  13687. _COM_Outptr_opt_ void **ppvCommandSignature);
  13688. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  13689. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  13690. ID3D12Device7 * This,
  13691. _In_ ID3D12Resource *pTiledResource,
  13692. _Out_opt_ UINT *pNumTilesForEntireResource,
  13693. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  13694. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  13695. _Inout_opt_ UINT *pNumSubresourceTilings,
  13696. _In_ UINT FirstSubresourceTilingToGet,
  13697. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  13698. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  13699. #if !defined(_WIN32)
  13700. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  13701. ID3D12Device7 * This);
  13702. #else
  13703. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  13704. ID3D12Device7 * This,
  13705. LUID * RetVal);
  13706. #endif
  13707. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  13708. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  13709. ID3D12Device7 * This,
  13710. _In_reads_(BlobLength) const void *pLibraryBlob,
  13711. SIZE_T BlobLength,
  13712. REFIID riid,
  13713. _COM_Outptr_ void **ppPipelineLibrary);
  13714. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  13715. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  13716. ID3D12Device7 * This,
  13717. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  13718. _In_reads_(NumFences) const UINT64 *pFenceValues,
  13719. UINT NumFences,
  13720. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  13721. HANDLE hEvent);
  13722. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  13723. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  13724. ID3D12Device7 * This,
  13725. UINT NumObjects,
  13726. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  13727. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  13728. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  13729. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  13730. ID3D12Device7 * This,
  13731. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  13732. REFIID riid,
  13733. _COM_Outptr_ void **ppPipelineState);
  13734. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  13735. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  13736. ID3D12Device7 * This,
  13737. _In_ const void *pAddress,
  13738. REFIID riid,
  13739. _COM_Outptr_ void **ppvHeap);
  13740. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  13741. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  13742. ID3D12Device7 * This,
  13743. _In_ HANDLE hFileMapping,
  13744. REFIID riid,
  13745. _COM_Outptr_ void **ppvHeap);
  13746. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  13747. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  13748. ID3D12Device7 * This,
  13749. D3D12_RESIDENCY_FLAGS Flags,
  13750. UINT NumObjects,
  13751. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  13752. _In_ ID3D12Fence *pFenceToSignal,
  13753. UINT64 FenceValueToSignal);
  13754. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  13755. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  13756. ID3D12Device7 * This,
  13757. _In_ UINT nodeMask,
  13758. _In_ D3D12_COMMAND_LIST_TYPE type,
  13759. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  13760. REFIID riid,
  13761. _COM_Outptr_ void **ppCommandList);
  13762. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  13763. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  13764. ID3D12Device7 * This,
  13765. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  13766. _In_ REFIID riid,
  13767. _COM_Outptr_ void **ppSession);
  13768. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  13769. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  13770. ID3D12Device7 * This,
  13771. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  13772. D3D12_HEAP_FLAGS HeapFlags,
  13773. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13774. D3D12_RESOURCE_STATES InitialResourceState,
  13775. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13776. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13777. REFIID riidResource,
  13778. _COM_Outptr_opt_ void **ppvResource);
  13779. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  13780. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  13781. ID3D12Device7 * This,
  13782. _In_ const D3D12_HEAP_DESC *pDesc,
  13783. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13784. REFIID riid,
  13785. _COM_Outptr_opt_ void **ppvHeap);
  13786. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  13787. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  13788. ID3D12Device7 * This,
  13789. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13790. D3D12_RESOURCE_STATES InitialState,
  13791. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13792. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13793. REFIID riid,
  13794. _COM_Outptr_opt_ void **ppvResource);
  13795. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  13796. #if !defined(_WIN32)
  13797. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  13798. ID3D12Device7 * This,
  13799. UINT visibleMask,
  13800. UINT numResourceDescs,
  13801. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  13802. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13803. #else
  13804. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  13805. ID3D12Device7 * This,
  13806. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13807. UINT visibleMask,
  13808. UINT numResourceDescs,
  13809. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  13810. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13811. #endif
  13812. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  13813. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  13814. ID3D12Device7 * This,
  13815. _In_ ID3D12LifetimeOwner *pOwner,
  13816. REFIID riid,
  13817. _COM_Outptr_ void **ppvTracker);
  13818. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  13819. void ( STDMETHODCALLTYPE *RemoveDevice )(
  13820. ID3D12Device7 * This);
  13821. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  13822. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  13823. ID3D12Device7 * This,
  13824. _Inout_ UINT *pNumMetaCommands,
  13825. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  13826. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  13827. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  13828. ID3D12Device7 * This,
  13829. _In_ REFGUID CommandId,
  13830. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  13831. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  13832. _Inout_ UINT *pParameterCount,
  13833. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  13834. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  13835. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  13836. ID3D12Device7 * This,
  13837. _In_ REFGUID CommandId,
  13838. _In_ UINT NodeMask,
  13839. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  13840. _In_ SIZE_T CreationParametersDataSizeInBytes,
  13841. REFIID riid,
  13842. _COM_Outptr_ void **ppMetaCommand);
  13843. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  13844. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  13845. ID3D12Device7 * This,
  13846. const D3D12_STATE_OBJECT_DESC *pDesc,
  13847. REFIID riid,
  13848. _COM_Outptr_ void **ppStateObject);
  13849. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  13850. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  13851. ID3D12Device7 * This,
  13852. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  13853. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  13854. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  13855. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  13856. ID3D12Device7 * This,
  13857. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  13858. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  13859. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  13860. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  13861. ID3D12Device7 * This,
  13862. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  13863. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  13864. _In_opt_ HANDLE hEventToSignalUponCompletion,
  13865. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  13866. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  13867. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  13868. ID3D12Device7 * This,
  13869. const D3D12_STATE_OBJECT_DESC *pAddition,
  13870. ID3D12StateObject *pStateObjectToGrowFrom,
  13871. REFIID riid,
  13872. _COM_Outptr_ void **ppNewStateObject);
  13873. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  13874. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  13875. ID3D12Device7 * This,
  13876. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  13877. _In_ REFIID riid,
  13878. _COM_Outptr_ void **ppSession);
  13879. END_INTERFACE
  13880. } ID3D12Device7Vtbl;
  13881. interface ID3D12Device7
  13882. {
  13883. CONST_VTBL struct ID3D12Device7Vtbl *lpVtbl;
  13884. };
  13885. #ifdef COBJMACROS
  13886. #define ID3D12Device7_QueryInterface(This,riid,ppvObject) \
  13887. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  13888. #define ID3D12Device7_AddRef(This) \
  13889. ( (This)->lpVtbl -> AddRef(This) )
  13890. #define ID3D12Device7_Release(This) \
  13891. ( (This)->lpVtbl -> Release(This) )
  13892. #define ID3D12Device7_GetPrivateData(This,guid,pDataSize,pData) \
  13893. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  13894. #define ID3D12Device7_SetPrivateData(This,guid,DataSize,pData) \
  13895. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  13896. #define ID3D12Device7_SetPrivateDataInterface(This,guid,pData) \
  13897. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  13898. #define ID3D12Device7_SetName(This,Name) \
  13899. ( (This)->lpVtbl -> SetName(This,Name) )
  13900. #define ID3D12Device7_GetNodeCount(This) \
  13901. ( (This)->lpVtbl -> GetNodeCount(This) )
  13902. #define ID3D12Device7_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  13903. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  13904. #define ID3D12Device7_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  13905. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  13906. #define ID3D12Device7_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  13907. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  13908. #define ID3D12Device7_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  13909. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  13910. #define ID3D12Device7_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  13911. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  13912. #define ID3D12Device7_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  13913. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  13914. #define ID3D12Device7_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  13915. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  13916. #define ID3D12Device7_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  13917. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  13918. #define ID3D12Device7_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  13919. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  13920. #define ID3D12Device7_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  13921. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  13922. #define ID3D12Device7_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  13923. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  13924. #define ID3D12Device7_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  13925. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  13926. #define ID3D12Device7_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  13927. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  13928. #define ID3D12Device7_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  13929. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  13930. #define ID3D12Device7_CreateSampler(This,pDesc,DestDescriptor) \
  13931. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  13932. #define ID3D12Device7_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  13933. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  13934. #define ID3D12Device7_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  13935. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  13936. #if !defined(_WIN32)
  13937. #define ID3D12Device7_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  13938. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  13939. #else
  13940. #define ID3D12Device7_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  13941. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  13942. #endif
  13943. #if !defined(_WIN32)
  13944. #define ID3D12Device7_GetCustomHeapProperties(This,nodeMask,heapType) \
  13945. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  13946. #else
  13947. #define ID3D12Device7_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  13948. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  13949. #endif
  13950. #define ID3D12Device7_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  13951. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  13952. #define ID3D12Device7_CreateHeap(This,pDesc,riid,ppvHeap) \
  13953. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  13954. #define ID3D12Device7_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  13955. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  13956. #define ID3D12Device7_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  13957. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  13958. #define ID3D12Device7_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  13959. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  13960. #define ID3D12Device7_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  13961. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  13962. #define ID3D12Device7_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  13963. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  13964. #define ID3D12Device7_MakeResident(This,NumObjects,ppObjects) \
  13965. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  13966. #define ID3D12Device7_Evict(This,NumObjects,ppObjects) \
  13967. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  13968. #define ID3D12Device7_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  13969. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  13970. #define ID3D12Device7_GetDeviceRemovedReason(This) \
  13971. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  13972. #define ID3D12Device7_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  13973. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  13974. #define ID3D12Device7_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  13975. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  13976. #define ID3D12Device7_SetStablePowerState(This,Enable) \
  13977. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  13978. #define ID3D12Device7_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  13979. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  13980. #define ID3D12Device7_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  13981. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  13982. #if !defined(_WIN32)
  13983. #define ID3D12Device7_GetAdapterLuid(This) \
  13984. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  13985. #else
  13986. #define ID3D12Device7_GetAdapterLuid(This,RetVal) \
  13987. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  13988. #endif
  13989. #define ID3D12Device7_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  13990. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  13991. #define ID3D12Device7_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  13992. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  13993. #define ID3D12Device7_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  13994. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  13995. #define ID3D12Device7_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  13996. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  13997. #define ID3D12Device7_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  13998. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  13999. #define ID3D12Device7_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  14000. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  14001. #define ID3D12Device7_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  14002. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  14003. #define ID3D12Device7_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  14004. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  14005. #define ID3D12Device7_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  14006. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  14007. #define ID3D12Device7_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  14008. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  14009. #define ID3D12Device7_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  14010. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  14011. #define ID3D12Device7_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  14012. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  14013. #if !defined(_WIN32)
  14014. #define ID3D12Device7_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14015. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14016. #else
  14017. #define ID3D12Device7_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14018. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14019. #endif
  14020. #define ID3D12Device7_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  14021. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  14022. #define ID3D12Device7_RemoveDevice(This) \
  14023. ( (This)->lpVtbl -> RemoveDevice(This) )
  14024. #define ID3D12Device7_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  14025. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  14026. #define ID3D12Device7_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  14027. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  14028. #define ID3D12Device7_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  14029. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  14030. #define ID3D12Device7_CreateStateObject(This,pDesc,riid,ppStateObject) \
  14031. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  14032. #define ID3D12Device7_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  14033. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  14034. #define ID3D12Device7_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  14035. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  14036. #define ID3D12Device7_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  14037. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  14038. #define ID3D12Device7_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  14039. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  14040. #define ID3D12Device7_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  14041. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  14042. #endif /* COBJMACROS */
  14043. #endif /* C style interface */
  14044. #endif /* __ID3D12Device7_INTERFACE_DEFINED__ */
  14045. #ifndef __ID3D12Device8_INTERFACE_DEFINED__
  14046. #define __ID3D12Device8_INTERFACE_DEFINED__
  14047. /* interface ID3D12Device8 */
  14048. /* [unique][local][object][uuid] */
  14049. EXTERN_C const IID IID_ID3D12Device8;
  14050. #if defined(__cplusplus) && !defined(CINTERFACE)
  14051. MIDL_INTERFACE("9218E6BB-F944-4F7E-A75C-B1B2C7B701F3")
  14052. ID3D12Device8 : public ID3D12Device7
  14053. {
  14054. public:
  14055. #if defined(_MSC_VER) || !defined(_WIN32)
  14056. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo2(
  14057. UINT visibleMask,
  14058. UINT numResourceDescs,
  14059. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  14060. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  14061. #else
  14062. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo2(
  14063. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  14064. UINT visibleMask,
  14065. UINT numResourceDescs,
  14066. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  14067. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  14068. #endif
  14069. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource2(
  14070. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  14071. D3D12_HEAP_FLAGS HeapFlags,
  14072. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  14073. D3D12_RESOURCE_STATES InitialResourceState,
  14074. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14075. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  14076. REFIID riidResource,
  14077. _COM_Outptr_opt_ void **ppvResource) = 0;
  14078. virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource1(
  14079. _In_ ID3D12Heap *pHeap,
  14080. UINT64 HeapOffset,
  14081. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  14082. D3D12_RESOURCE_STATES InitialState,
  14083. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14084. REFIID riid,
  14085. _COM_Outptr_opt_ void **ppvResource) = 0;
  14086. virtual void STDMETHODCALLTYPE CreateSamplerFeedbackUnorderedAccessView(
  14087. _In_opt_ ID3D12Resource *pTargetedResource,
  14088. _In_opt_ ID3D12Resource *pFeedbackResource,
  14089. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  14090. virtual void STDMETHODCALLTYPE GetCopyableFootprints1(
  14091. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  14092. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  14093. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  14094. UINT64 BaseOffset,
  14095. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  14096. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  14097. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  14098. _Out_opt_ UINT64 *pTotalBytes) = 0;
  14099. };
  14100. #else /* C style interface */
  14101. typedef struct ID3D12Device8Vtbl
  14102. {
  14103. BEGIN_INTERFACE
  14104. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  14105. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14106. ID3D12Device8 * This,
  14107. REFIID riid,
  14108. _COM_Outptr_ void **ppvObject);
  14109. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  14110. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14111. ID3D12Device8 * This);
  14112. DECLSPEC_XFGVIRT(IUnknown, Release)
  14113. ULONG ( STDMETHODCALLTYPE *Release )(
  14114. ID3D12Device8 * This);
  14115. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  14116. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  14117. ID3D12Device8 * This,
  14118. _In_ REFGUID guid,
  14119. _Inout_ UINT *pDataSize,
  14120. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  14121. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  14122. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  14123. ID3D12Device8 * This,
  14124. _In_ REFGUID guid,
  14125. _In_ UINT DataSize,
  14126. _In_reads_bytes_opt_( DataSize ) const void *pData);
  14127. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  14128. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  14129. ID3D12Device8 * This,
  14130. _In_ REFGUID guid,
  14131. _In_opt_ const IUnknown *pData);
  14132. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  14133. HRESULT ( STDMETHODCALLTYPE *SetName )(
  14134. ID3D12Device8 * This,
  14135. _In_z_ LPCWSTR Name);
  14136. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  14137. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  14138. ID3D12Device8 * This);
  14139. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  14140. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  14141. ID3D12Device8 * This,
  14142. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  14143. REFIID riid,
  14144. _COM_Outptr_ void **ppCommandQueue);
  14145. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  14146. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  14147. ID3D12Device8 * This,
  14148. _In_ D3D12_COMMAND_LIST_TYPE type,
  14149. REFIID riid,
  14150. _COM_Outptr_ void **ppCommandAllocator);
  14151. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  14152. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  14153. ID3D12Device8 * This,
  14154. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  14155. REFIID riid,
  14156. _COM_Outptr_ void **ppPipelineState);
  14157. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  14158. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  14159. ID3D12Device8 * This,
  14160. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  14161. REFIID riid,
  14162. _COM_Outptr_ void **ppPipelineState);
  14163. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  14164. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  14165. ID3D12Device8 * This,
  14166. _In_ UINT nodeMask,
  14167. _In_ D3D12_COMMAND_LIST_TYPE type,
  14168. _In_ ID3D12CommandAllocator *pCommandAllocator,
  14169. _In_opt_ ID3D12PipelineState *pInitialState,
  14170. REFIID riid,
  14171. _COM_Outptr_ void **ppCommandList);
  14172. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  14173. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  14174. ID3D12Device8 * This,
  14175. D3D12_FEATURE Feature,
  14176. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  14177. UINT FeatureSupportDataSize);
  14178. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  14179. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  14180. ID3D12Device8 * This,
  14181. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  14182. REFIID riid,
  14183. _COM_Outptr_ void **ppvHeap);
  14184. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  14185. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  14186. ID3D12Device8 * This,
  14187. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  14188. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  14189. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  14190. ID3D12Device8 * This,
  14191. _In_ UINT nodeMask,
  14192. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  14193. _In_ SIZE_T blobLengthInBytes,
  14194. REFIID riid,
  14195. _COM_Outptr_ void **ppvRootSignature);
  14196. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  14197. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  14198. ID3D12Device8 * This,
  14199. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  14200. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14201. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  14202. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  14203. ID3D12Device8 * This,
  14204. _In_opt_ ID3D12Resource *pResource,
  14205. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  14206. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14207. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  14208. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  14209. ID3D12Device8 * This,
  14210. _In_opt_ ID3D12Resource *pResource,
  14211. _In_opt_ ID3D12Resource *pCounterResource,
  14212. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  14213. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14214. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  14215. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  14216. ID3D12Device8 * This,
  14217. _In_opt_ ID3D12Resource *pResource,
  14218. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  14219. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14220. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  14221. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  14222. ID3D12Device8 * This,
  14223. _In_opt_ ID3D12Resource *pResource,
  14224. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  14225. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14226. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  14227. void ( STDMETHODCALLTYPE *CreateSampler )(
  14228. ID3D12Device8 * This,
  14229. _In_ const D3D12_SAMPLER_DESC *pDesc,
  14230. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14231. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  14232. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  14233. ID3D12Device8 * This,
  14234. _In_ UINT NumDestDescriptorRanges,
  14235. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  14236. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  14237. _In_ UINT NumSrcDescriptorRanges,
  14238. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  14239. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  14240. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  14241. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  14242. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  14243. ID3D12Device8 * This,
  14244. _In_ UINT NumDescriptors,
  14245. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  14246. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  14247. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  14248. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  14249. #if !defined(_WIN32)
  14250. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  14251. ID3D12Device8 * This,
  14252. _In_ UINT visibleMask,
  14253. _In_ UINT numResourceDescs,
  14254. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  14255. #else
  14256. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  14257. ID3D12Device8 * This,
  14258. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  14259. _In_ UINT visibleMask,
  14260. _In_ UINT numResourceDescs,
  14261. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  14262. #endif
  14263. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  14264. #if !defined(_WIN32)
  14265. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  14266. ID3D12Device8 * This,
  14267. _In_ UINT nodeMask,
  14268. D3D12_HEAP_TYPE heapType);
  14269. #else
  14270. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  14271. ID3D12Device8 * This,
  14272. D3D12_HEAP_PROPERTIES * RetVal,
  14273. _In_ UINT nodeMask,
  14274. D3D12_HEAP_TYPE heapType);
  14275. #endif
  14276. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  14277. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  14278. ID3D12Device8 * This,
  14279. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  14280. D3D12_HEAP_FLAGS HeapFlags,
  14281. _In_ const D3D12_RESOURCE_DESC *pDesc,
  14282. D3D12_RESOURCE_STATES InitialResourceState,
  14283. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14284. REFIID riidResource,
  14285. _COM_Outptr_opt_ void **ppvResource);
  14286. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  14287. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  14288. ID3D12Device8 * This,
  14289. _In_ const D3D12_HEAP_DESC *pDesc,
  14290. REFIID riid,
  14291. _COM_Outptr_opt_ void **ppvHeap);
  14292. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  14293. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  14294. ID3D12Device8 * This,
  14295. _In_ ID3D12Heap *pHeap,
  14296. UINT64 HeapOffset,
  14297. _In_ const D3D12_RESOURCE_DESC *pDesc,
  14298. D3D12_RESOURCE_STATES InitialState,
  14299. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14300. REFIID riid,
  14301. _COM_Outptr_opt_ void **ppvResource);
  14302. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  14303. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  14304. ID3D12Device8 * This,
  14305. _In_ const D3D12_RESOURCE_DESC *pDesc,
  14306. D3D12_RESOURCE_STATES InitialState,
  14307. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14308. REFIID riid,
  14309. _COM_Outptr_opt_ void **ppvResource);
  14310. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  14311. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  14312. ID3D12Device8 * This,
  14313. _In_ ID3D12DeviceChild *pObject,
  14314. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  14315. DWORD Access,
  14316. _In_opt_ LPCWSTR Name,
  14317. _Out_ HANDLE *pHandle);
  14318. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  14319. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  14320. ID3D12Device8 * This,
  14321. _In_ HANDLE NTHandle,
  14322. REFIID riid,
  14323. _COM_Outptr_opt_ void **ppvObj);
  14324. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  14325. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  14326. ID3D12Device8 * This,
  14327. _In_ LPCWSTR Name,
  14328. DWORD Access,
  14329. /* [annotation][out] */
  14330. _Out_ HANDLE *pNTHandle);
  14331. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  14332. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  14333. ID3D12Device8 * This,
  14334. UINT NumObjects,
  14335. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  14336. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  14337. HRESULT ( STDMETHODCALLTYPE *Evict )(
  14338. ID3D12Device8 * This,
  14339. UINT NumObjects,
  14340. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  14341. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  14342. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  14343. ID3D12Device8 * This,
  14344. UINT64 InitialValue,
  14345. D3D12_FENCE_FLAGS Flags,
  14346. REFIID riid,
  14347. _COM_Outptr_ void **ppFence);
  14348. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  14349. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  14350. ID3D12Device8 * This);
  14351. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  14352. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  14353. ID3D12Device8 * This,
  14354. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  14355. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  14356. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  14357. UINT64 BaseOffset,
  14358. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  14359. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  14360. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  14361. _Out_opt_ UINT64 *pTotalBytes);
  14362. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  14363. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  14364. ID3D12Device8 * This,
  14365. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  14366. REFIID riid,
  14367. _COM_Outptr_opt_ void **ppvHeap);
  14368. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  14369. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  14370. ID3D12Device8 * This,
  14371. BOOL Enable);
  14372. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  14373. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  14374. ID3D12Device8 * This,
  14375. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  14376. _In_opt_ ID3D12RootSignature *pRootSignature,
  14377. REFIID riid,
  14378. _COM_Outptr_opt_ void **ppvCommandSignature);
  14379. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  14380. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  14381. ID3D12Device8 * This,
  14382. _In_ ID3D12Resource *pTiledResource,
  14383. _Out_opt_ UINT *pNumTilesForEntireResource,
  14384. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  14385. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  14386. _Inout_opt_ UINT *pNumSubresourceTilings,
  14387. _In_ UINT FirstSubresourceTilingToGet,
  14388. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  14389. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  14390. #if !defined(_WIN32)
  14391. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  14392. ID3D12Device8 * This);
  14393. #else
  14394. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  14395. ID3D12Device8 * This,
  14396. LUID * RetVal);
  14397. #endif
  14398. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  14399. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  14400. ID3D12Device8 * This,
  14401. _In_reads_(BlobLength) const void *pLibraryBlob,
  14402. SIZE_T BlobLength,
  14403. REFIID riid,
  14404. _COM_Outptr_ void **ppPipelineLibrary);
  14405. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  14406. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  14407. ID3D12Device8 * This,
  14408. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  14409. _In_reads_(NumFences) const UINT64 *pFenceValues,
  14410. UINT NumFences,
  14411. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  14412. HANDLE hEvent);
  14413. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  14414. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  14415. ID3D12Device8 * This,
  14416. UINT NumObjects,
  14417. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  14418. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  14419. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  14420. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  14421. ID3D12Device8 * This,
  14422. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  14423. REFIID riid,
  14424. _COM_Outptr_ void **ppPipelineState);
  14425. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  14426. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  14427. ID3D12Device8 * This,
  14428. _In_ const void *pAddress,
  14429. REFIID riid,
  14430. _COM_Outptr_ void **ppvHeap);
  14431. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  14432. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  14433. ID3D12Device8 * This,
  14434. _In_ HANDLE hFileMapping,
  14435. REFIID riid,
  14436. _COM_Outptr_ void **ppvHeap);
  14437. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  14438. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  14439. ID3D12Device8 * This,
  14440. D3D12_RESIDENCY_FLAGS Flags,
  14441. UINT NumObjects,
  14442. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  14443. _In_ ID3D12Fence *pFenceToSignal,
  14444. UINT64 FenceValueToSignal);
  14445. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  14446. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  14447. ID3D12Device8 * This,
  14448. _In_ UINT nodeMask,
  14449. _In_ D3D12_COMMAND_LIST_TYPE type,
  14450. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  14451. REFIID riid,
  14452. _COM_Outptr_ void **ppCommandList);
  14453. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  14454. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  14455. ID3D12Device8 * This,
  14456. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  14457. _In_ REFIID riid,
  14458. _COM_Outptr_ void **ppSession);
  14459. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  14460. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  14461. ID3D12Device8 * This,
  14462. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  14463. D3D12_HEAP_FLAGS HeapFlags,
  14464. _In_ const D3D12_RESOURCE_DESC *pDesc,
  14465. D3D12_RESOURCE_STATES InitialResourceState,
  14466. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14467. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  14468. REFIID riidResource,
  14469. _COM_Outptr_opt_ void **ppvResource);
  14470. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  14471. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  14472. ID3D12Device8 * This,
  14473. _In_ const D3D12_HEAP_DESC *pDesc,
  14474. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  14475. REFIID riid,
  14476. _COM_Outptr_opt_ void **ppvHeap);
  14477. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  14478. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  14479. ID3D12Device8 * This,
  14480. _In_ const D3D12_RESOURCE_DESC *pDesc,
  14481. D3D12_RESOURCE_STATES InitialState,
  14482. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14483. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  14484. REFIID riid,
  14485. _COM_Outptr_opt_ void **ppvResource);
  14486. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  14487. #if !defined(_WIN32)
  14488. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  14489. ID3D12Device8 * This,
  14490. UINT visibleMask,
  14491. UINT numResourceDescs,
  14492. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  14493. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  14494. #else
  14495. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  14496. ID3D12Device8 * This,
  14497. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  14498. UINT visibleMask,
  14499. UINT numResourceDescs,
  14500. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  14501. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  14502. #endif
  14503. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  14504. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  14505. ID3D12Device8 * This,
  14506. _In_ ID3D12LifetimeOwner *pOwner,
  14507. REFIID riid,
  14508. _COM_Outptr_ void **ppvTracker);
  14509. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  14510. void ( STDMETHODCALLTYPE *RemoveDevice )(
  14511. ID3D12Device8 * This);
  14512. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  14513. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  14514. ID3D12Device8 * This,
  14515. _Inout_ UINT *pNumMetaCommands,
  14516. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  14517. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  14518. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  14519. ID3D12Device8 * This,
  14520. _In_ REFGUID CommandId,
  14521. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  14522. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  14523. _Inout_ UINT *pParameterCount,
  14524. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  14525. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  14526. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  14527. ID3D12Device8 * This,
  14528. _In_ REFGUID CommandId,
  14529. _In_ UINT NodeMask,
  14530. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  14531. _In_ SIZE_T CreationParametersDataSizeInBytes,
  14532. REFIID riid,
  14533. _COM_Outptr_ void **ppMetaCommand);
  14534. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  14535. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  14536. ID3D12Device8 * This,
  14537. const D3D12_STATE_OBJECT_DESC *pDesc,
  14538. REFIID riid,
  14539. _COM_Outptr_ void **ppStateObject);
  14540. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  14541. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  14542. ID3D12Device8 * This,
  14543. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  14544. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  14545. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  14546. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  14547. ID3D12Device8 * This,
  14548. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  14549. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  14550. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  14551. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  14552. ID3D12Device8 * This,
  14553. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  14554. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  14555. _In_opt_ HANDLE hEventToSignalUponCompletion,
  14556. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  14557. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  14558. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  14559. ID3D12Device8 * This,
  14560. const D3D12_STATE_OBJECT_DESC *pAddition,
  14561. ID3D12StateObject *pStateObjectToGrowFrom,
  14562. REFIID riid,
  14563. _COM_Outptr_ void **ppNewStateObject);
  14564. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  14565. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  14566. ID3D12Device8 * This,
  14567. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  14568. _In_ REFIID riid,
  14569. _COM_Outptr_ void **ppSession);
  14570. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  14571. #if !defined(_WIN32)
  14572. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  14573. ID3D12Device8 * This,
  14574. UINT visibleMask,
  14575. UINT numResourceDescs,
  14576. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  14577. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  14578. #else
  14579. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  14580. ID3D12Device8 * This,
  14581. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  14582. UINT visibleMask,
  14583. UINT numResourceDescs,
  14584. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  14585. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  14586. #endif
  14587. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  14588. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  14589. ID3D12Device8 * This,
  14590. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  14591. D3D12_HEAP_FLAGS HeapFlags,
  14592. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  14593. D3D12_RESOURCE_STATES InitialResourceState,
  14594. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14595. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  14596. REFIID riidResource,
  14597. _COM_Outptr_opt_ void **ppvResource);
  14598. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  14599. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  14600. ID3D12Device8 * This,
  14601. _In_ ID3D12Heap *pHeap,
  14602. UINT64 HeapOffset,
  14603. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  14604. D3D12_RESOURCE_STATES InitialState,
  14605. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  14606. REFIID riid,
  14607. _COM_Outptr_opt_ void **ppvResource);
  14608. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  14609. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  14610. ID3D12Device8 * This,
  14611. _In_opt_ ID3D12Resource *pTargetedResource,
  14612. _In_opt_ ID3D12Resource *pFeedbackResource,
  14613. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  14614. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  14615. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  14616. ID3D12Device8 * This,
  14617. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  14618. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  14619. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  14620. UINT64 BaseOffset,
  14621. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  14622. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  14623. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  14624. _Out_opt_ UINT64 *pTotalBytes);
  14625. END_INTERFACE
  14626. } ID3D12Device8Vtbl;
  14627. interface ID3D12Device8
  14628. {
  14629. CONST_VTBL struct ID3D12Device8Vtbl *lpVtbl;
  14630. };
  14631. #ifdef COBJMACROS
  14632. #define ID3D12Device8_QueryInterface(This,riid,ppvObject) \
  14633. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  14634. #define ID3D12Device8_AddRef(This) \
  14635. ( (This)->lpVtbl -> AddRef(This) )
  14636. #define ID3D12Device8_Release(This) \
  14637. ( (This)->lpVtbl -> Release(This) )
  14638. #define ID3D12Device8_GetPrivateData(This,guid,pDataSize,pData) \
  14639. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  14640. #define ID3D12Device8_SetPrivateData(This,guid,DataSize,pData) \
  14641. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  14642. #define ID3D12Device8_SetPrivateDataInterface(This,guid,pData) \
  14643. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  14644. #define ID3D12Device8_SetName(This,Name) \
  14645. ( (This)->lpVtbl -> SetName(This,Name) )
  14646. #define ID3D12Device8_GetNodeCount(This) \
  14647. ( (This)->lpVtbl -> GetNodeCount(This) )
  14648. #define ID3D12Device8_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  14649. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  14650. #define ID3D12Device8_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  14651. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  14652. #define ID3D12Device8_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  14653. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  14654. #define ID3D12Device8_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  14655. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  14656. #define ID3D12Device8_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  14657. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  14658. #define ID3D12Device8_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  14659. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  14660. #define ID3D12Device8_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  14661. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  14662. #define ID3D12Device8_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  14663. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  14664. #define ID3D12Device8_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  14665. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  14666. #define ID3D12Device8_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  14667. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  14668. #define ID3D12Device8_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  14669. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  14670. #define ID3D12Device8_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  14671. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  14672. #define ID3D12Device8_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  14673. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  14674. #define ID3D12Device8_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  14675. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  14676. #define ID3D12Device8_CreateSampler(This,pDesc,DestDescriptor) \
  14677. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  14678. #define ID3D12Device8_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  14679. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  14680. #define ID3D12Device8_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  14681. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  14682. #if !defined(_WIN32)
  14683. #define ID3D12Device8_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  14684. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  14685. #else
  14686. #define ID3D12Device8_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  14687. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  14688. #endif
  14689. #if !defined(_WIN32)
  14690. #define ID3D12Device8_GetCustomHeapProperties(This,nodeMask,heapType) \
  14691. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  14692. #else
  14693. #define ID3D12Device8_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  14694. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  14695. #endif
  14696. #define ID3D12Device8_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  14697. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  14698. #define ID3D12Device8_CreateHeap(This,pDesc,riid,ppvHeap) \
  14699. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  14700. #define ID3D12Device8_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  14701. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  14702. #define ID3D12Device8_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  14703. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  14704. #define ID3D12Device8_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  14705. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  14706. #define ID3D12Device8_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  14707. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  14708. #define ID3D12Device8_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  14709. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  14710. #define ID3D12Device8_MakeResident(This,NumObjects,ppObjects) \
  14711. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  14712. #define ID3D12Device8_Evict(This,NumObjects,ppObjects) \
  14713. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  14714. #define ID3D12Device8_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  14715. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  14716. #define ID3D12Device8_GetDeviceRemovedReason(This) \
  14717. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  14718. #define ID3D12Device8_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  14719. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  14720. #define ID3D12Device8_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  14721. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  14722. #define ID3D12Device8_SetStablePowerState(This,Enable) \
  14723. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  14724. #define ID3D12Device8_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  14725. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  14726. #define ID3D12Device8_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  14727. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  14728. #if !defined(_WIN32)
  14729. #define ID3D12Device8_GetAdapterLuid(This) \
  14730. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  14731. #else
  14732. #define ID3D12Device8_GetAdapterLuid(This,RetVal) \
  14733. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  14734. #endif
  14735. #define ID3D12Device8_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  14736. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  14737. #define ID3D12Device8_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  14738. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  14739. #define ID3D12Device8_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  14740. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  14741. #define ID3D12Device8_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  14742. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  14743. #define ID3D12Device8_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  14744. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  14745. #define ID3D12Device8_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  14746. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  14747. #define ID3D12Device8_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  14748. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  14749. #define ID3D12Device8_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  14750. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  14751. #define ID3D12Device8_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  14752. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  14753. #define ID3D12Device8_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  14754. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  14755. #define ID3D12Device8_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  14756. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  14757. #define ID3D12Device8_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  14758. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  14759. #if !defined(_WIN32)
  14760. #define ID3D12Device8_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14761. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14762. #else
  14763. #define ID3D12Device8_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14764. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14765. #endif
  14766. #define ID3D12Device8_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  14767. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  14768. #define ID3D12Device8_RemoveDevice(This) \
  14769. ( (This)->lpVtbl -> RemoveDevice(This) )
  14770. #define ID3D12Device8_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  14771. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  14772. #define ID3D12Device8_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  14773. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  14774. #define ID3D12Device8_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  14775. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  14776. #define ID3D12Device8_CreateStateObject(This,pDesc,riid,ppStateObject) \
  14777. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  14778. #define ID3D12Device8_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  14779. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  14780. #define ID3D12Device8_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  14781. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  14782. #define ID3D12Device8_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  14783. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  14784. #define ID3D12Device8_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  14785. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  14786. #define ID3D12Device8_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  14787. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  14788. #if !defined(_WIN32)
  14789. #define ID3D12Device8_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14790. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14791. #else
  14792. #define ID3D12Device8_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14793. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14794. #endif
  14795. #define ID3D12Device8_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  14796. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  14797. #define ID3D12Device8_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  14798. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  14799. #define ID3D12Device8_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  14800. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  14801. #define ID3D12Device8_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  14802. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  14803. #endif /* COBJMACROS */
  14804. #endif /* C style interface */
  14805. #endif /* __ID3D12Device8_INTERFACE_DEFINED__ */
  14806. #ifndef __ID3D12Resource1_INTERFACE_DEFINED__
  14807. #define __ID3D12Resource1_INTERFACE_DEFINED__
  14808. /* interface ID3D12Resource1 */
  14809. /* [unique][local][object][uuid] */
  14810. EXTERN_C const IID IID_ID3D12Resource1;
  14811. #if defined(__cplusplus) && !defined(CINTERFACE)
  14812. MIDL_INTERFACE("9D5E227A-4430-4161-88B3-3ECA6BB16E19")
  14813. ID3D12Resource1 : public ID3D12Resource
  14814. {
  14815. public:
  14816. virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession(
  14817. REFIID riid,
  14818. _COM_Outptr_opt_ void **ppProtectedSession) = 0;
  14819. };
  14820. #else /* C style interface */
  14821. typedef struct ID3D12Resource1Vtbl
  14822. {
  14823. BEGIN_INTERFACE
  14824. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  14825. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14826. ID3D12Resource1 * This,
  14827. REFIID riid,
  14828. _COM_Outptr_ void **ppvObject);
  14829. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  14830. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14831. ID3D12Resource1 * This);
  14832. DECLSPEC_XFGVIRT(IUnknown, Release)
  14833. ULONG ( STDMETHODCALLTYPE *Release )(
  14834. ID3D12Resource1 * This);
  14835. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  14836. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  14837. ID3D12Resource1 * This,
  14838. _In_ REFGUID guid,
  14839. _Inout_ UINT *pDataSize,
  14840. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  14841. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  14842. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  14843. ID3D12Resource1 * This,
  14844. _In_ REFGUID guid,
  14845. _In_ UINT DataSize,
  14846. _In_reads_bytes_opt_( DataSize ) const void *pData);
  14847. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  14848. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  14849. ID3D12Resource1 * This,
  14850. _In_ REFGUID guid,
  14851. _In_opt_ const IUnknown *pData);
  14852. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  14853. HRESULT ( STDMETHODCALLTYPE *SetName )(
  14854. ID3D12Resource1 * This,
  14855. _In_z_ LPCWSTR Name);
  14856. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  14857. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  14858. ID3D12Resource1 * This,
  14859. REFIID riid,
  14860. _COM_Outptr_opt_ void **ppvDevice);
  14861. DECLSPEC_XFGVIRT(ID3D12Resource, Map)
  14862. HRESULT ( STDMETHODCALLTYPE *Map )(
  14863. ID3D12Resource1 * This,
  14864. UINT Subresource,
  14865. _In_opt_ const D3D12_RANGE *pReadRange,
  14866. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData);
  14867. DECLSPEC_XFGVIRT(ID3D12Resource, Unmap)
  14868. void ( STDMETHODCALLTYPE *Unmap )(
  14869. ID3D12Resource1 * This,
  14870. UINT Subresource,
  14871. _In_opt_ const D3D12_RANGE *pWrittenRange);
  14872. DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc)
  14873. #if !defined(_WIN32)
  14874. D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  14875. ID3D12Resource1 * This);
  14876. #else
  14877. D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  14878. ID3D12Resource1 * This,
  14879. D3D12_RESOURCE_DESC * RetVal);
  14880. #endif
  14881. DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress)
  14882. D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )(
  14883. ID3D12Resource1 * This);
  14884. DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource)
  14885. HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )(
  14886. ID3D12Resource1 * This,
  14887. UINT DstSubresource,
  14888. _In_opt_ const D3D12_BOX *pDstBox,
  14889. _In_ const void *pSrcData,
  14890. UINT SrcRowPitch,
  14891. UINT SrcDepthPitch);
  14892. DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource)
  14893. HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )(
  14894. ID3D12Resource1 * This,
  14895. _Out_ void *pDstData,
  14896. UINT DstRowPitch,
  14897. UINT DstDepthPitch,
  14898. UINT SrcSubresource,
  14899. _In_opt_ const D3D12_BOX *pSrcBox);
  14900. DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties)
  14901. HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )(
  14902. ID3D12Resource1 * This,
  14903. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  14904. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags);
  14905. DECLSPEC_XFGVIRT(ID3D12Resource1, GetProtectedResourceSession)
  14906. HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )(
  14907. ID3D12Resource1 * This,
  14908. REFIID riid,
  14909. _COM_Outptr_opt_ void **ppProtectedSession);
  14910. END_INTERFACE
  14911. } ID3D12Resource1Vtbl;
  14912. interface ID3D12Resource1
  14913. {
  14914. CONST_VTBL struct ID3D12Resource1Vtbl *lpVtbl;
  14915. };
  14916. #ifdef COBJMACROS
  14917. #define ID3D12Resource1_QueryInterface(This,riid,ppvObject) \
  14918. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  14919. #define ID3D12Resource1_AddRef(This) \
  14920. ( (This)->lpVtbl -> AddRef(This) )
  14921. #define ID3D12Resource1_Release(This) \
  14922. ( (This)->lpVtbl -> Release(This) )
  14923. #define ID3D12Resource1_GetPrivateData(This,guid,pDataSize,pData) \
  14924. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  14925. #define ID3D12Resource1_SetPrivateData(This,guid,DataSize,pData) \
  14926. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  14927. #define ID3D12Resource1_SetPrivateDataInterface(This,guid,pData) \
  14928. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  14929. #define ID3D12Resource1_SetName(This,Name) \
  14930. ( (This)->lpVtbl -> SetName(This,Name) )
  14931. #define ID3D12Resource1_GetDevice(This,riid,ppvDevice) \
  14932. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  14933. #define ID3D12Resource1_Map(This,Subresource,pReadRange,ppData) \
  14934. ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) )
  14935. #define ID3D12Resource1_Unmap(This,Subresource,pWrittenRange) \
  14936. ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) )
  14937. #if !defined(_WIN32)
  14938. #define ID3D12Resource1_GetDesc(This) \
  14939. ( (This)->lpVtbl -> GetDesc(This) )
  14940. #else
  14941. #define ID3D12Resource1_GetDesc(This,RetVal) \
  14942. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  14943. #endif
  14944. #define ID3D12Resource1_GetGPUVirtualAddress(This) \
  14945. ( (This)->lpVtbl -> GetGPUVirtualAddress(This) )
  14946. #define ID3D12Resource1_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  14947. ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  14948. #define ID3D12Resource1_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \
  14949. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) )
  14950. #define ID3D12Resource1_GetHeapProperties(This,pHeapProperties,pHeapFlags) \
  14951. ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) )
  14952. #define ID3D12Resource1_GetProtectedResourceSession(This,riid,ppProtectedSession) \
  14953. ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) )
  14954. #endif /* COBJMACROS */
  14955. #endif /* C style interface */
  14956. #endif /* __ID3D12Resource1_INTERFACE_DEFINED__ */
  14957. #ifndef __ID3D12Resource2_INTERFACE_DEFINED__
  14958. #define __ID3D12Resource2_INTERFACE_DEFINED__
  14959. /* interface ID3D12Resource2 */
  14960. /* [unique][local][object][uuid] */
  14961. EXTERN_C const IID IID_ID3D12Resource2;
  14962. #if defined(__cplusplus) && !defined(CINTERFACE)
  14963. MIDL_INTERFACE("BE36EC3B-EA85-4AEB-A45A-E9D76404A495")
  14964. ID3D12Resource2 : public ID3D12Resource1
  14965. {
  14966. public:
  14967. #if defined(_MSC_VER) || !defined(_WIN32)
  14968. virtual D3D12_RESOURCE_DESC1 STDMETHODCALLTYPE GetDesc1( void) = 0;
  14969. #else
  14970. virtual D3D12_RESOURCE_DESC1 *STDMETHODCALLTYPE GetDesc1(
  14971. D3D12_RESOURCE_DESC1 * RetVal) = 0;
  14972. #endif
  14973. };
  14974. #else /* C style interface */
  14975. typedef struct ID3D12Resource2Vtbl
  14976. {
  14977. BEGIN_INTERFACE
  14978. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  14979. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14980. ID3D12Resource2 * This,
  14981. REFIID riid,
  14982. _COM_Outptr_ void **ppvObject);
  14983. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  14984. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14985. ID3D12Resource2 * This);
  14986. DECLSPEC_XFGVIRT(IUnknown, Release)
  14987. ULONG ( STDMETHODCALLTYPE *Release )(
  14988. ID3D12Resource2 * This);
  14989. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  14990. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  14991. ID3D12Resource2 * This,
  14992. _In_ REFGUID guid,
  14993. _Inout_ UINT *pDataSize,
  14994. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  14995. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  14996. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  14997. ID3D12Resource2 * This,
  14998. _In_ REFGUID guid,
  14999. _In_ UINT DataSize,
  15000. _In_reads_bytes_opt_( DataSize ) const void *pData);
  15001. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  15002. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  15003. ID3D12Resource2 * This,
  15004. _In_ REFGUID guid,
  15005. _In_opt_ const IUnknown *pData);
  15006. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  15007. HRESULT ( STDMETHODCALLTYPE *SetName )(
  15008. ID3D12Resource2 * This,
  15009. _In_z_ LPCWSTR Name);
  15010. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  15011. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  15012. ID3D12Resource2 * This,
  15013. REFIID riid,
  15014. _COM_Outptr_opt_ void **ppvDevice);
  15015. DECLSPEC_XFGVIRT(ID3D12Resource, Map)
  15016. HRESULT ( STDMETHODCALLTYPE *Map )(
  15017. ID3D12Resource2 * This,
  15018. UINT Subresource,
  15019. _In_opt_ const D3D12_RANGE *pReadRange,
  15020. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData);
  15021. DECLSPEC_XFGVIRT(ID3D12Resource, Unmap)
  15022. void ( STDMETHODCALLTYPE *Unmap )(
  15023. ID3D12Resource2 * This,
  15024. UINT Subresource,
  15025. _In_opt_ const D3D12_RANGE *pWrittenRange);
  15026. DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc)
  15027. #if !defined(_WIN32)
  15028. D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  15029. ID3D12Resource2 * This);
  15030. #else
  15031. D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  15032. ID3D12Resource2 * This,
  15033. D3D12_RESOURCE_DESC * RetVal);
  15034. #endif
  15035. DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress)
  15036. D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )(
  15037. ID3D12Resource2 * This);
  15038. DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource)
  15039. HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )(
  15040. ID3D12Resource2 * This,
  15041. UINT DstSubresource,
  15042. _In_opt_ const D3D12_BOX *pDstBox,
  15043. _In_ const void *pSrcData,
  15044. UINT SrcRowPitch,
  15045. UINT SrcDepthPitch);
  15046. DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource)
  15047. HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )(
  15048. ID3D12Resource2 * This,
  15049. _Out_ void *pDstData,
  15050. UINT DstRowPitch,
  15051. UINT DstDepthPitch,
  15052. UINT SrcSubresource,
  15053. _In_opt_ const D3D12_BOX *pSrcBox);
  15054. DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties)
  15055. HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )(
  15056. ID3D12Resource2 * This,
  15057. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  15058. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags);
  15059. DECLSPEC_XFGVIRT(ID3D12Resource1, GetProtectedResourceSession)
  15060. HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )(
  15061. ID3D12Resource2 * This,
  15062. REFIID riid,
  15063. _COM_Outptr_opt_ void **ppProtectedSession);
  15064. DECLSPEC_XFGVIRT(ID3D12Resource2, GetDesc1)
  15065. #if !defined(_WIN32)
  15066. D3D12_RESOURCE_DESC1 ( STDMETHODCALLTYPE *GetDesc1 )(
  15067. ID3D12Resource2 * This);
  15068. #else
  15069. D3D12_RESOURCE_DESC1 *( STDMETHODCALLTYPE *GetDesc1 )(
  15070. ID3D12Resource2 * This,
  15071. D3D12_RESOURCE_DESC1 * RetVal);
  15072. #endif
  15073. END_INTERFACE
  15074. } ID3D12Resource2Vtbl;
  15075. interface ID3D12Resource2
  15076. {
  15077. CONST_VTBL struct ID3D12Resource2Vtbl *lpVtbl;
  15078. };
  15079. #ifdef COBJMACROS
  15080. #define ID3D12Resource2_QueryInterface(This,riid,ppvObject) \
  15081. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  15082. #define ID3D12Resource2_AddRef(This) \
  15083. ( (This)->lpVtbl -> AddRef(This) )
  15084. #define ID3D12Resource2_Release(This) \
  15085. ( (This)->lpVtbl -> Release(This) )
  15086. #define ID3D12Resource2_GetPrivateData(This,guid,pDataSize,pData) \
  15087. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  15088. #define ID3D12Resource2_SetPrivateData(This,guid,DataSize,pData) \
  15089. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  15090. #define ID3D12Resource2_SetPrivateDataInterface(This,guid,pData) \
  15091. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  15092. #define ID3D12Resource2_SetName(This,Name) \
  15093. ( (This)->lpVtbl -> SetName(This,Name) )
  15094. #define ID3D12Resource2_GetDevice(This,riid,ppvDevice) \
  15095. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  15096. #define ID3D12Resource2_Map(This,Subresource,pReadRange,ppData) \
  15097. ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) )
  15098. #define ID3D12Resource2_Unmap(This,Subresource,pWrittenRange) \
  15099. ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) )
  15100. #if !defined(_WIN32)
  15101. #define ID3D12Resource2_GetDesc(This) \
  15102. ( (This)->lpVtbl -> GetDesc(This) )
  15103. #else
  15104. #define ID3D12Resource2_GetDesc(This,RetVal) \
  15105. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  15106. #endif
  15107. #define ID3D12Resource2_GetGPUVirtualAddress(This) \
  15108. ( (This)->lpVtbl -> GetGPUVirtualAddress(This) )
  15109. #define ID3D12Resource2_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  15110. ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  15111. #define ID3D12Resource2_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \
  15112. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) )
  15113. #define ID3D12Resource2_GetHeapProperties(This,pHeapProperties,pHeapFlags) \
  15114. ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) )
  15115. #define ID3D12Resource2_GetProtectedResourceSession(This,riid,ppProtectedSession) \
  15116. ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) )
  15117. #if !defined(_WIN32)
  15118. #define ID3D12Resource2_GetDesc1(This) \
  15119. ( (This)->lpVtbl -> GetDesc1(This) )
  15120. #else
  15121. #define ID3D12Resource2_GetDesc1(This,RetVal) \
  15122. ( (This)->lpVtbl -> GetDesc1(This,RetVal) )
  15123. #endif
  15124. #endif /* COBJMACROS */
  15125. #endif /* C style interface */
  15126. #endif /* __ID3D12Resource2_INTERFACE_DEFINED__ */
  15127. #ifndef __ID3D12Heap1_INTERFACE_DEFINED__
  15128. #define __ID3D12Heap1_INTERFACE_DEFINED__
  15129. /* interface ID3D12Heap1 */
  15130. /* [unique][local][object][uuid] */
  15131. EXTERN_C const IID IID_ID3D12Heap1;
  15132. #if defined(__cplusplus) && !defined(CINTERFACE)
  15133. MIDL_INTERFACE("572F7389-2168-49E3-9693-D6DF5871BF6D")
  15134. ID3D12Heap1 : public ID3D12Heap
  15135. {
  15136. public:
  15137. virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession(
  15138. REFIID riid,
  15139. _COM_Outptr_opt_ void **ppProtectedSession) = 0;
  15140. };
  15141. #else /* C style interface */
  15142. typedef struct ID3D12Heap1Vtbl
  15143. {
  15144. BEGIN_INTERFACE
  15145. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  15146. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15147. ID3D12Heap1 * This,
  15148. REFIID riid,
  15149. _COM_Outptr_ void **ppvObject);
  15150. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  15151. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15152. ID3D12Heap1 * This);
  15153. DECLSPEC_XFGVIRT(IUnknown, Release)
  15154. ULONG ( STDMETHODCALLTYPE *Release )(
  15155. ID3D12Heap1 * This);
  15156. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  15157. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  15158. ID3D12Heap1 * This,
  15159. _In_ REFGUID guid,
  15160. _Inout_ UINT *pDataSize,
  15161. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  15162. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  15163. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  15164. ID3D12Heap1 * This,
  15165. _In_ REFGUID guid,
  15166. _In_ UINT DataSize,
  15167. _In_reads_bytes_opt_( DataSize ) const void *pData);
  15168. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  15169. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  15170. ID3D12Heap1 * This,
  15171. _In_ REFGUID guid,
  15172. _In_opt_ const IUnknown *pData);
  15173. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  15174. HRESULT ( STDMETHODCALLTYPE *SetName )(
  15175. ID3D12Heap1 * This,
  15176. _In_z_ LPCWSTR Name);
  15177. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  15178. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  15179. ID3D12Heap1 * This,
  15180. REFIID riid,
  15181. _COM_Outptr_opt_ void **ppvDevice);
  15182. DECLSPEC_XFGVIRT(ID3D12Heap, GetDesc)
  15183. #if !defined(_WIN32)
  15184. D3D12_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )(
  15185. ID3D12Heap1 * This);
  15186. #else
  15187. D3D12_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )(
  15188. ID3D12Heap1 * This,
  15189. D3D12_HEAP_DESC * RetVal);
  15190. #endif
  15191. DECLSPEC_XFGVIRT(ID3D12Heap1, GetProtectedResourceSession)
  15192. HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )(
  15193. ID3D12Heap1 * This,
  15194. REFIID riid,
  15195. _COM_Outptr_opt_ void **ppProtectedSession);
  15196. END_INTERFACE
  15197. } ID3D12Heap1Vtbl;
  15198. interface ID3D12Heap1
  15199. {
  15200. CONST_VTBL struct ID3D12Heap1Vtbl *lpVtbl;
  15201. };
  15202. #ifdef COBJMACROS
  15203. #define ID3D12Heap1_QueryInterface(This,riid,ppvObject) \
  15204. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  15205. #define ID3D12Heap1_AddRef(This) \
  15206. ( (This)->lpVtbl -> AddRef(This) )
  15207. #define ID3D12Heap1_Release(This) \
  15208. ( (This)->lpVtbl -> Release(This) )
  15209. #define ID3D12Heap1_GetPrivateData(This,guid,pDataSize,pData) \
  15210. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  15211. #define ID3D12Heap1_SetPrivateData(This,guid,DataSize,pData) \
  15212. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  15213. #define ID3D12Heap1_SetPrivateDataInterface(This,guid,pData) \
  15214. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  15215. #define ID3D12Heap1_SetName(This,Name) \
  15216. ( (This)->lpVtbl -> SetName(This,Name) )
  15217. #define ID3D12Heap1_GetDevice(This,riid,ppvDevice) \
  15218. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  15219. #if !defined(_WIN32)
  15220. #define ID3D12Heap1_GetDesc(This) \
  15221. ( (This)->lpVtbl -> GetDesc(This) )
  15222. #else
  15223. #define ID3D12Heap1_GetDesc(This,RetVal) \
  15224. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  15225. #endif
  15226. #define ID3D12Heap1_GetProtectedResourceSession(This,riid,ppProtectedSession) \
  15227. ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) )
  15228. #endif /* COBJMACROS */
  15229. #endif /* C style interface */
  15230. #endif /* __ID3D12Heap1_INTERFACE_DEFINED__ */
  15231. #ifndef __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__
  15232. #define __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__
  15233. /* interface ID3D12GraphicsCommandList3 */
  15234. /* [unique][local][object][uuid] */
  15235. EXTERN_C const IID IID_ID3D12GraphicsCommandList3;
  15236. #if defined(__cplusplus) && !defined(CINTERFACE)
  15237. MIDL_INTERFACE("6FDA83A7-B84C-4E38-9AC8-C7BD22016B3D")
  15238. ID3D12GraphicsCommandList3 : public ID3D12GraphicsCommandList2
  15239. {
  15240. public:
  15241. virtual void STDMETHODCALLTYPE SetProtectedResourceSession(
  15242. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession) = 0;
  15243. };
  15244. #else /* C style interface */
  15245. typedef struct ID3D12GraphicsCommandList3Vtbl
  15246. {
  15247. BEGIN_INTERFACE
  15248. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  15249. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15250. ID3D12GraphicsCommandList3 * This,
  15251. REFIID riid,
  15252. _COM_Outptr_ void **ppvObject);
  15253. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  15254. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15255. ID3D12GraphicsCommandList3 * This);
  15256. DECLSPEC_XFGVIRT(IUnknown, Release)
  15257. ULONG ( STDMETHODCALLTYPE *Release )(
  15258. ID3D12GraphicsCommandList3 * This);
  15259. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  15260. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  15261. ID3D12GraphicsCommandList3 * This,
  15262. _In_ REFGUID guid,
  15263. _Inout_ UINT *pDataSize,
  15264. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  15265. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  15266. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  15267. ID3D12GraphicsCommandList3 * This,
  15268. _In_ REFGUID guid,
  15269. _In_ UINT DataSize,
  15270. _In_reads_bytes_opt_( DataSize ) const void *pData);
  15271. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  15272. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  15273. ID3D12GraphicsCommandList3 * This,
  15274. _In_ REFGUID guid,
  15275. _In_opt_ const IUnknown *pData);
  15276. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  15277. HRESULT ( STDMETHODCALLTYPE *SetName )(
  15278. ID3D12GraphicsCommandList3 * This,
  15279. _In_z_ LPCWSTR Name);
  15280. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  15281. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  15282. ID3D12GraphicsCommandList3 * This,
  15283. REFIID riid,
  15284. _COM_Outptr_opt_ void **ppvDevice);
  15285. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  15286. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  15287. ID3D12GraphicsCommandList3 * This);
  15288. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  15289. HRESULT ( STDMETHODCALLTYPE *Close )(
  15290. ID3D12GraphicsCommandList3 * This);
  15291. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  15292. HRESULT ( STDMETHODCALLTYPE *Reset )(
  15293. ID3D12GraphicsCommandList3 * This,
  15294. _In_ ID3D12CommandAllocator *pAllocator,
  15295. _In_opt_ ID3D12PipelineState *pInitialState);
  15296. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  15297. void ( STDMETHODCALLTYPE *ClearState )(
  15298. ID3D12GraphicsCommandList3 * This,
  15299. _In_opt_ ID3D12PipelineState *pPipelineState);
  15300. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  15301. void ( STDMETHODCALLTYPE *DrawInstanced )(
  15302. ID3D12GraphicsCommandList3 * This,
  15303. _In_ UINT VertexCountPerInstance,
  15304. _In_ UINT InstanceCount,
  15305. _In_ UINT StartVertexLocation,
  15306. _In_ UINT StartInstanceLocation);
  15307. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  15308. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  15309. ID3D12GraphicsCommandList3 * This,
  15310. _In_ UINT IndexCountPerInstance,
  15311. _In_ UINT InstanceCount,
  15312. _In_ UINT StartIndexLocation,
  15313. _In_ INT BaseVertexLocation,
  15314. _In_ UINT StartInstanceLocation);
  15315. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  15316. void ( STDMETHODCALLTYPE *Dispatch )(
  15317. ID3D12GraphicsCommandList3 * This,
  15318. _In_ UINT ThreadGroupCountX,
  15319. _In_ UINT ThreadGroupCountY,
  15320. _In_ UINT ThreadGroupCountZ);
  15321. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  15322. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  15323. ID3D12GraphicsCommandList3 * This,
  15324. _In_ ID3D12Resource *pDstBuffer,
  15325. UINT64 DstOffset,
  15326. _In_ ID3D12Resource *pSrcBuffer,
  15327. UINT64 SrcOffset,
  15328. UINT64 NumBytes);
  15329. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  15330. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  15331. ID3D12GraphicsCommandList3 * This,
  15332. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  15333. UINT DstX,
  15334. UINT DstY,
  15335. UINT DstZ,
  15336. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  15337. _In_opt_ const D3D12_BOX *pSrcBox);
  15338. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  15339. void ( STDMETHODCALLTYPE *CopyResource )(
  15340. ID3D12GraphicsCommandList3 * This,
  15341. _In_ ID3D12Resource *pDstResource,
  15342. _In_ ID3D12Resource *pSrcResource);
  15343. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  15344. void ( STDMETHODCALLTYPE *CopyTiles )(
  15345. ID3D12GraphicsCommandList3 * This,
  15346. _In_ ID3D12Resource *pTiledResource,
  15347. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  15348. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  15349. _In_ ID3D12Resource *pBuffer,
  15350. UINT64 BufferStartOffsetInBytes,
  15351. D3D12_TILE_COPY_FLAGS Flags);
  15352. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  15353. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  15354. ID3D12GraphicsCommandList3 * This,
  15355. _In_ ID3D12Resource *pDstResource,
  15356. _In_ UINT DstSubresource,
  15357. _In_ ID3D12Resource *pSrcResource,
  15358. _In_ UINT SrcSubresource,
  15359. _In_ DXGI_FORMAT Format);
  15360. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  15361. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  15362. ID3D12GraphicsCommandList3 * This,
  15363. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  15364. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  15365. void ( STDMETHODCALLTYPE *RSSetViewports )(
  15366. ID3D12GraphicsCommandList3 * This,
  15367. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  15368. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  15369. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  15370. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  15371. ID3D12GraphicsCommandList3 * This,
  15372. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  15373. _In_reads_( NumRects) const D3D12_RECT *pRects);
  15374. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  15375. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  15376. ID3D12GraphicsCommandList3 * This,
  15377. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  15378. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  15379. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  15380. ID3D12GraphicsCommandList3 * This,
  15381. _In_ UINT StencilRef);
  15382. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  15383. void ( STDMETHODCALLTYPE *SetPipelineState )(
  15384. ID3D12GraphicsCommandList3 * This,
  15385. _In_ ID3D12PipelineState *pPipelineState);
  15386. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  15387. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  15388. ID3D12GraphicsCommandList3 * This,
  15389. _In_ UINT NumBarriers,
  15390. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  15391. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  15392. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  15393. ID3D12GraphicsCommandList3 * This,
  15394. _In_ ID3D12GraphicsCommandList *pCommandList);
  15395. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  15396. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  15397. ID3D12GraphicsCommandList3 * This,
  15398. _In_ UINT NumDescriptorHeaps,
  15399. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  15400. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  15401. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  15402. ID3D12GraphicsCommandList3 * This,
  15403. _In_opt_ ID3D12RootSignature *pRootSignature);
  15404. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  15405. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  15406. ID3D12GraphicsCommandList3 * This,
  15407. _In_opt_ ID3D12RootSignature *pRootSignature);
  15408. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  15409. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  15410. ID3D12GraphicsCommandList3 * This,
  15411. _In_ UINT RootParameterIndex,
  15412. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  15413. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  15414. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  15415. ID3D12GraphicsCommandList3 * This,
  15416. _In_ UINT RootParameterIndex,
  15417. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  15418. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  15419. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  15420. ID3D12GraphicsCommandList3 * This,
  15421. _In_ UINT RootParameterIndex,
  15422. _In_ UINT SrcData,
  15423. _In_ UINT DestOffsetIn32BitValues);
  15424. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  15425. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  15426. ID3D12GraphicsCommandList3 * This,
  15427. _In_ UINT RootParameterIndex,
  15428. _In_ UINT SrcData,
  15429. _In_ UINT DestOffsetIn32BitValues);
  15430. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  15431. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  15432. ID3D12GraphicsCommandList3 * This,
  15433. _In_ UINT RootParameterIndex,
  15434. _In_ UINT Num32BitValuesToSet,
  15435. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  15436. _In_ UINT DestOffsetIn32BitValues);
  15437. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  15438. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  15439. ID3D12GraphicsCommandList3 * This,
  15440. _In_ UINT RootParameterIndex,
  15441. _In_ UINT Num32BitValuesToSet,
  15442. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  15443. _In_ UINT DestOffsetIn32BitValues);
  15444. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  15445. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  15446. ID3D12GraphicsCommandList3 * This,
  15447. _In_ UINT RootParameterIndex,
  15448. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15449. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  15450. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  15451. ID3D12GraphicsCommandList3 * This,
  15452. _In_ UINT RootParameterIndex,
  15453. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15454. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  15455. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  15456. ID3D12GraphicsCommandList3 * This,
  15457. _In_ UINT RootParameterIndex,
  15458. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15459. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  15460. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  15461. ID3D12GraphicsCommandList3 * This,
  15462. _In_ UINT RootParameterIndex,
  15463. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15464. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  15465. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  15466. ID3D12GraphicsCommandList3 * This,
  15467. _In_ UINT RootParameterIndex,
  15468. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15469. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  15470. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  15471. ID3D12GraphicsCommandList3 * This,
  15472. _In_ UINT RootParameterIndex,
  15473. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15474. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  15475. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  15476. ID3D12GraphicsCommandList3 * This,
  15477. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  15478. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  15479. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  15480. ID3D12GraphicsCommandList3 * This,
  15481. _In_ UINT StartSlot,
  15482. _In_ UINT NumViews,
  15483. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  15484. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  15485. void ( STDMETHODCALLTYPE *SOSetTargets )(
  15486. ID3D12GraphicsCommandList3 * This,
  15487. _In_ UINT StartSlot,
  15488. _In_ UINT NumViews,
  15489. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  15490. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  15491. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  15492. ID3D12GraphicsCommandList3 * This,
  15493. _In_ UINT NumRenderTargetDescriptors,
  15494. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  15495. _In_ BOOL RTsSingleHandleToDescriptorRange,
  15496. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  15497. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  15498. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  15499. ID3D12GraphicsCommandList3 * This,
  15500. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  15501. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  15502. _In_ FLOAT Depth,
  15503. _In_ UINT8 Stencil,
  15504. _In_ UINT NumRects,
  15505. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15506. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  15507. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  15508. ID3D12GraphicsCommandList3 * This,
  15509. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  15510. _In_ const FLOAT ColorRGBA[ 4 ],
  15511. _In_ UINT NumRects,
  15512. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15513. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  15514. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  15515. ID3D12GraphicsCommandList3 * This,
  15516. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  15517. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  15518. _In_ ID3D12Resource *pResource,
  15519. _In_ const UINT Values[ 4 ],
  15520. _In_ UINT NumRects,
  15521. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15522. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  15523. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  15524. ID3D12GraphicsCommandList3 * This,
  15525. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  15526. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  15527. _In_ ID3D12Resource *pResource,
  15528. _In_ const FLOAT Values[ 4 ],
  15529. _In_ UINT NumRects,
  15530. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15531. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  15532. void ( STDMETHODCALLTYPE *DiscardResource )(
  15533. ID3D12GraphicsCommandList3 * This,
  15534. _In_ ID3D12Resource *pResource,
  15535. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  15536. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  15537. void ( STDMETHODCALLTYPE *BeginQuery )(
  15538. ID3D12GraphicsCommandList3 * This,
  15539. _In_ ID3D12QueryHeap *pQueryHeap,
  15540. _In_ D3D12_QUERY_TYPE Type,
  15541. _In_ UINT Index);
  15542. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  15543. void ( STDMETHODCALLTYPE *EndQuery )(
  15544. ID3D12GraphicsCommandList3 * This,
  15545. _In_ ID3D12QueryHeap *pQueryHeap,
  15546. _In_ D3D12_QUERY_TYPE Type,
  15547. _In_ UINT Index);
  15548. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  15549. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  15550. ID3D12GraphicsCommandList3 * This,
  15551. _In_ ID3D12QueryHeap *pQueryHeap,
  15552. _In_ D3D12_QUERY_TYPE Type,
  15553. _In_ UINT StartIndex,
  15554. _In_ UINT NumQueries,
  15555. _In_ ID3D12Resource *pDestinationBuffer,
  15556. _In_ UINT64 AlignedDestinationBufferOffset);
  15557. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  15558. void ( STDMETHODCALLTYPE *SetPredication )(
  15559. ID3D12GraphicsCommandList3 * This,
  15560. _In_opt_ ID3D12Resource *pBuffer,
  15561. _In_ UINT64 AlignedBufferOffset,
  15562. _In_ D3D12_PREDICATION_OP Operation);
  15563. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  15564. void ( STDMETHODCALLTYPE *SetMarker )(
  15565. ID3D12GraphicsCommandList3 * This,
  15566. UINT Metadata,
  15567. _In_reads_bytes_opt_(Size) const void *pData,
  15568. UINT Size);
  15569. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  15570. void ( STDMETHODCALLTYPE *BeginEvent )(
  15571. ID3D12GraphicsCommandList3 * This,
  15572. UINT Metadata,
  15573. _In_reads_bytes_opt_(Size) const void *pData,
  15574. UINT Size);
  15575. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  15576. void ( STDMETHODCALLTYPE *EndEvent )(
  15577. ID3D12GraphicsCommandList3 * This);
  15578. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  15579. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  15580. ID3D12GraphicsCommandList3 * This,
  15581. _In_ ID3D12CommandSignature *pCommandSignature,
  15582. _In_ UINT MaxCommandCount,
  15583. _In_ ID3D12Resource *pArgumentBuffer,
  15584. _In_ UINT64 ArgumentBufferOffset,
  15585. _In_opt_ ID3D12Resource *pCountBuffer,
  15586. _In_ UINT64 CountBufferOffset);
  15587. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  15588. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  15589. ID3D12GraphicsCommandList3 * This,
  15590. _In_ ID3D12Resource *pDstBuffer,
  15591. UINT64 DstOffset,
  15592. _In_ ID3D12Resource *pSrcBuffer,
  15593. UINT64 SrcOffset,
  15594. UINT Dependencies,
  15595. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  15596. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  15597. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  15598. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  15599. ID3D12GraphicsCommandList3 * This,
  15600. _In_ ID3D12Resource *pDstBuffer,
  15601. UINT64 DstOffset,
  15602. _In_ ID3D12Resource *pSrcBuffer,
  15603. UINT64 SrcOffset,
  15604. UINT Dependencies,
  15605. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  15606. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  15607. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  15608. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  15609. ID3D12GraphicsCommandList3 * This,
  15610. _In_ FLOAT Min,
  15611. _In_ FLOAT Max);
  15612. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  15613. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  15614. ID3D12GraphicsCommandList3 * This,
  15615. _In_ UINT NumSamplesPerPixel,
  15616. _In_ UINT NumPixels,
  15617. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  15618. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  15619. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  15620. ID3D12GraphicsCommandList3 * This,
  15621. _In_ ID3D12Resource *pDstResource,
  15622. _In_ UINT DstSubresource,
  15623. _In_ UINT DstX,
  15624. _In_ UINT DstY,
  15625. _In_ ID3D12Resource *pSrcResource,
  15626. _In_ UINT SrcSubresource,
  15627. _In_opt_ D3D12_RECT *pSrcRect,
  15628. _In_ DXGI_FORMAT Format,
  15629. _In_ D3D12_RESOLVE_MODE ResolveMode);
  15630. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  15631. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  15632. ID3D12GraphicsCommandList3 * This,
  15633. _In_ UINT Mask);
  15634. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  15635. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  15636. ID3D12GraphicsCommandList3 * This,
  15637. UINT Count,
  15638. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  15639. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  15640. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  15641. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  15642. ID3D12GraphicsCommandList3 * This,
  15643. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  15644. END_INTERFACE
  15645. } ID3D12GraphicsCommandList3Vtbl;
  15646. interface ID3D12GraphicsCommandList3
  15647. {
  15648. CONST_VTBL struct ID3D12GraphicsCommandList3Vtbl *lpVtbl;
  15649. };
  15650. #ifdef COBJMACROS
  15651. #define ID3D12GraphicsCommandList3_QueryInterface(This,riid,ppvObject) \
  15652. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  15653. #define ID3D12GraphicsCommandList3_AddRef(This) \
  15654. ( (This)->lpVtbl -> AddRef(This) )
  15655. #define ID3D12GraphicsCommandList3_Release(This) \
  15656. ( (This)->lpVtbl -> Release(This) )
  15657. #define ID3D12GraphicsCommandList3_GetPrivateData(This,guid,pDataSize,pData) \
  15658. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  15659. #define ID3D12GraphicsCommandList3_SetPrivateData(This,guid,DataSize,pData) \
  15660. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  15661. #define ID3D12GraphicsCommandList3_SetPrivateDataInterface(This,guid,pData) \
  15662. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  15663. #define ID3D12GraphicsCommandList3_SetName(This,Name) \
  15664. ( (This)->lpVtbl -> SetName(This,Name) )
  15665. #define ID3D12GraphicsCommandList3_GetDevice(This,riid,ppvDevice) \
  15666. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  15667. #define ID3D12GraphicsCommandList3_GetType(This) \
  15668. ( (This)->lpVtbl -> GetType(This) )
  15669. #define ID3D12GraphicsCommandList3_Close(This) \
  15670. ( (This)->lpVtbl -> Close(This) )
  15671. #define ID3D12GraphicsCommandList3_Reset(This,pAllocator,pInitialState) \
  15672. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  15673. #define ID3D12GraphicsCommandList3_ClearState(This,pPipelineState) \
  15674. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  15675. #define ID3D12GraphicsCommandList3_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  15676. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  15677. #define ID3D12GraphicsCommandList3_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  15678. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  15679. #define ID3D12GraphicsCommandList3_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  15680. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  15681. #define ID3D12GraphicsCommandList3_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  15682. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  15683. #define ID3D12GraphicsCommandList3_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  15684. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  15685. #define ID3D12GraphicsCommandList3_CopyResource(This,pDstResource,pSrcResource) \
  15686. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  15687. #define ID3D12GraphicsCommandList3_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  15688. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  15689. #define ID3D12GraphicsCommandList3_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  15690. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  15691. #define ID3D12GraphicsCommandList3_IASetPrimitiveTopology(This,PrimitiveTopology) \
  15692. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  15693. #define ID3D12GraphicsCommandList3_RSSetViewports(This,NumViewports,pViewports) \
  15694. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  15695. #define ID3D12GraphicsCommandList3_RSSetScissorRects(This,NumRects,pRects) \
  15696. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  15697. #define ID3D12GraphicsCommandList3_OMSetBlendFactor(This,BlendFactor) \
  15698. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  15699. #define ID3D12GraphicsCommandList3_OMSetStencilRef(This,StencilRef) \
  15700. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  15701. #define ID3D12GraphicsCommandList3_SetPipelineState(This,pPipelineState) \
  15702. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  15703. #define ID3D12GraphicsCommandList3_ResourceBarrier(This,NumBarriers,pBarriers) \
  15704. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  15705. #define ID3D12GraphicsCommandList3_ExecuteBundle(This,pCommandList) \
  15706. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  15707. #define ID3D12GraphicsCommandList3_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  15708. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  15709. #define ID3D12GraphicsCommandList3_SetComputeRootSignature(This,pRootSignature) \
  15710. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  15711. #define ID3D12GraphicsCommandList3_SetGraphicsRootSignature(This,pRootSignature) \
  15712. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  15713. #define ID3D12GraphicsCommandList3_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  15714. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  15715. #define ID3D12GraphicsCommandList3_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  15716. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  15717. #define ID3D12GraphicsCommandList3_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  15718. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  15719. #define ID3D12GraphicsCommandList3_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  15720. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  15721. #define ID3D12GraphicsCommandList3_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  15722. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  15723. #define ID3D12GraphicsCommandList3_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  15724. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  15725. #define ID3D12GraphicsCommandList3_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  15726. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  15727. #define ID3D12GraphicsCommandList3_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  15728. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  15729. #define ID3D12GraphicsCommandList3_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  15730. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  15731. #define ID3D12GraphicsCommandList3_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  15732. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  15733. #define ID3D12GraphicsCommandList3_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  15734. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  15735. #define ID3D12GraphicsCommandList3_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  15736. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  15737. #define ID3D12GraphicsCommandList3_IASetIndexBuffer(This,pView) \
  15738. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  15739. #define ID3D12GraphicsCommandList3_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  15740. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  15741. #define ID3D12GraphicsCommandList3_SOSetTargets(This,StartSlot,NumViews,pViews) \
  15742. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  15743. #define ID3D12GraphicsCommandList3_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  15744. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  15745. #define ID3D12GraphicsCommandList3_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  15746. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  15747. #define ID3D12GraphicsCommandList3_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  15748. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  15749. #define ID3D12GraphicsCommandList3_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  15750. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  15751. #define ID3D12GraphicsCommandList3_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  15752. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  15753. #define ID3D12GraphicsCommandList3_DiscardResource(This,pResource,pRegion) \
  15754. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  15755. #define ID3D12GraphicsCommandList3_BeginQuery(This,pQueryHeap,Type,Index) \
  15756. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  15757. #define ID3D12GraphicsCommandList3_EndQuery(This,pQueryHeap,Type,Index) \
  15758. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  15759. #define ID3D12GraphicsCommandList3_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  15760. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  15761. #define ID3D12GraphicsCommandList3_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  15762. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  15763. #define ID3D12GraphicsCommandList3_SetMarker(This,Metadata,pData,Size) \
  15764. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  15765. #define ID3D12GraphicsCommandList3_BeginEvent(This,Metadata,pData,Size) \
  15766. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  15767. #define ID3D12GraphicsCommandList3_EndEvent(This) \
  15768. ( (This)->lpVtbl -> EndEvent(This) )
  15769. #define ID3D12GraphicsCommandList3_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  15770. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  15771. #define ID3D12GraphicsCommandList3_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  15772. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  15773. #define ID3D12GraphicsCommandList3_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  15774. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  15775. #define ID3D12GraphicsCommandList3_OMSetDepthBounds(This,Min,Max) \
  15776. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  15777. #define ID3D12GraphicsCommandList3_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  15778. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  15779. #define ID3D12GraphicsCommandList3_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  15780. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  15781. #define ID3D12GraphicsCommandList3_SetViewInstanceMask(This,Mask) \
  15782. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  15783. #define ID3D12GraphicsCommandList3_WriteBufferImmediate(This,Count,pParams,pModes) \
  15784. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  15785. #define ID3D12GraphicsCommandList3_SetProtectedResourceSession(This,pProtectedResourceSession) \
  15786. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  15787. #endif /* COBJMACROS */
  15788. #endif /* C style interface */
  15789. #endif /* __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__ */
  15790. /* interface __MIDL_itf_d3d12_0000_0051 */
  15791. /* [local] */
  15792. typedef
  15793. enum D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE
  15794. {
  15795. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD = 0,
  15796. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD + 1 ) ,
  15797. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE + 1 ) ,
  15798. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_NO_ACCESS = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR + 1 ) ,
  15799. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_NO_ACCESS + 1 ) ,
  15800. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER + 1 ) ,
  15801. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_UAV = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV + 1 )
  15802. } D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE;
  15803. typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS
  15804. {
  15805. D3D12_CLEAR_VALUE ClearValue;
  15806. } D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS;
  15807. typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS
  15808. {
  15809. UINT AdditionalWidth;
  15810. UINT AdditionalHeight;
  15811. } D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS;
  15812. typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS
  15813. {
  15814. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE Type;
  15815. union
  15816. {
  15817. D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS Clear;
  15818. D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS PreserveLocal;
  15819. } ;
  15820. } D3D12_RENDER_PASS_BEGINNING_ACCESS;
  15821. typedef
  15822. enum D3D12_RENDER_PASS_ENDING_ACCESS_TYPE
  15823. {
  15824. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD = 0,
  15825. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD + 1 ) ,
  15826. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE + 1 ) ,
  15827. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_NO_ACCESS = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE + 1 ) ,
  15828. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_NO_ACCESS + 1 ) ,
  15829. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER + 1 ) ,
  15830. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_UAV = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV + 1 )
  15831. } D3D12_RENDER_PASS_ENDING_ACCESS_TYPE;
  15832. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS
  15833. {
  15834. UINT SrcSubresource;
  15835. UINT DstSubresource;
  15836. UINT DstX;
  15837. UINT DstY;
  15838. D3D12_RECT SrcRect;
  15839. } D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS;
  15840. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS
  15841. {
  15842. ID3D12Resource *pSrcResource;
  15843. ID3D12Resource *pDstResource;
  15844. UINT SubresourceCount;
  15845. _Field_size_full_(SubresourceCount) const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS *pSubresourceParameters;
  15846. DXGI_FORMAT Format;
  15847. D3D12_RESOLVE_MODE ResolveMode;
  15848. BOOL PreserveResolveSource;
  15849. } D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS;
  15850. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS
  15851. {
  15852. UINT AdditionalWidth;
  15853. UINT AdditionalHeight;
  15854. } D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS;
  15855. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS
  15856. {
  15857. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE Type;
  15858. union
  15859. {
  15860. D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS Resolve;
  15861. D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS PreserveLocal;
  15862. } ;
  15863. } D3D12_RENDER_PASS_ENDING_ACCESS;
  15864. typedef struct D3D12_RENDER_PASS_RENDER_TARGET_DESC
  15865. {
  15866. D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor;
  15867. D3D12_RENDER_PASS_BEGINNING_ACCESS BeginningAccess;
  15868. D3D12_RENDER_PASS_ENDING_ACCESS EndingAccess;
  15869. } D3D12_RENDER_PASS_RENDER_TARGET_DESC;
  15870. typedef struct D3D12_RENDER_PASS_DEPTH_STENCIL_DESC
  15871. {
  15872. D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor;
  15873. D3D12_RENDER_PASS_BEGINNING_ACCESS DepthBeginningAccess;
  15874. D3D12_RENDER_PASS_BEGINNING_ACCESS StencilBeginningAccess;
  15875. D3D12_RENDER_PASS_ENDING_ACCESS DepthEndingAccess;
  15876. D3D12_RENDER_PASS_ENDING_ACCESS StencilEndingAccess;
  15877. } D3D12_RENDER_PASS_DEPTH_STENCIL_DESC;
  15878. typedef
  15879. enum D3D12_RENDER_PASS_FLAGS
  15880. {
  15881. D3D12_RENDER_PASS_FLAG_NONE = 0,
  15882. D3D12_RENDER_PASS_FLAG_ALLOW_UAV_WRITES = 0x1,
  15883. D3D12_RENDER_PASS_FLAG_SUSPENDING_PASS = 0x2,
  15884. D3D12_RENDER_PASS_FLAG_RESUMING_PASS = 0x4,
  15885. D3D12_RENDER_PASS_FLAG_BIND_READ_ONLY_DEPTH = 0x8,
  15886. D3D12_RENDER_PASS_FLAG_BIND_READ_ONLY_STENCIL = 0x10
  15887. } D3D12_RENDER_PASS_FLAGS;
  15888. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RENDER_PASS_FLAGS )
  15889. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0051_v0_0_c_ifspec;
  15890. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0051_v0_0_s_ifspec;
  15891. #ifndef __ID3D12MetaCommand_INTERFACE_DEFINED__
  15892. #define __ID3D12MetaCommand_INTERFACE_DEFINED__
  15893. /* interface ID3D12MetaCommand */
  15894. /* [unique][local][object][uuid] */
  15895. EXTERN_C const IID IID_ID3D12MetaCommand;
  15896. #if defined(__cplusplus) && !defined(CINTERFACE)
  15897. MIDL_INTERFACE("DBB84C27-36CE-4FC9-B801-F048C46AC570")
  15898. ID3D12MetaCommand : public ID3D12Pageable
  15899. {
  15900. public:
  15901. virtual UINT64 STDMETHODCALLTYPE GetRequiredParameterResourceSize(
  15902. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  15903. _In_ UINT ParameterIndex) = 0;
  15904. };
  15905. #else /* C style interface */
  15906. typedef struct ID3D12MetaCommandVtbl
  15907. {
  15908. BEGIN_INTERFACE
  15909. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  15910. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15911. ID3D12MetaCommand * This,
  15912. REFIID riid,
  15913. _COM_Outptr_ void **ppvObject);
  15914. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  15915. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15916. ID3D12MetaCommand * This);
  15917. DECLSPEC_XFGVIRT(IUnknown, Release)
  15918. ULONG ( STDMETHODCALLTYPE *Release )(
  15919. ID3D12MetaCommand * This);
  15920. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  15921. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  15922. ID3D12MetaCommand * This,
  15923. _In_ REFGUID guid,
  15924. _Inout_ UINT *pDataSize,
  15925. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  15926. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  15927. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  15928. ID3D12MetaCommand * This,
  15929. _In_ REFGUID guid,
  15930. _In_ UINT DataSize,
  15931. _In_reads_bytes_opt_( DataSize ) const void *pData);
  15932. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  15933. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  15934. ID3D12MetaCommand * This,
  15935. _In_ REFGUID guid,
  15936. _In_opt_ const IUnknown *pData);
  15937. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  15938. HRESULT ( STDMETHODCALLTYPE *SetName )(
  15939. ID3D12MetaCommand * This,
  15940. _In_z_ LPCWSTR Name);
  15941. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  15942. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  15943. ID3D12MetaCommand * This,
  15944. REFIID riid,
  15945. _COM_Outptr_opt_ void **ppvDevice);
  15946. DECLSPEC_XFGVIRT(ID3D12MetaCommand, GetRequiredParameterResourceSize)
  15947. UINT64 ( STDMETHODCALLTYPE *GetRequiredParameterResourceSize )(
  15948. ID3D12MetaCommand * This,
  15949. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  15950. _In_ UINT ParameterIndex);
  15951. END_INTERFACE
  15952. } ID3D12MetaCommandVtbl;
  15953. interface ID3D12MetaCommand
  15954. {
  15955. CONST_VTBL struct ID3D12MetaCommandVtbl *lpVtbl;
  15956. };
  15957. #ifdef COBJMACROS
  15958. #define ID3D12MetaCommand_QueryInterface(This,riid,ppvObject) \
  15959. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  15960. #define ID3D12MetaCommand_AddRef(This) \
  15961. ( (This)->lpVtbl -> AddRef(This) )
  15962. #define ID3D12MetaCommand_Release(This) \
  15963. ( (This)->lpVtbl -> Release(This) )
  15964. #define ID3D12MetaCommand_GetPrivateData(This,guid,pDataSize,pData) \
  15965. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  15966. #define ID3D12MetaCommand_SetPrivateData(This,guid,DataSize,pData) \
  15967. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  15968. #define ID3D12MetaCommand_SetPrivateDataInterface(This,guid,pData) \
  15969. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  15970. #define ID3D12MetaCommand_SetName(This,Name) \
  15971. ( (This)->lpVtbl -> SetName(This,Name) )
  15972. #define ID3D12MetaCommand_GetDevice(This,riid,ppvDevice) \
  15973. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  15974. #define ID3D12MetaCommand_GetRequiredParameterResourceSize(This,Stage,ParameterIndex) \
  15975. ( (This)->lpVtbl -> GetRequiredParameterResourceSize(This,Stage,ParameterIndex) )
  15976. #endif /* COBJMACROS */
  15977. #endif /* C style interface */
  15978. #endif /* __ID3D12MetaCommand_INTERFACE_DEFINED__ */
  15979. /* interface __MIDL_itf_d3d12_0000_0052 */
  15980. /* [local] */
  15981. typedef struct D3D12_DISPATCH_RAYS_DESC
  15982. {
  15983. D3D12_GPU_VIRTUAL_ADDRESS_RANGE RayGenerationShaderRecord;
  15984. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE MissShaderTable;
  15985. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE HitGroupTable;
  15986. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE CallableShaderTable;
  15987. UINT Width;
  15988. UINT Height;
  15989. UINT Depth;
  15990. } D3D12_DISPATCH_RAYS_DESC;
  15991. typedef
  15992. enum D3D12_SET_WORK_GRAPH_FLAGS
  15993. {
  15994. D3D12_SET_WORK_GRAPH_FLAG_NONE = 0,
  15995. D3D12_SET_WORK_GRAPH_FLAG_INITIALIZE = 0x1
  15996. } D3D12_SET_WORK_GRAPH_FLAGS;
  15997. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SET_WORK_GRAPH_FLAGS )
  15998. typedef struct D3D12_SET_WORK_GRAPH_DESC
  15999. {
  16000. D3D12_PROGRAM_IDENTIFIER ProgramIdentifier;
  16001. D3D12_SET_WORK_GRAPH_FLAGS Flags;
  16002. D3D12_GPU_VIRTUAL_ADDRESS_RANGE BackingMemory;
  16003. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE NodeLocalRootArgumentsTable;
  16004. } D3D12_SET_WORK_GRAPH_DESC;
  16005. typedef struct D3D12_SET_RAYTRACING_PIPELINE_DESC
  16006. {
  16007. D3D12_PROGRAM_IDENTIFIER ProgramIdentifier;
  16008. } D3D12_SET_RAYTRACING_PIPELINE_DESC;
  16009. typedef struct D3D12_SET_GENERIC_PIPELINE_DESC
  16010. {
  16011. D3D12_PROGRAM_IDENTIFIER ProgramIdentifier;
  16012. } D3D12_SET_GENERIC_PIPELINE_DESC;
  16013. typedef
  16014. enum D3D12_PROGRAM_TYPE
  16015. {
  16016. D3D12_PROGRAM_TYPE_GENERIC_PIPELINE = 1,
  16017. D3D12_PROGRAM_TYPE_RAYTRACING_PIPELINE = 4,
  16018. D3D12_PROGRAM_TYPE_WORK_GRAPH = 5
  16019. } D3D12_PROGRAM_TYPE;
  16020. typedef struct D3D12_SET_PROGRAM_DESC
  16021. {
  16022. D3D12_PROGRAM_TYPE Type;
  16023. union
  16024. {
  16025. D3D12_SET_GENERIC_PIPELINE_DESC GenericPipeline;
  16026. D3D12_SET_RAYTRACING_PIPELINE_DESC RaytracingPipeline;
  16027. D3D12_SET_WORK_GRAPH_DESC WorkGraph;
  16028. } ;
  16029. } D3D12_SET_PROGRAM_DESC;
  16030. typedef
  16031. enum D3D12_DISPATCH_MODE
  16032. {
  16033. D3D12_DISPATCH_MODE_NODE_CPU_INPUT = 0,
  16034. D3D12_DISPATCH_MODE_NODE_GPU_INPUT = 1,
  16035. D3D12_DISPATCH_MODE_MULTI_NODE_CPU_INPUT = 2,
  16036. D3D12_DISPATCH_MODE_MULTI_NODE_GPU_INPUT = 3
  16037. } D3D12_DISPATCH_MODE;
  16038. typedef struct D3D12_NODE_CPU_INPUT
  16039. {
  16040. UINT EntrypointIndex;
  16041. UINT NumRecords;
  16042. const void *pRecords;
  16043. UINT64 RecordStrideInBytes;
  16044. } D3D12_NODE_CPU_INPUT;
  16045. typedef struct D3D12_NODE_GPU_INPUT
  16046. {
  16047. UINT EntrypointIndex;
  16048. UINT NumRecords;
  16049. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE Records;
  16050. } D3D12_NODE_GPU_INPUT;
  16051. typedef struct D3D12_MULTI_NODE_CPU_INPUT
  16052. {
  16053. UINT NumNodeInputs;
  16054. const D3D12_NODE_CPU_INPUT *pNodeInputs;
  16055. UINT64 NodeInputStrideInBytes;
  16056. } D3D12_MULTI_NODE_CPU_INPUT;
  16057. typedef struct D3D12_MULTI_NODE_GPU_INPUT
  16058. {
  16059. UINT NumNodeInputs;
  16060. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE NodeInputs;
  16061. } D3D12_MULTI_NODE_GPU_INPUT;
  16062. typedef struct D3D12_DISPATCH_GRAPH_DESC
  16063. {
  16064. D3D12_DISPATCH_MODE Mode;
  16065. union
  16066. {
  16067. D3D12_NODE_CPU_INPUT NodeCPUInput;
  16068. D3D12_GPU_VIRTUAL_ADDRESS NodeGPUInput;
  16069. D3D12_MULTI_NODE_CPU_INPUT MultiNodeCPUInput;
  16070. D3D12_GPU_VIRTUAL_ADDRESS MultiNodeGPUInput;
  16071. } ;
  16072. } D3D12_DISPATCH_GRAPH_DESC;
  16073. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0052_v0_0_c_ifspec;
  16074. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0052_v0_0_s_ifspec;
  16075. #ifndef __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__
  16076. #define __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__
  16077. /* interface ID3D12GraphicsCommandList4 */
  16078. /* [unique][local][object][uuid] */
  16079. EXTERN_C const IID IID_ID3D12GraphicsCommandList4;
  16080. #if defined(__cplusplus) && !defined(CINTERFACE)
  16081. MIDL_INTERFACE("8754318e-d3a9-4541-98cf-645b50dc4874")
  16082. ID3D12GraphicsCommandList4 : public ID3D12GraphicsCommandList3
  16083. {
  16084. public:
  16085. virtual void STDMETHODCALLTYPE BeginRenderPass(
  16086. _In_ UINT NumRenderTargets,
  16087. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  16088. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  16089. D3D12_RENDER_PASS_FLAGS Flags) = 0;
  16090. virtual void STDMETHODCALLTYPE EndRenderPass( void) = 0;
  16091. virtual void STDMETHODCALLTYPE InitializeMetaCommand(
  16092. _In_ ID3D12MetaCommand *pMetaCommand,
  16093. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  16094. _In_ SIZE_T InitializationParametersDataSizeInBytes) = 0;
  16095. virtual void STDMETHODCALLTYPE ExecuteMetaCommand(
  16096. _In_ ID3D12MetaCommand *pMetaCommand,
  16097. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  16098. _In_ SIZE_T ExecutionParametersDataSizeInBytes) = 0;
  16099. virtual void STDMETHODCALLTYPE BuildRaytracingAccelerationStructure(
  16100. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  16101. _In_ UINT NumPostbuildInfoDescs,
  16102. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs) = 0;
  16103. virtual void STDMETHODCALLTYPE EmitRaytracingAccelerationStructurePostbuildInfo(
  16104. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  16105. _In_ UINT NumSourceAccelerationStructures,
  16106. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData) = 0;
  16107. virtual void STDMETHODCALLTYPE CopyRaytracingAccelerationStructure(
  16108. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  16109. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  16110. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode) = 0;
  16111. virtual void STDMETHODCALLTYPE SetPipelineState1(
  16112. _In_ ID3D12StateObject *pStateObject) = 0;
  16113. virtual void STDMETHODCALLTYPE DispatchRays(
  16114. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc) = 0;
  16115. };
  16116. #else /* C style interface */
  16117. typedef struct ID3D12GraphicsCommandList4Vtbl
  16118. {
  16119. BEGIN_INTERFACE
  16120. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  16121. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16122. ID3D12GraphicsCommandList4 * This,
  16123. REFIID riid,
  16124. _COM_Outptr_ void **ppvObject);
  16125. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  16126. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16127. ID3D12GraphicsCommandList4 * This);
  16128. DECLSPEC_XFGVIRT(IUnknown, Release)
  16129. ULONG ( STDMETHODCALLTYPE *Release )(
  16130. ID3D12GraphicsCommandList4 * This);
  16131. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  16132. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  16133. ID3D12GraphicsCommandList4 * This,
  16134. _In_ REFGUID guid,
  16135. _Inout_ UINT *pDataSize,
  16136. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  16137. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  16138. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  16139. ID3D12GraphicsCommandList4 * This,
  16140. _In_ REFGUID guid,
  16141. _In_ UINT DataSize,
  16142. _In_reads_bytes_opt_( DataSize ) const void *pData);
  16143. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  16144. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  16145. ID3D12GraphicsCommandList4 * This,
  16146. _In_ REFGUID guid,
  16147. _In_opt_ const IUnknown *pData);
  16148. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  16149. HRESULT ( STDMETHODCALLTYPE *SetName )(
  16150. ID3D12GraphicsCommandList4 * This,
  16151. _In_z_ LPCWSTR Name);
  16152. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  16153. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  16154. ID3D12GraphicsCommandList4 * This,
  16155. REFIID riid,
  16156. _COM_Outptr_opt_ void **ppvDevice);
  16157. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  16158. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  16159. ID3D12GraphicsCommandList4 * This);
  16160. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  16161. HRESULT ( STDMETHODCALLTYPE *Close )(
  16162. ID3D12GraphicsCommandList4 * This);
  16163. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  16164. HRESULT ( STDMETHODCALLTYPE *Reset )(
  16165. ID3D12GraphicsCommandList4 * This,
  16166. _In_ ID3D12CommandAllocator *pAllocator,
  16167. _In_opt_ ID3D12PipelineState *pInitialState);
  16168. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  16169. void ( STDMETHODCALLTYPE *ClearState )(
  16170. ID3D12GraphicsCommandList4 * This,
  16171. _In_opt_ ID3D12PipelineState *pPipelineState);
  16172. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  16173. void ( STDMETHODCALLTYPE *DrawInstanced )(
  16174. ID3D12GraphicsCommandList4 * This,
  16175. _In_ UINT VertexCountPerInstance,
  16176. _In_ UINT InstanceCount,
  16177. _In_ UINT StartVertexLocation,
  16178. _In_ UINT StartInstanceLocation);
  16179. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  16180. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  16181. ID3D12GraphicsCommandList4 * This,
  16182. _In_ UINT IndexCountPerInstance,
  16183. _In_ UINT InstanceCount,
  16184. _In_ UINT StartIndexLocation,
  16185. _In_ INT BaseVertexLocation,
  16186. _In_ UINT StartInstanceLocation);
  16187. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  16188. void ( STDMETHODCALLTYPE *Dispatch )(
  16189. ID3D12GraphicsCommandList4 * This,
  16190. _In_ UINT ThreadGroupCountX,
  16191. _In_ UINT ThreadGroupCountY,
  16192. _In_ UINT ThreadGroupCountZ);
  16193. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  16194. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  16195. ID3D12GraphicsCommandList4 * This,
  16196. _In_ ID3D12Resource *pDstBuffer,
  16197. UINT64 DstOffset,
  16198. _In_ ID3D12Resource *pSrcBuffer,
  16199. UINT64 SrcOffset,
  16200. UINT64 NumBytes);
  16201. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  16202. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  16203. ID3D12GraphicsCommandList4 * This,
  16204. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  16205. UINT DstX,
  16206. UINT DstY,
  16207. UINT DstZ,
  16208. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  16209. _In_opt_ const D3D12_BOX *pSrcBox);
  16210. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  16211. void ( STDMETHODCALLTYPE *CopyResource )(
  16212. ID3D12GraphicsCommandList4 * This,
  16213. _In_ ID3D12Resource *pDstResource,
  16214. _In_ ID3D12Resource *pSrcResource);
  16215. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  16216. void ( STDMETHODCALLTYPE *CopyTiles )(
  16217. ID3D12GraphicsCommandList4 * This,
  16218. _In_ ID3D12Resource *pTiledResource,
  16219. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  16220. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  16221. _In_ ID3D12Resource *pBuffer,
  16222. UINT64 BufferStartOffsetInBytes,
  16223. D3D12_TILE_COPY_FLAGS Flags);
  16224. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  16225. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  16226. ID3D12GraphicsCommandList4 * This,
  16227. _In_ ID3D12Resource *pDstResource,
  16228. _In_ UINT DstSubresource,
  16229. _In_ ID3D12Resource *pSrcResource,
  16230. _In_ UINT SrcSubresource,
  16231. _In_ DXGI_FORMAT Format);
  16232. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  16233. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  16234. ID3D12GraphicsCommandList4 * This,
  16235. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  16236. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  16237. void ( STDMETHODCALLTYPE *RSSetViewports )(
  16238. ID3D12GraphicsCommandList4 * This,
  16239. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  16240. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  16241. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  16242. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  16243. ID3D12GraphicsCommandList4 * This,
  16244. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  16245. _In_reads_( NumRects) const D3D12_RECT *pRects);
  16246. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  16247. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  16248. ID3D12GraphicsCommandList4 * This,
  16249. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  16250. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  16251. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  16252. ID3D12GraphicsCommandList4 * This,
  16253. _In_ UINT StencilRef);
  16254. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  16255. void ( STDMETHODCALLTYPE *SetPipelineState )(
  16256. ID3D12GraphicsCommandList4 * This,
  16257. _In_ ID3D12PipelineState *pPipelineState);
  16258. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  16259. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  16260. ID3D12GraphicsCommandList4 * This,
  16261. _In_ UINT NumBarriers,
  16262. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  16263. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  16264. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  16265. ID3D12GraphicsCommandList4 * This,
  16266. _In_ ID3D12GraphicsCommandList *pCommandList);
  16267. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  16268. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  16269. ID3D12GraphicsCommandList4 * This,
  16270. _In_ UINT NumDescriptorHeaps,
  16271. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  16272. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  16273. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  16274. ID3D12GraphicsCommandList4 * This,
  16275. _In_opt_ ID3D12RootSignature *pRootSignature);
  16276. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  16277. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  16278. ID3D12GraphicsCommandList4 * This,
  16279. _In_opt_ ID3D12RootSignature *pRootSignature);
  16280. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  16281. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  16282. ID3D12GraphicsCommandList4 * This,
  16283. _In_ UINT RootParameterIndex,
  16284. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  16285. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  16286. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  16287. ID3D12GraphicsCommandList4 * This,
  16288. _In_ UINT RootParameterIndex,
  16289. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  16290. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  16291. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  16292. ID3D12GraphicsCommandList4 * This,
  16293. _In_ UINT RootParameterIndex,
  16294. _In_ UINT SrcData,
  16295. _In_ UINT DestOffsetIn32BitValues);
  16296. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  16297. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  16298. ID3D12GraphicsCommandList4 * This,
  16299. _In_ UINT RootParameterIndex,
  16300. _In_ UINT SrcData,
  16301. _In_ UINT DestOffsetIn32BitValues);
  16302. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  16303. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  16304. ID3D12GraphicsCommandList4 * This,
  16305. _In_ UINT RootParameterIndex,
  16306. _In_ UINT Num32BitValuesToSet,
  16307. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  16308. _In_ UINT DestOffsetIn32BitValues);
  16309. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  16310. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  16311. ID3D12GraphicsCommandList4 * This,
  16312. _In_ UINT RootParameterIndex,
  16313. _In_ UINT Num32BitValuesToSet,
  16314. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  16315. _In_ UINT DestOffsetIn32BitValues);
  16316. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  16317. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  16318. ID3D12GraphicsCommandList4 * This,
  16319. _In_ UINT RootParameterIndex,
  16320. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16321. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  16322. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  16323. ID3D12GraphicsCommandList4 * This,
  16324. _In_ UINT RootParameterIndex,
  16325. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16326. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  16327. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  16328. ID3D12GraphicsCommandList4 * This,
  16329. _In_ UINT RootParameterIndex,
  16330. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16331. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  16332. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  16333. ID3D12GraphicsCommandList4 * This,
  16334. _In_ UINT RootParameterIndex,
  16335. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16336. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  16337. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  16338. ID3D12GraphicsCommandList4 * This,
  16339. _In_ UINT RootParameterIndex,
  16340. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16341. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  16342. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  16343. ID3D12GraphicsCommandList4 * This,
  16344. _In_ UINT RootParameterIndex,
  16345. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  16346. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  16347. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  16348. ID3D12GraphicsCommandList4 * This,
  16349. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  16350. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  16351. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  16352. ID3D12GraphicsCommandList4 * This,
  16353. _In_ UINT StartSlot,
  16354. _In_ UINT NumViews,
  16355. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  16356. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  16357. void ( STDMETHODCALLTYPE *SOSetTargets )(
  16358. ID3D12GraphicsCommandList4 * This,
  16359. _In_ UINT StartSlot,
  16360. _In_ UINT NumViews,
  16361. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  16362. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  16363. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  16364. ID3D12GraphicsCommandList4 * This,
  16365. _In_ UINT NumRenderTargetDescriptors,
  16366. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  16367. _In_ BOOL RTsSingleHandleToDescriptorRange,
  16368. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  16369. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  16370. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  16371. ID3D12GraphicsCommandList4 * This,
  16372. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  16373. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  16374. _In_ FLOAT Depth,
  16375. _In_ UINT8 Stencil,
  16376. _In_ UINT NumRects,
  16377. _In_reads_(NumRects) const D3D12_RECT *pRects);
  16378. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  16379. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  16380. ID3D12GraphicsCommandList4 * This,
  16381. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  16382. _In_ const FLOAT ColorRGBA[ 4 ],
  16383. _In_ UINT NumRects,
  16384. _In_reads_(NumRects) const D3D12_RECT *pRects);
  16385. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  16386. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  16387. ID3D12GraphicsCommandList4 * This,
  16388. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  16389. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  16390. _In_ ID3D12Resource *pResource,
  16391. _In_ const UINT Values[ 4 ],
  16392. _In_ UINT NumRects,
  16393. _In_reads_(NumRects) const D3D12_RECT *pRects);
  16394. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  16395. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  16396. ID3D12GraphicsCommandList4 * This,
  16397. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  16398. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  16399. _In_ ID3D12Resource *pResource,
  16400. _In_ const FLOAT Values[ 4 ],
  16401. _In_ UINT NumRects,
  16402. _In_reads_(NumRects) const D3D12_RECT *pRects);
  16403. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  16404. void ( STDMETHODCALLTYPE *DiscardResource )(
  16405. ID3D12GraphicsCommandList4 * This,
  16406. _In_ ID3D12Resource *pResource,
  16407. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  16408. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  16409. void ( STDMETHODCALLTYPE *BeginQuery )(
  16410. ID3D12GraphicsCommandList4 * This,
  16411. _In_ ID3D12QueryHeap *pQueryHeap,
  16412. _In_ D3D12_QUERY_TYPE Type,
  16413. _In_ UINT Index);
  16414. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  16415. void ( STDMETHODCALLTYPE *EndQuery )(
  16416. ID3D12GraphicsCommandList4 * This,
  16417. _In_ ID3D12QueryHeap *pQueryHeap,
  16418. _In_ D3D12_QUERY_TYPE Type,
  16419. _In_ UINT Index);
  16420. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  16421. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  16422. ID3D12GraphicsCommandList4 * This,
  16423. _In_ ID3D12QueryHeap *pQueryHeap,
  16424. _In_ D3D12_QUERY_TYPE Type,
  16425. _In_ UINT StartIndex,
  16426. _In_ UINT NumQueries,
  16427. _In_ ID3D12Resource *pDestinationBuffer,
  16428. _In_ UINT64 AlignedDestinationBufferOffset);
  16429. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  16430. void ( STDMETHODCALLTYPE *SetPredication )(
  16431. ID3D12GraphicsCommandList4 * This,
  16432. _In_opt_ ID3D12Resource *pBuffer,
  16433. _In_ UINT64 AlignedBufferOffset,
  16434. _In_ D3D12_PREDICATION_OP Operation);
  16435. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  16436. void ( STDMETHODCALLTYPE *SetMarker )(
  16437. ID3D12GraphicsCommandList4 * This,
  16438. UINT Metadata,
  16439. _In_reads_bytes_opt_(Size) const void *pData,
  16440. UINT Size);
  16441. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  16442. void ( STDMETHODCALLTYPE *BeginEvent )(
  16443. ID3D12GraphicsCommandList4 * This,
  16444. UINT Metadata,
  16445. _In_reads_bytes_opt_(Size) const void *pData,
  16446. UINT Size);
  16447. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  16448. void ( STDMETHODCALLTYPE *EndEvent )(
  16449. ID3D12GraphicsCommandList4 * This);
  16450. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  16451. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  16452. ID3D12GraphicsCommandList4 * This,
  16453. _In_ ID3D12CommandSignature *pCommandSignature,
  16454. _In_ UINT MaxCommandCount,
  16455. _In_ ID3D12Resource *pArgumentBuffer,
  16456. _In_ UINT64 ArgumentBufferOffset,
  16457. _In_opt_ ID3D12Resource *pCountBuffer,
  16458. _In_ UINT64 CountBufferOffset);
  16459. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  16460. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  16461. ID3D12GraphicsCommandList4 * This,
  16462. _In_ ID3D12Resource *pDstBuffer,
  16463. UINT64 DstOffset,
  16464. _In_ ID3D12Resource *pSrcBuffer,
  16465. UINT64 SrcOffset,
  16466. UINT Dependencies,
  16467. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  16468. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  16469. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  16470. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  16471. ID3D12GraphicsCommandList4 * This,
  16472. _In_ ID3D12Resource *pDstBuffer,
  16473. UINT64 DstOffset,
  16474. _In_ ID3D12Resource *pSrcBuffer,
  16475. UINT64 SrcOffset,
  16476. UINT Dependencies,
  16477. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  16478. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  16479. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  16480. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  16481. ID3D12GraphicsCommandList4 * This,
  16482. _In_ FLOAT Min,
  16483. _In_ FLOAT Max);
  16484. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  16485. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  16486. ID3D12GraphicsCommandList4 * This,
  16487. _In_ UINT NumSamplesPerPixel,
  16488. _In_ UINT NumPixels,
  16489. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  16490. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  16491. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  16492. ID3D12GraphicsCommandList4 * This,
  16493. _In_ ID3D12Resource *pDstResource,
  16494. _In_ UINT DstSubresource,
  16495. _In_ UINT DstX,
  16496. _In_ UINT DstY,
  16497. _In_ ID3D12Resource *pSrcResource,
  16498. _In_ UINT SrcSubresource,
  16499. _In_opt_ D3D12_RECT *pSrcRect,
  16500. _In_ DXGI_FORMAT Format,
  16501. _In_ D3D12_RESOLVE_MODE ResolveMode);
  16502. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  16503. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  16504. ID3D12GraphicsCommandList4 * This,
  16505. _In_ UINT Mask);
  16506. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  16507. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  16508. ID3D12GraphicsCommandList4 * This,
  16509. UINT Count,
  16510. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  16511. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  16512. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  16513. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  16514. ID3D12GraphicsCommandList4 * This,
  16515. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  16516. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  16517. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  16518. ID3D12GraphicsCommandList4 * This,
  16519. _In_ UINT NumRenderTargets,
  16520. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  16521. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  16522. D3D12_RENDER_PASS_FLAGS Flags);
  16523. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  16524. void ( STDMETHODCALLTYPE *EndRenderPass )(
  16525. ID3D12GraphicsCommandList4 * This);
  16526. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  16527. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  16528. ID3D12GraphicsCommandList4 * This,
  16529. _In_ ID3D12MetaCommand *pMetaCommand,
  16530. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  16531. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  16532. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  16533. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  16534. ID3D12GraphicsCommandList4 * This,
  16535. _In_ ID3D12MetaCommand *pMetaCommand,
  16536. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  16537. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  16538. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  16539. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  16540. ID3D12GraphicsCommandList4 * This,
  16541. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  16542. _In_ UINT NumPostbuildInfoDescs,
  16543. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  16544. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  16545. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  16546. ID3D12GraphicsCommandList4 * This,
  16547. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  16548. _In_ UINT NumSourceAccelerationStructures,
  16549. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  16550. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  16551. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  16552. ID3D12GraphicsCommandList4 * This,
  16553. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  16554. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  16555. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  16556. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  16557. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  16558. ID3D12GraphicsCommandList4 * This,
  16559. _In_ ID3D12StateObject *pStateObject);
  16560. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  16561. void ( STDMETHODCALLTYPE *DispatchRays )(
  16562. ID3D12GraphicsCommandList4 * This,
  16563. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  16564. END_INTERFACE
  16565. } ID3D12GraphicsCommandList4Vtbl;
  16566. interface ID3D12GraphicsCommandList4
  16567. {
  16568. CONST_VTBL struct ID3D12GraphicsCommandList4Vtbl *lpVtbl;
  16569. };
  16570. #ifdef COBJMACROS
  16571. #define ID3D12GraphicsCommandList4_QueryInterface(This,riid,ppvObject) \
  16572. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  16573. #define ID3D12GraphicsCommandList4_AddRef(This) \
  16574. ( (This)->lpVtbl -> AddRef(This) )
  16575. #define ID3D12GraphicsCommandList4_Release(This) \
  16576. ( (This)->lpVtbl -> Release(This) )
  16577. #define ID3D12GraphicsCommandList4_GetPrivateData(This,guid,pDataSize,pData) \
  16578. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  16579. #define ID3D12GraphicsCommandList4_SetPrivateData(This,guid,DataSize,pData) \
  16580. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  16581. #define ID3D12GraphicsCommandList4_SetPrivateDataInterface(This,guid,pData) \
  16582. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  16583. #define ID3D12GraphicsCommandList4_SetName(This,Name) \
  16584. ( (This)->lpVtbl -> SetName(This,Name) )
  16585. #define ID3D12GraphicsCommandList4_GetDevice(This,riid,ppvDevice) \
  16586. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  16587. #define ID3D12GraphicsCommandList4_GetType(This) \
  16588. ( (This)->lpVtbl -> GetType(This) )
  16589. #define ID3D12GraphicsCommandList4_Close(This) \
  16590. ( (This)->lpVtbl -> Close(This) )
  16591. #define ID3D12GraphicsCommandList4_Reset(This,pAllocator,pInitialState) \
  16592. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  16593. #define ID3D12GraphicsCommandList4_ClearState(This,pPipelineState) \
  16594. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  16595. #define ID3D12GraphicsCommandList4_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  16596. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  16597. #define ID3D12GraphicsCommandList4_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  16598. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  16599. #define ID3D12GraphicsCommandList4_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  16600. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  16601. #define ID3D12GraphicsCommandList4_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  16602. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  16603. #define ID3D12GraphicsCommandList4_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  16604. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  16605. #define ID3D12GraphicsCommandList4_CopyResource(This,pDstResource,pSrcResource) \
  16606. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  16607. #define ID3D12GraphicsCommandList4_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  16608. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  16609. #define ID3D12GraphicsCommandList4_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  16610. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  16611. #define ID3D12GraphicsCommandList4_IASetPrimitiveTopology(This,PrimitiveTopology) \
  16612. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  16613. #define ID3D12GraphicsCommandList4_RSSetViewports(This,NumViewports,pViewports) \
  16614. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  16615. #define ID3D12GraphicsCommandList4_RSSetScissorRects(This,NumRects,pRects) \
  16616. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  16617. #define ID3D12GraphicsCommandList4_OMSetBlendFactor(This,BlendFactor) \
  16618. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  16619. #define ID3D12GraphicsCommandList4_OMSetStencilRef(This,StencilRef) \
  16620. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  16621. #define ID3D12GraphicsCommandList4_SetPipelineState(This,pPipelineState) \
  16622. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  16623. #define ID3D12GraphicsCommandList4_ResourceBarrier(This,NumBarriers,pBarriers) \
  16624. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  16625. #define ID3D12GraphicsCommandList4_ExecuteBundle(This,pCommandList) \
  16626. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  16627. #define ID3D12GraphicsCommandList4_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  16628. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  16629. #define ID3D12GraphicsCommandList4_SetComputeRootSignature(This,pRootSignature) \
  16630. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  16631. #define ID3D12GraphicsCommandList4_SetGraphicsRootSignature(This,pRootSignature) \
  16632. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  16633. #define ID3D12GraphicsCommandList4_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  16634. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  16635. #define ID3D12GraphicsCommandList4_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  16636. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  16637. #define ID3D12GraphicsCommandList4_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  16638. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  16639. #define ID3D12GraphicsCommandList4_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  16640. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  16641. #define ID3D12GraphicsCommandList4_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  16642. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  16643. #define ID3D12GraphicsCommandList4_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  16644. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  16645. #define ID3D12GraphicsCommandList4_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  16646. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  16647. #define ID3D12GraphicsCommandList4_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  16648. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  16649. #define ID3D12GraphicsCommandList4_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  16650. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  16651. #define ID3D12GraphicsCommandList4_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  16652. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  16653. #define ID3D12GraphicsCommandList4_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  16654. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  16655. #define ID3D12GraphicsCommandList4_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  16656. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  16657. #define ID3D12GraphicsCommandList4_IASetIndexBuffer(This,pView) \
  16658. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  16659. #define ID3D12GraphicsCommandList4_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  16660. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  16661. #define ID3D12GraphicsCommandList4_SOSetTargets(This,StartSlot,NumViews,pViews) \
  16662. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  16663. #define ID3D12GraphicsCommandList4_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  16664. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  16665. #define ID3D12GraphicsCommandList4_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  16666. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  16667. #define ID3D12GraphicsCommandList4_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  16668. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  16669. #define ID3D12GraphicsCommandList4_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  16670. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  16671. #define ID3D12GraphicsCommandList4_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  16672. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  16673. #define ID3D12GraphicsCommandList4_DiscardResource(This,pResource,pRegion) \
  16674. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  16675. #define ID3D12GraphicsCommandList4_BeginQuery(This,pQueryHeap,Type,Index) \
  16676. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  16677. #define ID3D12GraphicsCommandList4_EndQuery(This,pQueryHeap,Type,Index) \
  16678. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  16679. #define ID3D12GraphicsCommandList4_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  16680. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  16681. #define ID3D12GraphicsCommandList4_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  16682. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  16683. #define ID3D12GraphicsCommandList4_SetMarker(This,Metadata,pData,Size) \
  16684. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  16685. #define ID3D12GraphicsCommandList4_BeginEvent(This,Metadata,pData,Size) \
  16686. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  16687. #define ID3D12GraphicsCommandList4_EndEvent(This) \
  16688. ( (This)->lpVtbl -> EndEvent(This) )
  16689. #define ID3D12GraphicsCommandList4_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  16690. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  16691. #define ID3D12GraphicsCommandList4_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  16692. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  16693. #define ID3D12GraphicsCommandList4_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  16694. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  16695. #define ID3D12GraphicsCommandList4_OMSetDepthBounds(This,Min,Max) \
  16696. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  16697. #define ID3D12GraphicsCommandList4_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  16698. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  16699. #define ID3D12GraphicsCommandList4_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  16700. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  16701. #define ID3D12GraphicsCommandList4_SetViewInstanceMask(This,Mask) \
  16702. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  16703. #define ID3D12GraphicsCommandList4_WriteBufferImmediate(This,Count,pParams,pModes) \
  16704. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  16705. #define ID3D12GraphicsCommandList4_SetProtectedResourceSession(This,pProtectedResourceSession) \
  16706. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  16707. #define ID3D12GraphicsCommandList4_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  16708. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  16709. #define ID3D12GraphicsCommandList4_EndRenderPass(This) \
  16710. ( (This)->lpVtbl -> EndRenderPass(This) )
  16711. #define ID3D12GraphicsCommandList4_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  16712. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  16713. #define ID3D12GraphicsCommandList4_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  16714. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  16715. #define ID3D12GraphicsCommandList4_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  16716. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  16717. #define ID3D12GraphicsCommandList4_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  16718. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  16719. #define ID3D12GraphicsCommandList4_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  16720. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  16721. #define ID3D12GraphicsCommandList4_SetPipelineState1(This,pStateObject) \
  16722. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  16723. #define ID3D12GraphicsCommandList4_DispatchRays(This,pDesc) \
  16724. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  16725. #endif /* COBJMACROS */
  16726. #endif /* C style interface */
  16727. #endif /* __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__ */
  16728. /* interface __MIDL_itf_d3d12_0000_0053 */
  16729. /* [local] */
  16730. typedef
  16731. enum D3D12_SHADER_CACHE_MODE
  16732. {
  16733. D3D12_SHADER_CACHE_MODE_MEMORY = 0,
  16734. D3D12_SHADER_CACHE_MODE_DISK = ( D3D12_SHADER_CACHE_MODE_MEMORY + 1 )
  16735. } D3D12_SHADER_CACHE_MODE;
  16736. typedef
  16737. enum D3D12_SHADER_CACHE_FLAGS
  16738. {
  16739. D3D12_SHADER_CACHE_FLAG_NONE = 0,
  16740. D3D12_SHADER_CACHE_FLAG_DRIVER_VERSIONED = 0x1,
  16741. D3D12_SHADER_CACHE_FLAG_USE_WORKING_DIR = 0x2
  16742. } D3D12_SHADER_CACHE_FLAGS;
  16743. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_FLAGS )
  16744. typedef struct D3D12_SHADER_CACHE_SESSION_DESC
  16745. {
  16746. GUID Identifier;
  16747. D3D12_SHADER_CACHE_MODE Mode;
  16748. D3D12_SHADER_CACHE_FLAGS Flags;
  16749. UINT MaximumInMemoryCacheSizeBytes;
  16750. UINT MaximumInMemoryCacheEntries;
  16751. UINT MaximumValueFileSizeBytes;
  16752. UINT64 Version;
  16753. } D3D12_SHADER_CACHE_SESSION_DESC;
  16754. typedef
  16755. enum D3D12_BARRIER_LAYOUT
  16756. {
  16757. D3D12_BARRIER_LAYOUT_UNDEFINED = 0xffffffff,
  16758. D3D12_BARRIER_LAYOUT_COMMON = 0,
  16759. D3D12_BARRIER_LAYOUT_PRESENT = 0,
  16760. D3D12_BARRIER_LAYOUT_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_PRESENT + 1 ) ,
  16761. D3D12_BARRIER_LAYOUT_RENDER_TARGET = ( D3D12_BARRIER_LAYOUT_GENERIC_READ + 1 ) ,
  16762. D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_RENDER_TARGET + 1 ) ,
  16763. D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE = ( D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS + 1 ) ,
  16764. D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ = ( D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE + 1 ) ,
  16765. D3D12_BARRIER_LAYOUT_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ + 1 ) ,
  16766. D3D12_BARRIER_LAYOUT_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_SHADER_RESOURCE + 1 ) ,
  16767. D3D12_BARRIER_LAYOUT_COPY_DEST = ( D3D12_BARRIER_LAYOUT_COPY_SOURCE + 1 ) ,
  16768. D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE = ( D3D12_BARRIER_LAYOUT_COPY_DEST + 1 ) ,
  16769. D3D12_BARRIER_LAYOUT_RESOLVE_DEST = ( D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE + 1 ) ,
  16770. D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE = ( D3D12_BARRIER_LAYOUT_RESOLVE_DEST + 1 ) ,
  16771. D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ = ( D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE + 1 ) ,
  16772. D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ + 1 ) ,
  16773. D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ = ( D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE + 1 ) ,
  16774. D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ + 1 ) ,
  16775. D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ = ( D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE + 1 ) ,
  16776. D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ + 1 ) ,
  16777. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE + 1 ) ,
  16778. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON + 1 ) ,
  16779. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ + 1 ) ,
  16780. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS + 1 ) ,
  16781. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE + 1 ) ,
  16782. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE + 1 ) ,
  16783. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST + 1 ) ,
  16784. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON + 1 ) ,
  16785. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ + 1 ) ,
  16786. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS + 1 ) ,
  16787. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE + 1 ) ,
  16788. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE + 1 ) ,
  16789. D3D12_BARRIER_LAYOUT_VIDEO_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST + 1 )
  16790. } D3D12_BARRIER_LAYOUT;
  16791. typedef
  16792. enum D3D12_BARRIER_SYNC
  16793. {
  16794. D3D12_BARRIER_SYNC_NONE = 0,
  16795. D3D12_BARRIER_SYNC_ALL = 0x1,
  16796. D3D12_BARRIER_SYNC_DRAW = 0x2,
  16797. D3D12_BARRIER_SYNC_INDEX_INPUT = 0x4,
  16798. D3D12_BARRIER_SYNC_VERTEX_SHADING = 0x8,
  16799. D3D12_BARRIER_SYNC_PIXEL_SHADING = 0x10,
  16800. D3D12_BARRIER_SYNC_DEPTH_STENCIL = 0x20,
  16801. D3D12_BARRIER_SYNC_RENDER_TARGET = 0x40,
  16802. D3D12_BARRIER_SYNC_COMPUTE_SHADING = 0x80,
  16803. D3D12_BARRIER_SYNC_RAYTRACING = 0x100,
  16804. D3D12_BARRIER_SYNC_COPY = 0x200,
  16805. D3D12_BARRIER_SYNC_RESOLVE = 0x400,
  16806. D3D12_BARRIER_SYNC_EXECUTE_INDIRECT = 0x800,
  16807. D3D12_BARRIER_SYNC_PREDICATION = 0x800,
  16808. D3D12_BARRIER_SYNC_ALL_SHADING = 0x1000,
  16809. D3D12_BARRIER_SYNC_NON_PIXEL_SHADING = 0x2000,
  16810. D3D12_BARRIER_SYNC_EMIT_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO = 0x4000,
  16811. D3D12_BARRIER_SYNC_CLEAR_UNORDERED_ACCESS_VIEW = 0x8000,
  16812. D3D12_BARRIER_SYNC_VIDEO_DECODE = 0x100000,
  16813. D3D12_BARRIER_SYNC_VIDEO_PROCESS = 0x200000,
  16814. D3D12_BARRIER_SYNC_VIDEO_ENCODE = 0x400000,
  16815. D3D12_BARRIER_SYNC_BUILD_RAYTRACING_ACCELERATION_STRUCTURE = 0x800000,
  16816. D3D12_BARRIER_SYNC_COPY_RAYTRACING_ACCELERATION_STRUCTURE = 0x1000000,
  16817. D3D12_BARRIER_SYNC_SPLIT = 0x80000000
  16818. } D3D12_BARRIER_SYNC;
  16819. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_SYNC )
  16820. typedef
  16821. enum D3D12_BARRIER_ACCESS
  16822. {
  16823. D3D12_BARRIER_ACCESS_COMMON = 0,
  16824. D3D12_BARRIER_ACCESS_VERTEX_BUFFER = 0x1,
  16825. D3D12_BARRIER_ACCESS_CONSTANT_BUFFER = 0x2,
  16826. D3D12_BARRIER_ACCESS_INDEX_BUFFER = 0x4,
  16827. D3D12_BARRIER_ACCESS_RENDER_TARGET = 0x8,
  16828. D3D12_BARRIER_ACCESS_UNORDERED_ACCESS = 0x10,
  16829. D3D12_BARRIER_ACCESS_DEPTH_STENCIL_WRITE = 0x20,
  16830. D3D12_BARRIER_ACCESS_DEPTH_STENCIL_READ = 0x40,
  16831. D3D12_BARRIER_ACCESS_SHADER_RESOURCE = 0x80,
  16832. D3D12_BARRIER_ACCESS_STREAM_OUTPUT = 0x100,
  16833. D3D12_BARRIER_ACCESS_INDIRECT_ARGUMENT = 0x200,
  16834. D3D12_BARRIER_ACCESS_PREDICATION = 0x200,
  16835. D3D12_BARRIER_ACCESS_COPY_DEST = 0x400,
  16836. D3D12_BARRIER_ACCESS_COPY_SOURCE = 0x800,
  16837. D3D12_BARRIER_ACCESS_RESOLVE_DEST = 0x1000,
  16838. D3D12_BARRIER_ACCESS_RESOLVE_SOURCE = 0x2000,
  16839. D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_READ = 0x4000,
  16840. D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_WRITE = 0x8000,
  16841. D3D12_BARRIER_ACCESS_SHADING_RATE_SOURCE = 0x10000,
  16842. D3D12_BARRIER_ACCESS_VIDEO_DECODE_READ = 0x20000,
  16843. D3D12_BARRIER_ACCESS_VIDEO_DECODE_WRITE = 0x40000,
  16844. D3D12_BARRIER_ACCESS_VIDEO_PROCESS_READ = 0x80000,
  16845. D3D12_BARRIER_ACCESS_VIDEO_PROCESS_WRITE = 0x100000,
  16846. D3D12_BARRIER_ACCESS_VIDEO_ENCODE_READ = 0x200000,
  16847. D3D12_BARRIER_ACCESS_VIDEO_ENCODE_WRITE = 0x400000,
  16848. D3D12_BARRIER_ACCESS_NO_ACCESS = 0x80000000
  16849. } D3D12_BARRIER_ACCESS;
  16850. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_ACCESS )
  16851. typedef
  16852. enum D3D12_BARRIER_TYPE
  16853. {
  16854. D3D12_BARRIER_TYPE_GLOBAL = 0,
  16855. D3D12_BARRIER_TYPE_TEXTURE = ( D3D12_BARRIER_TYPE_GLOBAL + 1 ) ,
  16856. D3D12_BARRIER_TYPE_BUFFER = ( D3D12_BARRIER_TYPE_TEXTURE + 1 )
  16857. } D3D12_BARRIER_TYPE;
  16858. typedef
  16859. enum D3D12_TEXTURE_BARRIER_FLAGS
  16860. {
  16861. D3D12_TEXTURE_BARRIER_FLAG_NONE = 0,
  16862. D3D12_TEXTURE_BARRIER_FLAG_DISCARD = 0x1
  16863. } D3D12_TEXTURE_BARRIER_FLAGS;
  16864. DEFINE_ENUM_FLAG_OPERATORS( D3D12_TEXTURE_BARRIER_FLAGS )
  16865. typedef struct D3D12_BARRIER_SUBRESOURCE_RANGE
  16866. {
  16867. UINT IndexOrFirstMipLevel;
  16868. UINT NumMipLevels;
  16869. UINT FirstArraySlice;
  16870. UINT NumArraySlices;
  16871. UINT FirstPlane;
  16872. UINT NumPlanes;
  16873. } D3D12_BARRIER_SUBRESOURCE_RANGE;
  16874. typedef struct D3D12_GLOBAL_BARRIER
  16875. {
  16876. D3D12_BARRIER_SYNC SyncBefore;
  16877. D3D12_BARRIER_SYNC SyncAfter;
  16878. D3D12_BARRIER_ACCESS AccessBefore;
  16879. D3D12_BARRIER_ACCESS AccessAfter;
  16880. } D3D12_GLOBAL_BARRIER;
  16881. typedef struct D3D12_TEXTURE_BARRIER
  16882. {
  16883. D3D12_BARRIER_SYNC SyncBefore;
  16884. D3D12_BARRIER_SYNC SyncAfter;
  16885. D3D12_BARRIER_ACCESS AccessBefore;
  16886. D3D12_BARRIER_ACCESS AccessAfter;
  16887. D3D12_BARRIER_LAYOUT LayoutBefore;
  16888. D3D12_BARRIER_LAYOUT LayoutAfter;
  16889. _In_ ID3D12Resource *pResource;
  16890. D3D12_BARRIER_SUBRESOURCE_RANGE Subresources;
  16891. D3D12_TEXTURE_BARRIER_FLAGS Flags;
  16892. } D3D12_TEXTURE_BARRIER;
  16893. typedef struct D3D12_BUFFER_BARRIER
  16894. {
  16895. D3D12_BARRIER_SYNC SyncBefore;
  16896. D3D12_BARRIER_SYNC SyncAfter;
  16897. D3D12_BARRIER_ACCESS AccessBefore;
  16898. D3D12_BARRIER_ACCESS AccessAfter;
  16899. _In_ ID3D12Resource *pResource;
  16900. UINT64 Offset;
  16901. UINT64 Size;
  16902. } D3D12_BUFFER_BARRIER;
  16903. typedef struct D3D12_BARRIER_GROUP
  16904. {
  16905. D3D12_BARRIER_TYPE Type;
  16906. UINT32 NumBarriers;
  16907. union
  16908. {
  16909. _In_reads_(NumBarriers) const D3D12_GLOBAL_BARRIER *pGlobalBarriers;
  16910. _In_reads_(NumBarriers) const D3D12_TEXTURE_BARRIER *pTextureBarriers;
  16911. _In_reads_(NumBarriers) const D3D12_BUFFER_BARRIER *pBufferBarriers;
  16912. } ;
  16913. } D3D12_BARRIER_GROUP;
  16914. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0053_v0_0_c_ifspec;
  16915. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0053_v0_0_s_ifspec;
  16916. #ifndef __ID3D12ShaderCacheSession_INTERFACE_DEFINED__
  16917. #define __ID3D12ShaderCacheSession_INTERFACE_DEFINED__
  16918. /* interface ID3D12ShaderCacheSession */
  16919. /* [unique][local][object][uuid] */
  16920. EXTERN_C const IID IID_ID3D12ShaderCacheSession;
  16921. #if defined(__cplusplus) && !defined(CINTERFACE)
  16922. MIDL_INTERFACE("28e2495d-0f64-4ae4-a6ec-129255dc49a8")
  16923. ID3D12ShaderCacheSession : public ID3D12DeviceChild
  16924. {
  16925. public:
  16926. virtual HRESULT STDMETHODCALLTYPE FindValue(
  16927. /* [annotation][in] */
  16928. _In_reads_bytes_(KeySize) const void *pKey,
  16929. UINT KeySize,
  16930. /* [annotation][out] */
  16931. _Out_writes_bytes_(*pValueSize) void *pValue,
  16932. _Inout_ UINT *pValueSize) = 0;
  16933. virtual HRESULT STDMETHODCALLTYPE StoreValue(
  16934. /* [annotation][in] */
  16935. _In_reads_bytes_(KeySize) const void *pKey,
  16936. UINT KeySize,
  16937. /* [annotation][in] */
  16938. _In_reads_bytes_(ValueSize) const void *pValue,
  16939. UINT ValueSize) = 0;
  16940. virtual void STDMETHODCALLTYPE SetDeleteOnDestroy( void) = 0;
  16941. #if defined(_MSC_VER) || !defined(_WIN32)
  16942. virtual D3D12_SHADER_CACHE_SESSION_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  16943. #else
  16944. virtual D3D12_SHADER_CACHE_SESSION_DESC *STDMETHODCALLTYPE GetDesc(
  16945. D3D12_SHADER_CACHE_SESSION_DESC * RetVal) = 0;
  16946. #endif
  16947. };
  16948. #else /* C style interface */
  16949. typedef struct ID3D12ShaderCacheSessionVtbl
  16950. {
  16951. BEGIN_INTERFACE
  16952. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  16953. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16954. ID3D12ShaderCacheSession * This,
  16955. REFIID riid,
  16956. _COM_Outptr_ void **ppvObject);
  16957. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  16958. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16959. ID3D12ShaderCacheSession * This);
  16960. DECLSPEC_XFGVIRT(IUnknown, Release)
  16961. ULONG ( STDMETHODCALLTYPE *Release )(
  16962. ID3D12ShaderCacheSession * This);
  16963. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  16964. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  16965. ID3D12ShaderCacheSession * This,
  16966. _In_ REFGUID guid,
  16967. _Inout_ UINT *pDataSize,
  16968. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  16969. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  16970. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  16971. ID3D12ShaderCacheSession * This,
  16972. _In_ REFGUID guid,
  16973. _In_ UINT DataSize,
  16974. _In_reads_bytes_opt_( DataSize ) const void *pData);
  16975. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  16976. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  16977. ID3D12ShaderCacheSession * This,
  16978. _In_ REFGUID guid,
  16979. _In_opt_ const IUnknown *pData);
  16980. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  16981. HRESULT ( STDMETHODCALLTYPE *SetName )(
  16982. ID3D12ShaderCacheSession * This,
  16983. _In_z_ LPCWSTR Name);
  16984. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  16985. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  16986. ID3D12ShaderCacheSession * This,
  16987. REFIID riid,
  16988. _COM_Outptr_opt_ void **ppvDevice);
  16989. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, FindValue)
  16990. HRESULT ( STDMETHODCALLTYPE *FindValue )(
  16991. ID3D12ShaderCacheSession * This,
  16992. /* [annotation][in] */
  16993. _In_reads_bytes_(KeySize) const void *pKey,
  16994. UINT KeySize,
  16995. /* [annotation][out] */
  16996. _Out_writes_bytes_(*pValueSize) void *pValue,
  16997. _Inout_ UINT *pValueSize);
  16998. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, StoreValue)
  16999. HRESULT ( STDMETHODCALLTYPE *StoreValue )(
  17000. ID3D12ShaderCacheSession * This,
  17001. /* [annotation][in] */
  17002. _In_reads_bytes_(KeySize) const void *pKey,
  17003. UINT KeySize,
  17004. /* [annotation][in] */
  17005. _In_reads_bytes_(ValueSize) const void *pValue,
  17006. UINT ValueSize);
  17007. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, SetDeleteOnDestroy)
  17008. void ( STDMETHODCALLTYPE *SetDeleteOnDestroy )(
  17009. ID3D12ShaderCacheSession * This);
  17010. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, GetDesc)
  17011. #if !defined(_WIN32)
  17012. D3D12_SHADER_CACHE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  17013. ID3D12ShaderCacheSession * This);
  17014. #else
  17015. D3D12_SHADER_CACHE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  17016. ID3D12ShaderCacheSession * This,
  17017. D3D12_SHADER_CACHE_SESSION_DESC * RetVal);
  17018. #endif
  17019. END_INTERFACE
  17020. } ID3D12ShaderCacheSessionVtbl;
  17021. interface ID3D12ShaderCacheSession
  17022. {
  17023. CONST_VTBL struct ID3D12ShaderCacheSessionVtbl *lpVtbl;
  17024. };
  17025. #ifdef COBJMACROS
  17026. #define ID3D12ShaderCacheSession_QueryInterface(This,riid,ppvObject) \
  17027. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  17028. #define ID3D12ShaderCacheSession_AddRef(This) \
  17029. ( (This)->lpVtbl -> AddRef(This) )
  17030. #define ID3D12ShaderCacheSession_Release(This) \
  17031. ( (This)->lpVtbl -> Release(This) )
  17032. #define ID3D12ShaderCacheSession_GetPrivateData(This,guid,pDataSize,pData) \
  17033. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  17034. #define ID3D12ShaderCacheSession_SetPrivateData(This,guid,DataSize,pData) \
  17035. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  17036. #define ID3D12ShaderCacheSession_SetPrivateDataInterface(This,guid,pData) \
  17037. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  17038. #define ID3D12ShaderCacheSession_SetName(This,Name) \
  17039. ( (This)->lpVtbl -> SetName(This,Name) )
  17040. #define ID3D12ShaderCacheSession_GetDevice(This,riid,ppvDevice) \
  17041. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  17042. #define ID3D12ShaderCacheSession_FindValue(This,pKey,KeySize,pValue,pValueSize) \
  17043. ( (This)->lpVtbl -> FindValue(This,pKey,KeySize,pValue,pValueSize) )
  17044. #define ID3D12ShaderCacheSession_StoreValue(This,pKey,KeySize,pValue,ValueSize) \
  17045. ( (This)->lpVtbl -> StoreValue(This,pKey,KeySize,pValue,ValueSize) )
  17046. #define ID3D12ShaderCacheSession_SetDeleteOnDestroy(This) \
  17047. ( (This)->lpVtbl -> SetDeleteOnDestroy(This) )
  17048. #if !defined(_WIN32)
  17049. #define ID3D12ShaderCacheSession_GetDesc(This) \
  17050. ( (This)->lpVtbl -> GetDesc(This) )
  17051. #else
  17052. #define ID3D12ShaderCacheSession_GetDesc(This,RetVal) \
  17053. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  17054. #endif
  17055. #endif /* COBJMACROS */
  17056. #endif /* C style interface */
  17057. #endif /* __ID3D12ShaderCacheSession_INTERFACE_DEFINED__ */
  17058. /* interface __MIDL_itf_d3d12_0000_0054 */
  17059. /* [local] */
  17060. typedef
  17061. enum D3D12_SHADER_CACHE_KIND_FLAGS
  17062. {
  17063. D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CACHE_FOR_DRIVER = 0x1,
  17064. D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CONVERSIONS = 0x2,
  17065. D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_DRIVER_MANAGED = 0x4,
  17066. D3D12_SHADER_CACHE_KIND_FLAG_APPLICATION_MANAGED = 0x8
  17067. } D3D12_SHADER_CACHE_KIND_FLAGS;
  17068. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_KIND_FLAGS )
  17069. typedef
  17070. enum D3D12_SHADER_CACHE_CONTROL_FLAGS
  17071. {
  17072. D3D12_SHADER_CACHE_CONTROL_FLAG_DISABLE = 0x1,
  17073. D3D12_SHADER_CACHE_CONTROL_FLAG_ENABLE = 0x2,
  17074. D3D12_SHADER_CACHE_CONTROL_FLAG_CLEAR = 0x4
  17075. } D3D12_SHADER_CACHE_CONTROL_FLAGS;
  17076. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_CONTROL_FLAGS )
  17077. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0054_v0_0_c_ifspec;
  17078. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0054_v0_0_s_ifspec;
  17079. #ifndef __ID3D12Device9_INTERFACE_DEFINED__
  17080. #define __ID3D12Device9_INTERFACE_DEFINED__
  17081. /* interface ID3D12Device9 */
  17082. /* [unique][local][object][uuid] */
  17083. EXTERN_C const IID IID_ID3D12Device9;
  17084. #if defined(__cplusplus) && !defined(CINTERFACE)
  17085. MIDL_INTERFACE("4c80e962-f032-4f60-bc9e-ebc2cfa1d83c")
  17086. ID3D12Device9 : public ID3D12Device8
  17087. {
  17088. public:
  17089. virtual HRESULT STDMETHODCALLTYPE CreateShaderCacheSession(
  17090. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  17091. REFIID riid,
  17092. _COM_Outptr_opt_ void **ppvSession) = 0;
  17093. virtual HRESULT STDMETHODCALLTYPE ShaderCacheControl(
  17094. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  17095. D3D12_SHADER_CACHE_CONTROL_FLAGS Control) = 0;
  17096. virtual HRESULT STDMETHODCALLTYPE CreateCommandQueue1(
  17097. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  17098. REFIID CreatorID,
  17099. REFIID riid,
  17100. _COM_Outptr_ void **ppCommandQueue) = 0;
  17101. };
  17102. #else /* C style interface */
  17103. typedef struct ID3D12Device9Vtbl
  17104. {
  17105. BEGIN_INTERFACE
  17106. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  17107. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17108. ID3D12Device9 * This,
  17109. REFIID riid,
  17110. _COM_Outptr_ void **ppvObject);
  17111. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  17112. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17113. ID3D12Device9 * This);
  17114. DECLSPEC_XFGVIRT(IUnknown, Release)
  17115. ULONG ( STDMETHODCALLTYPE *Release )(
  17116. ID3D12Device9 * This);
  17117. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  17118. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  17119. ID3D12Device9 * This,
  17120. _In_ REFGUID guid,
  17121. _Inout_ UINT *pDataSize,
  17122. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  17123. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  17124. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  17125. ID3D12Device9 * This,
  17126. _In_ REFGUID guid,
  17127. _In_ UINT DataSize,
  17128. _In_reads_bytes_opt_( DataSize ) const void *pData);
  17129. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  17130. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  17131. ID3D12Device9 * This,
  17132. _In_ REFGUID guid,
  17133. _In_opt_ const IUnknown *pData);
  17134. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  17135. HRESULT ( STDMETHODCALLTYPE *SetName )(
  17136. ID3D12Device9 * This,
  17137. _In_z_ LPCWSTR Name);
  17138. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  17139. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  17140. ID3D12Device9 * This);
  17141. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  17142. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  17143. ID3D12Device9 * This,
  17144. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  17145. REFIID riid,
  17146. _COM_Outptr_ void **ppCommandQueue);
  17147. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  17148. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  17149. ID3D12Device9 * This,
  17150. _In_ D3D12_COMMAND_LIST_TYPE type,
  17151. REFIID riid,
  17152. _COM_Outptr_ void **ppCommandAllocator);
  17153. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  17154. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  17155. ID3D12Device9 * This,
  17156. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  17157. REFIID riid,
  17158. _COM_Outptr_ void **ppPipelineState);
  17159. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  17160. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  17161. ID3D12Device9 * This,
  17162. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  17163. REFIID riid,
  17164. _COM_Outptr_ void **ppPipelineState);
  17165. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  17166. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  17167. ID3D12Device9 * This,
  17168. _In_ UINT nodeMask,
  17169. _In_ D3D12_COMMAND_LIST_TYPE type,
  17170. _In_ ID3D12CommandAllocator *pCommandAllocator,
  17171. _In_opt_ ID3D12PipelineState *pInitialState,
  17172. REFIID riid,
  17173. _COM_Outptr_ void **ppCommandList);
  17174. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  17175. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  17176. ID3D12Device9 * This,
  17177. D3D12_FEATURE Feature,
  17178. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  17179. UINT FeatureSupportDataSize);
  17180. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  17181. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  17182. ID3D12Device9 * This,
  17183. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  17184. REFIID riid,
  17185. _COM_Outptr_ void **ppvHeap);
  17186. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  17187. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  17188. ID3D12Device9 * This,
  17189. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  17190. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  17191. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  17192. ID3D12Device9 * This,
  17193. _In_ UINT nodeMask,
  17194. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  17195. _In_ SIZE_T blobLengthInBytes,
  17196. REFIID riid,
  17197. _COM_Outptr_ void **ppvRootSignature);
  17198. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  17199. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  17200. ID3D12Device9 * This,
  17201. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  17202. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17203. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  17204. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  17205. ID3D12Device9 * This,
  17206. _In_opt_ ID3D12Resource *pResource,
  17207. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  17208. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17209. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  17210. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  17211. ID3D12Device9 * This,
  17212. _In_opt_ ID3D12Resource *pResource,
  17213. _In_opt_ ID3D12Resource *pCounterResource,
  17214. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  17215. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17216. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  17217. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  17218. ID3D12Device9 * This,
  17219. _In_opt_ ID3D12Resource *pResource,
  17220. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  17221. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17222. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  17223. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  17224. ID3D12Device9 * This,
  17225. _In_opt_ ID3D12Resource *pResource,
  17226. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  17227. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17228. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  17229. void ( STDMETHODCALLTYPE *CreateSampler )(
  17230. ID3D12Device9 * This,
  17231. _In_ const D3D12_SAMPLER_DESC *pDesc,
  17232. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17233. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  17234. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  17235. ID3D12Device9 * This,
  17236. _In_ UINT NumDestDescriptorRanges,
  17237. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  17238. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  17239. _In_ UINT NumSrcDescriptorRanges,
  17240. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  17241. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  17242. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  17243. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  17244. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  17245. ID3D12Device9 * This,
  17246. _In_ UINT NumDescriptors,
  17247. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  17248. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  17249. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  17250. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  17251. #if !defined(_WIN32)
  17252. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  17253. ID3D12Device9 * This,
  17254. _In_ UINT visibleMask,
  17255. _In_ UINT numResourceDescs,
  17256. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  17257. #else
  17258. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  17259. ID3D12Device9 * This,
  17260. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  17261. _In_ UINT visibleMask,
  17262. _In_ UINT numResourceDescs,
  17263. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  17264. #endif
  17265. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  17266. #if !defined(_WIN32)
  17267. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  17268. ID3D12Device9 * This,
  17269. _In_ UINT nodeMask,
  17270. D3D12_HEAP_TYPE heapType);
  17271. #else
  17272. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  17273. ID3D12Device9 * This,
  17274. D3D12_HEAP_PROPERTIES * RetVal,
  17275. _In_ UINT nodeMask,
  17276. D3D12_HEAP_TYPE heapType);
  17277. #endif
  17278. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  17279. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  17280. ID3D12Device9 * This,
  17281. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17282. D3D12_HEAP_FLAGS HeapFlags,
  17283. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17284. D3D12_RESOURCE_STATES InitialResourceState,
  17285. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17286. REFIID riidResource,
  17287. _COM_Outptr_opt_ void **ppvResource);
  17288. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  17289. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  17290. ID3D12Device9 * This,
  17291. _In_ const D3D12_HEAP_DESC *pDesc,
  17292. REFIID riid,
  17293. _COM_Outptr_opt_ void **ppvHeap);
  17294. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  17295. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  17296. ID3D12Device9 * This,
  17297. _In_ ID3D12Heap *pHeap,
  17298. UINT64 HeapOffset,
  17299. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17300. D3D12_RESOURCE_STATES InitialState,
  17301. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17302. REFIID riid,
  17303. _COM_Outptr_opt_ void **ppvResource);
  17304. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  17305. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  17306. ID3D12Device9 * This,
  17307. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17308. D3D12_RESOURCE_STATES InitialState,
  17309. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17310. REFIID riid,
  17311. _COM_Outptr_opt_ void **ppvResource);
  17312. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  17313. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  17314. ID3D12Device9 * This,
  17315. _In_ ID3D12DeviceChild *pObject,
  17316. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  17317. DWORD Access,
  17318. _In_opt_ LPCWSTR Name,
  17319. _Out_ HANDLE *pHandle);
  17320. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  17321. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  17322. ID3D12Device9 * This,
  17323. _In_ HANDLE NTHandle,
  17324. REFIID riid,
  17325. _COM_Outptr_opt_ void **ppvObj);
  17326. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  17327. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  17328. ID3D12Device9 * This,
  17329. _In_ LPCWSTR Name,
  17330. DWORD Access,
  17331. /* [annotation][out] */
  17332. _Out_ HANDLE *pNTHandle);
  17333. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  17334. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  17335. ID3D12Device9 * This,
  17336. UINT NumObjects,
  17337. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  17338. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  17339. HRESULT ( STDMETHODCALLTYPE *Evict )(
  17340. ID3D12Device9 * This,
  17341. UINT NumObjects,
  17342. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  17343. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  17344. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  17345. ID3D12Device9 * This,
  17346. UINT64 InitialValue,
  17347. D3D12_FENCE_FLAGS Flags,
  17348. REFIID riid,
  17349. _COM_Outptr_ void **ppFence);
  17350. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  17351. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  17352. ID3D12Device9 * This);
  17353. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  17354. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  17355. ID3D12Device9 * This,
  17356. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  17357. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  17358. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  17359. UINT64 BaseOffset,
  17360. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  17361. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  17362. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  17363. _Out_opt_ UINT64 *pTotalBytes);
  17364. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  17365. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  17366. ID3D12Device9 * This,
  17367. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  17368. REFIID riid,
  17369. _COM_Outptr_opt_ void **ppvHeap);
  17370. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  17371. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  17372. ID3D12Device9 * This,
  17373. BOOL Enable);
  17374. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  17375. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  17376. ID3D12Device9 * This,
  17377. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  17378. _In_opt_ ID3D12RootSignature *pRootSignature,
  17379. REFIID riid,
  17380. _COM_Outptr_opt_ void **ppvCommandSignature);
  17381. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  17382. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  17383. ID3D12Device9 * This,
  17384. _In_ ID3D12Resource *pTiledResource,
  17385. _Out_opt_ UINT *pNumTilesForEntireResource,
  17386. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  17387. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  17388. _Inout_opt_ UINT *pNumSubresourceTilings,
  17389. _In_ UINT FirstSubresourceTilingToGet,
  17390. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  17391. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  17392. #if !defined(_WIN32)
  17393. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  17394. ID3D12Device9 * This);
  17395. #else
  17396. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  17397. ID3D12Device9 * This,
  17398. LUID * RetVal);
  17399. #endif
  17400. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  17401. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  17402. ID3D12Device9 * This,
  17403. _In_reads_(BlobLength) const void *pLibraryBlob,
  17404. SIZE_T BlobLength,
  17405. REFIID riid,
  17406. _COM_Outptr_ void **ppPipelineLibrary);
  17407. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  17408. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  17409. ID3D12Device9 * This,
  17410. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  17411. _In_reads_(NumFences) const UINT64 *pFenceValues,
  17412. UINT NumFences,
  17413. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  17414. HANDLE hEvent);
  17415. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  17416. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  17417. ID3D12Device9 * This,
  17418. UINT NumObjects,
  17419. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  17420. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  17421. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  17422. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  17423. ID3D12Device9 * This,
  17424. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  17425. REFIID riid,
  17426. _COM_Outptr_ void **ppPipelineState);
  17427. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  17428. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  17429. ID3D12Device9 * This,
  17430. _In_ const void *pAddress,
  17431. REFIID riid,
  17432. _COM_Outptr_ void **ppvHeap);
  17433. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  17434. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  17435. ID3D12Device9 * This,
  17436. _In_ HANDLE hFileMapping,
  17437. REFIID riid,
  17438. _COM_Outptr_ void **ppvHeap);
  17439. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  17440. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  17441. ID3D12Device9 * This,
  17442. D3D12_RESIDENCY_FLAGS Flags,
  17443. UINT NumObjects,
  17444. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  17445. _In_ ID3D12Fence *pFenceToSignal,
  17446. UINT64 FenceValueToSignal);
  17447. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  17448. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  17449. ID3D12Device9 * This,
  17450. _In_ UINT nodeMask,
  17451. _In_ D3D12_COMMAND_LIST_TYPE type,
  17452. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  17453. REFIID riid,
  17454. _COM_Outptr_ void **ppCommandList);
  17455. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  17456. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  17457. ID3D12Device9 * This,
  17458. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  17459. _In_ REFIID riid,
  17460. _COM_Outptr_ void **ppSession);
  17461. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  17462. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  17463. ID3D12Device9 * This,
  17464. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17465. D3D12_HEAP_FLAGS HeapFlags,
  17466. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17467. D3D12_RESOURCE_STATES InitialResourceState,
  17468. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17469. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17470. REFIID riidResource,
  17471. _COM_Outptr_opt_ void **ppvResource);
  17472. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  17473. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  17474. ID3D12Device9 * This,
  17475. _In_ const D3D12_HEAP_DESC *pDesc,
  17476. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17477. REFIID riid,
  17478. _COM_Outptr_opt_ void **ppvHeap);
  17479. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  17480. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  17481. ID3D12Device9 * This,
  17482. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17483. D3D12_RESOURCE_STATES InitialState,
  17484. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17485. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17486. REFIID riid,
  17487. _COM_Outptr_opt_ void **ppvResource);
  17488. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  17489. #if !defined(_WIN32)
  17490. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  17491. ID3D12Device9 * This,
  17492. UINT visibleMask,
  17493. UINT numResourceDescs,
  17494. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  17495. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17496. #else
  17497. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  17498. ID3D12Device9 * This,
  17499. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  17500. UINT visibleMask,
  17501. UINT numResourceDescs,
  17502. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  17503. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17504. #endif
  17505. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  17506. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  17507. ID3D12Device9 * This,
  17508. _In_ ID3D12LifetimeOwner *pOwner,
  17509. REFIID riid,
  17510. _COM_Outptr_ void **ppvTracker);
  17511. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  17512. void ( STDMETHODCALLTYPE *RemoveDevice )(
  17513. ID3D12Device9 * This);
  17514. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  17515. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  17516. ID3D12Device9 * This,
  17517. _Inout_ UINT *pNumMetaCommands,
  17518. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  17519. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  17520. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  17521. ID3D12Device9 * This,
  17522. _In_ REFGUID CommandId,
  17523. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  17524. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  17525. _Inout_ UINT *pParameterCount,
  17526. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  17527. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  17528. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  17529. ID3D12Device9 * This,
  17530. _In_ REFGUID CommandId,
  17531. _In_ UINT NodeMask,
  17532. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  17533. _In_ SIZE_T CreationParametersDataSizeInBytes,
  17534. REFIID riid,
  17535. _COM_Outptr_ void **ppMetaCommand);
  17536. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  17537. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  17538. ID3D12Device9 * This,
  17539. const D3D12_STATE_OBJECT_DESC *pDesc,
  17540. REFIID riid,
  17541. _COM_Outptr_ void **ppStateObject);
  17542. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  17543. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  17544. ID3D12Device9 * This,
  17545. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  17546. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  17547. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  17548. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  17549. ID3D12Device9 * This,
  17550. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  17551. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  17552. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  17553. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  17554. ID3D12Device9 * This,
  17555. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  17556. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  17557. _In_opt_ HANDLE hEventToSignalUponCompletion,
  17558. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  17559. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  17560. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  17561. ID3D12Device9 * This,
  17562. const D3D12_STATE_OBJECT_DESC *pAddition,
  17563. ID3D12StateObject *pStateObjectToGrowFrom,
  17564. REFIID riid,
  17565. _COM_Outptr_ void **ppNewStateObject);
  17566. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  17567. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  17568. ID3D12Device9 * This,
  17569. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  17570. _In_ REFIID riid,
  17571. _COM_Outptr_ void **ppSession);
  17572. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  17573. #if !defined(_WIN32)
  17574. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  17575. ID3D12Device9 * This,
  17576. UINT visibleMask,
  17577. UINT numResourceDescs,
  17578. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  17579. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17580. #else
  17581. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  17582. ID3D12Device9 * This,
  17583. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  17584. UINT visibleMask,
  17585. UINT numResourceDescs,
  17586. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  17587. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17588. #endif
  17589. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  17590. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  17591. ID3D12Device9 * This,
  17592. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17593. D3D12_HEAP_FLAGS HeapFlags,
  17594. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17595. D3D12_RESOURCE_STATES InitialResourceState,
  17596. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17597. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17598. REFIID riidResource,
  17599. _COM_Outptr_opt_ void **ppvResource);
  17600. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  17601. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  17602. ID3D12Device9 * This,
  17603. _In_ ID3D12Heap *pHeap,
  17604. UINT64 HeapOffset,
  17605. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17606. D3D12_RESOURCE_STATES InitialState,
  17607. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17608. REFIID riid,
  17609. _COM_Outptr_opt_ void **ppvResource);
  17610. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  17611. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  17612. ID3D12Device9 * This,
  17613. _In_opt_ ID3D12Resource *pTargetedResource,
  17614. _In_opt_ ID3D12Resource *pFeedbackResource,
  17615. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17616. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  17617. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  17618. ID3D12Device9 * This,
  17619. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  17620. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  17621. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  17622. UINT64 BaseOffset,
  17623. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  17624. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  17625. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  17626. _Out_opt_ UINT64 *pTotalBytes);
  17627. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  17628. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  17629. ID3D12Device9 * This,
  17630. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  17631. REFIID riid,
  17632. _COM_Outptr_opt_ void **ppvSession);
  17633. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  17634. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  17635. ID3D12Device9 * This,
  17636. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  17637. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  17638. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  17639. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  17640. ID3D12Device9 * This,
  17641. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  17642. REFIID CreatorID,
  17643. REFIID riid,
  17644. _COM_Outptr_ void **ppCommandQueue);
  17645. END_INTERFACE
  17646. } ID3D12Device9Vtbl;
  17647. interface ID3D12Device9
  17648. {
  17649. CONST_VTBL struct ID3D12Device9Vtbl *lpVtbl;
  17650. };
  17651. #ifdef COBJMACROS
  17652. #define ID3D12Device9_QueryInterface(This,riid,ppvObject) \
  17653. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  17654. #define ID3D12Device9_AddRef(This) \
  17655. ( (This)->lpVtbl -> AddRef(This) )
  17656. #define ID3D12Device9_Release(This) \
  17657. ( (This)->lpVtbl -> Release(This) )
  17658. #define ID3D12Device9_GetPrivateData(This,guid,pDataSize,pData) \
  17659. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  17660. #define ID3D12Device9_SetPrivateData(This,guid,DataSize,pData) \
  17661. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  17662. #define ID3D12Device9_SetPrivateDataInterface(This,guid,pData) \
  17663. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  17664. #define ID3D12Device9_SetName(This,Name) \
  17665. ( (This)->lpVtbl -> SetName(This,Name) )
  17666. #define ID3D12Device9_GetNodeCount(This) \
  17667. ( (This)->lpVtbl -> GetNodeCount(This) )
  17668. #define ID3D12Device9_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  17669. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  17670. #define ID3D12Device9_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  17671. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  17672. #define ID3D12Device9_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  17673. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  17674. #define ID3D12Device9_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  17675. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  17676. #define ID3D12Device9_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  17677. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  17678. #define ID3D12Device9_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  17679. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  17680. #define ID3D12Device9_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  17681. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  17682. #define ID3D12Device9_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  17683. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  17684. #define ID3D12Device9_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  17685. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  17686. #define ID3D12Device9_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  17687. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  17688. #define ID3D12Device9_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  17689. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  17690. #define ID3D12Device9_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  17691. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  17692. #define ID3D12Device9_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  17693. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  17694. #define ID3D12Device9_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  17695. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  17696. #define ID3D12Device9_CreateSampler(This,pDesc,DestDescriptor) \
  17697. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  17698. #define ID3D12Device9_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  17699. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  17700. #define ID3D12Device9_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  17701. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  17702. #if !defined(_WIN32)
  17703. #define ID3D12Device9_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  17704. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  17705. #else
  17706. #define ID3D12Device9_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  17707. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  17708. #endif
  17709. #if !defined(_WIN32)
  17710. #define ID3D12Device9_GetCustomHeapProperties(This,nodeMask,heapType) \
  17711. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  17712. #else
  17713. #define ID3D12Device9_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  17714. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  17715. #endif
  17716. #define ID3D12Device9_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  17717. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  17718. #define ID3D12Device9_CreateHeap(This,pDesc,riid,ppvHeap) \
  17719. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  17720. #define ID3D12Device9_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  17721. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  17722. #define ID3D12Device9_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  17723. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  17724. #define ID3D12Device9_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  17725. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  17726. #define ID3D12Device9_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  17727. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  17728. #define ID3D12Device9_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  17729. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  17730. #define ID3D12Device9_MakeResident(This,NumObjects,ppObjects) \
  17731. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  17732. #define ID3D12Device9_Evict(This,NumObjects,ppObjects) \
  17733. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  17734. #define ID3D12Device9_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  17735. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  17736. #define ID3D12Device9_GetDeviceRemovedReason(This) \
  17737. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  17738. #define ID3D12Device9_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  17739. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  17740. #define ID3D12Device9_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  17741. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  17742. #define ID3D12Device9_SetStablePowerState(This,Enable) \
  17743. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  17744. #define ID3D12Device9_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  17745. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  17746. #define ID3D12Device9_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  17747. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  17748. #if !defined(_WIN32)
  17749. #define ID3D12Device9_GetAdapterLuid(This) \
  17750. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  17751. #else
  17752. #define ID3D12Device9_GetAdapterLuid(This,RetVal) \
  17753. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  17754. #endif
  17755. #define ID3D12Device9_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  17756. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  17757. #define ID3D12Device9_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  17758. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  17759. #define ID3D12Device9_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  17760. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  17761. #define ID3D12Device9_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  17762. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  17763. #define ID3D12Device9_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  17764. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  17765. #define ID3D12Device9_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  17766. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  17767. #define ID3D12Device9_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  17768. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  17769. #define ID3D12Device9_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  17770. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  17771. #define ID3D12Device9_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  17772. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  17773. #define ID3D12Device9_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  17774. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  17775. #define ID3D12Device9_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  17776. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  17777. #define ID3D12Device9_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  17778. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  17779. #if !defined(_WIN32)
  17780. #define ID3D12Device9_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17781. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17782. #else
  17783. #define ID3D12Device9_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17784. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17785. #endif
  17786. #define ID3D12Device9_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  17787. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  17788. #define ID3D12Device9_RemoveDevice(This) \
  17789. ( (This)->lpVtbl -> RemoveDevice(This) )
  17790. #define ID3D12Device9_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  17791. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  17792. #define ID3D12Device9_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  17793. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  17794. #define ID3D12Device9_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  17795. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  17796. #define ID3D12Device9_CreateStateObject(This,pDesc,riid,ppStateObject) \
  17797. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  17798. #define ID3D12Device9_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  17799. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  17800. #define ID3D12Device9_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  17801. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  17802. #define ID3D12Device9_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  17803. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  17804. #define ID3D12Device9_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  17805. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  17806. #define ID3D12Device9_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  17807. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  17808. #if !defined(_WIN32)
  17809. #define ID3D12Device9_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17810. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17811. #else
  17812. #define ID3D12Device9_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17813. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17814. #endif
  17815. #define ID3D12Device9_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  17816. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  17817. #define ID3D12Device9_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  17818. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  17819. #define ID3D12Device9_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  17820. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  17821. #define ID3D12Device9_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  17822. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  17823. #define ID3D12Device9_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  17824. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  17825. #define ID3D12Device9_ShaderCacheControl(This,Kinds,Control) \
  17826. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  17827. #define ID3D12Device9_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  17828. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  17829. #endif /* COBJMACROS */
  17830. #endif /* C style interface */
  17831. #endif /* __ID3D12Device9_INTERFACE_DEFINED__ */
  17832. #ifndef __ID3D12Device10_INTERFACE_DEFINED__
  17833. #define __ID3D12Device10_INTERFACE_DEFINED__
  17834. /* interface ID3D12Device10 */
  17835. /* [unique][local][object][uuid] */
  17836. EXTERN_C const IID IID_ID3D12Device10;
  17837. #if defined(__cplusplus) && !defined(CINTERFACE)
  17838. MIDL_INTERFACE("517f8718-aa66-49f9-b02b-a7ab89c06031")
  17839. ID3D12Device10 : public ID3D12Device9
  17840. {
  17841. public:
  17842. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource3(
  17843. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17844. D3D12_HEAP_FLAGS HeapFlags,
  17845. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17846. D3D12_BARRIER_LAYOUT InitialLayout,
  17847. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17848. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17849. UINT32 NumCastableFormats,
  17850. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17851. REFIID riidResource,
  17852. _COM_Outptr_opt_ void **ppvResource) = 0;
  17853. virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource2(
  17854. _In_ ID3D12Heap *pHeap,
  17855. UINT64 HeapOffset,
  17856. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17857. D3D12_BARRIER_LAYOUT InitialLayout,
  17858. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17859. UINT32 NumCastableFormats,
  17860. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17861. REFIID riid,
  17862. _COM_Outptr_opt_ void **ppvResource) = 0;
  17863. virtual HRESULT STDMETHODCALLTYPE CreateReservedResource2(
  17864. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17865. D3D12_BARRIER_LAYOUT InitialLayout,
  17866. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17867. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17868. UINT32 NumCastableFormats,
  17869. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17870. REFIID riid,
  17871. _COM_Outptr_opt_ void **ppvResource) = 0;
  17872. };
  17873. #else /* C style interface */
  17874. typedef struct ID3D12Device10Vtbl
  17875. {
  17876. BEGIN_INTERFACE
  17877. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  17878. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17879. ID3D12Device10 * This,
  17880. REFIID riid,
  17881. _COM_Outptr_ void **ppvObject);
  17882. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  17883. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17884. ID3D12Device10 * This);
  17885. DECLSPEC_XFGVIRT(IUnknown, Release)
  17886. ULONG ( STDMETHODCALLTYPE *Release )(
  17887. ID3D12Device10 * This);
  17888. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  17889. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  17890. ID3D12Device10 * This,
  17891. _In_ REFGUID guid,
  17892. _Inout_ UINT *pDataSize,
  17893. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  17894. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  17895. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  17896. ID3D12Device10 * This,
  17897. _In_ REFGUID guid,
  17898. _In_ UINT DataSize,
  17899. _In_reads_bytes_opt_( DataSize ) const void *pData);
  17900. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  17901. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  17902. ID3D12Device10 * This,
  17903. _In_ REFGUID guid,
  17904. _In_opt_ const IUnknown *pData);
  17905. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  17906. HRESULT ( STDMETHODCALLTYPE *SetName )(
  17907. ID3D12Device10 * This,
  17908. _In_z_ LPCWSTR Name);
  17909. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  17910. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  17911. ID3D12Device10 * This);
  17912. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  17913. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  17914. ID3D12Device10 * This,
  17915. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  17916. REFIID riid,
  17917. _COM_Outptr_ void **ppCommandQueue);
  17918. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  17919. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  17920. ID3D12Device10 * This,
  17921. _In_ D3D12_COMMAND_LIST_TYPE type,
  17922. REFIID riid,
  17923. _COM_Outptr_ void **ppCommandAllocator);
  17924. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  17925. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  17926. ID3D12Device10 * This,
  17927. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  17928. REFIID riid,
  17929. _COM_Outptr_ void **ppPipelineState);
  17930. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  17931. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  17932. ID3D12Device10 * This,
  17933. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  17934. REFIID riid,
  17935. _COM_Outptr_ void **ppPipelineState);
  17936. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  17937. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  17938. ID3D12Device10 * This,
  17939. _In_ UINT nodeMask,
  17940. _In_ D3D12_COMMAND_LIST_TYPE type,
  17941. _In_ ID3D12CommandAllocator *pCommandAllocator,
  17942. _In_opt_ ID3D12PipelineState *pInitialState,
  17943. REFIID riid,
  17944. _COM_Outptr_ void **ppCommandList);
  17945. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  17946. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  17947. ID3D12Device10 * This,
  17948. D3D12_FEATURE Feature,
  17949. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  17950. UINT FeatureSupportDataSize);
  17951. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  17952. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  17953. ID3D12Device10 * This,
  17954. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  17955. REFIID riid,
  17956. _COM_Outptr_ void **ppvHeap);
  17957. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  17958. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  17959. ID3D12Device10 * This,
  17960. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  17961. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  17962. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  17963. ID3D12Device10 * This,
  17964. _In_ UINT nodeMask,
  17965. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  17966. _In_ SIZE_T blobLengthInBytes,
  17967. REFIID riid,
  17968. _COM_Outptr_ void **ppvRootSignature);
  17969. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  17970. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  17971. ID3D12Device10 * This,
  17972. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  17973. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17974. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  17975. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  17976. ID3D12Device10 * This,
  17977. _In_opt_ ID3D12Resource *pResource,
  17978. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  17979. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17980. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  17981. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  17982. ID3D12Device10 * This,
  17983. _In_opt_ ID3D12Resource *pResource,
  17984. _In_opt_ ID3D12Resource *pCounterResource,
  17985. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  17986. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17987. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  17988. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  17989. ID3D12Device10 * This,
  17990. _In_opt_ ID3D12Resource *pResource,
  17991. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  17992. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17993. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  17994. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  17995. ID3D12Device10 * This,
  17996. _In_opt_ ID3D12Resource *pResource,
  17997. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  17998. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17999. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  18000. void ( STDMETHODCALLTYPE *CreateSampler )(
  18001. ID3D12Device10 * This,
  18002. _In_ const D3D12_SAMPLER_DESC *pDesc,
  18003. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18004. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  18005. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  18006. ID3D12Device10 * This,
  18007. _In_ UINT NumDestDescriptorRanges,
  18008. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  18009. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  18010. _In_ UINT NumSrcDescriptorRanges,
  18011. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  18012. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  18013. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  18014. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  18015. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  18016. ID3D12Device10 * This,
  18017. _In_ UINT NumDescriptors,
  18018. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  18019. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  18020. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  18021. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  18022. #if !defined(_WIN32)
  18023. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  18024. ID3D12Device10 * This,
  18025. _In_ UINT visibleMask,
  18026. _In_ UINT numResourceDescs,
  18027. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  18028. #else
  18029. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  18030. ID3D12Device10 * This,
  18031. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18032. _In_ UINT visibleMask,
  18033. _In_ UINT numResourceDescs,
  18034. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  18035. #endif
  18036. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  18037. #if !defined(_WIN32)
  18038. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  18039. ID3D12Device10 * This,
  18040. _In_ UINT nodeMask,
  18041. D3D12_HEAP_TYPE heapType);
  18042. #else
  18043. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  18044. ID3D12Device10 * This,
  18045. D3D12_HEAP_PROPERTIES * RetVal,
  18046. _In_ UINT nodeMask,
  18047. D3D12_HEAP_TYPE heapType);
  18048. #endif
  18049. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  18050. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  18051. ID3D12Device10 * This,
  18052. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18053. D3D12_HEAP_FLAGS HeapFlags,
  18054. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18055. D3D12_RESOURCE_STATES InitialResourceState,
  18056. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18057. REFIID riidResource,
  18058. _COM_Outptr_opt_ void **ppvResource);
  18059. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  18060. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  18061. ID3D12Device10 * This,
  18062. _In_ const D3D12_HEAP_DESC *pDesc,
  18063. REFIID riid,
  18064. _COM_Outptr_opt_ void **ppvHeap);
  18065. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  18066. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  18067. ID3D12Device10 * This,
  18068. _In_ ID3D12Heap *pHeap,
  18069. UINT64 HeapOffset,
  18070. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18071. D3D12_RESOURCE_STATES InitialState,
  18072. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18073. REFIID riid,
  18074. _COM_Outptr_opt_ void **ppvResource);
  18075. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  18076. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  18077. ID3D12Device10 * This,
  18078. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18079. D3D12_RESOURCE_STATES InitialState,
  18080. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18081. REFIID riid,
  18082. _COM_Outptr_opt_ void **ppvResource);
  18083. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  18084. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  18085. ID3D12Device10 * This,
  18086. _In_ ID3D12DeviceChild *pObject,
  18087. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  18088. DWORD Access,
  18089. _In_opt_ LPCWSTR Name,
  18090. _Out_ HANDLE *pHandle);
  18091. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  18092. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  18093. ID3D12Device10 * This,
  18094. _In_ HANDLE NTHandle,
  18095. REFIID riid,
  18096. _COM_Outptr_opt_ void **ppvObj);
  18097. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  18098. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  18099. ID3D12Device10 * This,
  18100. _In_ LPCWSTR Name,
  18101. DWORD Access,
  18102. /* [annotation][out] */
  18103. _Out_ HANDLE *pNTHandle);
  18104. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  18105. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  18106. ID3D12Device10 * This,
  18107. UINT NumObjects,
  18108. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  18109. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  18110. HRESULT ( STDMETHODCALLTYPE *Evict )(
  18111. ID3D12Device10 * This,
  18112. UINT NumObjects,
  18113. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  18114. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  18115. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  18116. ID3D12Device10 * This,
  18117. UINT64 InitialValue,
  18118. D3D12_FENCE_FLAGS Flags,
  18119. REFIID riid,
  18120. _COM_Outptr_ void **ppFence);
  18121. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  18122. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  18123. ID3D12Device10 * This);
  18124. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  18125. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  18126. ID3D12Device10 * This,
  18127. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  18128. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  18129. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  18130. UINT64 BaseOffset,
  18131. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  18132. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  18133. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  18134. _Out_opt_ UINT64 *pTotalBytes);
  18135. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  18136. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  18137. ID3D12Device10 * This,
  18138. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  18139. REFIID riid,
  18140. _COM_Outptr_opt_ void **ppvHeap);
  18141. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  18142. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  18143. ID3D12Device10 * This,
  18144. BOOL Enable);
  18145. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  18146. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  18147. ID3D12Device10 * This,
  18148. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  18149. _In_opt_ ID3D12RootSignature *pRootSignature,
  18150. REFIID riid,
  18151. _COM_Outptr_opt_ void **ppvCommandSignature);
  18152. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  18153. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  18154. ID3D12Device10 * This,
  18155. _In_ ID3D12Resource *pTiledResource,
  18156. _Out_opt_ UINT *pNumTilesForEntireResource,
  18157. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  18158. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  18159. _Inout_opt_ UINT *pNumSubresourceTilings,
  18160. _In_ UINT FirstSubresourceTilingToGet,
  18161. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  18162. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  18163. #if !defined(_WIN32)
  18164. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  18165. ID3D12Device10 * This);
  18166. #else
  18167. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  18168. ID3D12Device10 * This,
  18169. LUID * RetVal);
  18170. #endif
  18171. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  18172. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  18173. ID3D12Device10 * This,
  18174. _In_reads_(BlobLength) const void *pLibraryBlob,
  18175. SIZE_T BlobLength,
  18176. REFIID riid,
  18177. _COM_Outptr_ void **ppPipelineLibrary);
  18178. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  18179. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  18180. ID3D12Device10 * This,
  18181. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  18182. _In_reads_(NumFences) const UINT64 *pFenceValues,
  18183. UINT NumFences,
  18184. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  18185. HANDLE hEvent);
  18186. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  18187. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  18188. ID3D12Device10 * This,
  18189. UINT NumObjects,
  18190. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  18191. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  18192. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  18193. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  18194. ID3D12Device10 * This,
  18195. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  18196. REFIID riid,
  18197. _COM_Outptr_ void **ppPipelineState);
  18198. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  18199. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  18200. ID3D12Device10 * This,
  18201. _In_ const void *pAddress,
  18202. REFIID riid,
  18203. _COM_Outptr_ void **ppvHeap);
  18204. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  18205. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  18206. ID3D12Device10 * This,
  18207. _In_ HANDLE hFileMapping,
  18208. REFIID riid,
  18209. _COM_Outptr_ void **ppvHeap);
  18210. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  18211. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  18212. ID3D12Device10 * This,
  18213. D3D12_RESIDENCY_FLAGS Flags,
  18214. UINT NumObjects,
  18215. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  18216. _In_ ID3D12Fence *pFenceToSignal,
  18217. UINT64 FenceValueToSignal);
  18218. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  18219. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  18220. ID3D12Device10 * This,
  18221. _In_ UINT nodeMask,
  18222. _In_ D3D12_COMMAND_LIST_TYPE type,
  18223. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  18224. REFIID riid,
  18225. _COM_Outptr_ void **ppCommandList);
  18226. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  18227. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  18228. ID3D12Device10 * This,
  18229. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  18230. _In_ REFIID riid,
  18231. _COM_Outptr_ void **ppSession);
  18232. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  18233. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  18234. ID3D12Device10 * This,
  18235. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18236. D3D12_HEAP_FLAGS HeapFlags,
  18237. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18238. D3D12_RESOURCE_STATES InitialResourceState,
  18239. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18240. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18241. REFIID riidResource,
  18242. _COM_Outptr_opt_ void **ppvResource);
  18243. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  18244. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  18245. ID3D12Device10 * This,
  18246. _In_ const D3D12_HEAP_DESC *pDesc,
  18247. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18248. REFIID riid,
  18249. _COM_Outptr_opt_ void **ppvHeap);
  18250. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  18251. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  18252. ID3D12Device10 * This,
  18253. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18254. D3D12_RESOURCE_STATES InitialState,
  18255. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18256. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18257. REFIID riid,
  18258. _COM_Outptr_opt_ void **ppvResource);
  18259. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  18260. #if !defined(_WIN32)
  18261. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  18262. ID3D12Device10 * This,
  18263. UINT visibleMask,
  18264. UINT numResourceDescs,
  18265. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  18266. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18267. #else
  18268. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  18269. ID3D12Device10 * This,
  18270. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18271. UINT visibleMask,
  18272. UINT numResourceDescs,
  18273. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  18274. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18275. #endif
  18276. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  18277. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  18278. ID3D12Device10 * This,
  18279. _In_ ID3D12LifetimeOwner *pOwner,
  18280. REFIID riid,
  18281. _COM_Outptr_ void **ppvTracker);
  18282. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  18283. void ( STDMETHODCALLTYPE *RemoveDevice )(
  18284. ID3D12Device10 * This);
  18285. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  18286. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  18287. ID3D12Device10 * This,
  18288. _Inout_ UINT *pNumMetaCommands,
  18289. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  18290. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  18291. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  18292. ID3D12Device10 * This,
  18293. _In_ REFGUID CommandId,
  18294. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  18295. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  18296. _Inout_ UINT *pParameterCount,
  18297. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  18298. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  18299. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  18300. ID3D12Device10 * This,
  18301. _In_ REFGUID CommandId,
  18302. _In_ UINT NodeMask,
  18303. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  18304. _In_ SIZE_T CreationParametersDataSizeInBytes,
  18305. REFIID riid,
  18306. _COM_Outptr_ void **ppMetaCommand);
  18307. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  18308. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  18309. ID3D12Device10 * This,
  18310. const D3D12_STATE_OBJECT_DESC *pDesc,
  18311. REFIID riid,
  18312. _COM_Outptr_ void **ppStateObject);
  18313. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  18314. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  18315. ID3D12Device10 * This,
  18316. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  18317. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  18318. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  18319. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  18320. ID3D12Device10 * This,
  18321. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  18322. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  18323. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  18324. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  18325. ID3D12Device10 * This,
  18326. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  18327. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  18328. _In_opt_ HANDLE hEventToSignalUponCompletion,
  18329. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  18330. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  18331. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  18332. ID3D12Device10 * This,
  18333. const D3D12_STATE_OBJECT_DESC *pAddition,
  18334. ID3D12StateObject *pStateObjectToGrowFrom,
  18335. REFIID riid,
  18336. _COM_Outptr_ void **ppNewStateObject);
  18337. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  18338. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  18339. ID3D12Device10 * This,
  18340. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  18341. _In_ REFIID riid,
  18342. _COM_Outptr_ void **ppSession);
  18343. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  18344. #if !defined(_WIN32)
  18345. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  18346. ID3D12Device10 * This,
  18347. UINT visibleMask,
  18348. UINT numResourceDescs,
  18349. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  18350. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18351. #else
  18352. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  18353. ID3D12Device10 * This,
  18354. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18355. UINT visibleMask,
  18356. UINT numResourceDescs,
  18357. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  18358. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18359. #endif
  18360. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  18361. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  18362. ID3D12Device10 * This,
  18363. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18364. D3D12_HEAP_FLAGS HeapFlags,
  18365. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18366. D3D12_RESOURCE_STATES InitialResourceState,
  18367. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18368. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18369. REFIID riidResource,
  18370. _COM_Outptr_opt_ void **ppvResource);
  18371. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  18372. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  18373. ID3D12Device10 * This,
  18374. _In_ ID3D12Heap *pHeap,
  18375. UINT64 HeapOffset,
  18376. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18377. D3D12_RESOURCE_STATES InitialState,
  18378. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18379. REFIID riid,
  18380. _COM_Outptr_opt_ void **ppvResource);
  18381. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  18382. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  18383. ID3D12Device10 * This,
  18384. _In_opt_ ID3D12Resource *pTargetedResource,
  18385. _In_opt_ ID3D12Resource *pFeedbackResource,
  18386. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18387. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  18388. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  18389. ID3D12Device10 * This,
  18390. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  18391. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  18392. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  18393. UINT64 BaseOffset,
  18394. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  18395. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  18396. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  18397. _Out_opt_ UINT64 *pTotalBytes);
  18398. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  18399. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  18400. ID3D12Device10 * This,
  18401. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  18402. REFIID riid,
  18403. _COM_Outptr_opt_ void **ppvSession);
  18404. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  18405. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  18406. ID3D12Device10 * This,
  18407. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  18408. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  18409. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  18410. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  18411. ID3D12Device10 * This,
  18412. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  18413. REFIID CreatorID,
  18414. REFIID riid,
  18415. _COM_Outptr_ void **ppCommandQueue);
  18416. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  18417. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  18418. ID3D12Device10 * This,
  18419. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18420. D3D12_HEAP_FLAGS HeapFlags,
  18421. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18422. D3D12_BARRIER_LAYOUT InitialLayout,
  18423. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18424. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18425. UINT32 NumCastableFormats,
  18426. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  18427. REFIID riidResource,
  18428. _COM_Outptr_opt_ void **ppvResource);
  18429. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  18430. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  18431. ID3D12Device10 * This,
  18432. _In_ ID3D12Heap *pHeap,
  18433. UINT64 HeapOffset,
  18434. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18435. D3D12_BARRIER_LAYOUT InitialLayout,
  18436. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18437. UINT32 NumCastableFormats,
  18438. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  18439. REFIID riid,
  18440. _COM_Outptr_opt_ void **ppvResource);
  18441. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  18442. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  18443. ID3D12Device10 * This,
  18444. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18445. D3D12_BARRIER_LAYOUT InitialLayout,
  18446. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18447. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18448. UINT32 NumCastableFormats,
  18449. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  18450. REFIID riid,
  18451. _COM_Outptr_opt_ void **ppvResource);
  18452. END_INTERFACE
  18453. } ID3D12Device10Vtbl;
  18454. interface ID3D12Device10
  18455. {
  18456. CONST_VTBL struct ID3D12Device10Vtbl *lpVtbl;
  18457. };
  18458. #ifdef COBJMACROS
  18459. #define ID3D12Device10_QueryInterface(This,riid,ppvObject) \
  18460. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  18461. #define ID3D12Device10_AddRef(This) \
  18462. ( (This)->lpVtbl -> AddRef(This) )
  18463. #define ID3D12Device10_Release(This) \
  18464. ( (This)->lpVtbl -> Release(This) )
  18465. #define ID3D12Device10_GetPrivateData(This,guid,pDataSize,pData) \
  18466. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  18467. #define ID3D12Device10_SetPrivateData(This,guid,DataSize,pData) \
  18468. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  18469. #define ID3D12Device10_SetPrivateDataInterface(This,guid,pData) \
  18470. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  18471. #define ID3D12Device10_SetName(This,Name) \
  18472. ( (This)->lpVtbl -> SetName(This,Name) )
  18473. #define ID3D12Device10_GetNodeCount(This) \
  18474. ( (This)->lpVtbl -> GetNodeCount(This) )
  18475. #define ID3D12Device10_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  18476. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  18477. #define ID3D12Device10_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  18478. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  18479. #define ID3D12Device10_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  18480. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  18481. #define ID3D12Device10_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  18482. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  18483. #define ID3D12Device10_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  18484. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  18485. #define ID3D12Device10_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  18486. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  18487. #define ID3D12Device10_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  18488. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  18489. #define ID3D12Device10_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  18490. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  18491. #define ID3D12Device10_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  18492. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  18493. #define ID3D12Device10_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  18494. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  18495. #define ID3D12Device10_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  18496. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  18497. #define ID3D12Device10_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  18498. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  18499. #define ID3D12Device10_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  18500. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  18501. #define ID3D12Device10_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  18502. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  18503. #define ID3D12Device10_CreateSampler(This,pDesc,DestDescriptor) \
  18504. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  18505. #define ID3D12Device10_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  18506. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  18507. #define ID3D12Device10_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  18508. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  18509. #if !defined(_WIN32)
  18510. #define ID3D12Device10_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  18511. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  18512. #else
  18513. #define ID3D12Device10_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  18514. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  18515. #endif
  18516. #if !defined(_WIN32)
  18517. #define ID3D12Device10_GetCustomHeapProperties(This,nodeMask,heapType) \
  18518. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  18519. #else
  18520. #define ID3D12Device10_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  18521. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  18522. #endif
  18523. #define ID3D12Device10_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  18524. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  18525. #define ID3D12Device10_CreateHeap(This,pDesc,riid,ppvHeap) \
  18526. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  18527. #define ID3D12Device10_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  18528. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  18529. #define ID3D12Device10_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  18530. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  18531. #define ID3D12Device10_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  18532. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  18533. #define ID3D12Device10_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  18534. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  18535. #define ID3D12Device10_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  18536. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  18537. #define ID3D12Device10_MakeResident(This,NumObjects,ppObjects) \
  18538. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  18539. #define ID3D12Device10_Evict(This,NumObjects,ppObjects) \
  18540. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  18541. #define ID3D12Device10_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  18542. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  18543. #define ID3D12Device10_GetDeviceRemovedReason(This) \
  18544. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  18545. #define ID3D12Device10_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  18546. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  18547. #define ID3D12Device10_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  18548. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  18549. #define ID3D12Device10_SetStablePowerState(This,Enable) \
  18550. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  18551. #define ID3D12Device10_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  18552. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  18553. #define ID3D12Device10_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  18554. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  18555. #if !defined(_WIN32)
  18556. #define ID3D12Device10_GetAdapterLuid(This) \
  18557. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  18558. #else
  18559. #define ID3D12Device10_GetAdapterLuid(This,RetVal) \
  18560. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  18561. #endif
  18562. #define ID3D12Device10_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  18563. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  18564. #define ID3D12Device10_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  18565. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  18566. #define ID3D12Device10_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  18567. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  18568. #define ID3D12Device10_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  18569. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  18570. #define ID3D12Device10_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  18571. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  18572. #define ID3D12Device10_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  18573. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  18574. #define ID3D12Device10_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  18575. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  18576. #define ID3D12Device10_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  18577. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  18578. #define ID3D12Device10_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  18579. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  18580. #define ID3D12Device10_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  18581. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  18582. #define ID3D12Device10_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  18583. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  18584. #define ID3D12Device10_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  18585. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  18586. #if !defined(_WIN32)
  18587. #define ID3D12Device10_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18588. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18589. #else
  18590. #define ID3D12Device10_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18591. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18592. #endif
  18593. #define ID3D12Device10_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  18594. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  18595. #define ID3D12Device10_RemoveDevice(This) \
  18596. ( (This)->lpVtbl -> RemoveDevice(This) )
  18597. #define ID3D12Device10_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  18598. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  18599. #define ID3D12Device10_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  18600. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  18601. #define ID3D12Device10_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  18602. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  18603. #define ID3D12Device10_CreateStateObject(This,pDesc,riid,ppStateObject) \
  18604. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  18605. #define ID3D12Device10_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  18606. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  18607. #define ID3D12Device10_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  18608. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  18609. #define ID3D12Device10_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  18610. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  18611. #define ID3D12Device10_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  18612. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  18613. #define ID3D12Device10_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  18614. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  18615. #if !defined(_WIN32)
  18616. #define ID3D12Device10_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18617. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18618. #else
  18619. #define ID3D12Device10_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18620. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18621. #endif
  18622. #define ID3D12Device10_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  18623. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  18624. #define ID3D12Device10_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  18625. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  18626. #define ID3D12Device10_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  18627. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  18628. #define ID3D12Device10_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  18629. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  18630. #define ID3D12Device10_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  18631. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  18632. #define ID3D12Device10_ShaderCacheControl(This,Kinds,Control) \
  18633. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  18634. #define ID3D12Device10_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  18635. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  18636. #define ID3D12Device10_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  18637. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  18638. #define ID3D12Device10_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  18639. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  18640. #define ID3D12Device10_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  18641. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  18642. #endif /* COBJMACROS */
  18643. #endif /* C style interface */
  18644. #endif /* __ID3D12Device10_INTERFACE_DEFINED__ */
  18645. #ifndef __ID3D12Device11_INTERFACE_DEFINED__
  18646. #define __ID3D12Device11_INTERFACE_DEFINED__
  18647. /* interface ID3D12Device11 */
  18648. /* [unique][local][object][uuid] */
  18649. EXTERN_C const IID IID_ID3D12Device11;
  18650. #if defined(__cplusplus) && !defined(CINTERFACE)
  18651. MIDL_INTERFACE("5405c344-d457-444e-b4dd-2366e45aee39")
  18652. ID3D12Device11 : public ID3D12Device10
  18653. {
  18654. public:
  18655. virtual void STDMETHODCALLTYPE CreateSampler2(
  18656. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  18657. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  18658. };
  18659. #else /* C style interface */
  18660. typedef struct ID3D12Device11Vtbl
  18661. {
  18662. BEGIN_INTERFACE
  18663. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  18664. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  18665. ID3D12Device11 * This,
  18666. REFIID riid,
  18667. _COM_Outptr_ void **ppvObject);
  18668. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  18669. ULONG ( STDMETHODCALLTYPE *AddRef )(
  18670. ID3D12Device11 * This);
  18671. DECLSPEC_XFGVIRT(IUnknown, Release)
  18672. ULONG ( STDMETHODCALLTYPE *Release )(
  18673. ID3D12Device11 * This);
  18674. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  18675. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  18676. ID3D12Device11 * This,
  18677. _In_ REFGUID guid,
  18678. _Inout_ UINT *pDataSize,
  18679. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  18680. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  18681. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  18682. ID3D12Device11 * This,
  18683. _In_ REFGUID guid,
  18684. _In_ UINT DataSize,
  18685. _In_reads_bytes_opt_( DataSize ) const void *pData);
  18686. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  18687. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  18688. ID3D12Device11 * This,
  18689. _In_ REFGUID guid,
  18690. _In_opt_ const IUnknown *pData);
  18691. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  18692. HRESULT ( STDMETHODCALLTYPE *SetName )(
  18693. ID3D12Device11 * This,
  18694. _In_z_ LPCWSTR Name);
  18695. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  18696. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  18697. ID3D12Device11 * This);
  18698. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  18699. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  18700. ID3D12Device11 * This,
  18701. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  18702. REFIID riid,
  18703. _COM_Outptr_ void **ppCommandQueue);
  18704. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  18705. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  18706. ID3D12Device11 * This,
  18707. _In_ D3D12_COMMAND_LIST_TYPE type,
  18708. REFIID riid,
  18709. _COM_Outptr_ void **ppCommandAllocator);
  18710. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  18711. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  18712. ID3D12Device11 * This,
  18713. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  18714. REFIID riid,
  18715. _COM_Outptr_ void **ppPipelineState);
  18716. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  18717. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  18718. ID3D12Device11 * This,
  18719. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  18720. REFIID riid,
  18721. _COM_Outptr_ void **ppPipelineState);
  18722. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  18723. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  18724. ID3D12Device11 * This,
  18725. _In_ UINT nodeMask,
  18726. _In_ D3D12_COMMAND_LIST_TYPE type,
  18727. _In_ ID3D12CommandAllocator *pCommandAllocator,
  18728. _In_opt_ ID3D12PipelineState *pInitialState,
  18729. REFIID riid,
  18730. _COM_Outptr_ void **ppCommandList);
  18731. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  18732. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  18733. ID3D12Device11 * This,
  18734. D3D12_FEATURE Feature,
  18735. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  18736. UINT FeatureSupportDataSize);
  18737. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  18738. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  18739. ID3D12Device11 * This,
  18740. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  18741. REFIID riid,
  18742. _COM_Outptr_ void **ppvHeap);
  18743. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  18744. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  18745. ID3D12Device11 * This,
  18746. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  18747. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  18748. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  18749. ID3D12Device11 * This,
  18750. _In_ UINT nodeMask,
  18751. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  18752. _In_ SIZE_T blobLengthInBytes,
  18753. REFIID riid,
  18754. _COM_Outptr_ void **ppvRootSignature);
  18755. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  18756. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  18757. ID3D12Device11 * This,
  18758. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  18759. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18760. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  18761. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  18762. ID3D12Device11 * This,
  18763. _In_opt_ ID3D12Resource *pResource,
  18764. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  18765. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18766. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  18767. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  18768. ID3D12Device11 * This,
  18769. _In_opt_ ID3D12Resource *pResource,
  18770. _In_opt_ ID3D12Resource *pCounterResource,
  18771. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  18772. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18773. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  18774. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  18775. ID3D12Device11 * This,
  18776. _In_opt_ ID3D12Resource *pResource,
  18777. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  18778. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18779. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  18780. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  18781. ID3D12Device11 * This,
  18782. _In_opt_ ID3D12Resource *pResource,
  18783. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  18784. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18785. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  18786. void ( STDMETHODCALLTYPE *CreateSampler )(
  18787. ID3D12Device11 * This,
  18788. _In_ const D3D12_SAMPLER_DESC *pDesc,
  18789. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18790. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  18791. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  18792. ID3D12Device11 * This,
  18793. _In_ UINT NumDestDescriptorRanges,
  18794. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  18795. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  18796. _In_ UINT NumSrcDescriptorRanges,
  18797. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  18798. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  18799. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  18800. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  18801. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  18802. ID3D12Device11 * This,
  18803. _In_ UINT NumDescriptors,
  18804. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  18805. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  18806. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  18807. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  18808. #if !defined(_WIN32)
  18809. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  18810. ID3D12Device11 * This,
  18811. _In_ UINT visibleMask,
  18812. _In_ UINT numResourceDescs,
  18813. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  18814. #else
  18815. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  18816. ID3D12Device11 * This,
  18817. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18818. _In_ UINT visibleMask,
  18819. _In_ UINT numResourceDescs,
  18820. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  18821. #endif
  18822. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  18823. #if !defined(_WIN32)
  18824. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  18825. ID3D12Device11 * This,
  18826. _In_ UINT nodeMask,
  18827. D3D12_HEAP_TYPE heapType);
  18828. #else
  18829. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  18830. ID3D12Device11 * This,
  18831. D3D12_HEAP_PROPERTIES * RetVal,
  18832. _In_ UINT nodeMask,
  18833. D3D12_HEAP_TYPE heapType);
  18834. #endif
  18835. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  18836. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  18837. ID3D12Device11 * This,
  18838. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18839. D3D12_HEAP_FLAGS HeapFlags,
  18840. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18841. D3D12_RESOURCE_STATES InitialResourceState,
  18842. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18843. REFIID riidResource,
  18844. _COM_Outptr_opt_ void **ppvResource);
  18845. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  18846. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  18847. ID3D12Device11 * This,
  18848. _In_ const D3D12_HEAP_DESC *pDesc,
  18849. REFIID riid,
  18850. _COM_Outptr_opt_ void **ppvHeap);
  18851. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  18852. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  18853. ID3D12Device11 * This,
  18854. _In_ ID3D12Heap *pHeap,
  18855. UINT64 HeapOffset,
  18856. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18857. D3D12_RESOURCE_STATES InitialState,
  18858. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18859. REFIID riid,
  18860. _COM_Outptr_opt_ void **ppvResource);
  18861. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  18862. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  18863. ID3D12Device11 * This,
  18864. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18865. D3D12_RESOURCE_STATES InitialState,
  18866. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18867. REFIID riid,
  18868. _COM_Outptr_opt_ void **ppvResource);
  18869. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  18870. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  18871. ID3D12Device11 * This,
  18872. _In_ ID3D12DeviceChild *pObject,
  18873. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  18874. DWORD Access,
  18875. _In_opt_ LPCWSTR Name,
  18876. _Out_ HANDLE *pHandle);
  18877. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  18878. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  18879. ID3D12Device11 * This,
  18880. _In_ HANDLE NTHandle,
  18881. REFIID riid,
  18882. _COM_Outptr_opt_ void **ppvObj);
  18883. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  18884. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  18885. ID3D12Device11 * This,
  18886. _In_ LPCWSTR Name,
  18887. DWORD Access,
  18888. /* [annotation][out] */
  18889. _Out_ HANDLE *pNTHandle);
  18890. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  18891. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  18892. ID3D12Device11 * This,
  18893. UINT NumObjects,
  18894. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  18895. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  18896. HRESULT ( STDMETHODCALLTYPE *Evict )(
  18897. ID3D12Device11 * This,
  18898. UINT NumObjects,
  18899. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  18900. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  18901. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  18902. ID3D12Device11 * This,
  18903. UINT64 InitialValue,
  18904. D3D12_FENCE_FLAGS Flags,
  18905. REFIID riid,
  18906. _COM_Outptr_ void **ppFence);
  18907. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  18908. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  18909. ID3D12Device11 * This);
  18910. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  18911. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  18912. ID3D12Device11 * This,
  18913. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  18914. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  18915. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  18916. UINT64 BaseOffset,
  18917. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  18918. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  18919. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  18920. _Out_opt_ UINT64 *pTotalBytes);
  18921. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  18922. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  18923. ID3D12Device11 * This,
  18924. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  18925. REFIID riid,
  18926. _COM_Outptr_opt_ void **ppvHeap);
  18927. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  18928. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  18929. ID3D12Device11 * This,
  18930. BOOL Enable);
  18931. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  18932. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  18933. ID3D12Device11 * This,
  18934. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  18935. _In_opt_ ID3D12RootSignature *pRootSignature,
  18936. REFIID riid,
  18937. _COM_Outptr_opt_ void **ppvCommandSignature);
  18938. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  18939. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  18940. ID3D12Device11 * This,
  18941. _In_ ID3D12Resource *pTiledResource,
  18942. _Out_opt_ UINT *pNumTilesForEntireResource,
  18943. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  18944. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  18945. _Inout_opt_ UINT *pNumSubresourceTilings,
  18946. _In_ UINT FirstSubresourceTilingToGet,
  18947. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  18948. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  18949. #if !defined(_WIN32)
  18950. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  18951. ID3D12Device11 * This);
  18952. #else
  18953. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  18954. ID3D12Device11 * This,
  18955. LUID * RetVal);
  18956. #endif
  18957. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  18958. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  18959. ID3D12Device11 * This,
  18960. _In_reads_(BlobLength) const void *pLibraryBlob,
  18961. SIZE_T BlobLength,
  18962. REFIID riid,
  18963. _COM_Outptr_ void **ppPipelineLibrary);
  18964. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  18965. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  18966. ID3D12Device11 * This,
  18967. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  18968. _In_reads_(NumFences) const UINT64 *pFenceValues,
  18969. UINT NumFences,
  18970. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  18971. HANDLE hEvent);
  18972. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  18973. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  18974. ID3D12Device11 * This,
  18975. UINT NumObjects,
  18976. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  18977. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  18978. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  18979. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  18980. ID3D12Device11 * This,
  18981. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  18982. REFIID riid,
  18983. _COM_Outptr_ void **ppPipelineState);
  18984. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  18985. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  18986. ID3D12Device11 * This,
  18987. _In_ const void *pAddress,
  18988. REFIID riid,
  18989. _COM_Outptr_ void **ppvHeap);
  18990. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  18991. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  18992. ID3D12Device11 * This,
  18993. _In_ HANDLE hFileMapping,
  18994. REFIID riid,
  18995. _COM_Outptr_ void **ppvHeap);
  18996. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  18997. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  18998. ID3D12Device11 * This,
  18999. D3D12_RESIDENCY_FLAGS Flags,
  19000. UINT NumObjects,
  19001. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  19002. _In_ ID3D12Fence *pFenceToSignal,
  19003. UINT64 FenceValueToSignal);
  19004. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  19005. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  19006. ID3D12Device11 * This,
  19007. _In_ UINT nodeMask,
  19008. _In_ D3D12_COMMAND_LIST_TYPE type,
  19009. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  19010. REFIID riid,
  19011. _COM_Outptr_ void **ppCommandList);
  19012. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  19013. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  19014. ID3D12Device11 * This,
  19015. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  19016. _In_ REFIID riid,
  19017. _COM_Outptr_ void **ppSession);
  19018. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  19019. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  19020. ID3D12Device11 * This,
  19021. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19022. D3D12_HEAP_FLAGS HeapFlags,
  19023. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19024. D3D12_RESOURCE_STATES InitialResourceState,
  19025. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19026. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19027. REFIID riidResource,
  19028. _COM_Outptr_opt_ void **ppvResource);
  19029. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  19030. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  19031. ID3D12Device11 * This,
  19032. _In_ const D3D12_HEAP_DESC *pDesc,
  19033. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19034. REFIID riid,
  19035. _COM_Outptr_opt_ void **ppvHeap);
  19036. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  19037. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  19038. ID3D12Device11 * This,
  19039. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19040. D3D12_RESOURCE_STATES InitialState,
  19041. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19042. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19043. REFIID riid,
  19044. _COM_Outptr_opt_ void **ppvResource);
  19045. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  19046. #if !defined(_WIN32)
  19047. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  19048. ID3D12Device11 * This,
  19049. UINT visibleMask,
  19050. UINT numResourceDescs,
  19051. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  19052. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19053. #else
  19054. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  19055. ID3D12Device11 * This,
  19056. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19057. UINT visibleMask,
  19058. UINT numResourceDescs,
  19059. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  19060. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19061. #endif
  19062. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  19063. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  19064. ID3D12Device11 * This,
  19065. _In_ ID3D12LifetimeOwner *pOwner,
  19066. REFIID riid,
  19067. _COM_Outptr_ void **ppvTracker);
  19068. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  19069. void ( STDMETHODCALLTYPE *RemoveDevice )(
  19070. ID3D12Device11 * This);
  19071. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  19072. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  19073. ID3D12Device11 * This,
  19074. _Inout_ UINT *pNumMetaCommands,
  19075. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  19076. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  19077. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  19078. ID3D12Device11 * This,
  19079. _In_ REFGUID CommandId,
  19080. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  19081. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  19082. _Inout_ UINT *pParameterCount,
  19083. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  19084. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  19085. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  19086. ID3D12Device11 * This,
  19087. _In_ REFGUID CommandId,
  19088. _In_ UINT NodeMask,
  19089. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  19090. _In_ SIZE_T CreationParametersDataSizeInBytes,
  19091. REFIID riid,
  19092. _COM_Outptr_ void **ppMetaCommand);
  19093. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  19094. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  19095. ID3D12Device11 * This,
  19096. const D3D12_STATE_OBJECT_DESC *pDesc,
  19097. REFIID riid,
  19098. _COM_Outptr_ void **ppStateObject);
  19099. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  19100. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  19101. ID3D12Device11 * This,
  19102. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  19103. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  19104. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  19105. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  19106. ID3D12Device11 * This,
  19107. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  19108. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  19109. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  19110. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  19111. ID3D12Device11 * This,
  19112. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  19113. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  19114. _In_opt_ HANDLE hEventToSignalUponCompletion,
  19115. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  19116. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  19117. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  19118. ID3D12Device11 * This,
  19119. const D3D12_STATE_OBJECT_DESC *pAddition,
  19120. ID3D12StateObject *pStateObjectToGrowFrom,
  19121. REFIID riid,
  19122. _COM_Outptr_ void **ppNewStateObject);
  19123. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  19124. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  19125. ID3D12Device11 * This,
  19126. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  19127. _In_ REFIID riid,
  19128. _COM_Outptr_ void **ppSession);
  19129. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  19130. #if !defined(_WIN32)
  19131. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  19132. ID3D12Device11 * This,
  19133. UINT visibleMask,
  19134. UINT numResourceDescs,
  19135. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19136. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19137. #else
  19138. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  19139. ID3D12Device11 * This,
  19140. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19141. UINT visibleMask,
  19142. UINT numResourceDescs,
  19143. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19144. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19145. #endif
  19146. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  19147. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  19148. ID3D12Device11 * This,
  19149. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19150. D3D12_HEAP_FLAGS HeapFlags,
  19151. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19152. D3D12_RESOURCE_STATES InitialResourceState,
  19153. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19154. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19155. REFIID riidResource,
  19156. _COM_Outptr_opt_ void **ppvResource);
  19157. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  19158. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  19159. ID3D12Device11 * This,
  19160. _In_ ID3D12Heap *pHeap,
  19161. UINT64 HeapOffset,
  19162. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19163. D3D12_RESOURCE_STATES InitialState,
  19164. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19165. REFIID riid,
  19166. _COM_Outptr_opt_ void **ppvResource);
  19167. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  19168. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  19169. ID3D12Device11 * This,
  19170. _In_opt_ ID3D12Resource *pTargetedResource,
  19171. _In_opt_ ID3D12Resource *pFeedbackResource,
  19172. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19173. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  19174. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  19175. ID3D12Device11 * This,
  19176. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  19177. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  19178. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  19179. UINT64 BaseOffset,
  19180. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  19181. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  19182. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  19183. _Out_opt_ UINT64 *pTotalBytes);
  19184. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  19185. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  19186. ID3D12Device11 * This,
  19187. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  19188. REFIID riid,
  19189. _COM_Outptr_opt_ void **ppvSession);
  19190. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  19191. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  19192. ID3D12Device11 * This,
  19193. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  19194. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  19195. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  19196. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  19197. ID3D12Device11 * This,
  19198. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  19199. REFIID CreatorID,
  19200. REFIID riid,
  19201. _COM_Outptr_ void **ppCommandQueue);
  19202. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  19203. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  19204. ID3D12Device11 * This,
  19205. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19206. D3D12_HEAP_FLAGS HeapFlags,
  19207. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19208. D3D12_BARRIER_LAYOUT InitialLayout,
  19209. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19210. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19211. UINT32 NumCastableFormats,
  19212. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19213. REFIID riidResource,
  19214. _COM_Outptr_opt_ void **ppvResource);
  19215. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  19216. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  19217. ID3D12Device11 * This,
  19218. _In_ ID3D12Heap *pHeap,
  19219. UINT64 HeapOffset,
  19220. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19221. D3D12_BARRIER_LAYOUT InitialLayout,
  19222. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19223. UINT32 NumCastableFormats,
  19224. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19225. REFIID riid,
  19226. _COM_Outptr_opt_ void **ppvResource);
  19227. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  19228. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  19229. ID3D12Device11 * This,
  19230. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19231. D3D12_BARRIER_LAYOUT InitialLayout,
  19232. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19233. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19234. UINT32 NumCastableFormats,
  19235. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19236. REFIID riid,
  19237. _COM_Outptr_opt_ void **ppvResource);
  19238. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  19239. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  19240. ID3D12Device11 * This,
  19241. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  19242. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19243. END_INTERFACE
  19244. } ID3D12Device11Vtbl;
  19245. interface ID3D12Device11
  19246. {
  19247. CONST_VTBL struct ID3D12Device11Vtbl *lpVtbl;
  19248. };
  19249. #ifdef COBJMACROS
  19250. #define ID3D12Device11_QueryInterface(This,riid,ppvObject) \
  19251. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  19252. #define ID3D12Device11_AddRef(This) \
  19253. ( (This)->lpVtbl -> AddRef(This) )
  19254. #define ID3D12Device11_Release(This) \
  19255. ( (This)->lpVtbl -> Release(This) )
  19256. #define ID3D12Device11_GetPrivateData(This,guid,pDataSize,pData) \
  19257. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  19258. #define ID3D12Device11_SetPrivateData(This,guid,DataSize,pData) \
  19259. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  19260. #define ID3D12Device11_SetPrivateDataInterface(This,guid,pData) \
  19261. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  19262. #define ID3D12Device11_SetName(This,Name) \
  19263. ( (This)->lpVtbl -> SetName(This,Name) )
  19264. #define ID3D12Device11_GetNodeCount(This) \
  19265. ( (This)->lpVtbl -> GetNodeCount(This) )
  19266. #define ID3D12Device11_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  19267. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  19268. #define ID3D12Device11_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  19269. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  19270. #define ID3D12Device11_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  19271. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  19272. #define ID3D12Device11_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  19273. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  19274. #define ID3D12Device11_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  19275. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  19276. #define ID3D12Device11_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  19277. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  19278. #define ID3D12Device11_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  19279. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  19280. #define ID3D12Device11_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  19281. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  19282. #define ID3D12Device11_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  19283. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  19284. #define ID3D12Device11_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  19285. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  19286. #define ID3D12Device11_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  19287. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  19288. #define ID3D12Device11_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  19289. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  19290. #define ID3D12Device11_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  19291. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  19292. #define ID3D12Device11_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  19293. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  19294. #define ID3D12Device11_CreateSampler(This,pDesc,DestDescriptor) \
  19295. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  19296. #define ID3D12Device11_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  19297. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  19298. #define ID3D12Device11_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  19299. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  19300. #if !defined(_WIN32)
  19301. #define ID3D12Device11_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  19302. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  19303. #else
  19304. #define ID3D12Device11_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  19305. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  19306. #endif
  19307. #if !defined(_WIN32)
  19308. #define ID3D12Device11_GetCustomHeapProperties(This,nodeMask,heapType) \
  19309. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  19310. #else
  19311. #define ID3D12Device11_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  19312. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  19313. #endif
  19314. #define ID3D12Device11_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  19315. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  19316. #define ID3D12Device11_CreateHeap(This,pDesc,riid,ppvHeap) \
  19317. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  19318. #define ID3D12Device11_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19319. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19320. #define ID3D12Device11_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19321. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19322. #define ID3D12Device11_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  19323. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  19324. #define ID3D12Device11_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  19325. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  19326. #define ID3D12Device11_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  19327. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  19328. #define ID3D12Device11_MakeResident(This,NumObjects,ppObjects) \
  19329. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  19330. #define ID3D12Device11_Evict(This,NumObjects,ppObjects) \
  19331. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  19332. #define ID3D12Device11_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  19333. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  19334. #define ID3D12Device11_GetDeviceRemovedReason(This) \
  19335. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  19336. #define ID3D12Device11_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  19337. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  19338. #define ID3D12Device11_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  19339. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  19340. #define ID3D12Device11_SetStablePowerState(This,Enable) \
  19341. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  19342. #define ID3D12Device11_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  19343. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  19344. #define ID3D12Device11_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  19345. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  19346. #if !defined(_WIN32)
  19347. #define ID3D12Device11_GetAdapterLuid(This) \
  19348. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  19349. #else
  19350. #define ID3D12Device11_GetAdapterLuid(This,RetVal) \
  19351. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  19352. #endif
  19353. #define ID3D12Device11_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  19354. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  19355. #define ID3D12Device11_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  19356. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  19357. #define ID3D12Device11_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  19358. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  19359. #define ID3D12Device11_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  19360. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  19361. #define ID3D12Device11_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  19362. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  19363. #define ID3D12Device11_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  19364. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  19365. #define ID3D12Device11_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  19366. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  19367. #define ID3D12Device11_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  19368. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  19369. #define ID3D12Device11_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  19370. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  19371. #define ID3D12Device11_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  19372. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  19373. #define ID3D12Device11_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  19374. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  19375. #define ID3D12Device11_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  19376. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  19377. #if !defined(_WIN32)
  19378. #define ID3D12Device11_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19379. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19380. #else
  19381. #define ID3D12Device11_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19382. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19383. #endif
  19384. #define ID3D12Device11_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  19385. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  19386. #define ID3D12Device11_RemoveDevice(This) \
  19387. ( (This)->lpVtbl -> RemoveDevice(This) )
  19388. #define ID3D12Device11_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  19389. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  19390. #define ID3D12Device11_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  19391. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  19392. #define ID3D12Device11_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  19393. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  19394. #define ID3D12Device11_CreateStateObject(This,pDesc,riid,ppStateObject) \
  19395. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  19396. #define ID3D12Device11_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  19397. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  19398. #define ID3D12Device11_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  19399. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  19400. #define ID3D12Device11_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  19401. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  19402. #define ID3D12Device11_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  19403. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  19404. #define ID3D12Device11_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  19405. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  19406. #if !defined(_WIN32)
  19407. #define ID3D12Device11_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19408. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19409. #else
  19410. #define ID3D12Device11_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19411. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19412. #endif
  19413. #define ID3D12Device11_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  19414. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  19415. #define ID3D12Device11_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19416. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19417. #define ID3D12Device11_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  19418. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  19419. #define ID3D12Device11_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  19420. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  19421. #define ID3D12Device11_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  19422. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  19423. #define ID3D12Device11_ShaderCacheControl(This,Kinds,Control) \
  19424. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  19425. #define ID3D12Device11_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  19426. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  19427. #define ID3D12Device11_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  19428. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  19429. #define ID3D12Device11_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  19430. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  19431. #define ID3D12Device11_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  19432. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  19433. #define ID3D12Device11_CreateSampler2(This,pDesc,DestDescriptor) \
  19434. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  19435. #endif /* COBJMACROS */
  19436. #endif /* C style interface */
  19437. #endif /* __ID3D12Device11_INTERFACE_DEFINED__ */
  19438. #ifndef __ID3D12Device12_INTERFACE_DEFINED__
  19439. #define __ID3D12Device12_INTERFACE_DEFINED__
  19440. /* interface ID3D12Device12 */
  19441. /* [unique][local][object][uuid] */
  19442. EXTERN_C const IID IID_ID3D12Device12;
  19443. #if defined(__cplusplus) && !defined(CINTERFACE)
  19444. MIDL_INTERFACE("5af5c532-4c91-4cd0-b541-15a405395fc5")
  19445. ID3D12Device12 : public ID3D12Device11
  19446. {
  19447. public:
  19448. #if defined(_MSC_VER) || !defined(_WIN32)
  19449. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo3(
  19450. UINT visibleMask,
  19451. UINT numResourceDescs,
  19452. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19453. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  19454. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  19455. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  19456. #else
  19457. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo3(
  19458. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19459. UINT visibleMask,
  19460. UINT numResourceDescs,
  19461. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19462. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  19463. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  19464. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  19465. #endif
  19466. };
  19467. #else /* C style interface */
  19468. typedef struct ID3D12Device12Vtbl
  19469. {
  19470. BEGIN_INTERFACE
  19471. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  19472. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  19473. ID3D12Device12 * This,
  19474. REFIID riid,
  19475. _COM_Outptr_ void **ppvObject);
  19476. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  19477. ULONG ( STDMETHODCALLTYPE *AddRef )(
  19478. ID3D12Device12 * This);
  19479. DECLSPEC_XFGVIRT(IUnknown, Release)
  19480. ULONG ( STDMETHODCALLTYPE *Release )(
  19481. ID3D12Device12 * This);
  19482. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  19483. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  19484. ID3D12Device12 * This,
  19485. _In_ REFGUID guid,
  19486. _Inout_ UINT *pDataSize,
  19487. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  19488. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  19489. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  19490. ID3D12Device12 * This,
  19491. _In_ REFGUID guid,
  19492. _In_ UINT DataSize,
  19493. _In_reads_bytes_opt_( DataSize ) const void *pData);
  19494. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  19495. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  19496. ID3D12Device12 * This,
  19497. _In_ REFGUID guid,
  19498. _In_opt_ const IUnknown *pData);
  19499. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  19500. HRESULT ( STDMETHODCALLTYPE *SetName )(
  19501. ID3D12Device12 * This,
  19502. _In_z_ LPCWSTR Name);
  19503. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  19504. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  19505. ID3D12Device12 * This);
  19506. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  19507. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  19508. ID3D12Device12 * This,
  19509. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  19510. REFIID riid,
  19511. _COM_Outptr_ void **ppCommandQueue);
  19512. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  19513. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  19514. ID3D12Device12 * This,
  19515. _In_ D3D12_COMMAND_LIST_TYPE type,
  19516. REFIID riid,
  19517. _COM_Outptr_ void **ppCommandAllocator);
  19518. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  19519. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  19520. ID3D12Device12 * This,
  19521. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  19522. REFIID riid,
  19523. _COM_Outptr_ void **ppPipelineState);
  19524. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  19525. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  19526. ID3D12Device12 * This,
  19527. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  19528. REFIID riid,
  19529. _COM_Outptr_ void **ppPipelineState);
  19530. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  19531. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  19532. ID3D12Device12 * This,
  19533. _In_ UINT nodeMask,
  19534. _In_ D3D12_COMMAND_LIST_TYPE type,
  19535. _In_ ID3D12CommandAllocator *pCommandAllocator,
  19536. _In_opt_ ID3D12PipelineState *pInitialState,
  19537. REFIID riid,
  19538. _COM_Outptr_ void **ppCommandList);
  19539. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  19540. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  19541. ID3D12Device12 * This,
  19542. D3D12_FEATURE Feature,
  19543. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  19544. UINT FeatureSupportDataSize);
  19545. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  19546. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  19547. ID3D12Device12 * This,
  19548. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  19549. REFIID riid,
  19550. _COM_Outptr_ void **ppvHeap);
  19551. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  19552. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  19553. ID3D12Device12 * This,
  19554. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  19555. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  19556. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  19557. ID3D12Device12 * This,
  19558. _In_ UINT nodeMask,
  19559. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  19560. _In_ SIZE_T blobLengthInBytes,
  19561. REFIID riid,
  19562. _COM_Outptr_ void **ppvRootSignature);
  19563. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  19564. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  19565. ID3D12Device12 * This,
  19566. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  19567. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19568. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  19569. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  19570. ID3D12Device12 * This,
  19571. _In_opt_ ID3D12Resource *pResource,
  19572. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  19573. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19574. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  19575. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  19576. ID3D12Device12 * This,
  19577. _In_opt_ ID3D12Resource *pResource,
  19578. _In_opt_ ID3D12Resource *pCounterResource,
  19579. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  19580. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19581. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  19582. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  19583. ID3D12Device12 * This,
  19584. _In_opt_ ID3D12Resource *pResource,
  19585. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  19586. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19587. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  19588. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  19589. ID3D12Device12 * This,
  19590. _In_opt_ ID3D12Resource *pResource,
  19591. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  19592. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19593. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  19594. void ( STDMETHODCALLTYPE *CreateSampler )(
  19595. ID3D12Device12 * This,
  19596. _In_ const D3D12_SAMPLER_DESC *pDesc,
  19597. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19598. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  19599. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  19600. ID3D12Device12 * This,
  19601. _In_ UINT NumDestDescriptorRanges,
  19602. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  19603. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  19604. _In_ UINT NumSrcDescriptorRanges,
  19605. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  19606. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  19607. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  19608. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  19609. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  19610. ID3D12Device12 * This,
  19611. _In_ UINT NumDescriptors,
  19612. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  19613. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  19614. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  19615. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  19616. #if !defined(_WIN32)
  19617. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  19618. ID3D12Device12 * This,
  19619. _In_ UINT visibleMask,
  19620. _In_ UINT numResourceDescs,
  19621. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  19622. #else
  19623. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  19624. ID3D12Device12 * This,
  19625. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19626. _In_ UINT visibleMask,
  19627. _In_ UINT numResourceDescs,
  19628. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  19629. #endif
  19630. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  19631. #if !defined(_WIN32)
  19632. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  19633. ID3D12Device12 * This,
  19634. _In_ UINT nodeMask,
  19635. D3D12_HEAP_TYPE heapType);
  19636. #else
  19637. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  19638. ID3D12Device12 * This,
  19639. D3D12_HEAP_PROPERTIES * RetVal,
  19640. _In_ UINT nodeMask,
  19641. D3D12_HEAP_TYPE heapType);
  19642. #endif
  19643. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  19644. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  19645. ID3D12Device12 * This,
  19646. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19647. D3D12_HEAP_FLAGS HeapFlags,
  19648. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19649. D3D12_RESOURCE_STATES InitialResourceState,
  19650. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19651. REFIID riidResource,
  19652. _COM_Outptr_opt_ void **ppvResource);
  19653. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  19654. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  19655. ID3D12Device12 * This,
  19656. _In_ const D3D12_HEAP_DESC *pDesc,
  19657. REFIID riid,
  19658. _COM_Outptr_opt_ void **ppvHeap);
  19659. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  19660. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  19661. ID3D12Device12 * This,
  19662. _In_ ID3D12Heap *pHeap,
  19663. UINT64 HeapOffset,
  19664. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19665. D3D12_RESOURCE_STATES InitialState,
  19666. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19667. REFIID riid,
  19668. _COM_Outptr_opt_ void **ppvResource);
  19669. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  19670. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  19671. ID3D12Device12 * This,
  19672. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19673. D3D12_RESOURCE_STATES InitialState,
  19674. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19675. REFIID riid,
  19676. _COM_Outptr_opt_ void **ppvResource);
  19677. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  19678. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  19679. ID3D12Device12 * This,
  19680. _In_ ID3D12DeviceChild *pObject,
  19681. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  19682. DWORD Access,
  19683. _In_opt_ LPCWSTR Name,
  19684. _Out_ HANDLE *pHandle);
  19685. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  19686. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  19687. ID3D12Device12 * This,
  19688. _In_ HANDLE NTHandle,
  19689. REFIID riid,
  19690. _COM_Outptr_opt_ void **ppvObj);
  19691. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  19692. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  19693. ID3D12Device12 * This,
  19694. _In_ LPCWSTR Name,
  19695. DWORD Access,
  19696. /* [annotation][out] */
  19697. _Out_ HANDLE *pNTHandle);
  19698. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  19699. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  19700. ID3D12Device12 * This,
  19701. UINT NumObjects,
  19702. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  19703. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  19704. HRESULT ( STDMETHODCALLTYPE *Evict )(
  19705. ID3D12Device12 * This,
  19706. UINT NumObjects,
  19707. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  19708. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  19709. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  19710. ID3D12Device12 * This,
  19711. UINT64 InitialValue,
  19712. D3D12_FENCE_FLAGS Flags,
  19713. REFIID riid,
  19714. _COM_Outptr_ void **ppFence);
  19715. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  19716. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  19717. ID3D12Device12 * This);
  19718. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  19719. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  19720. ID3D12Device12 * This,
  19721. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  19722. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  19723. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  19724. UINT64 BaseOffset,
  19725. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  19726. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  19727. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  19728. _Out_opt_ UINT64 *pTotalBytes);
  19729. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  19730. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  19731. ID3D12Device12 * This,
  19732. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  19733. REFIID riid,
  19734. _COM_Outptr_opt_ void **ppvHeap);
  19735. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  19736. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  19737. ID3D12Device12 * This,
  19738. BOOL Enable);
  19739. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  19740. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  19741. ID3D12Device12 * This,
  19742. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  19743. _In_opt_ ID3D12RootSignature *pRootSignature,
  19744. REFIID riid,
  19745. _COM_Outptr_opt_ void **ppvCommandSignature);
  19746. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  19747. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  19748. ID3D12Device12 * This,
  19749. _In_ ID3D12Resource *pTiledResource,
  19750. _Out_opt_ UINT *pNumTilesForEntireResource,
  19751. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  19752. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  19753. _Inout_opt_ UINT *pNumSubresourceTilings,
  19754. _In_ UINT FirstSubresourceTilingToGet,
  19755. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  19756. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  19757. #if !defined(_WIN32)
  19758. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  19759. ID3D12Device12 * This);
  19760. #else
  19761. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  19762. ID3D12Device12 * This,
  19763. LUID * RetVal);
  19764. #endif
  19765. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  19766. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  19767. ID3D12Device12 * This,
  19768. _In_reads_(BlobLength) const void *pLibraryBlob,
  19769. SIZE_T BlobLength,
  19770. REFIID riid,
  19771. _COM_Outptr_ void **ppPipelineLibrary);
  19772. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  19773. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  19774. ID3D12Device12 * This,
  19775. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  19776. _In_reads_(NumFences) const UINT64 *pFenceValues,
  19777. UINT NumFences,
  19778. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  19779. HANDLE hEvent);
  19780. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  19781. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  19782. ID3D12Device12 * This,
  19783. UINT NumObjects,
  19784. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  19785. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  19786. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  19787. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  19788. ID3D12Device12 * This,
  19789. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  19790. REFIID riid,
  19791. _COM_Outptr_ void **ppPipelineState);
  19792. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  19793. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  19794. ID3D12Device12 * This,
  19795. _In_ const void *pAddress,
  19796. REFIID riid,
  19797. _COM_Outptr_ void **ppvHeap);
  19798. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  19799. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  19800. ID3D12Device12 * This,
  19801. _In_ HANDLE hFileMapping,
  19802. REFIID riid,
  19803. _COM_Outptr_ void **ppvHeap);
  19804. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  19805. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  19806. ID3D12Device12 * This,
  19807. D3D12_RESIDENCY_FLAGS Flags,
  19808. UINT NumObjects,
  19809. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  19810. _In_ ID3D12Fence *pFenceToSignal,
  19811. UINT64 FenceValueToSignal);
  19812. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  19813. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  19814. ID3D12Device12 * This,
  19815. _In_ UINT nodeMask,
  19816. _In_ D3D12_COMMAND_LIST_TYPE type,
  19817. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  19818. REFIID riid,
  19819. _COM_Outptr_ void **ppCommandList);
  19820. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  19821. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  19822. ID3D12Device12 * This,
  19823. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  19824. _In_ REFIID riid,
  19825. _COM_Outptr_ void **ppSession);
  19826. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  19827. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  19828. ID3D12Device12 * This,
  19829. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19830. D3D12_HEAP_FLAGS HeapFlags,
  19831. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19832. D3D12_RESOURCE_STATES InitialResourceState,
  19833. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19834. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19835. REFIID riidResource,
  19836. _COM_Outptr_opt_ void **ppvResource);
  19837. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  19838. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  19839. ID3D12Device12 * This,
  19840. _In_ const D3D12_HEAP_DESC *pDesc,
  19841. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19842. REFIID riid,
  19843. _COM_Outptr_opt_ void **ppvHeap);
  19844. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  19845. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  19846. ID3D12Device12 * This,
  19847. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19848. D3D12_RESOURCE_STATES InitialState,
  19849. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19850. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19851. REFIID riid,
  19852. _COM_Outptr_opt_ void **ppvResource);
  19853. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  19854. #if !defined(_WIN32)
  19855. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  19856. ID3D12Device12 * This,
  19857. UINT visibleMask,
  19858. UINT numResourceDescs,
  19859. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  19860. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19861. #else
  19862. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  19863. ID3D12Device12 * This,
  19864. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19865. UINT visibleMask,
  19866. UINT numResourceDescs,
  19867. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  19868. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19869. #endif
  19870. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  19871. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  19872. ID3D12Device12 * This,
  19873. _In_ ID3D12LifetimeOwner *pOwner,
  19874. REFIID riid,
  19875. _COM_Outptr_ void **ppvTracker);
  19876. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  19877. void ( STDMETHODCALLTYPE *RemoveDevice )(
  19878. ID3D12Device12 * This);
  19879. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  19880. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  19881. ID3D12Device12 * This,
  19882. _Inout_ UINT *pNumMetaCommands,
  19883. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  19884. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  19885. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  19886. ID3D12Device12 * This,
  19887. _In_ REFGUID CommandId,
  19888. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  19889. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  19890. _Inout_ UINT *pParameterCount,
  19891. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  19892. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  19893. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  19894. ID3D12Device12 * This,
  19895. _In_ REFGUID CommandId,
  19896. _In_ UINT NodeMask,
  19897. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  19898. _In_ SIZE_T CreationParametersDataSizeInBytes,
  19899. REFIID riid,
  19900. _COM_Outptr_ void **ppMetaCommand);
  19901. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  19902. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  19903. ID3D12Device12 * This,
  19904. const D3D12_STATE_OBJECT_DESC *pDesc,
  19905. REFIID riid,
  19906. _COM_Outptr_ void **ppStateObject);
  19907. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  19908. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  19909. ID3D12Device12 * This,
  19910. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  19911. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  19912. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  19913. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  19914. ID3D12Device12 * This,
  19915. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  19916. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  19917. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  19918. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  19919. ID3D12Device12 * This,
  19920. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  19921. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  19922. _In_opt_ HANDLE hEventToSignalUponCompletion,
  19923. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  19924. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  19925. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  19926. ID3D12Device12 * This,
  19927. const D3D12_STATE_OBJECT_DESC *pAddition,
  19928. ID3D12StateObject *pStateObjectToGrowFrom,
  19929. REFIID riid,
  19930. _COM_Outptr_ void **ppNewStateObject);
  19931. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  19932. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  19933. ID3D12Device12 * This,
  19934. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  19935. _In_ REFIID riid,
  19936. _COM_Outptr_ void **ppSession);
  19937. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  19938. #if !defined(_WIN32)
  19939. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  19940. ID3D12Device12 * This,
  19941. UINT visibleMask,
  19942. UINT numResourceDescs,
  19943. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19944. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19945. #else
  19946. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  19947. ID3D12Device12 * This,
  19948. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19949. UINT visibleMask,
  19950. UINT numResourceDescs,
  19951. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19952. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19953. #endif
  19954. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  19955. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  19956. ID3D12Device12 * This,
  19957. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19958. D3D12_HEAP_FLAGS HeapFlags,
  19959. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19960. D3D12_RESOURCE_STATES InitialResourceState,
  19961. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19962. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19963. REFIID riidResource,
  19964. _COM_Outptr_opt_ void **ppvResource);
  19965. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  19966. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  19967. ID3D12Device12 * This,
  19968. _In_ ID3D12Heap *pHeap,
  19969. UINT64 HeapOffset,
  19970. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19971. D3D12_RESOURCE_STATES InitialState,
  19972. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19973. REFIID riid,
  19974. _COM_Outptr_opt_ void **ppvResource);
  19975. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  19976. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  19977. ID3D12Device12 * This,
  19978. _In_opt_ ID3D12Resource *pTargetedResource,
  19979. _In_opt_ ID3D12Resource *pFeedbackResource,
  19980. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19981. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  19982. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  19983. ID3D12Device12 * This,
  19984. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  19985. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  19986. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  19987. UINT64 BaseOffset,
  19988. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  19989. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  19990. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  19991. _Out_opt_ UINT64 *pTotalBytes);
  19992. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  19993. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  19994. ID3D12Device12 * This,
  19995. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  19996. REFIID riid,
  19997. _COM_Outptr_opt_ void **ppvSession);
  19998. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  19999. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  20000. ID3D12Device12 * This,
  20001. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  20002. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  20003. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  20004. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  20005. ID3D12Device12 * This,
  20006. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  20007. REFIID CreatorID,
  20008. REFIID riid,
  20009. _COM_Outptr_ void **ppCommandQueue);
  20010. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  20011. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  20012. ID3D12Device12 * This,
  20013. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20014. D3D12_HEAP_FLAGS HeapFlags,
  20015. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20016. D3D12_BARRIER_LAYOUT InitialLayout,
  20017. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20018. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20019. UINT32 NumCastableFormats,
  20020. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20021. REFIID riidResource,
  20022. _COM_Outptr_opt_ void **ppvResource);
  20023. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  20024. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  20025. ID3D12Device12 * This,
  20026. _In_ ID3D12Heap *pHeap,
  20027. UINT64 HeapOffset,
  20028. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20029. D3D12_BARRIER_LAYOUT InitialLayout,
  20030. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20031. UINT32 NumCastableFormats,
  20032. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20033. REFIID riid,
  20034. _COM_Outptr_opt_ void **ppvResource);
  20035. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  20036. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  20037. ID3D12Device12 * This,
  20038. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20039. D3D12_BARRIER_LAYOUT InitialLayout,
  20040. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20041. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20042. UINT32 NumCastableFormats,
  20043. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20044. REFIID riid,
  20045. _COM_Outptr_opt_ void **ppvResource);
  20046. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  20047. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  20048. ID3D12Device12 * This,
  20049. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  20050. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20051. DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3)
  20052. #if !defined(_WIN32)
  20053. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  20054. ID3D12Device12 * This,
  20055. UINT visibleMask,
  20056. UINT numResourceDescs,
  20057. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20058. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  20059. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  20060. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20061. #else
  20062. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  20063. ID3D12Device12 * This,
  20064. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20065. UINT visibleMask,
  20066. UINT numResourceDescs,
  20067. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20068. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  20069. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  20070. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20071. #endif
  20072. END_INTERFACE
  20073. } ID3D12Device12Vtbl;
  20074. interface ID3D12Device12
  20075. {
  20076. CONST_VTBL struct ID3D12Device12Vtbl *lpVtbl;
  20077. };
  20078. #ifdef COBJMACROS
  20079. #define ID3D12Device12_QueryInterface(This,riid,ppvObject) \
  20080. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  20081. #define ID3D12Device12_AddRef(This) \
  20082. ( (This)->lpVtbl -> AddRef(This) )
  20083. #define ID3D12Device12_Release(This) \
  20084. ( (This)->lpVtbl -> Release(This) )
  20085. #define ID3D12Device12_GetPrivateData(This,guid,pDataSize,pData) \
  20086. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  20087. #define ID3D12Device12_SetPrivateData(This,guid,DataSize,pData) \
  20088. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  20089. #define ID3D12Device12_SetPrivateDataInterface(This,guid,pData) \
  20090. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  20091. #define ID3D12Device12_SetName(This,Name) \
  20092. ( (This)->lpVtbl -> SetName(This,Name) )
  20093. #define ID3D12Device12_GetNodeCount(This) \
  20094. ( (This)->lpVtbl -> GetNodeCount(This) )
  20095. #define ID3D12Device12_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  20096. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  20097. #define ID3D12Device12_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  20098. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  20099. #define ID3D12Device12_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  20100. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  20101. #define ID3D12Device12_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  20102. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  20103. #define ID3D12Device12_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  20104. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  20105. #define ID3D12Device12_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  20106. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  20107. #define ID3D12Device12_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  20108. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  20109. #define ID3D12Device12_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  20110. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  20111. #define ID3D12Device12_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  20112. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  20113. #define ID3D12Device12_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  20114. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  20115. #define ID3D12Device12_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  20116. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  20117. #define ID3D12Device12_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  20118. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  20119. #define ID3D12Device12_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  20120. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  20121. #define ID3D12Device12_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  20122. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  20123. #define ID3D12Device12_CreateSampler(This,pDesc,DestDescriptor) \
  20124. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  20125. #define ID3D12Device12_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  20126. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  20127. #define ID3D12Device12_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  20128. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  20129. #if !defined(_WIN32)
  20130. #define ID3D12Device12_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  20131. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  20132. #else
  20133. #define ID3D12Device12_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  20134. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  20135. #endif
  20136. #if !defined(_WIN32)
  20137. #define ID3D12Device12_GetCustomHeapProperties(This,nodeMask,heapType) \
  20138. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  20139. #else
  20140. #define ID3D12Device12_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  20141. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  20142. #endif
  20143. #define ID3D12Device12_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  20144. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  20145. #define ID3D12Device12_CreateHeap(This,pDesc,riid,ppvHeap) \
  20146. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  20147. #define ID3D12Device12_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20148. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20149. #define ID3D12Device12_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20150. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20151. #define ID3D12Device12_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  20152. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  20153. #define ID3D12Device12_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  20154. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  20155. #define ID3D12Device12_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  20156. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  20157. #define ID3D12Device12_MakeResident(This,NumObjects,ppObjects) \
  20158. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  20159. #define ID3D12Device12_Evict(This,NumObjects,ppObjects) \
  20160. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  20161. #define ID3D12Device12_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  20162. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  20163. #define ID3D12Device12_GetDeviceRemovedReason(This) \
  20164. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  20165. #define ID3D12Device12_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  20166. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  20167. #define ID3D12Device12_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  20168. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  20169. #define ID3D12Device12_SetStablePowerState(This,Enable) \
  20170. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  20171. #define ID3D12Device12_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  20172. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  20173. #define ID3D12Device12_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  20174. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  20175. #if !defined(_WIN32)
  20176. #define ID3D12Device12_GetAdapterLuid(This) \
  20177. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  20178. #else
  20179. #define ID3D12Device12_GetAdapterLuid(This,RetVal) \
  20180. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  20181. #endif
  20182. #define ID3D12Device12_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  20183. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  20184. #define ID3D12Device12_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  20185. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  20186. #define ID3D12Device12_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  20187. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  20188. #define ID3D12Device12_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  20189. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  20190. #define ID3D12Device12_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  20191. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  20192. #define ID3D12Device12_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  20193. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  20194. #define ID3D12Device12_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  20195. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  20196. #define ID3D12Device12_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  20197. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  20198. #define ID3D12Device12_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  20199. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  20200. #define ID3D12Device12_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  20201. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  20202. #define ID3D12Device12_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  20203. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  20204. #define ID3D12Device12_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  20205. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  20206. #if !defined(_WIN32)
  20207. #define ID3D12Device12_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20208. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20209. #else
  20210. #define ID3D12Device12_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20211. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20212. #endif
  20213. #define ID3D12Device12_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  20214. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  20215. #define ID3D12Device12_RemoveDevice(This) \
  20216. ( (This)->lpVtbl -> RemoveDevice(This) )
  20217. #define ID3D12Device12_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  20218. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  20219. #define ID3D12Device12_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  20220. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  20221. #define ID3D12Device12_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  20222. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  20223. #define ID3D12Device12_CreateStateObject(This,pDesc,riid,ppStateObject) \
  20224. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  20225. #define ID3D12Device12_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  20226. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  20227. #define ID3D12Device12_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  20228. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  20229. #define ID3D12Device12_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  20230. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  20231. #define ID3D12Device12_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  20232. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  20233. #define ID3D12Device12_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  20234. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  20235. #if !defined(_WIN32)
  20236. #define ID3D12Device12_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20237. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20238. #else
  20239. #define ID3D12Device12_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20240. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20241. #endif
  20242. #define ID3D12Device12_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  20243. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  20244. #define ID3D12Device12_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20245. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20246. #define ID3D12Device12_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  20247. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  20248. #define ID3D12Device12_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  20249. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  20250. #define ID3D12Device12_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  20251. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  20252. #define ID3D12Device12_ShaderCacheControl(This,Kinds,Control) \
  20253. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  20254. #define ID3D12Device12_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  20255. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  20256. #define ID3D12Device12_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  20257. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  20258. #define ID3D12Device12_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  20259. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  20260. #define ID3D12Device12_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  20261. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  20262. #define ID3D12Device12_CreateSampler2(This,pDesc,DestDescriptor) \
  20263. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  20264. #if !defined(_WIN32)
  20265. #define ID3D12Device12_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  20266. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  20267. #else
  20268. #define ID3D12Device12_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  20269. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  20270. #endif
  20271. #endif /* COBJMACROS */
  20272. #endif /* C style interface */
  20273. #endif /* __ID3D12Device12_INTERFACE_DEFINED__ */
  20274. #ifndef __ID3D12Device13_INTERFACE_DEFINED__
  20275. #define __ID3D12Device13_INTERFACE_DEFINED__
  20276. /* interface ID3D12Device13 */
  20277. /* [unique][local][object][uuid] */
  20278. EXTERN_C const IID IID_ID3D12Device13;
  20279. #if defined(__cplusplus) && !defined(CINTERFACE)
  20280. MIDL_INTERFACE("14eecffc-4df8-40f7-a118-5c816f45695e")
  20281. ID3D12Device13 : public ID3D12Device12
  20282. {
  20283. public:
  20284. virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromAddress1(
  20285. _In_ const void *pAddress,
  20286. SIZE_T size,
  20287. REFIID riid,
  20288. _COM_Outptr_ void **ppvHeap) = 0;
  20289. };
  20290. #else /* C style interface */
  20291. typedef struct ID3D12Device13Vtbl
  20292. {
  20293. BEGIN_INTERFACE
  20294. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  20295. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  20296. ID3D12Device13 * This,
  20297. REFIID riid,
  20298. _COM_Outptr_ void **ppvObject);
  20299. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  20300. ULONG ( STDMETHODCALLTYPE *AddRef )(
  20301. ID3D12Device13 * This);
  20302. DECLSPEC_XFGVIRT(IUnknown, Release)
  20303. ULONG ( STDMETHODCALLTYPE *Release )(
  20304. ID3D12Device13 * This);
  20305. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  20306. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  20307. ID3D12Device13 * This,
  20308. _In_ REFGUID guid,
  20309. _Inout_ UINT *pDataSize,
  20310. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  20311. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  20312. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  20313. ID3D12Device13 * This,
  20314. _In_ REFGUID guid,
  20315. _In_ UINT DataSize,
  20316. _In_reads_bytes_opt_( DataSize ) const void *pData);
  20317. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  20318. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  20319. ID3D12Device13 * This,
  20320. _In_ REFGUID guid,
  20321. _In_opt_ const IUnknown *pData);
  20322. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  20323. HRESULT ( STDMETHODCALLTYPE *SetName )(
  20324. ID3D12Device13 * This,
  20325. _In_z_ LPCWSTR Name);
  20326. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  20327. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  20328. ID3D12Device13 * This);
  20329. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  20330. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  20331. ID3D12Device13 * This,
  20332. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  20333. REFIID riid,
  20334. _COM_Outptr_ void **ppCommandQueue);
  20335. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  20336. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  20337. ID3D12Device13 * This,
  20338. _In_ D3D12_COMMAND_LIST_TYPE type,
  20339. REFIID riid,
  20340. _COM_Outptr_ void **ppCommandAllocator);
  20341. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  20342. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  20343. ID3D12Device13 * This,
  20344. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  20345. REFIID riid,
  20346. _COM_Outptr_ void **ppPipelineState);
  20347. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  20348. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  20349. ID3D12Device13 * This,
  20350. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  20351. REFIID riid,
  20352. _COM_Outptr_ void **ppPipelineState);
  20353. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  20354. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  20355. ID3D12Device13 * This,
  20356. _In_ UINT nodeMask,
  20357. _In_ D3D12_COMMAND_LIST_TYPE type,
  20358. _In_ ID3D12CommandAllocator *pCommandAllocator,
  20359. _In_opt_ ID3D12PipelineState *pInitialState,
  20360. REFIID riid,
  20361. _COM_Outptr_ void **ppCommandList);
  20362. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  20363. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  20364. ID3D12Device13 * This,
  20365. D3D12_FEATURE Feature,
  20366. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  20367. UINT FeatureSupportDataSize);
  20368. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  20369. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  20370. ID3D12Device13 * This,
  20371. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  20372. REFIID riid,
  20373. _COM_Outptr_ void **ppvHeap);
  20374. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  20375. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  20376. ID3D12Device13 * This,
  20377. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  20378. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  20379. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  20380. ID3D12Device13 * This,
  20381. _In_ UINT nodeMask,
  20382. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  20383. _In_ SIZE_T blobLengthInBytes,
  20384. REFIID riid,
  20385. _COM_Outptr_ void **ppvRootSignature);
  20386. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  20387. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  20388. ID3D12Device13 * This,
  20389. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  20390. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20391. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  20392. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  20393. ID3D12Device13 * This,
  20394. _In_opt_ ID3D12Resource *pResource,
  20395. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  20396. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20397. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  20398. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  20399. ID3D12Device13 * This,
  20400. _In_opt_ ID3D12Resource *pResource,
  20401. _In_opt_ ID3D12Resource *pCounterResource,
  20402. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  20403. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20404. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  20405. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  20406. ID3D12Device13 * This,
  20407. _In_opt_ ID3D12Resource *pResource,
  20408. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  20409. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20410. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  20411. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  20412. ID3D12Device13 * This,
  20413. _In_opt_ ID3D12Resource *pResource,
  20414. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  20415. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20416. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  20417. void ( STDMETHODCALLTYPE *CreateSampler )(
  20418. ID3D12Device13 * This,
  20419. _In_ const D3D12_SAMPLER_DESC *pDesc,
  20420. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20421. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  20422. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  20423. ID3D12Device13 * This,
  20424. _In_ UINT NumDestDescriptorRanges,
  20425. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  20426. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  20427. _In_ UINT NumSrcDescriptorRanges,
  20428. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  20429. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  20430. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  20431. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  20432. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  20433. ID3D12Device13 * This,
  20434. _In_ UINT NumDescriptors,
  20435. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  20436. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  20437. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  20438. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  20439. #if !defined(_WIN32)
  20440. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  20441. ID3D12Device13 * This,
  20442. _In_ UINT visibleMask,
  20443. _In_ UINT numResourceDescs,
  20444. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  20445. #else
  20446. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  20447. ID3D12Device13 * This,
  20448. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20449. _In_ UINT visibleMask,
  20450. _In_ UINT numResourceDescs,
  20451. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  20452. #endif
  20453. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  20454. #if !defined(_WIN32)
  20455. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  20456. ID3D12Device13 * This,
  20457. _In_ UINT nodeMask,
  20458. D3D12_HEAP_TYPE heapType);
  20459. #else
  20460. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  20461. ID3D12Device13 * This,
  20462. D3D12_HEAP_PROPERTIES * RetVal,
  20463. _In_ UINT nodeMask,
  20464. D3D12_HEAP_TYPE heapType);
  20465. #endif
  20466. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  20467. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  20468. ID3D12Device13 * This,
  20469. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20470. D3D12_HEAP_FLAGS HeapFlags,
  20471. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20472. D3D12_RESOURCE_STATES InitialResourceState,
  20473. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20474. REFIID riidResource,
  20475. _COM_Outptr_opt_ void **ppvResource);
  20476. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  20477. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  20478. ID3D12Device13 * This,
  20479. _In_ const D3D12_HEAP_DESC *pDesc,
  20480. REFIID riid,
  20481. _COM_Outptr_opt_ void **ppvHeap);
  20482. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  20483. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  20484. ID3D12Device13 * This,
  20485. _In_ ID3D12Heap *pHeap,
  20486. UINT64 HeapOffset,
  20487. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20488. D3D12_RESOURCE_STATES InitialState,
  20489. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20490. REFIID riid,
  20491. _COM_Outptr_opt_ void **ppvResource);
  20492. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  20493. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  20494. ID3D12Device13 * This,
  20495. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20496. D3D12_RESOURCE_STATES InitialState,
  20497. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20498. REFIID riid,
  20499. _COM_Outptr_opt_ void **ppvResource);
  20500. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  20501. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  20502. ID3D12Device13 * This,
  20503. _In_ ID3D12DeviceChild *pObject,
  20504. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  20505. DWORD Access,
  20506. _In_opt_ LPCWSTR Name,
  20507. _Out_ HANDLE *pHandle);
  20508. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  20509. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  20510. ID3D12Device13 * This,
  20511. _In_ HANDLE NTHandle,
  20512. REFIID riid,
  20513. _COM_Outptr_opt_ void **ppvObj);
  20514. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  20515. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  20516. ID3D12Device13 * This,
  20517. _In_ LPCWSTR Name,
  20518. DWORD Access,
  20519. /* [annotation][out] */
  20520. _Out_ HANDLE *pNTHandle);
  20521. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  20522. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  20523. ID3D12Device13 * This,
  20524. UINT NumObjects,
  20525. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  20526. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  20527. HRESULT ( STDMETHODCALLTYPE *Evict )(
  20528. ID3D12Device13 * This,
  20529. UINT NumObjects,
  20530. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  20531. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  20532. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  20533. ID3D12Device13 * This,
  20534. UINT64 InitialValue,
  20535. D3D12_FENCE_FLAGS Flags,
  20536. REFIID riid,
  20537. _COM_Outptr_ void **ppFence);
  20538. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  20539. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  20540. ID3D12Device13 * This);
  20541. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  20542. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  20543. ID3D12Device13 * This,
  20544. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  20545. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  20546. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  20547. UINT64 BaseOffset,
  20548. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  20549. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  20550. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  20551. _Out_opt_ UINT64 *pTotalBytes);
  20552. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  20553. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  20554. ID3D12Device13 * This,
  20555. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  20556. REFIID riid,
  20557. _COM_Outptr_opt_ void **ppvHeap);
  20558. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  20559. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  20560. ID3D12Device13 * This,
  20561. BOOL Enable);
  20562. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  20563. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  20564. ID3D12Device13 * This,
  20565. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  20566. _In_opt_ ID3D12RootSignature *pRootSignature,
  20567. REFIID riid,
  20568. _COM_Outptr_opt_ void **ppvCommandSignature);
  20569. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  20570. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  20571. ID3D12Device13 * This,
  20572. _In_ ID3D12Resource *pTiledResource,
  20573. _Out_opt_ UINT *pNumTilesForEntireResource,
  20574. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  20575. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  20576. _Inout_opt_ UINT *pNumSubresourceTilings,
  20577. _In_ UINT FirstSubresourceTilingToGet,
  20578. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  20579. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  20580. #if !defined(_WIN32)
  20581. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  20582. ID3D12Device13 * This);
  20583. #else
  20584. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  20585. ID3D12Device13 * This,
  20586. LUID * RetVal);
  20587. #endif
  20588. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  20589. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  20590. ID3D12Device13 * This,
  20591. _In_reads_(BlobLength) const void *pLibraryBlob,
  20592. SIZE_T BlobLength,
  20593. REFIID riid,
  20594. _COM_Outptr_ void **ppPipelineLibrary);
  20595. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  20596. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  20597. ID3D12Device13 * This,
  20598. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  20599. _In_reads_(NumFences) const UINT64 *pFenceValues,
  20600. UINT NumFences,
  20601. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  20602. HANDLE hEvent);
  20603. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  20604. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  20605. ID3D12Device13 * This,
  20606. UINT NumObjects,
  20607. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  20608. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  20609. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  20610. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  20611. ID3D12Device13 * This,
  20612. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  20613. REFIID riid,
  20614. _COM_Outptr_ void **ppPipelineState);
  20615. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  20616. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  20617. ID3D12Device13 * This,
  20618. _In_ const void *pAddress,
  20619. REFIID riid,
  20620. _COM_Outptr_ void **ppvHeap);
  20621. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  20622. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  20623. ID3D12Device13 * This,
  20624. _In_ HANDLE hFileMapping,
  20625. REFIID riid,
  20626. _COM_Outptr_ void **ppvHeap);
  20627. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  20628. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  20629. ID3D12Device13 * This,
  20630. D3D12_RESIDENCY_FLAGS Flags,
  20631. UINT NumObjects,
  20632. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  20633. _In_ ID3D12Fence *pFenceToSignal,
  20634. UINT64 FenceValueToSignal);
  20635. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  20636. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  20637. ID3D12Device13 * This,
  20638. _In_ UINT nodeMask,
  20639. _In_ D3D12_COMMAND_LIST_TYPE type,
  20640. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  20641. REFIID riid,
  20642. _COM_Outptr_ void **ppCommandList);
  20643. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  20644. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  20645. ID3D12Device13 * This,
  20646. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  20647. _In_ REFIID riid,
  20648. _COM_Outptr_ void **ppSession);
  20649. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  20650. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  20651. ID3D12Device13 * This,
  20652. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20653. D3D12_HEAP_FLAGS HeapFlags,
  20654. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20655. D3D12_RESOURCE_STATES InitialResourceState,
  20656. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20657. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20658. REFIID riidResource,
  20659. _COM_Outptr_opt_ void **ppvResource);
  20660. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  20661. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  20662. ID3D12Device13 * This,
  20663. _In_ const D3D12_HEAP_DESC *pDesc,
  20664. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20665. REFIID riid,
  20666. _COM_Outptr_opt_ void **ppvHeap);
  20667. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  20668. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  20669. ID3D12Device13 * This,
  20670. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20671. D3D12_RESOURCE_STATES InitialState,
  20672. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20673. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20674. REFIID riid,
  20675. _COM_Outptr_opt_ void **ppvResource);
  20676. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  20677. #if !defined(_WIN32)
  20678. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  20679. ID3D12Device13 * This,
  20680. UINT visibleMask,
  20681. UINT numResourceDescs,
  20682. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  20683. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20684. #else
  20685. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  20686. ID3D12Device13 * This,
  20687. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20688. UINT visibleMask,
  20689. UINT numResourceDescs,
  20690. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  20691. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20692. #endif
  20693. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  20694. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  20695. ID3D12Device13 * This,
  20696. _In_ ID3D12LifetimeOwner *pOwner,
  20697. REFIID riid,
  20698. _COM_Outptr_ void **ppvTracker);
  20699. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  20700. void ( STDMETHODCALLTYPE *RemoveDevice )(
  20701. ID3D12Device13 * This);
  20702. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  20703. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  20704. ID3D12Device13 * This,
  20705. _Inout_ UINT *pNumMetaCommands,
  20706. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  20707. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  20708. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  20709. ID3D12Device13 * This,
  20710. _In_ REFGUID CommandId,
  20711. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  20712. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  20713. _Inout_ UINT *pParameterCount,
  20714. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  20715. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  20716. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  20717. ID3D12Device13 * This,
  20718. _In_ REFGUID CommandId,
  20719. _In_ UINT NodeMask,
  20720. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  20721. _In_ SIZE_T CreationParametersDataSizeInBytes,
  20722. REFIID riid,
  20723. _COM_Outptr_ void **ppMetaCommand);
  20724. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  20725. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  20726. ID3D12Device13 * This,
  20727. const D3D12_STATE_OBJECT_DESC *pDesc,
  20728. REFIID riid,
  20729. _COM_Outptr_ void **ppStateObject);
  20730. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  20731. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  20732. ID3D12Device13 * This,
  20733. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  20734. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  20735. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  20736. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  20737. ID3D12Device13 * This,
  20738. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  20739. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  20740. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  20741. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  20742. ID3D12Device13 * This,
  20743. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  20744. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  20745. _In_opt_ HANDLE hEventToSignalUponCompletion,
  20746. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  20747. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  20748. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  20749. ID3D12Device13 * This,
  20750. const D3D12_STATE_OBJECT_DESC *pAddition,
  20751. ID3D12StateObject *pStateObjectToGrowFrom,
  20752. REFIID riid,
  20753. _COM_Outptr_ void **ppNewStateObject);
  20754. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  20755. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  20756. ID3D12Device13 * This,
  20757. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  20758. _In_ REFIID riid,
  20759. _COM_Outptr_ void **ppSession);
  20760. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  20761. #if !defined(_WIN32)
  20762. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  20763. ID3D12Device13 * This,
  20764. UINT visibleMask,
  20765. UINT numResourceDescs,
  20766. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20767. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20768. #else
  20769. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  20770. ID3D12Device13 * This,
  20771. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20772. UINT visibleMask,
  20773. UINT numResourceDescs,
  20774. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20775. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20776. #endif
  20777. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  20778. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  20779. ID3D12Device13 * This,
  20780. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20781. D3D12_HEAP_FLAGS HeapFlags,
  20782. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20783. D3D12_RESOURCE_STATES InitialResourceState,
  20784. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20785. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20786. REFIID riidResource,
  20787. _COM_Outptr_opt_ void **ppvResource);
  20788. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  20789. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  20790. ID3D12Device13 * This,
  20791. _In_ ID3D12Heap *pHeap,
  20792. UINT64 HeapOffset,
  20793. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20794. D3D12_RESOURCE_STATES InitialState,
  20795. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20796. REFIID riid,
  20797. _COM_Outptr_opt_ void **ppvResource);
  20798. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  20799. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  20800. ID3D12Device13 * This,
  20801. _In_opt_ ID3D12Resource *pTargetedResource,
  20802. _In_opt_ ID3D12Resource *pFeedbackResource,
  20803. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20804. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  20805. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  20806. ID3D12Device13 * This,
  20807. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  20808. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  20809. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  20810. UINT64 BaseOffset,
  20811. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  20812. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  20813. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  20814. _Out_opt_ UINT64 *pTotalBytes);
  20815. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  20816. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  20817. ID3D12Device13 * This,
  20818. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  20819. REFIID riid,
  20820. _COM_Outptr_opt_ void **ppvSession);
  20821. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  20822. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  20823. ID3D12Device13 * This,
  20824. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  20825. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  20826. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  20827. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  20828. ID3D12Device13 * This,
  20829. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  20830. REFIID CreatorID,
  20831. REFIID riid,
  20832. _COM_Outptr_ void **ppCommandQueue);
  20833. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  20834. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  20835. ID3D12Device13 * This,
  20836. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20837. D3D12_HEAP_FLAGS HeapFlags,
  20838. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20839. D3D12_BARRIER_LAYOUT InitialLayout,
  20840. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20841. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20842. UINT32 NumCastableFormats,
  20843. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20844. REFIID riidResource,
  20845. _COM_Outptr_opt_ void **ppvResource);
  20846. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  20847. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  20848. ID3D12Device13 * This,
  20849. _In_ ID3D12Heap *pHeap,
  20850. UINT64 HeapOffset,
  20851. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20852. D3D12_BARRIER_LAYOUT InitialLayout,
  20853. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20854. UINT32 NumCastableFormats,
  20855. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20856. REFIID riid,
  20857. _COM_Outptr_opt_ void **ppvResource);
  20858. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  20859. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  20860. ID3D12Device13 * This,
  20861. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20862. D3D12_BARRIER_LAYOUT InitialLayout,
  20863. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20864. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20865. UINT32 NumCastableFormats,
  20866. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20867. REFIID riid,
  20868. _COM_Outptr_opt_ void **ppvResource);
  20869. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  20870. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  20871. ID3D12Device13 * This,
  20872. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  20873. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20874. DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3)
  20875. #if !defined(_WIN32)
  20876. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  20877. ID3D12Device13 * This,
  20878. UINT visibleMask,
  20879. UINT numResourceDescs,
  20880. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20881. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  20882. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  20883. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20884. #else
  20885. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  20886. ID3D12Device13 * This,
  20887. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20888. UINT visibleMask,
  20889. UINT numResourceDescs,
  20890. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20891. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  20892. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  20893. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20894. #endif
  20895. DECLSPEC_XFGVIRT(ID3D12Device13, OpenExistingHeapFromAddress1)
  20896. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress1 )(
  20897. ID3D12Device13 * This,
  20898. _In_ const void *pAddress,
  20899. SIZE_T size,
  20900. REFIID riid,
  20901. _COM_Outptr_ void **ppvHeap);
  20902. END_INTERFACE
  20903. } ID3D12Device13Vtbl;
  20904. interface ID3D12Device13
  20905. {
  20906. CONST_VTBL struct ID3D12Device13Vtbl *lpVtbl;
  20907. };
  20908. #ifdef COBJMACROS
  20909. #define ID3D12Device13_QueryInterface(This,riid,ppvObject) \
  20910. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  20911. #define ID3D12Device13_AddRef(This) \
  20912. ( (This)->lpVtbl -> AddRef(This) )
  20913. #define ID3D12Device13_Release(This) \
  20914. ( (This)->lpVtbl -> Release(This) )
  20915. #define ID3D12Device13_GetPrivateData(This,guid,pDataSize,pData) \
  20916. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  20917. #define ID3D12Device13_SetPrivateData(This,guid,DataSize,pData) \
  20918. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  20919. #define ID3D12Device13_SetPrivateDataInterface(This,guid,pData) \
  20920. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  20921. #define ID3D12Device13_SetName(This,Name) \
  20922. ( (This)->lpVtbl -> SetName(This,Name) )
  20923. #define ID3D12Device13_GetNodeCount(This) \
  20924. ( (This)->lpVtbl -> GetNodeCount(This) )
  20925. #define ID3D12Device13_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  20926. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  20927. #define ID3D12Device13_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  20928. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  20929. #define ID3D12Device13_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  20930. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  20931. #define ID3D12Device13_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  20932. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  20933. #define ID3D12Device13_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  20934. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  20935. #define ID3D12Device13_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  20936. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  20937. #define ID3D12Device13_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  20938. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  20939. #define ID3D12Device13_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  20940. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  20941. #define ID3D12Device13_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  20942. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  20943. #define ID3D12Device13_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  20944. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  20945. #define ID3D12Device13_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  20946. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  20947. #define ID3D12Device13_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  20948. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  20949. #define ID3D12Device13_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  20950. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  20951. #define ID3D12Device13_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  20952. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  20953. #define ID3D12Device13_CreateSampler(This,pDesc,DestDescriptor) \
  20954. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  20955. #define ID3D12Device13_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  20956. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  20957. #define ID3D12Device13_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  20958. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  20959. #if !defined(_WIN32)
  20960. #define ID3D12Device13_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  20961. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  20962. #else
  20963. #define ID3D12Device13_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  20964. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  20965. #endif
  20966. #if !defined(_WIN32)
  20967. #define ID3D12Device13_GetCustomHeapProperties(This,nodeMask,heapType) \
  20968. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  20969. #else
  20970. #define ID3D12Device13_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  20971. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  20972. #endif
  20973. #define ID3D12Device13_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  20974. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  20975. #define ID3D12Device13_CreateHeap(This,pDesc,riid,ppvHeap) \
  20976. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  20977. #define ID3D12Device13_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20978. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20979. #define ID3D12Device13_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20980. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20981. #define ID3D12Device13_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  20982. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  20983. #define ID3D12Device13_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  20984. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  20985. #define ID3D12Device13_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  20986. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  20987. #define ID3D12Device13_MakeResident(This,NumObjects,ppObjects) \
  20988. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  20989. #define ID3D12Device13_Evict(This,NumObjects,ppObjects) \
  20990. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  20991. #define ID3D12Device13_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  20992. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  20993. #define ID3D12Device13_GetDeviceRemovedReason(This) \
  20994. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  20995. #define ID3D12Device13_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  20996. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  20997. #define ID3D12Device13_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  20998. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  20999. #define ID3D12Device13_SetStablePowerState(This,Enable) \
  21000. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  21001. #define ID3D12Device13_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  21002. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  21003. #define ID3D12Device13_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  21004. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  21005. #if !defined(_WIN32)
  21006. #define ID3D12Device13_GetAdapterLuid(This) \
  21007. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  21008. #else
  21009. #define ID3D12Device13_GetAdapterLuid(This,RetVal) \
  21010. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  21011. #endif
  21012. #define ID3D12Device13_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  21013. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  21014. #define ID3D12Device13_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  21015. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  21016. #define ID3D12Device13_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  21017. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  21018. #define ID3D12Device13_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  21019. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  21020. #define ID3D12Device13_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  21021. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  21022. #define ID3D12Device13_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  21023. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  21024. #define ID3D12Device13_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  21025. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  21026. #define ID3D12Device13_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  21027. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  21028. #define ID3D12Device13_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  21029. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  21030. #define ID3D12Device13_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  21031. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  21032. #define ID3D12Device13_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  21033. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  21034. #define ID3D12Device13_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  21035. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  21036. #if !defined(_WIN32)
  21037. #define ID3D12Device13_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21038. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21039. #else
  21040. #define ID3D12Device13_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21041. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21042. #endif
  21043. #define ID3D12Device13_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  21044. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  21045. #define ID3D12Device13_RemoveDevice(This) \
  21046. ( (This)->lpVtbl -> RemoveDevice(This) )
  21047. #define ID3D12Device13_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  21048. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  21049. #define ID3D12Device13_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  21050. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  21051. #define ID3D12Device13_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  21052. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  21053. #define ID3D12Device13_CreateStateObject(This,pDesc,riid,ppStateObject) \
  21054. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  21055. #define ID3D12Device13_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  21056. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  21057. #define ID3D12Device13_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  21058. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  21059. #define ID3D12Device13_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  21060. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  21061. #define ID3D12Device13_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  21062. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  21063. #define ID3D12Device13_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  21064. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  21065. #if !defined(_WIN32)
  21066. #define ID3D12Device13_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21067. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21068. #else
  21069. #define ID3D12Device13_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21070. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21071. #endif
  21072. #define ID3D12Device13_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  21073. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  21074. #define ID3D12Device13_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  21075. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  21076. #define ID3D12Device13_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  21077. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  21078. #define ID3D12Device13_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  21079. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  21080. #define ID3D12Device13_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  21081. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  21082. #define ID3D12Device13_ShaderCacheControl(This,Kinds,Control) \
  21083. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  21084. #define ID3D12Device13_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  21085. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  21086. #define ID3D12Device13_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  21087. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  21088. #define ID3D12Device13_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  21089. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  21090. #define ID3D12Device13_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  21091. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  21092. #define ID3D12Device13_CreateSampler2(This,pDesc,DestDescriptor) \
  21093. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  21094. #if !defined(_WIN32)
  21095. #define ID3D12Device13_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  21096. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  21097. #else
  21098. #define ID3D12Device13_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  21099. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  21100. #endif
  21101. #define ID3D12Device13_OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) \
  21102. ( (This)->lpVtbl -> OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) )
  21103. #endif /* COBJMACROS */
  21104. #endif /* C style interface */
  21105. #endif /* __ID3D12Device13_INTERFACE_DEFINED__ */
  21106. #ifndef __ID3D12Device14_INTERFACE_DEFINED__
  21107. #define __ID3D12Device14_INTERFACE_DEFINED__
  21108. /* interface ID3D12Device14 */
  21109. /* [unique][local][object][uuid] */
  21110. EXTERN_C const IID IID_ID3D12Device14;
  21111. #if defined(__cplusplus) && !defined(CINTERFACE)
  21112. MIDL_INTERFACE("5f6e592d-d895-44c2-8e4a-88ad4926d323")
  21113. ID3D12Device14 : public ID3D12Device13
  21114. {
  21115. public:
  21116. virtual HRESULT STDMETHODCALLTYPE CreateRootSignatureFromSubobjectInLibrary(
  21117. _In_ UINT nodeMask,
  21118. _In_reads_(blobLengthInBytes) const void *pLibraryBlob,
  21119. _In_ SIZE_T blobLengthInBytes,
  21120. _In_opt_ LPCWSTR subobjectName,
  21121. REFIID riid,
  21122. _COM_Outptr_ void **ppvRootSignature) = 0;
  21123. };
  21124. #else /* C style interface */
  21125. typedef struct ID3D12Device14Vtbl
  21126. {
  21127. BEGIN_INTERFACE
  21128. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  21129. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  21130. ID3D12Device14 * This,
  21131. REFIID riid,
  21132. _COM_Outptr_ void **ppvObject);
  21133. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  21134. ULONG ( STDMETHODCALLTYPE *AddRef )(
  21135. ID3D12Device14 * This);
  21136. DECLSPEC_XFGVIRT(IUnknown, Release)
  21137. ULONG ( STDMETHODCALLTYPE *Release )(
  21138. ID3D12Device14 * This);
  21139. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  21140. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  21141. ID3D12Device14 * This,
  21142. _In_ REFGUID guid,
  21143. _Inout_ UINT *pDataSize,
  21144. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  21145. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  21146. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  21147. ID3D12Device14 * This,
  21148. _In_ REFGUID guid,
  21149. _In_ UINT DataSize,
  21150. _In_reads_bytes_opt_( DataSize ) const void *pData);
  21151. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  21152. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  21153. ID3D12Device14 * This,
  21154. _In_ REFGUID guid,
  21155. _In_opt_ const IUnknown *pData);
  21156. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  21157. HRESULT ( STDMETHODCALLTYPE *SetName )(
  21158. ID3D12Device14 * This,
  21159. _In_z_ LPCWSTR Name);
  21160. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  21161. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  21162. ID3D12Device14 * This);
  21163. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  21164. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  21165. ID3D12Device14 * This,
  21166. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  21167. REFIID riid,
  21168. _COM_Outptr_ void **ppCommandQueue);
  21169. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  21170. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  21171. ID3D12Device14 * This,
  21172. _In_ D3D12_COMMAND_LIST_TYPE type,
  21173. REFIID riid,
  21174. _COM_Outptr_ void **ppCommandAllocator);
  21175. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  21176. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  21177. ID3D12Device14 * This,
  21178. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  21179. REFIID riid,
  21180. _COM_Outptr_ void **ppPipelineState);
  21181. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  21182. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  21183. ID3D12Device14 * This,
  21184. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  21185. REFIID riid,
  21186. _COM_Outptr_ void **ppPipelineState);
  21187. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  21188. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  21189. ID3D12Device14 * This,
  21190. _In_ UINT nodeMask,
  21191. _In_ D3D12_COMMAND_LIST_TYPE type,
  21192. _In_ ID3D12CommandAllocator *pCommandAllocator,
  21193. _In_opt_ ID3D12PipelineState *pInitialState,
  21194. REFIID riid,
  21195. _COM_Outptr_ void **ppCommandList);
  21196. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  21197. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  21198. ID3D12Device14 * This,
  21199. D3D12_FEATURE Feature,
  21200. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  21201. UINT FeatureSupportDataSize);
  21202. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  21203. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  21204. ID3D12Device14 * This,
  21205. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  21206. REFIID riid,
  21207. _COM_Outptr_ void **ppvHeap);
  21208. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  21209. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  21210. ID3D12Device14 * This,
  21211. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  21212. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  21213. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  21214. ID3D12Device14 * This,
  21215. _In_ UINT nodeMask,
  21216. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  21217. _In_ SIZE_T blobLengthInBytes,
  21218. REFIID riid,
  21219. _COM_Outptr_ void **ppvRootSignature);
  21220. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  21221. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  21222. ID3D12Device14 * This,
  21223. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  21224. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21225. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  21226. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  21227. ID3D12Device14 * This,
  21228. _In_opt_ ID3D12Resource *pResource,
  21229. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  21230. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21231. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  21232. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  21233. ID3D12Device14 * This,
  21234. _In_opt_ ID3D12Resource *pResource,
  21235. _In_opt_ ID3D12Resource *pCounterResource,
  21236. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  21237. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21238. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  21239. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  21240. ID3D12Device14 * This,
  21241. _In_opt_ ID3D12Resource *pResource,
  21242. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  21243. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21244. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  21245. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  21246. ID3D12Device14 * This,
  21247. _In_opt_ ID3D12Resource *pResource,
  21248. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  21249. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21250. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  21251. void ( STDMETHODCALLTYPE *CreateSampler )(
  21252. ID3D12Device14 * This,
  21253. _In_ const D3D12_SAMPLER_DESC *pDesc,
  21254. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21255. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  21256. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  21257. ID3D12Device14 * This,
  21258. _In_ UINT NumDestDescriptorRanges,
  21259. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  21260. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  21261. _In_ UINT NumSrcDescriptorRanges,
  21262. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  21263. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  21264. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  21265. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  21266. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  21267. ID3D12Device14 * This,
  21268. _In_ UINT NumDescriptors,
  21269. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  21270. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  21271. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  21272. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  21273. #if !defined(_WIN32)
  21274. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  21275. ID3D12Device14 * This,
  21276. _In_ UINT visibleMask,
  21277. _In_ UINT numResourceDescs,
  21278. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  21279. #else
  21280. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  21281. ID3D12Device14 * This,
  21282. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  21283. _In_ UINT visibleMask,
  21284. _In_ UINT numResourceDescs,
  21285. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  21286. #endif
  21287. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  21288. #if !defined(_WIN32)
  21289. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  21290. ID3D12Device14 * This,
  21291. _In_ UINT nodeMask,
  21292. D3D12_HEAP_TYPE heapType);
  21293. #else
  21294. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  21295. ID3D12Device14 * This,
  21296. D3D12_HEAP_PROPERTIES * RetVal,
  21297. _In_ UINT nodeMask,
  21298. D3D12_HEAP_TYPE heapType);
  21299. #endif
  21300. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  21301. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  21302. ID3D12Device14 * This,
  21303. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  21304. D3D12_HEAP_FLAGS HeapFlags,
  21305. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21306. D3D12_RESOURCE_STATES InitialResourceState,
  21307. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21308. REFIID riidResource,
  21309. _COM_Outptr_opt_ void **ppvResource);
  21310. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  21311. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  21312. ID3D12Device14 * This,
  21313. _In_ const D3D12_HEAP_DESC *pDesc,
  21314. REFIID riid,
  21315. _COM_Outptr_opt_ void **ppvHeap);
  21316. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  21317. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  21318. ID3D12Device14 * This,
  21319. _In_ ID3D12Heap *pHeap,
  21320. UINT64 HeapOffset,
  21321. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21322. D3D12_RESOURCE_STATES InitialState,
  21323. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21324. REFIID riid,
  21325. _COM_Outptr_opt_ void **ppvResource);
  21326. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  21327. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  21328. ID3D12Device14 * This,
  21329. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21330. D3D12_RESOURCE_STATES InitialState,
  21331. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21332. REFIID riid,
  21333. _COM_Outptr_opt_ void **ppvResource);
  21334. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  21335. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  21336. ID3D12Device14 * This,
  21337. _In_ ID3D12DeviceChild *pObject,
  21338. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  21339. DWORD Access,
  21340. _In_opt_ LPCWSTR Name,
  21341. _Out_ HANDLE *pHandle);
  21342. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  21343. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  21344. ID3D12Device14 * This,
  21345. _In_ HANDLE NTHandle,
  21346. REFIID riid,
  21347. _COM_Outptr_opt_ void **ppvObj);
  21348. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  21349. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  21350. ID3D12Device14 * This,
  21351. _In_ LPCWSTR Name,
  21352. DWORD Access,
  21353. /* [annotation][out] */
  21354. _Out_ HANDLE *pNTHandle);
  21355. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  21356. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  21357. ID3D12Device14 * This,
  21358. UINT NumObjects,
  21359. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  21360. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  21361. HRESULT ( STDMETHODCALLTYPE *Evict )(
  21362. ID3D12Device14 * This,
  21363. UINT NumObjects,
  21364. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  21365. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  21366. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  21367. ID3D12Device14 * This,
  21368. UINT64 InitialValue,
  21369. D3D12_FENCE_FLAGS Flags,
  21370. REFIID riid,
  21371. _COM_Outptr_ void **ppFence);
  21372. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  21373. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  21374. ID3D12Device14 * This);
  21375. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  21376. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  21377. ID3D12Device14 * This,
  21378. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  21379. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  21380. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  21381. UINT64 BaseOffset,
  21382. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  21383. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  21384. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  21385. _Out_opt_ UINT64 *pTotalBytes);
  21386. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  21387. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  21388. ID3D12Device14 * This,
  21389. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  21390. REFIID riid,
  21391. _COM_Outptr_opt_ void **ppvHeap);
  21392. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  21393. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  21394. ID3D12Device14 * This,
  21395. BOOL Enable);
  21396. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  21397. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  21398. ID3D12Device14 * This,
  21399. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  21400. _In_opt_ ID3D12RootSignature *pRootSignature,
  21401. REFIID riid,
  21402. _COM_Outptr_opt_ void **ppvCommandSignature);
  21403. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  21404. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  21405. ID3D12Device14 * This,
  21406. _In_ ID3D12Resource *pTiledResource,
  21407. _Out_opt_ UINT *pNumTilesForEntireResource,
  21408. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  21409. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  21410. _Inout_opt_ UINT *pNumSubresourceTilings,
  21411. _In_ UINT FirstSubresourceTilingToGet,
  21412. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  21413. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  21414. #if !defined(_WIN32)
  21415. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  21416. ID3D12Device14 * This);
  21417. #else
  21418. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  21419. ID3D12Device14 * This,
  21420. LUID * RetVal);
  21421. #endif
  21422. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  21423. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  21424. ID3D12Device14 * This,
  21425. _In_reads_(BlobLength) const void *pLibraryBlob,
  21426. SIZE_T BlobLength,
  21427. REFIID riid,
  21428. _COM_Outptr_ void **ppPipelineLibrary);
  21429. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  21430. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  21431. ID3D12Device14 * This,
  21432. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  21433. _In_reads_(NumFences) const UINT64 *pFenceValues,
  21434. UINT NumFences,
  21435. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  21436. HANDLE hEvent);
  21437. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  21438. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  21439. ID3D12Device14 * This,
  21440. UINT NumObjects,
  21441. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  21442. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  21443. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  21444. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  21445. ID3D12Device14 * This,
  21446. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  21447. REFIID riid,
  21448. _COM_Outptr_ void **ppPipelineState);
  21449. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  21450. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  21451. ID3D12Device14 * This,
  21452. _In_ const void *pAddress,
  21453. REFIID riid,
  21454. _COM_Outptr_ void **ppvHeap);
  21455. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  21456. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  21457. ID3D12Device14 * This,
  21458. _In_ HANDLE hFileMapping,
  21459. REFIID riid,
  21460. _COM_Outptr_ void **ppvHeap);
  21461. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  21462. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  21463. ID3D12Device14 * This,
  21464. D3D12_RESIDENCY_FLAGS Flags,
  21465. UINT NumObjects,
  21466. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  21467. _In_ ID3D12Fence *pFenceToSignal,
  21468. UINT64 FenceValueToSignal);
  21469. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  21470. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  21471. ID3D12Device14 * This,
  21472. _In_ UINT nodeMask,
  21473. _In_ D3D12_COMMAND_LIST_TYPE type,
  21474. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  21475. REFIID riid,
  21476. _COM_Outptr_ void **ppCommandList);
  21477. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  21478. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  21479. ID3D12Device14 * This,
  21480. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  21481. _In_ REFIID riid,
  21482. _COM_Outptr_ void **ppSession);
  21483. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  21484. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  21485. ID3D12Device14 * This,
  21486. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  21487. D3D12_HEAP_FLAGS HeapFlags,
  21488. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21489. D3D12_RESOURCE_STATES InitialResourceState,
  21490. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21491. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21492. REFIID riidResource,
  21493. _COM_Outptr_opt_ void **ppvResource);
  21494. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  21495. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  21496. ID3D12Device14 * This,
  21497. _In_ const D3D12_HEAP_DESC *pDesc,
  21498. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21499. REFIID riid,
  21500. _COM_Outptr_opt_ void **ppvHeap);
  21501. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  21502. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  21503. ID3D12Device14 * This,
  21504. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21505. D3D12_RESOURCE_STATES InitialState,
  21506. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21507. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21508. REFIID riid,
  21509. _COM_Outptr_opt_ void **ppvResource);
  21510. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  21511. #if !defined(_WIN32)
  21512. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  21513. ID3D12Device14 * This,
  21514. UINT visibleMask,
  21515. UINT numResourceDescs,
  21516. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  21517. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21518. #else
  21519. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  21520. ID3D12Device14 * This,
  21521. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  21522. UINT visibleMask,
  21523. UINT numResourceDescs,
  21524. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  21525. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21526. #endif
  21527. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  21528. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  21529. ID3D12Device14 * This,
  21530. _In_ ID3D12LifetimeOwner *pOwner,
  21531. REFIID riid,
  21532. _COM_Outptr_ void **ppvTracker);
  21533. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  21534. void ( STDMETHODCALLTYPE *RemoveDevice )(
  21535. ID3D12Device14 * This);
  21536. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  21537. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  21538. ID3D12Device14 * This,
  21539. _Inout_ UINT *pNumMetaCommands,
  21540. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  21541. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  21542. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  21543. ID3D12Device14 * This,
  21544. _In_ REFGUID CommandId,
  21545. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  21546. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  21547. _Inout_ UINT *pParameterCount,
  21548. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  21549. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  21550. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  21551. ID3D12Device14 * This,
  21552. _In_ REFGUID CommandId,
  21553. _In_ UINT NodeMask,
  21554. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  21555. _In_ SIZE_T CreationParametersDataSizeInBytes,
  21556. REFIID riid,
  21557. _COM_Outptr_ void **ppMetaCommand);
  21558. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  21559. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  21560. ID3D12Device14 * This,
  21561. const D3D12_STATE_OBJECT_DESC *pDesc,
  21562. REFIID riid,
  21563. _COM_Outptr_ void **ppStateObject);
  21564. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  21565. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  21566. ID3D12Device14 * This,
  21567. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  21568. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  21569. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  21570. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  21571. ID3D12Device14 * This,
  21572. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  21573. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  21574. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  21575. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  21576. ID3D12Device14 * This,
  21577. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  21578. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  21579. _In_opt_ HANDLE hEventToSignalUponCompletion,
  21580. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  21581. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  21582. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  21583. ID3D12Device14 * This,
  21584. const D3D12_STATE_OBJECT_DESC *pAddition,
  21585. ID3D12StateObject *pStateObjectToGrowFrom,
  21586. REFIID riid,
  21587. _COM_Outptr_ void **ppNewStateObject);
  21588. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  21589. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  21590. ID3D12Device14 * This,
  21591. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  21592. _In_ REFIID riid,
  21593. _COM_Outptr_ void **ppSession);
  21594. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  21595. #if !defined(_WIN32)
  21596. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  21597. ID3D12Device14 * This,
  21598. UINT visibleMask,
  21599. UINT numResourceDescs,
  21600. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  21601. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21602. #else
  21603. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  21604. ID3D12Device14 * This,
  21605. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  21606. UINT visibleMask,
  21607. UINT numResourceDescs,
  21608. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  21609. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21610. #endif
  21611. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  21612. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  21613. ID3D12Device14 * This,
  21614. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  21615. D3D12_HEAP_FLAGS HeapFlags,
  21616. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  21617. D3D12_RESOURCE_STATES InitialResourceState,
  21618. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21619. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21620. REFIID riidResource,
  21621. _COM_Outptr_opt_ void **ppvResource);
  21622. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  21623. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  21624. ID3D12Device14 * This,
  21625. _In_ ID3D12Heap *pHeap,
  21626. UINT64 HeapOffset,
  21627. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  21628. D3D12_RESOURCE_STATES InitialState,
  21629. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21630. REFIID riid,
  21631. _COM_Outptr_opt_ void **ppvResource);
  21632. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  21633. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  21634. ID3D12Device14 * This,
  21635. _In_opt_ ID3D12Resource *pTargetedResource,
  21636. _In_opt_ ID3D12Resource *pFeedbackResource,
  21637. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21638. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  21639. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  21640. ID3D12Device14 * This,
  21641. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  21642. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  21643. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  21644. UINT64 BaseOffset,
  21645. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  21646. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  21647. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  21648. _Out_opt_ UINT64 *pTotalBytes);
  21649. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  21650. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  21651. ID3D12Device14 * This,
  21652. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  21653. REFIID riid,
  21654. _COM_Outptr_opt_ void **ppvSession);
  21655. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  21656. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  21657. ID3D12Device14 * This,
  21658. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  21659. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  21660. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  21661. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  21662. ID3D12Device14 * This,
  21663. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  21664. REFIID CreatorID,
  21665. REFIID riid,
  21666. _COM_Outptr_ void **ppCommandQueue);
  21667. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  21668. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  21669. ID3D12Device14 * This,
  21670. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  21671. D3D12_HEAP_FLAGS HeapFlags,
  21672. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  21673. D3D12_BARRIER_LAYOUT InitialLayout,
  21674. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21675. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21676. UINT32 NumCastableFormats,
  21677. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  21678. REFIID riidResource,
  21679. _COM_Outptr_opt_ void **ppvResource);
  21680. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  21681. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  21682. ID3D12Device14 * This,
  21683. _In_ ID3D12Heap *pHeap,
  21684. UINT64 HeapOffset,
  21685. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  21686. D3D12_BARRIER_LAYOUT InitialLayout,
  21687. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21688. UINT32 NumCastableFormats,
  21689. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  21690. REFIID riid,
  21691. _COM_Outptr_opt_ void **ppvResource);
  21692. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  21693. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  21694. ID3D12Device14 * This,
  21695. _In_ const D3D12_RESOURCE_DESC *pDesc,
  21696. D3D12_BARRIER_LAYOUT InitialLayout,
  21697. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  21698. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  21699. UINT32 NumCastableFormats,
  21700. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  21701. REFIID riid,
  21702. _COM_Outptr_opt_ void **ppvResource);
  21703. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  21704. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  21705. ID3D12Device14 * This,
  21706. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  21707. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  21708. DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3)
  21709. #if !defined(_WIN32)
  21710. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  21711. ID3D12Device14 * This,
  21712. UINT visibleMask,
  21713. UINT numResourceDescs,
  21714. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  21715. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  21716. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  21717. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21718. #else
  21719. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  21720. ID3D12Device14 * This,
  21721. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  21722. UINT visibleMask,
  21723. UINT numResourceDescs,
  21724. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  21725. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  21726. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  21727. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  21728. #endif
  21729. DECLSPEC_XFGVIRT(ID3D12Device13, OpenExistingHeapFromAddress1)
  21730. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress1 )(
  21731. ID3D12Device14 * This,
  21732. _In_ const void *pAddress,
  21733. SIZE_T size,
  21734. REFIID riid,
  21735. _COM_Outptr_ void **ppvHeap);
  21736. DECLSPEC_XFGVIRT(ID3D12Device14, CreateRootSignatureFromSubobjectInLibrary)
  21737. HRESULT ( STDMETHODCALLTYPE *CreateRootSignatureFromSubobjectInLibrary )(
  21738. ID3D12Device14 * This,
  21739. _In_ UINT nodeMask,
  21740. _In_reads_(blobLengthInBytes) const void *pLibraryBlob,
  21741. _In_ SIZE_T blobLengthInBytes,
  21742. _In_opt_ LPCWSTR subobjectName,
  21743. REFIID riid,
  21744. _COM_Outptr_ void **ppvRootSignature);
  21745. END_INTERFACE
  21746. } ID3D12Device14Vtbl;
  21747. interface ID3D12Device14
  21748. {
  21749. CONST_VTBL struct ID3D12Device14Vtbl *lpVtbl;
  21750. };
  21751. #ifdef COBJMACROS
  21752. #define ID3D12Device14_QueryInterface(This,riid,ppvObject) \
  21753. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  21754. #define ID3D12Device14_AddRef(This) \
  21755. ( (This)->lpVtbl -> AddRef(This) )
  21756. #define ID3D12Device14_Release(This) \
  21757. ( (This)->lpVtbl -> Release(This) )
  21758. #define ID3D12Device14_GetPrivateData(This,guid,pDataSize,pData) \
  21759. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  21760. #define ID3D12Device14_SetPrivateData(This,guid,DataSize,pData) \
  21761. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  21762. #define ID3D12Device14_SetPrivateDataInterface(This,guid,pData) \
  21763. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  21764. #define ID3D12Device14_SetName(This,Name) \
  21765. ( (This)->lpVtbl -> SetName(This,Name) )
  21766. #define ID3D12Device14_GetNodeCount(This) \
  21767. ( (This)->lpVtbl -> GetNodeCount(This) )
  21768. #define ID3D12Device14_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  21769. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  21770. #define ID3D12Device14_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  21771. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  21772. #define ID3D12Device14_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  21773. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  21774. #define ID3D12Device14_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  21775. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  21776. #define ID3D12Device14_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  21777. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  21778. #define ID3D12Device14_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  21779. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  21780. #define ID3D12Device14_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  21781. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  21782. #define ID3D12Device14_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  21783. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  21784. #define ID3D12Device14_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  21785. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  21786. #define ID3D12Device14_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  21787. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  21788. #define ID3D12Device14_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  21789. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  21790. #define ID3D12Device14_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  21791. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  21792. #define ID3D12Device14_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  21793. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  21794. #define ID3D12Device14_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  21795. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  21796. #define ID3D12Device14_CreateSampler(This,pDesc,DestDescriptor) \
  21797. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  21798. #define ID3D12Device14_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  21799. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  21800. #define ID3D12Device14_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  21801. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  21802. #if !defined(_WIN32)
  21803. #define ID3D12Device14_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  21804. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  21805. #else
  21806. #define ID3D12Device14_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  21807. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  21808. #endif
  21809. #if !defined(_WIN32)
  21810. #define ID3D12Device14_GetCustomHeapProperties(This,nodeMask,heapType) \
  21811. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  21812. #else
  21813. #define ID3D12Device14_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  21814. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  21815. #endif
  21816. #define ID3D12Device14_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  21817. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  21818. #define ID3D12Device14_CreateHeap(This,pDesc,riid,ppvHeap) \
  21819. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  21820. #define ID3D12Device14_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  21821. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  21822. #define ID3D12Device14_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  21823. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  21824. #define ID3D12Device14_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  21825. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  21826. #define ID3D12Device14_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  21827. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  21828. #define ID3D12Device14_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  21829. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  21830. #define ID3D12Device14_MakeResident(This,NumObjects,ppObjects) \
  21831. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  21832. #define ID3D12Device14_Evict(This,NumObjects,ppObjects) \
  21833. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  21834. #define ID3D12Device14_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  21835. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  21836. #define ID3D12Device14_GetDeviceRemovedReason(This) \
  21837. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  21838. #define ID3D12Device14_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  21839. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  21840. #define ID3D12Device14_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  21841. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  21842. #define ID3D12Device14_SetStablePowerState(This,Enable) \
  21843. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  21844. #define ID3D12Device14_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  21845. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  21846. #define ID3D12Device14_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  21847. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  21848. #if !defined(_WIN32)
  21849. #define ID3D12Device14_GetAdapterLuid(This) \
  21850. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  21851. #else
  21852. #define ID3D12Device14_GetAdapterLuid(This,RetVal) \
  21853. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  21854. #endif
  21855. #define ID3D12Device14_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  21856. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  21857. #define ID3D12Device14_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  21858. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  21859. #define ID3D12Device14_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  21860. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  21861. #define ID3D12Device14_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  21862. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  21863. #define ID3D12Device14_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  21864. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  21865. #define ID3D12Device14_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  21866. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  21867. #define ID3D12Device14_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  21868. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  21869. #define ID3D12Device14_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  21870. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  21871. #define ID3D12Device14_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  21872. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  21873. #define ID3D12Device14_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  21874. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  21875. #define ID3D12Device14_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  21876. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  21877. #define ID3D12Device14_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  21878. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  21879. #if !defined(_WIN32)
  21880. #define ID3D12Device14_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21881. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21882. #else
  21883. #define ID3D12Device14_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21884. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21885. #endif
  21886. #define ID3D12Device14_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  21887. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  21888. #define ID3D12Device14_RemoveDevice(This) \
  21889. ( (This)->lpVtbl -> RemoveDevice(This) )
  21890. #define ID3D12Device14_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  21891. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  21892. #define ID3D12Device14_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  21893. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  21894. #define ID3D12Device14_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  21895. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  21896. #define ID3D12Device14_CreateStateObject(This,pDesc,riid,ppStateObject) \
  21897. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  21898. #define ID3D12Device14_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  21899. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  21900. #define ID3D12Device14_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  21901. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  21902. #define ID3D12Device14_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  21903. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  21904. #define ID3D12Device14_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  21905. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  21906. #define ID3D12Device14_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  21907. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  21908. #if !defined(_WIN32)
  21909. #define ID3D12Device14_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21910. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21911. #else
  21912. #define ID3D12Device14_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  21913. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  21914. #endif
  21915. #define ID3D12Device14_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  21916. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  21917. #define ID3D12Device14_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  21918. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  21919. #define ID3D12Device14_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  21920. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  21921. #define ID3D12Device14_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  21922. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  21923. #define ID3D12Device14_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  21924. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  21925. #define ID3D12Device14_ShaderCacheControl(This,Kinds,Control) \
  21926. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  21927. #define ID3D12Device14_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  21928. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  21929. #define ID3D12Device14_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  21930. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  21931. #define ID3D12Device14_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  21932. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  21933. #define ID3D12Device14_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  21934. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  21935. #define ID3D12Device14_CreateSampler2(This,pDesc,DestDescriptor) \
  21936. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  21937. #if !defined(_WIN32)
  21938. #define ID3D12Device14_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  21939. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  21940. #else
  21941. #define ID3D12Device14_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  21942. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  21943. #endif
  21944. #define ID3D12Device14_OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) \
  21945. ( (This)->lpVtbl -> OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) )
  21946. #define ID3D12Device14_CreateRootSignatureFromSubobjectInLibrary(This,nodeMask,pLibraryBlob,blobLengthInBytes,subobjectName,riid,ppvRootSignature) \
  21947. ( (This)->lpVtbl -> CreateRootSignatureFromSubobjectInLibrary(This,nodeMask,pLibraryBlob,blobLengthInBytes,subobjectName,riid,ppvRootSignature) )
  21948. #endif /* COBJMACROS */
  21949. #endif /* C style interface */
  21950. #endif /* __ID3D12Device14_INTERFACE_DEFINED__ */
  21951. #ifndef __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__
  21952. #define __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__
  21953. /* interface ID3D12VirtualizationGuestDevice */
  21954. /* [unique][local][object][uuid] */
  21955. EXTERN_C const IID IID_ID3D12VirtualizationGuestDevice;
  21956. #if defined(__cplusplus) && !defined(CINTERFACE)
  21957. MIDL_INTERFACE("bc66d368-7373-4943-8757-fc87dc79e476")
  21958. ID3D12VirtualizationGuestDevice : public IUnknown
  21959. {
  21960. public:
  21961. virtual HRESULT STDMETHODCALLTYPE ShareWithHost(
  21962. _In_ ID3D12DeviceChild *pObject,
  21963. _Out_ HANDLE *pHandle) = 0;
  21964. virtual HRESULT STDMETHODCALLTYPE CreateFenceFd(
  21965. _In_ ID3D12Fence *pFence,
  21966. UINT64 FenceValue,
  21967. _Out_ int *pFenceFd) = 0;
  21968. };
  21969. #else /* C style interface */
  21970. typedef struct ID3D12VirtualizationGuestDeviceVtbl
  21971. {
  21972. BEGIN_INTERFACE
  21973. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  21974. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  21975. ID3D12VirtualizationGuestDevice * This,
  21976. REFIID riid,
  21977. _COM_Outptr_ void **ppvObject);
  21978. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  21979. ULONG ( STDMETHODCALLTYPE *AddRef )(
  21980. ID3D12VirtualizationGuestDevice * This);
  21981. DECLSPEC_XFGVIRT(IUnknown, Release)
  21982. ULONG ( STDMETHODCALLTYPE *Release )(
  21983. ID3D12VirtualizationGuestDevice * This);
  21984. DECLSPEC_XFGVIRT(ID3D12VirtualizationGuestDevice, ShareWithHost)
  21985. HRESULT ( STDMETHODCALLTYPE *ShareWithHost )(
  21986. ID3D12VirtualizationGuestDevice * This,
  21987. _In_ ID3D12DeviceChild *pObject,
  21988. _Out_ HANDLE *pHandle);
  21989. DECLSPEC_XFGVIRT(ID3D12VirtualizationGuestDevice, CreateFenceFd)
  21990. HRESULT ( STDMETHODCALLTYPE *CreateFenceFd )(
  21991. ID3D12VirtualizationGuestDevice * This,
  21992. _In_ ID3D12Fence *pFence,
  21993. UINT64 FenceValue,
  21994. _Out_ int *pFenceFd);
  21995. END_INTERFACE
  21996. } ID3D12VirtualizationGuestDeviceVtbl;
  21997. interface ID3D12VirtualizationGuestDevice
  21998. {
  21999. CONST_VTBL struct ID3D12VirtualizationGuestDeviceVtbl *lpVtbl;
  22000. };
  22001. #ifdef COBJMACROS
  22002. #define ID3D12VirtualizationGuestDevice_QueryInterface(This,riid,ppvObject) \
  22003. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22004. #define ID3D12VirtualizationGuestDevice_AddRef(This) \
  22005. ( (This)->lpVtbl -> AddRef(This) )
  22006. #define ID3D12VirtualizationGuestDevice_Release(This) \
  22007. ( (This)->lpVtbl -> Release(This) )
  22008. #define ID3D12VirtualizationGuestDevice_ShareWithHost(This,pObject,pHandle) \
  22009. ( (This)->lpVtbl -> ShareWithHost(This,pObject,pHandle) )
  22010. #define ID3D12VirtualizationGuestDevice_CreateFenceFd(This,pFence,FenceValue,pFenceFd) \
  22011. ( (This)->lpVtbl -> CreateFenceFd(This,pFence,FenceValue,pFenceFd) )
  22012. #endif /* COBJMACROS */
  22013. #endif /* C style interface */
  22014. #endif /* __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__ */
  22015. #ifndef __ID3D12Tools_INTERFACE_DEFINED__
  22016. #define __ID3D12Tools_INTERFACE_DEFINED__
  22017. /* interface ID3D12Tools */
  22018. /* [unique][local][object][uuid] */
  22019. EXTERN_C const IID IID_ID3D12Tools;
  22020. #if defined(__cplusplus) && !defined(CINTERFACE)
  22021. MIDL_INTERFACE("7071e1f0-e84b-4b33-974f-12fa49de65c5")
  22022. ID3D12Tools : public IUnknown
  22023. {
  22024. public:
  22025. virtual void STDMETHODCALLTYPE EnableShaderInstrumentation(
  22026. BOOL bEnable) = 0;
  22027. virtual BOOL STDMETHODCALLTYPE ShaderInstrumentationEnabled( void) = 0;
  22028. };
  22029. #else /* C style interface */
  22030. typedef struct ID3D12ToolsVtbl
  22031. {
  22032. BEGIN_INTERFACE
  22033. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22034. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22035. ID3D12Tools * This,
  22036. REFIID riid,
  22037. _COM_Outptr_ void **ppvObject);
  22038. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22039. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22040. ID3D12Tools * This);
  22041. DECLSPEC_XFGVIRT(IUnknown, Release)
  22042. ULONG ( STDMETHODCALLTYPE *Release )(
  22043. ID3D12Tools * This);
  22044. DECLSPEC_XFGVIRT(ID3D12Tools, EnableShaderInstrumentation)
  22045. void ( STDMETHODCALLTYPE *EnableShaderInstrumentation )(
  22046. ID3D12Tools * This,
  22047. BOOL bEnable);
  22048. DECLSPEC_XFGVIRT(ID3D12Tools, ShaderInstrumentationEnabled)
  22049. BOOL ( STDMETHODCALLTYPE *ShaderInstrumentationEnabled )(
  22050. ID3D12Tools * This);
  22051. END_INTERFACE
  22052. } ID3D12ToolsVtbl;
  22053. interface ID3D12Tools
  22054. {
  22055. CONST_VTBL struct ID3D12ToolsVtbl *lpVtbl;
  22056. };
  22057. #ifdef COBJMACROS
  22058. #define ID3D12Tools_QueryInterface(This,riid,ppvObject) \
  22059. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22060. #define ID3D12Tools_AddRef(This) \
  22061. ( (This)->lpVtbl -> AddRef(This) )
  22062. #define ID3D12Tools_Release(This) \
  22063. ( (This)->lpVtbl -> Release(This) )
  22064. #define ID3D12Tools_EnableShaderInstrumentation(This,bEnable) \
  22065. ( (This)->lpVtbl -> EnableShaderInstrumentation(This,bEnable) )
  22066. #define ID3D12Tools_ShaderInstrumentationEnabled(This) \
  22067. ( (This)->lpVtbl -> ShaderInstrumentationEnabled(This) )
  22068. #endif /* COBJMACROS */
  22069. #endif /* C style interface */
  22070. #endif /* __ID3D12Tools_INTERFACE_DEFINED__ */
  22071. #ifndef __ID3D12Tools1_INTERFACE_DEFINED__
  22072. #define __ID3D12Tools1_INTERFACE_DEFINED__
  22073. /* interface ID3D12Tools1 */
  22074. /* [unique][local][object][uuid] */
  22075. EXTERN_C const IID IID_ID3D12Tools1;
  22076. #if defined(__cplusplus) && !defined(CINTERFACE)
  22077. MIDL_INTERFACE("e4fbc019-dd3c-43e1-8f32-7f649575f0a0")
  22078. ID3D12Tools1 : public ID3D12Tools
  22079. {
  22080. public:
  22081. virtual HRESULT STDMETHODCALLTYPE ReserveGPUVARangesAtCreate(
  22082. _In_reads_(uiNumRanges) D3D12_GPU_VIRTUAL_ADDRESS_RANGE *pRanges,
  22083. _In_ UINT uiNumRanges) = 0;
  22084. virtual void STDMETHODCALLTYPE ClearReservedGPUVARangesList( void) = 0;
  22085. };
  22086. #else /* C style interface */
  22087. typedef struct ID3D12Tools1Vtbl
  22088. {
  22089. BEGIN_INTERFACE
  22090. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22091. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22092. ID3D12Tools1 * This,
  22093. REFIID riid,
  22094. _COM_Outptr_ void **ppvObject);
  22095. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22096. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22097. ID3D12Tools1 * This);
  22098. DECLSPEC_XFGVIRT(IUnknown, Release)
  22099. ULONG ( STDMETHODCALLTYPE *Release )(
  22100. ID3D12Tools1 * This);
  22101. DECLSPEC_XFGVIRT(ID3D12Tools, EnableShaderInstrumentation)
  22102. void ( STDMETHODCALLTYPE *EnableShaderInstrumentation )(
  22103. ID3D12Tools1 * This,
  22104. BOOL bEnable);
  22105. DECLSPEC_XFGVIRT(ID3D12Tools, ShaderInstrumentationEnabled)
  22106. BOOL ( STDMETHODCALLTYPE *ShaderInstrumentationEnabled )(
  22107. ID3D12Tools1 * This);
  22108. DECLSPEC_XFGVIRT(ID3D12Tools1, ReserveGPUVARangesAtCreate)
  22109. HRESULT ( STDMETHODCALLTYPE *ReserveGPUVARangesAtCreate )(
  22110. ID3D12Tools1 * This,
  22111. _In_reads_(uiNumRanges) D3D12_GPU_VIRTUAL_ADDRESS_RANGE *pRanges,
  22112. _In_ UINT uiNumRanges);
  22113. DECLSPEC_XFGVIRT(ID3D12Tools1, ClearReservedGPUVARangesList)
  22114. void ( STDMETHODCALLTYPE *ClearReservedGPUVARangesList )(
  22115. ID3D12Tools1 * This);
  22116. END_INTERFACE
  22117. } ID3D12Tools1Vtbl;
  22118. interface ID3D12Tools1
  22119. {
  22120. CONST_VTBL struct ID3D12Tools1Vtbl *lpVtbl;
  22121. };
  22122. #ifdef COBJMACROS
  22123. #define ID3D12Tools1_QueryInterface(This,riid,ppvObject) \
  22124. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22125. #define ID3D12Tools1_AddRef(This) \
  22126. ( (This)->lpVtbl -> AddRef(This) )
  22127. #define ID3D12Tools1_Release(This) \
  22128. ( (This)->lpVtbl -> Release(This) )
  22129. #define ID3D12Tools1_EnableShaderInstrumentation(This,bEnable) \
  22130. ( (This)->lpVtbl -> EnableShaderInstrumentation(This,bEnable) )
  22131. #define ID3D12Tools1_ShaderInstrumentationEnabled(This) \
  22132. ( (This)->lpVtbl -> ShaderInstrumentationEnabled(This) )
  22133. #define ID3D12Tools1_ReserveGPUVARangesAtCreate(This,pRanges,uiNumRanges) \
  22134. ( (This)->lpVtbl -> ReserveGPUVARangesAtCreate(This,pRanges,uiNumRanges) )
  22135. #define ID3D12Tools1_ClearReservedGPUVARangesList(This) \
  22136. ( (This)->lpVtbl -> ClearReservedGPUVARangesList(This) )
  22137. #endif /* COBJMACROS */
  22138. #endif /* C style interface */
  22139. #endif /* __ID3D12Tools1_INTERFACE_DEFINED__ */
  22140. #ifndef __ID3D12Tools2_INTERFACE_DEFINED__
  22141. #define __ID3D12Tools2_INTERFACE_DEFINED__
  22142. /* interface ID3D12Tools2 */
  22143. /* [unique][local][object][uuid] */
  22144. EXTERN_C const IID IID_ID3D12Tools2;
  22145. #if defined(__cplusplus) && !defined(CINTERFACE)
  22146. MIDL_INTERFACE("01d393c5-c9b0-42a1-958c-c26b02d4d097")
  22147. ID3D12Tools2 : public ID3D12Tools1
  22148. {
  22149. public:
  22150. virtual HRESULT STDMETHODCALLTYPE SetApplicationSpecificDriverState(
  22151. _In_ IUnknown *pAdapter,
  22152. _In_opt_ ID3DBlob *pBlob) = 0;
  22153. };
  22154. #else /* C style interface */
  22155. typedef struct ID3D12Tools2Vtbl
  22156. {
  22157. BEGIN_INTERFACE
  22158. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22159. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22160. ID3D12Tools2 * This,
  22161. REFIID riid,
  22162. _COM_Outptr_ void **ppvObject);
  22163. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22164. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22165. ID3D12Tools2 * This);
  22166. DECLSPEC_XFGVIRT(IUnknown, Release)
  22167. ULONG ( STDMETHODCALLTYPE *Release )(
  22168. ID3D12Tools2 * This);
  22169. DECLSPEC_XFGVIRT(ID3D12Tools, EnableShaderInstrumentation)
  22170. void ( STDMETHODCALLTYPE *EnableShaderInstrumentation )(
  22171. ID3D12Tools2 * This,
  22172. BOOL bEnable);
  22173. DECLSPEC_XFGVIRT(ID3D12Tools, ShaderInstrumentationEnabled)
  22174. BOOL ( STDMETHODCALLTYPE *ShaderInstrumentationEnabled )(
  22175. ID3D12Tools2 * This);
  22176. DECLSPEC_XFGVIRT(ID3D12Tools1, ReserveGPUVARangesAtCreate)
  22177. HRESULT ( STDMETHODCALLTYPE *ReserveGPUVARangesAtCreate )(
  22178. ID3D12Tools2 * This,
  22179. _In_reads_(uiNumRanges) D3D12_GPU_VIRTUAL_ADDRESS_RANGE *pRanges,
  22180. _In_ UINT uiNumRanges);
  22181. DECLSPEC_XFGVIRT(ID3D12Tools1, ClearReservedGPUVARangesList)
  22182. void ( STDMETHODCALLTYPE *ClearReservedGPUVARangesList )(
  22183. ID3D12Tools2 * This);
  22184. DECLSPEC_XFGVIRT(ID3D12Tools2, SetApplicationSpecificDriverState)
  22185. HRESULT ( STDMETHODCALLTYPE *SetApplicationSpecificDriverState )(
  22186. ID3D12Tools2 * This,
  22187. _In_ IUnknown *pAdapter,
  22188. _In_opt_ ID3DBlob *pBlob);
  22189. END_INTERFACE
  22190. } ID3D12Tools2Vtbl;
  22191. interface ID3D12Tools2
  22192. {
  22193. CONST_VTBL struct ID3D12Tools2Vtbl *lpVtbl;
  22194. };
  22195. #ifdef COBJMACROS
  22196. #define ID3D12Tools2_QueryInterface(This,riid,ppvObject) \
  22197. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22198. #define ID3D12Tools2_AddRef(This) \
  22199. ( (This)->lpVtbl -> AddRef(This) )
  22200. #define ID3D12Tools2_Release(This) \
  22201. ( (This)->lpVtbl -> Release(This) )
  22202. #define ID3D12Tools2_EnableShaderInstrumentation(This,bEnable) \
  22203. ( (This)->lpVtbl -> EnableShaderInstrumentation(This,bEnable) )
  22204. #define ID3D12Tools2_ShaderInstrumentationEnabled(This) \
  22205. ( (This)->lpVtbl -> ShaderInstrumentationEnabled(This) )
  22206. #define ID3D12Tools2_ReserveGPUVARangesAtCreate(This,pRanges,uiNumRanges) \
  22207. ( (This)->lpVtbl -> ReserveGPUVARangesAtCreate(This,pRanges,uiNumRanges) )
  22208. #define ID3D12Tools2_ClearReservedGPUVARangesList(This) \
  22209. ( (This)->lpVtbl -> ClearReservedGPUVARangesList(This) )
  22210. #define ID3D12Tools2_SetApplicationSpecificDriverState(This,pAdapter,pBlob) \
  22211. ( (This)->lpVtbl -> SetApplicationSpecificDriverState(This,pAdapter,pBlob) )
  22212. #endif /* COBJMACROS */
  22213. #endif /* C style interface */
  22214. #endif /* __ID3D12Tools2_INTERFACE_DEFINED__ */
  22215. #ifndef __ID3D12PageableTools_INTERFACE_DEFINED__
  22216. #define __ID3D12PageableTools_INTERFACE_DEFINED__
  22217. /* interface ID3D12PageableTools */
  22218. /* [unique][local][object][uuid] */
  22219. EXTERN_C const IID IID_ID3D12PageableTools;
  22220. #if defined(__cplusplus) && !defined(CINTERFACE)
  22221. MIDL_INTERFACE("8f1359db-d8d1-42f9-b5cf-79f4cbad0d3d")
  22222. ID3D12PageableTools : public IUnknown
  22223. {
  22224. public:
  22225. virtual HRESULT STDMETHODCALLTYPE GetAllocation(
  22226. _Inout_ D3D12_GPU_VIRTUAL_ADDRESS_RANGE *pAllocation) = 0;
  22227. };
  22228. #else /* C style interface */
  22229. typedef struct ID3D12PageableToolsVtbl
  22230. {
  22231. BEGIN_INTERFACE
  22232. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22233. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22234. ID3D12PageableTools * This,
  22235. REFIID riid,
  22236. _COM_Outptr_ void **ppvObject);
  22237. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22238. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22239. ID3D12PageableTools * This);
  22240. DECLSPEC_XFGVIRT(IUnknown, Release)
  22241. ULONG ( STDMETHODCALLTYPE *Release )(
  22242. ID3D12PageableTools * This);
  22243. DECLSPEC_XFGVIRT(ID3D12PageableTools, GetAllocation)
  22244. HRESULT ( STDMETHODCALLTYPE *GetAllocation )(
  22245. ID3D12PageableTools * This,
  22246. _Inout_ D3D12_GPU_VIRTUAL_ADDRESS_RANGE *pAllocation);
  22247. END_INTERFACE
  22248. } ID3D12PageableToolsVtbl;
  22249. interface ID3D12PageableTools
  22250. {
  22251. CONST_VTBL struct ID3D12PageableToolsVtbl *lpVtbl;
  22252. };
  22253. #ifdef COBJMACROS
  22254. #define ID3D12PageableTools_QueryInterface(This,riid,ppvObject) \
  22255. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22256. #define ID3D12PageableTools_AddRef(This) \
  22257. ( (This)->lpVtbl -> AddRef(This) )
  22258. #define ID3D12PageableTools_Release(This) \
  22259. ( (This)->lpVtbl -> Release(This) )
  22260. #define ID3D12PageableTools_GetAllocation(This,pAllocation) \
  22261. ( (This)->lpVtbl -> GetAllocation(This,pAllocation) )
  22262. #endif /* COBJMACROS */
  22263. #endif /* C style interface */
  22264. #endif /* __ID3D12PageableTools_INTERFACE_DEFINED__ */
  22265. #ifndef __ID3D12DeviceTools_INTERFACE_DEFINED__
  22266. #define __ID3D12DeviceTools_INTERFACE_DEFINED__
  22267. /* interface ID3D12DeviceTools */
  22268. /* [unique][local][object][uuid] */
  22269. EXTERN_C const IID IID_ID3D12DeviceTools;
  22270. #if defined(__cplusplus) && !defined(CINTERFACE)
  22271. MIDL_INTERFACE("2ea68e9c-19c3-4e47-a109-6cdadff0aca9")
  22272. ID3D12DeviceTools : public IUnknown
  22273. {
  22274. public:
  22275. virtual void STDMETHODCALLTYPE SetNextAllocationAddress(
  22276. _In_ D3D12_GPU_VIRTUAL_ADDRESS nextAllocationVirtualAddress) = 0;
  22277. };
  22278. #else /* C style interface */
  22279. typedef struct ID3D12DeviceToolsVtbl
  22280. {
  22281. BEGIN_INTERFACE
  22282. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22283. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22284. ID3D12DeviceTools * This,
  22285. REFIID riid,
  22286. _COM_Outptr_ void **ppvObject);
  22287. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22288. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22289. ID3D12DeviceTools * This);
  22290. DECLSPEC_XFGVIRT(IUnknown, Release)
  22291. ULONG ( STDMETHODCALLTYPE *Release )(
  22292. ID3D12DeviceTools * This);
  22293. DECLSPEC_XFGVIRT(ID3D12DeviceTools, SetNextAllocationAddress)
  22294. void ( STDMETHODCALLTYPE *SetNextAllocationAddress )(
  22295. ID3D12DeviceTools * This,
  22296. _In_ D3D12_GPU_VIRTUAL_ADDRESS nextAllocationVirtualAddress);
  22297. END_INTERFACE
  22298. } ID3D12DeviceToolsVtbl;
  22299. interface ID3D12DeviceTools
  22300. {
  22301. CONST_VTBL struct ID3D12DeviceToolsVtbl *lpVtbl;
  22302. };
  22303. #ifdef COBJMACROS
  22304. #define ID3D12DeviceTools_QueryInterface(This,riid,ppvObject) \
  22305. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22306. #define ID3D12DeviceTools_AddRef(This) \
  22307. ( (This)->lpVtbl -> AddRef(This) )
  22308. #define ID3D12DeviceTools_Release(This) \
  22309. ( (This)->lpVtbl -> Release(This) )
  22310. #define ID3D12DeviceTools_SetNextAllocationAddress(This,nextAllocationVirtualAddress) \
  22311. ( (This)->lpVtbl -> SetNextAllocationAddress(This,nextAllocationVirtualAddress) )
  22312. #endif /* COBJMACROS */
  22313. #endif /* C style interface */
  22314. #endif /* __ID3D12DeviceTools_INTERFACE_DEFINED__ */
  22315. /* interface __MIDL_itf_d3d12_0000_0066 */
  22316. /* [local] */
  22317. typedef
  22318. enum D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS
  22319. {
  22320. D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_UNKNOWN = 1,
  22321. D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_USED = 2,
  22322. D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_IGNORED = 3,
  22323. D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_NOT_SPECIFIED = 4
  22324. } D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS;
  22325. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0066_v0_0_c_ifspec;
  22326. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0066_v0_0_s_ifspec;
  22327. #ifndef __ID3D12DeviceTools1_INTERFACE_DEFINED__
  22328. #define __ID3D12DeviceTools1_INTERFACE_DEFINED__
  22329. /* interface ID3D12DeviceTools1 */
  22330. /* [unique][local][object][uuid] */
  22331. EXTERN_C const IID IID_ID3D12DeviceTools1;
  22332. #if defined(__cplusplus) && !defined(CINTERFACE)
  22333. MIDL_INTERFACE("e30e9fc7-e641-4d6e-8a81-9dd9206ec47a")
  22334. ID3D12DeviceTools1 : public ID3D12DeviceTools
  22335. {
  22336. public:
  22337. virtual HRESULT STDMETHODCALLTYPE GetApplicationSpecificDriverState(
  22338. _COM_Outptr_ ID3DBlob **ppBlob) = 0;
  22339. virtual D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS STDMETHODCALLTYPE GetApplicationSpecificDriverBlobStatus( void) = 0;
  22340. };
  22341. #else /* C style interface */
  22342. typedef struct ID3D12DeviceTools1Vtbl
  22343. {
  22344. BEGIN_INTERFACE
  22345. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22346. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22347. ID3D12DeviceTools1 * This,
  22348. REFIID riid,
  22349. _COM_Outptr_ void **ppvObject);
  22350. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22351. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22352. ID3D12DeviceTools1 * This);
  22353. DECLSPEC_XFGVIRT(IUnknown, Release)
  22354. ULONG ( STDMETHODCALLTYPE *Release )(
  22355. ID3D12DeviceTools1 * This);
  22356. DECLSPEC_XFGVIRT(ID3D12DeviceTools, SetNextAllocationAddress)
  22357. void ( STDMETHODCALLTYPE *SetNextAllocationAddress )(
  22358. ID3D12DeviceTools1 * This,
  22359. _In_ D3D12_GPU_VIRTUAL_ADDRESS nextAllocationVirtualAddress);
  22360. DECLSPEC_XFGVIRT(ID3D12DeviceTools1, GetApplicationSpecificDriverState)
  22361. HRESULT ( STDMETHODCALLTYPE *GetApplicationSpecificDriverState )(
  22362. ID3D12DeviceTools1 * This,
  22363. _COM_Outptr_ ID3DBlob **ppBlob);
  22364. DECLSPEC_XFGVIRT(ID3D12DeviceTools1, GetApplicationSpecificDriverBlobStatus)
  22365. D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS ( STDMETHODCALLTYPE *GetApplicationSpecificDriverBlobStatus )(
  22366. ID3D12DeviceTools1 * This);
  22367. END_INTERFACE
  22368. } ID3D12DeviceTools1Vtbl;
  22369. interface ID3D12DeviceTools1
  22370. {
  22371. CONST_VTBL struct ID3D12DeviceTools1Vtbl *lpVtbl;
  22372. };
  22373. #ifdef COBJMACROS
  22374. #define ID3D12DeviceTools1_QueryInterface(This,riid,ppvObject) \
  22375. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22376. #define ID3D12DeviceTools1_AddRef(This) \
  22377. ( (This)->lpVtbl -> AddRef(This) )
  22378. #define ID3D12DeviceTools1_Release(This) \
  22379. ( (This)->lpVtbl -> Release(This) )
  22380. #define ID3D12DeviceTools1_SetNextAllocationAddress(This,nextAllocationVirtualAddress) \
  22381. ( (This)->lpVtbl -> SetNextAllocationAddress(This,nextAllocationVirtualAddress) )
  22382. #define ID3D12DeviceTools1_GetApplicationSpecificDriverState(This,ppBlob) \
  22383. ( (This)->lpVtbl -> GetApplicationSpecificDriverState(This,ppBlob) )
  22384. #define ID3D12DeviceTools1_GetApplicationSpecificDriverBlobStatus(This) \
  22385. ( (This)->lpVtbl -> GetApplicationSpecificDriverBlobStatus(This) )
  22386. #endif /* COBJMACROS */
  22387. #endif /* C style interface */
  22388. #endif /* __ID3D12DeviceTools1_INTERFACE_DEFINED__ */
  22389. /* interface __MIDL_itf_d3d12_0000_0067 */
  22390. /* [local] */
  22391. typedef struct D3D12_SUBRESOURCE_DATA
  22392. {
  22393. const void *pData;
  22394. LONG_PTR RowPitch;
  22395. LONG_PTR SlicePitch;
  22396. } D3D12_SUBRESOURCE_DATA;
  22397. typedef struct D3D12_MEMCPY_DEST
  22398. {
  22399. void *pData;
  22400. SIZE_T RowPitch;
  22401. SIZE_T SlicePitch;
  22402. } D3D12_MEMCPY_DEST;
  22403. #if !defined( D3D12_IGNORE_SDK_LAYERS )
  22404. #include "d3d12sdklayers.h"
  22405. #endif
  22406. ///////////////////////////////////////////////////////////////////////////
  22407. // D3D12CreateDevice
  22408. // ------------------
  22409. //
  22410. // pAdapter
  22411. // If NULL, D3D12CreateDevice will choose the primary adapter.
  22412. // If non-NULL, D3D12CreateDevice will use the provided adapter.
  22413. // MinimumFeatureLevel
  22414. // The minimum feature level required for successful device creation.
  22415. // riid
  22416. // The interface IID of the device to be returned. Expected: ID3D12Device.
  22417. // ppDevice
  22418. // Pointer to returned interface. May be NULL.
  22419. //
  22420. // Return Values
  22421. // Any of those documented for
  22422. // CreateDXGIFactory1
  22423. // IDXGIFactory::EnumAdapters
  22424. // D3D12CreateDevice
  22425. //
  22426. ///////////////////////////////////////////////////////////////////////////
  22427. typedef HRESULT (WINAPI* PFN_D3D12_CREATE_DEVICE)( _In_opt_ IUnknown*,
  22428. D3D_FEATURE_LEVEL,
  22429. _In_ REFIID, _COM_Outptr_opt_ void** );
  22430. HRESULT WINAPI D3D12CreateDevice(
  22431. _In_opt_ IUnknown* pAdapter,
  22432. D3D_FEATURE_LEVEL MinimumFeatureLevel,
  22433. _In_ REFIID riid, // Expected: ID3D12Device
  22434. _COM_Outptr_opt_ void** ppDevice );
  22435. typedef HRESULT (WINAPI* PFN_D3D12_GET_DEBUG_INTERFACE)( _In_ REFIID, _COM_Outptr_opt_ void** );
  22436. HRESULT WINAPI D3D12GetDebugInterface( _In_ REFIID riid, _COM_Outptr_opt_ void** ppvDebug );
  22437. // --------------------------------------------------------------------------------------------------------------------------------
  22438. // D3D12EnableExperimentalFeatures
  22439. //
  22440. // Pass in a list of feature GUIDs to be enabled together.
  22441. //
  22442. // If a particular feature requires some configuration information on enablement, it will have
  22443. // a configuration struct that can be passed alongside the GUID.
  22444. //
  22445. // Some features might use an interface IID as the GUID. For these, once the feature is enabled via
  22446. // D3D12EnableExperimentalFeatures, D3D12GetDebugInterface can then be called with the IID to retrieve the interface
  22447. // for manipulating the feature. This allows for control that might not cleanly be expressed by just
  22448. // the configuration struct that D3D12EnableExperimentalFeatures provides.
  22449. //
  22450. // If this method is called and a change to existing feature enablement is made,
  22451. // all current D3D12 devices are set to DEVICE_REMOVED state, since under the covers there is really only one
  22452. // singleton device for a process. Removing the devices when configuration changes prevents
  22453. // mismatched expectations of how a device is supposed to work after it has been created from the app's point of view.
  22454. //
  22455. // The call returns E_NOINTERFACE if an unrecognized feature is passed in or Windows Developer mode is not on.
  22456. // The call returns E_INVALIDARG if the configuration of a feature is incorrect, the set of features passed
  22457. // in are known to be incompatible with each other, or other errors.
  22458. // Returns S_OK otherwise.
  22459. //
  22460. // --------------------------------------------------------------------------------------------------------------------------------
  22461. HRESULT WINAPI D3D12EnableExperimentalFeatures(
  22462. UINT NumFeatures,
  22463. _In_count_(NumFeatures) const IID* pIIDs,
  22464. _In_opt_count_(NumFeatures) void* pConfigurationStructs,
  22465. _In_opt_count_(NumFeatures) UINT* pConfigurationStructSizes);
  22466. // --------------------------------------------------------------------------------------------------------------------------------
  22467. // Experimental Feature: D3D12ExperimentalShaderModels
  22468. //
  22469. // Use with D3D12EnableExperimentalFeatures to enable experimental shader model support,
  22470. // meaning shader models that haven't been finalized for use in retail.
  22471. //
  22472. // Enabling D3D12ExperimentalShaderModels needs no configuration struct, pass NULL in the pConfigurationStructs array.
  22473. //
  22474. // --------------------------------------------------------------------------------------------------------------------------------
  22475. static const UUID D3D12ExperimentalShaderModels = { /* 76f5573e-f13a-40f5-b297-81ce9e18933f */
  22476. 0x76f5573e,
  22477. 0xf13a,
  22478. 0x40f5,
  22479. { 0xb2, 0x97, 0x81, 0xce, 0x9e, 0x18, 0x93, 0x3f }
  22480. };
  22481. // --------------------------------------------------------------------------------------------------------------------------------
  22482. // Experimental Feature: D3D12TiledResourceTier4
  22483. //
  22484. // Use with D3D12EnableExperimentalFeatures to enable tiled resource tier 4 support,
  22485. // meaning texture tile data-inheritance is allowed.
  22486. //
  22487. // Enabling D3D12TiledResourceTier4 needs no configuration struct, pass NULL in the pConfigurationStructs array.
  22488. //
  22489. // --------------------------------------------------------------------------------------------------------------------------------
  22490. static const UUID D3D12TiledResourceTier4 = { /* c9c4725f-a81a-4f56-8c5b-c51039d694fb */
  22491. 0xc9c4725f,
  22492. 0xa81a,
  22493. 0x4f56,
  22494. { 0x8c, 0x5b, 0xc5, 0x10, 0x39, 0xd6, 0x94, 0xfb }
  22495. };
  22496. // --------------------------------------------------------------------------------------------------------------------------------
  22497. // Experimental Feature: D3D12GPUUploadHeapsOnUnsupportedOS
  22498. //
  22499. // Use with D3D12EnableExperimentalFeatures to enable GPU upload heaps support on an unsupported OS,
  22500. // driver support is still required for this feature.
  22501. //
  22502. // Enabling D3D12GPUUploadHeapsOnUnsupportedOS needs no configuration struct, pass NULL in the pConfigurationStructs array.
  22503. //
  22504. // --------------------------------------------------------------------------------------------------------------------------------
  22505. static const UUID D3D12GPUUploadHeapsOnUnsupportedOS = { /* 45dc51f3-767f-4588-b206-0baa2b16fbae */
  22506. 0x45dc51f3,
  22507. 0x767f,
  22508. 0x4588,
  22509. { 0xb2, 0x06, 0x0b, 0xaa, 0x2b, 0x16, 0xfb, 0xae }
  22510. };
  22511. // --------------------------------------------------------------------------------------------------------------------------------
  22512. // D3D12GetInterface
  22513. //
  22514. // Retrieve Global D3D12 Interface.
  22515. //
  22516. DEFINE_GUID(CLSID_D3D12Debug, 0xf2352aeb, 0xdd84, 0x49fe, 0xb9, 0x7b, 0xa9, 0xdc, 0xfd, 0xcc, 0x1b, 0x4f);
  22517. DEFINE_GUID(CLSID_D3D12Tools, 0xe38216b1, 0x3c8c, 0x4833, 0xaa, 0x09, 0x0a, 0x06, 0xb6, 0x5d, 0x96, 0xc8);
  22518. DEFINE_GUID(CLSID_D3D12DeviceRemovedExtendedData, 0x4a75bbc4, 0x9ff4, 0x4ad8, 0x9f, 0x18, 0xab, 0xae, 0x84, 0xdc, 0x5f, 0xf2);
  22519. DEFINE_GUID(CLSID_D3D12SDKConfiguration, 0x7cda6aca, 0xa03e, 0x49c8, 0x94, 0x58, 0x03, 0x34, 0xd2, 0x0e, 0x07, 0xce);
  22520. DEFINE_GUID(CLSID_D3D12DeviceFactory, 0x114863bf, 0xc386, 0x4aee, 0xb3, 0x9d, 0x8f, 0x0b, 0xbb, 0x06, 0x29, 0x55);
  22521. DEFINE_GUID(CLSID_D3D12DSRDeviceFactory, 0xbb6dd27e, 0x94a9, 0x41a6, 0x9f, 0x1b, 0x13, 0x37, 0x72, 0x17, 0x24, 0x28);
  22522. typedef HRESULT (WINAPI* PFN_D3D12_GET_INTERFACE)( _In_ REFCLSID, _In_ REFIID, _COM_Outptr_opt_ void** );
  22523. HRESULT WINAPI D3D12GetInterface( _In_ REFCLSID rclsid, _In_ REFIID riid, _COM_Outptr_opt_ void** ppvDebug );
  22524. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0067_v0_0_c_ifspec;
  22525. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0067_v0_0_s_ifspec;
  22526. #ifndef __ID3D12SDKConfiguration_INTERFACE_DEFINED__
  22527. #define __ID3D12SDKConfiguration_INTERFACE_DEFINED__
  22528. /* interface ID3D12SDKConfiguration */
  22529. /* [unique][local][object][uuid] */
  22530. EXTERN_C const IID IID_ID3D12SDKConfiguration;
  22531. #if defined(__cplusplus) && !defined(CINTERFACE)
  22532. MIDL_INTERFACE("e9eb5314-33aa-42b2-a718-d77f58b1f1c7")
  22533. ID3D12SDKConfiguration : public IUnknown
  22534. {
  22535. public:
  22536. virtual HRESULT STDMETHODCALLTYPE SetSDKVersion(
  22537. UINT SDKVersion,
  22538. _In_z_ LPCSTR SDKPath) = 0;
  22539. };
  22540. #else /* C style interface */
  22541. typedef struct ID3D12SDKConfigurationVtbl
  22542. {
  22543. BEGIN_INTERFACE
  22544. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22545. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22546. ID3D12SDKConfiguration * This,
  22547. REFIID riid,
  22548. _COM_Outptr_ void **ppvObject);
  22549. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22550. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22551. ID3D12SDKConfiguration * This);
  22552. DECLSPEC_XFGVIRT(IUnknown, Release)
  22553. ULONG ( STDMETHODCALLTYPE *Release )(
  22554. ID3D12SDKConfiguration * This);
  22555. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration, SetSDKVersion)
  22556. HRESULT ( STDMETHODCALLTYPE *SetSDKVersion )(
  22557. ID3D12SDKConfiguration * This,
  22558. UINT SDKVersion,
  22559. _In_z_ LPCSTR SDKPath);
  22560. END_INTERFACE
  22561. } ID3D12SDKConfigurationVtbl;
  22562. interface ID3D12SDKConfiguration
  22563. {
  22564. CONST_VTBL struct ID3D12SDKConfigurationVtbl *lpVtbl;
  22565. };
  22566. #ifdef COBJMACROS
  22567. #define ID3D12SDKConfiguration_QueryInterface(This,riid,ppvObject) \
  22568. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22569. #define ID3D12SDKConfiguration_AddRef(This) \
  22570. ( (This)->lpVtbl -> AddRef(This) )
  22571. #define ID3D12SDKConfiguration_Release(This) \
  22572. ( (This)->lpVtbl -> Release(This) )
  22573. #define ID3D12SDKConfiguration_SetSDKVersion(This,SDKVersion,SDKPath) \
  22574. ( (This)->lpVtbl -> SetSDKVersion(This,SDKVersion,SDKPath) )
  22575. #endif /* COBJMACROS */
  22576. #endif /* C style interface */
  22577. #endif /* __ID3D12SDKConfiguration_INTERFACE_DEFINED__ */
  22578. #ifndef __ID3D12SDKConfiguration1_INTERFACE_DEFINED__
  22579. #define __ID3D12SDKConfiguration1_INTERFACE_DEFINED__
  22580. /* interface ID3D12SDKConfiguration1 */
  22581. /* [unique][local][object][uuid] */
  22582. EXTERN_C const IID IID_ID3D12SDKConfiguration1;
  22583. #if defined(__cplusplus) && !defined(CINTERFACE)
  22584. MIDL_INTERFACE("8aaf9303-ad25-48b9-9a57-d9c37e009d9f")
  22585. ID3D12SDKConfiguration1 : public ID3D12SDKConfiguration
  22586. {
  22587. public:
  22588. virtual HRESULT STDMETHODCALLTYPE CreateDeviceFactory(
  22589. UINT SDKVersion,
  22590. _In_ LPCSTR SDKPath,
  22591. REFIID riid,
  22592. _COM_Outptr_ void **ppvFactory) = 0;
  22593. virtual void STDMETHODCALLTYPE FreeUnusedSDKs( void) = 0;
  22594. };
  22595. #else /* C style interface */
  22596. typedef struct ID3D12SDKConfiguration1Vtbl
  22597. {
  22598. BEGIN_INTERFACE
  22599. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22600. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22601. ID3D12SDKConfiguration1 * This,
  22602. REFIID riid,
  22603. _COM_Outptr_ void **ppvObject);
  22604. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22605. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22606. ID3D12SDKConfiguration1 * This);
  22607. DECLSPEC_XFGVIRT(IUnknown, Release)
  22608. ULONG ( STDMETHODCALLTYPE *Release )(
  22609. ID3D12SDKConfiguration1 * This);
  22610. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration, SetSDKVersion)
  22611. HRESULT ( STDMETHODCALLTYPE *SetSDKVersion )(
  22612. ID3D12SDKConfiguration1 * This,
  22613. UINT SDKVersion,
  22614. _In_z_ LPCSTR SDKPath);
  22615. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration1, CreateDeviceFactory)
  22616. HRESULT ( STDMETHODCALLTYPE *CreateDeviceFactory )(
  22617. ID3D12SDKConfiguration1 * This,
  22618. UINT SDKVersion,
  22619. _In_ LPCSTR SDKPath,
  22620. REFIID riid,
  22621. _COM_Outptr_ void **ppvFactory);
  22622. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration1, FreeUnusedSDKs)
  22623. void ( STDMETHODCALLTYPE *FreeUnusedSDKs )(
  22624. ID3D12SDKConfiguration1 * This);
  22625. END_INTERFACE
  22626. } ID3D12SDKConfiguration1Vtbl;
  22627. interface ID3D12SDKConfiguration1
  22628. {
  22629. CONST_VTBL struct ID3D12SDKConfiguration1Vtbl *lpVtbl;
  22630. };
  22631. #ifdef COBJMACROS
  22632. #define ID3D12SDKConfiguration1_QueryInterface(This,riid,ppvObject) \
  22633. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22634. #define ID3D12SDKConfiguration1_AddRef(This) \
  22635. ( (This)->lpVtbl -> AddRef(This) )
  22636. #define ID3D12SDKConfiguration1_Release(This) \
  22637. ( (This)->lpVtbl -> Release(This) )
  22638. #define ID3D12SDKConfiguration1_SetSDKVersion(This,SDKVersion,SDKPath) \
  22639. ( (This)->lpVtbl -> SetSDKVersion(This,SDKVersion,SDKPath) )
  22640. #define ID3D12SDKConfiguration1_CreateDeviceFactory(This,SDKVersion,SDKPath,riid,ppvFactory) \
  22641. ( (This)->lpVtbl -> CreateDeviceFactory(This,SDKVersion,SDKPath,riid,ppvFactory) )
  22642. #define ID3D12SDKConfiguration1_FreeUnusedSDKs(This) \
  22643. ( (This)->lpVtbl -> FreeUnusedSDKs(This) )
  22644. #endif /* COBJMACROS */
  22645. #endif /* C style interface */
  22646. #endif /* __ID3D12SDKConfiguration1_INTERFACE_DEFINED__ */
  22647. /* interface __MIDL_itf_d3d12_0000_0069 */
  22648. /* [local] */
  22649. typedef
  22650. enum D3D12_DEVICE_FACTORY_FLAGS
  22651. {
  22652. D3D12_DEVICE_FACTORY_FLAG_NONE = 0,
  22653. D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_EXISTING_DEVICE = 0x1,
  22654. D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_INCOMPATIBLE_EXISTING_DEVICE = 0x2,
  22655. D3D12_DEVICE_FACTORY_FLAG_DISALLOW_STORING_NEW_DEVICE_AS_SINGLETON = 0x4
  22656. } D3D12_DEVICE_FACTORY_FLAGS;
  22657. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DEVICE_FACTORY_FLAGS )
  22658. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0069_v0_0_c_ifspec;
  22659. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0069_v0_0_s_ifspec;
  22660. #ifndef __ID3D12DeviceFactory_INTERFACE_DEFINED__
  22661. #define __ID3D12DeviceFactory_INTERFACE_DEFINED__
  22662. /* interface ID3D12DeviceFactory */
  22663. /* [unique][local][object][uuid] */
  22664. EXTERN_C const IID IID_ID3D12DeviceFactory;
  22665. #if defined(__cplusplus) && !defined(CINTERFACE)
  22666. MIDL_INTERFACE("61f307d3-d34e-4e7c-8374-3ba4de23cccb")
  22667. ID3D12DeviceFactory : public IUnknown
  22668. {
  22669. public:
  22670. virtual HRESULT STDMETHODCALLTYPE InitializeFromGlobalState( void) = 0;
  22671. virtual HRESULT STDMETHODCALLTYPE ApplyToGlobalState( void) = 0;
  22672. virtual HRESULT STDMETHODCALLTYPE SetFlags(
  22673. D3D12_DEVICE_FACTORY_FLAGS flags) = 0;
  22674. virtual D3D12_DEVICE_FACTORY_FLAGS STDMETHODCALLTYPE GetFlags( void) = 0;
  22675. virtual HRESULT STDMETHODCALLTYPE GetConfigurationInterface(
  22676. REFCLSID clsid,
  22677. REFIID iid,
  22678. _COM_Outptr_ void **ppv) = 0;
  22679. virtual HRESULT STDMETHODCALLTYPE EnableExperimentalFeatures(
  22680. UINT NumFeatures,
  22681. _In_reads_(NumFeatures) const IID *pIIDs,
  22682. _In_reads_opt_(NumFeatures) void *pConfigurationStructs,
  22683. _In_reads_opt_(NumFeatures) UINT *pConfigurationStructSizes) = 0;
  22684. virtual HRESULT STDMETHODCALLTYPE CreateDevice(
  22685. _In_opt_ IUnknown *adapter,
  22686. D3D_FEATURE_LEVEL FeatureLevel,
  22687. REFIID riid,
  22688. _COM_Outptr_opt_ void **ppvDevice) = 0;
  22689. };
  22690. #else /* C style interface */
  22691. typedef struct ID3D12DeviceFactoryVtbl
  22692. {
  22693. BEGIN_INTERFACE
  22694. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22695. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22696. ID3D12DeviceFactory * This,
  22697. REFIID riid,
  22698. _COM_Outptr_ void **ppvObject);
  22699. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22700. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22701. ID3D12DeviceFactory * This);
  22702. DECLSPEC_XFGVIRT(IUnknown, Release)
  22703. ULONG ( STDMETHODCALLTYPE *Release )(
  22704. ID3D12DeviceFactory * This);
  22705. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, InitializeFromGlobalState)
  22706. HRESULT ( STDMETHODCALLTYPE *InitializeFromGlobalState )(
  22707. ID3D12DeviceFactory * This);
  22708. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, ApplyToGlobalState)
  22709. HRESULT ( STDMETHODCALLTYPE *ApplyToGlobalState )(
  22710. ID3D12DeviceFactory * This);
  22711. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, SetFlags)
  22712. HRESULT ( STDMETHODCALLTYPE *SetFlags )(
  22713. ID3D12DeviceFactory * This,
  22714. D3D12_DEVICE_FACTORY_FLAGS flags);
  22715. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, GetFlags)
  22716. D3D12_DEVICE_FACTORY_FLAGS ( STDMETHODCALLTYPE *GetFlags )(
  22717. ID3D12DeviceFactory * This);
  22718. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, GetConfigurationInterface)
  22719. HRESULT ( STDMETHODCALLTYPE *GetConfigurationInterface )(
  22720. ID3D12DeviceFactory * This,
  22721. REFCLSID clsid,
  22722. REFIID iid,
  22723. _COM_Outptr_ void **ppv);
  22724. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, EnableExperimentalFeatures)
  22725. HRESULT ( STDMETHODCALLTYPE *EnableExperimentalFeatures )(
  22726. ID3D12DeviceFactory * This,
  22727. UINT NumFeatures,
  22728. _In_reads_(NumFeatures) const IID *pIIDs,
  22729. _In_reads_opt_(NumFeatures) void *pConfigurationStructs,
  22730. _In_reads_opt_(NumFeatures) UINT *pConfigurationStructSizes);
  22731. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, CreateDevice)
  22732. HRESULT ( STDMETHODCALLTYPE *CreateDevice )(
  22733. ID3D12DeviceFactory * This,
  22734. _In_opt_ IUnknown *adapter,
  22735. D3D_FEATURE_LEVEL FeatureLevel,
  22736. REFIID riid,
  22737. _COM_Outptr_opt_ void **ppvDevice);
  22738. END_INTERFACE
  22739. } ID3D12DeviceFactoryVtbl;
  22740. interface ID3D12DeviceFactory
  22741. {
  22742. CONST_VTBL struct ID3D12DeviceFactoryVtbl *lpVtbl;
  22743. };
  22744. #ifdef COBJMACROS
  22745. #define ID3D12DeviceFactory_QueryInterface(This,riid,ppvObject) \
  22746. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22747. #define ID3D12DeviceFactory_AddRef(This) \
  22748. ( (This)->lpVtbl -> AddRef(This) )
  22749. #define ID3D12DeviceFactory_Release(This) \
  22750. ( (This)->lpVtbl -> Release(This) )
  22751. #define ID3D12DeviceFactory_InitializeFromGlobalState(This) \
  22752. ( (This)->lpVtbl -> InitializeFromGlobalState(This) )
  22753. #define ID3D12DeviceFactory_ApplyToGlobalState(This) \
  22754. ( (This)->lpVtbl -> ApplyToGlobalState(This) )
  22755. #define ID3D12DeviceFactory_SetFlags(This,flags) \
  22756. ( (This)->lpVtbl -> SetFlags(This,flags) )
  22757. #define ID3D12DeviceFactory_GetFlags(This) \
  22758. ( (This)->lpVtbl -> GetFlags(This) )
  22759. #define ID3D12DeviceFactory_GetConfigurationInterface(This,clsid,iid,ppv) \
  22760. ( (This)->lpVtbl -> GetConfigurationInterface(This,clsid,iid,ppv) )
  22761. #define ID3D12DeviceFactory_EnableExperimentalFeatures(This,NumFeatures,pIIDs,pConfigurationStructs,pConfigurationStructSizes) \
  22762. ( (This)->lpVtbl -> EnableExperimentalFeatures(This,NumFeatures,pIIDs,pConfigurationStructs,pConfigurationStructSizes) )
  22763. #define ID3D12DeviceFactory_CreateDevice(This,adapter,FeatureLevel,riid,ppvDevice) \
  22764. ( (This)->lpVtbl -> CreateDevice(This,adapter,FeatureLevel,riid,ppvDevice) )
  22765. #endif /* COBJMACROS */
  22766. #endif /* C style interface */
  22767. #endif /* __ID3D12DeviceFactory_INTERFACE_DEFINED__ */
  22768. /* interface __MIDL_itf_d3d12_0000_0070 */
  22769. /* [local] */
  22770. typedef
  22771. enum D3D12_DEVICE_FLAGS
  22772. {
  22773. D3D12_DEVICE_FLAG_NONE = 0,
  22774. D3D12_DEVICE_FLAG_DEBUG_LAYER_ENABLED = 0x1,
  22775. D3D12_DEVICE_FLAG_GPU_BASED_VALIDATION_ENABLED = 0x2,
  22776. D3D12_DEVICE_FLAG_SYNCHRONIZED_COMMAND_QUEUE_VALIDATION_DISABLED = 0x4,
  22777. D3D12_DEVICE_FLAG_DRED_AUTO_BREADCRUMBS_ENABLED = 0x8,
  22778. D3D12_DEVICE_FLAG_DRED_PAGE_FAULT_REPORTING_ENABLED = 0x10,
  22779. D3D12_DEVICE_FLAG_DRED_WATSON_REPORTING_ENABLED = 0x20,
  22780. D3D12_DEVICE_FLAG_DRED_BREADCRUMB_CONTEXT_ENABLED = 0x40,
  22781. D3D12_DEVICE_FLAG_DRED_USE_MARKERS_ONLY_BREADCRUMBS = 0x80,
  22782. D3D12_DEVICE_FLAG_SHADER_INSTRUMENTATION_ENABLED = 0x100,
  22783. D3D12_DEVICE_FLAG_AUTO_DEBUG_NAME_ENABLED = 0x200,
  22784. D3D12_DEVICE_FLAG_FORCE_LEGACY_STATE_VALIDATION = 0x400
  22785. } D3D12_DEVICE_FLAGS;
  22786. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DEVICE_FLAGS )
  22787. typedef struct D3D12_DEVICE_CONFIGURATION_DESC
  22788. {
  22789. D3D12_DEVICE_FLAGS Flags;
  22790. UINT GpuBasedValidationFlags;
  22791. UINT SDKVersion;
  22792. UINT NumEnabledExperimentalFeatures;
  22793. } D3D12_DEVICE_CONFIGURATION_DESC;
  22794. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0070_v0_0_c_ifspec;
  22795. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0070_v0_0_s_ifspec;
  22796. #ifndef __ID3D12DeviceConfiguration_INTERFACE_DEFINED__
  22797. #define __ID3D12DeviceConfiguration_INTERFACE_DEFINED__
  22798. /* interface ID3D12DeviceConfiguration */
  22799. /* [unique][local][object][uuid] */
  22800. EXTERN_C const IID IID_ID3D12DeviceConfiguration;
  22801. #if defined(__cplusplus) && !defined(CINTERFACE)
  22802. MIDL_INTERFACE("78dbf87b-f766-422b-a61c-c8c446bdb9ad")
  22803. ID3D12DeviceConfiguration : public IUnknown
  22804. {
  22805. public:
  22806. #if defined(_MSC_VER) || !defined(_WIN32)
  22807. virtual D3D12_DEVICE_CONFIGURATION_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  22808. #else
  22809. virtual D3D12_DEVICE_CONFIGURATION_DESC *STDMETHODCALLTYPE GetDesc(
  22810. D3D12_DEVICE_CONFIGURATION_DESC * RetVal) = 0;
  22811. #endif
  22812. virtual HRESULT STDMETHODCALLTYPE GetEnabledExperimentalFeatures(
  22813. _Out_writes_(NumGuids) GUID *pGuids,
  22814. UINT NumGuids) = 0;
  22815. virtual HRESULT STDMETHODCALLTYPE SerializeVersionedRootSignature(
  22816. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc,
  22817. _COM_Outptr_ ID3DBlob **ppResult,
  22818. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError) = 0;
  22819. virtual HRESULT STDMETHODCALLTYPE CreateVersionedRootSignatureDeserializer(
  22820. _In_reads_bytes_(Size) const void *pBlob,
  22821. SIZE_T Size,
  22822. REFIID riid,
  22823. _COM_Outptr_ void **ppvDeserializer) = 0;
  22824. };
  22825. #else /* C style interface */
  22826. typedef struct ID3D12DeviceConfigurationVtbl
  22827. {
  22828. BEGIN_INTERFACE
  22829. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22830. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22831. ID3D12DeviceConfiguration * This,
  22832. REFIID riid,
  22833. _COM_Outptr_ void **ppvObject);
  22834. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22835. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22836. ID3D12DeviceConfiguration * This);
  22837. DECLSPEC_XFGVIRT(IUnknown, Release)
  22838. ULONG ( STDMETHODCALLTYPE *Release )(
  22839. ID3D12DeviceConfiguration * This);
  22840. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetDesc)
  22841. #if !defined(_WIN32)
  22842. D3D12_DEVICE_CONFIGURATION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  22843. ID3D12DeviceConfiguration * This);
  22844. #else
  22845. D3D12_DEVICE_CONFIGURATION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  22846. ID3D12DeviceConfiguration * This,
  22847. D3D12_DEVICE_CONFIGURATION_DESC * RetVal);
  22848. #endif
  22849. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetEnabledExperimentalFeatures)
  22850. HRESULT ( STDMETHODCALLTYPE *GetEnabledExperimentalFeatures )(
  22851. ID3D12DeviceConfiguration * This,
  22852. _Out_writes_(NumGuids) GUID *pGuids,
  22853. UINT NumGuids);
  22854. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, SerializeVersionedRootSignature)
  22855. HRESULT ( STDMETHODCALLTYPE *SerializeVersionedRootSignature )(
  22856. ID3D12DeviceConfiguration * This,
  22857. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc,
  22858. _COM_Outptr_ ID3DBlob **ppResult,
  22859. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError);
  22860. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, CreateVersionedRootSignatureDeserializer)
  22861. HRESULT ( STDMETHODCALLTYPE *CreateVersionedRootSignatureDeserializer )(
  22862. ID3D12DeviceConfiguration * This,
  22863. _In_reads_bytes_(Size) const void *pBlob,
  22864. SIZE_T Size,
  22865. REFIID riid,
  22866. _COM_Outptr_ void **ppvDeserializer);
  22867. END_INTERFACE
  22868. } ID3D12DeviceConfigurationVtbl;
  22869. interface ID3D12DeviceConfiguration
  22870. {
  22871. CONST_VTBL struct ID3D12DeviceConfigurationVtbl *lpVtbl;
  22872. };
  22873. #ifdef COBJMACROS
  22874. #define ID3D12DeviceConfiguration_QueryInterface(This,riid,ppvObject) \
  22875. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22876. #define ID3D12DeviceConfiguration_AddRef(This) \
  22877. ( (This)->lpVtbl -> AddRef(This) )
  22878. #define ID3D12DeviceConfiguration_Release(This) \
  22879. ( (This)->lpVtbl -> Release(This) )
  22880. #if !defined(_WIN32)
  22881. #define ID3D12DeviceConfiguration_GetDesc(This) \
  22882. ( (This)->lpVtbl -> GetDesc(This) )
  22883. #else
  22884. #define ID3D12DeviceConfiguration_GetDesc(This,RetVal) \
  22885. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  22886. #endif
  22887. #define ID3D12DeviceConfiguration_GetEnabledExperimentalFeatures(This,pGuids,NumGuids) \
  22888. ( (This)->lpVtbl -> GetEnabledExperimentalFeatures(This,pGuids,NumGuids) )
  22889. #define ID3D12DeviceConfiguration_SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) \
  22890. ( (This)->lpVtbl -> SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) )
  22891. #define ID3D12DeviceConfiguration_CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) \
  22892. ( (This)->lpVtbl -> CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) )
  22893. #endif /* COBJMACROS */
  22894. #endif /* C style interface */
  22895. #endif /* __ID3D12DeviceConfiguration_INTERFACE_DEFINED__ */
  22896. #ifndef __ID3D12DeviceConfiguration1_INTERFACE_DEFINED__
  22897. #define __ID3D12DeviceConfiguration1_INTERFACE_DEFINED__
  22898. /* interface ID3D12DeviceConfiguration1 */
  22899. /* [unique][local][object][uuid] */
  22900. EXTERN_C const IID IID_ID3D12DeviceConfiguration1;
  22901. #if defined(__cplusplus) && !defined(CINTERFACE)
  22902. MIDL_INTERFACE("ed342442-6343-4e16-bb82-a3a577874e56")
  22903. ID3D12DeviceConfiguration1 : public ID3D12DeviceConfiguration
  22904. {
  22905. public:
  22906. virtual HRESULT STDMETHODCALLTYPE CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(
  22907. _In_reads_bytes_(Size) const void *pLibraryBlob,
  22908. SIZE_T Size,
  22909. LPCWSTR RootSignatureSubobjectName,
  22910. REFIID riid,
  22911. _COM_Outptr_ void **ppvDeserializer) = 0;
  22912. };
  22913. #else /* C style interface */
  22914. typedef struct ID3D12DeviceConfiguration1Vtbl
  22915. {
  22916. BEGIN_INTERFACE
  22917. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22918. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22919. ID3D12DeviceConfiguration1 * This,
  22920. REFIID riid,
  22921. _COM_Outptr_ void **ppvObject);
  22922. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22923. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22924. ID3D12DeviceConfiguration1 * This);
  22925. DECLSPEC_XFGVIRT(IUnknown, Release)
  22926. ULONG ( STDMETHODCALLTYPE *Release )(
  22927. ID3D12DeviceConfiguration1 * This);
  22928. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetDesc)
  22929. #if !defined(_WIN32)
  22930. D3D12_DEVICE_CONFIGURATION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  22931. ID3D12DeviceConfiguration1 * This);
  22932. #else
  22933. D3D12_DEVICE_CONFIGURATION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  22934. ID3D12DeviceConfiguration1 * This,
  22935. D3D12_DEVICE_CONFIGURATION_DESC * RetVal);
  22936. #endif
  22937. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetEnabledExperimentalFeatures)
  22938. HRESULT ( STDMETHODCALLTYPE *GetEnabledExperimentalFeatures )(
  22939. ID3D12DeviceConfiguration1 * This,
  22940. _Out_writes_(NumGuids) GUID *pGuids,
  22941. UINT NumGuids);
  22942. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, SerializeVersionedRootSignature)
  22943. HRESULT ( STDMETHODCALLTYPE *SerializeVersionedRootSignature )(
  22944. ID3D12DeviceConfiguration1 * This,
  22945. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc,
  22946. _COM_Outptr_ ID3DBlob **ppResult,
  22947. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError);
  22948. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, CreateVersionedRootSignatureDeserializer)
  22949. HRESULT ( STDMETHODCALLTYPE *CreateVersionedRootSignatureDeserializer )(
  22950. ID3D12DeviceConfiguration1 * This,
  22951. _In_reads_bytes_(Size) const void *pBlob,
  22952. SIZE_T Size,
  22953. REFIID riid,
  22954. _COM_Outptr_ void **ppvDeserializer);
  22955. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration1, CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary)
  22956. HRESULT ( STDMETHODCALLTYPE *CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary )(
  22957. ID3D12DeviceConfiguration1 * This,
  22958. _In_reads_bytes_(Size) const void *pLibraryBlob,
  22959. SIZE_T Size,
  22960. LPCWSTR RootSignatureSubobjectName,
  22961. REFIID riid,
  22962. _COM_Outptr_ void **ppvDeserializer);
  22963. END_INTERFACE
  22964. } ID3D12DeviceConfiguration1Vtbl;
  22965. interface ID3D12DeviceConfiguration1
  22966. {
  22967. CONST_VTBL struct ID3D12DeviceConfiguration1Vtbl *lpVtbl;
  22968. };
  22969. #ifdef COBJMACROS
  22970. #define ID3D12DeviceConfiguration1_QueryInterface(This,riid,ppvObject) \
  22971. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22972. #define ID3D12DeviceConfiguration1_AddRef(This) \
  22973. ( (This)->lpVtbl -> AddRef(This) )
  22974. #define ID3D12DeviceConfiguration1_Release(This) \
  22975. ( (This)->lpVtbl -> Release(This) )
  22976. #if !defined(_WIN32)
  22977. #define ID3D12DeviceConfiguration1_GetDesc(This) \
  22978. ( (This)->lpVtbl -> GetDesc(This) )
  22979. #else
  22980. #define ID3D12DeviceConfiguration1_GetDesc(This,RetVal) \
  22981. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  22982. #endif
  22983. #define ID3D12DeviceConfiguration1_GetEnabledExperimentalFeatures(This,pGuids,NumGuids) \
  22984. ( (This)->lpVtbl -> GetEnabledExperimentalFeatures(This,pGuids,NumGuids) )
  22985. #define ID3D12DeviceConfiguration1_SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) \
  22986. ( (This)->lpVtbl -> SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) )
  22987. #define ID3D12DeviceConfiguration1_CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) \
  22988. ( (This)->lpVtbl -> CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) )
  22989. #define ID3D12DeviceConfiguration1_CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(This,pLibraryBlob,Size,RootSignatureSubobjectName,riid,ppvDeserializer) \
  22990. ( (This)->lpVtbl -> CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(This,pLibraryBlob,Size,RootSignatureSubobjectName,riid,ppvDeserializer) )
  22991. #endif /* COBJMACROS */
  22992. #endif /* C style interface */
  22993. #endif /* __ID3D12DeviceConfiguration1_INTERFACE_DEFINED__ */
  22994. /* interface __MIDL_itf_d3d12_0000_0072 */
  22995. /* [local] */
  22996. typedef
  22997. enum D3D12_AXIS_SHADING_RATE
  22998. {
  22999. D3D12_AXIS_SHADING_RATE_1X = 0,
  23000. D3D12_AXIS_SHADING_RATE_2X = 0x1,
  23001. D3D12_AXIS_SHADING_RATE_4X = 0x2
  23002. } D3D12_AXIS_SHADING_RATE;
  23003. #define D3D12_SHADING_RATE_X_AXIS_SHIFT 2
  23004. #define D3D12_SHADING_RATE_VALID_MASK 3
  23005. #define D3D12_MAKE_COARSE_SHADING_RATE(x,y) ((x) << D3D12_SHADING_RATE_X_AXIS_SHIFT | (y))
  23006. #define D3D12_GET_COARSE_SHADING_RATE_X_AXIS(x) (((x) >> D3D12_SHADING_RATE_X_AXIS_SHIFT) & D3D12_SHADING_RATE_VALID_MASK)
  23007. #define D3D12_GET_COARSE_SHADING_RATE_Y_AXIS(y) ((y) & D3D12_SHADING_RATE_VALID_MASK)
  23008. typedef
  23009. enum D3D12_SHADING_RATE
  23010. {
  23011. D3D12_SHADING_RATE_1X1 = 0,
  23012. D3D12_SHADING_RATE_1X2 = 0x1,
  23013. D3D12_SHADING_RATE_2X1 = 0x4,
  23014. D3D12_SHADING_RATE_2X2 = 0x5,
  23015. D3D12_SHADING_RATE_2X4 = 0x6,
  23016. D3D12_SHADING_RATE_4X2 = 0x9,
  23017. D3D12_SHADING_RATE_4X4 = 0xa
  23018. } D3D12_SHADING_RATE;
  23019. typedef
  23020. enum D3D12_SHADING_RATE_COMBINER
  23021. {
  23022. D3D12_SHADING_RATE_COMBINER_PASSTHROUGH = 0,
  23023. D3D12_SHADING_RATE_COMBINER_OVERRIDE = 1,
  23024. D3D12_SHADING_RATE_COMBINER_MIN = 2,
  23025. D3D12_SHADING_RATE_COMBINER_MAX = 3,
  23026. D3D12_SHADING_RATE_COMBINER_SUM = 4
  23027. } D3D12_SHADING_RATE_COMBINER;
  23028. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0072_v0_0_c_ifspec;
  23029. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0072_v0_0_s_ifspec;
  23030. #ifndef __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__
  23031. #define __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__
  23032. /* interface ID3D12GraphicsCommandList5 */
  23033. /* [unique][local][object][uuid] */
  23034. EXTERN_C const IID IID_ID3D12GraphicsCommandList5;
  23035. #if defined(__cplusplus) && !defined(CINTERFACE)
  23036. MIDL_INTERFACE("55050859-4024-474c-87f5-6472eaee44ea")
  23037. ID3D12GraphicsCommandList5 : public ID3D12GraphicsCommandList4
  23038. {
  23039. public:
  23040. virtual void STDMETHODCALLTYPE RSSetShadingRate(
  23041. _In_ D3D12_SHADING_RATE baseShadingRate,
  23042. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners) = 0;
  23043. virtual void STDMETHODCALLTYPE RSSetShadingRateImage(
  23044. _In_opt_ ID3D12Resource *shadingRateImage) = 0;
  23045. };
  23046. #else /* C style interface */
  23047. typedef struct ID3D12GraphicsCommandList5Vtbl
  23048. {
  23049. BEGIN_INTERFACE
  23050. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  23051. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  23052. ID3D12GraphicsCommandList5 * This,
  23053. REFIID riid,
  23054. _COM_Outptr_ void **ppvObject);
  23055. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  23056. ULONG ( STDMETHODCALLTYPE *AddRef )(
  23057. ID3D12GraphicsCommandList5 * This);
  23058. DECLSPEC_XFGVIRT(IUnknown, Release)
  23059. ULONG ( STDMETHODCALLTYPE *Release )(
  23060. ID3D12GraphicsCommandList5 * This);
  23061. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  23062. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  23063. ID3D12GraphicsCommandList5 * This,
  23064. _In_ REFGUID guid,
  23065. _Inout_ UINT *pDataSize,
  23066. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  23067. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  23068. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  23069. ID3D12GraphicsCommandList5 * This,
  23070. _In_ REFGUID guid,
  23071. _In_ UINT DataSize,
  23072. _In_reads_bytes_opt_( DataSize ) const void *pData);
  23073. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  23074. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  23075. ID3D12GraphicsCommandList5 * This,
  23076. _In_ REFGUID guid,
  23077. _In_opt_ const IUnknown *pData);
  23078. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  23079. HRESULT ( STDMETHODCALLTYPE *SetName )(
  23080. ID3D12GraphicsCommandList5 * This,
  23081. _In_z_ LPCWSTR Name);
  23082. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  23083. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  23084. ID3D12GraphicsCommandList5 * This,
  23085. REFIID riid,
  23086. _COM_Outptr_opt_ void **ppvDevice);
  23087. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  23088. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  23089. ID3D12GraphicsCommandList5 * This);
  23090. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  23091. HRESULT ( STDMETHODCALLTYPE *Close )(
  23092. ID3D12GraphicsCommandList5 * This);
  23093. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  23094. HRESULT ( STDMETHODCALLTYPE *Reset )(
  23095. ID3D12GraphicsCommandList5 * This,
  23096. _In_ ID3D12CommandAllocator *pAllocator,
  23097. _In_opt_ ID3D12PipelineState *pInitialState);
  23098. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  23099. void ( STDMETHODCALLTYPE *ClearState )(
  23100. ID3D12GraphicsCommandList5 * This,
  23101. _In_opt_ ID3D12PipelineState *pPipelineState);
  23102. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  23103. void ( STDMETHODCALLTYPE *DrawInstanced )(
  23104. ID3D12GraphicsCommandList5 * This,
  23105. _In_ UINT VertexCountPerInstance,
  23106. _In_ UINT InstanceCount,
  23107. _In_ UINT StartVertexLocation,
  23108. _In_ UINT StartInstanceLocation);
  23109. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  23110. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  23111. ID3D12GraphicsCommandList5 * This,
  23112. _In_ UINT IndexCountPerInstance,
  23113. _In_ UINT InstanceCount,
  23114. _In_ UINT StartIndexLocation,
  23115. _In_ INT BaseVertexLocation,
  23116. _In_ UINT StartInstanceLocation);
  23117. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  23118. void ( STDMETHODCALLTYPE *Dispatch )(
  23119. ID3D12GraphicsCommandList5 * This,
  23120. _In_ UINT ThreadGroupCountX,
  23121. _In_ UINT ThreadGroupCountY,
  23122. _In_ UINT ThreadGroupCountZ);
  23123. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  23124. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  23125. ID3D12GraphicsCommandList5 * This,
  23126. _In_ ID3D12Resource *pDstBuffer,
  23127. UINT64 DstOffset,
  23128. _In_ ID3D12Resource *pSrcBuffer,
  23129. UINT64 SrcOffset,
  23130. UINT64 NumBytes);
  23131. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  23132. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  23133. ID3D12GraphicsCommandList5 * This,
  23134. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  23135. UINT DstX,
  23136. UINT DstY,
  23137. UINT DstZ,
  23138. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  23139. _In_opt_ const D3D12_BOX *pSrcBox);
  23140. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  23141. void ( STDMETHODCALLTYPE *CopyResource )(
  23142. ID3D12GraphicsCommandList5 * This,
  23143. _In_ ID3D12Resource *pDstResource,
  23144. _In_ ID3D12Resource *pSrcResource);
  23145. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  23146. void ( STDMETHODCALLTYPE *CopyTiles )(
  23147. ID3D12GraphicsCommandList5 * This,
  23148. _In_ ID3D12Resource *pTiledResource,
  23149. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  23150. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  23151. _In_ ID3D12Resource *pBuffer,
  23152. UINT64 BufferStartOffsetInBytes,
  23153. D3D12_TILE_COPY_FLAGS Flags);
  23154. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  23155. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  23156. ID3D12GraphicsCommandList5 * This,
  23157. _In_ ID3D12Resource *pDstResource,
  23158. _In_ UINT DstSubresource,
  23159. _In_ ID3D12Resource *pSrcResource,
  23160. _In_ UINT SrcSubresource,
  23161. _In_ DXGI_FORMAT Format);
  23162. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  23163. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  23164. ID3D12GraphicsCommandList5 * This,
  23165. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  23166. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  23167. void ( STDMETHODCALLTYPE *RSSetViewports )(
  23168. ID3D12GraphicsCommandList5 * This,
  23169. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  23170. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  23171. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  23172. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  23173. ID3D12GraphicsCommandList5 * This,
  23174. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  23175. _In_reads_( NumRects) const D3D12_RECT *pRects);
  23176. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  23177. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  23178. ID3D12GraphicsCommandList5 * This,
  23179. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  23180. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  23181. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  23182. ID3D12GraphicsCommandList5 * This,
  23183. _In_ UINT StencilRef);
  23184. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  23185. void ( STDMETHODCALLTYPE *SetPipelineState )(
  23186. ID3D12GraphicsCommandList5 * This,
  23187. _In_ ID3D12PipelineState *pPipelineState);
  23188. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  23189. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  23190. ID3D12GraphicsCommandList5 * This,
  23191. _In_ UINT NumBarriers,
  23192. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  23193. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  23194. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  23195. ID3D12GraphicsCommandList5 * This,
  23196. _In_ ID3D12GraphicsCommandList *pCommandList);
  23197. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  23198. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  23199. ID3D12GraphicsCommandList5 * This,
  23200. _In_ UINT NumDescriptorHeaps,
  23201. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  23202. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  23203. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  23204. ID3D12GraphicsCommandList5 * This,
  23205. _In_opt_ ID3D12RootSignature *pRootSignature);
  23206. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  23207. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  23208. ID3D12GraphicsCommandList5 * This,
  23209. _In_opt_ ID3D12RootSignature *pRootSignature);
  23210. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  23211. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  23212. ID3D12GraphicsCommandList5 * This,
  23213. _In_ UINT RootParameterIndex,
  23214. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  23215. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  23216. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  23217. ID3D12GraphicsCommandList5 * This,
  23218. _In_ UINT RootParameterIndex,
  23219. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  23220. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  23221. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  23222. ID3D12GraphicsCommandList5 * This,
  23223. _In_ UINT RootParameterIndex,
  23224. _In_ UINT SrcData,
  23225. _In_ UINT DestOffsetIn32BitValues);
  23226. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  23227. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  23228. ID3D12GraphicsCommandList5 * This,
  23229. _In_ UINT RootParameterIndex,
  23230. _In_ UINT SrcData,
  23231. _In_ UINT DestOffsetIn32BitValues);
  23232. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  23233. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  23234. ID3D12GraphicsCommandList5 * This,
  23235. _In_ UINT RootParameterIndex,
  23236. _In_ UINT Num32BitValuesToSet,
  23237. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  23238. _In_ UINT DestOffsetIn32BitValues);
  23239. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  23240. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  23241. ID3D12GraphicsCommandList5 * This,
  23242. _In_ UINT RootParameterIndex,
  23243. _In_ UINT Num32BitValuesToSet,
  23244. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  23245. _In_ UINT DestOffsetIn32BitValues);
  23246. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  23247. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  23248. ID3D12GraphicsCommandList5 * This,
  23249. _In_ UINT RootParameterIndex,
  23250. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23251. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  23252. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  23253. ID3D12GraphicsCommandList5 * This,
  23254. _In_ UINT RootParameterIndex,
  23255. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23256. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  23257. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  23258. ID3D12GraphicsCommandList5 * This,
  23259. _In_ UINT RootParameterIndex,
  23260. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23261. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  23262. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  23263. ID3D12GraphicsCommandList5 * This,
  23264. _In_ UINT RootParameterIndex,
  23265. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23266. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  23267. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  23268. ID3D12GraphicsCommandList5 * This,
  23269. _In_ UINT RootParameterIndex,
  23270. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23271. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  23272. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  23273. ID3D12GraphicsCommandList5 * This,
  23274. _In_ UINT RootParameterIndex,
  23275. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23276. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  23277. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  23278. ID3D12GraphicsCommandList5 * This,
  23279. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  23280. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  23281. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  23282. ID3D12GraphicsCommandList5 * This,
  23283. _In_ UINT StartSlot,
  23284. _In_ UINT NumViews,
  23285. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  23286. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  23287. void ( STDMETHODCALLTYPE *SOSetTargets )(
  23288. ID3D12GraphicsCommandList5 * This,
  23289. _In_ UINT StartSlot,
  23290. _In_ UINT NumViews,
  23291. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  23292. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  23293. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  23294. ID3D12GraphicsCommandList5 * This,
  23295. _In_ UINT NumRenderTargetDescriptors,
  23296. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  23297. _In_ BOOL RTsSingleHandleToDescriptorRange,
  23298. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  23299. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  23300. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  23301. ID3D12GraphicsCommandList5 * This,
  23302. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  23303. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  23304. _In_ FLOAT Depth,
  23305. _In_ UINT8 Stencil,
  23306. _In_ UINT NumRects,
  23307. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23308. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  23309. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  23310. ID3D12GraphicsCommandList5 * This,
  23311. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  23312. _In_ const FLOAT ColorRGBA[ 4 ],
  23313. _In_ UINT NumRects,
  23314. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23315. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  23316. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  23317. ID3D12GraphicsCommandList5 * This,
  23318. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  23319. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  23320. _In_ ID3D12Resource *pResource,
  23321. _In_ const UINT Values[ 4 ],
  23322. _In_ UINT NumRects,
  23323. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23324. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  23325. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  23326. ID3D12GraphicsCommandList5 * This,
  23327. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  23328. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  23329. _In_ ID3D12Resource *pResource,
  23330. _In_ const FLOAT Values[ 4 ],
  23331. _In_ UINT NumRects,
  23332. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23333. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  23334. void ( STDMETHODCALLTYPE *DiscardResource )(
  23335. ID3D12GraphicsCommandList5 * This,
  23336. _In_ ID3D12Resource *pResource,
  23337. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  23338. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  23339. void ( STDMETHODCALLTYPE *BeginQuery )(
  23340. ID3D12GraphicsCommandList5 * This,
  23341. _In_ ID3D12QueryHeap *pQueryHeap,
  23342. _In_ D3D12_QUERY_TYPE Type,
  23343. _In_ UINT Index);
  23344. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  23345. void ( STDMETHODCALLTYPE *EndQuery )(
  23346. ID3D12GraphicsCommandList5 * This,
  23347. _In_ ID3D12QueryHeap *pQueryHeap,
  23348. _In_ D3D12_QUERY_TYPE Type,
  23349. _In_ UINT Index);
  23350. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  23351. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  23352. ID3D12GraphicsCommandList5 * This,
  23353. _In_ ID3D12QueryHeap *pQueryHeap,
  23354. _In_ D3D12_QUERY_TYPE Type,
  23355. _In_ UINT StartIndex,
  23356. _In_ UINT NumQueries,
  23357. _In_ ID3D12Resource *pDestinationBuffer,
  23358. _In_ UINT64 AlignedDestinationBufferOffset);
  23359. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  23360. void ( STDMETHODCALLTYPE *SetPredication )(
  23361. ID3D12GraphicsCommandList5 * This,
  23362. _In_opt_ ID3D12Resource *pBuffer,
  23363. _In_ UINT64 AlignedBufferOffset,
  23364. _In_ D3D12_PREDICATION_OP Operation);
  23365. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  23366. void ( STDMETHODCALLTYPE *SetMarker )(
  23367. ID3D12GraphicsCommandList5 * This,
  23368. UINT Metadata,
  23369. _In_reads_bytes_opt_(Size) const void *pData,
  23370. UINT Size);
  23371. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  23372. void ( STDMETHODCALLTYPE *BeginEvent )(
  23373. ID3D12GraphicsCommandList5 * This,
  23374. UINT Metadata,
  23375. _In_reads_bytes_opt_(Size) const void *pData,
  23376. UINT Size);
  23377. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  23378. void ( STDMETHODCALLTYPE *EndEvent )(
  23379. ID3D12GraphicsCommandList5 * This);
  23380. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  23381. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  23382. ID3D12GraphicsCommandList5 * This,
  23383. _In_ ID3D12CommandSignature *pCommandSignature,
  23384. _In_ UINT MaxCommandCount,
  23385. _In_ ID3D12Resource *pArgumentBuffer,
  23386. _In_ UINT64 ArgumentBufferOffset,
  23387. _In_opt_ ID3D12Resource *pCountBuffer,
  23388. _In_ UINT64 CountBufferOffset);
  23389. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  23390. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  23391. ID3D12GraphicsCommandList5 * This,
  23392. _In_ ID3D12Resource *pDstBuffer,
  23393. UINT64 DstOffset,
  23394. _In_ ID3D12Resource *pSrcBuffer,
  23395. UINT64 SrcOffset,
  23396. UINT Dependencies,
  23397. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  23398. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  23399. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  23400. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  23401. ID3D12GraphicsCommandList5 * This,
  23402. _In_ ID3D12Resource *pDstBuffer,
  23403. UINT64 DstOffset,
  23404. _In_ ID3D12Resource *pSrcBuffer,
  23405. UINT64 SrcOffset,
  23406. UINT Dependencies,
  23407. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  23408. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  23409. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  23410. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  23411. ID3D12GraphicsCommandList5 * This,
  23412. _In_ FLOAT Min,
  23413. _In_ FLOAT Max);
  23414. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  23415. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  23416. ID3D12GraphicsCommandList5 * This,
  23417. _In_ UINT NumSamplesPerPixel,
  23418. _In_ UINT NumPixels,
  23419. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  23420. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  23421. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  23422. ID3D12GraphicsCommandList5 * This,
  23423. _In_ ID3D12Resource *pDstResource,
  23424. _In_ UINT DstSubresource,
  23425. _In_ UINT DstX,
  23426. _In_ UINT DstY,
  23427. _In_ ID3D12Resource *pSrcResource,
  23428. _In_ UINT SrcSubresource,
  23429. _In_opt_ D3D12_RECT *pSrcRect,
  23430. _In_ DXGI_FORMAT Format,
  23431. _In_ D3D12_RESOLVE_MODE ResolveMode);
  23432. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  23433. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  23434. ID3D12GraphicsCommandList5 * This,
  23435. _In_ UINT Mask);
  23436. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  23437. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  23438. ID3D12GraphicsCommandList5 * This,
  23439. UINT Count,
  23440. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  23441. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  23442. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  23443. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  23444. ID3D12GraphicsCommandList5 * This,
  23445. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  23446. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  23447. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  23448. ID3D12GraphicsCommandList5 * This,
  23449. _In_ UINT NumRenderTargets,
  23450. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  23451. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  23452. D3D12_RENDER_PASS_FLAGS Flags);
  23453. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  23454. void ( STDMETHODCALLTYPE *EndRenderPass )(
  23455. ID3D12GraphicsCommandList5 * This);
  23456. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  23457. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  23458. ID3D12GraphicsCommandList5 * This,
  23459. _In_ ID3D12MetaCommand *pMetaCommand,
  23460. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  23461. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  23462. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  23463. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  23464. ID3D12GraphicsCommandList5 * This,
  23465. _In_ ID3D12MetaCommand *pMetaCommand,
  23466. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  23467. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  23468. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  23469. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  23470. ID3D12GraphicsCommandList5 * This,
  23471. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  23472. _In_ UINT NumPostbuildInfoDescs,
  23473. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  23474. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  23475. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  23476. ID3D12GraphicsCommandList5 * This,
  23477. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  23478. _In_ UINT NumSourceAccelerationStructures,
  23479. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  23480. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  23481. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  23482. ID3D12GraphicsCommandList5 * This,
  23483. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  23484. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  23485. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  23486. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  23487. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  23488. ID3D12GraphicsCommandList5 * This,
  23489. _In_ ID3D12StateObject *pStateObject);
  23490. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  23491. void ( STDMETHODCALLTYPE *DispatchRays )(
  23492. ID3D12GraphicsCommandList5 * This,
  23493. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  23494. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  23495. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  23496. ID3D12GraphicsCommandList5 * This,
  23497. _In_ D3D12_SHADING_RATE baseShadingRate,
  23498. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  23499. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  23500. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  23501. ID3D12GraphicsCommandList5 * This,
  23502. _In_opt_ ID3D12Resource *shadingRateImage);
  23503. END_INTERFACE
  23504. } ID3D12GraphicsCommandList5Vtbl;
  23505. interface ID3D12GraphicsCommandList5
  23506. {
  23507. CONST_VTBL struct ID3D12GraphicsCommandList5Vtbl *lpVtbl;
  23508. };
  23509. #ifdef COBJMACROS
  23510. #define ID3D12GraphicsCommandList5_QueryInterface(This,riid,ppvObject) \
  23511. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  23512. #define ID3D12GraphicsCommandList5_AddRef(This) \
  23513. ( (This)->lpVtbl -> AddRef(This) )
  23514. #define ID3D12GraphicsCommandList5_Release(This) \
  23515. ( (This)->lpVtbl -> Release(This) )
  23516. #define ID3D12GraphicsCommandList5_GetPrivateData(This,guid,pDataSize,pData) \
  23517. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  23518. #define ID3D12GraphicsCommandList5_SetPrivateData(This,guid,DataSize,pData) \
  23519. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  23520. #define ID3D12GraphicsCommandList5_SetPrivateDataInterface(This,guid,pData) \
  23521. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  23522. #define ID3D12GraphicsCommandList5_SetName(This,Name) \
  23523. ( (This)->lpVtbl -> SetName(This,Name) )
  23524. #define ID3D12GraphicsCommandList5_GetDevice(This,riid,ppvDevice) \
  23525. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  23526. #define ID3D12GraphicsCommandList5_GetType(This) \
  23527. ( (This)->lpVtbl -> GetType(This) )
  23528. #define ID3D12GraphicsCommandList5_Close(This) \
  23529. ( (This)->lpVtbl -> Close(This) )
  23530. #define ID3D12GraphicsCommandList5_Reset(This,pAllocator,pInitialState) \
  23531. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  23532. #define ID3D12GraphicsCommandList5_ClearState(This,pPipelineState) \
  23533. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  23534. #define ID3D12GraphicsCommandList5_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  23535. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  23536. #define ID3D12GraphicsCommandList5_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  23537. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  23538. #define ID3D12GraphicsCommandList5_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  23539. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  23540. #define ID3D12GraphicsCommandList5_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  23541. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  23542. #define ID3D12GraphicsCommandList5_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  23543. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  23544. #define ID3D12GraphicsCommandList5_CopyResource(This,pDstResource,pSrcResource) \
  23545. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  23546. #define ID3D12GraphicsCommandList5_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  23547. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  23548. #define ID3D12GraphicsCommandList5_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  23549. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  23550. #define ID3D12GraphicsCommandList5_IASetPrimitiveTopology(This,PrimitiveTopology) \
  23551. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  23552. #define ID3D12GraphicsCommandList5_RSSetViewports(This,NumViewports,pViewports) \
  23553. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  23554. #define ID3D12GraphicsCommandList5_RSSetScissorRects(This,NumRects,pRects) \
  23555. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  23556. #define ID3D12GraphicsCommandList5_OMSetBlendFactor(This,BlendFactor) \
  23557. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  23558. #define ID3D12GraphicsCommandList5_OMSetStencilRef(This,StencilRef) \
  23559. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  23560. #define ID3D12GraphicsCommandList5_SetPipelineState(This,pPipelineState) \
  23561. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  23562. #define ID3D12GraphicsCommandList5_ResourceBarrier(This,NumBarriers,pBarriers) \
  23563. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  23564. #define ID3D12GraphicsCommandList5_ExecuteBundle(This,pCommandList) \
  23565. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  23566. #define ID3D12GraphicsCommandList5_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  23567. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  23568. #define ID3D12GraphicsCommandList5_SetComputeRootSignature(This,pRootSignature) \
  23569. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  23570. #define ID3D12GraphicsCommandList5_SetGraphicsRootSignature(This,pRootSignature) \
  23571. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  23572. #define ID3D12GraphicsCommandList5_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  23573. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  23574. #define ID3D12GraphicsCommandList5_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  23575. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  23576. #define ID3D12GraphicsCommandList5_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  23577. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  23578. #define ID3D12GraphicsCommandList5_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  23579. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  23580. #define ID3D12GraphicsCommandList5_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  23581. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  23582. #define ID3D12GraphicsCommandList5_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  23583. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  23584. #define ID3D12GraphicsCommandList5_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  23585. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  23586. #define ID3D12GraphicsCommandList5_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  23587. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  23588. #define ID3D12GraphicsCommandList5_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  23589. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  23590. #define ID3D12GraphicsCommandList5_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  23591. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  23592. #define ID3D12GraphicsCommandList5_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  23593. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  23594. #define ID3D12GraphicsCommandList5_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  23595. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  23596. #define ID3D12GraphicsCommandList5_IASetIndexBuffer(This,pView) \
  23597. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  23598. #define ID3D12GraphicsCommandList5_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  23599. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  23600. #define ID3D12GraphicsCommandList5_SOSetTargets(This,StartSlot,NumViews,pViews) \
  23601. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  23602. #define ID3D12GraphicsCommandList5_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  23603. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  23604. #define ID3D12GraphicsCommandList5_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  23605. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  23606. #define ID3D12GraphicsCommandList5_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  23607. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  23608. #define ID3D12GraphicsCommandList5_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  23609. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  23610. #define ID3D12GraphicsCommandList5_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  23611. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  23612. #define ID3D12GraphicsCommandList5_DiscardResource(This,pResource,pRegion) \
  23613. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  23614. #define ID3D12GraphicsCommandList5_BeginQuery(This,pQueryHeap,Type,Index) \
  23615. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  23616. #define ID3D12GraphicsCommandList5_EndQuery(This,pQueryHeap,Type,Index) \
  23617. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  23618. #define ID3D12GraphicsCommandList5_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  23619. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  23620. #define ID3D12GraphicsCommandList5_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  23621. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  23622. #define ID3D12GraphicsCommandList5_SetMarker(This,Metadata,pData,Size) \
  23623. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  23624. #define ID3D12GraphicsCommandList5_BeginEvent(This,Metadata,pData,Size) \
  23625. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  23626. #define ID3D12GraphicsCommandList5_EndEvent(This) \
  23627. ( (This)->lpVtbl -> EndEvent(This) )
  23628. #define ID3D12GraphicsCommandList5_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  23629. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  23630. #define ID3D12GraphicsCommandList5_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  23631. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  23632. #define ID3D12GraphicsCommandList5_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  23633. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  23634. #define ID3D12GraphicsCommandList5_OMSetDepthBounds(This,Min,Max) \
  23635. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  23636. #define ID3D12GraphicsCommandList5_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  23637. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  23638. #define ID3D12GraphicsCommandList5_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  23639. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  23640. #define ID3D12GraphicsCommandList5_SetViewInstanceMask(This,Mask) \
  23641. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  23642. #define ID3D12GraphicsCommandList5_WriteBufferImmediate(This,Count,pParams,pModes) \
  23643. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  23644. #define ID3D12GraphicsCommandList5_SetProtectedResourceSession(This,pProtectedResourceSession) \
  23645. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  23646. #define ID3D12GraphicsCommandList5_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  23647. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  23648. #define ID3D12GraphicsCommandList5_EndRenderPass(This) \
  23649. ( (This)->lpVtbl -> EndRenderPass(This) )
  23650. #define ID3D12GraphicsCommandList5_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  23651. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  23652. #define ID3D12GraphicsCommandList5_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  23653. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  23654. #define ID3D12GraphicsCommandList5_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  23655. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  23656. #define ID3D12GraphicsCommandList5_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  23657. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  23658. #define ID3D12GraphicsCommandList5_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  23659. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  23660. #define ID3D12GraphicsCommandList5_SetPipelineState1(This,pStateObject) \
  23661. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  23662. #define ID3D12GraphicsCommandList5_DispatchRays(This,pDesc) \
  23663. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  23664. #define ID3D12GraphicsCommandList5_RSSetShadingRate(This,baseShadingRate,combiners) \
  23665. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  23666. #define ID3D12GraphicsCommandList5_RSSetShadingRateImage(This,shadingRateImage) \
  23667. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  23668. #endif /* COBJMACROS */
  23669. #endif /* C style interface */
  23670. #endif /* __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__ */
  23671. /* interface __MIDL_itf_d3d12_0000_0073 */
  23672. /* [local] */
  23673. typedef struct D3D12_DISPATCH_MESH_ARGUMENTS
  23674. {
  23675. UINT ThreadGroupCountX;
  23676. UINT ThreadGroupCountY;
  23677. UINT ThreadGroupCountZ;
  23678. } D3D12_DISPATCH_MESH_ARGUMENTS;
  23679. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0073_v0_0_c_ifspec;
  23680. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0073_v0_0_s_ifspec;
  23681. #ifndef __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__
  23682. #define __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__
  23683. /* interface ID3D12GraphicsCommandList6 */
  23684. /* [unique][local][object][uuid] */
  23685. EXTERN_C const IID IID_ID3D12GraphicsCommandList6;
  23686. #if defined(__cplusplus) && !defined(CINTERFACE)
  23687. MIDL_INTERFACE("c3827890-e548-4cfa-96cf-5689a9370f80")
  23688. ID3D12GraphicsCommandList6 : public ID3D12GraphicsCommandList5
  23689. {
  23690. public:
  23691. virtual void STDMETHODCALLTYPE DispatchMesh(
  23692. _In_ UINT ThreadGroupCountX,
  23693. _In_ UINT ThreadGroupCountY,
  23694. _In_ UINT ThreadGroupCountZ) = 0;
  23695. };
  23696. #else /* C style interface */
  23697. typedef struct ID3D12GraphicsCommandList6Vtbl
  23698. {
  23699. BEGIN_INTERFACE
  23700. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  23701. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  23702. ID3D12GraphicsCommandList6 * This,
  23703. REFIID riid,
  23704. _COM_Outptr_ void **ppvObject);
  23705. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  23706. ULONG ( STDMETHODCALLTYPE *AddRef )(
  23707. ID3D12GraphicsCommandList6 * This);
  23708. DECLSPEC_XFGVIRT(IUnknown, Release)
  23709. ULONG ( STDMETHODCALLTYPE *Release )(
  23710. ID3D12GraphicsCommandList6 * This);
  23711. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  23712. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  23713. ID3D12GraphicsCommandList6 * This,
  23714. _In_ REFGUID guid,
  23715. _Inout_ UINT *pDataSize,
  23716. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  23717. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  23718. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  23719. ID3D12GraphicsCommandList6 * This,
  23720. _In_ REFGUID guid,
  23721. _In_ UINT DataSize,
  23722. _In_reads_bytes_opt_( DataSize ) const void *pData);
  23723. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  23724. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  23725. ID3D12GraphicsCommandList6 * This,
  23726. _In_ REFGUID guid,
  23727. _In_opt_ const IUnknown *pData);
  23728. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  23729. HRESULT ( STDMETHODCALLTYPE *SetName )(
  23730. ID3D12GraphicsCommandList6 * This,
  23731. _In_z_ LPCWSTR Name);
  23732. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  23733. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  23734. ID3D12GraphicsCommandList6 * This,
  23735. REFIID riid,
  23736. _COM_Outptr_opt_ void **ppvDevice);
  23737. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  23738. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  23739. ID3D12GraphicsCommandList6 * This);
  23740. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  23741. HRESULT ( STDMETHODCALLTYPE *Close )(
  23742. ID3D12GraphicsCommandList6 * This);
  23743. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  23744. HRESULT ( STDMETHODCALLTYPE *Reset )(
  23745. ID3D12GraphicsCommandList6 * This,
  23746. _In_ ID3D12CommandAllocator *pAllocator,
  23747. _In_opt_ ID3D12PipelineState *pInitialState);
  23748. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  23749. void ( STDMETHODCALLTYPE *ClearState )(
  23750. ID3D12GraphicsCommandList6 * This,
  23751. _In_opt_ ID3D12PipelineState *pPipelineState);
  23752. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  23753. void ( STDMETHODCALLTYPE *DrawInstanced )(
  23754. ID3D12GraphicsCommandList6 * This,
  23755. _In_ UINT VertexCountPerInstance,
  23756. _In_ UINT InstanceCount,
  23757. _In_ UINT StartVertexLocation,
  23758. _In_ UINT StartInstanceLocation);
  23759. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  23760. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  23761. ID3D12GraphicsCommandList6 * This,
  23762. _In_ UINT IndexCountPerInstance,
  23763. _In_ UINT InstanceCount,
  23764. _In_ UINT StartIndexLocation,
  23765. _In_ INT BaseVertexLocation,
  23766. _In_ UINT StartInstanceLocation);
  23767. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  23768. void ( STDMETHODCALLTYPE *Dispatch )(
  23769. ID3D12GraphicsCommandList6 * This,
  23770. _In_ UINT ThreadGroupCountX,
  23771. _In_ UINT ThreadGroupCountY,
  23772. _In_ UINT ThreadGroupCountZ);
  23773. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  23774. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  23775. ID3D12GraphicsCommandList6 * This,
  23776. _In_ ID3D12Resource *pDstBuffer,
  23777. UINT64 DstOffset,
  23778. _In_ ID3D12Resource *pSrcBuffer,
  23779. UINT64 SrcOffset,
  23780. UINT64 NumBytes);
  23781. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  23782. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  23783. ID3D12GraphicsCommandList6 * This,
  23784. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  23785. UINT DstX,
  23786. UINT DstY,
  23787. UINT DstZ,
  23788. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  23789. _In_opt_ const D3D12_BOX *pSrcBox);
  23790. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  23791. void ( STDMETHODCALLTYPE *CopyResource )(
  23792. ID3D12GraphicsCommandList6 * This,
  23793. _In_ ID3D12Resource *pDstResource,
  23794. _In_ ID3D12Resource *pSrcResource);
  23795. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  23796. void ( STDMETHODCALLTYPE *CopyTiles )(
  23797. ID3D12GraphicsCommandList6 * This,
  23798. _In_ ID3D12Resource *pTiledResource,
  23799. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  23800. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  23801. _In_ ID3D12Resource *pBuffer,
  23802. UINT64 BufferStartOffsetInBytes,
  23803. D3D12_TILE_COPY_FLAGS Flags);
  23804. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  23805. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  23806. ID3D12GraphicsCommandList6 * This,
  23807. _In_ ID3D12Resource *pDstResource,
  23808. _In_ UINT DstSubresource,
  23809. _In_ ID3D12Resource *pSrcResource,
  23810. _In_ UINT SrcSubresource,
  23811. _In_ DXGI_FORMAT Format);
  23812. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  23813. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  23814. ID3D12GraphicsCommandList6 * This,
  23815. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  23816. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  23817. void ( STDMETHODCALLTYPE *RSSetViewports )(
  23818. ID3D12GraphicsCommandList6 * This,
  23819. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  23820. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  23821. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  23822. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  23823. ID3D12GraphicsCommandList6 * This,
  23824. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  23825. _In_reads_( NumRects) const D3D12_RECT *pRects);
  23826. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  23827. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  23828. ID3D12GraphicsCommandList6 * This,
  23829. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  23830. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  23831. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  23832. ID3D12GraphicsCommandList6 * This,
  23833. _In_ UINT StencilRef);
  23834. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  23835. void ( STDMETHODCALLTYPE *SetPipelineState )(
  23836. ID3D12GraphicsCommandList6 * This,
  23837. _In_ ID3D12PipelineState *pPipelineState);
  23838. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  23839. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  23840. ID3D12GraphicsCommandList6 * This,
  23841. _In_ UINT NumBarriers,
  23842. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  23843. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  23844. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  23845. ID3D12GraphicsCommandList6 * This,
  23846. _In_ ID3D12GraphicsCommandList *pCommandList);
  23847. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  23848. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  23849. ID3D12GraphicsCommandList6 * This,
  23850. _In_ UINT NumDescriptorHeaps,
  23851. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  23852. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  23853. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  23854. ID3D12GraphicsCommandList6 * This,
  23855. _In_opt_ ID3D12RootSignature *pRootSignature);
  23856. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  23857. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  23858. ID3D12GraphicsCommandList6 * This,
  23859. _In_opt_ ID3D12RootSignature *pRootSignature);
  23860. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  23861. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  23862. ID3D12GraphicsCommandList6 * This,
  23863. _In_ UINT RootParameterIndex,
  23864. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  23865. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  23866. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  23867. ID3D12GraphicsCommandList6 * This,
  23868. _In_ UINT RootParameterIndex,
  23869. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  23870. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  23871. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  23872. ID3D12GraphicsCommandList6 * This,
  23873. _In_ UINT RootParameterIndex,
  23874. _In_ UINT SrcData,
  23875. _In_ UINT DestOffsetIn32BitValues);
  23876. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  23877. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  23878. ID3D12GraphicsCommandList6 * This,
  23879. _In_ UINT RootParameterIndex,
  23880. _In_ UINT SrcData,
  23881. _In_ UINT DestOffsetIn32BitValues);
  23882. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  23883. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  23884. ID3D12GraphicsCommandList6 * This,
  23885. _In_ UINT RootParameterIndex,
  23886. _In_ UINT Num32BitValuesToSet,
  23887. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  23888. _In_ UINT DestOffsetIn32BitValues);
  23889. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  23890. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  23891. ID3D12GraphicsCommandList6 * This,
  23892. _In_ UINT RootParameterIndex,
  23893. _In_ UINT Num32BitValuesToSet,
  23894. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  23895. _In_ UINT DestOffsetIn32BitValues);
  23896. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  23897. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  23898. ID3D12GraphicsCommandList6 * This,
  23899. _In_ UINT RootParameterIndex,
  23900. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23901. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  23902. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  23903. ID3D12GraphicsCommandList6 * This,
  23904. _In_ UINT RootParameterIndex,
  23905. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23906. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  23907. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  23908. ID3D12GraphicsCommandList6 * This,
  23909. _In_ UINT RootParameterIndex,
  23910. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23911. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  23912. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  23913. ID3D12GraphicsCommandList6 * This,
  23914. _In_ UINT RootParameterIndex,
  23915. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23916. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  23917. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  23918. ID3D12GraphicsCommandList6 * This,
  23919. _In_ UINT RootParameterIndex,
  23920. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23921. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  23922. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  23923. ID3D12GraphicsCommandList6 * This,
  23924. _In_ UINT RootParameterIndex,
  23925. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23926. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  23927. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  23928. ID3D12GraphicsCommandList6 * This,
  23929. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  23930. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  23931. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  23932. ID3D12GraphicsCommandList6 * This,
  23933. _In_ UINT StartSlot,
  23934. _In_ UINT NumViews,
  23935. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  23936. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  23937. void ( STDMETHODCALLTYPE *SOSetTargets )(
  23938. ID3D12GraphicsCommandList6 * This,
  23939. _In_ UINT StartSlot,
  23940. _In_ UINT NumViews,
  23941. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  23942. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  23943. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  23944. ID3D12GraphicsCommandList6 * This,
  23945. _In_ UINT NumRenderTargetDescriptors,
  23946. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  23947. _In_ BOOL RTsSingleHandleToDescriptorRange,
  23948. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  23949. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  23950. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  23951. ID3D12GraphicsCommandList6 * This,
  23952. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  23953. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  23954. _In_ FLOAT Depth,
  23955. _In_ UINT8 Stencil,
  23956. _In_ UINT NumRects,
  23957. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23958. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  23959. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  23960. ID3D12GraphicsCommandList6 * This,
  23961. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  23962. _In_ const FLOAT ColorRGBA[ 4 ],
  23963. _In_ UINT NumRects,
  23964. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23965. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  23966. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  23967. ID3D12GraphicsCommandList6 * This,
  23968. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  23969. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  23970. _In_ ID3D12Resource *pResource,
  23971. _In_ const UINT Values[ 4 ],
  23972. _In_ UINT NumRects,
  23973. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23974. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  23975. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  23976. ID3D12GraphicsCommandList6 * This,
  23977. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  23978. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  23979. _In_ ID3D12Resource *pResource,
  23980. _In_ const FLOAT Values[ 4 ],
  23981. _In_ UINT NumRects,
  23982. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23983. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  23984. void ( STDMETHODCALLTYPE *DiscardResource )(
  23985. ID3D12GraphicsCommandList6 * This,
  23986. _In_ ID3D12Resource *pResource,
  23987. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  23988. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  23989. void ( STDMETHODCALLTYPE *BeginQuery )(
  23990. ID3D12GraphicsCommandList6 * This,
  23991. _In_ ID3D12QueryHeap *pQueryHeap,
  23992. _In_ D3D12_QUERY_TYPE Type,
  23993. _In_ UINT Index);
  23994. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  23995. void ( STDMETHODCALLTYPE *EndQuery )(
  23996. ID3D12GraphicsCommandList6 * This,
  23997. _In_ ID3D12QueryHeap *pQueryHeap,
  23998. _In_ D3D12_QUERY_TYPE Type,
  23999. _In_ UINT Index);
  24000. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  24001. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  24002. ID3D12GraphicsCommandList6 * This,
  24003. _In_ ID3D12QueryHeap *pQueryHeap,
  24004. _In_ D3D12_QUERY_TYPE Type,
  24005. _In_ UINT StartIndex,
  24006. _In_ UINT NumQueries,
  24007. _In_ ID3D12Resource *pDestinationBuffer,
  24008. _In_ UINT64 AlignedDestinationBufferOffset);
  24009. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  24010. void ( STDMETHODCALLTYPE *SetPredication )(
  24011. ID3D12GraphicsCommandList6 * This,
  24012. _In_opt_ ID3D12Resource *pBuffer,
  24013. _In_ UINT64 AlignedBufferOffset,
  24014. _In_ D3D12_PREDICATION_OP Operation);
  24015. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  24016. void ( STDMETHODCALLTYPE *SetMarker )(
  24017. ID3D12GraphicsCommandList6 * This,
  24018. UINT Metadata,
  24019. _In_reads_bytes_opt_(Size) const void *pData,
  24020. UINT Size);
  24021. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  24022. void ( STDMETHODCALLTYPE *BeginEvent )(
  24023. ID3D12GraphicsCommandList6 * This,
  24024. UINT Metadata,
  24025. _In_reads_bytes_opt_(Size) const void *pData,
  24026. UINT Size);
  24027. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  24028. void ( STDMETHODCALLTYPE *EndEvent )(
  24029. ID3D12GraphicsCommandList6 * This);
  24030. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  24031. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  24032. ID3D12GraphicsCommandList6 * This,
  24033. _In_ ID3D12CommandSignature *pCommandSignature,
  24034. _In_ UINT MaxCommandCount,
  24035. _In_ ID3D12Resource *pArgumentBuffer,
  24036. _In_ UINT64 ArgumentBufferOffset,
  24037. _In_opt_ ID3D12Resource *pCountBuffer,
  24038. _In_ UINT64 CountBufferOffset);
  24039. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  24040. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  24041. ID3D12GraphicsCommandList6 * This,
  24042. _In_ ID3D12Resource *pDstBuffer,
  24043. UINT64 DstOffset,
  24044. _In_ ID3D12Resource *pSrcBuffer,
  24045. UINT64 SrcOffset,
  24046. UINT Dependencies,
  24047. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  24048. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  24049. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  24050. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  24051. ID3D12GraphicsCommandList6 * This,
  24052. _In_ ID3D12Resource *pDstBuffer,
  24053. UINT64 DstOffset,
  24054. _In_ ID3D12Resource *pSrcBuffer,
  24055. UINT64 SrcOffset,
  24056. UINT Dependencies,
  24057. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  24058. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  24059. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  24060. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  24061. ID3D12GraphicsCommandList6 * This,
  24062. _In_ FLOAT Min,
  24063. _In_ FLOAT Max);
  24064. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  24065. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  24066. ID3D12GraphicsCommandList6 * This,
  24067. _In_ UINT NumSamplesPerPixel,
  24068. _In_ UINT NumPixels,
  24069. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  24070. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  24071. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  24072. ID3D12GraphicsCommandList6 * This,
  24073. _In_ ID3D12Resource *pDstResource,
  24074. _In_ UINT DstSubresource,
  24075. _In_ UINT DstX,
  24076. _In_ UINT DstY,
  24077. _In_ ID3D12Resource *pSrcResource,
  24078. _In_ UINT SrcSubresource,
  24079. _In_opt_ D3D12_RECT *pSrcRect,
  24080. _In_ DXGI_FORMAT Format,
  24081. _In_ D3D12_RESOLVE_MODE ResolveMode);
  24082. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  24083. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  24084. ID3D12GraphicsCommandList6 * This,
  24085. _In_ UINT Mask);
  24086. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  24087. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  24088. ID3D12GraphicsCommandList6 * This,
  24089. UINT Count,
  24090. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  24091. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  24092. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  24093. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  24094. ID3D12GraphicsCommandList6 * This,
  24095. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  24096. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  24097. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  24098. ID3D12GraphicsCommandList6 * This,
  24099. _In_ UINT NumRenderTargets,
  24100. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  24101. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  24102. D3D12_RENDER_PASS_FLAGS Flags);
  24103. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  24104. void ( STDMETHODCALLTYPE *EndRenderPass )(
  24105. ID3D12GraphicsCommandList6 * This);
  24106. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  24107. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  24108. ID3D12GraphicsCommandList6 * This,
  24109. _In_ ID3D12MetaCommand *pMetaCommand,
  24110. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  24111. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  24112. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  24113. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  24114. ID3D12GraphicsCommandList6 * This,
  24115. _In_ ID3D12MetaCommand *pMetaCommand,
  24116. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  24117. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  24118. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  24119. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  24120. ID3D12GraphicsCommandList6 * This,
  24121. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  24122. _In_ UINT NumPostbuildInfoDescs,
  24123. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  24124. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  24125. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  24126. ID3D12GraphicsCommandList6 * This,
  24127. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  24128. _In_ UINT NumSourceAccelerationStructures,
  24129. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  24130. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  24131. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  24132. ID3D12GraphicsCommandList6 * This,
  24133. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  24134. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  24135. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  24136. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  24137. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  24138. ID3D12GraphicsCommandList6 * This,
  24139. _In_ ID3D12StateObject *pStateObject);
  24140. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  24141. void ( STDMETHODCALLTYPE *DispatchRays )(
  24142. ID3D12GraphicsCommandList6 * This,
  24143. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  24144. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  24145. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  24146. ID3D12GraphicsCommandList6 * This,
  24147. _In_ D3D12_SHADING_RATE baseShadingRate,
  24148. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  24149. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  24150. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  24151. ID3D12GraphicsCommandList6 * This,
  24152. _In_opt_ ID3D12Resource *shadingRateImage);
  24153. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  24154. void ( STDMETHODCALLTYPE *DispatchMesh )(
  24155. ID3D12GraphicsCommandList6 * This,
  24156. _In_ UINT ThreadGroupCountX,
  24157. _In_ UINT ThreadGroupCountY,
  24158. _In_ UINT ThreadGroupCountZ);
  24159. END_INTERFACE
  24160. } ID3D12GraphicsCommandList6Vtbl;
  24161. interface ID3D12GraphicsCommandList6
  24162. {
  24163. CONST_VTBL struct ID3D12GraphicsCommandList6Vtbl *lpVtbl;
  24164. };
  24165. #ifdef COBJMACROS
  24166. #define ID3D12GraphicsCommandList6_QueryInterface(This,riid,ppvObject) \
  24167. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  24168. #define ID3D12GraphicsCommandList6_AddRef(This) \
  24169. ( (This)->lpVtbl -> AddRef(This) )
  24170. #define ID3D12GraphicsCommandList6_Release(This) \
  24171. ( (This)->lpVtbl -> Release(This) )
  24172. #define ID3D12GraphicsCommandList6_GetPrivateData(This,guid,pDataSize,pData) \
  24173. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  24174. #define ID3D12GraphicsCommandList6_SetPrivateData(This,guid,DataSize,pData) \
  24175. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  24176. #define ID3D12GraphicsCommandList6_SetPrivateDataInterface(This,guid,pData) \
  24177. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  24178. #define ID3D12GraphicsCommandList6_SetName(This,Name) \
  24179. ( (This)->lpVtbl -> SetName(This,Name) )
  24180. #define ID3D12GraphicsCommandList6_GetDevice(This,riid,ppvDevice) \
  24181. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  24182. #define ID3D12GraphicsCommandList6_GetType(This) \
  24183. ( (This)->lpVtbl -> GetType(This) )
  24184. #define ID3D12GraphicsCommandList6_Close(This) \
  24185. ( (This)->lpVtbl -> Close(This) )
  24186. #define ID3D12GraphicsCommandList6_Reset(This,pAllocator,pInitialState) \
  24187. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  24188. #define ID3D12GraphicsCommandList6_ClearState(This,pPipelineState) \
  24189. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  24190. #define ID3D12GraphicsCommandList6_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  24191. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  24192. #define ID3D12GraphicsCommandList6_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  24193. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  24194. #define ID3D12GraphicsCommandList6_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  24195. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  24196. #define ID3D12GraphicsCommandList6_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  24197. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  24198. #define ID3D12GraphicsCommandList6_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  24199. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  24200. #define ID3D12GraphicsCommandList6_CopyResource(This,pDstResource,pSrcResource) \
  24201. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  24202. #define ID3D12GraphicsCommandList6_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  24203. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  24204. #define ID3D12GraphicsCommandList6_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  24205. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  24206. #define ID3D12GraphicsCommandList6_IASetPrimitiveTopology(This,PrimitiveTopology) \
  24207. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  24208. #define ID3D12GraphicsCommandList6_RSSetViewports(This,NumViewports,pViewports) \
  24209. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  24210. #define ID3D12GraphicsCommandList6_RSSetScissorRects(This,NumRects,pRects) \
  24211. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  24212. #define ID3D12GraphicsCommandList6_OMSetBlendFactor(This,BlendFactor) \
  24213. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  24214. #define ID3D12GraphicsCommandList6_OMSetStencilRef(This,StencilRef) \
  24215. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  24216. #define ID3D12GraphicsCommandList6_SetPipelineState(This,pPipelineState) \
  24217. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  24218. #define ID3D12GraphicsCommandList6_ResourceBarrier(This,NumBarriers,pBarriers) \
  24219. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  24220. #define ID3D12GraphicsCommandList6_ExecuteBundle(This,pCommandList) \
  24221. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  24222. #define ID3D12GraphicsCommandList6_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  24223. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  24224. #define ID3D12GraphicsCommandList6_SetComputeRootSignature(This,pRootSignature) \
  24225. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  24226. #define ID3D12GraphicsCommandList6_SetGraphicsRootSignature(This,pRootSignature) \
  24227. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  24228. #define ID3D12GraphicsCommandList6_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  24229. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  24230. #define ID3D12GraphicsCommandList6_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  24231. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  24232. #define ID3D12GraphicsCommandList6_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  24233. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  24234. #define ID3D12GraphicsCommandList6_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  24235. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  24236. #define ID3D12GraphicsCommandList6_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  24237. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  24238. #define ID3D12GraphicsCommandList6_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  24239. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  24240. #define ID3D12GraphicsCommandList6_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  24241. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  24242. #define ID3D12GraphicsCommandList6_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  24243. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  24244. #define ID3D12GraphicsCommandList6_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  24245. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  24246. #define ID3D12GraphicsCommandList6_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  24247. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  24248. #define ID3D12GraphicsCommandList6_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  24249. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  24250. #define ID3D12GraphicsCommandList6_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  24251. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  24252. #define ID3D12GraphicsCommandList6_IASetIndexBuffer(This,pView) \
  24253. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  24254. #define ID3D12GraphicsCommandList6_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  24255. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  24256. #define ID3D12GraphicsCommandList6_SOSetTargets(This,StartSlot,NumViews,pViews) \
  24257. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  24258. #define ID3D12GraphicsCommandList6_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  24259. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  24260. #define ID3D12GraphicsCommandList6_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  24261. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  24262. #define ID3D12GraphicsCommandList6_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  24263. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  24264. #define ID3D12GraphicsCommandList6_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  24265. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  24266. #define ID3D12GraphicsCommandList6_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  24267. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  24268. #define ID3D12GraphicsCommandList6_DiscardResource(This,pResource,pRegion) \
  24269. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  24270. #define ID3D12GraphicsCommandList6_BeginQuery(This,pQueryHeap,Type,Index) \
  24271. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  24272. #define ID3D12GraphicsCommandList6_EndQuery(This,pQueryHeap,Type,Index) \
  24273. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  24274. #define ID3D12GraphicsCommandList6_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  24275. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  24276. #define ID3D12GraphicsCommandList6_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  24277. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  24278. #define ID3D12GraphicsCommandList6_SetMarker(This,Metadata,pData,Size) \
  24279. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  24280. #define ID3D12GraphicsCommandList6_BeginEvent(This,Metadata,pData,Size) \
  24281. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  24282. #define ID3D12GraphicsCommandList6_EndEvent(This) \
  24283. ( (This)->lpVtbl -> EndEvent(This) )
  24284. #define ID3D12GraphicsCommandList6_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  24285. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  24286. #define ID3D12GraphicsCommandList6_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  24287. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  24288. #define ID3D12GraphicsCommandList6_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  24289. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  24290. #define ID3D12GraphicsCommandList6_OMSetDepthBounds(This,Min,Max) \
  24291. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  24292. #define ID3D12GraphicsCommandList6_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  24293. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  24294. #define ID3D12GraphicsCommandList6_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  24295. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  24296. #define ID3D12GraphicsCommandList6_SetViewInstanceMask(This,Mask) \
  24297. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  24298. #define ID3D12GraphicsCommandList6_WriteBufferImmediate(This,Count,pParams,pModes) \
  24299. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  24300. #define ID3D12GraphicsCommandList6_SetProtectedResourceSession(This,pProtectedResourceSession) \
  24301. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  24302. #define ID3D12GraphicsCommandList6_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  24303. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  24304. #define ID3D12GraphicsCommandList6_EndRenderPass(This) \
  24305. ( (This)->lpVtbl -> EndRenderPass(This) )
  24306. #define ID3D12GraphicsCommandList6_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  24307. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  24308. #define ID3D12GraphicsCommandList6_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  24309. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  24310. #define ID3D12GraphicsCommandList6_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  24311. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  24312. #define ID3D12GraphicsCommandList6_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  24313. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  24314. #define ID3D12GraphicsCommandList6_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  24315. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  24316. #define ID3D12GraphicsCommandList6_SetPipelineState1(This,pStateObject) \
  24317. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  24318. #define ID3D12GraphicsCommandList6_DispatchRays(This,pDesc) \
  24319. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  24320. #define ID3D12GraphicsCommandList6_RSSetShadingRate(This,baseShadingRate,combiners) \
  24321. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  24322. #define ID3D12GraphicsCommandList6_RSSetShadingRateImage(This,shadingRateImage) \
  24323. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  24324. #define ID3D12GraphicsCommandList6_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  24325. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  24326. #endif /* COBJMACROS */
  24327. #endif /* C style interface */
  24328. #endif /* __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__ */
  24329. #ifndef __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__
  24330. #define __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__
  24331. /* interface ID3D12GraphicsCommandList7 */
  24332. /* [unique][local][object][uuid] */
  24333. EXTERN_C const IID IID_ID3D12GraphicsCommandList7;
  24334. #if defined(__cplusplus) && !defined(CINTERFACE)
  24335. MIDL_INTERFACE("dd171223-8b61-4769-90e3-160ccde4e2c1")
  24336. ID3D12GraphicsCommandList7 : public ID3D12GraphicsCommandList6
  24337. {
  24338. public:
  24339. virtual void STDMETHODCALLTYPE Barrier(
  24340. UINT32 NumBarrierGroups,
  24341. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups) = 0;
  24342. };
  24343. #else /* C style interface */
  24344. typedef struct ID3D12GraphicsCommandList7Vtbl
  24345. {
  24346. BEGIN_INTERFACE
  24347. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  24348. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  24349. ID3D12GraphicsCommandList7 * This,
  24350. REFIID riid,
  24351. _COM_Outptr_ void **ppvObject);
  24352. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  24353. ULONG ( STDMETHODCALLTYPE *AddRef )(
  24354. ID3D12GraphicsCommandList7 * This);
  24355. DECLSPEC_XFGVIRT(IUnknown, Release)
  24356. ULONG ( STDMETHODCALLTYPE *Release )(
  24357. ID3D12GraphicsCommandList7 * This);
  24358. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  24359. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  24360. ID3D12GraphicsCommandList7 * This,
  24361. _In_ REFGUID guid,
  24362. _Inout_ UINT *pDataSize,
  24363. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  24364. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  24365. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  24366. ID3D12GraphicsCommandList7 * This,
  24367. _In_ REFGUID guid,
  24368. _In_ UINT DataSize,
  24369. _In_reads_bytes_opt_( DataSize ) const void *pData);
  24370. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  24371. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  24372. ID3D12GraphicsCommandList7 * This,
  24373. _In_ REFGUID guid,
  24374. _In_opt_ const IUnknown *pData);
  24375. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  24376. HRESULT ( STDMETHODCALLTYPE *SetName )(
  24377. ID3D12GraphicsCommandList7 * This,
  24378. _In_z_ LPCWSTR Name);
  24379. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  24380. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  24381. ID3D12GraphicsCommandList7 * This,
  24382. REFIID riid,
  24383. _COM_Outptr_opt_ void **ppvDevice);
  24384. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  24385. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  24386. ID3D12GraphicsCommandList7 * This);
  24387. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  24388. HRESULT ( STDMETHODCALLTYPE *Close )(
  24389. ID3D12GraphicsCommandList7 * This);
  24390. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  24391. HRESULT ( STDMETHODCALLTYPE *Reset )(
  24392. ID3D12GraphicsCommandList7 * This,
  24393. _In_ ID3D12CommandAllocator *pAllocator,
  24394. _In_opt_ ID3D12PipelineState *pInitialState);
  24395. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  24396. void ( STDMETHODCALLTYPE *ClearState )(
  24397. ID3D12GraphicsCommandList7 * This,
  24398. _In_opt_ ID3D12PipelineState *pPipelineState);
  24399. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  24400. void ( STDMETHODCALLTYPE *DrawInstanced )(
  24401. ID3D12GraphicsCommandList7 * This,
  24402. _In_ UINT VertexCountPerInstance,
  24403. _In_ UINT InstanceCount,
  24404. _In_ UINT StartVertexLocation,
  24405. _In_ UINT StartInstanceLocation);
  24406. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  24407. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  24408. ID3D12GraphicsCommandList7 * This,
  24409. _In_ UINT IndexCountPerInstance,
  24410. _In_ UINT InstanceCount,
  24411. _In_ UINT StartIndexLocation,
  24412. _In_ INT BaseVertexLocation,
  24413. _In_ UINT StartInstanceLocation);
  24414. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  24415. void ( STDMETHODCALLTYPE *Dispatch )(
  24416. ID3D12GraphicsCommandList7 * This,
  24417. _In_ UINT ThreadGroupCountX,
  24418. _In_ UINT ThreadGroupCountY,
  24419. _In_ UINT ThreadGroupCountZ);
  24420. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  24421. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  24422. ID3D12GraphicsCommandList7 * This,
  24423. _In_ ID3D12Resource *pDstBuffer,
  24424. UINT64 DstOffset,
  24425. _In_ ID3D12Resource *pSrcBuffer,
  24426. UINT64 SrcOffset,
  24427. UINT64 NumBytes);
  24428. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  24429. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  24430. ID3D12GraphicsCommandList7 * This,
  24431. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  24432. UINT DstX,
  24433. UINT DstY,
  24434. UINT DstZ,
  24435. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  24436. _In_opt_ const D3D12_BOX *pSrcBox);
  24437. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  24438. void ( STDMETHODCALLTYPE *CopyResource )(
  24439. ID3D12GraphicsCommandList7 * This,
  24440. _In_ ID3D12Resource *pDstResource,
  24441. _In_ ID3D12Resource *pSrcResource);
  24442. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  24443. void ( STDMETHODCALLTYPE *CopyTiles )(
  24444. ID3D12GraphicsCommandList7 * This,
  24445. _In_ ID3D12Resource *pTiledResource,
  24446. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  24447. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  24448. _In_ ID3D12Resource *pBuffer,
  24449. UINT64 BufferStartOffsetInBytes,
  24450. D3D12_TILE_COPY_FLAGS Flags);
  24451. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  24452. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  24453. ID3D12GraphicsCommandList7 * This,
  24454. _In_ ID3D12Resource *pDstResource,
  24455. _In_ UINT DstSubresource,
  24456. _In_ ID3D12Resource *pSrcResource,
  24457. _In_ UINT SrcSubresource,
  24458. _In_ DXGI_FORMAT Format);
  24459. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  24460. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  24461. ID3D12GraphicsCommandList7 * This,
  24462. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  24463. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  24464. void ( STDMETHODCALLTYPE *RSSetViewports )(
  24465. ID3D12GraphicsCommandList7 * This,
  24466. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  24467. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  24468. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  24469. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  24470. ID3D12GraphicsCommandList7 * This,
  24471. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  24472. _In_reads_( NumRects) const D3D12_RECT *pRects);
  24473. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  24474. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  24475. ID3D12GraphicsCommandList7 * This,
  24476. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  24477. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  24478. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  24479. ID3D12GraphicsCommandList7 * This,
  24480. _In_ UINT StencilRef);
  24481. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  24482. void ( STDMETHODCALLTYPE *SetPipelineState )(
  24483. ID3D12GraphicsCommandList7 * This,
  24484. _In_ ID3D12PipelineState *pPipelineState);
  24485. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  24486. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  24487. ID3D12GraphicsCommandList7 * This,
  24488. _In_ UINT NumBarriers,
  24489. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  24490. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  24491. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  24492. ID3D12GraphicsCommandList7 * This,
  24493. _In_ ID3D12GraphicsCommandList *pCommandList);
  24494. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  24495. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  24496. ID3D12GraphicsCommandList7 * This,
  24497. _In_ UINT NumDescriptorHeaps,
  24498. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  24499. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  24500. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  24501. ID3D12GraphicsCommandList7 * This,
  24502. _In_opt_ ID3D12RootSignature *pRootSignature);
  24503. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  24504. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  24505. ID3D12GraphicsCommandList7 * This,
  24506. _In_opt_ ID3D12RootSignature *pRootSignature);
  24507. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  24508. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  24509. ID3D12GraphicsCommandList7 * This,
  24510. _In_ UINT RootParameterIndex,
  24511. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  24512. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  24513. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  24514. ID3D12GraphicsCommandList7 * This,
  24515. _In_ UINT RootParameterIndex,
  24516. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  24517. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  24518. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  24519. ID3D12GraphicsCommandList7 * This,
  24520. _In_ UINT RootParameterIndex,
  24521. _In_ UINT SrcData,
  24522. _In_ UINT DestOffsetIn32BitValues);
  24523. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  24524. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  24525. ID3D12GraphicsCommandList7 * This,
  24526. _In_ UINT RootParameterIndex,
  24527. _In_ UINT SrcData,
  24528. _In_ UINT DestOffsetIn32BitValues);
  24529. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  24530. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  24531. ID3D12GraphicsCommandList7 * This,
  24532. _In_ UINT RootParameterIndex,
  24533. _In_ UINT Num32BitValuesToSet,
  24534. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  24535. _In_ UINT DestOffsetIn32BitValues);
  24536. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  24537. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  24538. ID3D12GraphicsCommandList7 * This,
  24539. _In_ UINT RootParameterIndex,
  24540. _In_ UINT Num32BitValuesToSet,
  24541. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  24542. _In_ UINT DestOffsetIn32BitValues);
  24543. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  24544. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  24545. ID3D12GraphicsCommandList7 * This,
  24546. _In_ UINT RootParameterIndex,
  24547. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24548. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  24549. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  24550. ID3D12GraphicsCommandList7 * This,
  24551. _In_ UINT RootParameterIndex,
  24552. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24553. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  24554. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  24555. ID3D12GraphicsCommandList7 * This,
  24556. _In_ UINT RootParameterIndex,
  24557. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24558. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  24559. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  24560. ID3D12GraphicsCommandList7 * This,
  24561. _In_ UINT RootParameterIndex,
  24562. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24563. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  24564. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  24565. ID3D12GraphicsCommandList7 * This,
  24566. _In_ UINT RootParameterIndex,
  24567. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24568. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  24569. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  24570. ID3D12GraphicsCommandList7 * This,
  24571. _In_ UINT RootParameterIndex,
  24572. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  24573. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  24574. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  24575. ID3D12GraphicsCommandList7 * This,
  24576. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  24577. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  24578. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  24579. ID3D12GraphicsCommandList7 * This,
  24580. _In_ UINT StartSlot,
  24581. _In_ UINT NumViews,
  24582. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  24583. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  24584. void ( STDMETHODCALLTYPE *SOSetTargets )(
  24585. ID3D12GraphicsCommandList7 * This,
  24586. _In_ UINT StartSlot,
  24587. _In_ UINT NumViews,
  24588. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  24589. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  24590. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  24591. ID3D12GraphicsCommandList7 * This,
  24592. _In_ UINT NumRenderTargetDescriptors,
  24593. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  24594. _In_ BOOL RTsSingleHandleToDescriptorRange,
  24595. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  24596. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  24597. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  24598. ID3D12GraphicsCommandList7 * This,
  24599. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  24600. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  24601. _In_ FLOAT Depth,
  24602. _In_ UINT8 Stencil,
  24603. _In_ UINT NumRects,
  24604. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24605. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  24606. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  24607. ID3D12GraphicsCommandList7 * This,
  24608. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  24609. _In_ const FLOAT ColorRGBA[ 4 ],
  24610. _In_ UINT NumRects,
  24611. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24612. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  24613. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  24614. ID3D12GraphicsCommandList7 * This,
  24615. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  24616. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  24617. _In_ ID3D12Resource *pResource,
  24618. _In_ const UINT Values[ 4 ],
  24619. _In_ UINT NumRects,
  24620. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24621. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  24622. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  24623. ID3D12GraphicsCommandList7 * This,
  24624. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  24625. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  24626. _In_ ID3D12Resource *pResource,
  24627. _In_ const FLOAT Values[ 4 ],
  24628. _In_ UINT NumRects,
  24629. _In_reads_(NumRects) const D3D12_RECT *pRects);
  24630. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  24631. void ( STDMETHODCALLTYPE *DiscardResource )(
  24632. ID3D12GraphicsCommandList7 * This,
  24633. _In_ ID3D12Resource *pResource,
  24634. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  24635. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  24636. void ( STDMETHODCALLTYPE *BeginQuery )(
  24637. ID3D12GraphicsCommandList7 * This,
  24638. _In_ ID3D12QueryHeap *pQueryHeap,
  24639. _In_ D3D12_QUERY_TYPE Type,
  24640. _In_ UINT Index);
  24641. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  24642. void ( STDMETHODCALLTYPE *EndQuery )(
  24643. ID3D12GraphicsCommandList7 * This,
  24644. _In_ ID3D12QueryHeap *pQueryHeap,
  24645. _In_ D3D12_QUERY_TYPE Type,
  24646. _In_ UINT Index);
  24647. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  24648. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  24649. ID3D12GraphicsCommandList7 * This,
  24650. _In_ ID3D12QueryHeap *pQueryHeap,
  24651. _In_ D3D12_QUERY_TYPE Type,
  24652. _In_ UINT StartIndex,
  24653. _In_ UINT NumQueries,
  24654. _In_ ID3D12Resource *pDestinationBuffer,
  24655. _In_ UINT64 AlignedDestinationBufferOffset);
  24656. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  24657. void ( STDMETHODCALLTYPE *SetPredication )(
  24658. ID3D12GraphicsCommandList7 * This,
  24659. _In_opt_ ID3D12Resource *pBuffer,
  24660. _In_ UINT64 AlignedBufferOffset,
  24661. _In_ D3D12_PREDICATION_OP Operation);
  24662. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  24663. void ( STDMETHODCALLTYPE *SetMarker )(
  24664. ID3D12GraphicsCommandList7 * This,
  24665. UINT Metadata,
  24666. _In_reads_bytes_opt_(Size) const void *pData,
  24667. UINT Size);
  24668. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  24669. void ( STDMETHODCALLTYPE *BeginEvent )(
  24670. ID3D12GraphicsCommandList7 * This,
  24671. UINT Metadata,
  24672. _In_reads_bytes_opt_(Size) const void *pData,
  24673. UINT Size);
  24674. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  24675. void ( STDMETHODCALLTYPE *EndEvent )(
  24676. ID3D12GraphicsCommandList7 * This);
  24677. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  24678. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  24679. ID3D12GraphicsCommandList7 * This,
  24680. _In_ ID3D12CommandSignature *pCommandSignature,
  24681. _In_ UINT MaxCommandCount,
  24682. _In_ ID3D12Resource *pArgumentBuffer,
  24683. _In_ UINT64 ArgumentBufferOffset,
  24684. _In_opt_ ID3D12Resource *pCountBuffer,
  24685. _In_ UINT64 CountBufferOffset);
  24686. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  24687. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  24688. ID3D12GraphicsCommandList7 * This,
  24689. _In_ ID3D12Resource *pDstBuffer,
  24690. UINT64 DstOffset,
  24691. _In_ ID3D12Resource *pSrcBuffer,
  24692. UINT64 SrcOffset,
  24693. UINT Dependencies,
  24694. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  24695. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  24696. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  24697. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  24698. ID3D12GraphicsCommandList7 * This,
  24699. _In_ ID3D12Resource *pDstBuffer,
  24700. UINT64 DstOffset,
  24701. _In_ ID3D12Resource *pSrcBuffer,
  24702. UINT64 SrcOffset,
  24703. UINT Dependencies,
  24704. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  24705. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  24706. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  24707. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  24708. ID3D12GraphicsCommandList7 * This,
  24709. _In_ FLOAT Min,
  24710. _In_ FLOAT Max);
  24711. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  24712. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  24713. ID3D12GraphicsCommandList7 * This,
  24714. _In_ UINT NumSamplesPerPixel,
  24715. _In_ UINT NumPixels,
  24716. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  24717. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  24718. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  24719. ID3D12GraphicsCommandList7 * This,
  24720. _In_ ID3D12Resource *pDstResource,
  24721. _In_ UINT DstSubresource,
  24722. _In_ UINT DstX,
  24723. _In_ UINT DstY,
  24724. _In_ ID3D12Resource *pSrcResource,
  24725. _In_ UINT SrcSubresource,
  24726. _In_opt_ D3D12_RECT *pSrcRect,
  24727. _In_ DXGI_FORMAT Format,
  24728. _In_ D3D12_RESOLVE_MODE ResolveMode);
  24729. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  24730. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  24731. ID3D12GraphicsCommandList7 * This,
  24732. _In_ UINT Mask);
  24733. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  24734. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  24735. ID3D12GraphicsCommandList7 * This,
  24736. UINT Count,
  24737. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  24738. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  24739. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  24740. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  24741. ID3D12GraphicsCommandList7 * This,
  24742. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  24743. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  24744. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  24745. ID3D12GraphicsCommandList7 * This,
  24746. _In_ UINT NumRenderTargets,
  24747. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  24748. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  24749. D3D12_RENDER_PASS_FLAGS Flags);
  24750. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  24751. void ( STDMETHODCALLTYPE *EndRenderPass )(
  24752. ID3D12GraphicsCommandList7 * This);
  24753. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  24754. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  24755. ID3D12GraphicsCommandList7 * This,
  24756. _In_ ID3D12MetaCommand *pMetaCommand,
  24757. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  24758. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  24759. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  24760. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  24761. ID3D12GraphicsCommandList7 * This,
  24762. _In_ ID3D12MetaCommand *pMetaCommand,
  24763. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  24764. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  24765. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  24766. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  24767. ID3D12GraphicsCommandList7 * This,
  24768. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  24769. _In_ UINT NumPostbuildInfoDescs,
  24770. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  24771. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  24772. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  24773. ID3D12GraphicsCommandList7 * This,
  24774. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  24775. _In_ UINT NumSourceAccelerationStructures,
  24776. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  24777. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  24778. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  24779. ID3D12GraphicsCommandList7 * This,
  24780. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  24781. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  24782. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  24783. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  24784. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  24785. ID3D12GraphicsCommandList7 * This,
  24786. _In_ ID3D12StateObject *pStateObject);
  24787. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  24788. void ( STDMETHODCALLTYPE *DispatchRays )(
  24789. ID3D12GraphicsCommandList7 * This,
  24790. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  24791. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  24792. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  24793. ID3D12GraphicsCommandList7 * This,
  24794. _In_ D3D12_SHADING_RATE baseShadingRate,
  24795. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  24796. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  24797. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  24798. ID3D12GraphicsCommandList7 * This,
  24799. _In_opt_ ID3D12Resource *shadingRateImage);
  24800. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  24801. void ( STDMETHODCALLTYPE *DispatchMesh )(
  24802. ID3D12GraphicsCommandList7 * This,
  24803. _In_ UINT ThreadGroupCountX,
  24804. _In_ UINT ThreadGroupCountY,
  24805. _In_ UINT ThreadGroupCountZ);
  24806. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  24807. void ( STDMETHODCALLTYPE *Barrier )(
  24808. ID3D12GraphicsCommandList7 * This,
  24809. UINT32 NumBarrierGroups,
  24810. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  24811. END_INTERFACE
  24812. } ID3D12GraphicsCommandList7Vtbl;
  24813. interface ID3D12GraphicsCommandList7
  24814. {
  24815. CONST_VTBL struct ID3D12GraphicsCommandList7Vtbl *lpVtbl;
  24816. };
  24817. #ifdef COBJMACROS
  24818. #define ID3D12GraphicsCommandList7_QueryInterface(This,riid,ppvObject) \
  24819. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  24820. #define ID3D12GraphicsCommandList7_AddRef(This) \
  24821. ( (This)->lpVtbl -> AddRef(This) )
  24822. #define ID3D12GraphicsCommandList7_Release(This) \
  24823. ( (This)->lpVtbl -> Release(This) )
  24824. #define ID3D12GraphicsCommandList7_GetPrivateData(This,guid,pDataSize,pData) \
  24825. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  24826. #define ID3D12GraphicsCommandList7_SetPrivateData(This,guid,DataSize,pData) \
  24827. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  24828. #define ID3D12GraphicsCommandList7_SetPrivateDataInterface(This,guid,pData) \
  24829. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  24830. #define ID3D12GraphicsCommandList7_SetName(This,Name) \
  24831. ( (This)->lpVtbl -> SetName(This,Name) )
  24832. #define ID3D12GraphicsCommandList7_GetDevice(This,riid,ppvDevice) \
  24833. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  24834. #define ID3D12GraphicsCommandList7_GetType(This) \
  24835. ( (This)->lpVtbl -> GetType(This) )
  24836. #define ID3D12GraphicsCommandList7_Close(This) \
  24837. ( (This)->lpVtbl -> Close(This) )
  24838. #define ID3D12GraphicsCommandList7_Reset(This,pAllocator,pInitialState) \
  24839. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  24840. #define ID3D12GraphicsCommandList7_ClearState(This,pPipelineState) \
  24841. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  24842. #define ID3D12GraphicsCommandList7_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  24843. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  24844. #define ID3D12GraphicsCommandList7_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  24845. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  24846. #define ID3D12GraphicsCommandList7_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  24847. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  24848. #define ID3D12GraphicsCommandList7_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  24849. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  24850. #define ID3D12GraphicsCommandList7_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  24851. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  24852. #define ID3D12GraphicsCommandList7_CopyResource(This,pDstResource,pSrcResource) \
  24853. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  24854. #define ID3D12GraphicsCommandList7_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  24855. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  24856. #define ID3D12GraphicsCommandList7_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  24857. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  24858. #define ID3D12GraphicsCommandList7_IASetPrimitiveTopology(This,PrimitiveTopology) \
  24859. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  24860. #define ID3D12GraphicsCommandList7_RSSetViewports(This,NumViewports,pViewports) \
  24861. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  24862. #define ID3D12GraphicsCommandList7_RSSetScissorRects(This,NumRects,pRects) \
  24863. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  24864. #define ID3D12GraphicsCommandList7_OMSetBlendFactor(This,BlendFactor) \
  24865. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  24866. #define ID3D12GraphicsCommandList7_OMSetStencilRef(This,StencilRef) \
  24867. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  24868. #define ID3D12GraphicsCommandList7_SetPipelineState(This,pPipelineState) \
  24869. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  24870. #define ID3D12GraphicsCommandList7_ResourceBarrier(This,NumBarriers,pBarriers) \
  24871. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  24872. #define ID3D12GraphicsCommandList7_ExecuteBundle(This,pCommandList) \
  24873. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  24874. #define ID3D12GraphicsCommandList7_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  24875. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  24876. #define ID3D12GraphicsCommandList7_SetComputeRootSignature(This,pRootSignature) \
  24877. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  24878. #define ID3D12GraphicsCommandList7_SetGraphicsRootSignature(This,pRootSignature) \
  24879. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  24880. #define ID3D12GraphicsCommandList7_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  24881. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  24882. #define ID3D12GraphicsCommandList7_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  24883. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  24884. #define ID3D12GraphicsCommandList7_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  24885. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  24886. #define ID3D12GraphicsCommandList7_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  24887. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  24888. #define ID3D12GraphicsCommandList7_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  24889. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  24890. #define ID3D12GraphicsCommandList7_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  24891. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  24892. #define ID3D12GraphicsCommandList7_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  24893. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  24894. #define ID3D12GraphicsCommandList7_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  24895. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  24896. #define ID3D12GraphicsCommandList7_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  24897. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  24898. #define ID3D12GraphicsCommandList7_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  24899. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  24900. #define ID3D12GraphicsCommandList7_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  24901. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  24902. #define ID3D12GraphicsCommandList7_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  24903. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  24904. #define ID3D12GraphicsCommandList7_IASetIndexBuffer(This,pView) \
  24905. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  24906. #define ID3D12GraphicsCommandList7_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  24907. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  24908. #define ID3D12GraphicsCommandList7_SOSetTargets(This,StartSlot,NumViews,pViews) \
  24909. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  24910. #define ID3D12GraphicsCommandList7_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  24911. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  24912. #define ID3D12GraphicsCommandList7_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  24913. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  24914. #define ID3D12GraphicsCommandList7_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  24915. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  24916. #define ID3D12GraphicsCommandList7_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  24917. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  24918. #define ID3D12GraphicsCommandList7_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  24919. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  24920. #define ID3D12GraphicsCommandList7_DiscardResource(This,pResource,pRegion) \
  24921. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  24922. #define ID3D12GraphicsCommandList7_BeginQuery(This,pQueryHeap,Type,Index) \
  24923. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  24924. #define ID3D12GraphicsCommandList7_EndQuery(This,pQueryHeap,Type,Index) \
  24925. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  24926. #define ID3D12GraphicsCommandList7_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  24927. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  24928. #define ID3D12GraphicsCommandList7_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  24929. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  24930. #define ID3D12GraphicsCommandList7_SetMarker(This,Metadata,pData,Size) \
  24931. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  24932. #define ID3D12GraphicsCommandList7_BeginEvent(This,Metadata,pData,Size) \
  24933. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  24934. #define ID3D12GraphicsCommandList7_EndEvent(This) \
  24935. ( (This)->lpVtbl -> EndEvent(This) )
  24936. #define ID3D12GraphicsCommandList7_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  24937. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  24938. #define ID3D12GraphicsCommandList7_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  24939. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  24940. #define ID3D12GraphicsCommandList7_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  24941. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  24942. #define ID3D12GraphicsCommandList7_OMSetDepthBounds(This,Min,Max) \
  24943. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  24944. #define ID3D12GraphicsCommandList7_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  24945. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  24946. #define ID3D12GraphicsCommandList7_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  24947. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  24948. #define ID3D12GraphicsCommandList7_SetViewInstanceMask(This,Mask) \
  24949. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  24950. #define ID3D12GraphicsCommandList7_WriteBufferImmediate(This,Count,pParams,pModes) \
  24951. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  24952. #define ID3D12GraphicsCommandList7_SetProtectedResourceSession(This,pProtectedResourceSession) \
  24953. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  24954. #define ID3D12GraphicsCommandList7_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  24955. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  24956. #define ID3D12GraphicsCommandList7_EndRenderPass(This) \
  24957. ( (This)->lpVtbl -> EndRenderPass(This) )
  24958. #define ID3D12GraphicsCommandList7_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  24959. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  24960. #define ID3D12GraphicsCommandList7_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  24961. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  24962. #define ID3D12GraphicsCommandList7_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  24963. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  24964. #define ID3D12GraphicsCommandList7_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  24965. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  24966. #define ID3D12GraphicsCommandList7_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  24967. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  24968. #define ID3D12GraphicsCommandList7_SetPipelineState1(This,pStateObject) \
  24969. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  24970. #define ID3D12GraphicsCommandList7_DispatchRays(This,pDesc) \
  24971. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  24972. #define ID3D12GraphicsCommandList7_RSSetShadingRate(This,baseShadingRate,combiners) \
  24973. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  24974. #define ID3D12GraphicsCommandList7_RSSetShadingRateImage(This,shadingRateImage) \
  24975. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  24976. #define ID3D12GraphicsCommandList7_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  24977. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  24978. #define ID3D12GraphicsCommandList7_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  24979. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  24980. #endif /* COBJMACROS */
  24981. #endif /* C style interface */
  24982. #endif /* __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__ */
  24983. #ifndef __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__
  24984. #define __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__
  24985. /* interface ID3D12GraphicsCommandList8 */
  24986. /* [unique][local][object][uuid] */
  24987. EXTERN_C const IID IID_ID3D12GraphicsCommandList8;
  24988. #if defined(__cplusplus) && !defined(CINTERFACE)
  24989. MIDL_INTERFACE("ee936ef9-599d-4d28-938e-23c4ad05ce51")
  24990. ID3D12GraphicsCommandList8 : public ID3D12GraphicsCommandList7
  24991. {
  24992. public:
  24993. virtual void STDMETHODCALLTYPE OMSetFrontAndBackStencilRef(
  24994. _In_ UINT FrontStencilRef,
  24995. _In_ UINT BackStencilRef) = 0;
  24996. };
  24997. #else /* C style interface */
  24998. typedef struct ID3D12GraphicsCommandList8Vtbl
  24999. {
  25000. BEGIN_INTERFACE
  25001. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  25002. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  25003. ID3D12GraphicsCommandList8 * This,
  25004. REFIID riid,
  25005. _COM_Outptr_ void **ppvObject);
  25006. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  25007. ULONG ( STDMETHODCALLTYPE *AddRef )(
  25008. ID3D12GraphicsCommandList8 * This);
  25009. DECLSPEC_XFGVIRT(IUnknown, Release)
  25010. ULONG ( STDMETHODCALLTYPE *Release )(
  25011. ID3D12GraphicsCommandList8 * This);
  25012. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  25013. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  25014. ID3D12GraphicsCommandList8 * This,
  25015. _In_ REFGUID guid,
  25016. _Inout_ UINT *pDataSize,
  25017. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  25018. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  25019. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  25020. ID3D12GraphicsCommandList8 * This,
  25021. _In_ REFGUID guid,
  25022. _In_ UINT DataSize,
  25023. _In_reads_bytes_opt_( DataSize ) const void *pData);
  25024. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  25025. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  25026. ID3D12GraphicsCommandList8 * This,
  25027. _In_ REFGUID guid,
  25028. _In_opt_ const IUnknown *pData);
  25029. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  25030. HRESULT ( STDMETHODCALLTYPE *SetName )(
  25031. ID3D12GraphicsCommandList8 * This,
  25032. _In_z_ LPCWSTR Name);
  25033. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  25034. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  25035. ID3D12GraphicsCommandList8 * This,
  25036. REFIID riid,
  25037. _COM_Outptr_opt_ void **ppvDevice);
  25038. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  25039. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  25040. ID3D12GraphicsCommandList8 * This);
  25041. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  25042. HRESULT ( STDMETHODCALLTYPE *Close )(
  25043. ID3D12GraphicsCommandList8 * This);
  25044. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  25045. HRESULT ( STDMETHODCALLTYPE *Reset )(
  25046. ID3D12GraphicsCommandList8 * This,
  25047. _In_ ID3D12CommandAllocator *pAllocator,
  25048. _In_opt_ ID3D12PipelineState *pInitialState);
  25049. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  25050. void ( STDMETHODCALLTYPE *ClearState )(
  25051. ID3D12GraphicsCommandList8 * This,
  25052. _In_opt_ ID3D12PipelineState *pPipelineState);
  25053. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  25054. void ( STDMETHODCALLTYPE *DrawInstanced )(
  25055. ID3D12GraphicsCommandList8 * This,
  25056. _In_ UINT VertexCountPerInstance,
  25057. _In_ UINT InstanceCount,
  25058. _In_ UINT StartVertexLocation,
  25059. _In_ UINT StartInstanceLocation);
  25060. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  25061. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  25062. ID3D12GraphicsCommandList8 * This,
  25063. _In_ UINT IndexCountPerInstance,
  25064. _In_ UINT InstanceCount,
  25065. _In_ UINT StartIndexLocation,
  25066. _In_ INT BaseVertexLocation,
  25067. _In_ UINT StartInstanceLocation);
  25068. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  25069. void ( STDMETHODCALLTYPE *Dispatch )(
  25070. ID3D12GraphicsCommandList8 * This,
  25071. _In_ UINT ThreadGroupCountX,
  25072. _In_ UINT ThreadGroupCountY,
  25073. _In_ UINT ThreadGroupCountZ);
  25074. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  25075. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  25076. ID3D12GraphicsCommandList8 * This,
  25077. _In_ ID3D12Resource *pDstBuffer,
  25078. UINT64 DstOffset,
  25079. _In_ ID3D12Resource *pSrcBuffer,
  25080. UINT64 SrcOffset,
  25081. UINT64 NumBytes);
  25082. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  25083. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  25084. ID3D12GraphicsCommandList8 * This,
  25085. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  25086. UINT DstX,
  25087. UINT DstY,
  25088. UINT DstZ,
  25089. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  25090. _In_opt_ const D3D12_BOX *pSrcBox);
  25091. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  25092. void ( STDMETHODCALLTYPE *CopyResource )(
  25093. ID3D12GraphicsCommandList8 * This,
  25094. _In_ ID3D12Resource *pDstResource,
  25095. _In_ ID3D12Resource *pSrcResource);
  25096. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  25097. void ( STDMETHODCALLTYPE *CopyTiles )(
  25098. ID3D12GraphicsCommandList8 * This,
  25099. _In_ ID3D12Resource *pTiledResource,
  25100. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  25101. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  25102. _In_ ID3D12Resource *pBuffer,
  25103. UINT64 BufferStartOffsetInBytes,
  25104. D3D12_TILE_COPY_FLAGS Flags);
  25105. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  25106. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  25107. ID3D12GraphicsCommandList8 * This,
  25108. _In_ ID3D12Resource *pDstResource,
  25109. _In_ UINT DstSubresource,
  25110. _In_ ID3D12Resource *pSrcResource,
  25111. _In_ UINT SrcSubresource,
  25112. _In_ DXGI_FORMAT Format);
  25113. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  25114. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  25115. ID3D12GraphicsCommandList8 * This,
  25116. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  25117. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  25118. void ( STDMETHODCALLTYPE *RSSetViewports )(
  25119. ID3D12GraphicsCommandList8 * This,
  25120. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  25121. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  25122. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  25123. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  25124. ID3D12GraphicsCommandList8 * This,
  25125. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  25126. _In_reads_( NumRects) const D3D12_RECT *pRects);
  25127. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  25128. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  25129. ID3D12GraphicsCommandList8 * This,
  25130. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  25131. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  25132. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  25133. ID3D12GraphicsCommandList8 * This,
  25134. _In_ UINT StencilRef);
  25135. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  25136. void ( STDMETHODCALLTYPE *SetPipelineState )(
  25137. ID3D12GraphicsCommandList8 * This,
  25138. _In_ ID3D12PipelineState *pPipelineState);
  25139. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  25140. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  25141. ID3D12GraphicsCommandList8 * This,
  25142. _In_ UINT NumBarriers,
  25143. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  25144. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  25145. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  25146. ID3D12GraphicsCommandList8 * This,
  25147. _In_ ID3D12GraphicsCommandList *pCommandList);
  25148. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  25149. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  25150. ID3D12GraphicsCommandList8 * This,
  25151. _In_ UINT NumDescriptorHeaps,
  25152. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  25153. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  25154. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  25155. ID3D12GraphicsCommandList8 * This,
  25156. _In_opt_ ID3D12RootSignature *pRootSignature);
  25157. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  25158. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  25159. ID3D12GraphicsCommandList8 * This,
  25160. _In_opt_ ID3D12RootSignature *pRootSignature);
  25161. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  25162. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  25163. ID3D12GraphicsCommandList8 * This,
  25164. _In_ UINT RootParameterIndex,
  25165. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  25166. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  25167. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  25168. ID3D12GraphicsCommandList8 * This,
  25169. _In_ UINT RootParameterIndex,
  25170. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  25171. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  25172. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  25173. ID3D12GraphicsCommandList8 * This,
  25174. _In_ UINT RootParameterIndex,
  25175. _In_ UINT SrcData,
  25176. _In_ UINT DestOffsetIn32BitValues);
  25177. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  25178. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  25179. ID3D12GraphicsCommandList8 * This,
  25180. _In_ UINT RootParameterIndex,
  25181. _In_ UINT SrcData,
  25182. _In_ UINT DestOffsetIn32BitValues);
  25183. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  25184. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  25185. ID3D12GraphicsCommandList8 * This,
  25186. _In_ UINT RootParameterIndex,
  25187. _In_ UINT Num32BitValuesToSet,
  25188. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  25189. _In_ UINT DestOffsetIn32BitValues);
  25190. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  25191. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  25192. ID3D12GraphicsCommandList8 * This,
  25193. _In_ UINT RootParameterIndex,
  25194. _In_ UINT Num32BitValuesToSet,
  25195. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  25196. _In_ UINT DestOffsetIn32BitValues);
  25197. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  25198. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  25199. ID3D12GraphicsCommandList8 * This,
  25200. _In_ UINT RootParameterIndex,
  25201. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25202. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  25203. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  25204. ID3D12GraphicsCommandList8 * This,
  25205. _In_ UINT RootParameterIndex,
  25206. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25207. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  25208. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  25209. ID3D12GraphicsCommandList8 * This,
  25210. _In_ UINT RootParameterIndex,
  25211. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25212. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  25213. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  25214. ID3D12GraphicsCommandList8 * This,
  25215. _In_ UINT RootParameterIndex,
  25216. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25217. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  25218. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  25219. ID3D12GraphicsCommandList8 * This,
  25220. _In_ UINT RootParameterIndex,
  25221. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25222. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  25223. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  25224. ID3D12GraphicsCommandList8 * This,
  25225. _In_ UINT RootParameterIndex,
  25226. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25227. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  25228. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  25229. ID3D12GraphicsCommandList8 * This,
  25230. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  25231. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  25232. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  25233. ID3D12GraphicsCommandList8 * This,
  25234. _In_ UINT StartSlot,
  25235. _In_ UINT NumViews,
  25236. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  25237. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  25238. void ( STDMETHODCALLTYPE *SOSetTargets )(
  25239. ID3D12GraphicsCommandList8 * This,
  25240. _In_ UINT StartSlot,
  25241. _In_ UINT NumViews,
  25242. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  25243. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  25244. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  25245. ID3D12GraphicsCommandList8 * This,
  25246. _In_ UINT NumRenderTargetDescriptors,
  25247. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  25248. _In_ BOOL RTsSingleHandleToDescriptorRange,
  25249. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  25250. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  25251. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  25252. ID3D12GraphicsCommandList8 * This,
  25253. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  25254. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  25255. _In_ FLOAT Depth,
  25256. _In_ UINT8 Stencil,
  25257. _In_ UINT NumRects,
  25258. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25259. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  25260. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  25261. ID3D12GraphicsCommandList8 * This,
  25262. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  25263. _In_ const FLOAT ColorRGBA[ 4 ],
  25264. _In_ UINT NumRects,
  25265. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25266. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  25267. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  25268. ID3D12GraphicsCommandList8 * This,
  25269. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  25270. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  25271. _In_ ID3D12Resource *pResource,
  25272. _In_ const UINT Values[ 4 ],
  25273. _In_ UINT NumRects,
  25274. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25275. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  25276. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  25277. ID3D12GraphicsCommandList8 * This,
  25278. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  25279. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  25280. _In_ ID3D12Resource *pResource,
  25281. _In_ const FLOAT Values[ 4 ],
  25282. _In_ UINT NumRects,
  25283. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25284. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  25285. void ( STDMETHODCALLTYPE *DiscardResource )(
  25286. ID3D12GraphicsCommandList8 * This,
  25287. _In_ ID3D12Resource *pResource,
  25288. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  25289. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  25290. void ( STDMETHODCALLTYPE *BeginQuery )(
  25291. ID3D12GraphicsCommandList8 * This,
  25292. _In_ ID3D12QueryHeap *pQueryHeap,
  25293. _In_ D3D12_QUERY_TYPE Type,
  25294. _In_ UINT Index);
  25295. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  25296. void ( STDMETHODCALLTYPE *EndQuery )(
  25297. ID3D12GraphicsCommandList8 * This,
  25298. _In_ ID3D12QueryHeap *pQueryHeap,
  25299. _In_ D3D12_QUERY_TYPE Type,
  25300. _In_ UINT Index);
  25301. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  25302. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  25303. ID3D12GraphicsCommandList8 * This,
  25304. _In_ ID3D12QueryHeap *pQueryHeap,
  25305. _In_ D3D12_QUERY_TYPE Type,
  25306. _In_ UINT StartIndex,
  25307. _In_ UINT NumQueries,
  25308. _In_ ID3D12Resource *pDestinationBuffer,
  25309. _In_ UINT64 AlignedDestinationBufferOffset);
  25310. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  25311. void ( STDMETHODCALLTYPE *SetPredication )(
  25312. ID3D12GraphicsCommandList8 * This,
  25313. _In_opt_ ID3D12Resource *pBuffer,
  25314. _In_ UINT64 AlignedBufferOffset,
  25315. _In_ D3D12_PREDICATION_OP Operation);
  25316. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  25317. void ( STDMETHODCALLTYPE *SetMarker )(
  25318. ID3D12GraphicsCommandList8 * This,
  25319. UINT Metadata,
  25320. _In_reads_bytes_opt_(Size) const void *pData,
  25321. UINT Size);
  25322. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  25323. void ( STDMETHODCALLTYPE *BeginEvent )(
  25324. ID3D12GraphicsCommandList8 * This,
  25325. UINT Metadata,
  25326. _In_reads_bytes_opt_(Size) const void *pData,
  25327. UINT Size);
  25328. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  25329. void ( STDMETHODCALLTYPE *EndEvent )(
  25330. ID3D12GraphicsCommandList8 * This);
  25331. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  25332. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  25333. ID3D12GraphicsCommandList8 * This,
  25334. _In_ ID3D12CommandSignature *pCommandSignature,
  25335. _In_ UINT MaxCommandCount,
  25336. _In_ ID3D12Resource *pArgumentBuffer,
  25337. _In_ UINT64 ArgumentBufferOffset,
  25338. _In_opt_ ID3D12Resource *pCountBuffer,
  25339. _In_ UINT64 CountBufferOffset);
  25340. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  25341. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  25342. ID3D12GraphicsCommandList8 * This,
  25343. _In_ ID3D12Resource *pDstBuffer,
  25344. UINT64 DstOffset,
  25345. _In_ ID3D12Resource *pSrcBuffer,
  25346. UINT64 SrcOffset,
  25347. UINT Dependencies,
  25348. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  25349. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  25350. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  25351. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  25352. ID3D12GraphicsCommandList8 * This,
  25353. _In_ ID3D12Resource *pDstBuffer,
  25354. UINT64 DstOffset,
  25355. _In_ ID3D12Resource *pSrcBuffer,
  25356. UINT64 SrcOffset,
  25357. UINT Dependencies,
  25358. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  25359. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  25360. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  25361. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  25362. ID3D12GraphicsCommandList8 * This,
  25363. _In_ FLOAT Min,
  25364. _In_ FLOAT Max);
  25365. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  25366. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  25367. ID3D12GraphicsCommandList8 * This,
  25368. _In_ UINT NumSamplesPerPixel,
  25369. _In_ UINT NumPixels,
  25370. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  25371. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  25372. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  25373. ID3D12GraphicsCommandList8 * This,
  25374. _In_ ID3D12Resource *pDstResource,
  25375. _In_ UINT DstSubresource,
  25376. _In_ UINT DstX,
  25377. _In_ UINT DstY,
  25378. _In_ ID3D12Resource *pSrcResource,
  25379. _In_ UINT SrcSubresource,
  25380. _In_opt_ D3D12_RECT *pSrcRect,
  25381. _In_ DXGI_FORMAT Format,
  25382. _In_ D3D12_RESOLVE_MODE ResolveMode);
  25383. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  25384. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  25385. ID3D12GraphicsCommandList8 * This,
  25386. _In_ UINT Mask);
  25387. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  25388. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  25389. ID3D12GraphicsCommandList8 * This,
  25390. UINT Count,
  25391. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  25392. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  25393. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  25394. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  25395. ID3D12GraphicsCommandList8 * This,
  25396. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  25397. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  25398. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  25399. ID3D12GraphicsCommandList8 * This,
  25400. _In_ UINT NumRenderTargets,
  25401. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  25402. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  25403. D3D12_RENDER_PASS_FLAGS Flags);
  25404. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  25405. void ( STDMETHODCALLTYPE *EndRenderPass )(
  25406. ID3D12GraphicsCommandList8 * This);
  25407. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  25408. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  25409. ID3D12GraphicsCommandList8 * This,
  25410. _In_ ID3D12MetaCommand *pMetaCommand,
  25411. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  25412. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  25413. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  25414. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  25415. ID3D12GraphicsCommandList8 * This,
  25416. _In_ ID3D12MetaCommand *pMetaCommand,
  25417. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  25418. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  25419. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  25420. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  25421. ID3D12GraphicsCommandList8 * This,
  25422. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  25423. _In_ UINT NumPostbuildInfoDescs,
  25424. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  25425. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  25426. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  25427. ID3D12GraphicsCommandList8 * This,
  25428. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  25429. _In_ UINT NumSourceAccelerationStructures,
  25430. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  25431. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  25432. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  25433. ID3D12GraphicsCommandList8 * This,
  25434. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  25435. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  25436. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  25437. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  25438. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  25439. ID3D12GraphicsCommandList8 * This,
  25440. _In_ ID3D12StateObject *pStateObject);
  25441. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  25442. void ( STDMETHODCALLTYPE *DispatchRays )(
  25443. ID3D12GraphicsCommandList8 * This,
  25444. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  25445. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  25446. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  25447. ID3D12GraphicsCommandList8 * This,
  25448. _In_ D3D12_SHADING_RATE baseShadingRate,
  25449. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  25450. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  25451. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  25452. ID3D12GraphicsCommandList8 * This,
  25453. _In_opt_ ID3D12Resource *shadingRateImage);
  25454. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  25455. void ( STDMETHODCALLTYPE *DispatchMesh )(
  25456. ID3D12GraphicsCommandList8 * This,
  25457. _In_ UINT ThreadGroupCountX,
  25458. _In_ UINT ThreadGroupCountY,
  25459. _In_ UINT ThreadGroupCountZ);
  25460. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  25461. void ( STDMETHODCALLTYPE *Barrier )(
  25462. ID3D12GraphicsCommandList8 * This,
  25463. UINT32 NumBarrierGroups,
  25464. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  25465. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef)
  25466. void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )(
  25467. ID3D12GraphicsCommandList8 * This,
  25468. _In_ UINT FrontStencilRef,
  25469. _In_ UINT BackStencilRef);
  25470. END_INTERFACE
  25471. } ID3D12GraphicsCommandList8Vtbl;
  25472. interface ID3D12GraphicsCommandList8
  25473. {
  25474. CONST_VTBL struct ID3D12GraphicsCommandList8Vtbl *lpVtbl;
  25475. };
  25476. #ifdef COBJMACROS
  25477. #define ID3D12GraphicsCommandList8_QueryInterface(This,riid,ppvObject) \
  25478. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  25479. #define ID3D12GraphicsCommandList8_AddRef(This) \
  25480. ( (This)->lpVtbl -> AddRef(This) )
  25481. #define ID3D12GraphicsCommandList8_Release(This) \
  25482. ( (This)->lpVtbl -> Release(This) )
  25483. #define ID3D12GraphicsCommandList8_GetPrivateData(This,guid,pDataSize,pData) \
  25484. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  25485. #define ID3D12GraphicsCommandList8_SetPrivateData(This,guid,DataSize,pData) \
  25486. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  25487. #define ID3D12GraphicsCommandList8_SetPrivateDataInterface(This,guid,pData) \
  25488. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  25489. #define ID3D12GraphicsCommandList8_SetName(This,Name) \
  25490. ( (This)->lpVtbl -> SetName(This,Name) )
  25491. #define ID3D12GraphicsCommandList8_GetDevice(This,riid,ppvDevice) \
  25492. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  25493. #define ID3D12GraphicsCommandList8_GetType(This) \
  25494. ( (This)->lpVtbl -> GetType(This) )
  25495. #define ID3D12GraphicsCommandList8_Close(This) \
  25496. ( (This)->lpVtbl -> Close(This) )
  25497. #define ID3D12GraphicsCommandList8_Reset(This,pAllocator,pInitialState) \
  25498. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  25499. #define ID3D12GraphicsCommandList8_ClearState(This,pPipelineState) \
  25500. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  25501. #define ID3D12GraphicsCommandList8_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  25502. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  25503. #define ID3D12GraphicsCommandList8_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  25504. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  25505. #define ID3D12GraphicsCommandList8_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  25506. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  25507. #define ID3D12GraphicsCommandList8_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  25508. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  25509. #define ID3D12GraphicsCommandList8_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  25510. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  25511. #define ID3D12GraphicsCommandList8_CopyResource(This,pDstResource,pSrcResource) \
  25512. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  25513. #define ID3D12GraphicsCommandList8_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  25514. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  25515. #define ID3D12GraphicsCommandList8_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  25516. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  25517. #define ID3D12GraphicsCommandList8_IASetPrimitiveTopology(This,PrimitiveTopology) \
  25518. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  25519. #define ID3D12GraphicsCommandList8_RSSetViewports(This,NumViewports,pViewports) \
  25520. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  25521. #define ID3D12GraphicsCommandList8_RSSetScissorRects(This,NumRects,pRects) \
  25522. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  25523. #define ID3D12GraphicsCommandList8_OMSetBlendFactor(This,BlendFactor) \
  25524. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  25525. #define ID3D12GraphicsCommandList8_OMSetStencilRef(This,StencilRef) \
  25526. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  25527. #define ID3D12GraphicsCommandList8_SetPipelineState(This,pPipelineState) \
  25528. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  25529. #define ID3D12GraphicsCommandList8_ResourceBarrier(This,NumBarriers,pBarriers) \
  25530. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  25531. #define ID3D12GraphicsCommandList8_ExecuteBundle(This,pCommandList) \
  25532. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  25533. #define ID3D12GraphicsCommandList8_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  25534. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  25535. #define ID3D12GraphicsCommandList8_SetComputeRootSignature(This,pRootSignature) \
  25536. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  25537. #define ID3D12GraphicsCommandList8_SetGraphicsRootSignature(This,pRootSignature) \
  25538. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  25539. #define ID3D12GraphicsCommandList8_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  25540. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  25541. #define ID3D12GraphicsCommandList8_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  25542. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  25543. #define ID3D12GraphicsCommandList8_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  25544. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  25545. #define ID3D12GraphicsCommandList8_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  25546. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  25547. #define ID3D12GraphicsCommandList8_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  25548. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  25549. #define ID3D12GraphicsCommandList8_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  25550. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  25551. #define ID3D12GraphicsCommandList8_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  25552. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  25553. #define ID3D12GraphicsCommandList8_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  25554. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  25555. #define ID3D12GraphicsCommandList8_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  25556. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  25557. #define ID3D12GraphicsCommandList8_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  25558. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  25559. #define ID3D12GraphicsCommandList8_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  25560. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  25561. #define ID3D12GraphicsCommandList8_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  25562. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  25563. #define ID3D12GraphicsCommandList8_IASetIndexBuffer(This,pView) \
  25564. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  25565. #define ID3D12GraphicsCommandList8_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  25566. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  25567. #define ID3D12GraphicsCommandList8_SOSetTargets(This,StartSlot,NumViews,pViews) \
  25568. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  25569. #define ID3D12GraphicsCommandList8_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  25570. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  25571. #define ID3D12GraphicsCommandList8_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  25572. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  25573. #define ID3D12GraphicsCommandList8_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  25574. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  25575. #define ID3D12GraphicsCommandList8_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  25576. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  25577. #define ID3D12GraphicsCommandList8_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  25578. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  25579. #define ID3D12GraphicsCommandList8_DiscardResource(This,pResource,pRegion) \
  25580. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  25581. #define ID3D12GraphicsCommandList8_BeginQuery(This,pQueryHeap,Type,Index) \
  25582. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  25583. #define ID3D12GraphicsCommandList8_EndQuery(This,pQueryHeap,Type,Index) \
  25584. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  25585. #define ID3D12GraphicsCommandList8_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  25586. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  25587. #define ID3D12GraphicsCommandList8_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  25588. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  25589. #define ID3D12GraphicsCommandList8_SetMarker(This,Metadata,pData,Size) \
  25590. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  25591. #define ID3D12GraphicsCommandList8_BeginEvent(This,Metadata,pData,Size) \
  25592. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  25593. #define ID3D12GraphicsCommandList8_EndEvent(This) \
  25594. ( (This)->lpVtbl -> EndEvent(This) )
  25595. #define ID3D12GraphicsCommandList8_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  25596. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  25597. #define ID3D12GraphicsCommandList8_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  25598. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  25599. #define ID3D12GraphicsCommandList8_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  25600. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  25601. #define ID3D12GraphicsCommandList8_OMSetDepthBounds(This,Min,Max) \
  25602. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  25603. #define ID3D12GraphicsCommandList8_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  25604. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  25605. #define ID3D12GraphicsCommandList8_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  25606. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  25607. #define ID3D12GraphicsCommandList8_SetViewInstanceMask(This,Mask) \
  25608. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  25609. #define ID3D12GraphicsCommandList8_WriteBufferImmediate(This,Count,pParams,pModes) \
  25610. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  25611. #define ID3D12GraphicsCommandList8_SetProtectedResourceSession(This,pProtectedResourceSession) \
  25612. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  25613. #define ID3D12GraphicsCommandList8_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  25614. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  25615. #define ID3D12GraphicsCommandList8_EndRenderPass(This) \
  25616. ( (This)->lpVtbl -> EndRenderPass(This) )
  25617. #define ID3D12GraphicsCommandList8_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  25618. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  25619. #define ID3D12GraphicsCommandList8_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  25620. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  25621. #define ID3D12GraphicsCommandList8_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  25622. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  25623. #define ID3D12GraphicsCommandList8_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  25624. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  25625. #define ID3D12GraphicsCommandList8_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  25626. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  25627. #define ID3D12GraphicsCommandList8_SetPipelineState1(This,pStateObject) \
  25628. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  25629. #define ID3D12GraphicsCommandList8_DispatchRays(This,pDesc) \
  25630. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  25631. #define ID3D12GraphicsCommandList8_RSSetShadingRate(This,baseShadingRate,combiners) \
  25632. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  25633. #define ID3D12GraphicsCommandList8_RSSetShadingRateImage(This,shadingRateImage) \
  25634. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  25635. #define ID3D12GraphicsCommandList8_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  25636. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  25637. #define ID3D12GraphicsCommandList8_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  25638. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  25639. #define ID3D12GraphicsCommandList8_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \
  25640. ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) )
  25641. #endif /* COBJMACROS */
  25642. #endif /* C style interface */
  25643. #endif /* __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__ */
  25644. #ifndef __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__
  25645. #define __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__
  25646. /* interface ID3D12GraphicsCommandList9 */
  25647. /* [unique][local][object][uuid] */
  25648. EXTERN_C const IID IID_ID3D12GraphicsCommandList9;
  25649. #if defined(__cplusplus) && !defined(CINTERFACE)
  25650. MIDL_INTERFACE("34ed2808-ffe6-4c2b-b11a-cabd2b0c59e1")
  25651. ID3D12GraphicsCommandList9 : public ID3D12GraphicsCommandList8
  25652. {
  25653. public:
  25654. virtual void STDMETHODCALLTYPE RSSetDepthBias(
  25655. _In_ FLOAT DepthBias,
  25656. _In_ FLOAT DepthBiasClamp,
  25657. _In_ FLOAT SlopeScaledDepthBias) = 0;
  25658. virtual void STDMETHODCALLTYPE IASetIndexBufferStripCutValue(
  25659. _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue) = 0;
  25660. };
  25661. #else /* C style interface */
  25662. typedef struct ID3D12GraphicsCommandList9Vtbl
  25663. {
  25664. BEGIN_INTERFACE
  25665. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  25666. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  25667. ID3D12GraphicsCommandList9 * This,
  25668. REFIID riid,
  25669. _COM_Outptr_ void **ppvObject);
  25670. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  25671. ULONG ( STDMETHODCALLTYPE *AddRef )(
  25672. ID3D12GraphicsCommandList9 * This);
  25673. DECLSPEC_XFGVIRT(IUnknown, Release)
  25674. ULONG ( STDMETHODCALLTYPE *Release )(
  25675. ID3D12GraphicsCommandList9 * This);
  25676. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  25677. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  25678. ID3D12GraphicsCommandList9 * This,
  25679. _In_ REFGUID guid,
  25680. _Inout_ UINT *pDataSize,
  25681. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  25682. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  25683. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  25684. ID3D12GraphicsCommandList9 * This,
  25685. _In_ REFGUID guid,
  25686. _In_ UINT DataSize,
  25687. _In_reads_bytes_opt_( DataSize ) const void *pData);
  25688. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  25689. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  25690. ID3D12GraphicsCommandList9 * This,
  25691. _In_ REFGUID guid,
  25692. _In_opt_ const IUnknown *pData);
  25693. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  25694. HRESULT ( STDMETHODCALLTYPE *SetName )(
  25695. ID3D12GraphicsCommandList9 * This,
  25696. _In_z_ LPCWSTR Name);
  25697. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  25698. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  25699. ID3D12GraphicsCommandList9 * This,
  25700. REFIID riid,
  25701. _COM_Outptr_opt_ void **ppvDevice);
  25702. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  25703. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  25704. ID3D12GraphicsCommandList9 * This);
  25705. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  25706. HRESULT ( STDMETHODCALLTYPE *Close )(
  25707. ID3D12GraphicsCommandList9 * This);
  25708. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  25709. HRESULT ( STDMETHODCALLTYPE *Reset )(
  25710. ID3D12GraphicsCommandList9 * This,
  25711. _In_ ID3D12CommandAllocator *pAllocator,
  25712. _In_opt_ ID3D12PipelineState *pInitialState);
  25713. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  25714. void ( STDMETHODCALLTYPE *ClearState )(
  25715. ID3D12GraphicsCommandList9 * This,
  25716. _In_opt_ ID3D12PipelineState *pPipelineState);
  25717. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  25718. void ( STDMETHODCALLTYPE *DrawInstanced )(
  25719. ID3D12GraphicsCommandList9 * This,
  25720. _In_ UINT VertexCountPerInstance,
  25721. _In_ UINT InstanceCount,
  25722. _In_ UINT StartVertexLocation,
  25723. _In_ UINT StartInstanceLocation);
  25724. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  25725. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  25726. ID3D12GraphicsCommandList9 * This,
  25727. _In_ UINT IndexCountPerInstance,
  25728. _In_ UINT InstanceCount,
  25729. _In_ UINT StartIndexLocation,
  25730. _In_ INT BaseVertexLocation,
  25731. _In_ UINT StartInstanceLocation);
  25732. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  25733. void ( STDMETHODCALLTYPE *Dispatch )(
  25734. ID3D12GraphicsCommandList9 * This,
  25735. _In_ UINT ThreadGroupCountX,
  25736. _In_ UINT ThreadGroupCountY,
  25737. _In_ UINT ThreadGroupCountZ);
  25738. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  25739. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  25740. ID3D12GraphicsCommandList9 * This,
  25741. _In_ ID3D12Resource *pDstBuffer,
  25742. UINT64 DstOffset,
  25743. _In_ ID3D12Resource *pSrcBuffer,
  25744. UINT64 SrcOffset,
  25745. UINT64 NumBytes);
  25746. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  25747. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  25748. ID3D12GraphicsCommandList9 * This,
  25749. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  25750. UINT DstX,
  25751. UINT DstY,
  25752. UINT DstZ,
  25753. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  25754. _In_opt_ const D3D12_BOX *pSrcBox);
  25755. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  25756. void ( STDMETHODCALLTYPE *CopyResource )(
  25757. ID3D12GraphicsCommandList9 * This,
  25758. _In_ ID3D12Resource *pDstResource,
  25759. _In_ ID3D12Resource *pSrcResource);
  25760. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  25761. void ( STDMETHODCALLTYPE *CopyTiles )(
  25762. ID3D12GraphicsCommandList9 * This,
  25763. _In_ ID3D12Resource *pTiledResource,
  25764. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  25765. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  25766. _In_ ID3D12Resource *pBuffer,
  25767. UINT64 BufferStartOffsetInBytes,
  25768. D3D12_TILE_COPY_FLAGS Flags);
  25769. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  25770. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  25771. ID3D12GraphicsCommandList9 * This,
  25772. _In_ ID3D12Resource *pDstResource,
  25773. _In_ UINT DstSubresource,
  25774. _In_ ID3D12Resource *pSrcResource,
  25775. _In_ UINT SrcSubresource,
  25776. _In_ DXGI_FORMAT Format);
  25777. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  25778. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  25779. ID3D12GraphicsCommandList9 * This,
  25780. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  25781. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  25782. void ( STDMETHODCALLTYPE *RSSetViewports )(
  25783. ID3D12GraphicsCommandList9 * This,
  25784. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  25785. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  25786. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  25787. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  25788. ID3D12GraphicsCommandList9 * This,
  25789. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  25790. _In_reads_( NumRects) const D3D12_RECT *pRects);
  25791. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  25792. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  25793. ID3D12GraphicsCommandList9 * This,
  25794. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  25795. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  25796. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  25797. ID3D12GraphicsCommandList9 * This,
  25798. _In_ UINT StencilRef);
  25799. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  25800. void ( STDMETHODCALLTYPE *SetPipelineState )(
  25801. ID3D12GraphicsCommandList9 * This,
  25802. _In_ ID3D12PipelineState *pPipelineState);
  25803. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  25804. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  25805. ID3D12GraphicsCommandList9 * This,
  25806. _In_ UINT NumBarriers,
  25807. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  25808. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  25809. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  25810. ID3D12GraphicsCommandList9 * This,
  25811. _In_ ID3D12GraphicsCommandList *pCommandList);
  25812. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  25813. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  25814. ID3D12GraphicsCommandList9 * This,
  25815. _In_ UINT NumDescriptorHeaps,
  25816. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  25817. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  25818. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  25819. ID3D12GraphicsCommandList9 * This,
  25820. _In_opt_ ID3D12RootSignature *pRootSignature);
  25821. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  25822. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  25823. ID3D12GraphicsCommandList9 * This,
  25824. _In_opt_ ID3D12RootSignature *pRootSignature);
  25825. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  25826. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  25827. ID3D12GraphicsCommandList9 * This,
  25828. _In_ UINT RootParameterIndex,
  25829. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  25830. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  25831. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  25832. ID3D12GraphicsCommandList9 * This,
  25833. _In_ UINT RootParameterIndex,
  25834. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  25835. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  25836. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  25837. ID3D12GraphicsCommandList9 * This,
  25838. _In_ UINT RootParameterIndex,
  25839. _In_ UINT SrcData,
  25840. _In_ UINT DestOffsetIn32BitValues);
  25841. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  25842. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  25843. ID3D12GraphicsCommandList9 * This,
  25844. _In_ UINT RootParameterIndex,
  25845. _In_ UINT SrcData,
  25846. _In_ UINT DestOffsetIn32BitValues);
  25847. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  25848. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  25849. ID3D12GraphicsCommandList9 * This,
  25850. _In_ UINT RootParameterIndex,
  25851. _In_ UINT Num32BitValuesToSet,
  25852. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  25853. _In_ UINT DestOffsetIn32BitValues);
  25854. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  25855. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  25856. ID3D12GraphicsCommandList9 * This,
  25857. _In_ UINT RootParameterIndex,
  25858. _In_ UINT Num32BitValuesToSet,
  25859. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  25860. _In_ UINT DestOffsetIn32BitValues);
  25861. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  25862. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  25863. ID3D12GraphicsCommandList9 * This,
  25864. _In_ UINT RootParameterIndex,
  25865. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25866. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  25867. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  25868. ID3D12GraphicsCommandList9 * This,
  25869. _In_ UINT RootParameterIndex,
  25870. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25871. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  25872. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  25873. ID3D12GraphicsCommandList9 * This,
  25874. _In_ UINT RootParameterIndex,
  25875. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25876. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  25877. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  25878. ID3D12GraphicsCommandList9 * This,
  25879. _In_ UINT RootParameterIndex,
  25880. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25881. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  25882. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  25883. ID3D12GraphicsCommandList9 * This,
  25884. _In_ UINT RootParameterIndex,
  25885. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25886. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  25887. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  25888. ID3D12GraphicsCommandList9 * This,
  25889. _In_ UINT RootParameterIndex,
  25890. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  25891. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  25892. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  25893. ID3D12GraphicsCommandList9 * This,
  25894. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  25895. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  25896. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  25897. ID3D12GraphicsCommandList9 * This,
  25898. _In_ UINT StartSlot,
  25899. _In_ UINT NumViews,
  25900. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  25901. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  25902. void ( STDMETHODCALLTYPE *SOSetTargets )(
  25903. ID3D12GraphicsCommandList9 * This,
  25904. _In_ UINT StartSlot,
  25905. _In_ UINT NumViews,
  25906. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  25907. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  25908. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  25909. ID3D12GraphicsCommandList9 * This,
  25910. _In_ UINT NumRenderTargetDescriptors,
  25911. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  25912. _In_ BOOL RTsSingleHandleToDescriptorRange,
  25913. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  25914. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  25915. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  25916. ID3D12GraphicsCommandList9 * This,
  25917. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  25918. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  25919. _In_ FLOAT Depth,
  25920. _In_ UINT8 Stencil,
  25921. _In_ UINT NumRects,
  25922. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25923. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  25924. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  25925. ID3D12GraphicsCommandList9 * This,
  25926. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  25927. _In_ const FLOAT ColorRGBA[ 4 ],
  25928. _In_ UINT NumRects,
  25929. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25930. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  25931. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  25932. ID3D12GraphicsCommandList9 * This,
  25933. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  25934. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  25935. _In_ ID3D12Resource *pResource,
  25936. _In_ const UINT Values[ 4 ],
  25937. _In_ UINT NumRects,
  25938. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25939. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  25940. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  25941. ID3D12GraphicsCommandList9 * This,
  25942. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  25943. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  25944. _In_ ID3D12Resource *pResource,
  25945. _In_ const FLOAT Values[ 4 ],
  25946. _In_ UINT NumRects,
  25947. _In_reads_(NumRects) const D3D12_RECT *pRects);
  25948. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  25949. void ( STDMETHODCALLTYPE *DiscardResource )(
  25950. ID3D12GraphicsCommandList9 * This,
  25951. _In_ ID3D12Resource *pResource,
  25952. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  25953. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  25954. void ( STDMETHODCALLTYPE *BeginQuery )(
  25955. ID3D12GraphicsCommandList9 * This,
  25956. _In_ ID3D12QueryHeap *pQueryHeap,
  25957. _In_ D3D12_QUERY_TYPE Type,
  25958. _In_ UINT Index);
  25959. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  25960. void ( STDMETHODCALLTYPE *EndQuery )(
  25961. ID3D12GraphicsCommandList9 * This,
  25962. _In_ ID3D12QueryHeap *pQueryHeap,
  25963. _In_ D3D12_QUERY_TYPE Type,
  25964. _In_ UINT Index);
  25965. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  25966. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  25967. ID3D12GraphicsCommandList9 * This,
  25968. _In_ ID3D12QueryHeap *pQueryHeap,
  25969. _In_ D3D12_QUERY_TYPE Type,
  25970. _In_ UINT StartIndex,
  25971. _In_ UINT NumQueries,
  25972. _In_ ID3D12Resource *pDestinationBuffer,
  25973. _In_ UINT64 AlignedDestinationBufferOffset);
  25974. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  25975. void ( STDMETHODCALLTYPE *SetPredication )(
  25976. ID3D12GraphicsCommandList9 * This,
  25977. _In_opt_ ID3D12Resource *pBuffer,
  25978. _In_ UINT64 AlignedBufferOffset,
  25979. _In_ D3D12_PREDICATION_OP Operation);
  25980. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  25981. void ( STDMETHODCALLTYPE *SetMarker )(
  25982. ID3D12GraphicsCommandList9 * This,
  25983. UINT Metadata,
  25984. _In_reads_bytes_opt_(Size) const void *pData,
  25985. UINT Size);
  25986. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  25987. void ( STDMETHODCALLTYPE *BeginEvent )(
  25988. ID3D12GraphicsCommandList9 * This,
  25989. UINT Metadata,
  25990. _In_reads_bytes_opt_(Size) const void *pData,
  25991. UINT Size);
  25992. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  25993. void ( STDMETHODCALLTYPE *EndEvent )(
  25994. ID3D12GraphicsCommandList9 * This);
  25995. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  25996. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  25997. ID3D12GraphicsCommandList9 * This,
  25998. _In_ ID3D12CommandSignature *pCommandSignature,
  25999. _In_ UINT MaxCommandCount,
  26000. _In_ ID3D12Resource *pArgumentBuffer,
  26001. _In_ UINT64 ArgumentBufferOffset,
  26002. _In_opt_ ID3D12Resource *pCountBuffer,
  26003. _In_ UINT64 CountBufferOffset);
  26004. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  26005. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  26006. ID3D12GraphicsCommandList9 * This,
  26007. _In_ ID3D12Resource *pDstBuffer,
  26008. UINT64 DstOffset,
  26009. _In_ ID3D12Resource *pSrcBuffer,
  26010. UINT64 SrcOffset,
  26011. UINT Dependencies,
  26012. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  26013. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  26014. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  26015. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  26016. ID3D12GraphicsCommandList9 * This,
  26017. _In_ ID3D12Resource *pDstBuffer,
  26018. UINT64 DstOffset,
  26019. _In_ ID3D12Resource *pSrcBuffer,
  26020. UINT64 SrcOffset,
  26021. UINT Dependencies,
  26022. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  26023. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  26024. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  26025. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  26026. ID3D12GraphicsCommandList9 * This,
  26027. _In_ FLOAT Min,
  26028. _In_ FLOAT Max);
  26029. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  26030. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  26031. ID3D12GraphicsCommandList9 * This,
  26032. _In_ UINT NumSamplesPerPixel,
  26033. _In_ UINT NumPixels,
  26034. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  26035. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  26036. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  26037. ID3D12GraphicsCommandList9 * This,
  26038. _In_ ID3D12Resource *pDstResource,
  26039. _In_ UINT DstSubresource,
  26040. _In_ UINT DstX,
  26041. _In_ UINT DstY,
  26042. _In_ ID3D12Resource *pSrcResource,
  26043. _In_ UINT SrcSubresource,
  26044. _In_opt_ D3D12_RECT *pSrcRect,
  26045. _In_ DXGI_FORMAT Format,
  26046. _In_ D3D12_RESOLVE_MODE ResolveMode);
  26047. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  26048. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  26049. ID3D12GraphicsCommandList9 * This,
  26050. _In_ UINT Mask);
  26051. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  26052. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  26053. ID3D12GraphicsCommandList9 * This,
  26054. UINT Count,
  26055. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  26056. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  26057. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  26058. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  26059. ID3D12GraphicsCommandList9 * This,
  26060. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  26061. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  26062. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  26063. ID3D12GraphicsCommandList9 * This,
  26064. _In_ UINT NumRenderTargets,
  26065. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  26066. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  26067. D3D12_RENDER_PASS_FLAGS Flags);
  26068. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  26069. void ( STDMETHODCALLTYPE *EndRenderPass )(
  26070. ID3D12GraphicsCommandList9 * This);
  26071. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  26072. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  26073. ID3D12GraphicsCommandList9 * This,
  26074. _In_ ID3D12MetaCommand *pMetaCommand,
  26075. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  26076. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  26077. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  26078. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  26079. ID3D12GraphicsCommandList9 * This,
  26080. _In_ ID3D12MetaCommand *pMetaCommand,
  26081. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  26082. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  26083. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  26084. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  26085. ID3D12GraphicsCommandList9 * This,
  26086. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  26087. _In_ UINT NumPostbuildInfoDescs,
  26088. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  26089. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  26090. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  26091. ID3D12GraphicsCommandList9 * This,
  26092. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  26093. _In_ UINT NumSourceAccelerationStructures,
  26094. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  26095. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  26096. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  26097. ID3D12GraphicsCommandList9 * This,
  26098. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  26099. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  26100. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  26101. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  26102. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  26103. ID3D12GraphicsCommandList9 * This,
  26104. _In_ ID3D12StateObject *pStateObject);
  26105. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  26106. void ( STDMETHODCALLTYPE *DispatchRays )(
  26107. ID3D12GraphicsCommandList9 * This,
  26108. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  26109. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  26110. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  26111. ID3D12GraphicsCommandList9 * This,
  26112. _In_ D3D12_SHADING_RATE baseShadingRate,
  26113. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  26114. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  26115. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  26116. ID3D12GraphicsCommandList9 * This,
  26117. _In_opt_ ID3D12Resource *shadingRateImage);
  26118. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  26119. void ( STDMETHODCALLTYPE *DispatchMesh )(
  26120. ID3D12GraphicsCommandList9 * This,
  26121. _In_ UINT ThreadGroupCountX,
  26122. _In_ UINT ThreadGroupCountY,
  26123. _In_ UINT ThreadGroupCountZ);
  26124. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  26125. void ( STDMETHODCALLTYPE *Barrier )(
  26126. ID3D12GraphicsCommandList9 * This,
  26127. UINT32 NumBarrierGroups,
  26128. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  26129. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef)
  26130. void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )(
  26131. ID3D12GraphicsCommandList9 * This,
  26132. _In_ UINT FrontStencilRef,
  26133. _In_ UINT BackStencilRef);
  26134. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, RSSetDepthBias)
  26135. void ( STDMETHODCALLTYPE *RSSetDepthBias )(
  26136. ID3D12GraphicsCommandList9 * This,
  26137. _In_ FLOAT DepthBias,
  26138. _In_ FLOAT DepthBiasClamp,
  26139. _In_ FLOAT SlopeScaledDepthBias);
  26140. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, IASetIndexBufferStripCutValue)
  26141. void ( STDMETHODCALLTYPE *IASetIndexBufferStripCutValue )(
  26142. ID3D12GraphicsCommandList9 * This,
  26143. _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue);
  26144. END_INTERFACE
  26145. } ID3D12GraphicsCommandList9Vtbl;
  26146. interface ID3D12GraphicsCommandList9
  26147. {
  26148. CONST_VTBL struct ID3D12GraphicsCommandList9Vtbl *lpVtbl;
  26149. };
  26150. #ifdef COBJMACROS
  26151. #define ID3D12GraphicsCommandList9_QueryInterface(This,riid,ppvObject) \
  26152. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  26153. #define ID3D12GraphicsCommandList9_AddRef(This) \
  26154. ( (This)->lpVtbl -> AddRef(This) )
  26155. #define ID3D12GraphicsCommandList9_Release(This) \
  26156. ( (This)->lpVtbl -> Release(This) )
  26157. #define ID3D12GraphicsCommandList9_GetPrivateData(This,guid,pDataSize,pData) \
  26158. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  26159. #define ID3D12GraphicsCommandList9_SetPrivateData(This,guid,DataSize,pData) \
  26160. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  26161. #define ID3D12GraphicsCommandList9_SetPrivateDataInterface(This,guid,pData) \
  26162. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  26163. #define ID3D12GraphicsCommandList9_SetName(This,Name) \
  26164. ( (This)->lpVtbl -> SetName(This,Name) )
  26165. #define ID3D12GraphicsCommandList9_GetDevice(This,riid,ppvDevice) \
  26166. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  26167. #define ID3D12GraphicsCommandList9_GetType(This) \
  26168. ( (This)->lpVtbl -> GetType(This) )
  26169. #define ID3D12GraphicsCommandList9_Close(This) \
  26170. ( (This)->lpVtbl -> Close(This) )
  26171. #define ID3D12GraphicsCommandList9_Reset(This,pAllocator,pInitialState) \
  26172. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  26173. #define ID3D12GraphicsCommandList9_ClearState(This,pPipelineState) \
  26174. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  26175. #define ID3D12GraphicsCommandList9_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  26176. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  26177. #define ID3D12GraphicsCommandList9_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  26178. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  26179. #define ID3D12GraphicsCommandList9_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  26180. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  26181. #define ID3D12GraphicsCommandList9_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  26182. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  26183. #define ID3D12GraphicsCommandList9_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  26184. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  26185. #define ID3D12GraphicsCommandList9_CopyResource(This,pDstResource,pSrcResource) \
  26186. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  26187. #define ID3D12GraphicsCommandList9_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  26188. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  26189. #define ID3D12GraphicsCommandList9_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  26190. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  26191. #define ID3D12GraphicsCommandList9_IASetPrimitiveTopology(This,PrimitiveTopology) \
  26192. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  26193. #define ID3D12GraphicsCommandList9_RSSetViewports(This,NumViewports,pViewports) \
  26194. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  26195. #define ID3D12GraphicsCommandList9_RSSetScissorRects(This,NumRects,pRects) \
  26196. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  26197. #define ID3D12GraphicsCommandList9_OMSetBlendFactor(This,BlendFactor) \
  26198. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  26199. #define ID3D12GraphicsCommandList9_OMSetStencilRef(This,StencilRef) \
  26200. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  26201. #define ID3D12GraphicsCommandList9_SetPipelineState(This,pPipelineState) \
  26202. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  26203. #define ID3D12GraphicsCommandList9_ResourceBarrier(This,NumBarriers,pBarriers) \
  26204. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  26205. #define ID3D12GraphicsCommandList9_ExecuteBundle(This,pCommandList) \
  26206. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  26207. #define ID3D12GraphicsCommandList9_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  26208. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  26209. #define ID3D12GraphicsCommandList9_SetComputeRootSignature(This,pRootSignature) \
  26210. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  26211. #define ID3D12GraphicsCommandList9_SetGraphicsRootSignature(This,pRootSignature) \
  26212. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  26213. #define ID3D12GraphicsCommandList9_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  26214. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  26215. #define ID3D12GraphicsCommandList9_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  26216. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  26217. #define ID3D12GraphicsCommandList9_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  26218. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  26219. #define ID3D12GraphicsCommandList9_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  26220. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  26221. #define ID3D12GraphicsCommandList9_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  26222. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  26223. #define ID3D12GraphicsCommandList9_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  26224. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  26225. #define ID3D12GraphicsCommandList9_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  26226. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  26227. #define ID3D12GraphicsCommandList9_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  26228. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  26229. #define ID3D12GraphicsCommandList9_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  26230. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  26231. #define ID3D12GraphicsCommandList9_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  26232. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  26233. #define ID3D12GraphicsCommandList9_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  26234. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  26235. #define ID3D12GraphicsCommandList9_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  26236. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  26237. #define ID3D12GraphicsCommandList9_IASetIndexBuffer(This,pView) \
  26238. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  26239. #define ID3D12GraphicsCommandList9_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  26240. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  26241. #define ID3D12GraphicsCommandList9_SOSetTargets(This,StartSlot,NumViews,pViews) \
  26242. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  26243. #define ID3D12GraphicsCommandList9_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  26244. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  26245. #define ID3D12GraphicsCommandList9_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  26246. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  26247. #define ID3D12GraphicsCommandList9_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  26248. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  26249. #define ID3D12GraphicsCommandList9_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  26250. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  26251. #define ID3D12GraphicsCommandList9_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  26252. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  26253. #define ID3D12GraphicsCommandList9_DiscardResource(This,pResource,pRegion) \
  26254. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  26255. #define ID3D12GraphicsCommandList9_BeginQuery(This,pQueryHeap,Type,Index) \
  26256. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  26257. #define ID3D12GraphicsCommandList9_EndQuery(This,pQueryHeap,Type,Index) \
  26258. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  26259. #define ID3D12GraphicsCommandList9_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  26260. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  26261. #define ID3D12GraphicsCommandList9_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  26262. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  26263. #define ID3D12GraphicsCommandList9_SetMarker(This,Metadata,pData,Size) \
  26264. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  26265. #define ID3D12GraphicsCommandList9_BeginEvent(This,Metadata,pData,Size) \
  26266. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  26267. #define ID3D12GraphicsCommandList9_EndEvent(This) \
  26268. ( (This)->lpVtbl -> EndEvent(This) )
  26269. #define ID3D12GraphicsCommandList9_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  26270. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  26271. #define ID3D12GraphicsCommandList9_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  26272. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  26273. #define ID3D12GraphicsCommandList9_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  26274. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  26275. #define ID3D12GraphicsCommandList9_OMSetDepthBounds(This,Min,Max) \
  26276. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  26277. #define ID3D12GraphicsCommandList9_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  26278. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  26279. #define ID3D12GraphicsCommandList9_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  26280. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  26281. #define ID3D12GraphicsCommandList9_SetViewInstanceMask(This,Mask) \
  26282. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  26283. #define ID3D12GraphicsCommandList9_WriteBufferImmediate(This,Count,pParams,pModes) \
  26284. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  26285. #define ID3D12GraphicsCommandList9_SetProtectedResourceSession(This,pProtectedResourceSession) \
  26286. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  26287. #define ID3D12GraphicsCommandList9_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  26288. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  26289. #define ID3D12GraphicsCommandList9_EndRenderPass(This) \
  26290. ( (This)->lpVtbl -> EndRenderPass(This) )
  26291. #define ID3D12GraphicsCommandList9_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  26292. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  26293. #define ID3D12GraphicsCommandList9_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  26294. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  26295. #define ID3D12GraphicsCommandList9_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  26296. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  26297. #define ID3D12GraphicsCommandList9_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  26298. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  26299. #define ID3D12GraphicsCommandList9_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  26300. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  26301. #define ID3D12GraphicsCommandList9_SetPipelineState1(This,pStateObject) \
  26302. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  26303. #define ID3D12GraphicsCommandList9_DispatchRays(This,pDesc) \
  26304. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  26305. #define ID3D12GraphicsCommandList9_RSSetShadingRate(This,baseShadingRate,combiners) \
  26306. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  26307. #define ID3D12GraphicsCommandList9_RSSetShadingRateImage(This,shadingRateImage) \
  26308. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  26309. #define ID3D12GraphicsCommandList9_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  26310. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  26311. #define ID3D12GraphicsCommandList9_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  26312. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  26313. #define ID3D12GraphicsCommandList9_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \
  26314. ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) )
  26315. #define ID3D12GraphicsCommandList9_RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) \
  26316. ( (This)->lpVtbl -> RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) )
  26317. #define ID3D12GraphicsCommandList9_IASetIndexBufferStripCutValue(This,IBStripCutValue) \
  26318. ( (This)->lpVtbl -> IASetIndexBufferStripCutValue(This,IBStripCutValue) )
  26319. #endif /* COBJMACROS */
  26320. #endif /* C style interface */
  26321. #endif /* __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__ */
  26322. #ifndef __ID3D12GraphicsCommandList10_INTERFACE_DEFINED__
  26323. #define __ID3D12GraphicsCommandList10_INTERFACE_DEFINED__
  26324. /* interface ID3D12GraphicsCommandList10 */
  26325. /* [unique][local][object][uuid] */
  26326. EXTERN_C const IID IID_ID3D12GraphicsCommandList10;
  26327. #if defined(__cplusplus) && !defined(CINTERFACE)
  26328. MIDL_INTERFACE("7013c015-d161-4b63-a08c-238552dd8acc")
  26329. ID3D12GraphicsCommandList10 : public ID3D12GraphicsCommandList9
  26330. {
  26331. public:
  26332. virtual void STDMETHODCALLTYPE SetProgram(
  26333. _In_ const D3D12_SET_PROGRAM_DESC *pDesc) = 0;
  26334. virtual void STDMETHODCALLTYPE DispatchGraph(
  26335. _In_ const D3D12_DISPATCH_GRAPH_DESC *pDesc) = 0;
  26336. };
  26337. #else /* C style interface */
  26338. typedef struct ID3D12GraphicsCommandList10Vtbl
  26339. {
  26340. BEGIN_INTERFACE
  26341. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  26342. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  26343. ID3D12GraphicsCommandList10 * This,
  26344. REFIID riid,
  26345. _COM_Outptr_ void **ppvObject);
  26346. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  26347. ULONG ( STDMETHODCALLTYPE *AddRef )(
  26348. ID3D12GraphicsCommandList10 * This);
  26349. DECLSPEC_XFGVIRT(IUnknown, Release)
  26350. ULONG ( STDMETHODCALLTYPE *Release )(
  26351. ID3D12GraphicsCommandList10 * This);
  26352. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  26353. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  26354. ID3D12GraphicsCommandList10 * This,
  26355. _In_ REFGUID guid,
  26356. _Inout_ UINT *pDataSize,
  26357. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  26358. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  26359. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  26360. ID3D12GraphicsCommandList10 * This,
  26361. _In_ REFGUID guid,
  26362. _In_ UINT DataSize,
  26363. _In_reads_bytes_opt_( DataSize ) const void *pData);
  26364. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  26365. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  26366. ID3D12GraphicsCommandList10 * This,
  26367. _In_ REFGUID guid,
  26368. _In_opt_ const IUnknown *pData);
  26369. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  26370. HRESULT ( STDMETHODCALLTYPE *SetName )(
  26371. ID3D12GraphicsCommandList10 * This,
  26372. _In_z_ LPCWSTR Name);
  26373. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  26374. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  26375. ID3D12GraphicsCommandList10 * This,
  26376. REFIID riid,
  26377. _COM_Outptr_opt_ void **ppvDevice);
  26378. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  26379. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  26380. ID3D12GraphicsCommandList10 * This);
  26381. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  26382. HRESULT ( STDMETHODCALLTYPE *Close )(
  26383. ID3D12GraphicsCommandList10 * This);
  26384. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  26385. HRESULT ( STDMETHODCALLTYPE *Reset )(
  26386. ID3D12GraphicsCommandList10 * This,
  26387. _In_ ID3D12CommandAllocator *pAllocator,
  26388. _In_opt_ ID3D12PipelineState *pInitialState);
  26389. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  26390. void ( STDMETHODCALLTYPE *ClearState )(
  26391. ID3D12GraphicsCommandList10 * This,
  26392. _In_opt_ ID3D12PipelineState *pPipelineState);
  26393. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  26394. void ( STDMETHODCALLTYPE *DrawInstanced )(
  26395. ID3D12GraphicsCommandList10 * This,
  26396. _In_ UINT VertexCountPerInstance,
  26397. _In_ UINT InstanceCount,
  26398. _In_ UINT StartVertexLocation,
  26399. _In_ UINT StartInstanceLocation);
  26400. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  26401. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  26402. ID3D12GraphicsCommandList10 * This,
  26403. _In_ UINT IndexCountPerInstance,
  26404. _In_ UINT InstanceCount,
  26405. _In_ UINT StartIndexLocation,
  26406. _In_ INT BaseVertexLocation,
  26407. _In_ UINT StartInstanceLocation);
  26408. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  26409. void ( STDMETHODCALLTYPE *Dispatch )(
  26410. ID3D12GraphicsCommandList10 * This,
  26411. _In_ UINT ThreadGroupCountX,
  26412. _In_ UINT ThreadGroupCountY,
  26413. _In_ UINT ThreadGroupCountZ);
  26414. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  26415. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  26416. ID3D12GraphicsCommandList10 * This,
  26417. _In_ ID3D12Resource *pDstBuffer,
  26418. UINT64 DstOffset,
  26419. _In_ ID3D12Resource *pSrcBuffer,
  26420. UINT64 SrcOffset,
  26421. UINT64 NumBytes);
  26422. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  26423. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  26424. ID3D12GraphicsCommandList10 * This,
  26425. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  26426. UINT DstX,
  26427. UINT DstY,
  26428. UINT DstZ,
  26429. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  26430. _In_opt_ const D3D12_BOX *pSrcBox);
  26431. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  26432. void ( STDMETHODCALLTYPE *CopyResource )(
  26433. ID3D12GraphicsCommandList10 * This,
  26434. _In_ ID3D12Resource *pDstResource,
  26435. _In_ ID3D12Resource *pSrcResource);
  26436. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  26437. void ( STDMETHODCALLTYPE *CopyTiles )(
  26438. ID3D12GraphicsCommandList10 * This,
  26439. _In_ ID3D12Resource *pTiledResource,
  26440. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  26441. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  26442. _In_ ID3D12Resource *pBuffer,
  26443. UINT64 BufferStartOffsetInBytes,
  26444. D3D12_TILE_COPY_FLAGS Flags);
  26445. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  26446. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  26447. ID3D12GraphicsCommandList10 * This,
  26448. _In_ ID3D12Resource *pDstResource,
  26449. _In_ UINT DstSubresource,
  26450. _In_ ID3D12Resource *pSrcResource,
  26451. _In_ UINT SrcSubresource,
  26452. _In_ DXGI_FORMAT Format);
  26453. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  26454. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  26455. ID3D12GraphicsCommandList10 * This,
  26456. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  26457. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  26458. void ( STDMETHODCALLTYPE *RSSetViewports )(
  26459. ID3D12GraphicsCommandList10 * This,
  26460. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  26461. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  26462. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  26463. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  26464. ID3D12GraphicsCommandList10 * This,
  26465. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  26466. _In_reads_( NumRects) const D3D12_RECT *pRects);
  26467. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  26468. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  26469. ID3D12GraphicsCommandList10 * This,
  26470. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  26471. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  26472. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  26473. ID3D12GraphicsCommandList10 * This,
  26474. _In_ UINT StencilRef);
  26475. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  26476. void ( STDMETHODCALLTYPE *SetPipelineState )(
  26477. ID3D12GraphicsCommandList10 * This,
  26478. _In_ ID3D12PipelineState *pPipelineState);
  26479. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  26480. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  26481. ID3D12GraphicsCommandList10 * This,
  26482. _In_ UINT NumBarriers,
  26483. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  26484. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  26485. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  26486. ID3D12GraphicsCommandList10 * This,
  26487. _In_ ID3D12GraphicsCommandList *pCommandList);
  26488. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  26489. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  26490. ID3D12GraphicsCommandList10 * This,
  26491. _In_ UINT NumDescriptorHeaps,
  26492. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  26493. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  26494. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  26495. ID3D12GraphicsCommandList10 * This,
  26496. _In_opt_ ID3D12RootSignature *pRootSignature);
  26497. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  26498. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  26499. ID3D12GraphicsCommandList10 * This,
  26500. _In_opt_ ID3D12RootSignature *pRootSignature);
  26501. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  26502. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  26503. ID3D12GraphicsCommandList10 * This,
  26504. _In_ UINT RootParameterIndex,
  26505. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  26506. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  26507. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  26508. ID3D12GraphicsCommandList10 * This,
  26509. _In_ UINT RootParameterIndex,
  26510. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  26511. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  26512. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  26513. ID3D12GraphicsCommandList10 * This,
  26514. _In_ UINT RootParameterIndex,
  26515. _In_ UINT SrcData,
  26516. _In_ UINT DestOffsetIn32BitValues);
  26517. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  26518. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  26519. ID3D12GraphicsCommandList10 * This,
  26520. _In_ UINT RootParameterIndex,
  26521. _In_ UINT SrcData,
  26522. _In_ UINT DestOffsetIn32BitValues);
  26523. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  26524. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  26525. ID3D12GraphicsCommandList10 * This,
  26526. _In_ UINT RootParameterIndex,
  26527. _In_ UINT Num32BitValuesToSet,
  26528. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  26529. _In_ UINT DestOffsetIn32BitValues);
  26530. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  26531. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  26532. ID3D12GraphicsCommandList10 * This,
  26533. _In_ UINT RootParameterIndex,
  26534. _In_ UINT Num32BitValuesToSet,
  26535. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  26536. _In_ UINT DestOffsetIn32BitValues);
  26537. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  26538. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  26539. ID3D12GraphicsCommandList10 * This,
  26540. _In_ UINT RootParameterIndex,
  26541. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26542. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  26543. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  26544. ID3D12GraphicsCommandList10 * This,
  26545. _In_ UINT RootParameterIndex,
  26546. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26547. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  26548. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  26549. ID3D12GraphicsCommandList10 * This,
  26550. _In_ UINT RootParameterIndex,
  26551. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26552. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  26553. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  26554. ID3D12GraphicsCommandList10 * This,
  26555. _In_ UINT RootParameterIndex,
  26556. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26557. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  26558. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  26559. ID3D12GraphicsCommandList10 * This,
  26560. _In_ UINT RootParameterIndex,
  26561. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26562. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  26563. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  26564. ID3D12GraphicsCommandList10 * This,
  26565. _In_ UINT RootParameterIndex,
  26566. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  26567. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  26568. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  26569. ID3D12GraphicsCommandList10 * This,
  26570. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  26571. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  26572. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  26573. ID3D12GraphicsCommandList10 * This,
  26574. _In_ UINT StartSlot,
  26575. _In_ UINT NumViews,
  26576. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  26577. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  26578. void ( STDMETHODCALLTYPE *SOSetTargets )(
  26579. ID3D12GraphicsCommandList10 * This,
  26580. _In_ UINT StartSlot,
  26581. _In_ UINT NumViews,
  26582. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  26583. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  26584. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  26585. ID3D12GraphicsCommandList10 * This,
  26586. _In_ UINT NumRenderTargetDescriptors,
  26587. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  26588. _In_ BOOL RTsSingleHandleToDescriptorRange,
  26589. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  26590. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  26591. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  26592. ID3D12GraphicsCommandList10 * This,
  26593. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  26594. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  26595. _In_ FLOAT Depth,
  26596. _In_ UINT8 Stencil,
  26597. _In_ UINT NumRects,
  26598. _In_reads_(NumRects) const D3D12_RECT *pRects);
  26599. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  26600. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  26601. ID3D12GraphicsCommandList10 * This,
  26602. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  26603. _In_ const FLOAT ColorRGBA[ 4 ],
  26604. _In_ UINT NumRects,
  26605. _In_reads_(NumRects) const D3D12_RECT *pRects);
  26606. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  26607. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  26608. ID3D12GraphicsCommandList10 * This,
  26609. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  26610. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  26611. _In_ ID3D12Resource *pResource,
  26612. _In_ const UINT Values[ 4 ],
  26613. _In_ UINT NumRects,
  26614. _In_reads_(NumRects) const D3D12_RECT *pRects);
  26615. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  26616. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  26617. ID3D12GraphicsCommandList10 * This,
  26618. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  26619. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  26620. _In_ ID3D12Resource *pResource,
  26621. _In_ const FLOAT Values[ 4 ],
  26622. _In_ UINT NumRects,
  26623. _In_reads_(NumRects) const D3D12_RECT *pRects);
  26624. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  26625. void ( STDMETHODCALLTYPE *DiscardResource )(
  26626. ID3D12GraphicsCommandList10 * This,
  26627. _In_ ID3D12Resource *pResource,
  26628. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  26629. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  26630. void ( STDMETHODCALLTYPE *BeginQuery )(
  26631. ID3D12GraphicsCommandList10 * This,
  26632. _In_ ID3D12QueryHeap *pQueryHeap,
  26633. _In_ D3D12_QUERY_TYPE Type,
  26634. _In_ UINT Index);
  26635. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  26636. void ( STDMETHODCALLTYPE *EndQuery )(
  26637. ID3D12GraphicsCommandList10 * This,
  26638. _In_ ID3D12QueryHeap *pQueryHeap,
  26639. _In_ D3D12_QUERY_TYPE Type,
  26640. _In_ UINT Index);
  26641. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  26642. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  26643. ID3D12GraphicsCommandList10 * This,
  26644. _In_ ID3D12QueryHeap *pQueryHeap,
  26645. _In_ D3D12_QUERY_TYPE Type,
  26646. _In_ UINT StartIndex,
  26647. _In_ UINT NumQueries,
  26648. _In_ ID3D12Resource *pDestinationBuffer,
  26649. _In_ UINT64 AlignedDestinationBufferOffset);
  26650. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  26651. void ( STDMETHODCALLTYPE *SetPredication )(
  26652. ID3D12GraphicsCommandList10 * This,
  26653. _In_opt_ ID3D12Resource *pBuffer,
  26654. _In_ UINT64 AlignedBufferOffset,
  26655. _In_ D3D12_PREDICATION_OP Operation);
  26656. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  26657. void ( STDMETHODCALLTYPE *SetMarker )(
  26658. ID3D12GraphicsCommandList10 * This,
  26659. UINT Metadata,
  26660. _In_reads_bytes_opt_(Size) const void *pData,
  26661. UINT Size);
  26662. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  26663. void ( STDMETHODCALLTYPE *BeginEvent )(
  26664. ID3D12GraphicsCommandList10 * This,
  26665. UINT Metadata,
  26666. _In_reads_bytes_opt_(Size) const void *pData,
  26667. UINT Size);
  26668. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  26669. void ( STDMETHODCALLTYPE *EndEvent )(
  26670. ID3D12GraphicsCommandList10 * This);
  26671. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  26672. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  26673. ID3D12GraphicsCommandList10 * This,
  26674. _In_ ID3D12CommandSignature *pCommandSignature,
  26675. _In_ UINT MaxCommandCount,
  26676. _In_ ID3D12Resource *pArgumentBuffer,
  26677. _In_ UINT64 ArgumentBufferOffset,
  26678. _In_opt_ ID3D12Resource *pCountBuffer,
  26679. _In_ UINT64 CountBufferOffset);
  26680. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  26681. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  26682. ID3D12GraphicsCommandList10 * This,
  26683. _In_ ID3D12Resource *pDstBuffer,
  26684. UINT64 DstOffset,
  26685. _In_ ID3D12Resource *pSrcBuffer,
  26686. UINT64 SrcOffset,
  26687. UINT Dependencies,
  26688. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  26689. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  26690. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  26691. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  26692. ID3D12GraphicsCommandList10 * This,
  26693. _In_ ID3D12Resource *pDstBuffer,
  26694. UINT64 DstOffset,
  26695. _In_ ID3D12Resource *pSrcBuffer,
  26696. UINT64 SrcOffset,
  26697. UINT Dependencies,
  26698. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  26699. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  26700. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  26701. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  26702. ID3D12GraphicsCommandList10 * This,
  26703. _In_ FLOAT Min,
  26704. _In_ FLOAT Max);
  26705. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  26706. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  26707. ID3D12GraphicsCommandList10 * This,
  26708. _In_ UINT NumSamplesPerPixel,
  26709. _In_ UINT NumPixels,
  26710. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  26711. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  26712. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  26713. ID3D12GraphicsCommandList10 * This,
  26714. _In_ ID3D12Resource *pDstResource,
  26715. _In_ UINT DstSubresource,
  26716. _In_ UINT DstX,
  26717. _In_ UINT DstY,
  26718. _In_ ID3D12Resource *pSrcResource,
  26719. _In_ UINT SrcSubresource,
  26720. _In_opt_ D3D12_RECT *pSrcRect,
  26721. _In_ DXGI_FORMAT Format,
  26722. _In_ D3D12_RESOLVE_MODE ResolveMode);
  26723. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  26724. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  26725. ID3D12GraphicsCommandList10 * This,
  26726. _In_ UINT Mask);
  26727. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  26728. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  26729. ID3D12GraphicsCommandList10 * This,
  26730. UINT Count,
  26731. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  26732. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  26733. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  26734. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  26735. ID3D12GraphicsCommandList10 * This,
  26736. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  26737. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  26738. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  26739. ID3D12GraphicsCommandList10 * This,
  26740. _In_ UINT NumRenderTargets,
  26741. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  26742. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  26743. D3D12_RENDER_PASS_FLAGS Flags);
  26744. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  26745. void ( STDMETHODCALLTYPE *EndRenderPass )(
  26746. ID3D12GraphicsCommandList10 * This);
  26747. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  26748. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  26749. ID3D12GraphicsCommandList10 * This,
  26750. _In_ ID3D12MetaCommand *pMetaCommand,
  26751. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  26752. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  26753. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  26754. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  26755. ID3D12GraphicsCommandList10 * This,
  26756. _In_ ID3D12MetaCommand *pMetaCommand,
  26757. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  26758. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  26759. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  26760. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  26761. ID3D12GraphicsCommandList10 * This,
  26762. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  26763. _In_ UINT NumPostbuildInfoDescs,
  26764. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  26765. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  26766. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  26767. ID3D12GraphicsCommandList10 * This,
  26768. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  26769. _In_ UINT NumSourceAccelerationStructures,
  26770. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  26771. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  26772. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  26773. ID3D12GraphicsCommandList10 * This,
  26774. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  26775. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  26776. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  26777. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  26778. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  26779. ID3D12GraphicsCommandList10 * This,
  26780. _In_ ID3D12StateObject *pStateObject);
  26781. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  26782. void ( STDMETHODCALLTYPE *DispatchRays )(
  26783. ID3D12GraphicsCommandList10 * This,
  26784. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  26785. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  26786. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  26787. ID3D12GraphicsCommandList10 * This,
  26788. _In_ D3D12_SHADING_RATE baseShadingRate,
  26789. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  26790. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  26791. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  26792. ID3D12GraphicsCommandList10 * This,
  26793. _In_opt_ ID3D12Resource *shadingRateImage);
  26794. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  26795. void ( STDMETHODCALLTYPE *DispatchMesh )(
  26796. ID3D12GraphicsCommandList10 * This,
  26797. _In_ UINT ThreadGroupCountX,
  26798. _In_ UINT ThreadGroupCountY,
  26799. _In_ UINT ThreadGroupCountZ);
  26800. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  26801. void ( STDMETHODCALLTYPE *Barrier )(
  26802. ID3D12GraphicsCommandList10 * This,
  26803. UINT32 NumBarrierGroups,
  26804. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  26805. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef)
  26806. void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )(
  26807. ID3D12GraphicsCommandList10 * This,
  26808. _In_ UINT FrontStencilRef,
  26809. _In_ UINT BackStencilRef);
  26810. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, RSSetDepthBias)
  26811. void ( STDMETHODCALLTYPE *RSSetDepthBias )(
  26812. ID3D12GraphicsCommandList10 * This,
  26813. _In_ FLOAT DepthBias,
  26814. _In_ FLOAT DepthBiasClamp,
  26815. _In_ FLOAT SlopeScaledDepthBias);
  26816. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, IASetIndexBufferStripCutValue)
  26817. void ( STDMETHODCALLTYPE *IASetIndexBufferStripCutValue )(
  26818. ID3D12GraphicsCommandList10 * This,
  26819. _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue);
  26820. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList10, SetProgram)
  26821. void ( STDMETHODCALLTYPE *SetProgram )(
  26822. ID3D12GraphicsCommandList10 * This,
  26823. _In_ const D3D12_SET_PROGRAM_DESC *pDesc);
  26824. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList10, DispatchGraph)
  26825. void ( STDMETHODCALLTYPE *DispatchGraph )(
  26826. ID3D12GraphicsCommandList10 * This,
  26827. _In_ const D3D12_DISPATCH_GRAPH_DESC *pDesc);
  26828. END_INTERFACE
  26829. } ID3D12GraphicsCommandList10Vtbl;
  26830. interface ID3D12GraphicsCommandList10
  26831. {
  26832. CONST_VTBL struct ID3D12GraphicsCommandList10Vtbl *lpVtbl;
  26833. };
  26834. #ifdef COBJMACROS
  26835. #define ID3D12GraphicsCommandList10_QueryInterface(This,riid,ppvObject) \
  26836. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  26837. #define ID3D12GraphicsCommandList10_AddRef(This) \
  26838. ( (This)->lpVtbl -> AddRef(This) )
  26839. #define ID3D12GraphicsCommandList10_Release(This) \
  26840. ( (This)->lpVtbl -> Release(This) )
  26841. #define ID3D12GraphicsCommandList10_GetPrivateData(This,guid,pDataSize,pData) \
  26842. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  26843. #define ID3D12GraphicsCommandList10_SetPrivateData(This,guid,DataSize,pData) \
  26844. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  26845. #define ID3D12GraphicsCommandList10_SetPrivateDataInterface(This,guid,pData) \
  26846. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  26847. #define ID3D12GraphicsCommandList10_SetName(This,Name) \
  26848. ( (This)->lpVtbl -> SetName(This,Name) )
  26849. #define ID3D12GraphicsCommandList10_GetDevice(This,riid,ppvDevice) \
  26850. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  26851. #define ID3D12GraphicsCommandList10_GetType(This) \
  26852. ( (This)->lpVtbl -> GetType(This) )
  26853. #define ID3D12GraphicsCommandList10_Close(This) \
  26854. ( (This)->lpVtbl -> Close(This) )
  26855. #define ID3D12GraphicsCommandList10_Reset(This,pAllocator,pInitialState) \
  26856. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  26857. #define ID3D12GraphicsCommandList10_ClearState(This,pPipelineState) \
  26858. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  26859. #define ID3D12GraphicsCommandList10_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  26860. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  26861. #define ID3D12GraphicsCommandList10_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  26862. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  26863. #define ID3D12GraphicsCommandList10_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  26864. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  26865. #define ID3D12GraphicsCommandList10_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  26866. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  26867. #define ID3D12GraphicsCommandList10_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  26868. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  26869. #define ID3D12GraphicsCommandList10_CopyResource(This,pDstResource,pSrcResource) \
  26870. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  26871. #define ID3D12GraphicsCommandList10_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  26872. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  26873. #define ID3D12GraphicsCommandList10_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  26874. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  26875. #define ID3D12GraphicsCommandList10_IASetPrimitiveTopology(This,PrimitiveTopology) \
  26876. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  26877. #define ID3D12GraphicsCommandList10_RSSetViewports(This,NumViewports,pViewports) \
  26878. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  26879. #define ID3D12GraphicsCommandList10_RSSetScissorRects(This,NumRects,pRects) \
  26880. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  26881. #define ID3D12GraphicsCommandList10_OMSetBlendFactor(This,BlendFactor) \
  26882. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  26883. #define ID3D12GraphicsCommandList10_OMSetStencilRef(This,StencilRef) \
  26884. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  26885. #define ID3D12GraphicsCommandList10_SetPipelineState(This,pPipelineState) \
  26886. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  26887. #define ID3D12GraphicsCommandList10_ResourceBarrier(This,NumBarriers,pBarriers) \
  26888. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  26889. #define ID3D12GraphicsCommandList10_ExecuteBundle(This,pCommandList) \
  26890. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  26891. #define ID3D12GraphicsCommandList10_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  26892. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  26893. #define ID3D12GraphicsCommandList10_SetComputeRootSignature(This,pRootSignature) \
  26894. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  26895. #define ID3D12GraphicsCommandList10_SetGraphicsRootSignature(This,pRootSignature) \
  26896. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  26897. #define ID3D12GraphicsCommandList10_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  26898. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  26899. #define ID3D12GraphicsCommandList10_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  26900. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  26901. #define ID3D12GraphicsCommandList10_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  26902. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  26903. #define ID3D12GraphicsCommandList10_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  26904. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  26905. #define ID3D12GraphicsCommandList10_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  26906. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  26907. #define ID3D12GraphicsCommandList10_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  26908. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  26909. #define ID3D12GraphicsCommandList10_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  26910. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  26911. #define ID3D12GraphicsCommandList10_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  26912. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  26913. #define ID3D12GraphicsCommandList10_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  26914. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  26915. #define ID3D12GraphicsCommandList10_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  26916. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  26917. #define ID3D12GraphicsCommandList10_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  26918. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  26919. #define ID3D12GraphicsCommandList10_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  26920. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  26921. #define ID3D12GraphicsCommandList10_IASetIndexBuffer(This,pView) \
  26922. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  26923. #define ID3D12GraphicsCommandList10_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  26924. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  26925. #define ID3D12GraphicsCommandList10_SOSetTargets(This,StartSlot,NumViews,pViews) \
  26926. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  26927. #define ID3D12GraphicsCommandList10_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  26928. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  26929. #define ID3D12GraphicsCommandList10_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  26930. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  26931. #define ID3D12GraphicsCommandList10_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  26932. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  26933. #define ID3D12GraphicsCommandList10_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  26934. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  26935. #define ID3D12GraphicsCommandList10_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  26936. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  26937. #define ID3D12GraphicsCommandList10_DiscardResource(This,pResource,pRegion) \
  26938. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  26939. #define ID3D12GraphicsCommandList10_BeginQuery(This,pQueryHeap,Type,Index) \
  26940. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  26941. #define ID3D12GraphicsCommandList10_EndQuery(This,pQueryHeap,Type,Index) \
  26942. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  26943. #define ID3D12GraphicsCommandList10_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  26944. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  26945. #define ID3D12GraphicsCommandList10_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  26946. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  26947. #define ID3D12GraphicsCommandList10_SetMarker(This,Metadata,pData,Size) \
  26948. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  26949. #define ID3D12GraphicsCommandList10_BeginEvent(This,Metadata,pData,Size) \
  26950. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  26951. #define ID3D12GraphicsCommandList10_EndEvent(This) \
  26952. ( (This)->lpVtbl -> EndEvent(This) )
  26953. #define ID3D12GraphicsCommandList10_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  26954. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  26955. #define ID3D12GraphicsCommandList10_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  26956. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  26957. #define ID3D12GraphicsCommandList10_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  26958. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  26959. #define ID3D12GraphicsCommandList10_OMSetDepthBounds(This,Min,Max) \
  26960. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  26961. #define ID3D12GraphicsCommandList10_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  26962. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  26963. #define ID3D12GraphicsCommandList10_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  26964. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  26965. #define ID3D12GraphicsCommandList10_SetViewInstanceMask(This,Mask) \
  26966. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  26967. #define ID3D12GraphicsCommandList10_WriteBufferImmediate(This,Count,pParams,pModes) \
  26968. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  26969. #define ID3D12GraphicsCommandList10_SetProtectedResourceSession(This,pProtectedResourceSession) \
  26970. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  26971. #define ID3D12GraphicsCommandList10_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  26972. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  26973. #define ID3D12GraphicsCommandList10_EndRenderPass(This) \
  26974. ( (This)->lpVtbl -> EndRenderPass(This) )
  26975. #define ID3D12GraphicsCommandList10_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  26976. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  26977. #define ID3D12GraphicsCommandList10_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  26978. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  26979. #define ID3D12GraphicsCommandList10_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  26980. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  26981. #define ID3D12GraphicsCommandList10_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  26982. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  26983. #define ID3D12GraphicsCommandList10_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  26984. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  26985. #define ID3D12GraphicsCommandList10_SetPipelineState1(This,pStateObject) \
  26986. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  26987. #define ID3D12GraphicsCommandList10_DispatchRays(This,pDesc) \
  26988. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  26989. #define ID3D12GraphicsCommandList10_RSSetShadingRate(This,baseShadingRate,combiners) \
  26990. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  26991. #define ID3D12GraphicsCommandList10_RSSetShadingRateImage(This,shadingRateImage) \
  26992. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  26993. #define ID3D12GraphicsCommandList10_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  26994. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  26995. #define ID3D12GraphicsCommandList10_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  26996. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  26997. #define ID3D12GraphicsCommandList10_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \
  26998. ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) )
  26999. #define ID3D12GraphicsCommandList10_RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) \
  27000. ( (This)->lpVtbl -> RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) )
  27001. #define ID3D12GraphicsCommandList10_IASetIndexBufferStripCutValue(This,IBStripCutValue) \
  27002. ( (This)->lpVtbl -> IASetIndexBufferStripCutValue(This,IBStripCutValue) )
  27003. #define ID3D12GraphicsCommandList10_SetProgram(This,pDesc) \
  27004. ( (This)->lpVtbl -> SetProgram(This,pDesc) )
  27005. #define ID3D12GraphicsCommandList10_DispatchGraph(This,pDesc) \
  27006. ( (This)->lpVtbl -> DispatchGraph(This,pDesc) )
  27007. #endif /* COBJMACROS */
  27008. #endif /* C style interface */
  27009. #endif /* __ID3D12GraphicsCommandList10_INTERFACE_DEFINED__ */
  27010. #ifndef __ID3D12DSRDeviceFactory_INTERFACE_DEFINED__
  27011. #define __ID3D12DSRDeviceFactory_INTERFACE_DEFINED__
  27012. /* interface ID3D12DSRDeviceFactory */
  27013. /* [unique][local][object][uuid] */
  27014. EXTERN_C const IID IID_ID3D12DSRDeviceFactory;
  27015. #if defined(__cplusplus) && !defined(CINTERFACE)
  27016. MIDL_INTERFACE("f343d1a0-afe3-439f-b13d-cd87a43b70ca")
  27017. ID3D12DSRDeviceFactory : public IUnknown
  27018. {
  27019. public:
  27020. virtual HRESULT STDMETHODCALLTYPE CreateDSRDevice(
  27021. ID3D12Device *pD3D12Device,
  27022. UINT NodeMask,
  27023. REFIID riid,
  27024. _COM_Outptr_ void **ppvDSRDevice) = 0;
  27025. };
  27026. #else /* C style interface */
  27027. typedef struct ID3D12DSRDeviceFactoryVtbl
  27028. {
  27029. BEGIN_INTERFACE
  27030. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  27031. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  27032. ID3D12DSRDeviceFactory * This,
  27033. REFIID riid,
  27034. _COM_Outptr_ void **ppvObject);
  27035. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  27036. ULONG ( STDMETHODCALLTYPE *AddRef )(
  27037. ID3D12DSRDeviceFactory * This);
  27038. DECLSPEC_XFGVIRT(IUnknown, Release)
  27039. ULONG ( STDMETHODCALLTYPE *Release )(
  27040. ID3D12DSRDeviceFactory * This);
  27041. DECLSPEC_XFGVIRT(ID3D12DSRDeviceFactory, CreateDSRDevice)
  27042. HRESULT ( STDMETHODCALLTYPE *CreateDSRDevice )(
  27043. ID3D12DSRDeviceFactory * This,
  27044. ID3D12Device *pD3D12Device,
  27045. UINT NodeMask,
  27046. REFIID riid,
  27047. _COM_Outptr_ void **ppvDSRDevice);
  27048. END_INTERFACE
  27049. } ID3D12DSRDeviceFactoryVtbl;
  27050. interface ID3D12DSRDeviceFactory
  27051. {
  27052. CONST_VTBL struct ID3D12DSRDeviceFactoryVtbl *lpVtbl;
  27053. };
  27054. #ifdef COBJMACROS
  27055. #define ID3D12DSRDeviceFactory_QueryInterface(This,riid,ppvObject) \
  27056. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  27057. #define ID3D12DSRDeviceFactory_AddRef(This) \
  27058. ( (This)->lpVtbl -> AddRef(This) )
  27059. #define ID3D12DSRDeviceFactory_Release(This) \
  27060. ( (This)->lpVtbl -> Release(This) )
  27061. #define ID3D12DSRDeviceFactory_CreateDSRDevice(This,pD3D12Device,NodeMask,riid,ppvDSRDevice) \
  27062. ( (This)->lpVtbl -> CreateDSRDevice(This,pD3D12Device,NodeMask,riid,ppvDSRDevice) )
  27063. #endif /* COBJMACROS */
  27064. #endif /* C style interface */
  27065. #endif /* __ID3D12DSRDeviceFactory_INTERFACE_DEFINED__ */
  27066. #ifndef __ID3D12GBVDiagnostics_INTERFACE_DEFINED__
  27067. #define __ID3D12GBVDiagnostics_INTERFACE_DEFINED__
  27068. /* interface ID3D12GBVDiagnostics */
  27069. /* [unique][local][object][uuid] */
  27070. EXTERN_C const IID IID_ID3D12GBVDiagnostics;
  27071. #if defined(__cplusplus) && !defined(CINTERFACE)
  27072. MIDL_INTERFACE("597985ab-9b75-4dbb-be23-0761195bebee")
  27073. ID3D12GBVDiagnostics : public IUnknown
  27074. {
  27075. public:
  27076. virtual HRESULT STDMETHODCALLTYPE GetGBVEntireSubresourceStatesData(
  27077. _In_ ID3D12Resource *pResource,
  27078. _Out_writes_bytes_(DataSize) int *pData,
  27079. UINT DataSize) = 0;
  27080. virtual HRESULT STDMETHODCALLTYPE GetGBVSubresourceState(
  27081. _In_ ID3D12Resource *pResource,
  27082. UINT Subresource,
  27083. _Out_ int *pData) = 0;
  27084. virtual HRESULT STDMETHODCALLTYPE GetGBVResourceUniformState(
  27085. _In_ ID3D12Resource *pResource,
  27086. _Out_ int *pData) = 0;
  27087. virtual HRESULT STDMETHODCALLTYPE GetGBVResourceInfo(
  27088. _In_ ID3D12Resource *pResource,
  27089. _In_opt_ D3D12_RESOURCE_DESC *pResourceDesc,
  27090. _In_opt_ UINT32 *pResourceHash,
  27091. _In_opt_ UINT32 *pSubresourceStatesByteOffset) = 0;
  27092. virtual void STDMETHODCALLTYPE GBVReserved0( void) = 0;
  27093. virtual void STDMETHODCALLTYPE GBVReserved1( void) = 0;
  27094. };
  27095. #else /* C style interface */
  27096. typedef struct ID3D12GBVDiagnosticsVtbl
  27097. {
  27098. BEGIN_INTERFACE
  27099. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  27100. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  27101. ID3D12GBVDiagnostics * This,
  27102. REFIID riid,
  27103. _COM_Outptr_ void **ppvObject);
  27104. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  27105. ULONG ( STDMETHODCALLTYPE *AddRef )(
  27106. ID3D12GBVDiagnostics * This);
  27107. DECLSPEC_XFGVIRT(IUnknown, Release)
  27108. ULONG ( STDMETHODCALLTYPE *Release )(
  27109. ID3D12GBVDiagnostics * This);
  27110. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVEntireSubresourceStatesData)
  27111. HRESULT ( STDMETHODCALLTYPE *GetGBVEntireSubresourceStatesData )(
  27112. ID3D12GBVDiagnostics * This,
  27113. _In_ ID3D12Resource *pResource,
  27114. _Out_writes_bytes_(DataSize) int *pData,
  27115. UINT DataSize);
  27116. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVSubresourceState)
  27117. HRESULT ( STDMETHODCALLTYPE *GetGBVSubresourceState )(
  27118. ID3D12GBVDiagnostics * This,
  27119. _In_ ID3D12Resource *pResource,
  27120. UINT Subresource,
  27121. _Out_ int *pData);
  27122. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVResourceUniformState)
  27123. HRESULT ( STDMETHODCALLTYPE *GetGBVResourceUniformState )(
  27124. ID3D12GBVDiagnostics * This,
  27125. _In_ ID3D12Resource *pResource,
  27126. _Out_ int *pData);
  27127. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVResourceInfo)
  27128. HRESULT ( STDMETHODCALLTYPE *GetGBVResourceInfo )(
  27129. ID3D12GBVDiagnostics * This,
  27130. _In_ ID3D12Resource *pResource,
  27131. _In_opt_ D3D12_RESOURCE_DESC *pResourceDesc,
  27132. _In_opt_ UINT32 *pResourceHash,
  27133. _In_opt_ UINT32 *pSubresourceStatesByteOffset);
  27134. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GBVReserved0)
  27135. void ( STDMETHODCALLTYPE *GBVReserved0 )(
  27136. ID3D12GBVDiagnostics * This);
  27137. DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GBVReserved1)
  27138. void ( STDMETHODCALLTYPE *GBVReserved1 )(
  27139. ID3D12GBVDiagnostics * This);
  27140. END_INTERFACE
  27141. } ID3D12GBVDiagnosticsVtbl;
  27142. interface ID3D12GBVDiagnostics
  27143. {
  27144. CONST_VTBL struct ID3D12GBVDiagnosticsVtbl *lpVtbl;
  27145. };
  27146. #ifdef COBJMACROS
  27147. #define ID3D12GBVDiagnostics_QueryInterface(This,riid,ppvObject) \
  27148. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  27149. #define ID3D12GBVDiagnostics_AddRef(This) \
  27150. ( (This)->lpVtbl -> AddRef(This) )
  27151. #define ID3D12GBVDiagnostics_Release(This) \
  27152. ( (This)->lpVtbl -> Release(This) )
  27153. #define ID3D12GBVDiagnostics_GetGBVEntireSubresourceStatesData(This,pResource,pData,DataSize) \
  27154. ( (This)->lpVtbl -> GetGBVEntireSubresourceStatesData(This,pResource,pData,DataSize) )
  27155. #define ID3D12GBVDiagnostics_GetGBVSubresourceState(This,pResource,Subresource,pData) \
  27156. ( (This)->lpVtbl -> GetGBVSubresourceState(This,pResource,Subresource,pData) )
  27157. #define ID3D12GBVDiagnostics_GetGBVResourceUniformState(This,pResource,pData) \
  27158. ( (This)->lpVtbl -> GetGBVResourceUniformState(This,pResource,pData) )
  27159. #define ID3D12GBVDiagnostics_GetGBVResourceInfo(This,pResource,pResourceDesc,pResourceHash,pSubresourceStatesByteOffset) \
  27160. ( (This)->lpVtbl -> GetGBVResourceInfo(This,pResource,pResourceDesc,pResourceHash,pSubresourceStatesByteOffset) )
  27161. #define ID3D12GBVDiagnostics_GBVReserved0(This) \
  27162. ( (This)->lpVtbl -> GBVReserved0(This) )
  27163. #define ID3D12GBVDiagnostics_GBVReserved1(This) \
  27164. ( (This)->lpVtbl -> GBVReserved1(This) )
  27165. #endif /* COBJMACROS */
  27166. #endif /* C style interface */
  27167. #endif /* __ID3D12GBVDiagnostics_INTERFACE_DEFINED__ */
  27168. /* interface __MIDL_itf_d3d12_0000_0080 */
  27169. /* [local] */
  27170. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */
  27171. #pragma endregion
  27172. DEFINE_GUID(IID_ID3D12Object,0xc4fec28f,0x7966,0x4e95,0x9f,0x94,0xf4,0x31,0xcb,0x56,0xc3,0xb8);
  27173. DEFINE_GUID(IID_ID3D12DeviceChild,0x905db94b,0xa00c,0x4140,0x9d,0xf5,0x2b,0x64,0xca,0x9e,0xa3,0x57);
  27174. DEFINE_GUID(IID_ID3D12RootSignature,0xc54a6b66,0x72df,0x4ee8,0x8b,0xe5,0xa9,0x46,0xa1,0x42,0x92,0x14);
  27175. DEFINE_GUID(IID_ID3D12RootSignatureDeserializer,0x34AB647B,0x3CC8,0x46AC,0x84,0x1B,0xC0,0x96,0x56,0x45,0xC0,0x46);
  27176. DEFINE_GUID(IID_ID3D12VersionedRootSignatureDeserializer,0x7F91CE67,0x090C,0x4BB7,0xB7,0x8E,0xED,0x8F,0xF2,0xE3,0x1D,0xA0);
  27177. DEFINE_GUID(IID_ID3D12Pageable,0x63ee58fb,0x1268,0x4835,0x86,0xda,0xf0,0x08,0xce,0x62,0xf0,0xd6);
  27178. DEFINE_GUID(IID_ID3D12Heap,0x6b3b2502,0x6e51,0x45b3,0x90,0xee,0x98,0x84,0x26,0x5e,0x8d,0xf3);
  27179. DEFINE_GUID(IID_ID3D12Resource,0x696442be,0xa72e,0x4059,0xbc,0x79,0x5b,0x5c,0x98,0x04,0x0f,0xad);
  27180. DEFINE_GUID(IID_ID3D12CommandAllocator,0x6102dee4,0xaf59,0x4b09,0xb9,0x99,0xb4,0x4d,0x73,0xf0,0x9b,0x24);
  27181. DEFINE_GUID(IID_ID3D12Fence,0x0a753dcf,0xc4d8,0x4b91,0xad,0xf6,0xbe,0x5a,0x60,0xd9,0x5a,0x76);
  27182. DEFINE_GUID(IID_ID3D12Fence1,0x433685fe,0xe22b,0x4ca0,0xa8,0xdb,0xb5,0xb4,0xf4,0xdd,0x0e,0x4a);
  27183. DEFINE_GUID(IID_ID3D12PipelineState,0x765a30f3,0xf624,0x4c6f,0xa8,0x28,0xac,0xe9,0x48,0x62,0x24,0x45);
  27184. DEFINE_GUID(IID_ID3D12DescriptorHeap,0x8efb471d,0x616c,0x4f49,0x90,0xf7,0x12,0x7b,0xb7,0x63,0xfa,0x51);
  27185. DEFINE_GUID(IID_ID3D12QueryHeap,0x0d9658ae,0xed45,0x469e,0xa6,0x1d,0x97,0x0e,0xc5,0x83,0xca,0xb4);
  27186. DEFINE_GUID(IID_ID3D12CommandSignature,0xc36a797c,0xec80,0x4f0a,0x89,0x85,0xa7,0xb2,0x47,0x50,0x82,0xd1);
  27187. DEFINE_GUID(IID_ID3D12CommandList,0x7116d91c,0xe7e4,0x47ce,0xb8,0xc6,0xec,0x81,0x68,0xf4,0x37,0xe5);
  27188. DEFINE_GUID(IID_ID3D12GraphicsCommandList,0x5b160d0f,0xac1b,0x4185,0x8b,0xa8,0xb3,0xae,0x42,0xa5,0xa4,0x55);
  27189. DEFINE_GUID(IID_ID3D12GraphicsCommandList1,0x553103fb,0x1fe7,0x4557,0xbb,0x38,0x94,0x6d,0x7d,0x0e,0x7c,0xa7);
  27190. DEFINE_GUID(IID_ID3D12GraphicsCommandList2,0x38C3E585,0xFF17,0x412C,0x91,0x50,0x4F,0xC6,0xF9,0xD7,0x2A,0x28);
  27191. DEFINE_GUID(IID_ID3D12CommandQueue,0x0ec870a6,0x5d7e,0x4c22,0x8c,0xfc,0x5b,0xaa,0xe0,0x76,0x16,0xed);
  27192. DEFINE_GUID(IID_ID3D12Device,0x189819f1,0x1db6,0x4b57,0xbe,0x54,0x18,0x21,0x33,0x9b,0x85,0xf7);
  27193. DEFINE_GUID(IID_ID3D12PipelineLibrary,0xc64226a8,0x9201,0x46af,0xb4,0xcc,0x53,0xfb,0x9f,0xf7,0x41,0x4f);
  27194. DEFINE_GUID(IID_ID3D12PipelineLibrary1,0x80eabf42,0x2568,0x4e5e,0xbd,0x82,0xc3,0x7f,0x86,0x96,0x1d,0xc3);
  27195. DEFINE_GUID(IID_ID3D12Device1,0x77acce80,0x638e,0x4e65,0x88,0x95,0xc1,0xf2,0x33,0x86,0x86,0x3e);
  27196. DEFINE_GUID(IID_ID3D12Device2,0x30baa41e,0xb15b,0x475c,0xa0,0xbb,0x1a,0xf5,0xc5,0xb6,0x43,0x28);
  27197. DEFINE_GUID(IID_ID3D12Device3,0x81dadc15,0x2bad,0x4392,0x93,0xc5,0x10,0x13,0x45,0xc4,0xaa,0x98);
  27198. DEFINE_GUID(IID_ID3D12ProtectedSession,0xA1533D18,0x0AC1,0x4084,0x85,0xB9,0x89,0xA9,0x61,0x16,0x80,0x6B);
  27199. DEFINE_GUID(IID_ID3D12ProtectedResourceSession,0x6CD696F4,0xF289,0x40CC,0x80,0x91,0x5A,0x6C,0x0A,0x09,0x9C,0x3D);
  27200. DEFINE_GUID(IID_ID3D12Device4,0xe865df17,0xa9ee,0x46f9,0xa4,0x63,0x30,0x98,0x31,0x5a,0xa2,0xe5);
  27201. DEFINE_GUID(IID_ID3D12LifetimeOwner,0xe667af9f,0xcd56,0x4f46,0x83,0xce,0x03,0x2e,0x59,0x5d,0x70,0xa8);
  27202. DEFINE_GUID(IID_ID3D12SwapChainAssistant,0xf1df64b6,0x57fd,0x49cd,0x88,0x07,0xc0,0xeb,0x88,0xb4,0x5c,0x8f);
  27203. DEFINE_GUID(IID_ID3D12LifetimeTracker,0x3fd03d36,0x4eb1,0x424a,0xa5,0x82,0x49,0x4e,0xcb,0x8b,0xa8,0x13);
  27204. DEFINE_GUID(IID_ID3D12StateObject,0x47016943,0xfca8,0x4594,0x93,0xea,0xaf,0x25,0x8b,0x55,0x34,0x6d);
  27205. DEFINE_GUID(IID_ID3D12StateObjectProperties,0xde5fa827,0x9bf9,0x4f26,0x89,0xff,0xd7,0xf5,0x6f,0xde,0x38,0x60);
  27206. DEFINE_GUID(IID_ID3D12StateObjectProperties1,0x460caac7,0x1d24,0x446a,0xa1,0x84,0xca,0x67,0xdb,0x49,0x41,0x38);
  27207. DEFINE_GUID(IID_ID3D12WorkGraphProperties,0x065acf71,0xf863,0x4b89,0x82,0xf4,0x02,0xe4,0xd5,0x88,0x67,0x57);
  27208. DEFINE_GUID(IID_ID3D12Device5,0x8b4f173b,0x2fea,0x4b80,0x8f,0x58,0x43,0x07,0x19,0x1a,0xb9,0x5d);
  27209. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings,0x82BC481C,0x6B9B,0x4030,0xAE,0xDB,0x7E,0xE3,0xD1,0xDF,0x1E,0x63);
  27210. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings1,0xDBD5AE51,0x3317,0x4F0A,0xAD,0xF9,0x1D,0x7C,0xED,0xCA,0xAE,0x0B);
  27211. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings2,0x61552388,0x01ab,0x4008,0xa4,0x36,0x83,0xdb,0x18,0x95,0x66,0xea);
  27212. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData,0x98931D33,0x5AE8,0x4791,0xAA,0x3C,0x1A,0x73,0xA2,0x93,0x4E,0x71);
  27213. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData1,0x9727A022,0xCF1D,0x4DDA,0x9E,0xBA,0xEF,0xFA,0x65,0x3F,0xC5,0x06);
  27214. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData2,0x67FC5816,0xE4CA,0x4915,0xBF,0x18,0x42,0x54,0x12,0x72,0xDA,0x54);
  27215. DEFINE_GUID(IID_ID3D12Device6,0xc70b221b,0x40e4,0x4a17,0x89,0xaf,0x02,0x5a,0x07,0x27,0xa6,0xdc);
  27216. DEFINE_GUID(IID_ID3D12ProtectedResourceSession1,0xD6F12DD6,0x76FB,0x406E,0x89,0x61,0x42,0x96,0xEE,0xFC,0x04,0x09);
  27217. DEFINE_GUID(IID_ID3D12Device7,0x5c014b53,0x68a1,0x4b9b,0x8b,0xd1,0xdd,0x60,0x46,0xb9,0x35,0x8b);
  27218. DEFINE_GUID(IID_ID3D12Device8,0x9218E6BB,0xF944,0x4F7E,0xA7,0x5C,0xB1,0xB2,0xC7,0xB7,0x01,0xF3);
  27219. DEFINE_GUID(IID_ID3D12Resource1,0x9D5E227A,0x4430,0x4161,0x88,0xB3,0x3E,0xCA,0x6B,0xB1,0x6E,0x19);
  27220. DEFINE_GUID(IID_ID3D12Resource2,0xBE36EC3B,0xEA85,0x4AEB,0xA4,0x5A,0xE9,0xD7,0x64,0x04,0xA4,0x95);
  27221. DEFINE_GUID(IID_ID3D12Heap1,0x572F7389,0x2168,0x49E3,0x96,0x93,0xD6,0xDF,0x58,0x71,0xBF,0x6D);
  27222. DEFINE_GUID(IID_ID3D12GraphicsCommandList3,0x6FDA83A7,0xB84C,0x4E38,0x9A,0xC8,0xC7,0xBD,0x22,0x01,0x6B,0x3D);
  27223. DEFINE_GUID(IID_ID3D12MetaCommand,0xDBB84C27,0x36CE,0x4FC9,0xB8,0x01,0xF0,0x48,0xC4,0x6A,0xC5,0x70);
  27224. DEFINE_GUID(IID_ID3D12GraphicsCommandList4,0x8754318e,0xd3a9,0x4541,0x98,0xcf,0x64,0x5b,0x50,0xdc,0x48,0x74);
  27225. DEFINE_GUID(IID_ID3D12ShaderCacheSession,0x28e2495d,0x0f64,0x4ae4,0xa6,0xec,0x12,0x92,0x55,0xdc,0x49,0xa8);
  27226. DEFINE_GUID(IID_ID3D12Device9,0x4c80e962,0xf032,0x4f60,0xbc,0x9e,0xeb,0xc2,0xcf,0xa1,0xd8,0x3c);
  27227. DEFINE_GUID(IID_ID3D12Device10,0x517f8718,0xaa66,0x49f9,0xb0,0x2b,0xa7,0xab,0x89,0xc0,0x60,0x31);
  27228. DEFINE_GUID(IID_ID3D12Device11,0x5405c344,0xd457,0x444e,0xb4,0xdd,0x23,0x66,0xe4,0x5a,0xee,0x39);
  27229. DEFINE_GUID(IID_ID3D12Device12,0x5af5c532,0x4c91,0x4cd0,0xb5,0x41,0x15,0xa4,0x05,0x39,0x5f,0xc5);
  27230. DEFINE_GUID(IID_ID3D12Device13,0x14eecffc,0x4df8,0x40f7,0xa1,0x18,0x5c,0x81,0x6f,0x45,0x69,0x5e);
  27231. DEFINE_GUID(IID_ID3D12Device14,0x5f6e592d,0xd895,0x44c2,0x8e,0x4a,0x88,0xad,0x49,0x26,0xd3,0x23);
  27232. DEFINE_GUID(IID_ID3D12VirtualizationGuestDevice,0xbc66d368,0x7373,0x4943,0x87,0x57,0xfc,0x87,0xdc,0x79,0xe4,0x76);
  27233. DEFINE_GUID(IID_ID3D12Tools,0x7071e1f0,0xe84b,0x4b33,0x97,0x4f,0x12,0xfa,0x49,0xde,0x65,0xc5);
  27234. DEFINE_GUID(IID_ID3D12Tools1,0xe4fbc019,0xdd3c,0x43e1,0x8f,0x32,0x7f,0x64,0x95,0x75,0xf0,0xa0);
  27235. DEFINE_GUID(IID_ID3D12Tools2,0x01d393c5,0xc9b0,0x42a1,0x95,0x8c,0xc2,0x6b,0x02,0xd4,0xd0,0x97);
  27236. DEFINE_GUID(IID_ID3D12PageableTools,0x8f1359db,0xd8d1,0x42f9,0xb5,0xcf,0x79,0xf4,0xcb,0xad,0x0d,0x3d);
  27237. DEFINE_GUID(IID_ID3D12DeviceTools,0x2ea68e9c,0x19c3,0x4e47,0xa1,0x09,0x6c,0xda,0xdf,0xf0,0xac,0xa9);
  27238. DEFINE_GUID(IID_ID3D12DeviceTools1,0xe30e9fc7,0xe641,0x4d6e,0x8a,0x81,0x9d,0xd9,0x20,0x6e,0xc4,0x7a);
  27239. DEFINE_GUID(IID_ID3D12SDKConfiguration,0xe9eb5314,0x33aa,0x42b2,0xa7,0x18,0xd7,0x7f,0x58,0xb1,0xf1,0xc7);
  27240. DEFINE_GUID(IID_ID3D12SDKConfiguration1,0x8aaf9303,0xad25,0x48b9,0x9a,0x57,0xd9,0xc3,0x7e,0x00,0x9d,0x9f);
  27241. DEFINE_GUID(IID_ID3D12DeviceFactory,0x61f307d3,0xd34e,0x4e7c,0x83,0x74,0x3b,0xa4,0xde,0x23,0xcc,0xcb);
  27242. DEFINE_GUID(IID_ID3D12DeviceConfiguration,0x78dbf87b,0xf766,0x422b,0xa6,0x1c,0xc8,0xc4,0x46,0xbd,0xb9,0xad);
  27243. DEFINE_GUID(IID_ID3D12DeviceConfiguration1,0xed342442,0x6343,0x4e16,0xbb,0x82,0xa3,0xa5,0x77,0x87,0x4e,0x56);
  27244. DEFINE_GUID(IID_ID3D12GraphicsCommandList5,0x55050859,0x4024,0x474c,0x87,0xf5,0x64,0x72,0xea,0xee,0x44,0xea);
  27245. DEFINE_GUID(IID_ID3D12GraphicsCommandList6,0xc3827890,0xe548,0x4cfa,0x96,0xcf,0x56,0x89,0xa9,0x37,0x0f,0x80);
  27246. DEFINE_GUID(IID_ID3D12GraphicsCommandList7,0xdd171223,0x8b61,0x4769,0x90,0xe3,0x16,0x0c,0xcd,0xe4,0xe2,0xc1);
  27247. DEFINE_GUID(IID_ID3D12GraphicsCommandList8,0xee936ef9,0x599d,0x4d28,0x93,0x8e,0x23,0xc4,0xad,0x05,0xce,0x51);
  27248. DEFINE_GUID(IID_ID3D12GraphicsCommandList9,0x34ed2808,0xffe6,0x4c2b,0xb1,0x1a,0xca,0xbd,0x2b,0x0c,0x59,0xe1);
  27249. DEFINE_GUID(IID_ID3D12GraphicsCommandList10,0x7013c015,0xd161,0x4b63,0xa0,0x8c,0x23,0x85,0x52,0xdd,0x8a,0xcc);
  27250. DEFINE_GUID(IID_ID3D12DSRDeviceFactory,0xf343d1a0,0xafe3,0x439f,0xb1,0x3d,0xcd,0x87,0xa4,0x3b,0x70,0xca);
  27251. DEFINE_GUID(IID_ID3D12GBVDiagnostics,0x597985ab,0x9b75,0x4dbb,0xbe,0x23,0x07,0x61,0x19,0x5b,0xeb,0xee);
  27252. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0080_v0_0_c_ifspec;
  27253. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0080_v0_0_s_ifspec;
  27254. /* Additional Prototypes for ALL interfaces */
  27255. /* end of Additional Prototypes */
  27256. #ifdef __cplusplus
  27257. }
  27258. #endif
  27259. #endif