d3d12.h 1.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902
  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 __ID3D12Device5_FWD_DEFINED__
  176. #define __ID3D12Device5_FWD_DEFINED__
  177. typedef interface ID3D12Device5 ID3D12Device5;
  178. #endif /* __ID3D12Device5_FWD_DEFINED__ */
  179. #ifndef __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__
  180. #define __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__
  181. typedef interface ID3D12DeviceRemovedExtendedDataSettings ID3D12DeviceRemovedExtendedDataSettings;
  182. #endif /* __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__ */
  183. #ifndef __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__
  184. #define __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__
  185. typedef interface ID3D12DeviceRemovedExtendedDataSettings1 ID3D12DeviceRemovedExtendedDataSettings1;
  186. #endif /* __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__ */
  187. #ifndef __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__
  188. #define __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__
  189. typedef interface ID3D12DeviceRemovedExtendedDataSettings2 ID3D12DeviceRemovedExtendedDataSettings2;
  190. #endif /* __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__ */
  191. #ifndef __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__
  192. #define __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__
  193. typedef interface ID3D12DeviceRemovedExtendedData ID3D12DeviceRemovedExtendedData;
  194. #endif /* __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__ */
  195. #ifndef __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__
  196. #define __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__
  197. typedef interface ID3D12DeviceRemovedExtendedData1 ID3D12DeviceRemovedExtendedData1;
  198. #endif /* __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__ */
  199. #ifndef __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__
  200. #define __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__
  201. typedef interface ID3D12DeviceRemovedExtendedData2 ID3D12DeviceRemovedExtendedData2;
  202. #endif /* __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__ */
  203. #ifndef __ID3D12Device6_FWD_DEFINED__
  204. #define __ID3D12Device6_FWD_DEFINED__
  205. typedef interface ID3D12Device6 ID3D12Device6;
  206. #endif /* __ID3D12Device6_FWD_DEFINED__ */
  207. #ifndef __ID3D12ProtectedResourceSession1_FWD_DEFINED__
  208. #define __ID3D12ProtectedResourceSession1_FWD_DEFINED__
  209. typedef interface ID3D12ProtectedResourceSession1 ID3D12ProtectedResourceSession1;
  210. #endif /* __ID3D12ProtectedResourceSession1_FWD_DEFINED__ */
  211. #ifndef __ID3D12Device7_FWD_DEFINED__
  212. #define __ID3D12Device7_FWD_DEFINED__
  213. typedef interface ID3D12Device7 ID3D12Device7;
  214. #endif /* __ID3D12Device7_FWD_DEFINED__ */
  215. #ifndef __ID3D12Device8_FWD_DEFINED__
  216. #define __ID3D12Device8_FWD_DEFINED__
  217. typedef interface ID3D12Device8 ID3D12Device8;
  218. #endif /* __ID3D12Device8_FWD_DEFINED__ */
  219. #ifndef __ID3D12Resource1_FWD_DEFINED__
  220. #define __ID3D12Resource1_FWD_DEFINED__
  221. typedef interface ID3D12Resource1 ID3D12Resource1;
  222. #endif /* __ID3D12Resource1_FWD_DEFINED__ */
  223. #ifndef __ID3D12Resource2_FWD_DEFINED__
  224. #define __ID3D12Resource2_FWD_DEFINED__
  225. typedef interface ID3D12Resource2 ID3D12Resource2;
  226. #endif /* __ID3D12Resource2_FWD_DEFINED__ */
  227. #ifndef __ID3D12Heap1_FWD_DEFINED__
  228. #define __ID3D12Heap1_FWD_DEFINED__
  229. typedef interface ID3D12Heap1 ID3D12Heap1;
  230. #endif /* __ID3D12Heap1_FWD_DEFINED__ */
  231. #ifndef __ID3D12GraphicsCommandList3_FWD_DEFINED__
  232. #define __ID3D12GraphicsCommandList3_FWD_DEFINED__
  233. typedef interface ID3D12GraphicsCommandList3 ID3D12GraphicsCommandList3;
  234. #endif /* __ID3D12GraphicsCommandList3_FWD_DEFINED__ */
  235. #ifndef __ID3D12MetaCommand_FWD_DEFINED__
  236. #define __ID3D12MetaCommand_FWD_DEFINED__
  237. typedef interface ID3D12MetaCommand ID3D12MetaCommand;
  238. #endif /* __ID3D12MetaCommand_FWD_DEFINED__ */
  239. #ifndef __ID3D12GraphicsCommandList4_FWD_DEFINED__
  240. #define __ID3D12GraphicsCommandList4_FWD_DEFINED__
  241. typedef interface ID3D12GraphicsCommandList4 ID3D12GraphicsCommandList4;
  242. #endif /* __ID3D12GraphicsCommandList4_FWD_DEFINED__ */
  243. #ifndef __ID3D12ShaderCacheSession_FWD_DEFINED__
  244. #define __ID3D12ShaderCacheSession_FWD_DEFINED__
  245. typedef interface ID3D12ShaderCacheSession ID3D12ShaderCacheSession;
  246. #endif /* __ID3D12ShaderCacheSession_FWD_DEFINED__ */
  247. #ifndef __ID3D12Device9_FWD_DEFINED__
  248. #define __ID3D12Device9_FWD_DEFINED__
  249. typedef interface ID3D12Device9 ID3D12Device9;
  250. #endif /* __ID3D12Device9_FWD_DEFINED__ */
  251. #ifndef __ID3D12Device10_FWD_DEFINED__
  252. #define __ID3D12Device10_FWD_DEFINED__
  253. typedef interface ID3D12Device10 ID3D12Device10;
  254. #endif /* __ID3D12Device10_FWD_DEFINED__ */
  255. #ifndef __ID3D12Device11_FWD_DEFINED__
  256. #define __ID3D12Device11_FWD_DEFINED__
  257. typedef interface ID3D12Device11 ID3D12Device11;
  258. #endif /* __ID3D12Device11_FWD_DEFINED__ */
  259. #ifndef __ID3D12Device12_FWD_DEFINED__
  260. #define __ID3D12Device12_FWD_DEFINED__
  261. typedef interface ID3D12Device12 ID3D12Device12;
  262. #endif /* __ID3D12Device12_FWD_DEFINED__ */
  263. #ifndef __ID3D12Device13_FWD_DEFINED__
  264. #define __ID3D12Device13_FWD_DEFINED__
  265. typedef interface ID3D12Device13 ID3D12Device13;
  266. #endif /* __ID3D12Device13_FWD_DEFINED__ */
  267. #ifndef __ID3D12VirtualizationGuestDevice_FWD_DEFINED__
  268. #define __ID3D12VirtualizationGuestDevice_FWD_DEFINED__
  269. typedef interface ID3D12VirtualizationGuestDevice ID3D12VirtualizationGuestDevice;
  270. #endif /* __ID3D12VirtualizationGuestDevice_FWD_DEFINED__ */
  271. #ifndef __ID3D12Tools_FWD_DEFINED__
  272. #define __ID3D12Tools_FWD_DEFINED__
  273. typedef interface ID3D12Tools ID3D12Tools;
  274. #endif /* __ID3D12Tools_FWD_DEFINED__ */
  275. #ifndef __ID3D12SDKConfiguration_FWD_DEFINED__
  276. #define __ID3D12SDKConfiguration_FWD_DEFINED__
  277. typedef interface ID3D12SDKConfiguration ID3D12SDKConfiguration;
  278. #endif /* __ID3D12SDKConfiguration_FWD_DEFINED__ */
  279. #ifndef __ID3D12SDKConfiguration1_FWD_DEFINED__
  280. #define __ID3D12SDKConfiguration1_FWD_DEFINED__
  281. typedef interface ID3D12SDKConfiguration1 ID3D12SDKConfiguration1;
  282. #endif /* __ID3D12SDKConfiguration1_FWD_DEFINED__ */
  283. #ifndef __ID3D12DeviceFactory_FWD_DEFINED__
  284. #define __ID3D12DeviceFactory_FWD_DEFINED__
  285. typedef interface ID3D12DeviceFactory ID3D12DeviceFactory;
  286. #endif /* __ID3D12DeviceFactory_FWD_DEFINED__ */
  287. #ifndef __ID3D12DeviceConfiguration_FWD_DEFINED__
  288. #define __ID3D12DeviceConfiguration_FWD_DEFINED__
  289. typedef interface ID3D12DeviceConfiguration ID3D12DeviceConfiguration;
  290. #endif /* __ID3D12DeviceConfiguration_FWD_DEFINED__ */
  291. #ifndef __ID3D12GraphicsCommandList5_FWD_DEFINED__
  292. #define __ID3D12GraphicsCommandList5_FWD_DEFINED__
  293. typedef interface ID3D12GraphicsCommandList5 ID3D12GraphicsCommandList5;
  294. #endif /* __ID3D12GraphicsCommandList5_FWD_DEFINED__ */
  295. #ifndef __ID3D12GraphicsCommandList6_FWD_DEFINED__
  296. #define __ID3D12GraphicsCommandList6_FWD_DEFINED__
  297. typedef interface ID3D12GraphicsCommandList6 ID3D12GraphicsCommandList6;
  298. #endif /* __ID3D12GraphicsCommandList6_FWD_DEFINED__ */
  299. #ifndef __ID3D12GraphicsCommandList7_FWD_DEFINED__
  300. #define __ID3D12GraphicsCommandList7_FWD_DEFINED__
  301. typedef interface ID3D12GraphicsCommandList7 ID3D12GraphicsCommandList7;
  302. #endif /* __ID3D12GraphicsCommandList7_FWD_DEFINED__ */
  303. #ifndef __ID3D12GraphicsCommandList8_FWD_DEFINED__
  304. #define __ID3D12GraphicsCommandList8_FWD_DEFINED__
  305. typedef interface ID3D12GraphicsCommandList8 ID3D12GraphicsCommandList8;
  306. #endif /* __ID3D12GraphicsCommandList8_FWD_DEFINED__ */
  307. #ifndef __ID3D12GraphicsCommandList9_FWD_DEFINED__
  308. #define __ID3D12GraphicsCommandList9_FWD_DEFINED__
  309. typedef interface ID3D12GraphicsCommandList9 ID3D12GraphicsCommandList9;
  310. #endif /* __ID3D12GraphicsCommandList9_FWD_DEFINED__ */
  311. /* header files for imported files */
  312. #include "oaidl.h"
  313. #include "ocidl.h"
  314. #include "dxgicommon.h"
  315. #include "dxgiformat.h"
  316. #include "d3dcommon.h"
  317. #ifdef __cplusplus
  318. extern "C"{
  319. #endif
  320. /* interface __MIDL_itf_d3d12_0000_0000 */
  321. /* [local] */
  322. #include <winapifamily.h>
  323. #pragma region App Family
  324. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)
  325. #ifndef _D3D12_CONSTANTS
  326. #define _D3D12_CONSTANTS
  327. #define D3D12_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )
  328. #define D3D12_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )
  329. #define D3D12_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )
  330. #define D3D12_APPEND_ALIGNED_ELEMENT ( 0xffffffff )
  331. #define D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )
  332. #define D3D12_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )
  333. #define D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )
  334. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )
  335. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )
  336. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )
  337. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )
  338. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 )
  339. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )
  340. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )
  341. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )
  342. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )
  343. #define D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )
  344. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )
  345. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )
  346. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )
  347. #define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )
  348. #define D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )
  349. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )
  350. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )
  351. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )
  352. #define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )
  353. #define D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )
  354. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )
  355. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )
  356. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )
  357. #define D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )
  358. #define D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )
  359. #define D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )
  360. #define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )
  361. #define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  362. #define D3D12_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )
  363. #define D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )
  364. #define D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )
  365. #define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )
  366. #define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )
  367. #define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )
  368. #define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )
  369. #define D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT ( 256 )
  370. #define D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 )
  371. #define D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 )
  372. #define D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 )
  373. #define D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 )
  374. #define D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 )
  375. #define D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 )
  376. #define D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 )
  377. #define D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 )
  378. #define D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 )
  379. #define D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 )
  380. #define D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 )
  381. #define D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 )
  382. #define D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 )
  383. #define D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 )
  384. #define D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 )
  385. #define D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 )
  386. #define D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 )
  387. #define D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 )
  388. #define D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 )
  389. #define D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 )
  390. #define D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 )
  391. #define D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 )
  392. #define D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 )
  393. #define D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 )
  394. #define D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 )
  395. #define D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 )
  396. #define D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 )
  397. #define D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 )
  398. #define D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 )
  399. #define D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 )
  400. #define D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 )
  401. #define D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 )
  402. #define D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 )
  403. #define D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 )
  404. #define D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 )
  405. #define D3D12_CS_4_X_THREAD_GROUP_MAX_X ( 768 )
  406. #define D3D12_CS_4_X_THREAD_GROUP_MAX_Y ( 768 )
  407. #define D3D12_CS_4_X_UAV_REGISTER_COUNT ( 1 )
  408. #define D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 )
  409. #define D3D12_CS_TGSM_REGISTER_COUNT ( 8192 )
  410. #define D3D12_CS_TGSM_REGISTER_READS_PER_INST ( 1 )
  411. #define D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 )
  412. #define D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 )
  413. #define D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 )
  414. #define D3D12_CS_THREADGROUPID_REGISTER_COUNT ( 1 )
  415. #define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 )
  416. #define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 )
  417. #define D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 )
  418. #define D3D12_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 )
  419. #define D3D12_CS_THREADID_REGISTER_COMPONENTS ( 3 )
  420. #define D3D12_CS_THREADID_REGISTER_COUNT ( 1 )
  421. #define D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 )
  422. #define D3D12_CS_THREAD_GROUP_MAX_X ( 1024 )
  423. #define D3D12_CS_THREAD_GROUP_MAX_Y ( 1024 )
  424. #define D3D12_CS_THREAD_GROUP_MAX_Z ( 64 )
  425. #define D3D12_CS_THREAD_GROUP_MIN_X ( 1 )
  426. #define D3D12_CS_THREAD_GROUP_MIN_Y ( 1 )
  427. #define D3D12_CS_THREAD_GROUP_MIN_Z ( 1 )
  428. #define D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 )
  429. #define D3D12_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )
  430. #define D3D12_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )
  431. #define D3D12_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )
  432. #define D3D12_DEFAULT_BLEND_FACTOR_RED ( 1.0f )
  433. #define D3D12_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )
  434. #define D3D12_DEFAULT_DEPTH_BIAS ( 0 )
  435. #define D3D12_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )
  436. #define D3D12_DEFAULT_MAX_ANISOTROPY ( 16 )
  437. #define D3D12_DEFAULT_MIP_LOD_BIAS ( 0.0f )
  438. #define D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 4194304 )
  439. #define D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )
  440. #define D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )
  441. #define D3D12_DEFAULT_SAMPLE_MASK ( 0xffffffff )
  442. #define D3D12_DEFAULT_SCISSOR_ENDX ( 0 )
  443. #define D3D12_DEFAULT_SCISSOR_ENDY ( 0 )
  444. #define D3D12_DEFAULT_SCISSOR_STARTX ( 0 )
  445. #define D3D12_DEFAULT_SCISSOR_STARTY ( 0 )
  446. #define D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )
  447. #define D3D12_DEFAULT_STENCIL_READ_MASK ( 0xff )
  448. #define D3D12_DEFAULT_STENCIL_REFERENCE ( 0 )
  449. #define D3D12_DEFAULT_STENCIL_WRITE_MASK ( 0xff )
  450. #define D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )
  451. #define D3D12_DEFAULT_VIEWPORT_HEIGHT ( 0 )
  452. #define D3D12_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )
  453. #define D3D12_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )
  454. #define D3D12_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )
  455. #define D3D12_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )
  456. #define D3D12_DEFAULT_VIEWPORT_WIDTH ( 0 )
  457. #define D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND ( 0xffffffff )
  458. #define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END ( 0xfffffff7 )
  459. #define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )
  460. #define D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )
  461. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )
  462. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  463. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 )
  464. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )
  465. #define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )
  466. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 )
  467. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  468. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 )
  469. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 )
  470. #define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 )
  471. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )
  472. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  473. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )
  474. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )
  475. #define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )
  476. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )
  477. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  478. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )
  479. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )
  480. #define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )
  481. #define D3D12_DS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  482. #define D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  483. #define D3D12_DS_OUTPUT_REGISTER_COUNT ( 32 )
  484. #define D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )
  485. #define D3D12_FLOAT32_MAX ( 3.402823466e+38f )
  486. #define D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )
  487. #define D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )
  488. #define D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )
  489. #define D3D12_FLOAT_TO_SRGB_OFFSET ( 0.055f )
  490. #define D3D12_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )
  491. #define D3D12_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )
  492. #define D3D12_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )
  493. #define D3D12_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )
  494. #define D3D12_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )
  495. #define D3D12_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )
  496. #define D3D12_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )
  497. #define D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 )
  498. #define D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 )
  499. #define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )
  500. #define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  501. #define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 )
  502. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )
  503. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  504. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )
  505. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )
  506. #define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )
  507. #define D3D12_GS_INPUT_REGISTER_COMPONENTS ( 4 )
  508. #define D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  509. #define D3D12_GS_INPUT_REGISTER_COUNT ( 32 )
  510. #define D3D12_GS_INPUT_REGISTER_READS_PER_INST ( 2 )
  511. #define D3D12_GS_INPUT_REGISTER_READ_PORTS ( 1 )
  512. #define D3D12_GS_INPUT_REGISTER_VERTICES ( 32 )
  513. #define D3D12_GS_MAX_INSTANCE_COUNT ( 32 )
  514. #define D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 )
  515. #define D3D12_GS_OUTPUT_ELEMENTS ( 32 )
  516. #define D3D12_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  517. #define D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  518. #define D3D12_GS_OUTPUT_REGISTER_COUNT ( 32 )
  519. #define D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 )
  520. #define D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 )
  521. #define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )
  522. #define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  523. #define D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )
  524. #define D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )
  525. #define D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )
  526. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )
  527. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  528. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 )
  529. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )
  530. #define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )
  531. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )
  532. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  533. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 )
  534. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )
  535. #define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )
  536. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )
  537. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  538. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )
  539. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )
  540. #define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )
  541. #define D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )
  542. #define D3D12_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )
  543. #define D3D12_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )
  544. #define D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )
  545. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 )
  546. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  547. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 )
  548. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 )
  549. #define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 )
  550. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )
  551. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  552. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )
  553. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )
  554. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )
  555. #define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 )
  556. #define D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )
  557. #define D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )
  558. #define D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )
  559. #define D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )
  560. #define D3D12_IA_INSTANCE_ID_BIT_COUNT ( 32 )
  561. #define D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )
  562. #define D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 )
  563. #define D3D12_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )
  564. #define D3D12_IA_VERTEX_ID_BIT_COUNT ( 32 )
  565. #define D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )
  566. #define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )
  567. #define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )
  568. #define D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )
  569. #define D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )
  570. #define D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff )
  571. #define D3D12_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff )
  572. #define D3D12_LINEAR_GAMMA ( 1.0f )
  573. #define D3D12_MAJOR_VERSION ( 12 )
  574. #define D3D12_MAX_BORDER_COLOR_COMPONENT ( 1.0f )
  575. #define D3D12_MAX_DEPTH ( 1.0f )
  576. #define D3D12_MAX_LIVE_STATIC_SAMPLERS ( 2032 )
  577. #define D3D12_MAX_MAXANISOTROPY ( 16 )
  578. #define D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )
  579. #define D3D12_MAX_POSITION_VALUE ( 3.402823466e+34f )
  580. #define D3D12_MAX_ROOT_COST ( 64 )
  581. #define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 ( 1000000 )
  582. #define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 ( 1000000 )
  583. #define D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE ( 2048 )
  584. #define D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )
  585. #define D3D12_MAX_VIEW_INSTANCE_COUNT ( 4 )
  586. #define D3D12_MINOR_VERSION ( 0 )
  587. #define D3D12_MIN_BORDER_COLOR_COMPONENT ( 0.0f )
  588. #define D3D12_MIN_DEPTH ( 0.0f )
  589. #define D3D12_MIN_MAXANISOTROPY ( 0 )
  590. #define D3D12_MIP_LOD_BIAS_MAX ( 15.99f )
  591. #define D3D12_MIP_LOD_BIAS_MIN ( -16.0f )
  592. #define D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 )
  593. #define D3D12_MIP_LOD_RANGE_BIT_COUNT ( 8 )
  594. #define D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )
  595. #define D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )
  596. #define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )
  597. #define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff8 )
  598. #define D3D12_PACKED_TILE ( 0xffffffff )
  599. #define D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )
  600. #define D3D12_PREVIEW_SDK_VERSION ( 712 )
  601. #define D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )
  602. #define D3D12_PS_CS_UAV_REGISTER_COMPONENTS ( 1 )
  603. #define D3D12_PS_CS_UAV_REGISTER_COUNT ( 8 )
  604. #define D3D12_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 )
  605. #define D3D12_PS_CS_UAV_REGISTER_READ_PORTS ( 1 )
  606. #define D3D12_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )
  607. #define D3D12_PS_FRONTFACING_FALSE_VALUE ( 0 )
  608. #define D3D12_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )
  609. #define D3D12_PS_INPUT_REGISTER_COMPONENTS ( 4 )
  610. #define D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  611. #define D3D12_PS_INPUT_REGISTER_COUNT ( 32 )
  612. #define D3D12_PS_INPUT_REGISTER_READS_PER_INST ( 2 )
  613. #define D3D12_PS_INPUT_REGISTER_READ_PORTS ( 1 )
  614. #define D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )
  615. #define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )
  616. #define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  617. #define D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )
  618. #define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )
  619. #define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  620. #define D3D12_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )
  621. #define D3D12_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  622. #define D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  623. #define D3D12_PS_OUTPUT_REGISTER_COUNT ( 8 )
  624. #define D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )
  625. #define D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 )
  626. #define D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT ( 8 )
  627. #define D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT ( 256 )
  628. #define D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT ( 16 )
  629. #define D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES ( 32 )
  630. #define D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH ( 31 )
  631. #define D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )
  632. #define D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )
  633. #define D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 536870912 )
  634. #define D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS ( 1073741824 )
  635. #define D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE ( 4096 )
  636. #define D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT ( 32 )
  637. #define D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT ( 64 )
  638. #define D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT ( 16 )
  639. #define D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 )
  640. #define D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )
  641. #define D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )
  642. #define D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 )
  643. #define D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )
  644. #define D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )
  645. #define D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 )
  646. #define D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )
  647. #define D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )
  648. #define D3D12_REQ_MAXANISOTROPY ( 16 )
  649. #define D3D12_REQ_MIP_LEVELS ( 15 )
  650. #define D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )
  651. #define D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 )
  652. #define D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 )
  653. #define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 )
  654. #define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )
  655. #define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 )
  656. #define D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 )
  657. #define D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 )
  658. #define D3D12_REQ_SUBRESOURCES ( 30720 )
  659. #define D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 )
  660. #define D3D12_REQ_TEXTURE1D_U_DIMENSION ( 16384 )
  661. #define D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 )
  662. #define D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 )
  663. #define D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )
  664. #define D3D12_REQ_TEXTURECUBE_DIMENSION ( 16384 )
  665. #define D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )
  666. #define D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES ( 0xffffffff )
  667. #define D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT ( 2 )
  668. #define D3D12_SDK_VERSION ( 611 )
  669. #define D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES ( 32 )
  670. #define D3D12_SHADER_MAJOR_VERSION ( 5 )
  671. #define D3D12_SHADER_MAX_INSTANCES ( 65535 )
  672. #define D3D12_SHADER_MAX_INTERFACES ( 253 )
  673. #define D3D12_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 )
  674. #define D3D12_SHADER_MAX_TYPES ( 65535 )
  675. #define D3D12_SHADER_MINOR_VERSION ( 1 )
  676. #define D3D12_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )
  677. #define D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )
  678. #define D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )
  679. #define D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )
  680. #define D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT ( 4096 )
  681. #define D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )
  682. #define D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 )
  683. #define D3D12_SO_BUFFER_SLOT_COUNT ( 4 )
  684. #define D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )
  685. #define D3D12_SO_NO_RASTERIZED_STREAM ( 0xffffffff )
  686. #define D3D12_SO_OUTPUT_COMPONENT_COUNT ( 128 )
  687. #define D3D12_SO_STREAM_COUNT ( 4 )
  688. #define D3D12_SPEC_DATE_DAY ( 14 )
  689. #define D3D12_SPEC_DATE_MONTH ( 11 )
  690. #define D3D12_SPEC_DATE_YEAR ( 2014 )
  691. #define D3D12_SPEC_VERSION ( 1.16 )
  692. #define D3D12_SRGB_GAMMA ( 2.2f )
  693. #define D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )
  694. #define D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )
  695. #define D3D12_SRGB_TO_FLOAT_EXPONENT ( 2.4f )
  696. #define D3D12_SRGB_TO_FLOAT_OFFSET ( 0.055f )
  697. #define D3D12_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )
  698. #define D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )
  699. #define D3D12_STANDARD_COMPONENT_BIT_COUNT ( 32 )
  700. #define D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )
  701. #define D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )
  702. #define D3D12_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )
  703. #define D3D12_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )
  704. #define D3D12_STANDARD_VECTOR_SIZE ( 4 )
  705. #define D3D12_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )
  706. #define D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )
  707. #define D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )
  708. #define D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 )
  709. #define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )
  710. #define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )
  711. #define D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 )
  712. #define D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 )
  713. #define D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 )
  714. #define D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 )
  715. #define D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 )
  716. #define D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 )
  717. #define D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 )
  718. #define D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )
  719. #define D3D12_TEXTURE_DATA_PITCH_ALIGNMENT ( 256 )
  720. #define D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT ( 512 )
  721. #define D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 )
  722. #define D3D12_TRACKED_WORKLOAD_MAX_INSTANCES ( 32 )
  723. #define D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT ( 4096 )
  724. #define D3D12_UAV_SLOT_COUNT ( 64 )
  725. #define D3D12_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )
  726. #define D3D12_VIDEO_DECODE_MAX_ARGUMENTS ( 10 )
  727. #define D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS ( 4 )
  728. #define D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT ( 256 )
  729. #define D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT ( 256 )
  730. #define D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN ( 0xffffffff )
  731. #define D3D12_VIDEO_ENCODER_AV1_INVALID_DPB_RESOURCE_INDEX ( 0xff )
  732. #define D3D12_VIDEO_ENCODER_AV1_MAX_TILE_COLS ( 64 )
  733. #define D3D12_VIDEO_ENCODER_AV1_MAX_TILE_ROWS ( 64 )
  734. #define D3D12_VIDEO_ENCODER_AV1_SUPERRES_DENOM_MIN ( 9 )
  735. #define D3D12_VIDEO_ENCODER_AV1_SUPERRES_NUM ( 8 )
  736. #define D3D12_VIDEO_PROCESS_MAX_FILTERS ( 32 )
  737. #define D3D12_VIDEO_PROCESS_STEREO_VIEWS ( 2 )
  738. #define D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )
  739. #define D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )
  740. #define D3D12_VIEWPORT_BOUNDS_MAX ( 32767 )
  741. #define D3D12_VIEWPORT_BOUNDS_MIN ( -32768 )
  742. #define D3D12_VS_INPUT_REGISTER_COMPONENTS ( 4 )
  743. #define D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  744. #define D3D12_VS_INPUT_REGISTER_COUNT ( 32 )
  745. #define D3D12_VS_INPUT_REGISTER_READS_PER_INST ( 2 )
  746. #define D3D12_VS_INPUT_REGISTER_READ_PORTS ( 1 )
  747. #define D3D12_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )
  748. #define D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )
  749. #define D3D12_VS_OUTPUT_REGISTER_COUNT ( 32 )
  750. #define D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )
  751. #define D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )
  752. #define D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )
  753. #endif
  754. typedef UINT64 D3D12_GPU_VIRTUAL_ADDRESS;
  755. typedef
  756. enum D3D12_COMMAND_LIST_TYPE
  757. {
  758. D3D12_COMMAND_LIST_TYPE_DIRECT = 0,
  759. D3D12_COMMAND_LIST_TYPE_BUNDLE = 1,
  760. D3D12_COMMAND_LIST_TYPE_COMPUTE = 2,
  761. D3D12_COMMAND_LIST_TYPE_COPY = 3,
  762. D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE = 4,
  763. D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS = 5,
  764. D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE = 6,
  765. D3D12_COMMAND_LIST_TYPE_NONE = -1
  766. } D3D12_COMMAND_LIST_TYPE;
  767. typedef
  768. enum D3D12_COMMAND_QUEUE_FLAGS
  769. {
  770. D3D12_COMMAND_QUEUE_FLAG_NONE = 0,
  771. D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT = 0x1
  772. } D3D12_COMMAND_QUEUE_FLAGS;
  773. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_QUEUE_FLAGS );
  774. typedef
  775. enum D3D12_COMMAND_QUEUE_PRIORITY
  776. {
  777. D3D12_COMMAND_QUEUE_PRIORITY_NORMAL = 0,
  778. D3D12_COMMAND_QUEUE_PRIORITY_HIGH = 100,
  779. D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME = 10000
  780. } D3D12_COMMAND_QUEUE_PRIORITY;
  781. typedef struct D3D12_COMMAND_QUEUE_DESC
  782. {
  783. D3D12_COMMAND_LIST_TYPE Type;
  784. INT Priority;
  785. D3D12_COMMAND_QUEUE_FLAGS Flags;
  786. UINT NodeMask;
  787. } D3D12_COMMAND_QUEUE_DESC;
  788. typedef
  789. enum D3D12_PRIMITIVE_TOPOLOGY_TYPE
  790. {
  791. D3D12_PRIMITIVE_TOPOLOGY_TYPE_UNDEFINED = 0,
  792. D3D12_PRIMITIVE_TOPOLOGY_TYPE_POINT = 1,
  793. D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE = 2,
  794. D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE = 3,
  795. D3D12_PRIMITIVE_TOPOLOGY_TYPE_PATCH = 4
  796. } D3D12_PRIMITIVE_TOPOLOGY_TYPE;
  797. typedef
  798. enum D3D12_INPUT_CLASSIFICATION
  799. {
  800. D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA = 0,
  801. D3D12_INPUT_CLASSIFICATION_PER_INSTANCE_DATA = 1
  802. } D3D12_INPUT_CLASSIFICATION;
  803. typedef struct D3D12_INPUT_ELEMENT_DESC
  804. {
  805. LPCSTR SemanticName;
  806. UINT SemanticIndex;
  807. DXGI_FORMAT Format;
  808. UINT InputSlot;
  809. UINT AlignedByteOffset;
  810. D3D12_INPUT_CLASSIFICATION InputSlotClass;
  811. UINT InstanceDataStepRate;
  812. } D3D12_INPUT_ELEMENT_DESC;
  813. typedef
  814. enum D3D12_FILL_MODE
  815. {
  816. D3D12_FILL_MODE_WIREFRAME = 2,
  817. D3D12_FILL_MODE_SOLID = 3
  818. } D3D12_FILL_MODE;
  819. typedef D3D_PRIMITIVE_TOPOLOGY D3D12_PRIMITIVE_TOPOLOGY;
  820. typedef D3D_PRIMITIVE D3D12_PRIMITIVE;
  821. typedef
  822. enum D3D12_CULL_MODE
  823. {
  824. D3D12_CULL_MODE_NONE = 1,
  825. D3D12_CULL_MODE_FRONT = 2,
  826. D3D12_CULL_MODE_BACK = 3
  827. } D3D12_CULL_MODE;
  828. typedef struct D3D12_SO_DECLARATION_ENTRY
  829. {
  830. UINT Stream;
  831. LPCSTR SemanticName;
  832. UINT SemanticIndex;
  833. BYTE StartComponent;
  834. BYTE ComponentCount;
  835. BYTE OutputSlot;
  836. } D3D12_SO_DECLARATION_ENTRY;
  837. typedef struct D3D12_VIEWPORT
  838. {
  839. FLOAT TopLeftX;
  840. FLOAT TopLeftY;
  841. FLOAT Width;
  842. FLOAT Height;
  843. FLOAT MinDepth;
  844. FLOAT MaxDepth;
  845. } D3D12_VIEWPORT;
  846. typedef RECT D3D12_RECT;
  847. typedef struct D3D12_BOX
  848. {
  849. UINT left;
  850. UINT top;
  851. UINT front;
  852. UINT right;
  853. UINT bottom;
  854. UINT back;
  855. } D3D12_BOX;
  856. typedef
  857. enum D3D12_COMPARISON_FUNC
  858. {
  859. D3D12_COMPARISON_FUNC_NONE = 0,
  860. D3D12_COMPARISON_FUNC_NEVER = 1,
  861. D3D12_COMPARISON_FUNC_LESS = 2,
  862. D3D12_COMPARISON_FUNC_EQUAL = 3,
  863. D3D12_COMPARISON_FUNC_LESS_EQUAL = 4,
  864. D3D12_COMPARISON_FUNC_GREATER = 5,
  865. D3D12_COMPARISON_FUNC_NOT_EQUAL = 6,
  866. D3D12_COMPARISON_FUNC_GREATER_EQUAL = 7,
  867. D3D12_COMPARISON_FUNC_ALWAYS = 8
  868. } D3D12_COMPARISON_FUNC;
  869. typedef
  870. enum D3D12_DEPTH_WRITE_MASK
  871. {
  872. D3D12_DEPTH_WRITE_MASK_ZERO = 0,
  873. D3D12_DEPTH_WRITE_MASK_ALL = 1
  874. } D3D12_DEPTH_WRITE_MASK;
  875. typedef
  876. enum D3D12_STENCIL_OP
  877. {
  878. D3D12_STENCIL_OP_KEEP = 1,
  879. D3D12_STENCIL_OP_ZERO = 2,
  880. D3D12_STENCIL_OP_REPLACE = 3,
  881. D3D12_STENCIL_OP_INCR_SAT = 4,
  882. D3D12_STENCIL_OP_DECR_SAT = 5,
  883. D3D12_STENCIL_OP_INVERT = 6,
  884. D3D12_STENCIL_OP_INCR = 7,
  885. D3D12_STENCIL_OP_DECR = 8
  886. } D3D12_STENCIL_OP;
  887. typedef struct D3D12_DEPTH_STENCILOP_DESC
  888. {
  889. D3D12_STENCIL_OP StencilFailOp;
  890. D3D12_STENCIL_OP StencilDepthFailOp;
  891. D3D12_STENCIL_OP StencilPassOp;
  892. D3D12_COMPARISON_FUNC StencilFunc;
  893. } D3D12_DEPTH_STENCILOP_DESC;
  894. typedef struct D3D12_DEPTH_STENCIL_DESC
  895. {
  896. BOOL DepthEnable;
  897. D3D12_DEPTH_WRITE_MASK DepthWriteMask;
  898. D3D12_COMPARISON_FUNC DepthFunc;
  899. BOOL StencilEnable;
  900. UINT8 StencilReadMask;
  901. UINT8 StencilWriteMask;
  902. D3D12_DEPTH_STENCILOP_DESC FrontFace;
  903. D3D12_DEPTH_STENCILOP_DESC BackFace;
  904. } D3D12_DEPTH_STENCIL_DESC;
  905. typedef struct D3D12_DEPTH_STENCIL_DESC1
  906. {
  907. BOOL DepthEnable;
  908. D3D12_DEPTH_WRITE_MASK DepthWriteMask;
  909. D3D12_COMPARISON_FUNC DepthFunc;
  910. BOOL StencilEnable;
  911. UINT8 StencilReadMask;
  912. UINT8 StencilWriteMask;
  913. D3D12_DEPTH_STENCILOP_DESC FrontFace;
  914. D3D12_DEPTH_STENCILOP_DESC BackFace;
  915. BOOL DepthBoundsTestEnable;
  916. } D3D12_DEPTH_STENCIL_DESC1;
  917. typedef struct D3D12_DEPTH_STENCILOP_DESC1
  918. {
  919. D3D12_STENCIL_OP StencilFailOp;
  920. D3D12_STENCIL_OP StencilDepthFailOp;
  921. D3D12_STENCIL_OP StencilPassOp;
  922. D3D12_COMPARISON_FUNC StencilFunc;
  923. UINT8 StencilReadMask;
  924. UINT8 StencilWriteMask;
  925. } D3D12_DEPTH_STENCILOP_DESC1;
  926. typedef struct D3D12_DEPTH_STENCIL_DESC2
  927. {
  928. BOOL DepthEnable;
  929. D3D12_DEPTH_WRITE_MASK DepthWriteMask;
  930. D3D12_COMPARISON_FUNC DepthFunc;
  931. BOOL StencilEnable;
  932. D3D12_DEPTH_STENCILOP_DESC1 FrontFace;
  933. D3D12_DEPTH_STENCILOP_DESC1 BackFace;
  934. BOOL DepthBoundsTestEnable;
  935. } D3D12_DEPTH_STENCIL_DESC2;
  936. typedef
  937. enum D3D12_BLEND
  938. {
  939. D3D12_BLEND_ZERO = 1,
  940. D3D12_BLEND_ONE = 2,
  941. D3D12_BLEND_SRC_COLOR = 3,
  942. D3D12_BLEND_INV_SRC_COLOR = 4,
  943. D3D12_BLEND_SRC_ALPHA = 5,
  944. D3D12_BLEND_INV_SRC_ALPHA = 6,
  945. D3D12_BLEND_DEST_ALPHA = 7,
  946. D3D12_BLEND_INV_DEST_ALPHA = 8,
  947. D3D12_BLEND_DEST_COLOR = 9,
  948. D3D12_BLEND_INV_DEST_COLOR = 10,
  949. D3D12_BLEND_SRC_ALPHA_SAT = 11,
  950. D3D12_BLEND_BLEND_FACTOR = 14,
  951. D3D12_BLEND_INV_BLEND_FACTOR = 15,
  952. D3D12_BLEND_SRC1_COLOR = 16,
  953. D3D12_BLEND_INV_SRC1_COLOR = 17,
  954. D3D12_BLEND_SRC1_ALPHA = 18,
  955. D3D12_BLEND_INV_SRC1_ALPHA = 19,
  956. D3D12_BLEND_ALPHA_FACTOR = 20,
  957. D3D12_BLEND_INV_ALPHA_FACTOR = 21
  958. } D3D12_BLEND;
  959. typedef
  960. enum D3D12_BLEND_OP
  961. {
  962. D3D12_BLEND_OP_ADD = 1,
  963. D3D12_BLEND_OP_SUBTRACT = 2,
  964. D3D12_BLEND_OP_REV_SUBTRACT = 3,
  965. D3D12_BLEND_OP_MIN = 4,
  966. D3D12_BLEND_OP_MAX = 5
  967. } D3D12_BLEND_OP;
  968. typedef
  969. enum D3D12_COLOR_WRITE_ENABLE
  970. {
  971. D3D12_COLOR_WRITE_ENABLE_RED = 1,
  972. D3D12_COLOR_WRITE_ENABLE_GREEN = 2,
  973. D3D12_COLOR_WRITE_ENABLE_BLUE = 4,
  974. D3D12_COLOR_WRITE_ENABLE_ALPHA = 8,
  975. 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 )
  976. } D3D12_COLOR_WRITE_ENABLE;
  977. typedef
  978. enum D3D12_LOGIC_OP
  979. {
  980. D3D12_LOGIC_OP_CLEAR = 0,
  981. D3D12_LOGIC_OP_SET = ( D3D12_LOGIC_OP_CLEAR + 1 ) ,
  982. D3D12_LOGIC_OP_COPY = ( D3D12_LOGIC_OP_SET + 1 ) ,
  983. D3D12_LOGIC_OP_COPY_INVERTED = ( D3D12_LOGIC_OP_COPY + 1 ) ,
  984. D3D12_LOGIC_OP_NOOP = ( D3D12_LOGIC_OP_COPY_INVERTED + 1 ) ,
  985. D3D12_LOGIC_OP_INVERT = ( D3D12_LOGIC_OP_NOOP + 1 ) ,
  986. D3D12_LOGIC_OP_AND = ( D3D12_LOGIC_OP_INVERT + 1 ) ,
  987. D3D12_LOGIC_OP_NAND = ( D3D12_LOGIC_OP_AND + 1 ) ,
  988. D3D12_LOGIC_OP_OR = ( D3D12_LOGIC_OP_NAND + 1 ) ,
  989. D3D12_LOGIC_OP_NOR = ( D3D12_LOGIC_OP_OR + 1 ) ,
  990. D3D12_LOGIC_OP_XOR = ( D3D12_LOGIC_OP_NOR + 1 ) ,
  991. D3D12_LOGIC_OP_EQUIV = ( D3D12_LOGIC_OP_XOR + 1 ) ,
  992. D3D12_LOGIC_OP_AND_REVERSE = ( D3D12_LOGIC_OP_EQUIV + 1 ) ,
  993. D3D12_LOGIC_OP_AND_INVERTED = ( D3D12_LOGIC_OP_AND_REVERSE + 1 ) ,
  994. D3D12_LOGIC_OP_OR_REVERSE = ( D3D12_LOGIC_OP_AND_INVERTED + 1 ) ,
  995. D3D12_LOGIC_OP_OR_INVERTED = ( D3D12_LOGIC_OP_OR_REVERSE + 1 )
  996. } D3D12_LOGIC_OP;
  997. typedef struct D3D12_RENDER_TARGET_BLEND_DESC
  998. {
  999. BOOL BlendEnable;
  1000. BOOL LogicOpEnable;
  1001. D3D12_BLEND SrcBlend;
  1002. D3D12_BLEND DestBlend;
  1003. D3D12_BLEND_OP BlendOp;
  1004. D3D12_BLEND SrcBlendAlpha;
  1005. D3D12_BLEND DestBlendAlpha;
  1006. D3D12_BLEND_OP BlendOpAlpha;
  1007. D3D12_LOGIC_OP LogicOp;
  1008. UINT8 RenderTargetWriteMask;
  1009. } D3D12_RENDER_TARGET_BLEND_DESC;
  1010. typedef struct D3D12_BLEND_DESC
  1011. {
  1012. BOOL AlphaToCoverageEnable;
  1013. BOOL IndependentBlendEnable;
  1014. D3D12_RENDER_TARGET_BLEND_DESC RenderTarget[ 8 ];
  1015. } D3D12_BLEND_DESC;
  1016. /* Note, the array size for RenderTarget[] above is D3D12_SIMULTANEOUS_RENDERTARGET_COUNT.
  1017. IDL processing/generation of this header replaces the define; this comment is merely explaining what happened. */
  1018. typedef
  1019. enum D3D12_CONSERVATIVE_RASTERIZATION_MODE
  1020. {
  1021. D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF = 0,
  1022. D3D12_CONSERVATIVE_RASTERIZATION_MODE_ON = 1
  1023. } D3D12_CONSERVATIVE_RASTERIZATION_MODE;
  1024. typedef struct D3D12_RASTERIZER_DESC
  1025. {
  1026. D3D12_FILL_MODE FillMode;
  1027. D3D12_CULL_MODE CullMode;
  1028. BOOL FrontCounterClockwise;
  1029. INT DepthBias;
  1030. FLOAT DepthBiasClamp;
  1031. FLOAT SlopeScaledDepthBias;
  1032. BOOL DepthClipEnable;
  1033. BOOL MultisampleEnable;
  1034. BOOL AntialiasedLineEnable;
  1035. UINT ForcedSampleCount;
  1036. D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster;
  1037. } D3D12_RASTERIZER_DESC;
  1038. typedef struct D3D12_RASTERIZER_DESC1
  1039. {
  1040. D3D12_FILL_MODE FillMode;
  1041. D3D12_CULL_MODE CullMode;
  1042. BOOL FrontCounterClockwise;
  1043. FLOAT DepthBias;
  1044. FLOAT DepthBiasClamp;
  1045. FLOAT SlopeScaledDepthBias;
  1046. BOOL DepthClipEnable;
  1047. BOOL MultisampleEnable;
  1048. BOOL AntialiasedLineEnable;
  1049. UINT ForcedSampleCount;
  1050. D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster;
  1051. } D3D12_RASTERIZER_DESC1;
  1052. typedef
  1053. enum D3D12_LINE_RASTERIZATION_MODE
  1054. {
  1055. D3D12_LINE_RASTERIZATION_MODE_ALIASED = 0,
  1056. D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED = ( D3D12_LINE_RASTERIZATION_MODE_ALIASED + 1 ) ,
  1057. D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE = ( D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED + 1 ) ,
  1058. D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_NARROW = ( D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE + 1 )
  1059. } D3D12_LINE_RASTERIZATION_MODE;
  1060. typedef struct D3D12_RASTERIZER_DESC2
  1061. {
  1062. D3D12_FILL_MODE FillMode;
  1063. D3D12_CULL_MODE CullMode;
  1064. BOOL FrontCounterClockwise;
  1065. FLOAT DepthBias;
  1066. FLOAT DepthBiasClamp;
  1067. FLOAT SlopeScaledDepthBias;
  1068. BOOL DepthClipEnable;
  1069. D3D12_LINE_RASTERIZATION_MODE LineRasterizationMode;
  1070. UINT ForcedSampleCount;
  1071. D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster;
  1072. } D3D12_RASTERIZER_DESC2;
  1073. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0000_v0_0_c_ifspec;
  1074. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0000_v0_0_s_ifspec;
  1075. #ifndef __ID3D12Object_INTERFACE_DEFINED__
  1076. #define __ID3D12Object_INTERFACE_DEFINED__
  1077. /* interface ID3D12Object */
  1078. /* [unique][local][object][uuid] */
  1079. EXTERN_C const IID IID_ID3D12Object;
  1080. #if defined(__cplusplus) && !defined(CINTERFACE)
  1081. MIDL_INTERFACE("c4fec28f-7966-4e95-9f94-f431cb56c3b8")
  1082. ID3D12Object : public IUnknown
  1083. {
  1084. public:
  1085. virtual HRESULT STDMETHODCALLTYPE GetPrivateData(
  1086. _In_ REFGUID guid,
  1087. _Inout_ UINT *pDataSize,
  1088. _Out_writes_bytes_opt_( *pDataSize ) void *pData) = 0;
  1089. virtual HRESULT STDMETHODCALLTYPE SetPrivateData(
  1090. _In_ REFGUID guid,
  1091. _In_ UINT DataSize,
  1092. _In_reads_bytes_opt_( DataSize ) const void *pData) = 0;
  1093. virtual HRESULT STDMETHODCALLTYPE SetPrivateDataInterface(
  1094. _In_ REFGUID guid,
  1095. _In_opt_ const IUnknown *pData) = 0;
  1096. virtual HRESULT STDMETHODCALLTYPE SetName(
  1097. _In_z_ LPCWSTR Name) = 0;
  1098. };
  1099. #else /* C style interface */
  1100. typedef struct ID3D12ObjectVtbl
  1101. {
  1102. BEGIN_INTERFACE
  1103. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  1104. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1105. ID3D12Object * This,
  1106. REFIID riid,
  1107. _COM_Outptr_ void **ppvObject);
  1108. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  1109. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1110. ID3D12Object * This);
  1111. DECLSPEC_XFGVIRT(IUnknown, Release)
  1112. ULONG ( STDMETHODCALLTYPE *Release )(
  1113. ID3D12Object * This);
  1114. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  1115. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1116. ID3D12Object * This,
  1117. _In_ REFGUID guid,
  1118. _Inout_ UINT *pDataSize,
  1119. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1120. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  1121. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1122. ID3D12Object * This,
  1123. _In_ REFGUID guid,
  1124. _In_ UINT DataSize,
  1125. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1126. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  1127. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1128. ID3D12Object * This,
  1129. _In_ REFGUID guid,
  1130. _In_opt_ const IUnknown *pData);
  1131. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  1132. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1133. ID3D12Object * This,
  1134. _In_z_ LPCWSTR Name);
  1135. END_INTERFACE
  1136. } ID3D12ObjectVtbl;
  1137. interface ID3D12Object
  1138. {
  1139. CONST_VTBL struct ID3D12ObjectVtbl *lpVtbl;
  1140. };
  1141. #ifdef COBJMACROS
  1142. #define ID3D12Object_QueryInterface(This,riid,ppvObject) \
  1143. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1144. #define ID3D12Object_AddRef(This) \
  1145. ( (This)->lpVtbl -> AddRef(This) )
  1146. #define ID3D12Object_Release(This) \
  1147. ( (This)->lpVtbl -> Release(This) )
  1148. #define ID3D12Object_GetPrivateData(This,guid,pDataSize,pData) \
  1149. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1150. #define ID3D12Object_SetPrivateData(This,guid,DataSize,pData) \
  1151. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1152. #define ID3D12Object_SetPrivateDataInterface(This,guid,pData) \
  1153. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1154. #define ID3D12Object_SetName(This,Name) \
  1155. ( (This)->lpVtbl -> SetName(This,Name) )
  1156. #endif /* COBJMACROS */
  1157. #endif /* C style interface */
  1158. #endif /* __ID3D12Object_INTERFACE_DEFINED__ */
  1159. #ifndef __ID3D12DeviceChild_INTERFACE_DEFINED__
  1160. #define __ID3D12DeviceChild_INTERFACE_DEFINED__
  1161. /* interface ID3D12DeviceChild */
  1162. /* [unique][local][object][uuid] */
  1163. EXTERN_C const IID IID_ID3D12DeviceChild;
  1164. #if defined(__cplusplus) && !defined(CINTERFACE)
  1165. MIDL_INTERFACE("905db94b-a00c-4140-9df5-2b64ca9ea357")
  1166. ID3D12DeviceChild : public ID3D12Object
  1167. {
  1168. public:
  1169. virtual HRESULT STDMETHODCALLTYPE GetDevice(
  1170. REFIID riid,
  1171. _COM_Outptr_opt_ void **ppvDevice) = 0;
  1172. };
  1173. #else /* C style interface */
  1174. typedef struct ID3D12DeviceChildVtbl
  1175. {
  1176. BEGIN_INTERFACE
  1177. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  1178. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1179. ID3D12DeviceChild * This,
  1180. REFIID riid,
  1181. _COM_Outptr_ void **ppvObject);
  1182. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  1183. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1184. ID3D12DeviceChild * This);
  1185. DECLSPEC_XFGVIRT(IUnknown, Release)
  1186. ULONG ( STDMETHODCALLTYPE *Release )(
  1187. ID3D12DeviceChild * This);
  1188. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  1189. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1190. ID3D12DeviceChild * This,
  1191. _In_ REFGUID guid,
  1192. _Inout_ UINT *pDataSize,
  1193. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1194. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  1195. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1196. ID3D12DeviceChild * This,
  1197. _In_ REFGUID guid,
  1198. _In_ UINT DataSize,
  1199. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1200. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  1201. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1202. ID3D12DeviceChild * This,
  1203. _In_ REFGUID guid,
  1204. _In_opt_ const IUnknown *pData);
  1205. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  1206. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1207. ID3D12DeviceChild * This,
  1208. _In_z_ LPCWSTR Name);
  1209. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  1210. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  1211. ID3D12DeviceChild * This,
  1212. REFIID riid,
  1213. _COM_Outptr_opt_ void **ppvDevice);
  1214. END_INTERFACE
  1215. } ID3D12DeviceChildVtbl;
  1216. interface ID3D12DeviceChild
  1217. {
  1218. CONST_VTBL struct ID3D12DeviceChildVtbl *lpVtbl;
  1219. };
  1220. #ifdef COBJMACROS
  1221. #define ID3D12DeviceChild_QueryInterface(This,riid,ppvObject) \
  1222. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1223. #define ID3D12DeviceChild_AddRef(This) \
  1224. ( (This)->lpVtbl -> AddRef(This) )
  1225. #define ID3D12DeviceChild_Release(This) \
  1226. ( (This)->lpVtbl -> Release(This) )
  1227. #define ID3D12DeviceChild_GetPrivateData(This,guid,pDataSize,pData) \
  1228. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1229. #define ID3D12DeviceChild_SetPrivateData(This,guid,DataSize,pData) \
  1230. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1231. #define ID3D12DeviceChild_SetPrivateDataInterface(This,guid,pData) \
  1232. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1233. #define ID3D12DeviceChild_SetName(This,Name) \
  1234. ( (This)->lpVtbl -> SetName(This,Name) )
  1235. #define ID3D12DeviceChild_GetDevice(This,riid,ppvDevice) \
  1236. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  1237. #endif /* COBJMACROS */
  1238. #endif /* C style interface */
  1239. #endif /* __ID3D12DeviceChild_INTERFACE_DEFINED__ */
  1240. #ifndef __ID3D12RootSignature_INTERFACE_DEFINED__
  1241. #define __ID3D12RootSignature_INTERFACE_DEFINED__
  1242. /* interface ID3D12RootSignature */
  1243. /* [unique][local][object][uuid] */
  1244. EXTERN_C const IID IID_ID3D12RootSignature;
  1245. #if defined(__cplusplus) && !defined(CINTERFACE)
  1246. MIDL_INTERFACE("c54a6b66-72df-4ee8-8be5-a946a1429214")
  1247. ID3D12RootSignature : public ID3D12DeviceChild
  1248. {
  1249. public:
  1250. };
  1251. #else /* C style interface */
  1252. typedef struct ID3D12RootSignatureVtbl
  1253. {
  1254. BEGIN_INTERFACE
  1255. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  1256. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1257. ID3D12RootSignature * This,
  1258. REFIID riid,
  1259. _COM_Outptr_ void **ppvObject);
  1260. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  1261. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1262. ID3D12RootSignature * This);
  1263. DECLSPEC_XFGVIRT(IUnknown, Release)
  1264. ULONG ( STDMETHODCALLTYPE *Release )(
  1265. ID3D12RootSignature * This);
  1266. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  1267. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  1268. ID3D12RootSignature * This,
  1269. _In_ REFGUID guid,
  1270. _Inout_ UINT *pDataSize,
  1271. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  1272. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  1273. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  1274. ID3D12RootSignature * This,
  1275. _In_ REFGUID guid,
  1276. _In_ UINT DataSize,
  1277. _In_reads_bytes_opt_( DataSize ) const void *pData);
  1278. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  1279. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  1280. ID3D12RootSignature * This,
  1281. _In_ REFGUID guid,
  1282. _In_opt_ const IUnknown *pData);
  1283. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  1284. HRESULT ( STDMETHODCALLTYPE *SetName )(
  1285. ID3D12RootSignature * This,
  1286. _In_z_ LPCWSTR Name);
  1287. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  1288. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  1289. ID3D12RootSignature * This,
  1290. REFIID riid,
  1291. _COM_Outptr_opt_ void **ppvDevice);
  1292. END_INTERFACE
  1293. } ID3D12RootSignatureVtbl;
  1294. interface ID3D12RootSignature
  1295. {
  1296. CONST_VTBL struct ID3D12RootSignatureVtbl *lpVtbl;
  1297. };
  1298. #ifdef COBJMACROS
  1299. #define ID3D12RootSignature_QueryInterface(This,riid,ppvObject) \
  1300. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1301. #define ID3D12RootSignature_AddRef(This) \
  1302. ( (This)->lpVtbl -> AddRef(This) )
  1303. #define ID3D12RootSignature_Release(This) \
  1304. ( (This)->lpVtbl -> Release(This) )
  1305. #define ID3D12RootSignature_GetPrivateData(This,guid,pDataSize,pData) \
  1306. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  1307. #define ID3D12RootSignature_SetPrivateData(This,guid,DataSize,pData) \
  1308. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  1309. #define ID3D12RootSignature_SetPrivateDataInterface(This,guid,pData) \
  1310. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  1311. #define ID3D12RootSignature_SetName(This,Name) \
  1312. ( (This)->lpVtbl -> SetName(This,Name) )
  1313. #define ID3D12RootSignature_GetDevice(This,riid,ppvDevice) \
  1314. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  1315. #endif /* COBJMACROS */
  1316. #endif /* C style interface */
  1317. #endif /* __ID3D12RootSignature_INTERFACE_DEFINED__ */
  1318. /* interface __MIDL_itf_d3d12_0000_0001 */
  1319. /* [local] */
  1320. typedef struct D3D12_SHADER_BYTECODE
  1321. {
  1322. _Field_size_bytes_full_(BytecodeLength) const void *pShaderBytecode;
  1323. SIZE_T BytecodeLength;
  1324. } D3D12_SHADER_BYTECODE;
  1325. typedef struct D3D12_STREAM_OUTPUT_DESC
  1326. {
  1327. _Field_size_full_(NumEntries) const D3D12_SO_DECLARATION_ENTRY *pSODeclaration;
  1328. UINT NumEntries;
  1329. _Field_size_full_(NumStrides) const UINT *pBufferStrides;
  1330. UINT NumStrides;
  1331. UINT RasterizedStream;
  1332. } D3D12_STREAM_OUTPUT_DESC;
  1333. typedef struct D3D12_INPUT_LAYOUT_DESC
  1334. {
  1335. _Field_size_full_(NumElements) const D3D12_INPUT_ELEMENT_DESC *pInputElementDescs;
  1336. UINT NumElements;
  1337. } D3D12_INPUT_LAYOUT_DESC;
  1338. typedef
  1339. enum D3D12_INDEX_BUFFER_STRIP_CUT_VALUE
  1340. {
  1341. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_DISABLED = 0,
  1342. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFF = 1,
  1343. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFFFFFF = 2
  1344. } D3D12_INDEX_BUFFER_STRIP_CUT_VALUE;
  1345. typedef struct D3D12_CACHED_PIPELINE_STATE
  1346. {
  1347. _Field_size_bytes_full_(CachedBlobSizeInBytes) const void *pCachedBlob;
  1348. SIZE_T CachedBlobSizeInBytes;
  1349. } D3D12_CACHED_PIPELINE_STATE;
  1350. typedef
  1351. enum D3D12_PIPELINE_STATE_FLAGS
  1352. {
  1353. D3D12_PIPELINE_STATE_FLAG_NONE = 0,
  1354. D3D12_PIPELINE_STATE_FLAG_TOOL_DEBUG = 0x1,
  1355. D3D12_PIPELINE_STATE_FLAG_DYNAMIC_DEPTH_BIAS = 0x4,
  1356. D3D12_PIPELINE_STATE_FLAG_DYNAMIC_INDEX_BUFFER_STRIP_CUT = 0x8
  1357. } D3D12_PIPELINE_STATE_FLAGS;
  1358. DEFINE_ENUM_FLAG_OPERATORS( D3D12_PIPELINE_STATE_FLAGS );
  1359. typedef struct D3D12_GRAPHICS_PIPELINE_STATE_DESC
  1360. {
  1361. ID3D12RootSignature *pRootSignature;
  1362. D3D12_SHADER_BYTECODE VS;
  1363. D3D12_SHADER_BYTECODE PS;
  1364. D3D12_SHADER_BYTECODE DS;
  1365. D3D12_SHADER_BYTECODE HS;
  1366. D3D12_SHADER_BYTECODE GS;
  1367. D3D12_STREAM_OUTPUT_DESC StreamOutput;
  1368. D3D12_BLEND_DESC BlendState;
  1369. UINT SampleMask;
  1370. D3D12_RASTERIZER_DESC RasterizerState;
  1371. D3D12_DEPTH_STENCIL_DESC DepthStencilState;
  1372. D3D12_INPUT_LAYOUT_DESC InputLayout;
  1373. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue;
  1374. D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType;
  1375. UINT NumRenderTargets;
  1376. DXGI_FORMAT RTVFormats[ 8 ];
  1377. DXGI_FORMAT DSVFormat;
  1378. DXGI_SAMPLE_DESC SampleDesc;
  1379. UINT NodeMask;
  1380. D3D12_CACHED_PIPELINE_STATE CachedPSO;
  1381. D3D12_PIPELINE_STATE_FLAGS Flags;
  1382. } D3D12_GRAPHICS_PIPELINE_STATE_DESC;
  1383. typedef struct D3D12_COMPUTE_PIPELINE_STATE_DESC
  1384. {
  1385. ID3D12RootSignature *pRootSignature;
  1386. D3D12_SHADER_BYTECODE CS;
  1387. UINT NodeMask;
  1388. D3D12_CACHED_PIPELINE_STATE CachedPSO;
  1389. D3D12_PIPELINE_STATE_FLAGS Flags;
  1390. } D3D12_COMPUTE_PIPELINE_STATE_DESC;
  1391. struct D3D12_RT_FORMAT_ARRAY
  1392. {
  1393. DXGI_FORMAT RTFormats[ 8 ];
  1394. UINT NumRenderTargets;
  1395. } ;
  1396. typedef struct D3D12_PIPELINE_STATE_STREAM_DESC
  1397. {
  1398. _In_ SIZE_T SizeInBytes;
  1399. _In_reads_(_Inexpressible_("Dependent on size of subobjects")) void *pPipelineStateSubobjectStream;
  1400. } D3D12_PIPELINE_STATE_STREAM_DESC;
  1401. typedef
  1402. enum D3D12_PIPELINE_STATE_SUBOBJECT_TYPE
  1403. {
  1404. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE = 0,
  1405. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE + 1 ) ,
  1406. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS + 1 ) ,
  1407. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS + 1 ) ,
  1408. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS + 1 ) ,
  1409. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS + 1 ) ,
  1410. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS + 1 ) ,
  1411. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS + 1 ) ,
  1412. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT + 1 ) ,
  1413. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND + 1 ) ,
  1414. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK + 1 ) ,
  1415. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER + 1 ) ,
  1416. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL + 1 ) ,
  1417. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT + 1 ) ,
  1418. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE + 1 ) ,
  1419. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY + 1 ) ,
  1420. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS + 1 ) ,
  1421. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT + 1 ) ,
  1422. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC + 1 ) ,
  1423. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK + 1 ) ,
  1424. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO + 1 ) ,
  1425. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS + 1 ) ,
  1426. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 + 1 ) ,
  1427. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS = 24,
  1428. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS = 25,
  1429. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 = 26,
  1430. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER1 = 27,
  1431. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2 = 28,
  1432. D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MAX_VALID = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2 + 1 )
  1433. } D3D12_PIPELINE_STATE_SUBOBJECT_TYPE;
  1434. typedef
  1435. enum D3D12_FEATURE
  1436. {
  1437. D3D12_FEATURE_D3D12_OPTIONS = 0,
  1438. D3D12_FEATURE_ARCHITECTURE = 1,
  1439. D3D12_FEATURE_FEATURE_LEVELS = 2,
  1440. D3D12_FEATURE_FORMAT_SUPPORT = 3,
  1441. D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS = 4,
  1442. D3D12_FEATURE_FORMAT_INFO = 5,
  1443. D3D12_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT = 6,
  1444. D3D12_FEATURE_SHADER_MODEL = 7,
  1445. D3D12_FEATURE_D3D12_OPTIONS1 = 8,
  1446. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT = 10,
  1447. D3D12_FEATURE_ROOT_SIGNATURE = 12,
  1448. D3D12_FEATURE_ARCHITECTURE1 = 16,
  1449. D3D12_FEATURE_D3D12_OPTIONS2 = 18,
  1450. D3D12_FEATURE_SHADER_CACHE = 19,
  1451. D3D12_FEATURE_COMMAND_QUEUE_PRIORITY = 20,
  1452. D3D12_FEATURE_D3D12_OPTIONS3 = 21,
  1453. D3D12_FEATURE_EXISTING_HEAPS = 22,
  1454. D3D12_FEATURE_D3D12_OPTIONS4 = 23,
  1455. D3D12_FEATURE_SERIALIZATION = 24,
  1456. D3D12_FEATURE_CROSS_NODE = 25,
  1457. D3D12_FEATURE_D3D12_OPTIONS5 = 27,
  1458. D3D12_FEATURE_DISPLAYABLE = 28,
  1459. D3D12_FEATURE_D3D12_OPTIONS6 = 30,
  1460. D3D12_FEATURE_QUERY_META_COMMAND = 31,
  1461. D3D12_FEATURE_D3D12_OPTIONS7 = 32,
  1462. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPE_COUNT = 33,
  1463. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPES = 34,
  1464. D3D12_FEATURE_D3D12_OPTIONS8 = 36,
  1465. D3D12_FEATURE_D3D12_OPTIONS9 = 37,
  1466. D3D12_FEATURE_D3D12_OPTIONS10 = 39,
  1467. D3D12_FEATURE_D3D12_OPTIONS11 = 40,
  1468. D3D12_FEATURE_D3D12_OPTIONS12 = 41,
  1469. D3D12_FEATURE_D3D12_OPTIONS13 = 42,
  1470. D3D12_FEATURE_D3D12_OPTIONS14 = 43,
  1471. D3D12_FEATURE_D3D12_OPTIONS15 = 44,
  1472. D3D12_FEATURE_D3D12_OPTIONS16 = 45,
  1473. D3D12_FEATURE_D3D12_OPTIONS17 = 46,
  1474. D3D12_FEATURE_D3D12_OPTIONS18 = 47,
  1475. D3D12_FEATURE_D3D12_OPTIONS19 = 48,
  1476. D3D12_FEATURE_D3D12_OPTIONS20 = 49,
  1477. D3D12_FEATURE_PREDICATION = 50,
  1478. D3D12_FEATURE_PLACED_RESOURCE_SUPPORT_INFO = 51,
  1479. D3D12_FEATURE_HARDWARE_COPY = 52
  1480. } D3D12_FEATURE;
  1481. typedef
  1482. enum D3D12_SHADER_MIN_PRECISION_SUPPORT
  1483. {
  1484. D3D12_SHADER_MIN_PRECISION_SUPPORT_NONE = 0,
  1485. D3D12_SHADER_MIN_PRECISION_SUPPORT_10_BIT = 0x1,
  1486. D3D12_SHADER_MIN_PRECISION_SUPPORT_16_BIT = 0x2
  1487. } D3D12_SHADER_MIN_PRECISION_SUPPORT;
  1488. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_MIN_PRECISION_SUPPORT );
  1489. typedef
  1490. enum D3D12_TILED_RESOURCES_TIER
  1491. {
  1492. D3D12_TILED_RESOURCES_TIER_NOT_SUPPORTED = 0,
  1493. D3D12_TILED_RESOURCES_TIER_1 = 1,
  1494. D3D12_TILED_RESOURCES_TIER_2 = 2,
  1495. D3D12_TILED_RESOURCES_TIER_3 = 3,
  1496. D3D12_TILED_RESOURCES_TIER_4 = 4
  1497. } D3D12_TILED_RESOURCES_TIER;
  1498. typedef
  1499. enum D3D12_RESOURCE_BINDING_TIER
  1500. {
  1501. D3D12_RESOURCE_BINDING_TIER_1 = 1,
  1502. D3D12_RESOURCE_BINDING_TIER_2 = 2,
  1503. D3D12_RESOURCE_BINDING_TIER_3 = 3
  1504. } D3D12_RESOURCE_BINDING_TIER;
  1505. typedef
  1506. enum D3D12_CONSERVATIVE_RASTERIZATION_TIER
  1507. {
  1508. D3D12_CONSERVATIVE_RASTERIZATION_TIER_NOT_SUPPORTED = 0,
  1509. D3D12_CONSERVATIVE_RASTERIZATION_TIER_1 = 1,
  1510. D3D12_CONSERVATIVE_RASTERIZATION_TIER_2 = 2,
  1511. D3D12_CONSERVATIVE_RASTERIZATION_TIER_3 = 3
  1512. } D3D12_CONSERVATIVE_RASTERIZATION_TIER;
  1513. typedef
  1514. enum D3D12_FORMAT_SUPPORT1
  1515. {
  1516. D3D12_FORMAT_SUPPORT1_NONE = 0,
  1517. D3D12_FORMAT_SUPPORT1_BUFFER = 0x1,
  1518. D3D12_FORMAT_SUPPORT1_IA_VERTEX_BUFFER = 0x2,
  1519. D3D12_FORMAT_SUPPORT1_IA_INDEX_BUFFER = 0x4,
  1520. D3D12_FORMAT_SUPPORT1_SO_BUFFER = 0x8,
  1521. D3D12_FORMAT_SUPPORT1_TEXTURE1D = 0x10,
  1522. D3D12_FORMAT_SUPPORT1_TEXTURE2D = 0x20,
  1523. D3D12_FORMAT_SUPPORT1_TEXTURE3D = 0x40,
  1524. D3D12_FORMAT_SUPPORT1_TEXTURECUBE = 0x80,
  1525. D3D12_FORMAT_SUPPORT1_SHADER_LOAD = 0x100,
  1526. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE = 0x200,
  1527. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_COMPARISON = 0x400,
  1528. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_MONO_TEXT = 0x800,
  1529. D3D12_FORMAT_SUPPORT1_MIP = 0x1000,
  1530. D3D12_FORMAT_SUPPORT1_RENDER_TARGET = 0x4000,
  1531. D3D12_FORMAT_SUPPORT1_BLENDABLE = 0x8000,
  1532. D3D12_FORMAT_SUPPORT1_DEPTH_STENCIL = 0x10000,
  1533. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RESOLVE = 0x40000,
  1534. D3D12_FORMAT_SUPPORT1_DISPLAY = 0x80000,
  1535. D3D12_FORMAT_SUPPORT1_CAST_WITHIN_BIT_LAYOUT = 0x100000,
  1536. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RENDERTARGET = 0x200000,
  1537. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_LOAD = 0x400000,
  1538. D3D12_FORMAT_SUPPORT1_SHADER_GATHER = 0x800000,
  1539. D3D12_FORMAT_SUPPORT1_BACK_BUFFER_CAST = 0x1000000,
  1540. D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW = 0x2000000,
  1541. D3D12_FORMAT_SUPPORT1_SHADER_GATHER_COMPARISON = 0x4000000,
  1542. D3D12_FORMAT_SUPPORT1_DECODER_OUTPUT = 0x8000000,
  1543. D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
  1544. D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_INPUT = 0x20000000,
  1545. D3D12_FORMAT_SUPPORT1_VIDEO_ENCODER = 0x40000000
  1546. } D3D12_FORMAT_SUPPORT1;
  1547. DEFINE_ENUM_FLAG_OPERATORS( D3D12_FORMAT_SUPPORT1 );
  1548. typedef
  1549. enum D3D12_FORMAT_SUPPORT2
  1550. {
  1551. D3D12_FORMAT_SUPPORT2_NONE = 0,
  1552. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x1,
  1553. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x2,
  1554. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x4,
  1555. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x8,
  1556. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x10,
  1557. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x20,
  1558. D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x40,
  1559. D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x80,
  1560. D3D12_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x100,
  1561. D3D12_FORMAT_SUPPORT2_TILED = 0x200,
  1562. D3D12_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x4000,
  1563. D3D12_FORMAT_SUPPORT2_SAMPLER_FEEDBACK = 0x8000
  1564. } D3D12_FORMAT_SUPPORT2;
  1565. DEFINE_ENUM_FLAG_OPERATORS( D3D12_FORMAT_SUPPORT2 );
  1566. typedef
  1567. enum D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS
  1568. {
  1569. D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_NONE = 0,
  1570. D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_TILED_RESOURCE = 0x1
  1571. } D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS;
  1572. DEFINE_ENUM_FLAG_OPERATORS( D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS );
  1573. typedef
  1574. enum D3D12_CROSS_NODE_SHARING_TIER
  1575. {
  1576. D3D12_CROSS_NODE_SHARING_TIER_NOT_SUPPORTED = 0,
  1577. D3D12_CROSS_NODE_SHARING_TIER_1_EMULATED = 1,
  1578. D3D12_CROSS_NODE_SHARING_TIER_1 = 2,
  1579. D3D12_CROSS_NODE_SHARING_TIER_2 = 3,
  1580. D3D12_CROSS_NODE_SHARING_TIER_3 = 4
  1581. } D3D12_CROSS_NODE_SHARING_TIER;
  1582. typedef
  1583. enum D3D12_RESOURCE_HEAP_TIER
  1584. {
  1585. D3D12_RESOURCE_HEAP_TIER_1 = 1,
  1586. D3D12_RESOURCE_HEAP_TIER_2 = 2
  1587. } D3D12_RESOURCE_HEAP_TIER;
  1588. typedef
  1589. enum D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER
  1590. {
  1591. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_NOT_SUPPORTED = 0,
  1592. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_1 = 1,
  1593. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_2 = 2
  1594. } D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER;
  1595. typedef
  1596. enum D3D12_VIEW_INSTANCING_TIER
  1597. {
  1598. D3D12_VIEW_INSTANCING_TIER_NOT_SUPPORTED = 0,
  1599. D3D12_VIEW_INSTANCING_TIER_1 = 1,
  1600. D3D12_VIEW_INSTANCING_TIER_2 = 2,
  1601. D3D12_VIEW_INSTANCING_TIER_3 = 3
  1602. } D3D12_VIEW_INSTANCING_TIER;
  1603. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS
  1604. {
  1605. _Out_ BOOL DoublePrecisionFloatShaderOps;
  1606. _Out_ BOOL OutputMergerLogicOp;
  1607. _Out_ D3D12_SHADER_MIN_PRECISION_SUPPORT MinPrecisionSupport;
  1608. _Out_ D3D12_TILED_RESOURCES_TIER TiledResourcesTier;
  1609. _Out_ D3D12_RESOURCE_BINDING_TIER ResourceBindingTier;
  1610. _Out_ BOOL PSSpecifiedStencilRefSupported;
  1611. _Out_ BOOL TypedUAVLoadAdditionalFormats;
  1612. _Out_ BOOL ROVsSupported;
  1613. _Out_ D3D12_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
  1614. _Out_ UINT MaxGPUVirtualAddressBitsPerResource;
  1615. _Out_ BOOL StandardSwizzle64KBSupported;
  1616. _Out_ D3D12_CROSS_NODE_SHARING_TIER CrossNodeSharingTier;
  1617. _Out_ BOOL CrossAdapterRowMajorTextureSupported;
  1618. _Out_ BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation;
  1619. _Out_ D3D12_RESOURCE_HEAP_TIER ResourceHeapTier;
  1620. } D3D12_FEATURE_DATA_D3D12_OPTIONS;
  1621. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS1
  1622. {
  1623. _Out_ BOOL WaveOps;
  1624. _Out_ UINT WaveLaneCountMin;
  1625. _Out_ UINT WaveLaneCountMax;
  1626. _Out_ UINT TotalLaneCount;
  1627. _Out_ BOOL ExpandedComputeResourceStates;
  1628. _Out_ BOOL Int64ShaderOps;
  1629. } D3D12_FEATURE_DATA_D3D12_OPTIONS1;
  1630. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS2
  1631. {
  1632. _Out_ BOOL DepthBoundsTestSupported;
  1633. _Out_ D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER ProgrammableSamplePositionsTier;
  1634. } D3D12_FEATURE_DATA_D3D12_OPTIONS2;
  1635. typedef
  1636. enum D3D_ROOT_SIGNATURE_VERSION
  1637. {
  1638. D3D_ROOT_SIGNATURE_VERSION_1 = 0x1,
  1639. D3D_ROOT_SIGNATURE_VERSION_1_0 = 0x1,
  1640. D3D_ROOT_SIGNATURE_VERSION_1_1 = 0x2,
  1641. D3D_ROOT_SIGNATURE_VERSION_1_2 = 0x3
  1642. } D3D_ROOT_SIGNATURE_VERSION;
  1643. typedef struct D3D12_FEATURE_DATA_ROOT_SIGNATURE
  1644. {
  1645. _Inout_ D3D_ROOT_SIGNATURE_VERSION HighestVersion;
  1646. } D3D12_FEATURE_DATA_ROOT_SIGNATURE;
  1647. typedef struct D3D12_FEATURE_DATA_ARCHITECTURE
  1648. {
  1649. _In_ UINT NodeIndex;
  1650. _Out_ BOOL TileBasedRenderer;
  1651. _Out_ BOOL UMA;
  1652. _Out_ BOOL CacheCoherentUMA;
  1653. } D3D12_FEATURE_DATA_ARCHITECTURE;
  1654. typedef struct D3D12_FEATURE_DATA_ARCHITECTURE1
  1655. {
  1656. _In_ UINT NodeIndex;
  1657. _Out_ BOOL TileBasedRenderer;
  1658. _Out_ BOOL UMA;
  1659. _Out_ BOOL CacheCoherentUMA;
  1660. _Out_ BOOL IsolatedMMU;
  1661. } D3D12_FEATURE_DATA_ARCHITECTURE1;
  1662. typedef struct D3D12_FEATURE_DATA_FEATURE_LEVELS
  1663. {
  1664. _In_ UINT NumFeatureLevels;
  1665. _In_reads_(NumFeatureLevels) const D3D_FEATURE_LEVEL *pFeatureLevelsRequested;
  1666. _Out_ D3D_FEATURE_LEVEL MaxSupportedFeatureLevel;
  1667. } D3D12_FEATURE_DATA_FEATURE_LEVELS;
  1668. typedef
  1669. enum D3D_SHADER_MODEL
  1670. {
  1671. D3D_SHADER_MODEL_5_1 = 0x51,
  1672. D3D_SHADER_MODEL_6_0 = 0x60,
  1673. D3D_SHADER_MODEL_6_1 = 0x61,
  1674. D3D_SHADER_MODEL_6_2 = 0x62,
  1675. D3D_SHADER_MODEL_6_3 = 0x63,
  1676. D3D_SHADER_MODEL_6_4 = 0x64,
  1677. D3D_SHADER_MODEL_6_5 = 0x65,
  1678. D3D_SHADER_MODEL_6_6 = 0x66,
  1679. D3D_SHADER_MODEL_6_7 = 0x67,
  1680. D3D_SHADER_MODEL_6_8 = 0x68,
  1681. D3D_HIGHEST_SHADER_MODEL = D3D_SHADER_MODEL_6_8
  1682. } D3D_SHADER_MODEL;
  1683. typedef struct D3D12_FEATURE_DATA_SHADER_MODEL
  1684. {
  1685. _Inout_ D3D_SHADER_MODEL HighestShaderModel;
  1686. } D3D12_FEATURE_DATA_SHADER_MODEL;
  1687. typedef struct D3D12_FEATURE_DATA_FORMAT_SUPPORT
  1688. {
  1689. _In_ DXGI_FORMAT Format;
  1690. _Out_ D3D12_FORMAT_SUPPORT1 Support1;
  1691. _Out_ D3D12_FORMAT_SUPPORT2 Support2;
  1692. } D3D12_FEATURE_DATA_FORMAT_SUPPORT;
  1693. typedef struct D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS
  1694. {
  1695. _In_ DXGI_FORMAT Format;
  1696. _In_ UINT SampleCount;
  1697. _In_ D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS Flags;
  1698. _Out_ UINT NumQualityLevels;
  1699. } D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS;
  1700. typedef struct D3D12_FEATURE_DATA_FORMAT_INFO
  1701. {
  1702. DXGI_FORMAT Format;
  1703. UINT8 PlaneCount;
  1704. } D3D12_FEATURE_DATA_FORMAT_INFO;
  1705. typedef struct D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT
  1706. {
  1707. UINT MaxGPUVirtualAddressBitsPerResource;
  1708. UINT MaxGPUVirtualAddressBitsPerProcess;
  1709. } D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
  1710. typedef
  1711. enum D3D12_SHADER_CACHE_SUPPORT_FLAGS
  1712. {
  1713. D3D12_SHADER_CACHE_SUPPORT_NONE = 0,
  1714. D3D12_SHADER_CACHE_SUPPORT_SINGLE_PSO = 0x1,
  1715. D3D12_SHADER_CACHE_SUPPORT_LIBRARY = 0x2,
  1716. D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x4,
  1717. D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x8,
  1718. D3D12_SHADER_CACHE_SUPPORT_DRIVER_MANAGED_CACHE = 0x10,
  1719. D3D12_SHADER_CACHE_SUPPORT_SHADER_CONTROL_CLEAR = 0x20,
  1720. D3D12_SHADER_CACHE_SUPPORT_SHADER_SESSION_DELETE = 0x40
  1721. } D3D12_SHADER_CACHE_SUPPORT_FLAGS;
  1722. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_SUPPORT_FLAGS );
  1723. typedef struct D3D12_FEATURE_DATA_SHADER_CACHE
  1724. {
  1725. _Out_ D3D12_SHADER_CACHE_SUPPORT_FLAGS SupportFlags;
  1726. } D3D12_FEATURE_DATA_SHADER_CACHE;
  1727. typedef struct D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY
  1728. {
  1729. _In_ D3D12_COMMAND_LIST_TYPE CommandListType;
  1730. _In_ UINT Priority;
  1731. _Out_ BOOL PriorityForTypeIsSupported;
  1732. } D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY;
  1733. typedef
  1734. enum D3D12_COMMAND_LIST_SUPPORT_FLAGS
  1735. {
  1736. D3D12_COMMAND_LIST_SUPPORT_FLAG_NONE = 0,
  1737. D3D12_COMMAND_LIST_SUPPORT_FLAG_DIRECT = ( 1 << D3D12_COMMAND_LIST_TYPE_DIRECT ) ,
  1738. D3D12_COMMAND_LIST_SUPPORT_FLAG_BUNDLE = ( 1 << D3D12_COMMAND_LIST_TYPE_BUNDLE ) ,
  1739. D3D12_COMMAND_LIST_SUPPORT_FLAG_COMPUTE = ( 1 << D3D12_COMMAND_LIST_TYPE_COMPUTE ) ,
  1740. D3D12_COMMAND_LIST_SUPPORT_FLAG_COPY = ( 1 << D3D12_COMMAND_LIST_TYPE_COPY ) ,
  1741. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_DECODE = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE ) ,
  1742. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_PROCESS = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS ) ,
  1743. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_ENCODE = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE )
  1744. } D3D12_COMMAND_LIST_SUPPORT_FLAGS;
  1745. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_LIST_SUPPORT_FLAGS );
  1746. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS3
  1747. {
  1748. _Out_ BOOL CopyQueueTimestampQueriesSupported;
  1749. _Out_ BOOL CastingFullyTypedFormatSupported;
  1750. _Out_ D3D12_COMMAND_LIST_SUPPORT_FLAGS WriteBufferImmediateSupportFlags;
  1751. _Out_ D3D12_VIEW_INSTANCING_TIER ViewInstancingTier;
  1752. _Out_ BOOL BarycentricsSupported;
  1753. } D3D12_FEATURE_DATA_D3D12_OPTIONS3;
  1754. typedef struct D3D12_FEATURE_DATA_EXISTING_HEAPS
  1755. {
  1756. _Out_ BOOL Supported;
  1757. } D3D12_FEATURE_DATA_EXISTING_HEAPS;
  1758. typedef
  1759. enum D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER
  1760. {
  1761. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 = 0,
  1762. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 = ( D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 + 1 ) ,
  1763. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_2 = ( D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 + 1 )
  1764. } D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER;
  1765. typedef struct D3D12_FEATURE_DATA_DISPLAYABLE
  1766. {
  1767. _Out_ BOOL DisplayableTexture;
  1768. _Out_ D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier;
  1769. } D3D12_FEATURE_DATA_DISPLAYABLE;
  1770. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS4
  1771. {
  1772. _Out_ BOOL MSAA64KBAlignedTextureSupported;
  1773. _Out_ D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier;
  1774. _Out_ BOOL Native16BitShaderOpsSupported;
  1775. } D3D12_FEATURE_DATA_D3D12_OPTIONS4;
  1776. typedef
  1777. enum D3D12_HEAP_SERIALIZATION_TIER
  1778. {
  1779. D3D12_HEAP_SERIALIZATION_TIER_0 = 0,
  1780. D3D12_HEAP_SERIALIZATION_TIER_10 = 10
  1781. } D3D12_HEAP_SERIALIZATION_TIER;
  1782. typedef struct D3D12_FEATURE_DATA_SERIALIZATION
  1783. {
  1784. _In_ UINT NodeIndex;
  1785. _Out_ D3D12_HEAP_SERIALIZATION_TIER HeapSerializationTier;
  1786. } D3D12_FEATURE_DATA_SERIALIZATION;
  1787. typedef struct D3D12_FEATURE_DATA_CROSS_NODE
  1788. {
  1789. D3D12_CROSS_NODE_SHARING_TIER SharingTier;
  1790. BOOL AtomicShaderInstructions;
  1791. } D3D12_FEATURE_DATA_CROSS_NODE;
  1792. typedef
  1793. enum D3D12_RENDER_PASS_TIER
  1794. {
  1795. D3D12_RENDER_PASS_TIER_0 = 0,
  1796. D3D12_RENDER_PASS_TIER_1 = 1,
  1797. D3D12_RENDER_PASS_TIER_2 = 2
  1798. } D3D12_RENDER_PASS_TIER;
  1799. typedef
  1800. enum D3D12_RAYTRACING_TIER
  1801. {
  1802. D3D12_RAYTRACING_TIER_NOT_SUPPORTED = 0,
  1803. D3D12_RAYTRACING_TIER_1_0 = 10,
  1804. D3D12_RAYTRACING_TIER_1_1 = 11
  1805. } D3D12_RAYTRACING_TIER;
  1806. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS5
  1807. {
  1808. _Out_ BOOL SRVOnlyTiledResourceTier3;
  1809. _Out_ D3D12_RENDER_PASS_TIER RenderPassesTier;
  1810. _Out_ D3D12_RAYTRACING_TIER RaytracingTier;
  1811. } D3D12_FEATURE_DATA_D3D12_OPTIONS5;
  1812. typedef
  1813. enum D3D12_VARIABLE_SHADING_RATE_TIER
  1814. {
  1815. D3D12_VARIABLE_SHADING_RATE_TIER_NOT_SUPPORTED = 0,
  1816. D3D12_VARIABLE_SHADING_RATE_TIER_1 = 1,
  1817. D3D12_VARIABLE_SHADING_RATE_TIER_2 = 2
  1818. } D3D12_VARIABLE_SHADING_RATE_TIER;
  1819. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS6
  1820. {
  1821. _Out_ BOOL AdditionalShadingRatesSupported;
  1822. _Out_ BOOL PerPrimitiveShadingRateSupportedWithViewportIndexing;
  1823. _Out_ D3D12_VARIABLE_SHADING_RATE_TIER VariableShadingRateTier;
  1824. _Out_ UINT ShadingRateImageTileSize;
  1825. _Out_ BOOL BackgroundProcessingSupported;
  1826. } D3D12_FEATURE_DATA_D3D12_OPTIONS6;
  1827. typedef
  1828. enum D3D12_MESH_SHADER_TIER
  1829. {
  1830. D3D12_MESH_SHADER_TIER_NOT_SUPPORTED = 0,
  1831. D3D12_MESH_SHADER_TIER_1 = 10
  1832. } D3D12_MESH_SHADER_TIER;
  1833. typedef
  1834. enum D3D12_SAMPLER_FEEDBACK_TIER
  1835. {
  1836. D3D12_SAMPLER_FEEDBACK_TIER_NOT_SUPPORTED = 0,
  1837. D3D12_SAMPLER_FEEDBACK_TIER_0_9 = 90,
  1838. D3D12_SAMPLER_FEEDBACK_TIER_1_0 = 100
  1839. } D3D12_SAMPLER_FEEDBACK_TIER;
  1840. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS7
  1841. {
  1842. _Out_ D3D12_MESH_SHADER_TIER MeshShaderTier;
  1843. _Out_ D3D12_SAMPLER_FEEDBACK_TIER SamplerFeedbackTier;
  1844. } D3D12_FEATURE_DATA_D3D12_OPTIONS7;
  1845. typedef struct D3D12_FEATURE_DATA_QUERY_META_COMMAND
  1846. {
  1847. _In_ GUID CommandId;
  1848. _In_ UINT NodeMask;
  1849. _Field_size_bytes_full_opt_( QueryInputDataSizeInBytes ) const void *pQueryInputData;
  1850. _In_ SIZE_T QueryInputDataSizeInBytes;
  1851. _Field_size_bytes_full_( QueryOutputDataSizeInBytes ) void *pQueryOutputData;
  1852. _In_ SIZE_T QueryOutputDataSizeInBytes;
  1853. } D3D12_FEATURE_DATA_QUERY_META_COMMAND;
  1854. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS8
  1855. {
  1856. _Out_ BOOL UnalignedBlockTexturesSupported;
  1857. } D3D12_FEATURE_DATA_D3D12_OPTIONS8;
  1858. typedef
  1859. enum D3D12_WAVE_MMA_TIER
  1860. {
  1861. D3D12_WAVE_MMA_TIER_NOT_SUPPORTED = 0,
  1862. D3D12_WAVE_MMA_TIER_1_0 = 10
  1863. } D3D12_WAVE_MMA_TIER;
  1864. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS9
  1865. {
  1866. _Out_ BOOL MeshShaderPipelineStatsSupported;
  1867. _Out_ BOOL MeshShaderSupportsFullRangeRenderTargetArrayIndex;
  1868. _Out_ BOOL AtomicInt64OnTypedResourceSupported;
  1869. _Out_ BOOL AtomicInt64OnGroupSharedSupported;
  1870. _Out_ BOOL DerivativesInMeshAndAmplificationShadersSupported;
  1871. _Out_ D3D12_WAVE_MMA_TIER WaveMMATier;
  1872. } D3D12_FEATURE_DATA_D3D12_OPTIONS9;
  1873. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS10
  1874. {
  1875. _Out_ BOOL VariableRateShadingSumCombinerSupported;
  1876. _Out_ BOOL MeshShaderPerPrimitiveShadingRateSupported;
  1877. } D3D12_FEATURE_DATA_D3D12_OPTIONS10;
  1878. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS11
  1879. {
  1880. _Out_ BOOL AtomicInt64OnDescriptorHeapResourceSupported;
  1881. } D3D12_FEATURE_DATA_D3D12_OPTIONS11;
  1882. typedef
  1883. enum D3D12_TRI_STATE
  1884. {
  1885. D3D12_TRI_STATE_UNKNOWN = -1,
  1886. D3D12_TRI_STATE_FALSE = 0,
  1887. D3D12_TRI_STATE_TRUE = 1
  1888. } D3D12_TRI_STATE;
  1889. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS12
  1890. {
  1891. _Out_ D3D12_TRI_STATE MSPrimitivesPipelineStatisticIncludesCulledPrimitives;
  1892. _Out_ BOOL EnhancedBarriersSupported;
  1893. _Out_ BOOL RelaxedFormatCastingSupported;
  1894. } D3D12_FEATURE_DATA_D3D12_OPTIONS12;
  1895. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS13
  1896. {
  1897. _Out_ BOOL UnrestrictedBufferTextureCopyPitchSupported;
  1898. _Out_ BOOL UnrestrictedVertexElementAlignmentSupported;
  1899. _Out_ BOOL InvertedViewportHeightFlipsYSupported;
  1900. _Out_ BOOL InvertedViewportDepthFlipsZSupported;
  1901. _Out_ BOOL TextureCopyBetweenDimensionsSupported;
  1902. _Out_ BOOL AlphaBlendFactorSupported;
  1903. } D3D12_FEATURE_DATA_D3D12_OPTIONS13;
  1904. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS14
  1905. {
  1906. _Out_ BOOL AdvancedTextureOpsSupported;
  1907. _Out_ BOOL WriteableMSAATexturesSupported;
  1908. _Out_ BOOL IndependentFrontAndBackStencilRefMaskSupported;
  1909. } D3D12_FEATURE_DATA_D3D12_OPTIONS14;
  1910. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS15
  1911. {
  1912. _Out_ BOOL TriangleFanSupported;
  1913. _Out_ BOOL DynamicIndexBufferStripCutSupported;
  1914. } D3D12_FEATURE_DATA_D3D12_OPTIONS15;
  1915. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS16
  1916. {
  1917. _Out_ BOOL DynamicDepthBiasSupported;
  1918. _Out_ BOOL GPUUploadHeapSupported;
  1919. } D3D12_FEATURE_DATA_D3D12_OPTIONS16;
  1920. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS17
  1921. {
  1922. _Out_ BOOL NonNormalizedCoordinateSamplersSupported;
  1923. _Out_ BOOL ManualWriteTrackingResourceSupported;
  1924. } D3D12_FEATURE_DATA_D3D12_OPTIONS17;
  1925. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS18
  1926. {
  1927. _Out_ BOOL RenderPassesValid;
  1928. } D3D12_FEATURE_DATA_D3D12_OPTIONS18;
  1929. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS19
  1930. {
  1931. BOOL MismatchingOutputDimensionsSupported;
  1932. UINT SupportedSampleCountsWithNoOutputs;
  1933. BOOL PointSamplingAddressesNeverRoundUp;
  1934. BOOL RasterizerDesc2Supported;
  1935. BOOL NarrowQuadrilateralLinesSupported;
  1936. BOOL AnisoFilterWithPointMipSupported;
  1937. UINT MaxSamplerDescriptorHeapSize;
  1938. UINT MaxSamplerDescriptorHeapSizeWithStaticSamplers;
  1939. UINT MaxViewDescriptorHeapSize;
  1940. _Out_ BOOL ComputeOnlyCustomHeapSupported;
  1941. } D3D12_FEATURE_DATA_D3D12_OPTIONS19;
  1942. typedef
  1943. enum D3D12_RECREATE_AT_TIER
  1944. {
  1945. D3D12_RECREATE_AT_TIER_NOT_SUPPORTED = 0,
  1946. D3D12_RECREATE_AT_TIER_1 = 1
  1947. } D3D12_RECREATE_AT_TIER;
  1948. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS20
  1949. {
  1950. _Out_ BOOL ComputeOnlyWriteWatchSupported;
  1951. D3D12_RECREATE_AT_TIER RecreateAtTier;
  1952. } D3D12_FEATURE_DATA_D3D12_OPTIONS20;
  1953. typedef struct D3D12_FEATURE_DATA_PREDICATION
  1954. {
  1955. _Out_ BOOL Supported;
  1956. } D3D12_FEATURE_DATA_PREDICATION;
  1957. typedef struct D3D12_FEATURE_DATA_HARDWARE_COPY
  1958. {
  1959. _Out_ BOOL Supported;
  1960. } D3D12_FEATURE_DATA_HARDWARE_COPY;
  1961. typedef struct D3D12_RESOURCE_ALLOCATION_INFO
  1962. {
  1963. UINT64 SizeInBytes;
  1964. UINT64 Alignment;
  1965. } D3D12_RESOURCE_ALLOCATION_INFO;
  1966. typedef struct D3D12_RESOURCE_ALLOCATION_INFO1
  1967. {
  1968. UINT64 Offset;
  1969. UINT64 Alignment;
  1970. UINT64 SizeInBytes;
  1971. } D3D12_RESOURCE_ALLOCATION_INFO1;
  1972. typedef
  1973. enum D3D12_HEAP_TYPE
  1974. {
  1975. D3D12_HEAP_TYPE_DEFAULT = 1,
  1976. D3D12_HEAP_TYPE_UPLOAD = 2,
  1977. D3D12_HEAP_TYPE_READBACK = 3,
  1978. D3D12_HEAP_TYPE_CUSTOM = 4,
  1979. D3D12_HEAP_TYPE_GPU_UPLOAD = 5
  1980. } D3D12_HEAP_TYPE;
  1981. typedef
  1982. enum D3D12_CPU_PAGE_PROPERTY
  1983. {
  1984. D3D12_CPU_PAGE_PROPERTY_UNKNOWN = 0,
  1985. D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE = 1,
  1986. D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE = 2,
  1987. D3D12_CPU_PAGE_PROPERTY_WRITE_BACK = 3
  1988. } D3D12_CPU_PAGE_PROPERTY;
  1989. typedef
  1990. enum D3D12_MEMORY_POOL
  1991. {
  1992. D3D12_MEMORY_POOL_UNKNOWN = 0,
  1993. D3D12_MEMORY_POOL_L0 = 1,
  1994. D3D12_MEMORY_POOL_L1 = 2
  1995. } D3D12_MEMORY_POOL;
  1996. typedef struct D3D12_HEAP_PROPERTIES
  1997. {
  1998. D3D12_HEAP_TYPE Type;
  1999. D3D12_CPU_PAGE_PROPERTY CPUPageProperty;
  2000. D3D12_MEMORY_POOL MemoryPoolPreference;
  2001. UINT CreationNodeMask;
  2002. UINT VisibleNodeMask;
  2003. } D3D12_HEAP_PROPERTIES;
  2004. typedef
  2005. enum D3D12_HEAP_FLAGS
  2006. {
  2007. D3D12_HEAP_FLAG_NONE = 0,
  2008. D3D12_HEAP_FLAG_SHARED = 0x1,
  2009. D3D12_HEAP_FLAG_DENY_BUFFERS = 0x4,
  2010. D3D12_HEAP_FLAG_ALLOW_DISPLAY = 0x8,
  2011. D3D12_HEAP_FLAG_SHARED_CROSS_ADAPTER = 0x20,
  2012. D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES = 0x40,
  2013. D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES = 0x80,
  2014. D3D12_HEAP_FLAG_HARDWARE_PROTECTED = 0x100,
  2015. D3D12_HEAP_FLAG_ALLOW_WRITE_WATCH = 0x200,
  2016. D3D12_HEAP_FLAG_ALLOW_SHADER_ATOMICS = 0x400,
  2017. D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT = 0x800,
  2018. D3D12_HEAP_FLAG_CREATE_NOT_ZEROED = 0x1000,
  2019. D3D12_HEAP_FLAG_TOOLS_USE_MANUAL_WRITE_TRACKING = 0x2000,
  2020. D3D12_HEAP_FLAG_ALLOW_ALL_BUFFERS_AND_TEXTURES = 0,
  2021. D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS = 0xc0,
  2022. D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES = 0x44,
  2023. D3D12_HEAP_FLAG_ALLOW_ONLY_RT_DS_TEXTURES = 0x84
  2024. } D3D12_HEAP_FLAGS;
  2025. DEFINE_ENUM_FLAG_OPERATORS( D3D12_HEAP_FLAGS );
  2026. typedef struct D3D12_HEAP_DESC
  2027. {
  2028. UINT64 SizeInBytes;
  2029. D3D12_HEAP_PROPERTIES Properties;
  2030. UINT64 Alignment;
  2031. D3D12_HEAP_FLAGS Flags;
  2032. } D3D12_HEAP_DESC;
  2033. typedef
  2034. enum D3D12_RESOURCE_DIMENSION
  2035. {
  2036. D3D12_RESOURCE_DIMENSION_UNKNOWN = 0,
  2037. D3D12_RESOURCE_DIMENSION_BUFFER = 1,
  2038. D3D12_RESOURCE_DIMENSION_TEXTURE1D = 2,
  2039. D3D12_RESOURCE_DIMENSION_TEXTURE2D = 3,
  2040. D3D12_RESOURCE_DIMENSION_TEXTURE3D = 4
  2041. } D3D12_RESOURCE_DIMENSION;
  2042. typedef struct D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO
  2043. {
  2044. _In_ DXGI_FORMAT Format;
  2045. _In_ D3D12_RESOURCE_DIMENSION Dimension;
  2046. _In_ D3D12_HEAP_PROPERTIES DestHeapProperties;
  2047. _Out_ BOOL Supported;
  2048. } D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO;
  2049. typedef
  2050. enum D3D12_TEXTURE_LAYOUT
  2051. {
  2052. D3D12_TEXTURE_LAYOUT_UNKNOWN = 0,
  2053. D3D12_TEXTURE_LAYOUT_ROW_MAJOR = 1,
  2054. D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE = 2,
  2055. D3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE = 3
  2056. } D3D12_TEXTURE_LAYOUT;
  2057. typedef
  2058. enum D3D12_RESOURCE_FLAGS
  2059. {
  2060. D3D12_RESOURCE_FLAG_NONE = 0,
  2061. D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET = 0x1,
  2062. D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL = 0x2,
  2063. D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS = 0x4,
  2064. D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE = 0x8,
  2065. D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER = 0x10,
  2066. D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS = 0x20,
  2067. D3D12_RESOURCE_FLAG_VIDEO_DECODE_REFERENCE_ONLY = 0x40,
  2068. D3D12_RESOURCE_FLAG_VIDEO_ENCODE_REFERENCE_ONLY = 0x80,
  2069. D3D12_RESOURCE_FLAG_RAYTRACING_ACCELERATION_STRUCTURE = 0x100
  2070. } D3D12_RESOURCE_FLAGS;
  2071. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_FLAGS );
  2072. typedef struct D3D12_MIP_REGION
  2073. {
  2074. UINT Width;
  2075. UINT Height;
  2076. UINT Depth;
  2077. } D3D12_MIP_REGION;
  2078. typedef struct D3D12_RESOURCE_DESC
  2079. {
  2080. D3D12_RESOURCE_DIMENSION Dimension;
  2081. UINT64 Alignment;
  2082. UINT64 Width;
  2083. UINT Height;
  2084. UINT16 DepthOrArraySize;
  2085. UINT16 MipLevels;
  2086. DXGI_FORMAT Format;
  2087. DXGI_SAMPLE_DESC SampleDesc;
  2088. D3D12_TEXTURE_LAYOUT Layout;
  2089. D3D12_RESOURCE_FLAGS Flags;
  2090. } D3D12_RESOURCE_DESC;
  2091. typedef struct D3D12_RESOURCE_DESC1
  2092. {
  2093. D3D12_RESOURCE_DIMENSION Dimension;
  2094. UINT64 Alignment;
  2095. UINT64 Width;
  2096. UINT Height;
  2097. UINT16 DepthOrArraySize;
  2098. UINT16 MipLevels;
  2099. DXGI_FORMAT Format;
  2100. DXGI_SAMPLE_DESC SampleDesc;
  2101. D3D12_TEXTURE_LAYOUT Layout;
  2102. D3D12_RESOURCE_FLAGS Flags;
  2103. D3D12_MIP_REGION SamplerFeedbackMipRegion;
  2104. } D3D12_RESOURCE_DESC1;
  2105. typedef struct D3D12_DEPTH_STENCIL_VALUE
  2106. {
  2107. FLOAT Depth;
  2108. UINT8 Stencil;
  2109. } D3D12_DEPTH_STENCIL_VALUE;
  2110. typedef struct D3D12_CLEAR_VALUE
  2111. {
  2112. DXGI_FORMAT Format;
  2113. union
  2114. {
  2115. FLOAT Color[ 4 ];
  2116. D3D12_DEPTH_STENCIL_VALUE DepthStencil;
  2117. } ;
  2118. } D3D12_CLEAR_VALUE;
  2119. typedef struct D3D12_RANGE
  2120. {
  2121. SIZE_T Begin;
  2122. SIZE_T End;
  2123. } D3D12_RANGE;
  2124. typedef struct D3D12_RANGE_UINT64
  2125. {
  2126. UINT64 Begin;
  2127. UINT64 End;
  2128. } D3D12_RANGE_UINT64;
  2129. typedef struct D3D12_SUBRESOURCE_RANGE_UINT64
  2130. {
  2131. UINT Subresource;
  2132. D3D12_RANGE_UINT64 Range;
  2133. } D3D12_SUBRESOURCE_RANGE_UINT64;
  2134. typedef struct D3D12_SUBRESOURCE_INFO
  2135. {
  2136. UINT64 Offset;
  2137. UINT RowPitch;
  2138. UINT DepthPitch;
  2139. } D3D12_SUBRESOURCE_INFO;
  2140. typedef struct D3D12_TILED_RESOURCE_COORDINATE
  2141. {
  2142. UINT X;
  2143. UINT Y;
  2144. UINT Z;
  2145. UINT Subresource;
  2146. } D3D12_TILED_RESOURCE_COORDINATE;
  2147. typedef struct D3D12_TILE_REGION_SIZE
  2148. {
  2149. UINT NumTiles;
  2150. BOOL UseBox;
  2151. UINT Width;
  2152. UINT16 Height;
  2153. UINT16 Depth;
  2154. } D3D12_TILE_REGION_SIZE;
  2155. typedef
  2156. enum D3D12_TILE_RANGE_FLAGS
  2157. {
  2158. D3D12_TILE_RANGE_FLAG_NONE = 0,
  2159. D3D12_TILE_RANGE_FLAG_NULL = 1,
  2160. D3D12_TILE_RANGE_FLAG_SKIP = 2,
  2161. D3D12_TILE_RANGE_FLAG_REUSE_SINGLE_TILE = 4
  2162. } D3D12_TILE_RANGE_FLAGS;
  2163. typedef struct D3D12_SUBRESOURCE_TILING
  2164. {
  2165. UINT WidthInTiles;
  2166. UINT16 HeightInTiles;
  2167. UINT16 DepthInTiles;
  2168. UINT StartTileIndexInOverallResource;
  2169. } D3D12_SUBRESOURCE_TILING;
  2170. typedef struct D3D12_TILE_SHAPE
  2171. {
  2172. UINT WidthInTexels;
  2173. UINT HeightInTexels;
  2174. UINT DepthInTexels;
  2175. } D3D12_TILE_SHAPE;
  2176. typedef struct D3D12_PACKED_MIP_INFO
  2177. {
  2178. UINT8 NumStandardMips;
  2179. UINT8 NumPackedMips;
  2180. UINT NumTilesForPackedMips;
  2181. UINT StartTileIndexInOverallResource;
  2182. } D3D12_PACKED_MIP_INFO;
  2183. typedef
  2184. enum D3D12_TILE_MAPPING_FLAGS
  2185. {
  2186. D3D12_TILE_MAPPING_FLAG_NONE = 0,
  2187. D3D12_TILE_MAPPING_FLAG_NO_HAZARD = 0x1
  2188. } D3D12_TILE_MAPPING_FLAGS;
  2189. DEFINE_ENUM_FLAG_OPERATORS( D3D12_TILE_MAPPING_FLAGS );
  2190. typedef
  2191. enum D3D12_TILE_COPY_FLAGS
  2192. {
  2193. D3D12_TILE_COPY_FLAG_NONE = 0,
  2194. D3D12_TILE_COPY_FLAG_NO_HAZARD = 0x1,
  2195. D3D12_TILE_COPY_FLAG_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2,
  2196. D3D12_TILE_COPY_FLAG_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4
  2197. } D3D12_TILE_COPY_FLAGS;
  2198. DEFINE_ENUM_FLAG_OPERATORS( D3D12_TILE_COPY_FLAGS );
  2199. typedef
  2200. enum D3D12_RESOURCE_STATES
  2201. {
  2202. D3D12_RESOURCE_STATE_COMMON = 0,
  2203. D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER = 0x1,
  2204. D3D12_RESOURCE_STATE_INDEX_BUFFER = 0x2,
  2205. D3D12_RESOURCE_STATE_RENDER_TARGET = 0x4,
  2206. D3D12_RESOURCE_STATE_UNORDERED_ACCESS = 0x8,
  2207. D3D12_RESOURCE_STATE_DEPTH_WRITE = 0x10,
  2208. D3D12_RESOURCE_STATE_DEPTH_READ = 0x20,
  2209. D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE = 0x40,
  2210. D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE = 0x80,
  2211. D3D12_RESOURCE_STATE_STREAM_OUT = 0x100,
  2212. D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT = 0x200,
  2213. D3D12_RESOURCE_STATE_COPY_DEST = 0x400,
  2214. D3D12_RESOURCE_STATE_COPY_SOURCE = 0x800,
  2215. D3D12_RESOURCE_STATE_RESOLVE_DEST = 0x1000,
  2216. D3D12_RESOURCE_STATE_RESOLVE_SOURCE = 0x2000,
  2217. D3D12_RESOURCE_STATE_RAYTRACING_ACCELERATION_STRUCTURE = 0x400000,
  2218. D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE = 0x1000000,
  2219. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_8000 = 0x8000,
  2220. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_4000 = 0x4000,
  2221. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_100000 = 0x100000,
  2222. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_40000000 = 0x40000000,
  2223. D3D12_RESOURCE_STATE_RESERVED_INTERNAL_80000000 = 0x80000000,
  2224. D3D12_RESOURCE_STATE_GENERIC_READ = ( ( ( ( ( 0x1 | 0x2 ) | 0x40 ) | 0x80 ) | 0x200 ) | 0x800 ) ,
  2225. D3D12_RESOURCE_STATE_ALL_SHADER_RESOURCE = ( 0x40 | 0x80 ) ,
  2226. D3D12_RESOURCE_STATE_PRESENT = 0,
  2227. D3D12_RESOURCE_STATE_PREDICATION = 0x200,
  2228. D3D12_RESOURCE_STATE_VIDEO_DECODE_READ = 0x10000,
  2229. D3D12_RESOURCE_STATE_VIDEO_DECODE_WRITE = 0x20000,
  2230. D3D12_RESOURCE_STATE_VIDEO_PROCESS_READ = 0x40000,
  2231. D3D12_RESOURCE_STATE_VIDEO_PROCESS_WRITE = 0x80000,
  2232. D3D12_RESOURCE_STATE_VIDEO_ENCODE_READ = 0x200000,
  2233. D3D12_RESOURCE_STATE_VIDEO_ENCODE_WRITE = 0x800000
  2234. } D3D12_RESOURCE_STATES;
  2235. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_STATES );
  2236. typedef
  2237. enum D3D12_RESOURCE_BARRIER_TYPE
  2238. {
  2239. D3D12_RESOURCE_BARRIER_TYPE_TRANSITION = 0,
  2240. D3D12_RESOURCE_BARRIER_TYPE_ALIASING = ( D3D12_RESOURCE_BARRIER_TYPE_TRANSITION + 1 ) ,
  2241. D3D12_RESOURCE_BARRIER_TYPE_UAV = ( D3D12_RESOURCE_BARRIER_TYPE_ALIASING + 1 )
  2242. } D3D12_RESOURCE_BARRIER_TYPE;
  2243. typedef struct D3D12_RESOURCE_TRANSITION_BARRIER
  2244. {
  2245. ID3D12Resource *pResource;
  2246. UINT Subresource;
  2247. D3D12_RESOURCE_STATES StateBefore;
  2248. D3D12_RESOURCE_STATES StateAfter;
  2249. } D3D12_RESOURCE_TRANSITION_BARRIER;
  2250. typedef struct D3D12_RESOURCE_ALIASING_BARRIER
  2251. {
  2252. ID3D12Resource *pResourceBefore;
  2253. ID3D12Resource *pResourceAfter;
  2254. } D3D12_RESOURCE_ALIASING_BARRIER;
  2255. typedef struct D3D12_RESOURCE_UAV_BARRIER
  2256. {
  2257. ID3D12Resource *pResource;
  2258. } D3D12_RESOURCE_UAV_BARRIER;
  2259. typedef
  2260. enum D3D12_RESOURCE_BARRIER_FLAGS
  2261. {
  2262. D3D12_RESOURCE_BARRIER_FLAG_NONE = 0,
  2263. D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY = 0x1,
  2264. D3D12_RESOURCE_BARRIER_FLAG_END_ONLY = 0x2
  2265. } D3D12_RESOURCE_BARRIER_FLAGS;
  2266. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_BARRIER_FLAGS );
  2267. typedef struct D3D12_RESOURCE_BARRIER
  2268. {
  2269. D3D12_RESOURCE_BARRIER_TYPE Type;
  2270. D3D12_RESOURCE_BARRIER_FLAGS Flags;
  2271. union
  2272. {
  2273. D3D12_RESOURCE_TRANSITION_BARRIER Transition;
  2274. D3D12_RESOURCE_ALIASING_BARRIER Aliasing;
  2275. D3D12_RESOURCE_UAV_BARRIER UAV;
  2276. } ;
  2277. } D3D12_RESOURCE_BARRIER;
  2278. typedef struct D3D12_SUBRESOURCE_FOOTPRINT
  2279. {
  2280. DXGI_FORMAT Format;
  2281. UINT Width;
  2282. UINT Height;
  2283. UINT Depth;
  2284. UINT RowPitch;
  2285. } D3D12_SUBRESOURCE_FOOTPRINT;
  2286. typedef struct D3D12_PLACED_SUBRESOURCE_FOOTPRINT
  2287. {
  2288. UINT64 Offset;
  2289. D3D12_SUBRESOURCE_FOOTPRINT Footprint;
  2290. } D3D12_PLACED_SUBRESOURCE_FOOTPRINT;
  2291. typedef
  2292. enum D3D12_TEXTURE_COPY_TYPE
  2293. {
  2294. D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX = 0,
  2295. D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT = 1
  2296. } D3D12_TEXTURE_COPY_TYPE;
  2297. typedef struct D3D12_TEXTURE_COPY_LOCATION
  2298. {
  2299. ID3D12Resource *pResource;
  2300. D3D12_TEXTURE_COPY_TYPE Type;
  2301. union
  2302. {
  2303. D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint;
  2304. UINT SubresourceIndex;
  2305. } ;
  2306. } D3D12_TEXTURE_COPY_LOCATION;
  2307. typedef
  2308. enum D3D12_RESOLVE_MODE
  2309. {
  2310. D3D12_RESOLVE_MODE_DECOMPRESS = 0,
  2311. D3D12_RESOLVE_MODE_MIN = 1,
  2312. D3D12_RESOLVE_MODE_MAX = 2,
  2313. D3D12_RESOLVE_MODE_AVERAGE = 3,
  2314. D3D12_RESOLVE_MODE_ENCODE_SAMPLER_FEEDBACK = 4,
  2315. D3D12_RESOLVE_MODE_DECODE_SAMPLER_FEEDBACK = 5
  2316. } D3D12_RESOLVE_MODE;
  2317. typedef struct D3D12_SAMPLE_POSITION
  2318. {
  2319. INT8 X;
  2320. INT8 Y;
  2321. } D3D12_SAMPLE_POSITION;
  2322. typedef struct D3D12_VIEW_INSTANCE_LOCATION
  2323. {
  2324. UINT ViewportArrayIndex;
  2325. UINT RenderTargetArrayIndex;
  2326. } D3D12_VIEW_INSTANCE_LOCATION;
  2327. typedef
  2328. enum D3D12_VIEW_INSTANCING_FLAGS
  2329. {
  2330. D3D12_VIEW_INSTANCING_FLAG_NONE = 0,
  2331. D3D12_VIEW_INSTANCING_FLAG_ENABLE_VIEW_INSTANCE_MASKING = 0x1
  2332. } D3D12_VIEW_INSTANCING_FLAGS;
  2333. DEFINE_ENUM_FLAG_OPERATORS( D3D12_VIEW_INSTANCING_FLAGS );
  2334. typedef struct D3D12_VIEW_INSTANCING_DESC
  2335. {
  2336. UINT ViewInstanceCount;
  2337. _Field_size_full_(ViewInstanceCount) const D3D12_VIEW_INSTANCE_LOCATION *pViewInstanceLocations;
  2338. D3D12_VIEW_INSTANCING_FLAGS Flags;
  2339. } D3D12_VIEW_INSTANCING_DESC;
  2340. typedef
  2341. enum D3D12_SHADER_COMPONENT_MAPPING
  2342. {
  2343. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_0 = 0,
  2344. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_1 = 1,
  2345. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_2 = 2,
  2346. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_3 = 3,
  2347. D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_0 = 4,
  2348. D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_1 = 5
  2349. } D3D12_SHADER_COMPONENT_MAPPING;
  2350. #define D3D12_SHADER_COMPONENT_MAPPING_MASK 0x7
  2351. #define D3D12_SHADER_COMPONENT_MAPPING_SHIFT 3
  2352. #define D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES (1<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*4))
  2353. #define D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(Src0,Src1,Src2,Src3) ((((Src0)&D3D12_SHADER_COMPONENT_MAPPING_MASK)| \
  2354. (((Src1)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<<D3D12_SHADER_COMPONENT_MAPPING_SHIFT)| \
  2355. (((Src2)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*2))| \
  2356. (((Src3)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*3))| \
  2357. D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES))
  2358. #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))
  2359. #define D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(0,1,2,3)
  2360. typedef
  2361. enum D3D12_BUFFER_SRV_FLAGS
  2362. {
  2363. D3D12_BUFFER_SRV_FLAG_NONE = 0,
  2364. D3D12_BUFFER_SRV_FLAG_RAW = 0x1
  2365. } D3D12_BUFFER_SRV_FLAGS;
  2366. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BUFFER_SRV_FLAGS );
  2367. typedef struct D3D12_BUFFER_SRV
  2368. {
  2369. UINT64 FirstElement;
  2370. UINT NumElements;
  2371. UINT StructureByteStride;
  2372. D3D12_BUFFER_SRV_FLAGS Flags;
  2373. } D3D12_BUFFER_SRV;
  2374. typedef struct D3D12_TEX1D_SRV
  2375. {
  2376. UINT MostDetailedMip;
  2377. UINT MipLevels;
  2378. FLOAT ResourceMinLODClamp;
  2379. } D3D12_TEX1D_SRV;
  2380. typedef struct D3D12_TEX1D_ARRAY_SRV
  2381. {
  2382. UINT MostDetailedMip;
  2383. UINT MipLevels;
  2384. UINT FirstArraySlice;
  2385. UINT ArraySize;
  2386. FLOAT ResourceMinLODClamp;
  2387. } D3D12_TEX1D_ARRAY_SRV;
  2388. typedef struct D3D12_TEX2D_SRV
  2389. {
  2390. UINT MostDetailedMip;
  2391. UINT MipLevels;
  2392. UINT PlaneSlice;
  2393. FLOAT ResourceMinLODClamp;
  2394. } D3D12_TEX2D_SRV;
  2395. typedef struct D3D12_TEX2D_ARRAY_SRV
  2396. {
  2397. UINT MostDetailedMip;
  2398. UINT MipLevels;
  2399. UINT FirstArraySlice;
  2400. UINT ArraySize;
  2401. UINT PlaneSlice;
  2402. FLOAT ResourceMinLODClamp;
  2403. } D3D12_TEX2D_ARRAY_SRV;
  2404. typedef struct D3D12_TEX3D_SRV
  2405. {
  2406. UINT MostDetailedMip;
  2407. UINT MipLevels;
  2408. FLOAT ResourceMinLODClamp;
  2409. } D3D12_TEX3D_SRV;
  2410. typedef struct D3D12_TEXCUBE_SRV
  2411. {
  2412. UINT MostDetailedMip;
  2413. UINT MipLevels;
  2414. FLOAT ResourceMinLODClamp;
  2415. } D3D12_TEXCUBE_SRV;
  2416. typedef struct D3D12_TEXCUBE_ARRAY_SRV
  2417. {
  2418. UINT MostDetailedMip;
  2419. UINT MipLevels;
  2420. UINT First2DArrayFace;
  2421. UINT NumCubes;
  2422. FLOAT ResourceMinLODClamp;
  2423. } D3D12_TEXCUBE_ARRAY_SRV;
  2424. typedef struct D3D12_TEX2DMS_SRV
  2425. {
  2426. UINT UnusedField_NothingToDefine;
  2427. } D3D12_TEX2DMS_SRV;
  2428. typedef struct D3D12_TEX2DMS_ARRAY_SRV
  2429. {
  2430. UINT FirstArraySlice;
  2431. UINT ArraySize;
  2432. } D3D12_TEX2DMS_ARRAY_SRV;
  2433. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV
  2434. {
  2435. D3D12_GPU_VIRTUAL_ADDRESS Location;
  2436. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV;
  2437. typedef
  2438. enum D3D12_SRV_DIMENSION
  2439. {
  2440. D3D12_SRV_DIMENSION_UNKNOWN = 0,
  2441. D3D12_SRV_DIMENSION_BUFFER = 1,
  2442. D3D12_SRV_DIMENSION_TEXTURE1D = 2,
  2443. D3D12_SRV_DIMENSION_TEXTURE1DARRAY = 3,
  2444. D3D12_SRV_DIMENSION_TEXTURE2D = 4,
  2445. D3D12_SRV_DIMENSION_TEXTURE2DARRAY = 5,
  2446. D3D12_SRV_DIMENSION_TEXTURE2DMS = 6,
  2447. D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY = 7,
  2448. D3D12_SRV_DIMENSION_TEXTURE3D = 8,
  2449. D3D12_SRV_DIMENSION_TEXTURECUBE = 9,
  2450. D3D12_SRV_DIMENSION_TEXTURECUBEARRAY = 10,
  2451. D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE = 11
  2452. } D3D12_SRV_DIMENSION;
  2453. typedef struct D3D12_SHADER_RESOURCE_VIEW_DESC
  2454. {
  2455. DXGI_FORMAT Format;
  2456. D3D12_SRV_DIMENSION ViewDimension;
  2457. UINT Shader4ComponentMapping;
  2458. union
  2459. {
  2460. D3D12_BUFFER_SRV Buffer;
  2461. D3D12_TEX1D_SRV Texture1D;
  2462. D3D12_TEX1D_ARRAY_SRV Texture1DArray;
  2463. D3D12_TEX2D_SRV Texture2D;
  2464. D3D12_TEX2D_ARRAY_SRV Texture2DArray;
  2465. D3D12_TEX2DMS_SRV Texture2DMS;
  2466. D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray;
  2467. D3D12_TEX3D_SRV Texture3D;
  2468. D3D12_TEXCUBE_SRV TextureCube;
  2469. D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray;
  2470. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV RaytracingAccelerationStructure;
  2471. } ;
  2472. } D3D12_SHADER_RESOURCE_VIEW_DESC;
  2473. typedef struct D3D12_CONSTANT_BUFFER_VIEW_DESC
  2474. {
  2475. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  2476. UINT SizeInBytes;
  2477. } D3D12_CONSTANT_BUFFER_VIEW_DESC;
  2478. typedef
  2479. enum D3D12_FILTER
  2480. {
  2481. D3D12_FILTER_MIN_MAG_MIP_POINT = 0,
  2482. D3D12_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x1,
  2483. D3D12_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x4,
  2484. D3D12_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x5,
  2485. D3D12_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
  2486. D3D12_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
  2487. D3D12_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
  2488. D3D12_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
  2489. D3D12_FILTER_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x54,
  2490. D3D12_FILTER_ANISOTROPIC = 0x55,
  2491. D3D12_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
  2492. D3D12_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
  2493. D3D12_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
  2494. D3D12_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
  2495. D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
  2496. D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
  2497. D3D12_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
  2498. D3D12_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
  2499. D3D12_FILTER_COMPARISON_MIN_MAG_ANISOTROPIC_MIP_POINT = 0xd4,
  2500. D3D12_FILTER_COMPARISON_ANISOTROPIC = 0xd5,
  2501. D3D12_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100,
  2502. D3D12_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101,
  2503. D3D12_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104,
  2504. D3D12_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105,
  2505. D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110,
  2506. D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111,
  2507. D3D12_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114,
  2508. D3D12_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115,
  2509. D3D12_FILTER_MINIMUM_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x154,
  2510. D3D12_FILTER_MINIMUM_ANISOTROPIC = 0x155,
  2511. D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180,
  2512. D3D12_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181,
  2513. D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184,
  2514. D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185,
  2515. D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190,
  2516. D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191,
  2517. D3D12_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194,
  2518. D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195,
  2519. D3D12_FILTER_MAXIMUM_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x1d4,
  2520. D3D12_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5
  2521. } D3D12_FILTER;
  2522. typedef
  2523. enum D3D12_FILTER_TYPE
  2524. {
  2525. D3D12_FILTER_TYPE_POINT = 0,
  2526. D3D12_FILTER_TYPE_LINEAR = 1
  2527. } D3D12_FILTER_TYPE;
  2528. typedef
  2529. enum D3D12_FILTER_REDUCTION_TYPE
  2530. {
  2531. D3D12_FILTER_REDUCTION_TYPE_STANDARD = 0,
  2532. D3D12_FILTER_REDUCTION_TYPE_COMPARISON = 1,
  2533. D3D12_FILTER_REDUCTION_TYPE_MINIMUM = 2,
  2534. D3D12_FILTER_REDUCTION_TYPE_MAXIMUM = 3
  2535. } D3D12_FILTER_REDUCTION_TYPE;
  2536. #define D3D12_FILTER_REDUCTION_TYPE_MASK ( 0x3 )
  2537. #define D3D12_FILTER_REDUCTION_TYPE_SHIFT ( 7 )
  2538. #define D3D12_FILTER_TYPE_MASK ( 0x3 )
  2539. #define D3D12_MIN_FILTER_SHIFT ( 4 )
  2540. #define D3D12_MAG_FILTER_SHIFT ( 2 )
  2541. #define D3D12_MIP_FILTER_SHIFT ( 0 )
  2542. #define D3D12_ANISOTROPIC_FILTERING_BIT ( 0x40 )
  2543. #define D3D12_ENCODE_BASIC_FILTER( min, mag, mip, reduction ) \
  2544. ( ( D3D12_FILTER ) ( \
  2545. ( ( ( min ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MIN_FILTER_SHIFT ) | \
  2546. ( ( ( mag ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MAG_FILTER_SHIFT ) | \
  2547. ( ( ( mip ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MIP_FILTER_SHIFT ) | \
  2548. ( ( ( reduction ) & D3D12_FILTER_REDUCTION_TYPE_MASK ) << D3D12_FILTER_REDUCTION_TYPE_SHIFT ) ) )
  2549. #define D3D12_ENCODE_ANISOTROPIC_FILTER( reduction ) \
  2550. ( ( D3D12_FILTER ) ( \
  2551. D3D12_ANISOTROPIC_FILTERING_BIT | \
  2552. D3D12_ENCODE_BASIC_FILTER( D3D12_FILTER_TYPE_LINEAR, \
  2553. D3D12_FILTER_TYPE_LINEAR, \
  2554. D3D12_FILTER_TYPE_LINEAR, \
  2555. reduction ) ) )
  2556. #define D3D12_ENCODE_MIN_MAG_ANISOTROPIC_MIP_POINT_FILTER( reduction ) \
  2557. ( ( D3D12_FILTER ) ( \
  2558. D3D12_ANISOTROPIC_FILTERING_BIT | \
  2559. D3D12_ENCODE_BASIC_FILTER( D3D12_FILTER_TYPE_LINEAR, \
  2560. D3D12_FILTER_TYPE_LINEAR, \
  2561. D3D12_FILTER_TYPE_POINT, \
  2562. reduction ) ) )
  2563. #define D3D12_DECODE_MIN_FILTER( D3D12Filter ) \
  2564. ( ( D3D12_FILTER_TYPE ) \
  2565. ( ( ( D3D12Filter ) >> D3D12_MIN_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) )
  2566. #define D3D12_DECODE_MAG_FILTER( D3D12Filter ) \
  2567. ( ( D3D12_FILTER_TYPE ) \
  2568. ( ( ( D3D12Filter ) >> D3D12_MAG_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) )
  2569. #define D3D12_DECODE_MIP_FILTER( D3D12Filter ) \
  2570. ( ( D3D12_FILTER_TYPE ) \
  2571. ( ( ( D3D12Filter ) >> D3D12_MIP_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) )
  2572. #define D3D12_DECODE_FILTER_REDUCTION( D3D12Filter ) \
  2573. ( ( D3D12_FILTER_REDUCTION_TYPE ) \
  2574. ( ( ( D3D12Filter ) >> D3D12_FILTER_REDUCTION_TYPE_SHIFT ) & D3D12_FILTER_REDUCTION_TYPE_MASK ) )
  2575. #define D3D12_DECODE_IS_COMPARISON_FILTER( D3D12Filter ) \
  2576. ( D3D12_DECODE_FILTER_REDUCTION( D3D12Filter ) == D3D12_FILTER_REDUCTION_TYPE_COMPARISON )
  2577. #define D3D12_DECODE_IS_ANISOTROPIC_FILTER( D3D12Filter ) \
  2578. ( ( ( D3D12Filter ) & D3D12_ANISOTROPIC_FILTERING_BIT ) && \
  2579. ( D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MIN_FILTER( D3D12Filter ) ) && \
  2580. ( D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MAG_FILTER( D3D12Filter ) ) )
  2581. typedef
  2582. enum D3D12_TEXTURE_ADDRESS_MODE
  2583. {
  2584. D3D12_TEXTURE_ADDRESS_MODE_WRAP = 1,
  2585. D3D12_TEXTURE_ADDRESS_MODE_MIRROR = 2,
  2586. D3D12_TEXTURE_ADDRESS_MODE_CLAMP = 3,
  2587. D3D12_TEXTURE_ADDRESS_MODE_BORDER = 4,
  2588. D3D12_TEXTURE_ADDRESS_MODE_MIRROR_ONCE = 5
  2589. } D3D12_TEXTURE_ADDRESS_MODE;
  2590. typedef struct D3D12_SAMPLER_DESC
  2591. {
  2592. D3D12_FILTER Filter;
  2593. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  2594. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  2595. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  2596. FLOAT MipLODBias;
  2597. UINT MaxAnisotropy;
  2598. D3D12_COMPARISON_FUNC ComparisonFunc;
  2599. FLOAT BorderColor[ 4 ];
  2600. FLOAT MinLOD;
  2601. FLOAT MaxLOD;
  2602. } D3D12_SAMPLER_DESC;
  2603. typedef
  2604. enum D3D12_SAMPLER_FLAGS
  2605. {
  2606. D3D12_SAMPLER_FLAG_NONE = 0,
  2607. D3D12_SAMPLER_FLAG_UINT_BORDER_COLOR = 0x1,
  2608. D3D12_SAMPLER_FLAG_NON_NORMALIZED_COORDINATES = 0x2
  2609. } D3D12_SAMPLER_FLAGS;
  2610. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SAMPLER_FLAGS );
  2611. typedef struct D3D12_SAMPLER_DESC2
  2612. {
  2613. D3D12_FILTER Filter;
  2614. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  2615. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  2616. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  2617. FLOAT MipLODBias;
  2618. UINT MaxAnisotropy;
  2619. D3D12_COMPARISON_FUNC ComparisonFunc;
  2620. union
  2621. {
  2622. FLOAT FloatBorderColor[ 4 ];
  2623. UINT UintBorderColor[ 4 ];
  2624. } ;
  2625. FLOAT MinLOD;
  2626. FLOAT MaxLOD;
  2627. D3D12_SAMPLER_FLAGS Flags;
  2628. } D3D12_SAMPLER_DESC2;
  2629. typedef
  2630. enum D3D12_BUFFER_UAV_FLAGS
  2631. {
  2632. D3D12_BUFFER_UAV_FLAG_NONE = 0,
  2633. D3D12_BUFFER_UAV_FLAG_RAW = 0x1
  2634. } D3D12_BUFFER_UAV_FLAGS;
  2635. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BUFFER_UAV_FLAGS );
  2636. typedef struct D3D12_BUFFER_UAV
  2637. {
  2638. UINT64 FirstElement;
  2639. UINT NumElements;
  2640. UINT StructureByteStride;
  2641. UINT64 CounterOffsetInBytes;
  2642. D3D12_BUFFER_UAV_FLAGS Flags;
  2643. } D3D12_BUFFER_UAV;
  2644. typedef struct D3D12_TEX1D_UAV
  2645. {
  2646. UINT MipSlice;
  2647. } D3D12_TEX1D_UAV;
  2648. typedef struct D3D12_TEX1D_ARRAY_UAV
  2649. {
  2650. UINT MipSlice;
  2651. UINT FirstArraySlice;
  2652. UINT ArraySize;
  2653. } D3D12_TEX1D_ARRAY_UAV;
  2654. typedef struct D3D12_TEX2D_UAV
  2655. {
  2656. UINT MipSlice;
  2657. UINT PlaneSlice;
  2658. } D3D12_TEX2D_UAV;
  2659. typedef struct D3D12_TEX2D_ARRAY_UAV
  2660. {
  2661. UINT MipSlice;
  2662. UINT FirstArraySlice;
  2663. UINT ArraySize;
  2664. UINT PlaneSlice;
  2665. } D3D12_TEX2D_ARRAY_UAV;
  2666. typedef struct D3D12_TEX2DMS_UAV
  2667. {
  2668. UINT UnusedField_NothingToDefine;
  2669. } D3D12_TEX2DMS_UAV;
  2670. typedef struct D3D12_TEX2DMS_ARRAY_UAV
  2671. {
  2672. UINT FirstArraySlice;
  2673. UINT ArraySize;
  2674. } D3D12_TEX2DMS_ARRAY_UAV;
  2675. typedef struct D3D12_TEX3D_UAV
  2676. {
  2677. UINT MipSlice;
  2678. UINT FirstWSlice;
  2679. UINT WSize;
  2680. } D3D12_TEX3D_UAV;
  2681. typedef
  2682. enum D3D12_UAV_DIMENSION
  2683. {
  2684. D3D12_UAV_DIMENSION_UNKNOWN = 0,
  2685. D3D12_UAV_DIMENSION_BUFFER = 1,
  2686. D3D12_UAV_DIMENSION_TEXTURE1D = 2,
  2687. D3D12_UAV_DIMENSION_TEXTURE1DARRAY = 3,
  2688. D3D12_UAV_DIMENSION_TEXTURE2D = 4,
  2689. D3D12_UAV_DIMENSION_TEXTURE2DARRAY = 5,
  2690. D3D12_UAV_DIMENSION_TEXTURE2DMS = 6,
  2691. D3D12_UAV_DIMENSION_TEXTURE2DMSARRAY = 7,
  2692. D3D12_UAV_DIMENSION_TEXTURE3D = 8
  2693. } D3D12_UAV_DIMENSION;
  2694. typedef struct D3D12_UNORDERED_ACCESS_VIEW_DESC
  2695. {
  2696. DXGI_FORMAT Format;
  2697. D3D12_UAV_DIMENSION ViewDimension;
  2698. union
  2699. {
  2700. D3D12_BUFFER_UAV Buffer;
  2701. D3D12_TEX1D_UAV Texture1D;
  2702. D3D12_TEX1D_ARRAY_UAV Texture1DArray;
  2703. D3D12_TEX2D_UAV Texture2D;
  2704. D3D12_TEX2D_ARRAY_UAV Texture2DArray;
  2705. D3D12_TEX2DMS_UAV Texture2DMS;
  2706. D3D12_TEX2DMS_ARRAY_UAV Texture2DMSArray;
  2707. D3D12_TEX3D_UAV Texture3D;
  2708. } ;
  2709. } D3D12_UNORDERED_ACCESS_VIEW_DESC;
  2710. typedef struct D3D12_BUFFER_RTV
  2711. {
  2712. UINT64 FirstElement;
  2713. UINT NumElements;
  2714. } D3D12_BUFFER_RTV;
  2715. typedef struct D3D12_TEX1D_RTV
  2716. {
  2717. UINT MipSlice;
  2718. } D3D12_TEX1D_RTV;
  2719. typedef struct D3D12_TEX1D_ARRAY_RTV
  2720. {
  2721. UINT MipSlice;
  2722. UINT FirstArraySlice;
  2723. UINT ArraySize;
  2724. } D3D12_TEX1D_ARRAY_RTV;
  2725. typedef struct D3D12_TEX2D_RTV
  2726. {
  2727. UINT MipSlice;
  2728. UINT PlaneSlice;
  2729. } D3D12_TEX2D_RTV;
  2730. typedef struct D3D12_TEX2DMS_RTV
  2731. {
  2732. UINT UnusedField_NothingToDefine;
  2733. } D3D12_TEX2DMS_RTV;
  2734. typedef struct D3D12_TEX2D_ARRAY_RTV
  2735. {
  2736. UINT MipSlice;
  2737. UINT FirstArraySlice;
  2738. UINT ArraySize;
  2739. UINT PlaneSlice;
  2740. } D3D12_TEX2D_ARRAY_RTV;
  2741. typedef struct D3D12_TEX2DMS_ARRAY_RTV
  2742. {
  2743. UINT FirstArraySlice;
  2744. UINT ArraySize;
  2745. } D3D12_TEX2DMS_ARRAY_RTV;
  2746. typedef struct D3D12_TEX3D_RTV
  2747. {
  2748. UINT MipSlice;
  2749. UINT FirstWSlice;
  2750. UINT WSize;
  2751. } D3D12_TEX3D_RTV;
  2752. typedef
  2753. enum D3D12_RTV_DIMENSION
  2754. {
  2755. D3D12_RTV_DIMENSION_UNKNOWN = 0,
  2756. D3D12_RTV_DIMENSION_BUFFER = 1,
  2757. D3D12_RTV_DIMENSION_TEXTURE1D = 2,
  2758. D3D12_RTV_DIMENSION_TEXTURE1DARRAY = 3,
  2759. D3D12_RTV_DIMENSION_TEXTURE2D = 4,
  2760. D3D12_RTV_DIMENSION_TEXTURE2DARRAY = 5,
  2761. D3D12_RTV_DIMENSION_TEXTURE2DMS = 6,
  2762. D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY = 7,
  2763. D3D12_RTV_DIMENSION_TEXTURE3D = 8
  2764. } D3D12_RTV_DIMENSION;
  2765. typedef struct D3D12_RENDER_TARGET_VIEW_DESC
  2766. {
  2767. DXGI_FORMAT Format;
  2768. D3D12_RTV_DIMENSION ViewDimension;
  2769. union
  2770. {
  2771. D3D12_BUFFER_RTV Buffer;
  2772. D3D12_TEX1D_RTV Texture1D;
  2773. D3D12_TEX1D_ARRAY_RTV Texture1DArray;
  2774. D3D12_TEX2D_RTV Texture2D;
  2775. D3D12_TEX2D_ARRAY_RTV Texture2DArray;
  2776. D3D12_TEX2DMS_RTV Texture2DMS;
  2777. D3D12_TEX2DMS_ARRAY_RTV Texture2DMSArray;
  2778. D3D12_TEX3D_RTV Texture3D;
  2779. } ;
  2780. } D3D12_RENDER_TARGET_VIEW_DESC;
  2781. typedef struct D3D12_TEX1D_DSV
  2782. {
  2783. UINT MipSlice;
  2784. } D3D12_TEX1D_DSV;
  2785. typedef struct D3D12_TEX1D_ARRAY_DSV
  2786. {
  2787. UINT MipSlice;
  2788. UINT FirstArraySlice;
  2789. UINT ArraySize;
  2790. } D3D12_TEX1D_ARRAY_DSV;
  2791. typedef struct D3D12_TEX2D_DSV
  2792. {
  2793. UINT MipSlice;
  2794. } D3D12_TEX2D_DSV;
  2795. typedef struct D3D12_TEX2D_ARRAY_DSV
  2796. {
  2797. UINT MipSlice;
  2798. UINT FirstArraySlice;
  2799. UINT ArraySize;
  2800. } D3D12_TEX2D_ARRAY_DSV;
  2801. typedef struct D3D12_TEX2DMS_DSV
  2802. {
  2803. UINT UnusedField_NothingToDefine;
  2804. } D3D12_TEX2DMS_DSV;
  2805. typedef struct D3D12_TEX2DMS_ARRAY_DSV
  2806. {
  2807. UINT FirstArraySlice;
  2808. UINT ArraySize;
  2809. } D3D12_TEX2DMS_ARRAY_DSV;
  2810. typedef
  2811. enum D3D12_DSV_FLAGS
  2812. {
  2813. D3D12_DSV_FLAG_NONE = 0,
  2814. D3D12_DSV_FLAG_READ_ONLY_DEPTH = 0x1,
  2815. D3D12_DSV_FLAG_READ_ONLY_STENCIL = 0x2
  2816. } D3D12_DSV_FLAGS;
  2817. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DSV_FLAGS );
  2818. typedef
  2819. enum D3D12_DSV_DIMENSION
  2820. {
  2821. D3D12_DSV_DIMENSION_UNKNOWN = 0,
  2822. D3D12_DSV_DIMENSION_TEXTURE1D = 1,
  2823. D3D12_DSV_DIMENSION_TEXTURE1DARRAY = 2,
  2824. D3D12_DSV_DIMENSION_TEXTURE2D = 3,
  2825. D3D12_DSV_DIMENSION_TEXTURE2DARRAY = 4,
  2826. D3D12_DSV_DIMENSION_TEXTURE2DMS = 5,
  2827. D3D12_DSV_DIMENSION_TEXTURE2DMSARRAY = 6
  2828. } D3D12_DSV_DIMENSION;
  2829. typedef struct D3D12_DEPTH_STENCIL_VIEW_DESC
  2830. {
  2831. DXGI_FORMAT Format;
  2832. D3D12_DSV_DIMENSION ViewDimension;
  2833. D3D12_DSV_FLAGS Flags;
  2834. union
  2835. {
  2836. D3D12_TEX1D_DSV Texture1D;
  2837. D3D12_TEX1D_ARRAY_DSV Texture1DArray;
  2838. D3D12_TEX2D_DSV Texture2D;
  2839. D3D12_TEX2D_ARRAY_DSV Texture2DArray;
  2840. D3D12_TEX2DMS_DSV Texture2DMS;
  2841. D3D12_TEX2DMS_ARRAY_DSV Texture2DMSArray;
  2842. } ;
  2843. } D3D12_DEPTH_STENCIL_VIEW_DESC;
  2844. typedef
  2845. enum D3D12_CLEAR_FLAGS
  2846. {
  2847. D3D12_CLEAR_FLAG_DEPTH = 0x1,
  2848. D3D12_CLEAR_FLAG_STENCIL = 0x2
  2849. } D3D12_CLEAR_FLAGS;
  2850. DEFINE_ENUM_FLAG_OPERATORS( D3D12_CLEAR_FLAGS );
  2851. typedef
  2852. enum D3D12_FENCE_FLAGS
  2853. {
  2854. D3D12_FENCE_FLAG_NONE = 0,
  2855. D3D12_FENCE_FLAG_SHARED = 0x1,
  2856. D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER = 0x2,
  2857. D3D12_FENCE_FLAG_NON_MONITORED = 0x4
  2858. } D3D12_FENCE_FLAGS;
  2859. DEFINE_ENUM_FLAG_OPERATORS( D3D12_FENCE_FLAGS );
  2860. typedef
  2861. enum D3D12_DESCRIPTOR_HEAP_TYPE
  2862. {
  2863. D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV = 0,
  2864. D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER = ( D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV + 1 ) ,
  2865. D3D12_DESCRIPTOR_HEAP_TYPE_RTV = ( D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER + 1 ) ,
  2866. D3D12_DESCRIPTOR_HEAP_TYPE_DSV = ( D3D12_DESCRIPTOR_HEAP_TYPE_RTV + 1 ) ,
  2867. D3D12_DESCRIPTOR_HEAP_TYPE_NUM_TYPES = ( D3D12_DESCRIPTOR_HEAP_TYPE_DSV + 1 )
  2868. } D3D12_DESCRIPTOR_HEAP_TYPE;
  2869. typedef
  2870. enum D3D12_DESCRIPTOR_HEAP_FLAGS
  2871. {
  2872. D3D12_DESCRIPTOR_HEAP_FLAG_NONE = 0,
  2873. D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE = 0x1
  2874. } D3D12_DESCRIPTOR_HEAP_FLAGS;
  2875. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DESCRIPTOR_HEAP_FLAGS );
  2876. typedef struct D3D12_DESCRIPTOR_HEAP_DESC
  2877. {
  2878. D3D12_DESCRIPTOR_HEAP_TYPE Type;
  2879. UINT NumDescriptors;
  2880. D3D12_DESCRIPTOR_HEAP_FLAGS Flags;
  2881. UINT NodeMask;
  2882. } D3D12_DESCRIPTOR_HEAP_DESC;
  2883. typedef
  2884. enum D3D12_DESCRIPTOR_RANGE_TYPE
  2885. {
  2886. D3D12_DESCRIPTOR_RANGE_TYPE_SRV = 0,
  2887. D3D12_DESCRIPTOR_RANGE_TYPE_UAV = ( D3D12_DESCRIPTOR_RANGE_TYPE_SRV + 1 ) ,
  2888. D3D12_DESCRIPTOR_RANGE_TYPE_CBV = ( D3D12_DESCRIPTOR_RANGE_TYPE_UAV + 1 ) ,
  2889. D3D12_DESCRIPTOR_RANGE_TYPE_SAMPLER = ( D3D12_DESCRIPTOR_RANGE_TYPE_CBV + 1 )
  2890. } D3D12_DESCRIPTOR_RANGE_TYPE;
  2891. typedef struct D3D12_DESCRIPTOR_RANGE
  2892. {
  2893. D3D12_DESCRIPTOR_RANGE_TYPE RangeType;
  2894. UINT NumDescriptors;
  2895. UINT BaseShaderRegister;
  2896. UINT RegisterSpace;
  2897. UINT OffsetInDescriptorsFromTableStart;
  2898. } D3D12_DESCRIPTOR_RANGE;
  2899. typedef struct D3D12_ROOT_DESCRIPTOR_TABLE
  2900. {
  2901. UINT NumDescriptorRanges;
  2902. _Field_size_full_(NumDescriptorRanges) const D3D12_DESCRIPTOR_RANGE *pDescriptorRanges;
  2903. } D3D12_ROOT_DESCRIPTOR_TABLE;
  2904. typedef struct D3D12_ROOT_CONSTANTS
  2905. {
  2906. UINT ShaderRegister;
  2907. UINT RegisterSpace;
  2908. UINT Num32BitValues;
  2909. } D3D12_ROOT_CONSTANTS;
  2910. typedef struct D3D12_ROOT_DESCRIPTOR
  2911. {
  2912. UINT ShaderRegister;
  2913. UINT RegisterSpace;
  2914. } D3D12_ROOT_DESCRIPTOR;
  2915. typedef
  2916. enum D3D12_SHADER_VISIBILITY
  2917. {
  2918. D3D12_SHADER_VISIBILITY_ALL = 0,
  2919. D3D12_SHADER_VISIBILITY_VERTEX = 1,
  2920. D3D12_SHADER_VISIBILITY_HULL = 2,
  2921. D3D12_SHADER_VISIBILITY_DOMAIN = 3,
  2922. D3D12_SHADER_VISIBILITY_GEOMETRY = 4,
  2923. D3D12_SHADER_VISIBILITY_PIXEL = 5,
  2924. D3D12_SHADER_VISIBILITY_AMPLIFICATION = 6,
  2925. D3D12_SHADER_VISIBILITY_MESH = 7
  2926. } D3D12_SHADER_VISIBILITY;
  2927. typedef
  2928. enum D3D12_ROOT_PARAMETER_TYPE
  2929. {
  2930. D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE = 0,
  2931. D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS = ( D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE + 1 ) ,
  2932. D3D12_ROOT_PARAMETER_TYPE_CBV = ( D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS + 1 ) ,
  2933. D3D12_ROOT_PARAMETER_TYPE_SRV = ( D3D12_ROOT_PARAMETER_TYPE_CBV + 1 ) ,
  2934. D3D12_ROOT_PARAMETER_TYPE_UAV = ( D3D12_ROOT_PARAMETER_TYPE_SRV + 1 )
  2935. } D3D12_ROOT_PARAMETER_TYPE;
  2936. typedef struct D3D12_ROOT_PARAMETER
  2937. {
  2938. D3D12_ROOT_PARAMETER_TYPE ParameterType;
  2939. union
  2940. {
  2941. D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable;
  2942. D3D12_ROOT_CONSTANTS Constants;
  2943. D3D12_ROOT_DESCRIPTOR Descriptor;
  2944. } ;
  2945. D3D12_SHADER_VISIBILITY ShaderVisibility;
  2946. } D3D12_ROOT_PARAMETER;
  2947. typedef
  2948. enum D3D12_ROOT_SIGNATURE_FLAGS
  2949. {
  2950. D3D12_ROOT_SIGNATURE_FLAG_NONE = 0,
  2951. D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT = 0x1,
  2952. D3D12_ROOT_SIGNATURE_FLAG_DENY_VERTEX_SHADER_ROOT_ACCESS = 0x2,
  2953. D3D12_ROOT_SIGNATURE_FLAG_DENY_HULL_SHADER_ROOT_ACCESS = 0x4,
  2954. D3D12_ROOT_SIGNATURE_FLAG_DENY_DOMAIN_SHADER_ROOT_ACCESS = 0x8,
  2955. D3D12_ROOT_SIGNATURE_FLAG_DENY_GEOMETRY_SHADER_ROOT_ACCESS = 0x10,
  2956. D3D12_ROOT_SIGNATURE_FLAG_DENY_PIXEL_SHADER_ROOT_ACCESS = 0x20,
  2957. D3D12_ROOT_SIGNATURE_FLAG_ALLOW_STREAM_OUTPUT = 0x40,
  2958. D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE = 0x80,
  2959. D3D12_ROOT_SIGNATURE_FLAG_DENY_AMPLIFICATION_SHADER_ROOT_ACCESS = 0x100,
  2960. D3D12_ROOT_SIGNATURE_FLAG_DENY_MESH_SHADER_ROOT_ACCESS = 0x200,
  2961. D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED = 0x400,
  2962. D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED = 0x800
  2963. } D3D12_ROOT_SIGNATURE_FLAGS;
  2964. DEFINE_ENUM_FLAG_OPERATORS( D3D12_ROOT_SIGNATURE_FLAGS );
  2965. typedef
  2966. enum D3D12_STATIC_BORDER_COLOR
  2967. {
  2968. D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK = 0,
  2969. D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK = ( D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK + 1 ) ,
  2970. D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK + 1 ) ,
  2971. D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE + 1 ) ,
  2972. D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE_UINT = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT + 1 )
  2973. } D3D12_STATIC_BORDER_COLOR;
  2974. typedef struct D3D12_STATIC_SAMPLER_DESC
  2975. {
  2976. D3D12_FILTER Filter;
  2977. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  2978. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  2979. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  2980. FLOAT MipLODBias;
  2981. UINT MaxAnisotropy;
  2982. D3D12_COMPARISON_FUNC ComparisonFunc;
  2983. D3D12_STATIC_BORDER_COLOR BorderColor;
  2984. FLOAT MinLOD;
  2985. FLOAT MaxLOD;
  2986. UINT ShaderRegister;
  2987. UINT RegisterSpace;
  2988. D3D12_SHADER_VISIBILITY ShaderVisibility;
  2989. } D3D12_STATIC_SAMPLER_DESC;
  2990. typedef struct D3D12_STATIC_SAMPLER_DESC1
  2991. {
  2992. D3D12_FILTER Filter;
  2993. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  2994. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  2995. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  2996. FLOAT MipLODBias;
  2997. UINT MaxAnisotropy;
  2998. D3D12_COMPARISON_FUNC ComparisonFunc;
  2999. D3D12_STATIC_BORDER_COLOR BorderColor;
  3000. FLOAT MinLOD;
  3001. FLOAT MaxLOD;
  3002. UINT ShaderRegister;
  3003. UINT RegisterSpace;
  3004. D3D12_SHADER_VISIBILITY ShaderVisibility;
  3005. D3D12_SAMPLER_FLAGS Flags;
  3006. } D3D12_STATIC_SAMPLER_DESC1;
  3007. typedef struct D3D12_ROOT_SIGNATURE_DESC
  3008. {
  3009. UINT NumParameters;
  3010. _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER *pParameters;
  3011. UINT NumStaticSamplers;
  3012. _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers;
  3013. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  3014. } D3D12_ROOT_SIGNATURE_DESC;
  3015. typedef
  3016. enum D3D12_DESCRIPTOR_RANGE_FLAGS
  3017. {
  3018. D3D12_DESCRIPTOR_RANGE_FLAG_NONE = 0,
  3019. D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_VOLATILE = 0x1,
  3020. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_VOLATILE = 0x2,
  3021. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4,
  3022. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC = 0x8,
  3023. D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS = 0x10000
  3024. } D3D12_DESCRIPTOR_RANGE_FLAGS;
  3025. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DESCRIPTOR_RANGE_FLAGS );
  3026. typedef struct D3D12_DESCRIPTOR_RANGE1
  3027. {
  3028. D3D12_DESCRIPTOR_RANGE_TYPE RangeType;
  3029. UINT NumDescriptors;
  3030. UINT BaseShaderRegister;
  3031. UINT RegisterSpace;
  3032. D3D12_DESCRIPTOR_RANGE_FLAGS Flags;
  3033. UINT OffsetInDescriptorsFromTableStart;
  3034. } D3D12_DESCRIPTOR_RANGE1;
  3035. typedef struct D3D12_ROOT_DESCRIPTOR_TABLE1
  3036. {
  3037. UINT NumDescriptorRanges;
  3038. _Field_size_full_(NumDescriptorRanges) const D3D12_DESCRIPTOR_RANGE1 *pDescriptorRanges;
  3039. } D3D12_ROOT_DESCRIPTOR_TABLE1;
  3040. typedef
  3041. enum D3D12_ROOT_DESCRIPTOR_FLAGS
  3042. {
  3043. D3D12_ROOT_DESCRIPTOR_FLAG_NONE = 0,
  3044. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_VOLATILE = 0x2,
  3045. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4,
  3046. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC = 0x8
  3047. } D3D12_ROOT_DESCRIPTOR_FLAGS;
  3048. DEFINE_ENUM_FLAG_OPERATORS( D3D12_ROOT_DESCRIPTOR_FLAGS );
  3049. typedef struct D3D12_ROOT_DESCRIPTOR1
  3050. {
  3051. UINT ShaderRegister;
  3052. UINT RegisterSpace;
  3053. D3D12_ROOT_DESCRIPTOR_FLAGS Flags;
  3054. } D3D12_ROOT_DESCRIPTOR1;
  3055. typedef struct D3D12_ROOT_PARAMETER1
  3056. {
  3057. D3D12_ROOT_PARAMETER_TYPE ParameterType;
  3058. union
  3059. {
  3060. D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable;
  3061. D3D12_ROOT_CONSTANTS Constants;
  3062. D3D12_ROOT_DESCRIPTOR1 Descriptor;
  3063. } ;
  3064. D3D12_SHADER_VISIBILITY ShaderVisibility;
  3065. } D3D12_ROOT_PARAMETER1;
  3066. typedef struct D3D12_ROOT_SIGNATURE_DESC1
  3067. {
  3068. UINT NumParameters;
  3069. _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER1 *pParameters;
  3070. UINT NumStaticSamplers;
  3071. _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers;
  3072. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  3073. } D3D12_ROOT_SIGNATURE_DESC1;
  3074. typedef struct D3D12_ROOT_SIGNATURE_DESC2
  3075. {
  3076. UINT NumParameters;
  3077. _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER1 *pParameters;
  3078. UINT NumStaticSamplers;
  3079. _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC1 *pStaticSamplers;
  3080. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  3081. } D3D12_ROOT_SIGNATURE_DESC2;
  3082. typedef struct D3D12_VERSIONED_ROOT_SIGNATURE_DESC
  3083. {
  3084. D3D_ROOT_SIGNATURE_VERSION Version;
  3085. union
  3086. {
  3087. D3D12_ROOT_SIGNATURE_DESC Desc_1_0;
  3088. D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1;
  3089. D3D12_ROOT_SIGNATURE_DESC2 Desc_1_2;
  3090. } ;
  3091. } D3D12_VERSIONED_ROOT_SIGNATURE_DESC;
  3092. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0001_v0_0_c_ifspec;
  3093. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0001_v0_0_s_ifspec;
  3094. #ifndef __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__
  3095. #define __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__
  3096. /* interface ID3D12RootSignatureDeserializer */
  3097. /* [unique][local][object][uuid] */
  3098. EXTERN_C const IID IID_ID3D12RootSignatureDeserializer;
  3099. #if defined(__cplusplus) && !defined(CINTERFACE)
  3100. MIDL_INTERFACE("34AB647B-3CC8-46AC-841B-C0965645C046")
  3101. ID3D12RootSignatureDeserializer : public IUnknown
  3102. {
  3103. public:
  3104. virtual const D3D12_ROOT_SIGNATURE_DESC *STDMETHODCALLTYPE GetRootSignatureDesc( void) = 0;
  3105. };
  3106. #else /* C style interface */
  3107. typedef struct ID3D12RootSignatureDeserializerVtbl
  3108. {
  3109. BEGIN_INTERFACE
  3110. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3111. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3112. ID3D12RootSignatureDeserializer * This,
  3113. REFIID riid,
  3114. _COM_Outptr_ void **ppvObject);
  3115. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3116. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3117. ID3D12RootSignatureDeserializer * This);
  3118. DECLSPEC_XFGVIRT(IUnknown, Release)
  3119. ULONG ( STDMETHODCALLTYPE *Release )(
  3120. ID3D12RootSignatureDeserializer * This);
  3121. DECLSPEC_XFGVIRT(ID3D12RootSignatureDeserializer, GetRootSignatureDesc)
  3122. const D3D12_ROOT_SIGNATURE_DESC *( STDMETHODCALLTYPE *GetRootSignatureDesc )(
  3123. ID3D12RootSignatureDeserializer * This);
  3124. END_INTERFACE
  3125. } ID3D12RootSignatureDeserializerVtbl;
  3126. interface ID3D12RootSignatureDeserializer
  3127. {
  3128. CONST_VTBL struct ID3D12RootSignatureDeserializerVtbl *lpVtbl;
  3129. };
  3130. #ifdef COBJMACROS
  3131. #define ID3D12RootSignatureDeserializer_QueryInterface(This,riid,ppvObject) \
  3132. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3133. #define ID3D12RootSignatureDeserializer_AddRef(This) \
  3134. ( (This)->lpVtbl -> AddRef(This) )
  3135. #define ID3D12RootSignatureDeserializer_Release(This) \
  3136. ( (This)->lpVtbl -> Release(This) )
  3137. #define ID3D12RootSignatureDeserializer_GetRootSignatureDesc(This) \
  3138. ( (This)->lpVtbl -> GetRootSignatureDesc(This) )
  3139. #endif /* COBJMACROS */
  3140. #endif /* C style interface */
  3141. #endif /* __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__ */
  3142. #ifndef __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__
  3143. #define __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__
  3144. /* interface ID3D12VersionedRootSignatureDeserializer */
  3145. /* [unique][local][object][uuid] */
  3146. EXTERN_C const IID IID_ID3D12VersionedRootSignatureDeserializer;
  3147. #if defined(__cplusplus) && !defined(CINTERFACE)
  3148. MIDL_INTERFACE("7F91CE67-090C-4BB7-B78E-ED8FF2E31DA0")
  3149. ID3D12VersionedRootSignatureDeserializer : public IUnknown
  3150. {
  3151. public:
  3152. virtual HRESULT STDMETHODCALLTYPE GetRootSignatureDescAtVersion(
  3153. D3D_ROOT_SIGNATURE_VERSION convertToVersion,
  3154. _Out_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **ppDesc) = 0;
  3155. virtual const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *STDMETHODCALLTYPE GetUnconvertedRootSignatureDesc( void) = 0;
  3156. };
  3157. #else /* C style interface */
  3158. typedef struct ID3D12VersionedRootSignatureDeserializerVtbl
  3159. {
  3160. BEGIN_INTERFACE
  3161. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3162. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3163. ID3D12VersionedRootSignatureDeserializer * This,
  3164. REFIID riid,
  3165. _COM_Outptr_ void **ppvObject);
  3166. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3167. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3168. ID3D12VersionedRootSignatureDeserializer * This);
  3169. DECLSPEC_XFGVIRT(IUnknown, Release)
  3170. ULONG ( STDMETHODCALLTYPE *Release )(
  3171. ID3D12VersionedRootSignatureDeserializer * This);
  3172. DECLSPEC_XFGVIRT(ID3D12VersionedRootSignatureDeserializer, GetRootSignatureDescAtVersion)
  3173. HRESULT ( STDMETHODCALLTYPE *GetRootSignatureDescAtVersion )(
  3174. ID3D12VersionedRootSignatureDeserializer * This,
  3175. D3D_ROOT_SIGNATURE_VERSION convertToVersion,
  3176. _Out_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **ppDesc);
  3177. DECLSPEC_XFGVIRT(ID3D12VersionedRootSignatureDeserializer, GetUnconvertedRootSignatureDesc)
  3178. const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *( STDMETHODCALLTYPE *GetUnconvertedRootSignatureDesc )(
  3179. ID3D12VersionedRootSignatureDeserializer * This);
  3180. END_INTERFACE
  3181. } ID3D12VersionedRootSignatureDeserializerVtbl;
  3182. interface ID3D12VersionedRootSignatureDeserializer
  3183. {
  3184. CONST_VTBL struct ID3D12VersionedRootSignatureDeserializerVtbl *lpVtbl;
  3185. };
  3186. #ifdef COBJMACROS
  3187. #define ID3D12VersionedRootSignatureDeserializer_QueryInterface(This,riid,ppvObject) \
  3188. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3189. #define ID3D12VersionedRootSignatureDeserializer_AddRef(This) \
  3190. ( (This)->lpVtbl -> AddRef(This) )
  3191. #define ID3D12VersionedRootSignatureDeserializer_Release(This) \
  3192. ( (This)->lpVtbl -> Release(This) )
  3193. #define ID3D12VersionedRootSignatureDeserializer_GetRootSignatureDescAtVersion(This,convertToVersion,ppDesc) \
  3194. ( (This)->lpVtbl -> GetRootSignatureDescAtVersion(This,convertToVersion,ppDesc) )
  3195. #define ID3D12VersionedRootSignatureDeserializer_GetUnconvertedRootSignatureDesc(This) \
  3196. ( (This)->lpVtbl -> GetUnconvertedRootSignatureDesc(This) )
  3197. #endif /* COBJMACROS */
  3198. #endif /* C style interface */
  3199. #endif /* __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__ */
  3200. /* interface __MIDL_itf_d3d12_0000_0003 */
  3201. /* [local] */
  3202. typedef HRESULT (WINAPI* PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(
  3203. _In_ const D3D12_ROOT_SIGNATURE_DESC* pRootSignature,
  3204. _In_ D3D_ROOT_SIGNATURE_VERSION Version,
  3205. _Out_ ID3DBlob** ppBlob,
  3206. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3207. HRESULT WINAPI D3D12SerializeRootSignature(
  3208. _In_ const D3D12_ROOT_SIGNATURE_DESC* pRootSignature,
  3209. _In_ D3D_ROOT_SIGNATURE_VERSION Version,
  3210. _Out_ ID3DBlob** ppBlob,
  3211. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3212. typedef HRESULT (WINAPI* PFN_D3D12_CREATE_ROOT_SIGNATURE_DESERIALIZER)(
  3213. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3214. _In_ SIZE_T SrcDataSizeInBytes,
  3215. _In_ REFIID pRootSignatureDeserializerInterface,
  3216. _Out_ void** ppRootSignatureDeserializer);
  3217. HRESULT WINAPI D3D12CreateRootSignatureDeserializer(
  3218. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3219. _In_ SIZE_T SrcDataSizeInBytes,
  3220. _In_ REFIID pRootSignatureDeserializerInterface,
  3221. _Out_ void** ppRootSignatureDeserializer);
  3222. typedef HRESULT (WINAPI* PFN_D3D12_SERIALIZE_VERSIONED_ROOT_SIGNATURE)(
  3223. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature,
  3224. _Out_ ID3DBlob** ppBlob,
  3225. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3226. HRESULT WINAPI D3D12SerializeVersionedRootSignature(
  3227. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature,
  3228. _Out_ ID3DBlob** ppBlob,
  3229. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);
  3230. typedef HRESULT (WINAPI* PFN_D3D12_CREATE_VERSIONED_ROOT_SIGNATURE_DESERIALIZER)(
  3231. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3232. _In_ SIZE_T SrcDataSizeInBytes,
  3233. _In_ REFIID pRootSignatureDeserializerInterface,
  3234. _Out_ void** ppRootSignatureDeserializer);
  3235. HRESULT WINAPI D3D12CreateVersionedRootSignatureDeserializer(
  3236. _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,
  3237. _In_ SIZE_T SrcDataSizeInBytes,
  3238. _In_ REFIID pRootSignatureDeserializerInterface,
  3239. _Out_ void** ppRootSignatureDeserializer);
  3240. typedef struct D3D12_CPU_DESCRIPTOR_HANDLE
  3241. {
  3242. SIZE_T ptr;
  3243. } D3D12_CPU_DESCRIPTOR_HANDLE;
  3244. typedef struct D3D12_GPU_DESCRIPTOR_HANDLE
  3245. {
  3246. UINT64 ptr;
  3247. } D3D12_GPU_DESCRIPTOR_HANDLE;
  3248. // If rects are supplied in D3D12_DISCARD_REGION, below, the resource
  3249. // must have 2D subresources with all specified subresources the same dimension.
  3250. typedef struct D3D12_DISCARD_REGION
  3251. {
  3252. UINT NumRects;
  3253. _In_reads_(NumRects) const D3D12_RECT *pRects;
  3254. UINT FirstSubresource;
  3255. UINT NumSubresources;
  3256. } D3D12_DISCARD_REGION;
  3257. typedef
  3258. enum D3D12_QUERY_HEAP_TYPE
  3259. {
  3260. D3D12_QUERY_HEAP_TYPE_OCCLUSION = 0,
  3261. D3D12_QUERY_HEAP_TYPE_TIMESTAMP = 1,
  3262. D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS = 2,
  3263. D3D12_QUERY_HEAP_TYPE_SO_STATISTICS = 3,
  3264. D3D12_QUERY_HEAP_TYPE_VIDEO_DECODE_STATISTICS = 4,
  3265. D3D12_QUERY_HEAP_TYPE_COPY_QUEUE_TIMESTAMP = 5,
  3266. D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS1 = 7
  3267. } D3D12_QUERY_HEAP_TYPE;
  3268. typedef struct D3D12_QUERY_HEAP_DESC
  3269. {
  3270. D3D12_QUERY_HEAP_TYPE Type;
  3271. UINT Count;
  3272. UINT NodeMask;
  3273. } D3D12_QUERY_HEAP_DESC;
  3274. typedef
  3275. enum D3D12_QUERY_TYPE
  3276. {
  3277. D3D12_QUERY_TYPE_OCCLUSION = 0,
  3278. D3D12_QUERY_TYPE_BINARY_OCCLUSION = 1,
  3279. D3D12_QUERY_TYPE_TIMESTAMP = 2,
  3280. D3D12_QUERY_TYPE_PIPELINE_STATISTICS = 3,
  3281. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM0 = 4,
  3282. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM1 = 5,
  3283. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM2 = 6,
  3284. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM3 = 7,
  3285. D3D12_QUERY_TYPE_VIDEO_DECODE_STATISTICS = 8,
  3286. D3D12_QUERY_TYPE_PIPELINE_STATISTICS1 = 10
  3287. } D3D12_QUERY_TYPE;
  3288. typedef
  3289. enum D3D12_PREDICATION_OP
  3290. {
  3291. D3D12_PREDICATION_OP_EQUAL_ZERO = 0,
  3292. D3D12_PREDICATION_OP_NOT_EQUAL_ZERO = 1
  3293. } D3D12_PREDICATION_OP;
  3294. typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS
  3295. {
  3296. UINT64 IAVertices;
  3297. UINT64 IAPrimitives;
  3298. UINT64 VSInvocations;
  3299. UINT64 GSInvocations;
  3300. UINT64 GSPrimitives;
  3301. UINT64 CInvocations;
  3302. UINT64 CPrimitives;
  3303. UINT64 PSInvocations;
  3304. UINT64 HSInvocations;
  3305. UINT64 DSInvocations;
  3306. UINT64 CSInvocations;
  3307. } D3D12_QUERY_DATA_PIPELINE_STATISTICS;
  3308. typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS1
  3309. {
  3310. UINT64 IAVertices;
  3311. UINT64 IAPrimitives;
  3312. UINT64 VSInvocations;
  3313. UINT64 GSInvocations;
  3314. UINT64 GSPrimitives;
  3315. UINT64 CInvocations;
  3316. UINT64 CPrimitives;
  3317. UINT64 PSInvocations;
  3318. UINT64 HSInvocations;
  3319. UINT64 DSInvocations;
  3320. UINT64 CSInvocations;
  3321. UINT64 ASInvocations;
  3322. UINT64 MSInvocations;
  3323. UINT64 MSPrimitives;
  3324. } D3D12_QUERY_DATA_PIPELINE_STATISTICS1;
  3325. typedef struct D3D12_QUERY_DATA_SO_STATISTICS
  3326. {
  3327. UINT64 NumPrimitivesWritten;
  3328. UINT64 PrimitivesStorageNeeded;
  3329. } D3D12_QUERY_DATA_SO_STATISTICS;
  3330. typedef struct D3D12_STREAM_OUTPUT_BUFFER_VIEW
  3331. {
  3332. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  3333. UINT64 SizeInBytes;
  3334. D3D12_GPU_VIRTUAL_ADDRESS BufferFilledSizeLocation;
  3335. } D3D12_STREAM_OUTPUT_BUFFER_VIEW;
  3336. typedef struct D3D12_DRAW_ARGUMENTS
  3337. {
  3338. UINT VertexCountPerInstance;
  3339. UINT InstanceCount;
  3340. UINT StartVertexLocation;
  3341. UINT StartInstanceLocation;
  3342. } D3D12_DRAW_ARGUMENTS;
  3343. typedef struct D3D12_DRAW_INDEXED_ARGUMENTS
  3344. {
  3345. UINT IndexCountPerInstance;
  3346. UINT InstanceCount;
  3347. UINT StartIndexLocation;
  3348. INT BaseVertexLocation;
  3349. UINT StartInstanceLocation;
  3350. } D3D12_DRAW_INDEXED_ARGUMENTS;
  3351. typedef struct D3D12_DISPATCH_ARGUMENTS
  3352. {
  3353. UINT ThreadGroupCountX;
  3354. UINT ThreadGroupCountY;
  3355. UINT ThreadGroupCountZ;
  3356. } D3D12_DISPATCH_ARGUMENTS;
  3357. typedef struct D3D12_VERTEX_BUFFER_VIEW
  3358. {
  3359. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  3360. UINT SizeInBytes;
  3361. UINT StrideInBytes;
  3362. } D3D12_VERTEX_BUFFER_VIEW;
  3363. typedef struct D3D12_INDEX_BUFFER_VIEW
  3364. {
  3365. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  3366. UINT SizeInBytes;
  3367. DXGI_FORMAT Format;
  3368. } D3D12_INDEX_BUFFER_VIEW;
  3369. typedef
  3370. enum D3D12_INDIRECT_ARGUMENT_TYPE
  3371. {
  3372. D3D12_INDIRECT_ARGUMENT_TYPE_DRAW = 0,
  3373. D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED = ( D3D12_INDIRECT_ARGUMENT_TYPE_DRAW + 1 ) ,
  3374. D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH = ( D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED + 1 ) ,
  3375. D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH + 1 ) ,
  3376. D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW + 1 ) ,
  3377. D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT = ( D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW + 1 ) ,
  3378. D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT + 1 ) ,
  3379. D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW + 1 ) ,
  3380. D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW + 1 ) ,
  3381. D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS = ( D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW + 1 ) ,
  3382. D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS + 1 )
  3383. } D3D12_INDIRECT_ARGUMENT_TYPE;
  3384. typedef struct D3D12_INDIRECT_ARGUMENT_DESC
  3385. {
  3386. D3D12_INDIRECT_ARGUMENT_TYPE Type;
  3387. union
  3388. {
  3389. struct
  3390. {
  3391. UINT Slot;
  3392. } VertexBuffer;
  3393. struct
  3394. {
  3395. UINT RootParameterIndex;
  3396. UINT DestOffsetIn32BitValues;
  3397. UINT Num32BitValuesToSet;
  3398. } Constant;
  3399. struct
  3400. {
  3401. UINT RootParameterIndex;
  3402. } ConstantBufferView;
  3403. struct
  3404. {
  3405. UINT RootParameterIndex;
  3406. } ShaderResourceView;
  3407. struct
  3408. {
  3409. UINT RootParameterIndex;
  3410. } UnorderedAccessView;
  3411. } ;
  3412. } D3D12_INDIRECT_ARGUMENT_DESC;
  3413. typedef struct D3D12_COMMAND_SIGNATURE_DESC
  3414. {
  3415. UINT ByteStride;
  3416. UINT NumArgumentDescs;
  3417. _Field_size_full_(NumArgumentDescs) const D3D12_INDIRECT_ARGUMENT_DESC *pArgumentDescs;
  3418. UINT NodeMask;
  3419. } D3D12_COMMAND_SIGNATURE_DESC;
  3420. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0003_v0_0_c_ifspec;
  3421. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0003_v0_0_s_ifspec;
  3422. #ifndef __ID3D12Pageable_INTERFACE_DEFINED__
  3423. #define __ID3D12Pageable_INTERFACE_DEFINED__
  3424. /* interface ID3D12Pageable */
  3425. /* [unique][local][object][uuid] */
  3426. EXTERN_C const IID IID_ID3D12Pageable;
  3427. #if defined(__cplusplus) && !defined(CINTERFACE)
  3428. MIDL_INTERFACE("63ee58fb-1268-4835-86da-f008ce62f0d6")
  3429. ID3D12Pageable : public ID3D12DeviceChild
  3430. {
  3431. public:
  3432. };
  3433. #else /* C style interface */
  3434. typedef struct ID3D12PageableVtbl
  3435. {
  3436. BEGIN_INTERFACE
  3437. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3438. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3439. ID3D12Pageable * This,
  3440. REFIID riid,
  3441. _COM_Outptr_ void **ppvObject);
  3442. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3443. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3444. ID3D12Pageable * This);
  3445. DECLSPEC_XFGVIRT(IUnknown, Release)
  3446. ULONG ( STDMETHODCALLTYPE *Release )(
  3447. ID3D12Pageable * This);
  3448. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3449. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3450. ID3D12Pageable * This,
  3451. _In_ REFGUID guid,
  3452. _Inout_ UINT *pDataSize,
  3453. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3454. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3455. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3456. ID3D12Pageable * This,
  3457. _In_ REFGUID guid,
  3458. _In_ UINT DataSize,
  3459. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3460. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3461. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3462. ID3D12Pageable * This,
  3463. _In_ REFGUID guid,
  3464. _In_opt_ const IUnknown *pData);
  3465. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3466. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3467. ID3D12Pageable * This,
  3468. _In_z_ LPCWSTR Name);
  3469. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3470. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3471. ID3D12Pageable * This,
  3472. REFIID riid,
  3473. _COM_Outptr_opt_ void **ppvDevice);
  3474. END_INTERFACE
  3475. } ID3D12PageableVtbl;
  3476. interface ID3D12Pageable
  3477. {
  3478. CONST_VTBL struct ID3D12PageableVtbl *lpVtbl;
  3479. };
  3480. #ifdef COBJMACROS
  3481. #define ID3D12Pageable_QueryInterface(This,riid,ppvObject) \
  3482. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3483. #define ID3D12Pageable_AddRef(This) \
  3484. ( (This)->lpVtbl -> AddRef(This) )
  3485. #define ID3D12Pageable_Release(This) \
  3486. ( (This)->lpVtbl -> Release(This) )
  3487. #define ID3D12Pageable_GetPrivateData(This,guid,pDataSize,pData) \
  3488. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3489. #define ID3D12Pageable_SetPrivateData(This,guid,DataSize,pData) \
  3490. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3491. #define ID3D12Pageable_SetPrivateDataInterface(This,guid,pData) \
  3492. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3493. #define ID3D12Pageable_SetName(This,Name) \
  3494. ( (This)->lpVtbl -> SetName(This,Name) )
  3495. #define ID3D12Pageable_GetDevice(This,riid,ppvDevice) \
  3496. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3497. #endif /* COBJMACROS */
  3498. #endif /* C style interface */
  3499. #endif /* __ID3D12Pageable_INTERFACE_DEFINED__ */
  3500. #ifndef __ID3D12Heap_INTERFACE_DEFINED__
  3501. #define __ID3D12Heap_INTERFACE_DEFINED__
  3502. /* interface ID3D12Heap */
  3503. /* [unique][local][object][uuid] */
  3504. EXTERN_C const IID IID_ID3D12Heap;
  3505. #if defined(__cplusplus) && !defined(CINTERFACE)
  3506. MIDL_INTERFACE("6b3b2502-6e51-45b3-90ee-9884265e8df3")
  3507. ID3D12Heap : public ID3D12Pageable
  3508. {
  3509. public:
  3510. #if defined(_MSC_VER) || !defined(_WIN32)
  3511. virtual D3D12_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  3512. #else
  3513. virtual D3D12_HEAP_DESC *STDMETHODCALLTYPE GetDesc(
  3514. D3D12_HEAP_DESC * RetVal) = 0;
  3515. #endif
  3516. };
  3517. #else /* C style interface */
  3518. typedef struct ID3D12HeapVtbl
  3519. {
  3520. BEGIN_INTERFACE
  3521. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3522. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3523. ID3D12Heap * This,
  3524. REFIID riid,
  3525. _COM_Outptr_ void **ppvObject);
  3526. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3527. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3528. ID3D12Heap * This);
  3529. DECLSPEC_XFGVIRT(IUnknown, Release)
  3530. ULONG ( STDMETHODCALLTYPE *Release )(
  3531. ID3D12Heap * This);
  3532. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3533. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3534. ID3D12Heap * This,
  3535. _In_ REFGUID guid,
  3536. _Inout_ UINT *pDataSize,
  3537. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3538. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3539. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3540. ID3D12Heap * This,
  3541. _In_ REFGUID guid,
  3542. _In_ UINT DataSize,
  3543. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3544. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3545. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3546. ID3D12Heap * This,
  3547. _In_ REFGUID guid,
  3548. _In_opt_ const IUnknown *pData);
  3549. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3550. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3551. ID3D12Heap * This,
  3552. _In_z_ LPCWSTR Name);
  3553. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3554. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3555. ID3D12Heap * This,
  3556. REFIID riid,
  3557. _COM_Outptr_opt_ void **ppvDevice);
  3558. DECLSPEC_XFGVIRT(ID3D12Heap, GetDesc)
  3559. #if !defined(_WIN32)
  3560. D3D12_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )(
  3561. ID3D12Heap * This);
  3562. #else
  3563. D3D12_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )(
  3564. ID3D12Heap * This,
  3565. D3D12_HEAP_DESC * RetVal);
  3566. #endif
  3567. END_INTERFACE
  3568. } ID3D12HeapVtbl;
  3569. interface ID3D12Heap
  3570. {
  3571. CONST_VTBL struct ID3D12HeapVtbl *lpVtbl;
  3572. };
  3573. #ifdef COBJMACROS
  3574. #define ID3D12Heap_QueryInterface(This,riid,ppvObject) \
  3575. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3576. #define ID3D12Heap_AddRef(This) \
  3577. ( (This)->lpVtbl -> AddRef(This) )
  3578. #define ID3D12Heap_Release(This) \
  3579. ( (This)->lpVtbl -> Release(This) )
  3580. #define ID3D12Heap_GetPrivateData(This,guid,pDataSize,pData) \
  3581. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3582. #define ID3D12Heap_SetPrivateData(This,guid,DataSize,pData) \
  3583. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3584. #define ID3D12Heap_SetPrivateDataInterface(This,guid,pData) \
  3585. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3586. #define ID3D12Heap_SetName(This,Name) \
  3587. ( (This)->lpVtbl -> SetName(This,Name) )
  3588. #define ID3D12Heap_GetDevice(This,riid,ppvDevice) \
  3589. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3590. #if !defined(_WIN32)
  3591. #define ID3D12Heap_GetDesc(This) \
  3592. ( (This)->lpVtbl -> GetDesc(This) )
  3593. #else
  3594. #define ID3D12Heap_GetDesc(This,RetVal) \
  3595. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  3596. #endif
  3597. #endif /* COBJMACROS */
  3598. #endif /* C style interface */
  3599. #endif /* __ID3D12Heap_INTERFACE_DEFINED__ */
  3600. #ifndef __ID3D12Resource_INTERFACE_DEFINED__
  3601. #define __ID3D12Resource_INTERFACE_DEFINED__
  3602. /* interface ID3D12Resource */
  3603. /* [unique][local][object][uuid] */
  3604. EXTERN_C const IID IID_ID3D12Resource;
  3605. #if defined(__cplusplus) && !defined(CINTERFACE)
  3606. MIDL_INTERFACE("696442be-a72e-4059-bc79-5b5c98040fad")
  3607. ID3D12Resource : public ID3D12Pageable
  3608. {
  3609. public:
  3610. virtual HRESULT STDMETHODCALLTYPE Map(
  3611. UINT Subresource,
  3612. _In_opt_ const D3D12_RANGE *pReadRange,
  3613. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData) = 0;
  3614. virtual void STDMETHODCALLTYPE Unmap(
  3615. UINT Subresource,
  3616. _In_opt_ const D3D12_RANGE *pWrittenRange) = 0;
  3617. #if defined(_MSC_VER) || !defined(_WIN32)
  3618. virtual D3D12_RESOURCE_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  3619. #else
  3620. virtual D3D12_RESOURCE_DESC *STDMETHODCALLTYPE GetDesc(
  3621. D3D12_RESOURCE_DESC * RetVal) = 0;
  3622. #endif
  3623. virtual D3D12_GPU_VIRTUAL_ADDRESS STDMETHODCALLTYPE GetGPUVirtualAddress( void) = 0;
  3624. virtual HRESULT STDMETHODCALLTYPE WriteToSubresource(
  3625. UINT DstSubresource,
  3626. _In_opt_ const D3D12_BOX *pDstBox,
  3627. _In_ const void *pSrcData,
  3628. UINT SrcRowPitch,
  3629. UINT SrcDepthPitch) = 0;
  3630. virtual HRESULT STDMETHODCALLTYPE ReadFromSubresource(
  3631. _Out_ void *pDstData,
  3632. UINT DstRowPitch,
  3633. UINT DstDepthPitch,
  3634. UINT SrcSubresource,
  3635. _In_opt_ const D3D12_BOX *pSrcBox) = 0;
  3636. virtual HRESULT STDMETHODCALLTYPE GetHeapProperties(
  3637. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  3638. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags) = 0;
  3639. };
  3640. #else /* C style interface */
  3641. typedef struct ID3D12ResourceVtbl
  3642. {
  3643. BEGIN_INTERFACE
  3644. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3645. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3646. ID3D12Resource * This,
  3647. REFIID riid,
  3648. _COM_Outptr_ void **ppvObject);
  3649. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3650. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3651. ID3D12Resource * This);
  3652. DECLSPEC_XFGVIRT(IUnknown, Release)
  3653. ULONG ( STDMETHODCALLTYPE *Release )(
  3654. ID3D12Resource * This);
  3655. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3656. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3657. ID3D12Resource * This,
  3658. _In_ REFGUID guid,
  3659. _Inout_ UINT *pDataSize,
  3660. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3661. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3662. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3663. ID3D12Resource * This,
  3664. _In_ REFGUID guid,
  3665. _In_ UINT DataSize,
  3666. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3667. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3668. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3669. ID3D12Resource * This,
  3670. _In_ REFGUID guid,
  3671. _In_opt_ const IUnknown *pData);
  3672. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3673. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3674. ID3D12Resource * This,
  3675. _In_z_ LPCWSTR Name);
  3676. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3677. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3678. ID3D12Resource * This,
  3679. REFIID riid,
  3680. _COM_Outptr_opt_ void **ppvDevice);
  3681. DECLSPEC_XFGVIRT(ID3D12Resource, Map)
  3682. HRESULT ( STDMETHODCALLTYPE *Map )(
  3683. ID3D12Resource * This,
  3684. UINT Subresource,
  3685. _In_opt_ const D3D12_RANGE *pReadRange,
  3686. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData);
  3687. DECLSPEC_XFGVIRT(ID3D12Resource, Unmap)
  3688. void ( STDMETHODCALLTYPE *Unmap )(
  3689. ID3D12Resource * This,
  3690. UINT Subresource,
  3691. _In_opt_ const D3D12_RANGE *pWrittenRange);
  3692. DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc)
  3693. #if !defined(_WIN32)
  3694. D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  3695. ID3D12Resource * This);
  3696. #else
  3697. D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  3698. ID3D12Resource * This,
  3699. D3D12_RESOURCE_DESC * RetVal);
  3700. #endif
  3701. DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress)
  3702. D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )(
  3703. ID3D12Resource * This);
  3704. DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource)
  3705. HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )(
  3706. ID3D12Resource * This,
  3707. UINT DstSubresource,
  3708. _In_opt_ const D3D12_BOX *pDstBox,
  3709. _In_ const void *pSrcData,
  3710. UINT SrcRowPitch,
  3711. UINT SrcDepthPitch);
  3712. DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource)
  3713. HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )(
  3714. ID3D12Resource * This,
  3715. _Out_ void *pDstData,
  3716. UINT DstRowPitch,
  3717. UINT DstDepthPitch,
  3718. UINT SrcSubresource,
  3719. _In_opt_ const D3D12_BOX *pSrcBox);
  3720. DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties)
  3721. HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )(
  3722. ID3D12Resource * This,
  3723. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  3724. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags);
  3725. END_INTERFACE
  3726. } ID3D12ResourceVtbl;
  3727. interface ID3D12Resource
  3728. {
  3729. CONST_VTBL struct ID3D12ResourceVtbl *lpVtbl;
  3730. };
  3731. #ifdef COBJMACROS
  3732. #define ID3D12Resource_QueryInterface(This,riid,ppvObject) \
  3733. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3734. #define ID3D12Resource_AddRef(This) \
  3735. ( (This)->lpVtbl -> AddRef(This) )
  3736. #define ID3D12Resource_Release(This) \
  3737. ( (This)->lpVtbl -> Release(This) )
  3738. #define ID3D12Resource_GetPrivateData(This,guid,pDataSize,pData) \
  3739. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3740. #define ID3D12Resource_SetPrivateData(This,guid,DataSize,pData) \
  3741. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3742. #define ID3D12Resource_SetPrivateDataInterface(This,guid,pData) \
  3743. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3744. #define ID3D12Resource_SetName(This,Name) \
  3745. ( (This)->lpVtbl -> SetName(This,Name) )
  3746. #define ID3D12Resource_GetDevice(This,riid,ppvDevice) \
  3747. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3748. #define ID3D12Resource_Map(This,Subresource,pReadRange,ppData) \
  3749. ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) )
  3750. #define ID3D12Resource_Unmap(This,Subresource,pWrittenRange) \
  3751. ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) )
  3752. #if !defined(_WIN32)
  3753. #define ID3D12Resource_GetDesc(This) \
  3754. ( (This)->lpVtbl -> GetDesc(This) )
  3755. #else
  3756. #define ID3D12Resource_GetDesc(This,RetVal) \
  3757. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  3758. #endif
  3759. #define ID3D12Resource_GetGPUVirtualAddress(This) \
  3760. ( (This)->lpVtbl -> GetGPUVirtualAddress(This) )
  3761. #define ID3D12Resource_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  3762. ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  3763. #define ID3D12Resource_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \
  3764. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) )
  3765. #define ID3D12Resource_GetHeapProperties(This,pHeapProperties,pHeapFlags) \
  3766. ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) )
  3767. #endif /* COBJMACROS */
  3768. #endif /* C style interface */
  3769. #endif /* __ID3D12Resource_INTERFACE_DEFINED__ */
  3770. #ifndef __ID3D12CommandAllocator_INTERFACE_DEFINED__
  3771. #define __ID3D12CommandAllocator_INTERFACE_DEFINED__
  3772. /* interface ID3D12CommandAllocator */
  3773. /* [unique][local][object][uuid] */
  3774. EXTERN_C const IID IID_ID3D12CommandAllocator;
  3775. #if defined(__cplusplus) && !defined(CINTERFACE)
  3776. MIDL_INTERFACE("6102dee4-af59-4b09-b999-b44d73f09b24")
  3777. ID3D12CommandAllocator : public ID3D12Pageable
  3778. {
  3779. public:
  3780. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  3781. };
  3782. #else /* C style interface */
  3783. typedef struct ID3D12CommandAllocatorVtbl
  3784. {
  3785. BEGIN_INTERFACE
  3786. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3787. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3788. ID3D12CommandAllocator * This,
  3789. REFIID riid,
  3790. _COM_Outptr_ void **ppvObject);
  3791. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3792. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3793. ID3D12CommandAllocator * This);
  3794. DECLSPEC_XFGVIRT(IUnknown, Release)
  3795. ULONG ( STDMETHODCALLTYPE *Release )(
  3796. ID3D12CommandAllocator * This);
  3797. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3798. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3799. ID3D12CommandAllocator * This,
  3800. _In_ REFGUID guid,
  3801. _Inout_ UINT *pDataSize,
  3802. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3803. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3804. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3805. ID3D12CommandAllocator * This,
  3806. _In_ REFGUID guid,
  3807. _In_ UINT DataSize,
  3808. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3809. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3810. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3811. ID3D12CommandAllocator * This,
  3812. _In_ REFGUID guid,
  3813. _In_opt_ const IUnknown *pData);
  3814. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3815. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3816. ID3D12CommandAllocator * This,
  3817. _In_z_ LPCWSTR Name);
  3818. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3819. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3820. ID3D12CommandAllocator * This,
  3821. REFIID riid,
  3822. _COM_Outptr_opt_ void **ppvDevice);
  3823. DECLSPEC_XFGVIRT(ID3D12CommandAllocator, Reset)
  3824. HRESULT ( STDMETHODCALLTYPE *Reset )(
  3825. ID3D12CommandAllocator * This);
  3826. END_INTERFACE
  3827. } ID3D12CommandAllocatorVtbl;
  3828. interface ID3D12CommandAllocator
  3829. {
  3830. CONST_VTBL struct ID3D12CommandAllocatorVtbl *lpVtbl;
  3831. };
  3832. #ifdef COBJMACROS
  3833. #define ID3D12CommandAllocator_QueryInterface(This,riid,ppvObject) \
  3834. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3835. #define ID3D12CommandAllocator_AddRef(This) \
  3836. ( (This)->lpVtbl -> AddRef(This) )
  3837. #define ID3D12CommandAllocator_Release(This) \
  3838. ( (This)->lpVtbl -> Release(This) )
  3839. #define ID3D12CommandAllocator_GetPrivateData(This,guid,pDataSize,pData) \
  3840. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3841. #define ID3D12CommandAllocator_SetPrivateData(This,guid,DataSize,pData) \
  3842. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3843. #define ID3D12CommandAllocator_SetPrivateDataInterface(This,guid,pData) \
  3844. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3845. #define ID3D12CommandAllocator_SetName(This,Name) \
  3846. ( (This)->lpVtbl -> SetName(This,Name) )
  3847. #define ID3D12CommandAllocator_GetDevice(This,riid,ppvDevice) \
  3848. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3849. #define ID3D12CommandAllocator_Reset(This) \
  3850. ( (This)->lpVtbl -> Reset(This) )
  3851. #endif /* COBJMACROS */
  3852. #endif /* C style interface */
  3853. #endif /* __ID3D12CommandAllocator_INTERFACE_DEFINED__ */
  3854. #ifndef __ID3D12Fence_INTERFACE_DEFINED__
  3855. #define __ID3D12Fence_INTERFACE_DEFINED__
  3856. /* interface ID3D12Fence */
  3857. /* [unique][local][object][uuid] */
  3858. EXTERN_C const IID IID_ID3D12Fence;
  3859. #if defined(__cplusplus) && !defined(CINTERFACE)
  3860. MIDL_INTERFACE("0a753dcf-c4d8-4b91-adf6-be5a60d95a76")
  3861. ID3D12Fence : public ID3D12Pageable
  3862. {
  3863. public:
  3864. virtual UINT64 STDMETHODCALLTYPE GetCompletedValue( void) = 0;
  3865. virtual HRESULT STDMETHODCALLTYPE SetEventOnCompletion(
  3866. UINT64 Value,
  3867. HANDLE hEvent) = 0;
  3868. virtual HRESULT STDMETHODCALLTYPE Signal(
  3869. UINT64 Value) = 0;
  3870. };
  3871. #else /* C style interface */
  3872. typedef struct ID3D12FenceVtbl
  3873. {
  3874. BEGIN_INTERFACE
  3875. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3876. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3877. ID3D12Fence * This,
  3878. REFIID riid,
  3879. _COM_Outptr_ void **ppvObject);
  3880. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3881. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3882. ID3D12Fence * This);
  3883. DECLSPEC_XFGVIRT(IUnknown, Release)
  3884. ULONG ( STDMETHODCALLTYPE *Release )(
  3885. ID3D12Fence * This);
  3886. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3887. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3888. ID3D12Fence * This,
  3889. _In_ REFGUID guid,
  3890. _Inout_ UINT *pDataSize,
  3891. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3892. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3893. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3894. ID3D12Fence * This,
  3895. _In_ REFGUID guid,
  3896. _In_ UINT DataSize,
  3897. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3898. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3899. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3900. ID3D12Fence * This,
  3901. _In_ REFGUID guid,
  3902. _In_opt_ const IUnknown *pData);
  3903. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  3904. HRESULT ( STDMETHODCALLTYPE *SetName )(
  3905. ID3D12Fence * This,
  3906. _In_z_ LPCWSTR Name);
  3907. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  3908. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  3909. ID3D12Fence * This,
  3910. REFIID riid,
  3911. _COM_Outptr_opt_ void **ppvDevice);
  3912. DECLSPEC_XFGVIRT(ID3D12Fence, GetCompletedValue)
  3913. UINT64 ( STDMETHODCALLTYPE *GetCompletedValue )(
  3914. ID3D12Fence * This);
  3915. DECLSPEC_XFGVIRT(ID3D12Fence, SetEventOnCompletion)
  3916. HRESULT ( STDMETHODCALLTYPE *SetEventOnCompletion )(
  3917. ID3D12Fence * This,
  3918. UINT64 Value,
  3919. HANDLE hEvent);
  3920. DECLSPEC_XFGVIRT(ID3D12Fence, Signal)
  3921. HRESULT ( STDMETHODCALLTYPE *Signal )(
  3922. ID3D12Fence * This,
  3923. UINT64 Value);
  3924. END_INTERFACE
  3925. } ID3D12FenceVtbl;
  3926. interface ID3D12Fence
  3927. {
  3928. CONST_VTBL struct ID3D12FenceVtbl *lpVtbl;
  3929. };
  3930. #ifdef COBJMACROS
  3931. #define ID3D12Fence_QueryInterface(This,riid,ppvObject) \
  3932. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  3933. #define ID3D12Fence_AddRef(This) \
  3934. ( (This)->lpVtbl -> AddRef(This) )
  3935. #define ID3D12Fence_Release(This) \
  3936. ( (This)->lpVtbl -> Release(This) )
  3937. #define ID3D12Fence_GetPrivateData(This,guid,pDataSize,pData) \
  3938. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  3939. #define ID3D12Fence_SetPrivateData(This,guid,DataSize,pData) \
  3940. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  3941. #define ID3D12Fence_SetPrivateDataInterface(This,guid,pData) \
  3942. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  3943. #define ID3D12Fence_SetName(This,Name) \
  3944. ( (This)->lpVtbl -> SetName(This,Name) )
  3945. #define ID3D12Fence_GetDevice(This,riid,ppvDevice) \
  3946. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  3947. #define ID3D12Fence_GetCompletedValue(This) \
  3948. ( (This)->lpVtbl -> GetCompletedValue(This) )
  3949. #define ID3D12Fence_SetEventOnCompletion(This,Value,hEvent) \
  3950. ( (This)->lpVtbl -> SetEventOnCompletion(This,Value,hEvent) )
  3951. #define ID3D12Fence_Signal(This,Value) \
  3952. ( (This)->lpVtbl -> Signal(This,Value) )
  3953. #endif /* COBJMACROS */
  3954. #endif /* C style interface */
  3955. #endif /* __ID3D12Fence_INTERFACE_DEFINED__ */
  3956. #ifndef __ID3D12Fence1_INTERFACE_DEFINED__
  3957. #define __ID3D12Fence1_INTERFACE_DEFINED__
  3958. /* interface ID3D12Fence1 */
  3959. /* [unique][local][object][uuid] */
  3960. EXTERN_C const IID IID_ID3D12Fence1;
  3961. #if defined(__cplusplus) && !defined(CINTERFACE)
  3962. MIDL_INTERFACE("433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a")
  3963. ID3D12Fence1 : public ID3D12Fence
  3964. {
  3965. public:
  3966. virtual D3D12_FENCE_FLAGS STDMETHODCALLTYPE GetCreationFlags( void) = 0;
  3967. };
  3968. #else /* C style interface */
  3969. typedef struct ID3D12Fence1Vtbl
  3970. {
  3971. BEGIN_INTERFACE
  3972. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  3973. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3974. ID3D12Fence1 * This,
  3975. REFIID riid,
  3976. _COM_Outptr_ void **ppvObject);
  3977. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  3978. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3979. ID3D12Fence1 * This);
  3980. DECLSPEC_XFGVIRT(IUnknown, Release)
  3981. ULONG ( STDMETHODCALLTYPE *Release )(
  3982. ID3D12Fence1 * This);
  3983. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  3984. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  3985. ID3D12Fence1 * This,
  3986. _In_ REFGUID guid,
  3987. _Inout_ UINT *pDataSize,
  3988. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  3989. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  3990. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  3991. ID3D12Fence1 * This,
  3992. _In_ REFGUID guid,
  3993. _In_ UINT DataSize,
  3994. _In_reads_bytes_opt_( DataSize ) const void *pData);
  3995. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  3996. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  3997. ID3D12Fence1 * This,
  3998. _In_ REFGUID guid,
  3999. _In_opt_ const IUnknown *pData);
  4000. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4001. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4002. ID3D12Fence1 * This,
  4003. _In_z_ LPCWSTR Name);
  4004. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4005. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4006. ID3D12Fence1 * This,
  4007. REFIID riid,
  4008. _COM_Outptr_opt_ void **ppvDevice);
  4009. DECLSPEC_XFGVIRT(ID3D12Fence, GetCompletedValue)
  4010. UINT64 ( STDMETHODCALLTYPE *GetCompletedValue )(
  4011. ID3D12Fence1 * This);
  4012. DECLSPEC_XFGVIRT(ID3D12Fence, SetEventOnCompletion)
  4013. HRESULT ( STDMETHODCALLTYPE *SetEventOnCompletion )(
  4014. ID3D12Fence1 * This,
  4015. UINT64 Value,
  4016. HANDLE hEvent);
  4017. DECLSPEC_XFGVIRT(ID3D12Fence, Signal)
  4018. HRESULT ( STDMETHODCALLTYPE *Signal )(
  4019. ID3D12Fence1 * This,
  4020. UINT64 Value);
  4021. DECLSPEC_XFGVIRT(ID3D12Fence1, GetCreationFlags)
  4022. D3D12_FENCE_FLAGS ( STDMETHODCALLTYPE *GetCreationFlags )(
  4023. ID3D12Fence1 * This);
  4024. END_INTERFACE
  4025. } ID3D12Fence1Vtbl;
  4026. interface ID3D12Fence1
  4027. {
  4028. CONST_VTBL struct ID3D12Fence1Vtbl *lpVtbl;
  4029. };
  4030. #ifdef COBJMACROS
  4031. #define ID3D12Fence1_QueryInterface(This,riid,ppvObject) \
  4032. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4033. #define ID3D12Fence1_AddRef(This) \
  4034. ( (This)->lpVtbl -> AddRef(This) )
  4035. #define ID3D12Fence1_Release(This) \
  4036. ( (This)->lpVtbl -> Release(This) )
  4037. #define ID3D12Fence1_GetPrivateData(This,guid,pDataSize,pData) \
  4038. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4039. #define ID3D12Fence1_SetPrivateData(This,guid,DataSize,pData) \
  4040. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4041. #define ID3D12Fence1_SetPrivateDataInterface(This,guid,pData) \
  4042. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4043. #define ID3D12Fence1_SetName(This,Name) \
  4044. ( (This)->lpVtbl -> SetName(This,Name) )
  4045. #define ID3D12Fence1_GetDevice(This,riid,ppvDevice) \
  4046. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4047. #define ID3D12Fence1_GetCompletedValue(This) \
  4048. ( (This)->lpVtbl -> GetCompletedValue(This) )
  4049. #define ID3D12Fence1_SetEventOnCompletion(This,Value,hEvent) \
  4050. ( (This)->lpVtbl -> SetEventOnCompletion(This,Value,hEvent) )
  4051. #define ID3D12Fence1_Signal(This,Value) \
  4052. ( (This)->lpVtbl -> Signal(This,Value) )
  4053. #define ID3D12Fence1_GetCreationFlags(This) \
  4054. ( (This)->lpVtbl -> GetCreationFlags(This) )
  4055. #endif /* COBJMACROS */
  4056. #endif /* C style interface */
  4057. #endif /* __ID3D12Fence1_INTERFACE_DEFINED__ */
  4058. #ifndef __ID3D12PipelineState_INTERFACE_DEFINED__
  4059. #define __ID3D12PipelineState_INTERFACE_DEFINED__
  4060. /* interface ID3D12PipelineState */
  4061. /* [unique][local][object][uuid] */
  4062. EXTERN_C const IID IID_ID3D12PipelineState;
  4063. #if defined(__cplusplus) && !defined(CINTERFACE)
  4064. MIDL_INTERFACE("765a30f3-f624-4c6f-a828-ace948622445")
  4065. ID3D12PipelineState : public ID3D12Pageable
  4066. {
  4067. public:
  4068. virtual HRESULT STDMETHODCALLTYPE GetCachedBlob(
  4069. _COM_Outptr_ ID3DBlob **ppBlob) = 0;
  4070. };
  4071. #else /* C style interface */
  4072. typedef struct ID3D12PipelineStateVtbl
  4073. {
  4074. BEGIN_INTERFACE
  4075. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4076. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4077. ID3D12PipelineState * This,
  4078. REFIID riid,
  4079. _COM_Outptr_ void **ppvObject);
  4080. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4081. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4082. ID3D12PipelineState * This);
  4083. DECLSPEC_XFGVIRT(IUnknown, Release)
  4084. ULONG ( STDMETHODCALLTYPE *Release )(
  4085. ID3D12PipelineState * This);
  4086. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4087. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4088. ID3D12PipelineState * This,
  4089. _In_ REFGUID guid,
  4090. _Inout_ UINT *pDataSize,
  4091. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4092. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4093. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4094. ID3D12PipelineState * This,
  4095. _In_ REFGUID guid,
  4096. _In_ UINT DataSize,
  4097. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4098. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4099. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4100. ID3D12PipelineState * This,
  4101. _In_ REFGUID guid,
  4102. _In_opt_ const IUnknown *pData);
  4103. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4104. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4105. ID3D12PipelineState * This,
  4106. _In_z_ LPCWSTR Name);
  4107. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4108. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4109. ID3D12PipelineState * This,
  4110. REFIID riid,
  4111. _COM_Outptr_opt_ void **ppvDevice);
  4112. DECLSPEC_XFGVIRT(ID3D12PipelineState, GetCachedBlob)
  4113. HRESULT ( STDMETHODCALLTYPE *GetCachedBlob )(
  4114. ID3D12PipelineState * This,
  4115. _COM_Outptr_ ID3DBlob **ppBlob);
  4116. END_INTERFACE
  4117. } ID3D12PipelineStateVtbl;
  4118. interface ID3D12PipelineState
  4119. {
  4120. CONST_VTBL struct ID3D12PipelineStateVtbl *lpVtbl;
  4121. };
  4122. #ifdef COBJMACROS
  4123. #define ID3D12PipelineState_QueryInterface(This,riid,ppvObject) \
  4124. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4125. #define ID3D12PipelineState_AddRef(This) \
  4126. ( (This)->lpVtbl -> AddRef(This) )
  4127. #define ID3D12PipelineState_Release(This) \
  4128. ( (This)->lpVtbl -> Release(This) )
  4129. #define ID3D12PipelineState_GetPrivateData(This,guid,pDataSize,pData) \
  4130. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4131. #define ID3D12PipelineState_SetPrivateData(This,guid,DataSize,pData) \
  4132. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4133. #define ID3D12PipelineState_SetPrivateDataInterface(This,guid,pData) \
  4134. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4135. #define ID3D12PipelineState_SetName(This,Name) \
  4136. ( (This)->lpVtbl -> SetName(This,Name) )
  4137. #define ID3D12PipelineState_GetDevice(This,riid,ppvDevice) \
  4138. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4139. #define ID3D12PipelineState_GetCachedBlob(This,ppBlob) \
  4140. ( (This)->lpVtbl -> GetCachedBlob(This,ppBlob) )
  4141. #endif /* COBJMACROS */
  4142. #endif /* C style interface */
  4143. #endif /* __ID3D12PipelineState_INTERFACE_DEFINED__ */
  4144. #ifndef __ID3D12DescriptorHeap_INTERFACE_DEFINED__
  4145. #define __ID3D12DescriptorHeap_INTERFACE_DEFINED__
  4146. /* interface ID3D12DescriptorHeap */
  4147. /* [unique][local][object][uuid] */
  4148. EXTERN_C const IID IID_ID3D12DescriptorHeap;
  4149. #if defined(__cplusplus) && !defined(CINTERFACE)
  4150. MIDL_INTERFACE("8efb471d-616c-4f49-90f7-127bb763fa51")
  4151. ID3D12DescriptorHeap : public ID3D12Pageable
  4152. {
  4153. public:
  4154. #if defined(_MSC_VER) || !defined(_WIN32)
  4155. virtual D3D12_DESCRIPTOR_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  4156. #else
  4157. virtual D3D12_DESCRIPTOR_HEAP_DESC *STDMETHODCALLTYPE GetDesc(
  4158. D3D12_DESCRIPTOR_HEAP_DESC * RetVal) = 0;
  4159. #endif
  4160. #if defined(_MSC_VER) || !defined(_WIN32)
  4161. virtual D3D12_CPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart( void) = 0;
  4162. #else
  4163. virtual D3D12_CPU_DESCRIPTOR_HANDLE *STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart(
  4164. D3D12_CPU_DESCRIPTOR_HANDLE * RetVal) = 0;
  4165. #endif
  4166. #if defined(_MSC_VER) || !defined(_WIN32)
  4167. virtual D3D12_GPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart( void) = 0;
  4168. #else
  4169. virtual D3D12_GPU_DESCRIPTOR_HANDLE *STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart(
  4170. D3D12_GPU_DESCRIPTOR_HANDLE * RetVal) = 0;
  4171. #endif
  4172. };
  4173. #else /* C style interface */
  4174. typedef struct ID3D12DescriptorHeapVtbl
  4175. {
  4176. BEGIN_INTERFACE
  4177. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4178. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4179. ID3D12DescriptorHeap * This,
  4180. REFIID riid,
  4181. _COM_Outptr_ void **ppvObject);
  4182. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4183. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4184. ID3D12DescriptorHeap * This);
  4185. DECLSPEC_XFGVIRT(IUnknown, Release)
  4186. ULONG ( STDMETHODCALLTYPE *Release )(
  4187. ID3D12DescriptorHeap * This);
  4188. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4189. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4190. ID3D12DescriptorHeap * This,
  4191. _In_ REFGUID guid,
  4192. _Inout_ UINT *pDataSize,
  4193. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4194. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4195. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4196. ID3D12DescriptorHeap * This,
  4197. _In_ REFGUID guid,
  4198. _In_ UINT DataSize,
  4199. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4200. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4201. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4202. ID3D12DescriptorHeap * This,
  4203. _In_ REFGUID guid,
  4204. _In_opt_ const IUnknown *pData);
  4205. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4206. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4207. ID3D12DescriptorHeap * This,
  4208. _In_z_ LPCWSTR Name);
  4209. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4210. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4211. ID3D12DescriptorHeap * This,
  4212. REFIID riid,
  4213. _COM_Outptr_opt_ void **ppvDevice);
  4214. DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetDesc)
  4215. #if !defined(_WIN32)
  4216. D3D12_DESCRIPTOR_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )(
  4217. ID3D12DescriptorHeap * This);
  4218. #else
  4219. D3D12_DESCRIPTOR_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )(
  4220. ID3D12DescriptorHeap * This,
  4221. D3D12_DESCRIPTOR_HEAP_DESC * RetVal);
  4222. #endif
  4223. DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetCPUDescriptorHandleForHeapStart)
  4224. #if !defined(_WIN32)
  4225. D3D12_CPU_DESCRIPTOR_HANDLE ( STDMETHODCALLTYPE *GetCPUDescriptorHandleForHeapStart )(
  4226. ID3D12DescriptorHeap * This);
  4227. #else
  4228. D3D12_CPU_DESCRIPTOR_HANDLE *( STDMETHODCALLTYPE *GetCPUDescriptorHandleForHeapStart )(
  4229. ID3D12DescriptorHeap * This,
  4230. D3D12_CPU_DESCRIPTOR_HANDLE * RetVal);
  4231. #endif
  4232. DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetGPUDescriptorHandleForHeapStart)
  4233. #if !defined(_WIN32)
  4234. D3D12_GPU_DESCRIPTOR_HANDLE ( STDMETHODCALLTYPE *GetGPUDescriptorHandleForHeapStart )(
  4235. ID3D12DescriptorHeap * This);
  4236. #else
  4237. D3D12_GPU_DESCRIPTOR_HANDLE *( STDMETHODCALLTYPE *GetGPUDescriptorHandleForHeapStart )(
  4238. ID3D12DescriptorHeap * This,
  4239. D3D12_GPU_DESCRIPTOR_HANDLE * RetVal);
  4240. #endif
  4241. END_INTERFACE
  4242. } ID3D12DescriptorHeapVtbl;
  4243. interface ID3D12DescriptorHeap
  4244. {
  4245. CONST_VTBL struct ID3D12DescriptorHeapVtbl *lpVtbl;
  4246. };
  4247. #ifdef COBJMACROS
  4248. #define ID3D12DescriptorHeap_QueryInterface(This,riid,ppvObject) \
  4249. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4250. #define ID3D12DescriptorHeap_AddRef(This) \
  4251. ( (This)->lpVtbl -> AddRef(This) )
  4252. #define ID3D12DescriptorHeap_Release(This) \
  4253. ( (This)->lpVtbl -> Release(This) )
  4254. #define ID3D12DescriptorHeap_GetPrivateData(This,guid,pDataSize,pData) \
  4255. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4256. #define ID3D12DescriptorHeap_SetPrivateData(This,guid,DataSize,pData) \
  4257. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4258. #define ID3D12DescriptorHeap_SetPrivateDataInterface(This,guid,pData) \
  4259. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4260. #define ID3D12DescriptorHeap_SetName(This,Name) \
  4261. ( (This)->lpVtbl -> SetName(This,Name) )
  4262. #define ID3D12DescriptorHeap_GetDevice(This,riid,ppvDevice) \
  4263. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4264. #if !defined(_WIN32)
  4265. #define ID3D12DescriptorHeap_GetDesc(This) \
  4266. ( (This)->lpVtbl -> GetDesc(This) )
  4267. #else
  4268. #define ID3D12DescriptorHeap_GetDesc(This,RetVal) \
  4269. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  4270. #endif
  4271. #if !defined(_WIN32)
  4272. #define ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(This) \
  4273. ( (This)->lpVtbl -> GetCPUDescriptorHandleForHeapStart(This) )
  4274. #else
  4275. #define ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(This,RetVal) \
  4276. ( (This)->lpVtbl -> GetCPUDescriptorHandleForHeapStart(This,RetVal) )
  4277. #endif
  4278. #if !defined(_WIN32)
  4279. #define ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(This) \
  4280. ( (This)->lpVtbl -> GetGPUDescriptorHandleForHeapStart(This) )
  4281. #else
  4282. #define ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(This,RetVal) \
  4283. ( (This)->lpVtbl -> GetGPUDescriptorHandleForHeapStart(This,RetVal) )
  4284. #endif
  4285. #endif /* COBJMACROS */
  4286. #endif /* C style interface */
  4287. #endif /* __ID3D12DescriptorHeap_INTERFACE_DEFINED__ */
  4288. #ifndef __ID3D12QueryHeap_INTERFACE_DEFINED__
  4289. #define __ID3D12QueryHeap_INTERFACE_DEFINED__
  4290. /* interface ID3D12QueryHeap */
  4291. /* [unique][local][object][uuid] */
  4292. EXTERN_C const IID IID_ID3D12QueryHeap;
  4293. #if defined(__cplusplus) && !defined(CINTERFACE)
  4294. MIDL_INTERFACE("0d9658ae-ed45-469e-a61d-970ec583cab4")
  4295. ID3D12QueryHeap : public ID3D12Pageable
  4296. {
  4297. public:
  4298. };
  4299. #else /* C style interface */
  4300. typedef struct ID3D12QueryHeapVtbl
  4301. {
  4302. BEGIN_INTERFACE
  4303. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4304. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4305. ID3D12QueryHeap * This,
  4306. REFIID riid,
  4307. _COM_Outptr_ void **ppvObject);
  4308. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4309. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4310. ID3D12QueryHeap * This);
  4311. DECLSPEC_XFGVIRT(IUnknown, Release)
  4312. ULONG ( STDMETHODCALLTYPE *Release )(
  4313. ID3D12QueryHeap * This);
  4314. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4315. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4316. ID3D12QueryHeap * This,
  4317. _In_ REFGUID guid,
  4318. _Inout_ UINT *pDataSize,
  4319. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4320. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4321. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4322. ID3D12QueryHeap * This,
  4323. _In_ REFGUID guid,
  4324. _In_ UINT DataSize,
  4325. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4326. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4327. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4328. ID3D12QueryHeap * This,
  4329. _In_ REFGUID guid,
  4330. _In_opt_ const IUnknown *pData);
  4331. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4332. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4333. ID3D12QueryHeap * This,
  4334. _In_z_ LPCWSTR Name);
  4335. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4336. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4337. ID3D12QueryHeap * This,
  4338. REFIID riid,
  4339. _COM_Outptr_opt_ void **ppvDevice);
  4340. END_INTERFACE
  4341. } ID3D12QueryHeapVtbl;
  4342. interface ID3D12QueryHeap
  4343. {
  4344. CONST_VTBL struct ID3D12QueryHeapVtbl *lpVtbl;
  4345. };
  4346. #ifdef COBJMACROS
  4347. #define ID3D12QueryHeap_QueryInterface(This,riid,ppvObject) \
  4348. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4349. #define ID3D12QueryHeap_AddRef(This) \
  4350. ( (This)->lpVtbl -> AddRef(This) )
  4351. #define ID3D12QueryHeap_Release(This) \
  4352. ( (This)->lpVtbl -> Release(This) )
  4353. #define ID3D12QueryHeap_GetPrivateData(This,guid,pDataSize,pData) \
  4354. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4355. #define ID3D12QueryHeap_SetPrivateData(This,guid,DataSize,pData) \
  4356. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4357. #define ID3D12QueryHeap_SetPrivateDataInterface(This,guid,pData) \
  4358. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4359. #define ID3D12QueryHeap_SetName(This,Name) \
  4360. ( (This)->lpVtbl -> SetName(This,Name) )
  4361. #define ID3D12QueryHeap_GetDevice(This,riid,ppvDevice) \
  4362. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4363. #endif /* COBJMACROS */
  4364. #endif /* C style interface */
  4365. #endif /* __ID3D12QueryHeap_INTERFACE_DEFINED__ */
  4366. #ifndef __ID3D12CommandSignature_INTERFACE_DEFINED__
  4367. #define __ID3D12CommandSignature_INTERFACE_DEFINED__
  4368. /* interface ID3D12CommandSignature */
  4369. /* [unique][local][object][uuid] */
  4370. EXTERN_C const IID IID_ID3D12CommandSignature;
  4371. #if defined(__cplusplus) && !defined(CINTERFACE)
  4372. MIDL_INTERFACE("c36a797c-ec80-4f0a-8985-a7b2475082d1")
  4373. ID3D12CommandSignature : public ID3D12Pageable
  4374. {
  4375. public:
  4376. };
  4377. #else /* C style interface */
  4378. typedef struct ID3D12CommandSignatureVtbl
  4379. {
  4380. BEGIN_INTERFACE
  4381. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4382. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4383. ID3D12CommandSignature * This,
  4384. REFIID riid,
  4385. _COM_Outptr_ void **ppvObject);
  4386. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4387. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4388. ID3D12CommandSignature * This);
  4389. DECLSPEC_XFGVIRT(IUnknown, Release)
  4390. ULONG ( STDMETHODCALLTYPE *Release )(
  4391. ID3D12CommandSignature * This);
  4392. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4393. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4394. ID3D12CommandSignature * This,
  4395. _In_ REFGUID guid,
  4396. _Inout_ UINT *pDataSize,
  4397. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4398. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4399. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4400. ID3D12CommandSignature * This,
  4401. _In_ REFGUID guid,
  4402. _In_ UINT DataSize,
  4403. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4404. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4405. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4406. ID3D12CommandSignature * This,
  4407. _In_ REFGUID guid,
  4408. _In_opt_ const IUnknown *pData);
  4409. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4410. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4411. ID3D12CommandSignature * This,
  4412. _In_z_ LPCWSTR Name);
  4413. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4414. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4415. ID3D12CommandSignature * This,
  4416. REFIID riid,
  4417. _COM_Outptr_opt_ void **ppvDevice);
  4418. END_INTERFACE
  4419. } ID3D12CommandSignatureVtbl;
  4420. interface ID3D12CommandSignature
  4421. {
  4422. CONST_VTBL struct ID3D12CommandSignatureVtbl *lpVtbl;
  4423. };
  4424. #ifdef COBJMACROS
  4425. #define ID3D12CommandSignature_QueryInterface(This,riid,ppvObject) \
  4426. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4427. #define ID3D12CommandSignature_AddRef(This) \
  4428. ( (This)->lpVtbl -> AddRef(This) )
  4429. #define ID3D12CommandSignature_Release(This) \
  4430. ( (This)->lpVtbl -> Release(This) )
  4431. #define ID3D12CommandSignature_GetPrivateData(This,guid,pDataSize,pData) \
  4432. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4433. #define ID3D12CommandSignature_SetPrivateData(This,guid,DataSize,pData) \
  4434. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4435. #define ID3D12CommandSignature_SetPrivateDataInterface(This,guid,pData) \
  4436. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4437. #define ID3D12CommandSignature_SetName(This,Name) \
  4438. ( (This)->lpVtbl -> SetName(This,Name) )
  4439. #define ID3D12CommandSignature_GetDevice(This,riid,ppvDevice) \
  4440. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4441. #endif /* COBJMACROS */
  4442. #endif /* C style interface */
  4443. #endif /* __ID3D12CommandSignature_INTERFACE_DEFINED__ */
  4444. #ifndef __ID3D12CommandList_INTERFACE_DEFINED__
  4445. #define __ID3D12CommandList_INTERFACE_DEFINED__
  4446. /* interface ID3D12CommandList */
  4447. /* [unique][local][object][uuid] */
  4448. EXTERN_C const IID IID_ID3D12CommandList;
  4449. #if defined(__cplusplus) && !defined(CINTERFACE)
  4450. MIDL_INTERFACE("7116d91c-e7e4-47ce-b8c6-ec8168f437e5")
  4451. ID3D12CommandList : public ID3D12DeviceChild
  4452. {
  4453. public:
  4454. virtual D3D12_COMMAND_LIST_TYPE STDMETHODCALLTYPE GetType( void) = 0;
  4455. };
  4456. #else /* C style interface */
  4457. typedef struct ID3D12CommandListVtbl
  4458. {
  4459. BEGIN_INTERFACE
  4460. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4461. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4462. ID3D12CommandList * This,
  4463. REFIID riid,
  4464. _COM_Outptr_ void **ppvObject);
  4465. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4466. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4467. ID3D12CommandList * This);
  4468. DECLSPEC_XFGVIRT(IUnknown, Release)
  4469. ULONG ( STDMETHODCALLTYPE *Release )(
  4470. ID3D12CommandList * This);
  4471. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4472. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4473. ID3D12CommandList * This,
  4474. _In_ REFGUID guid,
  4475. _Inout_ UINT *pDataSize,
  4476. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4477. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4478. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4479. ID3D12CommandList * This,
  4480. _In_ REFGUID guid,
  4481. _In_ UINT DataSize,
  4482. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4483. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4484. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4485. ID3D12CommandList * This,
  4486. _In_ REFGUID guid,
  4487. _In_opt_ const IUnknown *pData);
  4488. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4489. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4490. ID3D12CommandList * This,
  4491. _In_z_ LPCWSTR Name);
  4492. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4493. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4494. ID3D12CommandList * This,
  4495. REFIID riid,
  4496. _COM_Outptr_opt_ void **ppvDevice);
  4497. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  4498. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  4499. ID3D12CommandList * This);
  4500. END_INTERFACE
  4501. } ID3D12CommandListVtbl;
  4502. interface ID3D12CommandList
  4503. {
  4504. CONST_VTBL struct ID3D12CommandListVtbl *lpVtbl;
  4505. };
  4506. #ifdef COBJMACROS
  4507. #define ID3D12CommandList_QueryInterface(This,riid,ppvObject) \
  4508. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  4509. #define ID3D12CommandList_AddRef(This) \
  4510. ( (This)->lpVtbl -> AddRef(This) )
  4511. #define ID3D12CommandList_Release(This) \
  4512. ( (This)->lpVtbl -> Release(This) )
  4513. #define ID3D12CommandList_GetPrivateData(This,guid,pDataSize,pData) \
  4514. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  4515. #define ID3D12CommandList_SetPrivateData(This,guid,DataSize,pData) \
  4516. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  4517. #define ID3D12CommandList_SetPrivateDataInterface(This,guid,pData) \
  4518. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  4519. #define ID3D12CommandList_SetName(This,Name) \
  4520. ( (This)->lpVtbl -> SetName(This,Name) )
  4521. #define ID3D12CommandList_GetDevice(This,riid,ppvDevice) \
  4522. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  4523. #define ID3D12CommandList_GetType(This) \
  4524. ( (This)->lpVtbl -> GetType(This) )
  4525. #endif /* COBJMACROS */
  4526. #endif /* C style interface */
  4527. #endif /* __ID3D12CommandList_INTERFACE_DEFINED__ */
  4528. #ifndef __ID3D12GraphicsCommandList_INTERFACE_DEFINED__
  4529. #define __ID3D12GraphicsCommandList_INTERFACE_DEFINED__
  4530. /* interface ID3D12GraphicsCommandList */
  4531. /* [unique][local][object][uuid] */
  4532. EXTERN_C const IID IID_ID3D12GraphicsCommandList;
  4533. #if defined(__cplusplus) && !defined(CINTERFACE)
  4534. MIDL_INTERFACE("5b160d0f-ac1b-4185-8ba8-b3ae42a5a455")
  4535. ID3D12GraphicsCommandList : public ID3D12CommandList
  4536. {
  4537. public:
  4538. virtual HRESULT STDMETHODCALLTYPE Close( void) = 0;
  4539. virtual HRESULT STDMETHODCALLTYPE Reset(
  4540. _In_ ID3D12CommandAllocator *pAllocator,
  4541. _In_opt_ ID3D12PipelineState *pInitialState) = 0;
  4542. virtual void STDMETHODCALLTYPE ClearState(
  4543. _In_opt_ ID3D12PipelineState *pPipelineState) = 0;
  4544. virtual void STDMETHODCALLTYPE DrawInstanced(
  4545. _In_ UINT VertexCountPerInstance,
  4546. _In_ UINT InstanceCount,
  4547. _In_ UINT StartVertexLocation,
  4548. _In_ UINT StartInstanceLocation) = 0;
  4549. virtual void STDMETHODCALLTYPE DrawIndexedInstanced(
  4550. _In_ UINT IndexCountPerInstance,
  4551. _In_ UINT InstanceCount,
  4552. _In_ UINT StartIndexLocation,
  4553. _In_ INT BaseVertexLocation,
  4554. _In_ UINT StartInstanceLocation) = 0;
  4555. virtual void STDMETHODCALLTYPE Dispatch(
  4556. _In_ UINT ThreadGroupCountX,
  4557. _In_ UINT ThreadGroupCountY,
  4558. _In_ UINT ThreadGroupCountZ) = 0;
  4559. virtual void STDMETHODCALLTYPE CopyBufferRegion(
  4560. _In_ ID3D12Resource *pDstBuffer,
  4561. UINT64 DstOffset,
  4562. _In_ ID3D12Resource *pSrcBuffer,
  4563. UINT64 SrcOffset,
  4564. UINT64 NumBytes) = 0;
  4565. virtual void STDMETHODCALLTYPE CopyTextureRegion(
  4566. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  4567. UINT DstX,
  4568. UINT DstY,
  4569. UINT DstZ,
  4570. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  4571. _In_opt_ const D3D12_BOX *pSrcBox) = 0;
  4572. virtual void STDMETHODCALLTYPE CopyResource(
  4573. _In_ ID3D12Resource *pDstResource,
  4574. _In_ ID3D12Resource *pSrcResource) = 0;
  4575. virtual void STDMETHODCALLTYPE CopyTiles(
  4576. _In_ ID3D12Resource *pTiledResource,
  4577. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  4578. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  4579. _In_ ID3D12Resource *pBuffer,
  4580. UINT64 BufferStartOffsetInBytes,
  4581. D3D12_TILE_COPY_FLAGS Flags) = 0;
  4582. virtual void STDMETHODCALLTYPE ResolveSubresource(
  4583. _In_ ID3D12Resource *pDstResource,
  4584. _In_ UINT DstSubresource,
  4585. _In_ ID3D12Resource *pSrcResource,
  4586. _In_ UINT SrcSubresource,
  4587. _In_ DXGI_FORMAT Format) = 0;
  4588. virtual void STDMETHODCALLTYPE IASetPrimitiveTopology(
  4589. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology) = 0;
  4590. virtual void STDMETHODCALLTYPE RSSetViewports(
  4591. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  4592. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports) = 0;
  4593. virtual void STDMETHODCALLTYPE RSSetScissorRects(
  4594. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  4595. _In_reads_( NumRects) const D3D12_RECT *pRects) = 0;
  4596. virtual void STDMETHODCALLTYPE OMSetBlendFactor(
  4597. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]) = 0;
  4598. virtual void STDMETHODCALLTYPE OMSetStencilRef(
  4599. _In_ UINT StencilRef) = 0;
  4600. virtual void STDMETHODCALLTYPE SetPipelineState(
  4601. _In_ ID3D12PipelineState *pPipelineState) = 0;
  4602. virtual void STDMETHODCALLTYPE ResourceBarrier(
  4603. _In_ UINT NumBarriers,
  4604. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers) = 0;
  4605. virtual void STDMETHODCALLTYPE ExecuteBundle(
  4606. _In_ ID3D12GraphicsCommandList *pCommandList) = 0;
  4607. virtual void STDMETHODCALLTYPE SetDescriptorHeaps(
  4608. _In_ UINT NumDescriptorHeaps,
  4609. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps) = 0;
  4610. virtual void STDMETHODCALLTYPE SetComputeRootSignature(
  4611. _In_opt_ ID3D12RootSignature *pRootSignature) = 0;
  4612. virtual void STDMETHODCALLTYPE SetGraphicsRootSignature(
  4613. _In_opt_ ID3D12RootSignature *pRootSignature) = 0;
  4614. virtual void STDMETHODCALLTYPE SetComputeRootDescriptorTable(
  4615. _In_ UINT RootParameterIndex,
  4616. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor) = 0;
  4617. virtual void STDMETHODCALLTYPE SetGraphicsRootDescriptorTable(
  4618. _In_ UINT RootParameterIndex,
  4619. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor) = 0;
  4620. virtual void STDMETHODCALLTYPE SetComputeRoot32BitConstant(
  4621. _In_ UINT RootParameterIndex,
  4622. _In_ UINT SrcData,
  4623. _In_ UINT DestOffsetIn32BitValues) = 0;
  4624. virtual void STDMETHODCALLTYPE SetGraphicsRoot32BitConstant(
  4625. _In_ UINT RootParameterIndex,
  4626. _In_ UINT SrcData,
  4627. _In_ UINT DestOffsetIn32BitValues) = 0;
  4628. virtual void STDMETHODCALLTYPE SetComputeRoot32BitConstants(
  4629. _In_ UINT RootParameterIndex,
  4630. _In_ UINT Num32BitValuesToSet,
  4631. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  4632. _In_ UINT DestOffsetIn32BitValues) = 0;
  4633. virtual void STDMETHODCALLTYPE SetGraphicsRoot32BitConstants(
  4634. _In_ UINT RootParameterIndex,
  4635. _In_ UINT Num32BitValuesToSet,
  4636. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  4637. _In_ UINT DestOffsetIn32BitValues) = 0;
  4638. virtual void STDMETHODCALLTYPE SetComputeRootConstantBufferView(
  4639. _In_ UINT RootParameterIndex,
  4640. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4641. virtual void STDMETHODCALLTYPE SetGraphicsRootConstantBufferView(
  4642. _In_ UINT RootParameterIndex,
  4643. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4644. virtual void STDMETHODCALLTYPE SetComputeRootShaderResourceView(
  4645. _In_ UINT RootParameterIndex,
  4646. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4647. virtual void STDMETHODCALLTYPE SetGraphicsRootShaderResourceView(
  4648. _In_ UINT RootParameterIndex,
  4649. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4650. virtual void STDMETHODCALLTYPE SetComputeRootUnorderedAccessView(
  4651. _In_ UINT RootParameterIndex,
  4652. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4653. virtual void STDMETHODCALLTYPE SetGraphicsRootUnorderedAccessView(
  4654. _In_ UINT RootParameterIndex,
  4655. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0;
  4656. virtual void STDMETHODCALLTYPE IASetIndexBuffer(
  4657. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView) = 0;
  4658. virtual void STDMETHODCALLTYPE IASetVertexBuffers(
  4659. _In_ UINT StartSlot,
  4660. _In_ UINT NumViews,
  4661. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews) = 0;
  4662. virtual void STDMETHODCALLTYPE SOSetTargets(
  4663. _In_ UINT StartSlot,
  4664. _In_ UINT NumViews,
  4665. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews) = 0;
  4666. virtual void STDMETHODCALLTYPE OMSetRenderTargets(
  4667. _In_ UINT NumRenderTargetDescriptors,
  4668. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  4669. _In_ BOOL RTsSingleHandleToDescriptorRange,
  4670. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor) = 0;
  4671. virtual void STDMETHODCALLTYPE ClearDepthStencilView(
  4672. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  4673. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  4674. _In_ FLOAT Depth,
  4675. _In_ UINT8 Stencil,
  4676. _In_ UINT NumRects,
  4677. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4678. virtual void STDMETHODCALLTYPE ClearRenderTargetView(
  4679. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  4680. _In_ const FLOAT ColorRGBA[ 4 ],
  4681. _In_ UINT NumRects,
  4682. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4683. virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewUint(
  4684. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  4685. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  4686. _In_ ID3D12Resource *pResource,
  4687. _In_ const UINT Values[ 4 ],
  4688. _In_ UINT NumRects,
  4689. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4690. virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewFloat(
  4691. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  4692. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  4693. _In_ ID3D12Resource *pResource,
  4694. _In_ const FLOAT Values[ 4 ],
  4695. _In_ UINT NumRects,
  4696. _In_reads_(NumRects) const D3D12_RECT *pRects) = 0;
  4697. virtual void STDMETHODCALLTYPE DiscardResource(
  4698. _In_ ID3D12Resource *pResource,
  4699. _In_opt_ const D3D12_DISCARD_REGION *pRegion) = 0;
  4700. virtual void STDMETHODCALLTYPE BeginQuery(
  4701. _In_ ID3D12QueryHeap *pQueryHeap,
  4702. _In_ D3D12_QUERY_TYPE Type,
  4703. _In_ UINT Index) = 0;
  4704. virtual void STDMETHODCALLTYPE EndQuery(
  4705. _In_ ID3D12QueryHeap *pQueryHeap,
  4706. _In_ D3D12_QUERY_TYPE Type,
  4707. _In_ UINT Index) = 0;
  4708. virtual void STDMETHODCALLTYPE ResolveQueryData(
  4709. _In_ ID3D12QueryHeap *pQueryHeap,
  4710. _In_ D3D12_QUERY_TYPE Type,
  4711. _In_ UINT StartIndex,
  4712. _In_ UINT NumQueries,
  4713. _In_ ID3D12Resource *pDestinationBuffer,
  4714. _In_ UINT64 AlignedDestinationBufferOffset) = 0;
  4715. virtual void STDMETHODCALLTYPE SetPredication(
  4716. _In_opt_ ID3D12Resource *pBuffer,
  4717. _In_ UINT64 AlignedBufferOffset,
  4718. _In_ D3D12_PREDICATION_OP Operation) = 0;
  4719. virtual void STDMETHODCALLTYPE SetMarker(
  4720. UINT Metadata,
  4721. _In_reads_bytes_opt_(Size) const void *pData,
  4722. UINT Size) = 0;
  4723. virtual void STDMETHODCALLTYPE BeginEvent(
  4724. UINT Metadata,
  4725. _In_reads_bytes_opt_(Size) const void *pData,
  4726. UINT Size) = 0;
  4727. virtual void STDMETHODCALLTYPE EndEvent( void) = 0;
  4728. virtual void STDMETHODCALLTYPE ExecuteIndirect(
  4729. _In_ ID3D12CommandSignature *pCommandSignature,
  4730. _In_ UINT MaxCommandCount,
  4731. _In_ ID3D12Resource *pArgumentBuffer,
  4732. _In_ UINT64 ArgumentBufferOffset,
  4733. _In_opt_ ID3D12Resource *pCountBuffer,
  4734. _In_ UINT64 CountBufferOffset) = 0;
  4735. };
  4736. #else /* C style interface */
  4737. typedef struct ID3D12GraphicsCommandListVtbl
  4738. {
  4739. BEGIN_INTERFACE
  4740. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  4741. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4742. ID3D12GraphicsCommandList * This,
  4743. REFIID riid,
  4744. _COM_Outptr_ void **ppvObject);
  4745. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  4746. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4747. ID3D12GraphicsCommandList * This);
  4748. DECLSPEC_XFGVIRT(IUnknown, Release)
  4749. ULONG ( STDMETHODCALLTYPE *Release )(
  4750. ID3D12GraphicsCommandList * This);
  4751. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  4752. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  4753. ID3D12GraphicsCommandList * This,
  4754. _In_ REFGUID guid,
  4755. _Inout_ UINT *pDataSize,
  4756. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  4757. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  4758. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  4759. ID3D12GraphicsCommandList * This,
  4760. _In_ REFGUID guid,
  4761. _In_ UINT DataSize,
  4762. _In_reads_bytes_opt_( DataSize ) const void *pData);
  4763. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  4764. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  4765. ID3D12GraphicsCommandList * This,
  4766. _In_ REFGUID guid,
  4767. _In_opt_ const IUnknown *pData);
  4768. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  4769. HRESULT ( STDMETHODCALLTYPE *SetName )(
  4770. ID3D12GraphicsCommandList * This,
  4771. _In_z_ LPCWSTR Name);
  4772. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  4773. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  4774. ID3D12GraphicsCommandList * This,
  4775. REFIID riid,
  4776. _COM_Outptr_opt_ void **ppvDevice);
  4777. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  4778. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  4779. ID3D12GraphicsCommandList * This);
  4780. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  4781. HRESULT ( STDMETHODCALLTYPE *Close )(
  4782. ID3D12GraphicsCommandList * This);
  4783. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  4784. HRESULT ( STDMETHODCALLTYPE *Reset )(
  4785. ID3D12GraphicsCommandList * This,
  4786. _In_ ID3D12CommandAllocator *pAllocator,
  4787. _In_opt_ ID3D12PipelineState *pInitialState);
  4788. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  4789. void ( STDMETHODCALLTYPE *ClearState )(
  4790. ID3D12GraphicsCommandList * This,
  4791. _In_opt_ ID3D12PipelineState *pPipelineState);
  4792. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  4793. void ( STDMETHODCALLTYPE *DrawInstanced )(
  4794. ID3D12GraphicsCommandList * This,
  4795. _In_ UINT VertexCountPerInstance,
  4796. _In_ UINT InstanceCount,
  4797. _In_ UINT StartVertexLocation,
  4798. _In_ UINT StartInstanceLocation);
  4799. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  4800. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  4801. ID3D12GraphicsCommandList * This,
  4802. _In_ UINT IndexCountPerInstance,
  4803. _In_ UINT InstanceCount,
  4804. _In_ UINT StartIndexLocation,
  4805. _In_ INT BaseVertexLocation,
  4806. _In_ UINT StartInstanceLocation);
  4807. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  4808. void ( STDMETHODCALLTYPE *Dispatch )(
  4809. ID3D12GraphicsCommandList * This,
  4810. _In_ UINT ThreadGroupCountX,
  4811. _In_ UINT ThreadGroupCountY,
  4812. _In_ UINT ThreadGroupCountZ);
  4813. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  4814. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  4815. ID3D12GraphicsCommandList * This,
  4816. _In_ ID3D12Resource *pDstBuffer,
  4817. UINT64 DstOffset,
  4818. _In_ ID3D12Resource *pSrcBuffer,
  4819. UINT64 SrcOffset,
  4820. UINT64 NumBytes);
  4821. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  4822. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  4823. ID3D12GraphicsCommandList * This,
  4824. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  4825. UINT DstX,
  4826. UINT DstY,
  4827. UINT DstZ,
  4828. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  4829. _In_opt_ const D3D12_BOX *pSrcBox);
  4830. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  4831. void ( STDMETHODCALLTYPE *CopyResource )(
  4832. ID3D12GraphicsCommandList * This,
  4833. _In_ ID3D12Resource *pDstResource,
  4834. _In_ ID3D12Resource *pSrcResource);
  4835. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  4836. void ( STDMETHODCALLTYPE *CopyTiles )(
  4837. ID3D12GraphicsCommandList * This,
  4838. _In_ ID3D12Resource *pTiledResource,
  4839. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  4840. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  4841. _In_ ID3D12Resource *pBuffer,
  4842. UINT64 BufferStartOffsetInBytes,
  4843. D3D12_TILE_COPY_FLAGS Flags);
  4844. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  4845. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  4846. ID3D12GraphicsCommandList * This,
  4847. _In_ ID3D12Resource *pDstResource,
  4848. _In_ UINT DstSubresource,
  4849. _In_ ID3D12Resource *pSrcResource,
  4850. _In_ UINT SrcSubresource,
  4851. _In_ DXGI_FORMAT Format);
  4852. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  4853. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  4854. ID3D12GraphicsCommandList * This,
  4855. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  4856. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  4857. void ( STDMETHODCALLTYPE *RSSetViewports )(
  4858. ID3D12GraphicsCommandList * This,
  4859. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  4860. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  4861. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  4862. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  4863. ID3D12GraphicsCommandList * This,
  4864. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  4865. _In_reads_( NumRects) const D3D12_RECT *pRects);
  4866. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  4867. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  4868. ID3D12GraphicsCommandList * This,
  4869. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  4870. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  4871. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  4872. ID3D12GraphicsCommandList * This,
  4873. _In_ UINT StencilRef);
  4874. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  4875. void ( STDMETHODCALLTYPE *SetPipelineState )(
  4876. ID3D12GraphicsCommandList * This,
  4877. _In_ ID3D12PipelineState *pPipelineState);
  4878. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  4879. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  4880. ID3D12GraphicsCommandList * This,
  4881. _In_ UINT NumBarriers,
  4882. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  4883. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  4884. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  4885. ID3D12GraphicsCommandList * This,
  4886. _In_ ID3D12GraphicsCommandList *pCommandList);
  4887. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  4888. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  4889. ID3D12GraphicsCommandList * This,
  4890. _In_ UINT NumDescriptorHeaps,
  4891. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  4892. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  4893. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  4894. ID3D12GraphicsCommandList * This,
  4895. _In_opt_ ID3D12RootSignature *pRootSignature);
  4896. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  4897. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  4898. ID3D12GraphicsCommandList * This,
  4899. _In_opt_ ID3D12RootSignature *pRootSignature);
  4900. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  4901. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  4902. ID3D12GraphicsCommandList * This,
  4903. _In_ UINT RootParameterIndex,
  4904. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  4905. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  4906. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  4907. ID3D12GraphicsCommandList * This,
  4908. _In_ UINT RootParameterIndex,
  4909. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  4910. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  4911. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  4912. ID3D12GraphicsCommandList * This,
  4913. _In_ UINT RootParameterIndex,
  4914. _In_ UINT SrcData,
  4915. _In_ UINT DestOffsetIn32BitValues);
  4916. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  4917. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  4918. ID3D12GraphicsCommandList * This,
  4919. _In_ UINT RootParameterIndex,
  4920. _In_ UINT SrcData,
  4921. _In_ UINT DestOffsetIn32BitValues);
  4922. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  4923. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  4924. ID3D12GraphicsCommandList * This,
  4925. _In_ UINT RootParameterIndex,
  4926. _In_ UINT Num32BitValuesToSet,
  4927. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  4928. _In_ UINT DestOffsetIn32BitValues);
  4929. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  4930. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  4931. ID3D12GraphicsCommandList * This,
  4932. _In_ UINT RootParameterIndex,
  4933. _In_ UINT Num32BitValuesToSet,
  4934. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  4935. _In_ UINT DestOffsetIn32BitValues);
  4936. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  4937. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  4938. ID3D12GraphicsCommandList * This,
  4939. _In_ UINT RootParameterIndex,
  4940. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  4941. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  4942. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  4943. ID3D12GraphicsCommandList * This,
  4944. _In_ UINT RootParameterIndex,
  4945. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  4946. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  4947. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  4948. ID3D12GraphicsCommandList * This,
  4949. _In_ UINT RootParameterIndex,
  4950. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  4951. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  4952. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  4953. ID3D12GraphicsCommandList * This,
  4954. _In_ UINT RootParameterIndex,
  4955. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  4956. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  4957. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  4958. ID3D12GraphicsCommandList * This,
  4959. _In_ UINT RootParameterIndex,
  4960. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  4961. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  4962. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  4963. ID3D12GraphicsCommandList * This,
  4964. _In_ UINT RootParameterIndex,
  4965. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  4966. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  4967. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  4968. ID3D12GraphicsCommandList * This,
  4969. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  4970. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  4971. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  4972. ID3D12GraphicsCommandList * This,
  4973. _In_ UINT StartSlot,
  4974. _In_ UINT NumViews,
  4975. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  4976. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  4977. void ( STDMETHODCALLTYPE *SOSetTargets )(
  4978. ID3D12GraphicsCommandList * This,
  4979. _In_ UINT StartSlot,
  4980. _In_ UINT NumViews,
  4981. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  4982. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  4983. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  4984. ID3D12GraphicsCommandList * This,
  4985. _In_ UINT NumRenderTargetDescriptors,
  4986. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  4987. _In_ BOOL RTsSingleHandleToDescriptorRange,
  4988. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  4989. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  4990. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  4991. ID3D12GraphicsCommandList * This,
  4992. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  4993. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  4994. _In_ FLOAT Depth,
  4995. _In_ UINT8 Stencil,
  4996. _In_ UINT NumRects,
  4997. _In_reads_(NumRects) const D3D12_RECT *pRects);
  4998. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  4999. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  5000. ID3D12GraphicsCommandList * This,
  5001. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  5002. _In_ const FLOAT ColorRGBA[ 4 ],
  5003. _In_ UINT NumRects,
  5004. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5005. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  5006. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  5007. ID3D12GraphicsCommandList * This,
  5008. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5009. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5010. _In_ ID3D12Resource *pResource,
  5011. _In_ const UINT Values[ 4 ],
  5012. _In_ UINT NumRects,
  5013. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5014. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  5015. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  5016. ID3D12GraphicsCommandList * This,
  5017. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5018. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5019. _In_ ID3D12Resource *pResource,
  5020. _In_ const FLOAT Values[ 4 ],
  5021. _In_ UINT NumRects,
  5022. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5023. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  5024. void ( STDMETHODCALLTYPE *DiscardResource )(
  5025. ID3D12GraphicsCommandList * This,
  5026. _In_ ID3D12Resource *pResource,
  5027. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  5028. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  5029. void ( STDMETHODCALLTYPE *BeginQuery )(
  5030. ID3D12GraphicsCommandList * This,
  5031. _In_ ID3D12QueryHeap *pQueryHeap,
  5032. _In_ D3D12_QUERY_TYPE Type,
  5033. _In_ UINT Index);
  5034. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  5035. void ( STDMETHODCALLTYPE *EndQuery )(
  5036. ID3D12GraphicsCommandList * This,
  5037. _In_ ID3D12QueryHeap *pQueryHeap,
  5038. _In_ D3D12_QUERY_TYPE Type,
  5039. _In_ UINT Index);
  5040. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  5041. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  5042. ID3D12GraphicsCommandList * This,
  5043. _In_ ID3D12QueryHeap *pQueryHeap,
  5044. _In_ D3D12_QUERY_TYPE Type,
  5045. _In_ UINT StartIndex,
  5046. _In_ UINT NumQueries,
  5047. _In_ ID3D12Resource *pDestinationBuffer,
  5048. _In_ UINT64 AlignedDestinationBufferOffset);
  5049. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  5050. void ( STDMETHODCALLTYPE *SetPredication )(
  5051. ID3D12GraphicsCommandList * This,
  5052. _In_opt_ ID3D12Resource *pBuffer,
  5053. _In_ UINT64 AlignedBufferOffset,
  5054. _In_ D3D12_PREDICATION_OP Operation);
  5055. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  5056. void ( STDMETHODCALLTYPE *SetMarker )(
  5057. ID3D12GraphicsCommandList * This,
  5058. UINT Metadata,
  5059. _In_reads_bytes_opt_(Size) const void *pData,
  5060. UINT Size);
  5061. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  5062. void ( STDMETHODCALLTYPE *BeginEvent )(
  5063. ID3D12GraphicsCommandList * This,
  5064. UINT Metadata,
  5065. _In_reads_bytes_opt_(Size) const void *pData,
  5066. UINT Size);
  5067. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  5068. void ( STDMETHODCALLTYPE *EndEvent )(
  5069. ID3D12GraphicsCommandList * This);
  5070. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  5071. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  5072. ID3D12GraphicsCommandList * This,
  5073. _In_ ID3D12CommandSignature *pCommandSignature,
  5074. _In_ UINT MaxCommandCount,
  5075. _In_ ID3D12Resource *pArgumentBuffer,
  5076. _In_ UINT64 ArgumentBufferOffset,
  5077. _In_opt_ ID3D12Resource *pCountBuffer,
  5078. _In_ UINT64 CountBufferOffset);
  5079. END_INTERFACE
  5080. } ID3D12GraphicsCommandListVtbl;
  5081. interface ID3D12GraphicsCommandList
  5082. {
  5083. CONST_VTBL struct ID3D12GraphicsCommandListVtbl *lpVtbl;
  5084. };
  5085. #ifdef COBJMACROS
  5086. #define ID3D12GraphicsCommandList_QueryInterface(This,riid,ppvObject) \
  5087. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  5088. #define ID3D12GraphicsCommandList_AddRef(This) \
  5089. ( (This)->lpVtbl -> AddRef(This) )
  5090. #define ID3D12GraphicsCommandList_Release(This) \
  5091. ( (This)->lpVtbl -> Release(This) )
  5092. #define ID3D12GraphicsCommandList_GetPrivateData(This,guid,pDataSize,pData) \
  5093. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  5094. #define ID3D12GraphicsCommandList_SetPrivateData(This,guid,DataSize,pData) \
  5095. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  5096. #define ID3D12GraphicsCommandList_SetPrivateDataInterface(This,guid,pData) \
  5097. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  5098. #define ID3D12GraphicsCommandList_SetName(This,Name) \
  5099. ( (This)->lpVtbl -> SetName(This,Name) )
  5100. #define ID3D12GraphicsCommandList_GetDevice(This,riid,ppvDevice) \
  5101. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  5102. #define ID3D12GraphicsCommandList_GetType(This) \
  5103. ( (This)->lpVtbl -> GetType(This) )
  5104. #define ID3D12GraphicsCommandList_Close(This) \
  5105. ( (This)->lpVtbl -> Close(This) )
  5106. #define ID3D12GraphicsCommandList_Reset(This,pAllocator,pInitialState) \
  5107. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  5108. #define ID3D12GraphicsCommandList_ClearState(This,pPipelineState) \
  5109. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  5110. #define ID3D12GraphicsCommandList_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  5111. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  5112. #define ID3D12GraphicsCommandList_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  5113. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  5114. #define ID3D12GraphicsCommandList_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  5115. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  5116. #define ID3D12GraphicsCommandList_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  5117. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  5118. #define ID3D12GraphicsCommandList_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  5119. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  5120. #define ID3D12GraphicsCommandList_CopyResource(This,pDstResource,pSrcResource) \
  5121. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  5122. #define ID3D12GraphicsCommandList_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  5123. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  5124. #define ID3D12GraphicsCommandList_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  5125. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  5126. #define ID3D12GraphicsCommandList_IASetPrimitiveTopology(This,PrimitiveTopology) \
  5127. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  5128. #define ID3D12GraphicsCommandList_RSSetViewports(This,NumViewports,pViewports) \
  5129. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  5130. #define ID3D12GraphicsCommandList_RSSetScissorRects(This,NumRects,pRects) \
  5131. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  5132. #define ID3D12GraphicsCommandList_OMSetBlendFactor(This,BlendFactor) \
  5133. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  5134. #define ID3D12GraphicsCommandList_OMSetStencilRef(This,StencilRef) \
  5135. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  5136. #define ID3D12GraphicsCommandList_SetPipelineState(This,pPipelineState) \
  5137. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  5138. #define ID3D12GraphicsCommandList_ResourceBarrier(This,NumBarriers,pBarriers) \
  5139. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  5140. #define ID3D12GraphicsCommandList_ExecuteBundle(This,pCommandList) \
  5141. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  5142. #define ID3D12GraphicsCommandList_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  5143. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  5144. #define ID3D12GraphicsCommandList_SetComputeRootSignature(This,pRootSignature) \
  5145. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  5146. #define ID3D12GraphicsCommandList_SetGraphicsRootSignature(This,pRootSignature) \
  5147. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  5148. #define ID3D12GraphicsCommandList_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5149. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5150. #define ID3D12GraphicsCommandList_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5151. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5152. #define ID3D12GraphicsCommandList_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5153. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5154. #define ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5155. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5156. #define ID3D12GraphicsCommandList_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5157. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5158. #define ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5159. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5160. #define ID3D12GraphicsCommandList_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5161. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5162. #define ID3D12GraphicsCommandList_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5163. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5164. #define ID3D12GraphicsCommandList_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5165. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5166. #define ID3D12GraphicsCommandList_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5167. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5168. #define ID3D12GraphicsCommandList_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5169. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5170. #define ID3D12GraphicsCommandList_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5171. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5172. #define ID3D12GraphicsCommandList_IASetIndexBuffer(This,pView) \
  5173. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  5174. #define ID3D12GraphicsCommandList_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  5175. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  5176. #define ID3D12GraphicsCommandList_SOSetTargets(This,StartSlot,NumViews,pViews) \
  5177. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  5178. #define ID3D12GraphicsCommandList_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  5179. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  5180. #define ID3D12GraphicsCommandList_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  5181. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  5182. #define ID3D12GraphicsCommandList_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  5183. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  5184. #define ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5185. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5186. #define ID3D12GraphicsCommandList_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5187. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5188. #define ID3D12GraphicsCommandList_DiscardResource(This,pResource,pRegion) \
  5189. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  5190. #define ID3D12GraphicsCommandList_BeginQuery(This,pQueryHeap,Type,Index) \
  5191. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  5192. #define ID3D12GraphicsCommandList_EndQuery(This,pQueryHeap,Type,Index) \
  5193. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  5194. #define ID3D12GraphicsCommandList_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  5195. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  5196. #define ID3D12GraphicsCommandList_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  5197. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  5198. #define ID3D12GraphicsCommandList_SetMarker(This,Metadata,pData,Size) \
  5199. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  5200. #define ID3D12GraphicsCommandList_BeginEvent(This,Metadata,pData,Size) \
  5201. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  5202. #define ID3D12GraphicsCommandList_EndEvent(This) \
  5203. ( (This)->lpVtbl -> EndEvent(This) )
  5204. #define ID3D12GraphicsCommandList_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  5205. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  5206. #endif /* COBJMACROS */
  5207. #endif /* C style interface */
  5208. #endif /* __ID3D12GraphicsCommandList_INTERFACE_DEFINED__ */
  5209. #ifndef __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__
  5210. #define __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__
  5211. /* interface ID3D12GraphicsCommandList1 */
  5212. /* [unique][local][object][uuid] */
  5213. EXTERN_C const IID IID_ID3D12GraphicsCommandList1;
  5214. #if defined(__cplusplus) && !defined(CINTERFACE)
  5215. MIDL_INTERFACE("553103fb-1fe7-4557-bb38-946d7d0e7ca7")
  5216. ID3D12GraphicsCommandList1 : public ID3D12GraphicsCommandList
  5217. {
  5218. public:
  5219. virtual void STDMETHODCALLTYPE AtomicCopyBufferUINT(
  5220. _In_ ID3D12Resource *pDstBuffer,
  5221. UINT64 DstOffset,
  5222. _In_ ID3D12Resource *pSrcBuffer,
  5223. UINT64 SrcOffset,
  5224. UINT Dependencies,
  5225. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5226. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges) = 0;
  5227. virtual void STDMETHODCALLTYPE AtomicCopyBufferUINT64(
  5228. _In_ ID3D12Resource *pDstBuffer,
  5229. UINT64 DstOffset,
  5230. _In_ ID3D12Resource *pSrcBuffer,
  5231. UINT64 SrcOffset,
  5232. UINT Dependencies,
  5233. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5234. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges) = 0;
  5235. virtual void STDMETHODCALLTYPE OMSetDepthBounds(
  5236. _In_ FLOAT Min,
  5237. _In_ FLOAT Max) = 0;
  5238. virtual void STDMETHODCALLTYPE SetSamplePositions(
  5239. _In_ UINT NumSamplesPerPixel,
  5240. _In_ UINT NumPixels,
  5241. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions) = 0;
  5242. virtual void STDMETHODCALLTYPE ResolveSubresourceRegion(
  5243. _In_ ID3D12Resource *pDstResource,
  5244. _In_ UINT DstSubresource,
  5245. _In_ UINT DstX,
  5246. _In_ UINT DstY,
  5247. _In_ ID3D12Resource *pSrcResource,
  5248. _In_ UINT SrcSubresource,
  5249. _In_opt_ D3D12_RECT *pSrcRect,
  5250. _In_ DXGI_FORMAT Format,
  5251. _In_ D3D12_RESOLVE_MODE ResolveMode) = 0;
  5252. virtual void STDMETHODCALLTYPE SetViewInstanceMask(
  5253. _In_ UINT Mask) = 0;
  5254. };
  5255. #else /* C style interface */
  5256. typedef struct ID3D12GraphicsCommandList1Vtbl
  5257. {
  5258. BEGIN_INTERFACE
  5259. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  5260. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5261. ID3D12GraphicsCommandList1 * This,
  5262. REFIID riid,
  5263. _COM_Outptr_ void **ppvObject);
  5264. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  5265. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5266. ID3D12GraphicsCommandList1 * This);
  5267. DECLSPEC_XFGVIRT(IUnknown, Release)
  5268. ULONG ( STDMETHODCALLTYPE *Release )(
  5269. ID3D12GraphicsCommandList1 * This);
  5270. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  5271. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  5272. ID3D12GraphicsCommandList1 * This,
  5273. _In_ REFGUID guid,
  5274. _Inout_ UINT *pDataSize,
  5275. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  5276. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  5277. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  5278. ID3D12GraphicsCommandList1 * This,
  5279. _In_ REFGUID guid,
  5280. _In_ UINT DataSize,
  5281. _In_reads_bytes_opt_( DataSize ) const void *pData);
  5282. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  5283. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  5284. ID3D12GraphicsCommandList1 * This,
  5285. _In_ REFGUID guid,
  5286. _In_opt_ const IUnknown *pData);
  5287. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  5288. HRESULT ( STDMETHODCALLTYPE *SetName )(
  5289. ID3D12GraphicsCommandList1 * This,
  5290. _In_z_ LPCWSTR Name);
  5291. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  5292. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  5293. ID3D12GraphicsCommandList1 * This,
  5294. REFIID riid,
  5295. _COM_Outptr_opt_ void **ppvDevice);
  5296. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  5297. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  5298. ID3D12GraphicsCommandList1 * This);
  5299. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  5300. HRESULT ( STDMETHODCALLTYPE *Close )(
  5301. ID3D12GraphicsCommandList1 * This);
  5302. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  5303. HRESULT ( STDMETHODCALLTYPE *Reset )(
  5304. ID3D12GraphicsCommandList1 * This,
  5305. _In_ ID3D12CommandAllocator *pAllocator,
  5306. _In_opt_ ID3D12PipelineState *pInitialState);
  5307. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  5308. void ( STDMETHODCALLTYPE *ClearState )(
  5309. ID3D12GraphicsCommandList1 * This,
  5310. _In_opt_ ID3D12PipelineState *pPipelineState);
  5311. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  5312. void ( STDMETHODCALLTYPE *DrawInstanced )(
  5313. ID3D12GraphicsCommandList1 * This,
  5314. _In_ UINT VertexCountPerInstance,
  5315. _In_ UINT InstanceCount,
  5316. _In_ UINT StartVertexLocation,
  5317. _In_ UINT StartInstanceLocation);
  5318. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  5319. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  5320. ID3D12GraphicsCommandList1 * This,
  5321. _In_ UINT IndexCountPerInstance,
  5322. _In_ UINT InstanceCount,
  5323. _In_ UINT StartIndexLocation,
  5324. _In_ INT BaseVertexLocation,
  5325. _In_ UINT StartInstanceLocation);
  5326. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  5327. void ( STDMETHODCALLTYPE *Dispatch )(
  5328. ID3D12GraphicsCommandList1 * This,
  5329. _In_ UINT ThreadGroupCountX,
  5330. _In_ UINT ThreadGroupCountY,
  5331. _In_ UINT ThreadGroupCountZ);
  5332. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  5333. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  5334. ID3D12GraphicsCommandList1 * This,
  5335. _In_ ID3D12Resource *pDstBuffer,
  5336. UINT64 DstOffset,
  5337. _In_ ID3D12Resource *pSrcBuffer,
  5338. UINT64 SrcOffset,
  5339. UINT64 NumBytes);
  5340. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  5341. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  5342. ID3D12GraphicsCommandList1 * This,
  5343. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  5344. UINT DstX,
  5345. UINT DstY,
  5346. UINT DstZ,
  5347. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  5348. _In_opt_ const D3D12_BOX *pSrcBox);
  5349. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  5350. void ( STDMETHODCALLTYPE *CopyResource )(
  5351. ID3D12GraphicsCommandList1 * This,
  5352. _In_ ID3D12Resource *pDstResource,
  5353. _In_ ID3D12Resource *pSrcResource);
  5354. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  5355. void ( STDMETHODCALLTYPE *CopyTiles )(
  5356. ID3D12GraphicsCommandList1 * This,
  5357. _In_ ID3D12Resource *pTiledResource,
  5358. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  5359. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  5360. _In_ ID3D12Resource *pBuffer,
  5361. UINT64 BufferStartOffsetInBytes,
  5362. D3D12_TILE_COPY_FLAGS Flags);
  5363. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  5364. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  5365. ID3D12GraphicsCommandList1 * This,
  5366. _In_ ID3D12Resource *pDstResource,
  5367. _In_ UINT DstSubresource,
  5368. _In_ ID3D12Resource *pSrcResource,
  5369. _In_ UINT SrcSubresource,
  5370. _In_ DXGI_FORMAT Format);
  5371. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  5372. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  5373. ID3D12GraphicsCommandList1 * This,
  5374. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  5375. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  5376. void ( STDMETHODCALLTYPE *RSSetViewports )(
  5377. ID3D12GraphicsCommandList1 * This,
  5378. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  5379. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  5380. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  5381. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  5382. ID3D12GraphicsCommandList1 * This,
  5383. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  5384. _In_reads_( NumRects) const D3D12_RECT *pRects);
  5385. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  5386. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  5387. ID3D12GraphicsCommandList1 * This,
  5388. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  5389. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  5390. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  5391. ID3D12GraphicsCommandList1 * This,
  5392. _In_ UINT StencilRef);
  5393. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  5394. void ( STDMETHODCALLTYPE *SetPipelineState )(
  5395. ID3D12GraphicsCommandList1 * This,
  5396. _In_ ID3D12PipelineState *pPipelineState);
  5397. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  5398. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  5399. ID3D12GraphicsCommandList1 * This,
  5400. _In_ UINT NumBarriers,
  5401. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  5402. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  5403. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  5404. ID3D12GraphicsCommandList1 * This,
  5405. _In_ ID3D12GraphicsCommandList *pCommandList);
  5406. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  5407. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  5408. ID3D12GraphicsCommandList1 * This,
  5409. _In_ UINT NumDescriptorHeaps,
  5410. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  5411. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  5412. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  5413. ID3D12GraphicsCommandList1 * This,
  5414. _In_opt_ ID3D12RootSignature *pRootSignature);
  5415. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  5416. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  5417. ID3D12GraphicsCommandList1 * This,
  5418. _In_opt_ ID3D12RootSignature *pRootSignature);
  5419. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  5420. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  5421. ID3D12GraphicsCommandList1 * This,
  5422. _In_ UINT RootParameterIndex,
  5423. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  5424. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  5425. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  5426. ID3D12GraphicsCommandList1 * This,
  5427. _In_ UINT RootParameterIndex,
  5428. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  5429. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  5430. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  5431. ID3D12GraphicsCommandList1 * This,
  5432. _In_ UINT RootParameterIndex,
  5433. _In_ UINT SrcData,
  5434. _In_ UINT DestOffsetIn32BitValues);
  5435. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  5436. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  5437. ID3D12GraphicsCommandList1 * This,
  5438. _In_ UINT RootParameterIndex,
  5439. _In_ UINT SrcData,
  5440. _In_ UINT DestOffsetIn32BitValues);
  5441. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  5442. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  5443. ID3D12GraphicsCommandList1 * This,
  5444. _In_ UINT RootParameterIndex,
  5445. _In_ UINT Num32BitValuesToSet,
  5446. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  5447. _In_ UINT DestOffsetIn32BitValues);
  5448. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  5449. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  5450. ID3D12GraphicsCommandList1 * This,
  5451. _In_ UINT RootParameterIndex,
  5452. _In_ UINT Num32BitValuesToSet,
  5453. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  5454. _In_ UINT DestOffsetIn32BitValues);
  5455. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  5456. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  5457. ID3D12GraphicsCommandList1 * This,
  5458. _In_ UINT RootParameterIndex,
  5459. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5460. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  5461. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  5462. ID3D12GraphicsCommandList1 * This,
  5463. _In_ UINT RootParameterIndex,
  5464. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5465. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  5466. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  5467. ID3D12GraphicsCommandList1 * This,
  5468. _In_ UINT RootParameterIndex,
  5469. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5470. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  5471. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  5472. ID3D12GraphicsCommandList1 * This,
  5473. _In_ UINT RootParameterIndex,
  5474. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5475. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  5476. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  5477. ID3D12GraphicsCommandList1 * This,
  5478. _In_ UINT RootParameterIndex,
  5479. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5480. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  5481. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  5482. ID3D12GraphicsCommandList1 * This,
  5483. _In_ UINT RootParameterIndex,
  5484. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  5485. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  5486. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  5487. ID3D12GraphicsCommandList1 * This,
  5488. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  5489. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  5490. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  5491. ID3D12GraphicsCommandList1 * This,
  5492. _In_ UINT StartSlot,
  5493. _In_ UINT NumViews,
  5494. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  5495. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  5496. void ( STDMETHODCALLTYPE *SOSetTargets )(
  5497. ID3D12GraphicsCommandList1 * This,
  5498. _In_ UINT StartSlot,
  5499. _In_ UINT NumViews,
  5500. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  5501. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  5502. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  5503. ID3D12GraphicsCommandList1 * This,
  5504. _In_ UINT NumRenderTargetDescriptors,
  5505. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  5506. _In_ BOOL RTsSingleHandleToDescriptorRange,
  5507. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  5508. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  5509. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  5510. ID3D12GraphicsCommandList1 * This,
  5511. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  5512. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  5513. _In_ FLOAT Depth,
  5514. _In_ UINT8 Stencil,
  5515. _In_ UINT NumRects,
  5516. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5517. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  5518. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  5519. ID3D12GraphicsCommandList1 * This,
  5520. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  5521. _In_ const FLOAT ColorRGBA[ 4 ],
  5522. _In_ UINT NumRects,
  5523. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5524. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  5525. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  5526. ID3D12GraphicsCommandList1 * This,
  5527. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5528. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5529. _In_ ID3D12Resource *pResource,
  5530. _In_ const UINT Values[ 4 ],
  5531. _In_ UINT NumRects,
  5532. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5533. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  5534. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  5535. ID3D12GraphicsCommandList1 * This,
  5536. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  5537. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  5538. _In_ ID3D12Resource *pResource,
  5539. _In_ const FLOAT Values[ 4 ],
  5540. _In_ UINT NumRects,
  5541. _In_reads_(NumRects) const D3D12_RECT *pRects);
  5542. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  5543. void ( STDMETHODCALLTYPE *DiscardResource )(
  5544. ID3D12GraphicsCommandList1 * This,
  5545. _In_ ID3D12Resource *pResource,
  5546. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  5547. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  5548. void ( STDMETHODCALLTYPE *BeginQuery )(
  5549. ID3D12GraphicsCommandList1 * This,
  5550. _In_ ID3D12QueryHeap *pQueryHeap,
  5551. _In_ D3D12_QUERY_TYPE Type,
  5552. _In_ UINT Index);
  5553. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  5554. void ( STDMETHODCALLTYPE *EndQuery )(
  5555. ID3D12GraphicsCommandList1 * This,
  5556. _In_ ID3D12QueryHeap *pQueryHeap,
  5557. _In_ D3D12_QUERY_TYPE Type,
  5558. _In_ UINT Index);
  5559. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  5560. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  5561. ID3D12GraphicsCommandList1 * This,
  5562. _In_ ID3D12QueryHeap *pQueryHeap,
  5563. _In_ D3D12_QUERY_TYPE Type,
  5564. _In_ UINT StartIndex,
  5565. _In_ UINT NumQueries,
  5566. _In_ ID3D12Resource *pDestinationBuffer,
  5567. _In_ UINT64 AlignedDestinationBufferOffset);
  5568. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  5569. void ( STDMETHODCALLTYPE *SetPredication )(
  5570. ID3D12GraphicsCommandList1 * This,
  5571. _In_opt_ ID3D12Resource *pBuffer,
  5572. _In_ UINT64 AlignedBufferOffset,
  5573. _In_ D3D12_PREDICATION_OP Operation);
  5574. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  5575. void ( STDMETHODCALLTYPE *SetMarker )(
  5576. ID3D12GraphicsCommandList1 * This,
  5577. UINT Metadata,
  5578. _In_reads_bytes_opt_(Size) const void *pData,
  5579. UINT Size);
  5580. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  5581. void ( STDMETHODCALLTYPE *BeginEvent )(
  5582. ID3D12GraphicsCommandList1 * This,
  5583. UINT Metadata,
  5584. _In_reads_bytes_opt_(Size) const void *pData,
  5585. UINT Size);
  5586. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  5587. void ( STDMETHODCALLTYPE *EndEvent )(
  5588. ID3D12GraphicsCommandList1 * This);
  5589. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  5590. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  5591. ID3D12GraphicsCommandList1 * This,
  5592. _In_ ID3D12CommandSignature *pCommandSignature,
  5593. _In_ UINT MaxCommandCount,
  5594. _In_ ID3D12Resource *pArgumentBuffer,
  5595. _In_ UINT64 ArgumentBufferOffset,
  5596. _In_opt_ ID3D12Resource *pCountBuffer,
  5597. _In_ UINT64 CountBufferOffset);
  5598. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  5599. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  5600. ID3D12GraphicsCommandList1 * This,
  5601. _In_ ID3D12Resource *pDstBuffer,
  5602. UINT64 DstOffset,
  5603. _In_ ID3D12Resource *pSrcBuffer,
  5604. UINT64 SrcOffset,
  5605. UINT Dependencies,
  5606. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5607. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  5608. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  5609. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  5610. ID3D12GraphicsCommandList1 * This,
  5611. _In_ ID3D12Resource *pDstBuffer,
  5612. UINT64 DstOffset,
  5613. _In_ ID3D12Resource *pSrcBuffer,
  5614. UINT64 SrcOffset,
  5615. UINT Dependencies,
  5616. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  5617. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  5618. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  5619. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  5620. ID3D12GraphicsCommandList1 * This,
  5621. _In_ FLOAT Min,
  5622. _In_ FLOAT Max);
  5623. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  5624. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  5625. ID3D12GraphicsCommandList1 * This,
  5626. _In_ UINT NumSamplesPerPixel,
  5627. _In_ UINT NumPixels,
  5628. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  5629. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  5630. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  5631. ID3D12GraphicsCommandList1 * This,
  5632. _In_ ID3D12Resource *pDstResource,
  5633. _In_ UINT DstSubresource,
  5634. _In_ UINT DstX,
  5635. _In_ UINT DstY,
  5636. _In_ ID3D12Resource *pSrcResource,
  5637. _In_ UINT SrcSubresource,
  5638. _In_opt_ D3D12_RECT *pSrcRect,
  5639. _In_ DXGI_FORMAT Format,
  5640. _In_ D3D12_RESOLVE_MODE ResolveMode);
  5641. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  5642. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  5643. ID3D12GraphicsCommandList1 * This,
  5644. _In_ UINT Mask);
  5645. END_INTERFACE
  5646. } ID3D12GraphicsCommandList1Vtbl;
  5647. interface ID3D12GraphicsCommandList1
  5648. {
  5649. CONST_VTBL struct ID3D12GraphicsCommandList1Vtbl *lpVtbl;
  5650. };
  5651. #ifdef COBJMACROS
  5652. #define ID3D12GraphicsCommandList1_QueryInterface(This,riid,ppvObject) \
  5653. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  5654. #define ID3D12GraphicsCommandList1_AddRef(This) \
  5655. ( (This)->lpVtbl -> AddRef(This) )
  5656. #define ID3D12GraphicsCommandList1_Release(This) \
  5657. ( (This)->lpVtbl -> Release(This) )
  5658. #define ID3D12GraphicsCommandList1_GetPrivateData(This,guid,pDataSize,pData) \
  5659. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  5660. #define ID3D12GraphicsCommandList1_SetPrivateData(This,guid,DataSize,pData) \
  5661. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  5662. #define ID3D12GraphicsCommandList1_SetPrivateDataInterface(This,guid,pData) \
  5663. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  5664. #define ID3D12GraphicsCommandList1_SetName(This,Name) \
  5665. ( (This)->lpVtbl -> SetName(This,Name) )
  5666. #define ID3D12GraphicsCommandList1_GetDevice(This,riid,ppvDevice) \
  5667. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  5668. #define ID3D12GraphicsCommandList1_GetType(This) \
  5669. ( (This)->lpVtbl -> GetType(This) )
  5670. #define ID3D12GraphicsCommandList1_Close(This) \
  5671. ( (This)->lpVtbl -> Close(This) )
  5672. #define ID3D12GraphicsCommandList1_Reset(This,pAllocator,pInitialState) \
  5673. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  5674. #define ID3D12GraphicsCommandList1_ClearState(This,pPipelineState) \
  5675. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  5676. #define ID3D12GraphicsCommandList1_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  5677. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  5678. #define ID3D12GraphicsCommandList1_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  5679. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  5680. #define ID3D12GraphicsCommandList1_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  5681. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  5682. #define ID3D12GraphicsCommandList1_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  5683. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  5684. #define ID3D12GraphicsCommandList1_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  5685. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  5686. #define ID3D12GraphicsCommandList1_CopyResource(This,pDstResource,pSrcResource) \
  5687. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  5688. #define ID3D12GraphicsCommandList1_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  5689. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  5690. #define ID3D12GraphicsCommandList1_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  5691. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  5692. #define ID3D12GraphicsCommandList1_IASetPrimitiveTopology(This,PrimitiveTopology) \
  5693. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  5694. #define ID3D12GraphicsCommandList1_RSSetViewports(This,NumViewports,pViewports) \
  5695. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  5696. #define ID3D12GraphicsCommandList1_RSSetScissorRects(This,NumRects,pRects) \
  5697. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  5698. #define ID3D12GraphicsCommandList1_OMSetBlendFactor(This,BlendFactor) \
  5699. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  5700. #define ID3D12GraphicsCommandList1_OMSetStencilRef(This,StencilRef) \
  5701. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  5702. #define ID3D12GraphicsCommandList1_SetPipelineState(This,pPipelineState) \
  5703. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  5704. #define ID3D12GraphicsCommandList1_ResourceBarrier(This,NumBarriers,pBarriers) \
  5705. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  5706. #define ID3D12GraphicsCommandList1_ExecuteBundle(This,pCommandList) \
  5707. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  5708. #define ID3D12GraphicsCommandList1_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  5709. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  5710. #define ID3D12GraphicsCommandList1_SetComputeRootSignature(This,pRootSignature) \
  5711. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  5712. #define ID3D12GraphicsCommandList1_SetGraphicsRootSignature(This,pRootSignature) \
  5713. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  5714. #define ID3D12GraphicsCommandList1_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5715. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5716. #define ID3D12GraphicsCommandList1_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  5717. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  5718. #define ID3D12GraphicsCommandList1_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5719. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5720. #define ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  5721. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  5722. #define ID3D12GraphicsCommandList1_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5723. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5724. #define ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  5725. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  5726. #define ID3D12GraphicsCommandList1_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5727. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5728. #define ID3D12GraphicsCommandList1_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  5729. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  5730. #define ID3D12GraphicsCommandList1_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5731. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5732. #define ID3D12GraphicsCommandList1_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  5733. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  5734. #define ID3D12GraphicsCommandList1_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5735. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5736. #define ID3D12GraphicsCommandList1_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  5737. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  5738. #define ID3D12GraphicsCommandList1_IASetIndexBuffer(This,pView) \
  5739. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  5740. #define ID3D12GraphicsCommandList1_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  5741. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  5742. #define ID3D12GraphicsCommandList1_SOSetTargets(This,StartSlot,NumViews,pViews) \
  5743. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  5744. #define ID3D12GraphicsCommandList1_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  5745. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  5746. #define ID3D12GraphicsCommandList1_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  5747. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  5748. #define ID3D12GraphicsCommandList1_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  5749. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  5750. #define ID3D12GraphicsCommandList1_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5751. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5752. #define ID3D12GraphicsCommandList1_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  5753. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  5754. #define ID3D12GraphicsCommandList1_DiscardResource(This,pResource,pRegion) \
  5755. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  5756. #define ID3D12GraphicsCommandList1_BeginQuery(This,pQueryHeap,Type,Index) \
  5757. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  5758. #define ID3D12GraphicsCommandList1_EndQuery(This,pQueryHeap,Type,Index) \
  5759. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  5760. #define ID3D12GraphicsCommandList1_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  5761. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  5762. #define ID3D12GraphicsCommandList1_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  5763. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  5764. #define ID3D12GraphicsCommandList1_SetMarker(This,Metadata,pData,Size) \
  5765. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  5766. #define ID3D12GraphicsCommandList1_BeginEvent(This,Metadata,pData,Size) \
  5767. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  5768. #define ID3D12GraphicsCommandList1_EndEvent(This) \
  5769. ( (This)->lpVtbl -> EndEvent(This) )
  5770. #define ID3D12GraphicsCommandList1_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  5771. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  5772. #define ID3D12GraphicsCommandList1_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  5773. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  5774. #define ID3D12GraphicsCommandList1_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  5775. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  5776. #define ID3D12GraphicsCommandList1_OMSetDepthBounds(This,Min,Max) \
  5777. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  5778. #define ID3D12GraphicsCommandList1_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  5779. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  5780. #define ID3D12GraphicsCommandList1_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  5781. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  5782. #define ID3D12GraphicsCommandList1_SetViewInstanceMask(This,Mask) \
  5783. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  5784. #endif /* COBJMACROS */
  5785. #endif /* C style interface */
  5786. #endif /* __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__ */
  5787. /* interface __MIDL_itf_d3d12_0000_0018 */
  5788. /* [local] */
  5789. typedef struct D3D12_WRITEBUFFERIMMEDIATE_PARAMETER
  5790. {
  5791. D3D12_GPU_VIRTUAL_ADDRESS Dest;
  5792. UINT32 Value;
  5793. } D3D12_WRITEBUFFERIMMEDIATE_PARAMETER;
  5794. typedef
  5795. enum D3D12_WRITEBUFFERIMMEDIATE_MODE
  5796. {
  5797. D3D12_WRITEBUFFERIMMEDIATE_MODE_DEFAULT = 0,
  5798. D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_IN = 0x1,
  5799. D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_OUT = 0x2
  5800. } D3D12_WRITEBUFFERIMMEDIATE_MODE;
  5801. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0018_v0_0_c_ifspec;
  5802. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0018_v0_0_s_ifspec;
  5803. #ifndef __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__
  5804. #define __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__
  5805. /* interface ID3D12GraphicsCommandList2 */
  5806. /* [unique][local][object][uuid] */
  5807. EXTERN_C const IID IID_ID3D12GraphicsCommandList2;
  5808. #if defined(__cplusplus) && !defined(CINTERFACE)
  5809. MIDL_INTERFACE("38C3E585-FF17-412C-9150-4FC6F9D72A28")
  5810. ID3D12GraphicsCommandList2 : public ID3D12GraphicsCommandList1
  5811. {
  5812. public:
  5813. virtual void STDMETHODCALLTYPE WriteBufferImmediate(
  5814. UINT Count,
  5815. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  5816. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes) = 0;
  5817. };
  5818. #else /* C style interface */
  5819. typedef struct ID3D12GraphicsCommandList2Vtbl
  5820. {
  5821. BEGIN_INTERFACE
  5822. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  5823. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5824. ID3D12GraphicsCommandList2 * This,
  5825. REFIID riid,
  5826. _COM_Outptr_ void **ppvObject);
  5827. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  5828. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5829. ID3D12GraphicsCommandList2 * This);
  5830. DECLSPEC_XFGVIRT(IUnknown, Release)
  5831. ULONG ( STDMETHODCALLTYPE *Release )(
  5832. ID3D12GraphicsCommandList2 * This);
  5833. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  5834. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  5835. ID3D12GraphicsCommandList2 * This,
  5836. _In_ REFGUID guid,
  5837. _Inout_ UINT *pDataSize,
  5838. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  5839. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  5840. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  5841. ID3D12GraphicsCommandList2 * This,
  5842. _In_ REFGUID guid,
  5843. _In_ UINT DataSize,
  5844. _In_reads_bytes_opt_( DataSize ) const void *pData);
  5845. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  5846. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  5847. ID3D12GraphicsCommandList2 * This,
  5848. _In_ REFGUID guid,
  5849. _In_opt_ const IUnknown *pData);
  5850. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  5851. HRESULT ( STDMETHODCALLTYPE *SetName )(
  5852. ID3D12GraphicsCommandList2 * This,
  5853. _In_z_ LPCWSTR Name);
  5854. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  5855. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  5856. ID3D12GraphicsCommandList2 * This,
  5857. REFIID riid,
  5858. _COM_Outptr_opt_ void **ppvDevice);
  5859. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  5860. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  5861. ID3D12GraphicsCommandList2 * This);
  5862. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  5863. HRESULT ( STDMETHODCALLTYPE *Close )(
  5864. ID3D12GraphicsCommandList2 * This);
  5865. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  5866. HRESULT ( STDMETHODCALLTYPE *Reset )(
  5867. ID3D12GraphicsCommandList2 * This,
  5868. _In_ ID3D12CommandAllocator *pAllocator,
  5869. _In_opt_ ID3D12PipelineState *pInitialState);
  5870. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  5871. void ( STDMETHODCALLTYPE *ClearState )(
  5872. ID3D12GraphicsCommandList2 * This,
  5873. _In_opt_ ID3D12PipelineState *pPipelineState);
  5874. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  5875. void ( STDMETHODCALLTYPE *DrawInstanced )(
  5876. ID3D12GraphicsCommandList2 * This,
  5877. _In_ UINT VertexCountPerInstance,
  5878. _In_ UINT InstanceCount,
  5879. _In_ UINT StartVertexLocation,
  5880. _In_ UINT StartInstanceLocation);
  5881. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  5882. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  5883. ID3D12GraphicsCommandList2 * This,
  5884. _In_ UINT IndexCountPerInstance,
  5885. _In_ UINT InstanceCount,
  5886. _In_ UINT StartIndexLocation,
  5887. _In_ INT BaseVertexLocation,
  5888. _In_ UINT StartInstanceLocation);
  5889. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  5890. void ( STDMETHODCALLTYPE *Dispatch )(
  5891. ID3D12GraphicsCommandList2 * This,
  5892. _In_ UINT ThreadGroupCountX,
  5893. _In_ UINT ThreadGroupCountY,
  5894. _In_ UINT ThreadGroupCountZ);
  5895. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  5896. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  5897. ID3D12GraphicsCommandList2 * This,
  5898. _In_ ID3D12Resource *pDstBuffer,
  5899. UINT64 DstOffset,
  5900. _In_ ID3D12Resource *pSrcBuffer,
  5901. UINT64 SrcOffset,
  5902. UINT64 NumBytes);
  5903. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  5904. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  5905. ID3D12GraphicsCommandList2 * This,
  5906. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  5907. UINT DstX,
  5908. UINT DstY,
  5909. UINT DstZ,
  5910. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  5911. _In_opt_ const D3D12_BOX *pSrcBox);
  5912. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  5913. void ( STDMETHODCALLTYPE *CopyResource )(
  5914. ID3D12GraphicsCommandList2 * This,
  5915. _In_ ID3D12Resource *pDstResource,
  5916. _In_ ID3D12Resource *pSrcResource);
  5917. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  5918. void ( STDMETHODCALLTYPE *CopyTiles )(
  5919. ID3D12GraphicsCommandList2 * This,
  5920. _In_ ID3D12Resource *pTiledResource,
  5921. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  5922. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  5923. _In_ ID3D12Resource *pBuffer,
  5924. UINT64 BufferStartOffsetInBytes,
  5925. D3D12_TILE_COPY_FLAGS Flags);
  5926. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  5927. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  5928. ID3D12GraphicsCommandList2 * This,
  5929. _In_ ID3D12Resource *pDstResource,
  5930. _In_ UINT DstSubresource,
  5931. _In_ ID3D12Resource *pSrcResource,
  5932. _In_ UINT SrcSubresource,
  5933. _In_ DXGI_FORMAT Format);
  5934. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  5935. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  5936. ID3D12GraphicsCommandList2 * This,
  5937. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  5938. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  5939. void ( STDMETHODCALLTYPE *RSSetViewports )(
  5940. ID3D12GraphicsCommandList2 * This,
  5941. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  5942. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  5943. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  5944. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  5945. ID3D12GraphicsCommandList2 * This,
  5946. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  5947. _In_reads_( NumRects) const D3D12_RECT *pRects);
  5948. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  5949. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  5950. ID3D12GraphicsCommandList2 * This,
  5951. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  5952. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  5953. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  5954. ID3D12GraphicsCommandList2 * This,
  5955. _In_ UINT StencilRef);
  5956. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  5957. void ( STDMETHODCALLTYPE *SetPipelineState )(
  5958. ID3D12GraphicsCommandList2 * This,
  5959. _In_ ID3D12PipelineState *pPipelineState);
  5960. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  5961. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  5962. ID3D12GraphicsCommandList2 * This,
  5963. _In_ UINT NumBarriers,
  5964. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  5965. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  5966. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  5967. ID3D12GraphicsCommandList2 * This,
  5968. _In_ ID3D12GraphicsCommandList *pCommandList);
  5969. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  5970. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  5971. ID3D12GraphicsCommandList2 * This,
  5972. _In_ UINT NumDescriptorHeaps,
  5973. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  5974. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  5975. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  5976. ID3D12GraphicsCommandList2 * This,
  5977. _In_opt_ ID3D12RootSignature *pRootSignature);
  5978. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  5979. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  5980. ID3D12GraphicsCommandList2 * This,
  5981. _In_opt_ ID3D12RootSignature *pRootSignature);
  5982. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  5983. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  5984. ID3D12GraphicsCommandList2 * This,
  5985. _In_ UINT RootParameterIndex,
  5986. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  5987. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  5988. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  5989. ID3D12GraphicsCommandList2 * This,
  5990. _In_ UINT RootParameterIndex,
  5991. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  5992. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  5993. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  5994. ID3D12GraphicsCommandList2 * This,
  5995. _In_ UINT RootParameterIndex,
  5996. _In_ UINT SrcData,
  5997. _In_ UINT DestOffsetIn32BitValues);
  5998. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  5999. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  6000. ID3D12GraphicsCommandList2 * This,
  6001. _In_ UINT RootParameterIndex,
  6002. _In_ UINT SrcData,
  6003. _In_ UINT DestOffsetIn32BitValues);
  6004. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  6005. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  6006. ID3D12GraphicsCommandList2 * This,
  6007. _In_ UINT RootParameterIndex,
  6008. _In_ UINT Num32BitValuesToSet,
  6009. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  6010. _In_ UINT DestOffsetIn32BitValues);
  6011. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  6012. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  6013. ID3D12GraphicsCommandList2 * This,
  6014. _In_ UINT RootParameterIndex,
  6015. _In_ UINT Num32BitValuesToSet,
  6016. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  6017. _In_ UINT DestOffsetIn32BitValues);
  6018. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  6019. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  6020. ID3D12GraphicsCommandList2 * This,
  6021. _In_ UINT RootParameterIndex,
  6022. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6023. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  6024. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  6025. ID3D12GraphicsCommandList2 * This,
  6026. _In_ UINT RootParameterIndex,
  6027. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6028. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  6029. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  6030. ID3D12GraphicsCommandList2 * This,
  6031. _In_ UINT RootParameterIndex,
  6032. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6033. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  6034. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  6035. ID3D12GraphicsCommandList2 * This,
  6036. _In_ UINT RootParameterIndex,
  6037. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6038. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  6039. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  6040. ID3D12GraphicsCommandList2 * This,
  6041. _In_ UINT RootParameterIndex,
  6042. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6043. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  6044. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  6045. ID3D12GraphicsCommandList2 * This,
  6046. _In_ UINT RootParameterIndex,
  6047. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  6048. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  6049. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  6050. ID3D12GraphicsCommandList2 * This,
  6051. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  6052. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  6053. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  6054. ID3D12GraphicsCommandList2 * This,
  6055. _In_ UINT StartSlot,
  6056. _In_ UINT NumViews,
  6057. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  6058. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  6059. void ( STDMETHODCALLTYPE *SOSetTargets )(
  6060. ID3D12GraphicsCommandList2 * This,
  6061. _In_ UINT StartSlot,
  6062. _In_ UINT NumViews,
  6063. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  6064. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  6065. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  6066. ID3D12GraphicsCommandList2 * This,
  6067. _In_ UINT NumRenderTargetDescriptors,
  6068. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  6069. _In_ BOOL RTsSingleHandleToDescriptorRange,
  6070. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  6071. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  6072. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  6073. ID3D12GraphicsCommandList2 * This,
  6074. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  6075. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  6076. _In_ FLOAT Depth,
  6077. _In_ UINT8 Stencil,
  6078. _In_ UINT NumRects,
  6079. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6080. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  6081. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  6082. ID3D12GraphicsCommandList2 * This,
  6083. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  6084. _In_ const FLOAT ColorRGBA[ 4 ],
  6085. _In_ UINT NumRects,
  6086. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6087. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  6088. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  6089. ID3D12GraphicsCommandList2 * This,
  6090. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  6091. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  6092. _In_ ID3D12Resource *pResource,
  6093. _In_ const UINT Values[ 4 ],
  6094. _In_ UINT NumRects,
  6095. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6096. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  6097. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  6098. ID3D12GraphicsCommandList2 * This,
  6099. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  6100. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  6101. _In_ ID3D12Resource *pResource,
  6102. _In_ const FLOAT Values[ 4 ],
  6103. _In_ UINT NumRects,
  6104. _In_reads_(NumRects) const D3D12_RECT *pRects);
  6105. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  6106. void ( STDMETHODCALLTYPE *DiscardResource )(
  6107. ID3D12GraphicsCommandList2 * This,
  6108. _In_ ID3D12Resource *pResource,
  6109. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  6110. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  6111. void ( STDMETHODCALLTYPE *BeginQuery )(
  6112. ID3D12GraphicsCommandList2 * This,
  6113. _In_ ID3D12QueryHeap *pQueryHeap,
  6114. _In_ D3D12_QUERY_TYPE Type,
  6115. _In_ UINT Index);
  6116. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  6117. void ( STDMETHODCALLTYPE *EndQuery )(
  6118. ID3D12GraphicsCommandList2 * This,
  6119. _In_ ID3D12QueryHeap *pQueryHeap,
  6120. _In_ D3D12_QUERY_TYPE Type,
  6121. _In_ UINT Index);
  6122. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  6123. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  6124. ID3D12GraphicsCommandList2 * This,
  6125. _In_ ID3D12QueryHeap *pQueryHeap,
  6126. _In_ D3D12_QUERY_TYPE Type,
  6127. _In_ UINT StartIndex,
  6128. _In_ UINT NumQueries,
  6129. _In_ ID3D12Resource *pDestinationBuffer,
  6130. _In_ UINT64 AlignedDestinationBufferOffset);
  6131. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  6132. void ( STDMETHODCALLTYPE *SetPredication )(
  6133. ID3D12GraphicsCommandList2 * This,
  6134. _In_opt_ ID3D12Resource *pBuffer,
  6135. _In_ UINT64 AlignedBufferOffset,
  6136. _In_ D3D12_PREDICATION_OP Operation);
  6137. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  6138. void ( STDMETHODCALLTYPE *SetMarker )(
  6139. ID3D12GraphicsCommandList2 * This,
  6140. UINT Metadata,
  6141. _In_reads_bytes_opt_(Size) const void *pData,
  6142. UINT Size);
  6143. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  6144. void ( STDMETHODCALLTYPE *BeginEvent )(
  6145. ID3D12GraphicsCommandList2 * This,
  6146. UINT Metadata,
  6147. _In_reads_bytes_opt_(Size) const void *pData,
  6148. UINT Size);
  6149. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  6150. void ( STDMETHODCALLTYPE *EndEvent )(
  6151. ID3D12GraphicsCommandList2 * This);
  6152. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  6153. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  6154. ID3D12GraphicsCommandList2 * This,
  6155. _In_ ID3D12CommandSignature *pCommandSignature,
  6156. _In_ UINT MaxCommandCount,
  6157. _In_ ID3D12Resource *pArgumentBuffer,
  6158. _In_ UINT64 ArgumentBufferOffset,
  6159. _In_opt_ ID3D12Resource *pCountBuffer,
  6160. _In_ UINT64 CountBufferOffset);
  6161. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  6162. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  6163. ID3D12GraphicsCommandList2 * This,
  6164. _In_ ID3D12Resource *pDstBuffer,
  6165. UINT64 DstOffset,
  6166. _In_ ID3D12Resource *pSrcBuffer,
  6167. UINT64 SrcOffset,
  6168. UINT Dependencies,
  6169. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  6170. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  6171. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  6172. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  6173. ID3D12GraphicsCommandList2 * This,
  6174. _In_ ID3D12Resource *pDstBuffer,
  6175. UINT64 DstOffset,
  6176. _In_ ID3D12Resource *pSrcBuffer,
  6177. UINT64 SrcOffset,
  6178. UINT Dependencies,
  6179. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  6180. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  6181. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  6182. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  6183. ID3D12GraphicsCommandList2 * This,
  6184. _In_ FLOAT Min,
  6185. _In_ FLOAT Max);
  6186. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  6187. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  6188. ID3D12GraphicsCommandList2 * This,
  6189. _In_ UINT NumSamplesPerPixel,
  6190. _In_ UINT NumPixels,
  6191. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  6192. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  6193. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  6194. ID3D12GraphicsCommandList2 * This,
  6195. _In_ ID3D12Resource *pDstResource,
  6196. _In_ UINT DstSubresource,
  6197. _In_ UINT DstX,
  6198. _In_ UINT DstY,
  6199. _In_ ID3D12Resource *pSrcResource,
  6200. _In_ UINT SrcSubresource,
  6201. _In_opt_ D3D12_RECT *pSrcRect,
  6202. _In_ DXGI_FORMAT Format,
  6203. _In_ D3D12_RESOLVE_MODE ResolveMode);
  6204. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  6205. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  6206. ID3D12GraphicsCommandList2 * This,
  6207. _In_ UINT Mask);
  6208. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  6209. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  6210. ID3D12GraphicsCommandList2 * This,
  6211. UINT Count,
  6212. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  6213. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  6214. END_INTERFACE
  6215. } ID3D12GraphicsCommandList2Vtbl;
  6216. interface ID3D12GraphicsCommandList2
  6217. {
  6218. CONST_VTBL struct ID3D12GraphicsCommandList2Vtbl *lpVtbl;
  6219. };
  6220. #ifdef COBJMACROS
  6221. #define ID3D12GraphicsCommandList2_QueryInterface(This,riid,ppvObject) \
  6222. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  6223. #define ID3D12GraphicsCommandList2_AddRef(This) \
  6224. ( (This)->lpVtbl -> AddRef(This) )
  6225. #define ID3D12GraphicsCommandList2_Release(This) \
  6226. ( (This)->lpVtbl -> Release(This) )
  6227. #define ID3D12GraphicsCommandList2_GetPrivateData(This,guid,pDataSize,pData) \
  6228. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  6229. #define ID3D12GraphicsCommandList2_SetPrivateData(This,guid,DataSize,pData) \
  6230. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  6231. #define ID3D12GraphicsCommandList2_SetPrivateDataInterface(This,guid,pData) \
  6232. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  6233. #define ID3D12GraphicsCommandList2_SetName(This,Name) \
  6234. ( (This)->lpVtbl -> SetName(This,Name) )
  6235. #define ID3D12GraphicsCommandList2_GetDevice(This,riid,ppvDevice) \
  6236. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  6237. #define ID3D12GraphicsCommandList2_GetType(This) \
  6238. ( (This)->lpVtbl -> GetType(This) )
  6239. #define ID3D12GraphicsCommandList2_Close(This) \
  6240. ( (This)->lpVtbl -> Close(This) )
  6241. #define ID3D12GraphicsCommandList2_Reset(This,pAllocator,pInitialState) \
  6242. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  6243. #define ID3D12GraphicsCommandList2_ClearState(This,pPipelineState) \
  6244. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  6245. #define ID3D12GraphicsCommandList2_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  6246. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  6247. #define ID3D12GraphicsCommandList2_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  6248. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  6249. #define ID3D12GraphicsCommandList2_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  6250. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  6251. #define ID3D12GraphicsCommandList2_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  6252. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  6253. #define ID3D12GraphicsCommandList2_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  6254. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  6255. #define ID3D12GraphicsCommandList2_CopyResource(This,pDstResource,pSrcResource) \
  6256. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  6257. #define ID3D12GraphicsCommandList2_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  6258. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  6259. #define ID3D12GraphicsCommandList2_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  6260. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  6261. #define ID3D12GraphicsCommandList2_IASetPrimitiveTopology(This,PrimitiveTopology) \
  6262. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  6263. #define ID3D12GraphicsCommandList2_RSSetViewports(This,NumViewports,pViewports) \
  6264. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  6265. #define ID3D12GraphicsCommandList2_RSSetScissorRects(This,NumRects,pRects) \
  6266. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  6267. #define ID3D12GraphicsCommandList2_OMSetBlendFactor(This,BlendFactor) \
  6268. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  6269. #define ID3D12GraphicsCommandList2_OMSetStencilRef(This,StencilRef) \
  6270. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  6271. #define ID3D12GraphicsCommandList2_SetPipelineState(This,pPipelineState) \
  6272. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  6273. #define ID3D12GraphicsCommandList2_ResourceBarrier(This,NumBarriers,pBarriers) \
  6274. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  6275. #define ID3D12GraphicsCommandList2_ExecuteBundle(This,pCommandList) \
  6276. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  6277. #define ID3D12GraphicsCommandList2_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  6278. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  6279. #define ID3D12GraphicsCommandList2_SetComputeRootSignature(This,pRootSignature) \
  6280. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  6281. #define ID3D12GraphicsCommandList2_SetGraphicsRootSignature(This,pRootSignature) \
  6282. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  6283. #define ID3D12GraphicsCommandList2_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  6284. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  6285. #define ID3D12GraphicsCommandList2_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  6286. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  6287. #define ID3D12GraphicsCommandList2_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  6288. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  6289. #define ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  6290. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  6291. #define ID3D12GraphicsCommandList2_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  6292. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  6293. #define ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  6294. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  6295. #define ID3D12GraphicsCommandList2_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  6296. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  6297. #define ID3D12GraphicsCommandList2_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  6298. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  6299. #define ID3D12GraphicsCommandList2_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  6300. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  6301. #define ID3D12GraphicsCommandList2_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  6302. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  6303. #define ID3D12GraphicsCommandList2_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  6304. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  6305. #define ID3D12GraphicsCommandList2_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  6306. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  6307. #define ID3D12GraphicsCommandList2_IASetIndexBuffer(This,pView) \
  6308. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  6309. #define ID3D12GraphicsCommandList2_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  6310. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  6311. #define ID3D12GraphicsCommandList2_SOSetTargets(This,StartSlot,NumViews,pViews) \
  6312. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  6313. #define ID3D12GraphicsCommandList2_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  6314. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  6315. #define ID3D12GraphicsCommandList2_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  6316. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  6317. #define ID3D12GraphicsCommandList2_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  6318. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  6319. #define ID3D12GraphicsCommandList2_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  6320. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  6321. #define ID3D12GraphicsCommandList2_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  6322. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  6323. #define ID3D12GraphicsCommandList2_DiscardResource(This,pResource,pRegion) \
  6324. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  6325. #define ID3D12GraphicsCommandList2_BeginQuery(This,pQueryHeap,Type,Index) \
  6326. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  6327. #define ID3D12GraphicsCommandList2_EndQuery(This,pQueryHeap,Type,Index) \
  6328. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  6329. #define ID3D12GraphicsCommandList2_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  6330. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  6331. #define ID3D12GraphicsCommandList2_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  6332. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  6333. #define ID3D12GraphicsCommandList2_SetMarker(This,Metadata,pData,Size) \
  6334. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  6335. #define ID3D12GraphicsCommandList2_BeginEvent(This,Metadata,pData,Size) \
  6336. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  6337. #define ID3D12GraphicsCommandList2_EndEvent(This) \
  6338. ( (This)->lpVtbl -> EndEvent(This) )
  6339. #define ID3D12GraphicsCommandList2_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  6340. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  6341. #define ID3D12GraphicsCommandList2_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  6342. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  6343. #define ID3D12GraphicsCommandList2_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  6344. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  6345. #define ID3D12GraphicsCommandList2_OMSetDepthBounds(This,Min,Max) \
  6346. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  6347. #define ID3D12GraphicsCommandList2_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  6348. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  6349. #define ID3D12GraphicsCommandList2_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  6350. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  6351. #define ID3D12GraphicsCommandList2_SetViewInstanceMask(This,Mask) \
  6352. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  6353. #define ID3D12GraphicsCommandList2_WriteBufferImmediate(This,Count,pParams,pModes) \
  6354. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  6355. #endif /* COBJMACROS */
  6356. #endif /* C style interface */
  6357. #endif /* __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__ */
  6358. #ifndef __ID3D12CommandQueue_INTERFACE_DEFINED__
  6359. #define __ID3D12CommandQueue_INTERFACE_DEFINED__
  6360. /* interface ID3D12CommandQueue */
  6361. /* [unique][local][object][uuid] */
  6362. EXTERN_C const IID IID_ID3D12CommandQueue;
  6363. #if defined(__cplusplus) && !defined(CINTERFACE)
  6364. MIDL_INTERFACE("0ec870a6-5d7e-4c22-8cfc-5baae07616ed")
  6365. ID3D12CommandQueue : public ID3D12Pageable
  6366. {
  6367. public:
  6368. virtual void STDMETHODCALLTYPE UpdateTileMappings(
  6369. _In_ ID3D12Resource *pResource,
  6370. UINT NumResourceRegions,
  6371. _In_reads_opt_(NumResourceRegions) const D3D12_TILED_RESOURCE_COORDINATE *pResourceRegionStartCoordinates,
  6372. _In_reads_opt_(NumResourceRegions) const D3D12_TILE_REGION_SIZE *pResourceRegionSizes,
  6373. _In_opt_ ID3D12Heap *pHeap,
  6374. UINT NumRanges,
  6375. _In_reads_opt_(NumRanges) const D3D12_TILE_RANGE_FLAGS *pRangeFlags,
  6376. _In_reads_opt_(NumRanges) const UINT *pHeapRangeStartOffsets,
  6377. _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts,
  6378. D3D12_TILE_MAPPING_FLAGS Flags) = 0;
  6379. virtual void STDMETHODCALLTYPE CopyTileMappings(
  6380. _In_ ID3D12Resource *pDstResource,
  6381. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pDstRegionStartCoordinate,
  6382. _In_ ID3D12Resource *pSrcResource,
  6383. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pSrcRegionStartCoordinate,
  6384. _In_ const D3D12_TILE_REGION_SIZE *pRegionSize,
  6385. D3D12_TILE_MAPPING_FLAGS Flags) = 0;
  6386. virtual void STDMETHODCALLTYPE ExecuteCommandLists(
  6387. _In_ UINT NumCommandLists,
  6388. _In_reads_(NumCommandLists) ID3D12CommandList *const *ppCommandLists) = 0;
  6389. virtual void STDMETHODCALLTYPE SetMarker(
  6390. UINT Metadata,
  6391. _In_reads_bytes_opt_(Size) const void *pData,
  6392. UINT Size) = 0;
  6393. virtual void STDMETHODCALLTYPE BeginEvent(
  6394. UINT Metadata,
  6395. _In_reads_bytes_opt_(Size) const void *pData,
  6396. UINT Size) = 0;
  6397. virtual void STDMETHODCALLTYPE EndEvent( void) = 0;
  6398. virtual HRESULT STDMETHODCALLTYPE Signal(
  6399. ID3D12Fence *pFence,
  6400. UINT64 Value) = 0;
  6401. virtual HRESULT STDMETHODCALLTYPE Wait(
  6402. ID3D12Fence *pFence,
  6403. UINT64 Value) = 0;
  6404. virtual HRESULT STDMETHODCALLTYPE GetTimestampFrequency(
  6405. _Out_ UINT64 *pFrequency) = 0;
  6406. virtual HRESULT STDMETHODCALLTYPE GetClockCalibration(
  6407. _Out_ UINT64 *pGpuTimestamp,
  6408. _Out_ UINT64 *pCpuTimestamp) = 0;
  6409. #if defined(_MSC_VER) || !defined(_WIN32)
  6410. virtual D3D12_COMMAND_QUEUE_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  6411. #else
  6412. virtual D3D12_COMMAND_QUEUE_DESC *STDMETHODCALLTYPE GetDesc(
  6413. D3D12_COMMAND_QUEUE_DESC * RetVal) = 0;
  6414. #endif
  6415. };
  6416. #else /* C style interface */
  6417. typedef struct ID3D12CommandQueueVtbl
  6418. {
  6419. BEGIN_INTERFACE
  6420. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  6421. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6422. ID3D12CommandQueue * This,
  6423. REFIID riid,
  6424. _COM_Outptr_ void **ppvObject);
  6425. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  6426. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6427. ID3D12CommandQueue * This);
  6428. DECLSPEC_XFGVIRT(IUnknown, Release)
  6429. ULONG ( STDMETHODCALLTYPE *Release )(
  6430. ID3D12CommandQueue * This);
  6431. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  6432. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  6433. ID3D12CommandQueue * This,
  6434. _In_ REFGUID guid,
  6435. _Inout_ UINT *pDataSize,
  6436. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  6437. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  6438. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  6439. ID3D12CommandQueue * This,
  6440. _In_ REFGUID guid,
  6441. _In_ UINT DataSize,
  6442. _In_reads_bytes_opt_( DataSize ) const void *pData);
  6443. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  6444. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  6445. ID3D12CommandQueue * This,
  6446. _In_ REFGUID guid,
  6447. _In_opt_ const IUnknown *pData);
  6448. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  6449. HRESULT ( STDMETHODCALLTYPE *SetName )(
  6450. ID3D12CommandQueue * This,
  6451. _In_z_ LPCWSTR Name);
  6452. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  6453. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  6454. ID3D12CommandQueue * This,
  6455. REFIID riid,
  6456. _COM_Outptr_opt_ void **ppvDevice);
  6457. DECLSPEC_XFGVIRT(ID3D12CommandQueue, UpdateTileMappings)
  6458. void ( STDMETHODCALLTYPE *UpdateTileMappings )(
  6459. ID3D12CommandQueue * This,
  6460. _In_ ID3D12Resource *pResource,
  6461. UINT NumResourceRegions,
  6462. _In_reads_opt_(NumResourceRegions) const D3D12_TILED_RESOURCE_COORDINATE *pResourceRegionStartCoordinates,
  6463. _In_reads_opt_(NumResourceRegions) const D3D12_TILE_REGION_SIZE *pResourceRegionSizes,
  6464. _In_opt_ ID3D12Heap *pHeap,
  6465. UINT NumRanges,
  6466. _In_reads_opt_(NumRanges) const D3D12_TILE_RANGE_FLAGS *pRangeFlags,
  6467. _In_reads_opt_(NumRanges) const UINT *pHeapRangeStartOffsets,
  6468. _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts,
  6469. D3D12_TILE_MAPPING_FLAGS Flags);
  6470. DECLSPEC_XFGVIRT(ID3D12CommandQueue, CopyTileMappings)
  6471. void ( STDMETHODCALLTYPE *CopyTileMappings )(
  6472. ID3D12CommandQueue * This,
  6473. _In_ ID3D12Resource *pDstResource,
  6474. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pDstRegionStartCoordinate,
  6475. _In_ ID3D12Resource *pSrcResource,
  6476. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pSrcRegionStartCoordinate,
  6477. _In_ const D3D12_TILE_REGION_SIZE *pRegionSize,
  6478. D3D12_TILE_MAPPING_FLAGS Flags);
  6479. DECLSPEC_XFGVIRT(ID3D12CommandQueue, ExecuteCommandLists)
  6480. void ( STDMETHODCALLTYPE *ExecuteCommandLists )(
  6481. ID3D12CommandQueue * This,
  6482. _In_ UINT NumCommandLists,
  6483. _In_reads_(NumCommandLists) ID3D12CommandList *const *ppCommandLists);
  6484. DECLSPEC_XFGVIRT(ID3D12CommandQueue, SetMarker)
  6485. void ( STDMETHODCALLTYPE *SetMarker )(
  6486. ID3D12CommandQueue * This,
  6487. UINT Metadata,
  6488. _In_reads_bytes_opt_(Size) const void *pData,
  6489. UINT Size);
  6490. DECLSPEC_XFGVIRT(ID3D12CommandQueue, BeginEvent)
  6491. void ( STDMETHODCALLTYPE *BeginEvent )(
  6492. ID3D12CommandQueue * This,
  6493. UINT Metadata,
  6494. _In_reads_bytes_opt_(Size) const void *pData,
  6495. UINT Size);
  6496. DECLSPEC_XFGVIRT(ID3D12CommandQueue, EndEvent)
  6497. void ( STDMETHODCALLTYPE *EndEvent )(
  6498. ID3D12CommandQueue * This);
  6499. DECLSPEC_XFGVIRT(ID3D12CommandQueue, Signal)
  6500. HRESULT ( STDMETHODCALLTYPE *Signal )(
  6501. ID3D12CommandQueue * This,
  6502. ID3D12Fence *pFence,
  6503. UINT64 Value);
  6504. DECLSPEC_XFGVIRT(ID3D12CommandQueue, Wait)
  6505. HRESULT ( STDMETHODCALLTYPE *Wait )(
  6506. ID3D12CommandQueue * This,
  6507. ID3D12Fence *pFence,
  6508. UINT64 Value);
  6509. DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetTimestampFrequency)
  6510. HRESULT ( STDMETHODCALLTYPE *GetTimestampFrequency )(
  6511. ID3D12CommandQueue * This,
  6512. _Out_ UINT64 *pFrequency);
  6513. DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetClockCalibration)
  6514. HRESULT ( STDMETHODCALLTYPE *GetClockCalibration )(
  6515. ID3D12CommandQueue * This,
  6516. _Out_ UINT64 *pGpuTimestamp,
  6517. _Out_ UINT64 *pCpuTimestamp);
  6518. DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetDesc)
  6519. #if !defined(_WIN32)
  6520. D3D12_COMMAND_QUEUE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  6521. ID3D12CommandQueue * This);
  6522. #else
  6523. D3D12_COMMAND_QUEUE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  6524. ID3D12CommandQueue * This,
  6525. D3D12_COMMAND_QUEUE_DESC * RetVal);
  6526. #endif
  6527. END_INTERFACE
  6528. } ID3D12CommandQueueVtbl;
  6529. interface ID3D12CommandQueue
  6530. {
  6531. CONST_VTBL struct ID3D12CommandQueueVtbl *lpVtbl;
  6532. };
  6533. #ifdef COBJMACROS
  6534. #define ID3D12CommandQueue_QueryInterface(This,riid,ppvObject) \
  6535. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  6536. #define ID3D12CommandQueue_AddRef(This) \
  6537. ( (This)->lpVtbl -> AddRef(This) )
  6538. #define ID3D12CommandQueue_Release(This) \
  6539. ( (This)->lpVtbl -> Release(This) )
  6540. #define ID3D12CommandQueue_GetPrivateData(This,guid,pDataSize,pData) \
  6541. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  6542. #define ID3D12CommandQueue_SetPrivateData(This,guid,DataSize,pData) \
  6543. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  6544. #define ID3D12CommandQueue_SetPrivateDataInterface(This,guid,pData) \
  6545. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  6546. #define ID3D12CommandQueue_SetName(This,Name) \
  6547. ( (This)->lpVtbl -> SetName(This,Name) )
  6548. #define ID3D12CommandQueue_GetDevice(This,riid,ppvDevice) \
  6549. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  6550. #define ID3D12CommandQueue_UpdateTileMappings(This,pResource,NumResourceRegions,pResourceRegionStartCoordinates,pResourceRegionSizes,pHeap,NumRanges,pRangeFlags,pHeapRangeStartOffsets,pRangeTileCounts,Flags) \
  6551. ( (This)->lpVtbl -> UpdateTileMappings(This,pResource,NumResourceRegions,pResourceRegionStartCoordinates,pResourceRegionSizes,pHeap,NumRanges,pRangeFlags,pHeapRangeStartOffsets,pRangeTileCounts,Flags) )
  6552. #define ID3D12CommandQueue_CopyTileMappings(This,pDstResource,pDstRegionStartCoordinate,pSrcResource,pSrcRegionStartCoordinate,pRegionSize,Flags) \
  6553. ( (This)->lpVtbl -> CopyTileMappings(This,pDstResource,pDstRegionStartCoordinate,pSrcResource,pSrcRegionStartCoordinate,pRegionSize,Flags) )
  6554. #define ID3D12CommandQueue_ExecuteCommandLists(This,NumCommandLists,ppCommandLists) \
  6555. ( (This)->lpVtbl -> ExecuteCommandLists(This,NumCommandLists,ppCommandLists) )
  6556. #define ID3D12CommandQueue_SetMarker(This,Metadata,pData,Size) \
  6557. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  6558. #define ID3D12CommandQueue_BeginEvent(This,Metadata,pData,Size) \
  6559. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  6560. #define ID3D12CommandQueue_EndEvent(This) \
  6561. ( (This)->lpVtbl -> EndEvent(This) )
  6562. #define ID3D12CommandQueue_Signal(This,pFence,Value) \
  6563. ( (This)->lpVtbl -> Signal(This,pFence,Value) )
  6564. #define ID3D12CommandQueue_Wait(This,pFence,Value) \
  6565. ( (This)->lpVtbl -> Wait(This,pFence,Value) )
  6566. #define ID3D12CommandQueue_GetTimestampFrequency(This,pFrequency) \
  6567. ( (This)->lpVtbl -> GetTimestampFrequency(This,pFrequency) )
  6568. #define ID3D12CommandQueue_GetClockCalibration(This,pGpuTimestamp,pCpuTimestamp) \
  6569. ( (This)->lpVtbl -> GetClockCalibration(This,pGpuTimestamp,pCpuTimestamp) )
  6570. #if !defined(_WIN32)
  6571. #define ID3D12CommandQueue_GetDesc(This) \
  6572. ( (This)->lpVtbl -> GetDesc(This) )
  6573. #else
  6574. #define ID3D12CommandQueue_GetDesc(This,RetVal) \
  6575. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  6576. #endif
  6577. #endif /* COBJMACROS */
  6578. #endif /* C style interface */
  6579. #endif /* __ID3D12CommandQueue_INTERFACE_DEFINED__ */
  6580. /* interface __MIDL_itf_d3d12_0000_0020 */
  6581. /* [local] */
  6582. #ifdef __midl
  6583. #ifndef LUID_DEFINED
  6584. #define LUID_DEFINED 1
  6585. typedef struct __LUID
  6586. {
  6587. DWORD LowPart;
  6588. LONG HighPart;
  6589. } LUID;
  6590. typedef struct __LUID *PLUID;
  6591. #endif
  6592. #endif
  6593. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0020_v0_0_c_ifspec;
  6594. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0020_v0_0_s_ifspec;
  6595. #ifndef __ID3D12Device_INTERFACE_DEFINED__
  6596. #define __ID3D12Device_INTERFACE_DEFINED__
  6597. /* interface ID3D12Device */
  6598. /* [unique][local][object][uuid] */
  6599. EXTERN_C const IID IID_ID3D12Device;
  6600. #if defined(__cplusplus) && !defined(CINTERFACE)
  6601. MIDL_INTERFACE("189819f1-1db6-4b57-be54-1821339b85f7")
  6602. ID3D12Device : public ID3D12Object
  6603. {
  6604. public:
  6605. virtual UINT STDMETHODCALLTYPE GetNodeCount( void) = 0;
  6606. virtual HRESULT STDMETHODCALLTYPE CreateCommandQueue(
  6607. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  6608. REFIID riid,
  6609. _COM_Outptr_ void **ppCommandQueue) = 0;
  6610. virtual HRESULT STDMETHODCALLTYPE CreateCommandAllocator(
  6611. _In_ D3D12_COMMAND_LIST_TYPE type,
  6612. REFIID riid,
  6613. _COM_Outptr_ void **ppCommandAllocator) = 0;
  6614. virtual HRESULT STDMETHODCALLTYPE CreateGraphicsPipelineState(
  6615. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  6616. REFIID riid,
  6617. _COM_Outptr_ void **ppPipelineState) = 0;
  6618. virtual HRESULT STDMETHODCALLTYPE CreateComputePipelineState(
  6619. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  6620. REFIID riid,
  6621. _COM_Outptr_ void **ppPipelineState) = 0;
  6622. virtual HRESULT STDMETHODCALLTYPE CreateCommandList(
  6623. _In_ UINT nodeMask,
  6624. _In_ D3D12_COMMAND_LIST_TYPE type,
  6625. _In_ ID3D12CommandAllocator *pCommandAllocator,
  6626. _In_opt_ ID3D12PipelineState *pInitialState,
  6627. REFIID riid,
  6628. _COM_Outptr_ void **ppCommandList) = 0;
  6629. virtual HRESULT STDMETHODCALLTYPE CheckFeatureSupport(
  6630. D3D12_FEATURE Feature,
  6631. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  6632. UINT FeatureSupportDataSize) = 0;
  6633. virtual HRESULT STDMETHODCALLTYPE CreateDescriptorHeap(
  6634. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  6635. REFIID riid,
  6636. _COM_Outptr_ void **ppvHeap) = 0;
  6637. virtual UINT STDMETHODCALLTYPE GetDescriptorHandleIncrementSize(
  6638. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) = 0;
  6639. virtual HRESULT STDMETHODCALLTYPE CreateRootSignature(
  6640. _In_ UINT nodeMask,
  6641. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  6642. _In_ SIZE_T blobLengthInBytes,
  6643. REFIID riid,
  6644. _COM_Outptr_ void **ppvRootSignature) = 0;
  6645. virtual void STDMETHODCALLTYPE CreateConstantBufferView(
  6646. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  6647. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6648. virtual void STDMETHODCALLTYPE CreateShaderResourceView(
  6649. _In_opt_ ID3D12Resource *pResource,
  6650. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  6651. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6652. virtual void STDMETHODCALLTYPE CreateUnorderedAccessView(
  6653. _In_opt_ ID3D12Resource *pResource,
  6654. _In_opt_ ID3D12Resource *pCounterResource,
  6655. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  6656. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6657. virtual void STDMETHODCALLTYPE CreateRenderTargetView(
  6658. _In_opt_ ID3D12Resource *pResource,
  6659. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  6660. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6661. virtual void STDMETHODCALLTYPE CreateDepthStencilView(
  6662. _In_opt_ ID3D12Resource *pResource,
  6663. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  6664. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6665. virtual void STDMETHODCALLTYPE CreateSampler(
  6666. _In_ const D3D12_SAMPLER_DESC *pDesc,
  6667. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  6668. virtual void STDMETHODCALLTYPE CopyDescriptors(
  6669. _In_ UINT NumDestDescriptorRanges,
  6670. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  6671. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  6672. _In_ UINT NumSrcDescriptorRanges,
  6673. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  6674. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  6675. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType) = 0;
  6676. virtual void STDMETHODCALLTYPE CopyDescriptorsSimple(
  6677. _In_ UINT NumDescriptors,
  6678. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  6679. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  6680. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType) = 0;
  6681. #if defined(_MSC_VER) || !defined(_WIN32)
  6682. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo(
  6683. _In_ UINT visibleMask,
  6684. _In_ UINT numResourceDescs,
  6685. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs) = 0;
  6686. #else
  6687. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo(
  6688. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  6689. _In_ UINT visibleMask,
  6690. _In_ UINT numResourceDescs,
  6691. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs) = 0;
  6692. #endif
  6693. #if defined(_MSC_VER) || !defined(_WIN32)
  6694. virtual D3D12_HEAP_PROPERTIES STDMETHODCALLTYPE GetCustomHeapProperties(
  6695. _In_ UINT nodeMask,
  6696. D3D12_HEAP_TYPE heapType) = 0;
  6697. #else
  6698. virtual D3D12_HEAP_PROPERTIES *STDMETHODCALLTYPE GetCustomHeapProperties(
  6699. D3D12_HEAP_PROPERTIES * RetVal,
  6700. _In_ UINT nodeMask,
  6701. D3D12_HEAP_TYPE heapType) = 0;
  6702. #endif
  6703. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource(
  6704. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  6705. D3D12_HEAP_FLAGS HeapFlags,
  6706. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6707. D3D12_RESOURCE_STATES InitialResourceState,
  6708. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6709. REFIID riidResource,
  6710. _COM_Outptr_opt_ void **ppvResource) = 0;
  6711. virtual HRESULT STDMETHODCALLTYPE CreateHeap(
  6712. _In_ const D3D12_HEAP_DESC *pDesc,
  6713. REFIID riid,
  6714. _COM_Outptr_opt_ void **ppvHeap) = 0;
  6715. virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource(
  6716. _In_ ID3D12Heap *pHeap,
  6717. UINT64 HeapOffset,
  6718. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6719. D3D12_RESOURCE_STATES InitialState,
  6720. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6721. REFIID riid,
  6722. _COM_Outptr_opt_ void **ppvResource) = 0;
  6723. virtual HRESULT STDMETHODCALLTYPE CreateReservedResource(
  6724. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6725. D3D12_RESOURCE_STATES InitialState,
  6726. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6727. REFIID riid,
  6728. _COM_Outptr_opt_ void **ppvResource) = 0;
  6729. virtual HRESULT STDMETHODCALLTYPE CreateSharedHandle(
  6730. _In_ ID3D12DeviceChild *pObject,
  6731. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  6732. DWORD Access,
  6733. _In_opt_ LPCWSTR Name,
  6734. _Out_ HANDLE *pHandle) = 0;
  6735. virtual HRESULT STDMETHODCALLTYPE OpenSharedHandle(
  6736. _In_ HANDLE NTHandle,
  6737. REFIID riid,
  6738. _COM_Outptr_opt_ void **ppvObj) = 0;
  6739. virtual HRESULT STDMETHODCALLTYPE OpenSharedHandleByName(
  6740. _In_ LPCWSTR Name,
  6741. DWORD Access,
  6742. /* [annotation][out] */
  6743. _Out_ HANDLE *pNTHandle) = 0;
  6744. virtual HRESULT STDMETHODCALLTYPE MakeResident(
  6745. UINT NumObjects,
  6746. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects) = 0;
  6747. virtual HRESULT STDMETHODCALLTYPE Evict(
  6748. UINT NumObjects,
  6749. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects) = 0;
  6750. virtual HRESULT STDMETHODCALLTYPE CreateFence(
  6751. UINT64 InitialValue,
  6752. D3D12_FENCE_FLAGS Flags,
  6753. REFIID riid,
  6754. _COM_Outptr_ void **ppFence) = 0;
  6755. virtual HRESULT STDMETHODCALLTYPE GetDeviceRemovedReason( void) = 0;
  6756. virtual void STDMETHODCALLTYPE GetCopyableFootprints(
  6757. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  6758. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  6759. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  6760. UINT64 BaseOffset,
  6761. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  6762. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  6763. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  6764. _Out_opt_ UINT64 *pTotalBytes) = 0;
  6765. virtual HRESULT STDMETHODCALLTYPE CreateQueryHeap(
  6766. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  6767. REFIID riid,
  6768. _COM_Outptr_opt_ void **ppvHeap) = 0;
  6769. virtual HRESULT STDMETHODCALLTYPE SetStablePowerState(
  6770. BOOL Enable) = 0;
  6771. virtual HRESULT STDMETHODCALLTYPE CreateCommandSignature(
  6772. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  6773. _In_opt_ ID3D12RootSignature *pRootSignature,
  6774. REFIID riid,
  6775. _COM_Outptr_opt_ void **ppvCommandSignature) = 0;
  6776. virtual void STDMETHODCALLTYPE GetResourceTiling(
  6777. _In_ ID3D12Resource *pTiledResource,
  6778. _Out_opt_ UINT *pNumTilesForEntireResource,
  6779. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  6780. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  6781. _Inout_opt_ UINT *pNumSubresourceTilings,
  6782. _In_ UINT FirstSubresourceTilingToGet,
  6783. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips) = 0;
  6784. #if defined(_MSC_VER) || !defined(_WIN32)
  6785. virtual LUID STDMETHODCALLTYPE GetAdapterLuid( void) = 0;
  6786. #else
  6787. virtual LUID *STDMETHODCALLTYPE GetAdapterLuid(
  6788. LUID * RetVal) = 0;
  6789. #endif
  6790. };
  6791. #else /* C style interface */
  6792. typedef struct ID3D12DeviceVtbl
  6793. {
  6794. BEGIN_INTERFACE
  6795. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  6796. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6797. ID3D12Device * This,
  6798. REFIID riid,
  6799. _COM_Outptr_ void **ppvObject);
  6800. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  6801. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6802. ID3D12Device * This);
  6803. DECLSPEC_XFGVIRT(IUnknown, Release)
  6804. ULONG ( STDMETHODCALLTYPE *Release )(
  6805. ID3D12Device * This);
  6806. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  6807. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  6808. ID3D12Device * This,
  6809. _In_ REFGUID guid,
  6810. _Inout_ UINT *pDataSize,
  6811. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  6812. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  6813. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  6814. ID3D12Device * This,
  6815. _In_ REFGUID guid,
  6816. _In_ UINT DataSize,
  6817. _In_reads_bytes_opt_( DataSize ) const void *pData);
  6818. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  6819. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  6820. ID3D12Device * This,
  6821. _In_ REFGUID guid,
  6822. _In_opt_ const IUnknown *pData);
  6823. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  6824. HRESULT ( STDMETHODCALLTYPE *SetName )(
  6825. ID3D12Device * This,
  6826. _In_z_ LPCWSTR Name);
  6827. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  6828. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  6829. ID3D12Device * This);
  6830. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  6831. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  6832. ID3D12Device * This,
  6833. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  6834. REFIID riid,
  6835. _COM_Outptr_ void **ppCommandQueue);
  6836. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  6837. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  6838. ID3D12Device * This,
  6839. _In_ D3D12_COMMAND_LIST_TYPE type,
  6840. REFIID riid,
  6841. _COM_Outptr_ void **ppCommandAllocator);
  6842. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  6843. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  6844. ID3D12Device * This,
  6845. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  6846. REFIID riid,
  6847. _COM_Outptr_ void **ppPipelineState);
  6848. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  6849. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  6850. ID3D12Device * This,
  6851. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  6852. REFIID riid,
  6853. _COM_Outptr_ void **ppPipelineState);
  6854. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  6855. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  6856. ID3D12Device * This,
  6857. _In_ UINT nodeMask,
  6858. _In_ D3D12_COMMAND_LIST_TYPE type,
  6859. _In_ ID3D12CommandAllocator *pCommandAllocator,
  6860. _In_opt_ ID3D12PipelineState *pInitialState,
  6861. REFIID riid,
  6862. _COM_Outptr_ void **ppCommandList);
  6863. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  6864. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  6865. ID3D12Device * This,
  6866. D3D12_FEATURE Feature,
  6867. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  6868. UINT FeatureSupportDataSize);
  6869. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  6870. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  6871. ID3D12Device * This,
  6872. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  6873. REFIID riid,
  6874. _COM_Outptr_ void **ppvHeap);
  6875. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  6876. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  6877. ID3D12Device * This,
  6878. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  6879. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  6880. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  6881. ID3D12Device * This,
  6882. _In_ UINT nodeMask,
  6883. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  6884. _In_ SIZE_T blobLengthInBytes,
  6885. REFIID riid,
  6886. _COM_Outptr_ void **ppvRootSignature);
  6887. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  6888. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  6889. ID3D12Device * This,
  6890. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  6891. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6892. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  6893. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  6894. ID3D12Device * This,
  6895. _In_opt_ ID3D12Resource *pResource,
  6896. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  6897. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6898. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  6899. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  6900. ID3D12Device * This,
  6901. _In_opt_ ID3D12Resource *pResource,
  6902. _In_opt_ ID3D12Resource *pCounterResource,
  6903. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  6904. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6905. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  6906. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  6907. ID3D12Device * This,
  6908. _In_opt_ ID3D12Resource *pResource,
  6909. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  6910. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6911. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  6912. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  6913. ID3D12Device * This,
  6914. _In_opt_ ID3D12Resource *pResource,
  6915. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  6916. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6917. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  6918. void ( STDMETHODCALLTYPE *CreateSampler )(
  6919. ID3D12Device * This,
  6920. _In_ const D3D12_SAMPLER_DESC *pDesc,
  6921. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  6922. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  6923. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  6924. ID3D12Device * This,
  6925. _In_ UINT NumDestDescriptorRanges,
  6926. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  6927. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  6928. _In_ UINT NumSrcDescriptorRanges,
  6929. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  6930. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  6931. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  6932. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  6933. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  6934. ID3D12Device * This,
  6935. _In_ UINT NumDescriptors,
  6936. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  6937. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  6938. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  6939. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  6940. #if !defined(_WIN32)
  6941. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  6942. ID3D12Device * This,
  6943. _In_ UINT visibleMask,
  6944. _In_ UINT numResourceDescs,
  6945. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  6946. #else
  6947. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  6948. ID3D12Device * This,
  6949. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  6950. _In_ UINT visibleMask,
  6951. _In_ UINT numResourceDescs,
  6952. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  6953. #endif
  6954. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  6955. #if !defined(_WIN32)
  6956. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  6957. ID3D12Device * This,
  6958. _In_ UINT nodeMask,
  6959. D3D12_HEAP_TYPE heapType);
  6960. #else
  6961. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  6962. ID3D12Device * This,
  6963. D3D12_HEAP_PROPERTIES * RetVal,
  6964. _In_ UINT nodeMask,
  6965. D3D12_HEAP_TYPE heapType);
  6966. #endif
  6967. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  6968. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  6969. ID3D12Device * This,
  6970. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  6971. D3D12_HEAP_FLAGS HeapFlags,
  6972. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6973. D3D12_RESOURCE_STATES InitialResourceState,
  6974. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6975. REFIID riidResource,
  6976. _COM_Outptr_opt_ void **ppvResource);
  6977. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  6978. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  6979. ID3D12Device * This,
  6980. _In_ const D3D12_HEAP_DESC *pDesc,
  6981. REFIID riid,
  6982. _COM_Outptr_opt_ void **ppvHeap);
  6983. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  6984. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  6985. ID3D12Device * This,
  6986. _In_ ID3D12Heap *pHeap,
  6987. UINT64 HeapOffset,
  6988. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6989. D3D12_RESOURCE_STATES InitialState,
  6990. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6991. REFIID riid,
  6992. _COM_Outptr_opt_ void **ppvResource);
  6993. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  6994. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  6995. ID3D12Device * This,
  6996. _In_ const D3D12_RESOURCE_DESC *pDesc,
  6997. D3D12_RESOURCE_STATES InitialState,
  6998. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  6999. REFIID riid,
  7000. _COM_Outptr_opt_ void **ppvResource);
  7001. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  7002. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  7003. ID3D12Device * This,
  7004. _In_ ID3D12DeviceChild *pObject,
  7005. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  7006. DWORD Access,
  7007. _In_opt_ LPCWSTR Name,
  7008. _Out_ HANDLE *pHandle);
  7009. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  7010. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  7011. ID3D12Device * This,
  7012. _In_ HANDLE NTHandle,
  7013. REFIID riid,
  7014. _COM_Outptr_opt_ void **ppvObj);
  7015. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  7016. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  7017. ID3D12Device * This,
  7018. _In_ LPCWSTR Name,
  7019. DWORD Access,
  7020. /* [annotation][out] */
  7021. _Out_ HANDLE *pNTHandle);
  7022. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  7023. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  7024. ID3D12Device * This,
  7025. UINT NumObjects,
  7026. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7027. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  7028. HRESULT ( STDMETHODCALLTYPE *Evict )(
  7029. ID3D12Device * This,
  7030. UINT NumObjects,
  7031. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7032. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  7033. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  7034. ID3D12Device * This,
  7035. UINT64 InitialValue,
  7036. D3D12_FENCE_FLAGS Flags,
  7037. REFIID riid,
  7038. _COM_Outptr_ void **ppFence);
  7039. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  7040. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  7041. ID3D12Device * This);
  7042. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  7043. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  7044. ID3D12Device * This,
  7045. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  7046. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  7047. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  7048. UINT64 BaseOffset,
  7049. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  7050. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  7051. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  7052. _Out_opt_ UINT64 *pTotalBytes);
  7053. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  7054. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  7055. ID3D12Device * This,
  7056. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  7057. REFIID riid,
  7058. _COM_Outptr_opt_ void **ppvHeap);
  7059. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  7060. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  7061. ID3D12Device * This,
  7062. BOOL Enable);
  7063. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  7064. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  7065. ID3D12Device * This,
  7066. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  7067. _In_opt_ ID3D12RootSignature *pRootSignature,
  7068. REFIID riid,
  7069. _COM_Outptr_opt_ void **ppvCommandSignature);
  7070. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  7071. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  7072. ID3D12Device * This,
  7073. _In_ ID3D12Resource *pTiledResource,
  7074. _Out_opt_ UINT *pNumTilesForEntireResource,
  7075. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  7076. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  7077. _Inout_opt_ UINT *pNumSubresourceTilings,
  7078. _In_ UINT FirstSubresourceTilingToGet,
  7079. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  7080. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  7081. #if !defined(_WIN32)
  7082. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  7083. ID3D12Device * This);
  7084. #else
  7085. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  7086. ID3D12Device * This,
  7087. LUID * RetVal);
  7088. #endif
  7089. END_INTERFACE
  7090. } ID3D12DeviceVtbl;
  7091. interface ID3D12Device
  7092. {
  7093. CONST_VTBL struct ID3D12DeviceVtbl *lpVtbl;
  7094. };
  7095. #ifdef COBJMACROS
  7096. #define ID3D12Device_QueryInterface(This,riid,ppvObject) \
  7097. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7098. #define ID3D12Device_AddRef(This) \
  7099. ( (This)->lpVtbl -> AddRef(This) )
  7100. #define ID3D12Device_Release(This) \
  7101. ( (This)->lpVtbl -> Release(This) )
  7102. #define ID3D12Device_GetPrivateData(This,guid,pDataSize,pData) \
  7103. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7104. #define ID3D12Device_SetPrivateData(This,guid,DataSize,pData) \
  7105. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7106. #define ID3D12Device_SetPrivateDataInterface(This,guid,pData) \
  7107. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7108. #define ID3D12Device_SetName(This,Name) \
  7109. ( (This)->lpVtbl -> SetName(This,Name) )
  7110. #define ID3D12Device_GetNodeCount(This) \
  7111. ( (This)->lpVtbl -> GetNodeCount(This) )
  7112. #define ID3D12Device_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  7113. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  7114. #define ID3D12Device_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  7115. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  7116. #define ID3D12Device_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  7117. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  7118. #define ID3D12Device_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  7119. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  7120. #define ID3D12Device_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  7121. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  7122. #define ID3D12Device_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  7123. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  7124. #define ID3D12Device_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  7125. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  7126. #define ID3D12Device_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  7127. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  7128. #define ID3D12Device_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  7129. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  7130. #define ID3D12Device_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  7131. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  7132. #define ID3D12Device_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  7133. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  7134. #define ID3D12Device_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  7135. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  7136. #define ID3D12Device_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  7137. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  7138. #define ID3D12Device_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  7139. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  7140. #define ID3D12Device_CreateSampler(This,pDesc,DestDescriptor) \
  7141. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  7142. #define ID3D12Device_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  7143. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  7144. #define ID3D12Device_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  7145. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  7146. #if !defined(_WIN32)
  7147. #define ID3D12Device_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  7148. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  7149. #else
  7150. #define ID3D12Device_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  7151. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  7152. #endif
  7153. #if !defined(_WIN32)
  7154. #define ID3D12Device_GetCustomHeapProperties(This,nodeMask,heapType) \
  7155. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  7156. #else
  7157. #define ID3D12Device_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  7158. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  7159. #endif
  7160. #define ID3D12Device_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  7161. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  7162. #define ID3D12Device_CreateHeap(This,pDesc,riid,ppvHeap) \
  7163. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  7164. #define ID3D12Device_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  7165. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  7166. #define ID3D12Device_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  7167. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  7168. #define ID3D12Device_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  7169. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  7170. #define ID3D12Device_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  7171. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  7172. #define ID3D12Device_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  7173. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  7174. #define ID3D12Device_MakeResident(This,NumObjects,ppObjects) \
  7175. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  7176. #define ID3D12Device_Evict(This,NumObjects,ppObjects) \
  7177. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  7178. #define ID3D12Device_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  7179. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  7180. #define ID3D12Device_GetDeviceRemovedReason(This) \
  7181. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  7182. #define ID3D12Device_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  7183. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  7184. #define ID3D12Device_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  7185. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  7186. #define ID3D12Device_SetStablePowerState(This,Enable) \
  7187. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  7188. #define ID3D12Device_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  7189. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  7190. #define ID3D12Device_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  7191. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  7192. #if !defined(_WIN32)
  7193. #define ID3D12Device_GetAdapterLuid(This) \
  7194. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  7195. #else
  7196. #define ID3D12Device_GetAdapterLuid(This,RetVal) \
  7197. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  7198. #endif
  7199. #endif /* COBJMACROS */
  7200. #endif /* C style interface */
  7201. #endif /* __ID3D12Device_INTERFACE_DEFINED__ */
  7202. #ifndef __ID3D12PipelineLibrary_INTERFACE_DEFINED__
  7203. #define __ID3D12PipelineLibrary_INTERFACE_DEFINED__
  7204. /* interface ID3D12PipelineLibrary */
  7205. /* [unique][local][object][uuid] */
  7206. EXTERN_C const IID IID_ID3D12PipelineLibrary;
  7207. #if defined(__cplusplus) && !defined(CINTERFACE)
  7208. MIDL_INTERFACE("c64226a8-9201-46af-b4cc-53fb9ff7414f")
  7209. ID3D12PipelineLibrary : public ID3D12DeviceChild
  7210. {
  7211. public:
  7212. virtual HRESULT STDMETHODCALLTYPE StorePipeline(
  7213. _In_opt_ LPCWSTR pName,
  7214. _In_ ID3D12PipelineState *pPipeline) = 0;
  7215. virtual HRESULT STDMETHODCALLTYPE LoadGraphicsPipeline(
  7216. _In_ LPCWSTR pName,
  7217. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7218. REFIID riid,
  7219. _COM_Outptr_ void **ppPipelineState) = 0;
  7220. virtual HRESULT STDMETHODCALLTYPE LoadComputePipeline(
  7221. _In_ LPCWSTR pName,
  7222. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7223. REFIID riid,
  7224. _COM_Outptr_ void **ppPipelineState) = 0;
  7225. virtual SIZE_T STDMETHODCALLTYPE GetSerializedSize( void) = 0;
  7226. virtual HRESULT STDMETHODCALLTYPE Serialize(
  7227. _Out_writes_(DataSizeInBytes) void *pData,
  7228. SIZE_T DataSizeInBytes) = 0;
  7229. };
  7230. #else /* C style interface */
  7231. typedef struct ID3D12PipelineLibraryVtbl
  7232. {
  7233. BEGIN_INTERFACE
  7234. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  7235. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7236. ID3D12PipelineLibrary * This,
  7237. REFIID riid,
  7238. _COM_Outptr_ void **ppvObject);
  7239. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  7240. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7241. ID3D12PipelineLibrary * This);
  7242. DECLSPEC_XFGVIRT(IUnknown, Release)
  7243. ULONG ( STDMETHODCALLTYPE *Release )(
  7244. ID3D12PipelineLibrary * This);
  7245. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  7246. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  7247. ID3D12PipelineLibrary * This,
  7248. _In_ REFGUID guid,
  7249. _Inout_ UINT *pDataSize,
  7250. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  7251. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  7252. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  7253. ID3D12PipelineLibrary * This,
  7254. _In_ REFGUID guid,
  7255. _In_ UINT DataSize,
  7256. _In_reads_bytes_opt_( DataSize ) const void *pData);
  7257. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  7258. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  7259. ID3D12PipelineLibrary * This,
  7260. _In_ REFGUID guid,
  7261. _In_opt_ const IUnknown *pData);
  7262. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  7263. HRESULT ( STDMETHODCALLTYPE *SetName )(
  7264. ID3D12PipelineLibrary * This,
  7265. _In_z_ LPCWSTR Name);
  7266. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  7267. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  7268. ID3D12PipelineLibrary * This,
  7269. REFIID riid,
  7270. _COM_Outptr_opt_ void **ppvDevice);
  7271. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, StorePipeline)
  7272. HRESULT ( STDMETHODCALLTYPE *StorePipeline )(
  7273. ID3D12PipelineLibrary * This,
  7274. _In_opt_ LPCWSTR pName,
  7275. _In_ ID3D12PipelineState *pPipeline);
  7276. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadGraphicsPipeline)
  7277. HRESULT ( STDMETHODCALLTYPE *LoadGraphicsPipeline )(
  7278. ID3D12PipelineLibrary * This,
  7279. _In_ LPCWSTR pName,
  7280. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7281. REFIID riid,
  7282. _COM_Outptr_ void **ppPipelineState);
  7283. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadComputePipeline)
  7284. HRESULT ( STDMETHODCALLTYPE *LoadComputePipeline )(
  7285. ID3D12PipelineLibrary * This,
  7286. _In_ LPCWSTR pName,
  7287. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7288. REFIID riid,
  7289. _COM_Outptr_ void **ppPipelineState);
  7290. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, GetSerializedSize)
  7291. SIZE_T ( STDMETHODCALLTYPE *GetSerializedSize )(
  7292. ID3D12PipelineLibrary * This);
  7293. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, Serialize)
  7294. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  7295. ID3D12PipelineLibrary * This,
  7296. _Out_writes_(DataSizeInBytes) void *pData,
  7297. SIZE_T DataSizeInBytes);
  7298. END_INTERFACE
  7299. } ID3D12PipelineLibraryVtbl;
  7300. interface ID3D12PipelineLibrary
  7301. {
  7302. CONST_VTBL struct ID3D12PipelineLibraryVtbl *lpVtbl;
  7303. };
  7304. #ifdef COBJMACROS
  7305. #define ID3D12PipelineLibrary_QueryInterface(This,riid,ppvObject) \
  7306. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7307. #define ID3D12PipelineLibrary_AddRef(This) \
  7308. ( (This)->lpVtbl -> AddRef(This) )
  7309. #define ID3D12PipelineLibrary_Release(This) \
  7310. ( (This)->lpVtbl -> Release(This) )
  7311. #define ID3D12PipelineLibrary_GetPrivateData(This,guid,pDataSize,pData) \
  7312. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7313. #define ID3D12PipelineLibrary_SetPrivateData(This,guid,DataSize,pData) \
  7314. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7315. #define ID3D12PipelineLibrary_SetPrivateDataInterface(This,guid,pData) \
  7316. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7317. #define ID3D12PipelineLibrary_SetName(This,Name) \
  7318. ( (This)->lpVtbl -> SetName(This,Name) )
  7319. #define ID3D12PipelineLibrary_GetDevice(This,riid,ppvDevice) \
  7320. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  7321. #define ID3D12PipelineLibrary_StorePipeline(This,pName,pPipeline) \
  7322. ( (This)->lpVtbl -> StorePipeline(This,pName,pPipeline) )
  7323. #define ID3D12PipelineLibrary_LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) \
  7324. ( (This)->lpVtbl -> LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) )
  7325. #define ID3D12PipelineLibrary_LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) \
  7326. ( (This)->lpVtbl -> LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) )
  7327. #define ID3D12PipelineLibrary_GetSerializedSize(This) \
  7328. ( (This)->lpVtbl -> GetSerializedSize(This) )
  7329. #define ID3D12PipelineLibrary_Serialize(This,pData,DataSizeInBytes) \
  7330. ( (This)->lpVtbl -> Serialize(This,pData,DataSizeInBytes) )
  7331. #endif /* COBJMACROS */
  7332. #endif /* C style interface */
  7333. #endif /* __ID3D12PipelineLibrary_INTERFACE_DEFINED__ */
  7334. #ifndef __ID3D12PipelineLibrary1_INTERFACE_DEFINED__
  7335. #define __ID3D12PipelineLibrary1_INTERFACE_DEFINED__
  7336. /* interface ID3D12PipelineLibrary1 */
  7337. /* [unique][local][object][uuid] */
  7338. EXTERN_C const IID IID_ID3D12PipelineLibrary1;
  7339. #if defined(__cplusplus) && !defined(CINTERFACE)
  7340. MIDL_INTERFACE("80eabf42-2568-4e5e-bd82-c37f86961dc3")
  7341. ID3D12PipelineLibrary1 : public ID3D12PipelineLibrary
  7342. {
  7343. public:
  7344. virtual HRESULT STDMETHODCALLTYPE LoadPipeline(
  7345. _In_ LPCWSTR pName,
  7346. _In_ const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  7347. REFIID riid,
  7348. _COM_Outptr_ void **ppPipelineState) = 0;
  7349. };
  7350. #else /* C style interface */
  7351. typedef struct ID3D12PipelineLibrary1Vtbl
  7352. {
  7353. BEGIN_INTERFACE
  7354. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  7355. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7356. ID3D12PipelineLibrary1 * This,
  7357. REFIID riid,
  7358. _COM_Outptr_ void **ppvObject);
  7359. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  7360. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7361. ID3D12PipelineLibrary1 * This);
  7362. DECLSPEC_XFGVIRT(IUnknown, Release)
  7363. ULONG ( STDMETHODCALLTYPE *Release )(
  7364. ID3D12PipelineLibrary1 * This);
  7365. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  7366. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  7367. ID3D12PipelineLibrary1 * This,
  7368. _In_ REFGUID guid,
  7369. _Inout_ UINT *pDataSize,
  7370. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  7371. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  7372. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  7373. ID3D12PipelineLibrary1 * This,
  7374. _In_ REFGUID guid,
  7375. _In_ UINT DataSize,
  7376. _In_reads_bytes_opt_( DataSize ) const void *pData);
  7377. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  7378. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  7379. ID3D12PipelineLibrary1 * This,
  7380. _In_ REFGUID guid,
  7381. _In_opt_ const IUnknown *pData);
  7382. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  7383. HRESULT ( STDMETHODCALLTYPE *SetName )(
  7384. ID3D12PipelineLibrary1 * This,
  7385. _In_z_ LPCWSTR Name);
  7386. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  7387. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  7388. ID3D12PipelineLibrary1 * This,
  7389. REFIID riid,
  7390. _COM_Outptr_opt_ void **ppvDevice);
  7391. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, StorePipeline)
  7392. HRESULT ( STDMETHODCALLTYPE *StorePipeline )(
  7393. ID3D12PipelineLibrary1 * This,
  7394. _In_opt_ LPCWSTR pName,
  7395. _In_ ID3D12PipelineState *pPipeline);
  7396. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadGraphicsPipeline)
  7397. HRESULT ( STDMETHODCALLTYPE *LoadGraphicsPipeline )(
  7398. ID3D12PipelineLibrary1 * This,
  7399. _In_ LPCWSTR pName,
  7400. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7401. REFIID riid,
  7402. _COM_Outptr_ void **ppPipelineState);
  7403. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadComputePipeline)
  7404. HRESULT ( STDMETHODCALLTYPE *LoadComputePipeline )(
  7405. ID3D12PipelineLibrary1 * This,
  7406. _In_ LPCWSTR pName,
  7407. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7408. REFIID riid,
  7409. _COM_Outptr_ void **ppPipelineState);
  7410. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, GetSerializedSize)
  7411. SIZE_T ( STDMETHODCALLTYPE *GetSerializedSize )(
  7412. ID3D12PipelineLibrary1 * This);
  7413. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, Serialize)
  7414. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  7415. ID3D12PipelineLibrary1 * This,
  7416. _Out_writes_(DataSizeInBytes) void *pData,
  7417. SIZE_T DataSizeInBytes);
  7418. DECLSPEC_XFGVIRT(ID3D12PipelineLibrary1, LoadPipeline)
  7419. HRESULT ( STDMETHODCALLTYPE *LoadPipeline )(
  7420. ID3D12PipelineLibrary1 * This,
  7421. _In_ LPCWSTR pName,
  7422. _In_ const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  7423. REFIID riid,
  7424. _COM_Outptr_ void **ppPipelineState);
  7425. END_INTERFACE
  7426. } ID3D12PipelineLibrary1Vtbl;
  7427. interface ID3D12PipelineLibrary1
  7428. {
  7429. CONST_VTBL struct ID3D12PipelineLibrary1Vtbl *lpVtbl;
  7430. };
  7431. #ifdef COBJMACROS
  7432. #define ID3D12PipelineLibrary1_QueryInterface(This,riid,ppvObject) \
  7433. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7434. #define ID3D12PipelineLibrary1_AddRef(This) \
  7435. ( (This)->lpVtbl -> AddRef(This) )
  7436. #define ID3D12PipelineLibrary1_Release(This) \
  7437. ( (This)->lpVtbl -> Release(This) )
  7438. #define ID3D12PipelineLibrary1_GetPrivateData(This,guid,pDataSize,pData) \
  7439. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7440. #define ID3D12PipelineLibrary1_SetPrivateData(This,guid,DataSize,pData) \
  7441. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7442. #define ID3D12PipelineLibrary1_SetPrivateDataInterface(This,guid,pData) \
  7443. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7444. #define ID3D12PipelineLibrary1_SetName(This,Name) \
  7445. ( (This)->lpVtbl -> SetName(This,Name) )
  7446. #define ID3D12PipelineLibrary1_GetDevice(This,riid,ppvDevice) \
  7447. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  7448. #define ID3D12PipelineLibrary1_StorePipeline(This,pName,pPipeline) \
  7449. ( (This)->lpVtbl -> StorePipeline(This,pName,pPipeline) )
  7450. #define ID3D12PipelineLibrary1_LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) \
  7451. ( (This)->lpVtbl -> LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) )
  7452. #define ID3D12PipelineLibrary1_LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) \
  7453. ( (This)->lpVtbl -> LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) )
  7454. #define ID3D12PipelineLibrary1_GetSerializedSize(This) \
  7455. ( (This)->lpVtbl -> GetSerializedSize(This) )
  7456. #define ID3D12PipelineLibrary1_Serialize(This,pData,DataSizeInBytes) \
  7457. ( (This)->lpVtbl -> Serialize(This,pData,DataSizeInBytes) )
  7458. #define ID3D12PipelineLibrary1_LoadPipeline(This,pName,pDesc,riid,ppPipelineState) \
  7459. ( (This)->lpVtbl -> LoadPipeline(This,pName,pDesc,riid,ppPipelineState) )
  7460. #endif /* COBJMACROS */
  7461. #endif /* C style interface */
  7462. #endif /* __ID3D12PipelineLibrary1_INTERFACE_DEFINED__ */
  7463. /* interface __MIDL_itf_d3d12_0000_0023 */
  7464. /* [local] */
  7465. typedef
  7466. enum D3D12_MULTIPLE_FENCE_WAIT_FLAGS
  7467. {
  7468. D3D12_MULTIPLE_FENCE_WAIT_FLAG_NONE = 0,
  7469. D3D12_MULTIPLE_FENCE_WAIT_FLAG_ANY = 0x1,
  7470. D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL = 0
  7471. } D3D12_MULTIPLE_FENCE_WAIT_FLAGS;
  7472. DEFINE_ENUM_FLAG_OPERATORS( D3D12_MULTIPLE_FENCE_WAIT_FLAGS );
  7473. typedef
  7474. enum D3D12_RESIDENCY_PRIORITY
  7475. {
  7476. D3D12_RESIDENCY_PRIORITY_MINIMUM = 0x28000000,
  7477. D3D12_RESIDENCY_PRIORITY_LOW = 0x50000000,
  7478. D3D12_RESIDENCY_PRIORITY_NORMAL = 0x78000000,
  7479. D3D12_RESIDENCY_PRIORITY_HIGH = 0xa0010000,
  7480. D3D12_RESIDENCY_PRIORITY_MAXIMUM = 0xc8000000
  7481. } D3D12_RESIDENCY_PRIORITY;
  7482. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0023_v0_0_c_ifspec;
  7483. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0023_v0_0_s_ifspec;
  7484. #ifndef __ID3D12Device1_INTERFACE_DEFINED__
  7485. #define __ID3D12Device1_INTERFACE_DEFINED__
  7486. /* interface ID3D12Device1 */
  7487. /* [unique][local][object][uuid] */
  7488. EXTERN_C const IID IID_ID3D12Device1;
  7489. #if defined(__cplusplus) && !defined(CINTERFACE)
  7490. MIDL_INTERFACE("77acce80-638e-4e65-8895-c1f23386863e")
  7491. ID3D12Device1 : public ID3D12Device
  7492. {
  7493. public:
  7494. virtual HRESULT STDMETHODCALLTYPE CreatePipelineLibrary(
  7495. _In_reads_(BlobLength) const void *pLibraryBlob,
  7496. SIZE_T BlobLength,
  7497. REFIID riid,
  7498. _COM_Outptr_ void **ppPipelineLibrary) = 0;
  7499. virtual HRESULT STDMETHODCALLTYPE SetEventOnMultipleFenceCompletion(
  7500. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  7501. _In_reads_(NumFences) const UINT64 *pFenceValues,
  7502. UINT NumFences,
  7503. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  7504. HANDLE hEvent) = 0;
  7505. virtual HRESULT STDMETHODCALLTYPE SetResidencyPriority(
  7506. UINT NumObjects,
  7507. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  7508. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities) = 0;
  7509. };
  7510. #else /* C style interface */
  7511. typedef struct ID3D12Device1Vtbl
  7512. {
  7513. BEGIN_INTERFACE
  7514. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  7515. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7516. ID3D12Device1 * This,
  7517. REFIID riid,
  7518. _COM_Outptr_ void **ppvObject);
  7519. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  7520. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7521. ID3D12Device1 * This);
  7522. DECLSPEC_XFGVIRT(IUnknown, Release)
  7523. ULONG ( STDMETHODCALLTYPE *Release )(
  7524. ID3D12Device1 * This);
  7525. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  7526. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  7527. ID3D12Device1 * This,
  7528. _In_ REFGUID guid,
  7529. _Inout_ UINT *pDataSize,
  7530. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  7531. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  7532. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  7533. ID3D12Device1 * This,
  7534. _In_ REFGUID guid,
  7535. _In_ UINT DataSize,
  7536. _In_reads_bytes_opt_( DataSize ) const void *pData);
  7537. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  7538. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  7539. ID3D12Device1 * This,
  7540. _In_ REFGUID guid,
  7541. _In_opt_ const IUnknown *pData);
  7542. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  7543. HRESULT ( STDMETHODCALLTYPE *SetName )(
  7544. ID3D12Device1 * This,
  7545. _In_z_ LPCWSTR Name);
  7546. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  7547. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  7548. ID3D12Device1 * This);
  7549. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  7550. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  7551. ID3D12Device1 * This,
  7552. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  7553. REFIID riid,
  7554. _COM_Outptr_ void **ppCommandQueue);
  7555. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  7556. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  7557. ID3D12Device1 * This,
  7558. _In_ D3D12_COMMAND_LIST_TYPE type,
  7559. REFIID riid,
  7560. _COM_Outptr_ void **ppCommandAllocator);
  7561. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  7562. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  7563. ID3D12Device1 * This,
  7564. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  7565. REFIID riid,
  7566. _COM_Outptr_ void **ppPipelineState);
  7567. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  7568. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  7569. ID3D12Device1 * This,
  7570. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  7571. REFIID riid,
  7572. _COM_Outptr_ void **ppPipelineState);
  7573. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  7574. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  7575. ID3D12Device1 * This,
  7576. _In_ UINT nodeMask,
  7577. _In_ D3D12_COMMAND_LIST_TYPE type,
  7578. _In_ ID3D12CommandAllocator *pCommandAllocator,
  7579. _In_opt_ ID3D12PipelineState *pInitialState,
  7580. REFIID riid,
  7581. _COM_Outptr_ void **ppCommandList);
  7582. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  7583. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  7584. ID3D12Device1 * This,
  7585. D3D12_FEATURE Feature,
  7586. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  7587. UINT FeatureSupportDataSize);
  7588. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  7589. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  7590. ID3D12Device1 * This,
  7591. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  7592. REFIID riid,
  7593. _COM_Outptr_ void **ppvHeap);
  7594. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  7595. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  7596. ID3D12Device1 * This,
  7597. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  7598. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  7599. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  7600. ID3D12Device1 * This,
  7601. _In_ UINT nodeMask,
  7602. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  7603. _In_ SIZE_T blobLengthInBytes,
  7604. REFIID riid,
  7605. _COM_Outptr_ void **ppvRootSignature);
  7606. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  7607. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  7608. ID3D12Device1 * This,
  7609. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  7610. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7611. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  7612. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  7613. ID3D12Device1 * This,
  7614. _In_opt_ ID3D12Resource *pResource,
  7615. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  7616. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7617. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  7618. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  7619. ID3D12Device1 * This,
  7620. _In_opt_ ID3D12Resource *pResource,
  7621. _In_opt_ ID3D12Resource *pCounterResource,
  7622. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  7623. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7624. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  7625. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  7626. ID3D12Device1 * This,
  7627. _In_opt_ ID3D12Resource *pResource,
  7628. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  7629. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7630. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  7631. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  7632. ID3D12Device1 * This,
  7633. _In_opt_ ID3D12Resource *pResource,
  7634. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  7635. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7636. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  7637. void ( STDMETHODCALLTYPE *CreateSampler )(
  7638. ID3D12Device1 * This,
  7639. _In_ const D3D12_SAMPLER_DESC *pDesc,
  7640. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  7641. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  7642. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  7643. ID3D12Device1 * This,
  7644. _In_ UINT NumDestDescriptorRanges,
  7645. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  7646. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  7647. _In_ UINT NumSrcDescriptorRanges,
  7648. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  7649. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  7650. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  7651. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  7652. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  7653. ID3D12Device1 * This,
  7654. _In_ UINT NumDescriptors,
  7655. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  7656. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  7657. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  7658. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  7659. #if !defined(_WIN32)
  7660. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  7661. ID3D12Device1 * This,
  7662. _In_ UINT visibleMask,
  7663. _In_ UINT numResourceDescs,
  7664. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  7665. #else
  7666. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  7667. ID3D12Device1 * This,
  7668. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  7669. _In_ UINT visibleMask,
  7670. _In_ UINT numResourceDescs,
  7671. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  7672. #endif
  7673. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  7674. #if !defined(_WIN32)
  7675. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  7676. ID3D12Device1 * This,
  7677. _In_ UINT nodeMask,
  7678. D3D12_HEAP_TYPE heapType);
  7679. #else
  7680. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  7681. ID3D12Device1 * This,
  7682. D3D12_HEAP_PROPERTIES * RetVal,
  7683. _In_ UINT nodeMask,
  7684. D3D12_HEAP_TYPE heapType);
  7685. #endif
  7686. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  7687. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  7688. ID3D12Device1 * This,
  7689. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  7690. D3D12_HEAP_FLAGS HeapFlags,
  7691. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7692. D3D12_RESOURCE_STATES InitialResourceState,
  7693. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7694. REFIID riidResource,
  7695. _COM_Outptr_opt_ void **ppvResource);
  7696. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  7697. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  7698. ID3D12Device1 * This,
  7699. _In_ const D3D12_HEAP_DESC *pDesc,
  7700. REFIID riid,
  7701. _COM_Outptr_opt_ void **ppvHeap);
  7702. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  7703. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  7704. ID3D12Device1 * This,
  7705. _In_ ID3D12Heap *pHeap,
  7706. UINT64 HeapOffset,
  7707. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7708. D3D12_RESOURCE_STATES InitialState,
  7709. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7710. REFIID riid,
  7711. _COM_Outptr_opt_ void **ppvResource);
  7712. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  7713. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  7714. ID3D12Device1 * This,
  7715. _In_ const D3D12_RESOURCE_DESC *pDesc,
  7716. D3D12_RESOURCE_STATES InitialState,
  7717. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  7718. REFIID riid,
  7719. _COM_Outptr_opt_ void **ppvResource);
  7720. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  7721. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  7722. ID3D12Device1 * This,
  7723. _In_ ID3D12DeviceChild *pObject,
  7724. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  7725. DWORD Access,
  7726. _In_opt_ LPCWSTR Name,
  7727. _Out_ HANDLE *pHandle);
  7728. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  7729. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  7730. ID3D12Device1 * This,
  7731. _In_ HANDLE NTHandle,
  7732. REFIID riid,
  7733. _COM_Outptr_opt_ void **ppvObj);
  7734. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  7735. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  7736. ID3D12Device1 * This,
  7737. _In_ LPCWSTR Name,
  7738. DWORD Access,
  7739. /* [annotation][out] */
  7740. _Out_ HANDLE *pNTHandle);
  7741. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  7742. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  7743. ID3D12Device1 * This,
  7744. UINT NumObjects,
  7745. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7746. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  7747. HRESULT ( STDMETHODCALLTYPE *Evict )(
  7748. ID3D12Device1 * This,
  7749. UINT NumObjects,
  7750. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  7751. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  7752. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  7753. ID3D12Device1 * This,
  7754. UINT64 InitialValue,
  7755. D3D12_FENCE_FLAGS Flags,
  7756. REFIID riid,
  7757. _COM_Outptr_ void **ppFence);
  7758. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  7759. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  7760. ID3D12Device1 * This);
  7761. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  7762. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  7763. ID3D12Device1 * This,
  7764. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  7765. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  7766. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  7767. UINT64 BaseOffset,
  7768. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  7769. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  7770. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  7771. _Out_opt_ UINT64 *pTotalBytes);
  7772. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  7773. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  7774. ID3D12Device1 * This,
  7775. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  7776. REFIID riid,
  7777. _COM_Outptr_opt_ void **ppvHeap);
  7778. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  7779. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  7780. ID3D12Device1 * This,
  7781. BOOL Enable);
  7782. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  7783. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  7784. ID3D12Device1 * This,
  7785. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  7786. _In_opt_ ID3D12RootSignature *pRootSignature,
  7787. REFIID riid,
  7788. _COM_Outptr_opt_ void **ppvCommandSignature);
  7789. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  7790. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  7791. ID3D12Device1 * This,
  7792. _In_ ID3D12Resource *pTiledResource,
  7793. _Out_opt_ UINT *pNumTilesForEntireResource,
  7794. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  7795. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  7796. _Inout_opt_ UINT *pNumSubresourceTilings,
  7797. _In_ UINT FirstSubresourceTilingToGet,
  7798. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  7799. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  7800. #if !defined(_WIN32)
  7801. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  7802. ID3D12Device1 * This);
  7803. #else
  7804. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  7805. ID3D12Device1 * This,
  7806. LUID * RetVal);
  7807. #endif
  7808. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  7809. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  7810. ID3D12Device1 * This,
  7811. _In_reads_(BlobLength) const void *pLibraryBlob,
  7812. SIZE_T BlobLength,
  7813. REFIID riid,
  7814. _COM_Outptr_ void **ppPipelineLibrary);
  7815. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  7816. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  7817. ID3D12Device1 * This,
  7818. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  7819. _In_reads_(NumFences) const UINT64 *pFenceValues,
  7820. UINT NumFences,
  7821. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  7822. HANDLE hEvent);
  7823. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  7824. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  7825. ID3D12Device1 * This,
  7826. UINT NumObjects,
  7827. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  7828. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  7829. END_INTERFACE
  7830. } ID3D12Device1Vtbl;
  7831. interface ID3D12Device1
  7832. {
  7833. CONST_VTBL struct ID3D12Device1Vtbl *lpVtbl;
  7834. };
  7835. #ifdef COBJMACROS
  7836. #define ID3D12Device1_QueryInterface(This,riid,ppvObject) \
  7837. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  7838. #define ID3D12Device1_AddRef(This) \
  7839. ( (This)->lpVtbl -> AddRef(This) )
  7840. #define ID3D12Device1_Release(This) \
  7841. ( (This)->lpVtbl -> Release(This) )
  7842. #define ID3D12Device1_GetPrivateData(This,guid,pDataSize,pData) \
  7843. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  7844. #define ID3D12Device1_SetPrivateData(This,guid,DataSize,pData) \
  7845. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  7846. #define ID3D12Device1_SetPrivateDataInterface(This,guid,pData) \
  7847. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  7848. #define ID3D12Device1_SetName(This,Name) \
  7849. ( (This)->lpVtbl -> SetName(This,Name) )
  7850. #define ID3D12Device1_GetNodeCount(This) \
  7851. ( (This)->lpVtbl -> GetNodeCount(This) )
  7852. #define ID3D12Device1_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  7853. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  7854. #define ID3D12Device1_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  7855. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  7856. #define ID3D12Device1_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  7857. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  7858. #define ID3D12Device1_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  7859. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  7860. #define ID3D12Device1_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  7861. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  7862. #define ID3D12Device1_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  7863. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  7864. #define ID3D12Device1_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  7865. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  7866. #define ID3D12Device1_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  7867. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  7868. #define ID3D12Device1_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  7869. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  7870. #define ID3D12Device1_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  7871. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  7872. #define ID3D12Device1_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  7873. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  7874. #define ID3D12Device1_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  7875. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  7876. #define ID3D12Device1_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  7877. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  7878. #define ID3D12Device1_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  7879. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  7880. #define ID3D12Device1_CreateSampler(This,pDesc,DestDescriptor) \
  7881. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  7882. #define ID3D12Device1_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  7883. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  7884. #define ID3D12Device1_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  7885. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  7886. #if !defined(_WIN32)
  7887. #define ID3D12Device1_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  7888. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  7889. #else
  7890. #define ID3D12Device1_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  7891. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  7892. #endif
  7893. #if !defined(_WIN32)
  7894. #define ID3D12Device1_GetCustomHeapProperties(This,nodeMask,heapType) \
  7895. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  7896. #else
  7897. #define ID3D12Device1_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  7898. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  7899. #endif
  7900. #define ID3D12Device1_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  7901. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  7902. #define ID3D12Device1_CreateHeap(This,pDesc,riid,ppvHeap) \
  7903. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  7904. #define ID3D12Device1_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  7905. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  7906. #define ID3D12Device1_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  7907. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  7908. #define ID3D12Device1_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  7909. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  7910. #define ID3D12Device1_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  7911. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  7912. #define ID3D12Device1_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  7913. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  7914. #define ID3D12Device1_MakeResident(This,NumObjects,ppObjects) \
  7915. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  7916. #define ID3D12Device1_Evict(This,NumObjects,ppObjects) \
  7917. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  7918. #define ID3D12Device1_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  7919. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  7920. #define ID3D12Device1_GetDeviceRemovedReason(This) \
  7921. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  7922. #define ID3D12Device1_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  7923. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  7924. #define ID3D12Device1_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  7925. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  7926. #define ID3D12Device1_SetStablePowerState(This,Enable) \
  7927. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  7928. #define ID3D12Device1_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  7929. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  7930. #define ID3D12Device1_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  7931. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  7932. #if !defined(_WIN32)
  7933. #define ID3D12Device1_GetAdapterLuid(This) \
  7934. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  7935. #else
  7936. #define ID3D12Device1_GetAdapterLuid(This,RetVal) \
  7937. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  7938. #endif
  7939. #define ID3D12Device1_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  7940. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  7941. #define ID3D12Device1_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  7942. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  7943. #define ID3D12Device1_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  7944. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  7945. #endif /* COBJMACROS */
  7946. #endif /* C style interface */
  7947. #endif /* __ID3D12Device1_INTERFACE_DEFINED__ */
  7948. #ifndef __ID3D12Device2_INTERFACE_DEFINED__
  7949. #define __ID3D12Device2_INTERFACE_DEFINED__
  7950. /* interface ID3D12Device2 */
  7951. /* [unique][local][object][uuid] */
  7952. EXTERN_C const IID IID_ID3D12Device2;
  7953. #if defined(__cplusplus) && !defined(CINTERFACE)
  7954. MIDL_INTERFACE("30baa41e-b15b-475c-a0bb-1af5c5b64328")
  7955. ID3D12Device2 : public ID3D12Device1
  7956. {
  7957. public:
  7958. virtual HRESULT STDMETHODCALLTYPE CreatePipelineState(
  7959. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  7960. REFIID riid,
  7961. _COM_Outptr_ void **ppPipelineState) = 0;
  7962. };
  7963. #else /* C style interface */
  7964. typedef struct ID3D12Device2Vtbl
  7965. {
  7966. BEGIN_INTERFACE
  7967. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  7968. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  7969. ID3D12Device2 * This,
  7970. REFIID riid,
  7971. _COM_Outptr_ void **ppvObject);
  7972. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  7973. ULONG ( STDMETHODCALLTYPE *AddRef )(
  7974. ID3D12Device2 * This);
  7975. DECLSPEC_XFGVIRT(IUnknown, Release)
  7976. ULONG ( STDMETHODCALLTYPE *Release )(
  7977. ID3D12Device2 * This);
  7978. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  7979. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  7980. ID3D12Device2 * This,
  7981. _In_ REFGUID guid,
  7982. _Inout_ UINT *pDataSize,
  7983. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  7984. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  7985. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  7986. ID3D12Device2 * This,
  7987. _In_ REFGUID guid,
  7988. _In_ UINT DataSize,
  7989. _In_reads_bytes_opt_( DataSize ) const void *pData);
  7990. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  7991. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  7992. ID3D12Device2 * This,
  7993. _In_ REFGUID guid,
  7994. _In_opt_ const IUnknown *pData);
  7995. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  7996. HRESULT ( STDMETHODCALLTYPE *SetName )(
  7997. ID3D12Device2 * This,
  7998. _In_z_ LPCWSTR Name);
  7999. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  8000. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  8001. ID3D12Device2 * This);
  8002. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  8003. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  8004. ID3D12Device2 * This,
  8005. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  8006. REFIID riid,
  8007. _COM_Outptr_ void **ppCommandQueue);
  8008. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  8009. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  8010. ID3D12Device2 * This,
  8011. _In_ D3D12_COMMAND_LIST_TYPE type,
  8012. REFIID riid,
  8013. _COM_Outptr_ void **ppCommandAllocator);
  8014. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  8015. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  8016. ID3D12Device2 * This,
  8017. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  8018. REFIID riid,
  8019. _COM_Outptr_ void **ppPipelineState);
  8020. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  8021. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  8022. ID3D12Device2 * This,
  8023. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  8024. REFIID riid,
  8025. _COM_Outptr_ void **ppPipelineState);
  8026. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  8027. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  8028. ID3D12Device2 * This,
  8029. _In_ UINT nodeMask,
  8030. _In_ D3D12_COMMAND_LIST_TYPE type,
  8031. _In_ ID3D12CommandAllocator *pCommandAllocator,
  8032. _In_opt_ ID3D12PipelineState *pInitialState,
  8033. REFIID riid,
  8034. _COM_Outptr_ void **ppCommandList);
  8035. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  8036. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  8037. ID3D12Device2 * This,
  8038. D3D12_FEATURE Feature,
  8039. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  8040. UINT FeatureSupportDataSize);
  8041. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  8042. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  8043. ID3D12Device2 * This,
  8044. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  8045. REFIID riid,
  8046. _COM_Outptr_ void **ppvHeap);
  8047. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  8048. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  8049. ID3D12Device2 * This,
  8050. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  8051. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  8052. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  8053. ID3D12Device2 * This,
  8054. _In_ UINT nodeMask,
  8055. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  8056. _In_ SIZE_T blobLengthInBytes,
  8057. REFIID riid,
  8058. _COM_Outptr_ void **ppvRootSignature);
  8059. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  8060. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  8061. ID3D12Device2 * This,
  8062. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  8063. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8064. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  8065. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  8066. ID3D12Device2 * This,
  8067. _In_opt_ ID3D12Resource *pResource,
  8068. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  8069. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8070. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  8071. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  8072. ID3D12Device2 * This,
  8073. _In_opt_ ID3D12Resource *pResource,
  8074. _In_opt_ ID3D12Resource *pCounterResource,
  8075. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  8076. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8077. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  8078. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  8079. ID3D12Device2 * This,
  8080. _In_opt_ ID3D12Resource *pResource,
  8081. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  8082. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8083. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  8084. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  8085. ID3D12Device2 * This,
  8086. _In_opt_ ID3D12Resource *pResource,
  8087. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  8088. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8089. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  8090. void ( STDMETHODCALLTYPE *CreateSampler )(
  8091. ID3D12Device2 * This,
  8092. _In_ const D3D12_SAMPLER_DESC *pDesc,
  8093. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8094. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  8095. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  8096. ID3D12Device2 * This,
  8097. _In_ UINT NumDestDescriptorRanges,
  8098. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  8099. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  8100. _In_ UINT NumSrcDescriptorRanges,
  8101. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  8102. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  8103. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8104. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  8105. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  8106. ID3D12Device2 * This,
  8107. _In_ UINT NumDescriptors,
  8108. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  8109. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  8110. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8111. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  8112. #if !defined(_WIN32)
  8113. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8114. ID3D12Device2 * This,
  8115. _In_ UINT visibleMask,
  8116. _In_ UINT numResourceDescs,
  8117. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8118. #else
  8119. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8120. ID3D12Device2 * This,
  8121. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  8122. _In_ UINT visibleMask,
  8123. _In_ UINT numResourceDescs,
  8124. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8125. #endif
  8126. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  8127. #if !defined(_WIN32)
  8128. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8129. ID3D12Device2 * This,
  8130. _In_ UINT nodeMask,
  8131. D3D12_HEAP_TYPE heapType);
  8132. #else
  8133. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8134. ID3D12Device2 * This,
  8135. D3D12_HEAP_PROPERTIES * RetVal,
  8136. _In_ UINT nodeMask,
  8137. D3D12_HEAP_TYPE heapType);
  8138. #endif
  8139. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  8140. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  8141. ID3D12Device2 * This,
  8142. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  8143. D3D12_HEAP_FLAGS HeapFlags,
  8144. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8145. D3D12_RESOURCE_STATES InitialResourceState,
  8146. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8147. REFIID riidResource,
  8148. _COM_Outptr_opt_ void **ppvResource);
  8149. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  8150. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  8151. ID3D12Device2 * This,
  8152. _In_ const D3D12_HEAP_DESC *pDesc,
  8153. REFIID riid,
  8154. _COM_Outptr_opt_ void **ppvHeap);
  8155. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  8156. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  8157. ID3D12Device2 * This,
  8158. _In_ ID3D12Heap *pHeap,
  8159. UINT64 HeapOffset,
  8160. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8161. D3D12_RESOURCE_STATES InitialState,
  8162. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8163. REFIID riid,
  8164. _COM_Outptr_opt_ void **ppvResource);
  8165. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  8166. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  8167. ID3D12Device2 * This,
  8168. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8169. D3D12_RESOURCE_STATES InitialState,
  8170. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8171. REFIID riid,
  8172. _COM_Outptr_opt_ void **ppvResource);
  8173. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  8174. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  8175. ID3D12Device2 * This,
  8176. _In_ ID3D12DeviceChild *pObject,
  8177. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  8178. DWORD Access,
  8179. _In_opt_ LPCWSTR Name,
  8180. _Out_ HANDLE *pHandle);
  8181. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  8182. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  8183. ID3D12Device2 * This,
  8184. _In_ HANDLE NTHandle,
  8185. REFIID riid,
  8186. _COM_Outptr_opt_ void **ppvObj);
  8187. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  8188. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  8189. ID3D12Device2 * This,
  8190. _In_ LPCWSTR Name,
  8191. DWORD Access,
  8192. /* [annotation][out] */
  8193. _Out_ HANDLE *pNTHandle);
  8194. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  8195. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  8196. ID3D12Device2 * This,
  8197. UINT NumObjects,
  8198. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8199. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  8200. HRESULT ( STDMETHODCALLTYPE *Evict )(
  8201. ID3D12Device2 * This,
  8202. UINT NumObjects,
  8203. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8204. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  8205. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  8206. ID3D12Device2 * This,
  8207. UINT64 InitialValue,
  8208. D3D12_FENCE_FLAGS Flags,
  8209. REFIID riid,
  8210. _COM_Outptr_ void **ppFence);
  8211. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  8212. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  8213. ID3D12Device2 * This);
  8214. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  8215. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  8216. ID3D12Device2 * This,
  8217. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  8218. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  8219. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  8220. UINT64 BaseOffset,
  8221. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  8222. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  8223. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  8224. _Out_opt_ UINT64 *pTotalBytes);
  8225. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  8226. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  8227. ID3D12Device2 * This,
  8228. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  8229. REFIID riid,
  8230. _COM_Outptr_opt_ void **ppvHeap);
  8231. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  8232. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  8233. ID3D12Device2 * This,
  8234. BOOL Enable);
  8235. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  8236. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  8237. ID3D12Device2 * This,
  8238. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  8239. _In_opt_ ID3D12RootSignature *pRootSignature,
  8240. REFIID riid,
  8241. _COM_Outptr_opt_ void **ppvCommandSignature);
  8242. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  8243. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  8244. ID3D12Device2 * This,
  8245. _In_ ID3D12Resource *pTiledResource,
  8246. _Out_opt_ UINT *pNumTilesForEntireResource,
  8247. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  8248. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  8249. _Inout_opt_ UINT *pNumSubresourceTilings,
  8250. _In_ UINT FirstSubresourceTilingToGet,
  8251. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  8252. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  8253. #if !defined(_WIN32)
  8254. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  8255. ID3D12Device2 * This);
  8256. #else
  8257. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  8258. ID3D12Device2 * This,
  8259. LUID * RetVal);
  8260. #endif
  8261. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  8262. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  8263. ID3D12Device2 * This,
  8264. _In_reads_(BlobLength) const void *pLibraryBlob,
  8265. SIZE_T BlobLength,
  8266. REFIID riid,
  8267. _COM_Outptr_ void **ppPipelineLibrary);
  8268. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  8269. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  8270. ID3D12Device2 * This,
  8271. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  8272. _In_reads_(NumFences) const UINT64 *pFenceValues,
  8273. UINT NumFences,
  8274. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  8275. HANDLE hEvent);
  8276. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  8277. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  8278. ID3D12Device2 * This,
  8279. UINT NumObjects,
  8280. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8281. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  8282. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  8283. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  8284. ID3D12Device2 * This,
  8285. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  8286. REFIID riid,
  8287. _COM_Outptr_ void **ppPipelineState);
  8288. END_INTERFACE
  8289. } ID3D12Device2Vtbl;
  8290. interface ID3D12Device2
  8291. {
  8292. CONST_VTBL struct ID3D12Device2Vtbl *lpVtbl;
  8293. };
  8294. #ifdef COBJMACROS
  8295. #define ID3D12Device2_QueryInterface(This,riid,ppvObject) \
  8296. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  8297. #define ID3D12Device2_AddRef(This) \
  8298. ( (This)->lpVtbl -> AddRef(This) )
  8299. #define ID3D12Device2_Release(This) \
  8300. ( (This)->lpVtbl -> Release(This) )
  8301. #define ID3D12Device2_GetPrivateData(This,guid,pDataSize,pData) \
  8302. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  8303. #define ID3D12Device2_SetPrivateData(This,guid,DataSize,pData) \
  8304. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  8305. #define ID3D12Device2_SetPrivateDataInterface(This,guid,pData) \
  8306. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  8307. #define ID3D12Device2_SetName(This,Name) \
  8308. ( (This)->lpVtbl -> SetName(This,Name) )
  8309. #define ID3D12Device2_GetNodeCount(This) \
  8310. ( (This)->lpVtbl -> GetNodeCount(This) )
  8311. #define ID3D12Device2_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  8312. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  8313. #define ID3D12Device2_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  8314. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  8315. #define ID3D12Device2_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  8316. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  8317. #define ID3D12Device2_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  8318. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  8319. #define ID3D12Device2_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  8320. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  8321. #define ID3D12Device2_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  8322. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  8323. #define ID3D12Device2_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  8324. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  8325. #define ID3D12Device2_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  8326. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  8327. #define ID3D12Device2_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  8328. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  8329. #define ID3D12Device2_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  8330. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  8331. #define ID3D12Device2_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  8332. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  8333. #define ID3D12Device2_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  8334. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  8335. #define ID3D12Device2_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  8336. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  8337. #define ID3D12Device2_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  8338. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  8339. #define ID3D12Device2_CreateSampler(This,pDesc,DestDescriptor) \
  8340. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  8341. #define ID3D12Device2_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  8342. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  8343. #define ID3D12Device2_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  8344. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  8345. #if !defined(_WIN32)
  8346. #define ID3D12Device2_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  8347. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  8348. #else
  8349. #define ID3D12Device2_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  8350. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  8351. #endif
  8352. #if !defined(_WIN32)
  8353. #define ID3D12Device2_GetCustomHeapProperties(This,nodeMask,heapType) \
  8354. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  8355. #else
  8356. #define ID3D12Device2_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  8357. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  8358. #endif
  8359. #define ID3D12Device2_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  8360. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  8361. #define ID3D12Device2_CreateHeap(This,pDesc,riid,ppvHeap) \
  8362. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  8363. #define ID3D12Device2_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8364. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8365. #define ID3D12Device2_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8366. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8367. #define ID3D12Device2_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  8368. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  8369. #define ID3D12Device2_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  8370. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  8371. #define ID3D12Device2_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  8372. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  8373. #define ID3D12Device2_MakeResident(This,NumObjects,ppObjects) \
  8374. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  8375. #define ID3D12Device2_Evict(This,NumObjects,ppObjects) \
  8376. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  8377. #define ID3D12Device2_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  8378. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  8379. #define ID3D12Device2_GetDeviceRemovedReason(This) \
  8380. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  8381. #define ID3D12Device2_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  8382. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  8383. #define ID3D12Device2_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  8384. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  8385. #define ID3D12Device2_SetStablePowerState(This,Enable) \
  8386. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  8387. #define ID3D12Device2_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  8388. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  8389. #define ID3D12Device2_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  8390. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  8391. #if !defined(_WIN32)
  8392. #define ID3D12Device2_GetAdapterLuid(This) \
  8393. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  8394. #else
  8395. #define ID3D12Device2_GetAdapterLuid(This,RetVal) \
  8396. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  8397. #endif
  8398. #define ID3D12Device2_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  8399. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  8400. #define ID3D12Device2_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  8401. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  8402. #define ID3D12Device2_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  8403. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  8404. #define ID3D12Device2_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  8405. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  8406. #endif /* COBJMACROS */
  8407. #endif /* C style interface */
  8408. #endif /* __ID3D12Device2_INTERFACE_DEFINED__ */
  8409. /* interface __MIDL_itf_d3d12_0000_0025 */
  8410. /* [local] */
  8411. typedef
  8412. enum D3D12_RESIDENCY_FLAGS
  8413. {
  8414. D3D12_RESIDENCY_FLAG_NONE = 0,
  8415. D3D12_RESIDENCY_FLAG_DENY_OVERBUDGET = 0x1
  8416. } D3D12_RESIDENCY_FLAGS;
  8417. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESIDENCY_FLAGS );
  8418. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0025_v0_0_c_ifspec;
  8419. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0025_v0_0_s_ifspec;
  8420. #ifndef __ID3D12Device3_INTERFACE_DEFINED__
  8421. #define __ID3D12Device3_INTERFACE_DEFINED__
  8422. /* interface ID3D12Device3 */
  8423. /* [unique][local][object][uuid] */
  8424. EXTERN_C const IID IID_ID3D12Device3;
  8425. #if defined(__cplusplus) && !defined(CINTERFACE)
  8426. MIDL_INTERFACE("81dadc15-2bad-4392-93c5-101345c4aa98")
  8427. ID3D12Device3 : public ID3D12Device2
  8428. {
  8429. public:
  8430. virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromAddress(
  8431. _In_ const void *pAddress,
  8432. REFIID riid,
  8433. _COM_Outptr_ void **ppvHeap) = 0;
  8434. virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromFileMapping(
  8435. _In_ HANDLE hFileMapping,
  8436. REFIID riid,
  8437. _COM_Outptr_ void **ppvHeap) = 0;
  8438. virtual HRESULT STDMETHODCALLTYPE EnqueueMakeResident(
  8439. D3D12_RESIDENCY_FLAGS Flags,
  8440. UINT NumObjects,
  8441. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8442. _In_ ID3D12Fence *pFenceToSignal,
  8443. UINT64 FenceValueToSignal) = 0;
  8444. };
  8445. #else /* C style interface */
  8446. typedef struct ID3D12Device3Vtbl
  8447. {
  8448. BEGIN_INTERFACE
  8449. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  8450. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8451. ID3D12Device3 * This,
  8452. REFIID riid,
  8453. _COM_Outptr_ void **ppvObject);
  8454. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  8455. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8456. ID3D12Device3 * This);
  8457. DECLSPEC_XFGVIRT(IUnknown, Release)
  8458. ULONG ( STDMETHODCALLTYPE *Release )(
  8459. ID3D12Device3 * This);
  8460. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  8461. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  8462. ID3D12Device3 * This,
  8463. _In_ REFGUID guid,
  8464. _Inout_ UINT *pDataSize,
  8465. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  8466. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  8467. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  8468. ID3D12Device3 * This,
  8469. _In_ REFGUID guid,
  8470. _In_ UINT DataSize,
  8471. _In_reads_bytes_opt_( DataSize ) const void *pData);
  8472. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  8473. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  8474. ID3D12Device3 * This,
  8475. _In_ REFGUID guid,
  8476. _In_opt_ const IUnknown *pData);
  8477. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  8478. HRESULT ( STDMETHODCALLTYPE *SetName )(
  8479. ID3D12Device3 * This,
  8480. _In_z_ LPCWSTR Name);
  8481. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  8482. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  8483. ID3D12Device3 * This);
  8484. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  8485. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  8486. ID3D12Device3 * This,
  8487. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  8488. REFIID riid,
  8489. _COM_Outptr_ void **ppCommandQueue);
  8490. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  8491. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  8492. ID3D12Device3 * This,
  8493. _In_ D3D12_COMMAND_LIST_TYPE type,
  8494. REFIID riid,
  8495. _COM_Outptr_ void **ppCommandAllocator);
  8496. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  8497. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  8498. ID3D12Device3 * This,
  8499. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  8500. REFIID riid,
  8501. _COM_Outptr_ void **ppPipelineState);
  8502. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  8503. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  8504. ID3D12Device3 * This,
  8505. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  8506. REFIID riid,
  8507. _COM_Outptr_ void **ppPipelineState);
  8508. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  8509. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  8510. ID3D12Device3 * This,
  8511. _In_ UINT nodeMask,
  8512. _In_ D3D12_COMMAND_LIST_TYPE type,
  8513. _In_ ID3D12CommandAllocator *pCommandAllocator,
  8514. _In_opt_ ID3D12PipelineState *pInitialState,
  8515. REFIID riid,
  8516. _COM_Outptr_ void **ppCommandList);
  8517. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  8518. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  8519. ID3D12Device3 * This,
  8520. D3D12_FEATURE Feature,
  8521. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  8522. UINT FeatureSupportDataSize);
  8523. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  8524. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  8525. ID3D12Device3 * This,
  8526. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  8527. REFIID riid,
  8528. _COM_Outptr_ void **ppvHeap);
  8529. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  8530. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  8531. ID3D12Device3 * This,
  8532. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  8533. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  8534. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  8535. ID3D12Device3 * This,
  8536. _In_ UINT nodeMask,
  8537. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  8538. _In_ SIZE_T blobLengthInBytes,
  8539. REFIID riid,
  8540. _COM_Outptr_ void **ppvRootSignature);
  8541. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  8542. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  8543. ID3D12Device3 * This,
  8544. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  8545. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8546. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  8547. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  8548. ID3D12Device3 * This,
  8549. _In_opt_ ID3D12Resource *pResource,
  8550. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  8551. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8552. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  8553. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  8554. ID3D12Device3 * This,
  8555. _In_opt_ ID3D12Resource *pResource,
  8556. _In_opt_ ID3D12Resource *pCounterResource,
  8557. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  8558. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8559. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  8560. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  8561. ID3D12Device3 * This,
  8562. _In_opt_ ID3D12Resource *pResource,
  8563. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  8564. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8565. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  8566. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  8567. ID3D12Device3 * This,
  8568. _In_opt_ ID3D12Resource *pResource,
  8569. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  8570. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8571. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  8572. void ( STDMETHODCALLTYPE *CreateSampler )(
  8573. ID3D12Device3 * This,
  8574. _In_ const D3D12_SAMPLER_DESC *pDesc,
  8575. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  8576. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  8577. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  8578. ID3D12Device3 * This,
  8579. _In_ UINT NumDestDescriptorRanges,
  8580. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  8581. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  8582. _In_ UINT NumSrcDescriptorRanges,
  8583. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  8584. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  8585. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8586. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  8587. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  8588. ID3D12Device3 * This,
  8589. _In_ UINT NumDescriptors,
  8590. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  8591. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  8592. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  8593. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  8594. #if !defined(_WIN32)
  8595. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8596. ID3D12Device3 * This,
  8597. _In_ UINT visibleMask,
  8598. _In_ UINT numResourceDescs,
  8599. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8600. #else
  8601. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  8602. ID3D12Device3 * This,
  8603. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  8604. _In_ UINT visibleMask,
  8605. _In_ UINT numResourceDescs,
  8606. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  8607. #endif
  8608. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  8609. #if !defined(_WIN32)
  8610. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8611. ID3D12Device3 * This,
  8612. _In_ UINT nodeMask,
  8613. D3D12_HEAP_TYPE heapType);
  8614. #else
  8615. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  8616. ID3D12Device3 * This,
  8617. D3D12_HEAP_PROPERTIES * RetVal,
  8618. _In_ UINT nodeMask,
  8619. D3D12_HEAP_TYPE heapType);
  8620. #endif
  8621. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  8622. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  8623. ID3D12Device3 * This,
  8624. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  8625. D3D12_HEAP_FLAGS HeapFlags,
  8626. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8627. D3D12_RESOURCE_STATES InitialResourceState,
  8628. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8629. REFIID riidResource,
  8630. _COM_Outptr_opt_ void **ppvResource);
  8631. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  8632. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  8633. ID3D12Device3 * This,
  8634. _In_ const D3D12_HEAP_DESC *pDesc,
  8635. REFIID riid,
  8636. _COM_Outptr_opt_ void **ppvHeap);
  8637. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  8638. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  8639. ID3D12Device3 * This,
  8640. _In_ ID3D12Heap *pHeap,
  8641. UINT64 HeapOffset,
  8642. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8643. D3D12_RESOURCE_STATES InitialState,
  8644. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8645. REFIID riid,
  8646. _COM_Outptr_opt_ void **ppvResource);
  8647. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  8648. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  8649. ID3D12Device3 * This,
  8650. _In_ const D3D12_RESOURCE_DESC *pDesc,
  8651. D3D12_RESOURCE_STATES InitialState,
  8652. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  8653. REFIID riid,
  8654. _COM_Outptr_opt_ void **ppvResource);
  8655. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  8656. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  8657. ID3D12Device3 * This,
  8658. _In_ ID3D12DeviceChild *pObject,
  8659. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  8660. DWORD Access,
  8661. _In_opt_ LPCWSTR Name,
  8662. _Out_ HANDLE *pHandle);
  8663. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  8664. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  8665. ID3D12Device3 * This,
  8666. _In_ HANDLE NTHandle,
  8667. REFIID riid,
  8668. _COM_Outptr_opt_ void **ppvObj);
  8669. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  8670. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  8671. ID3D12Device3 * This,
  8672. _In_ LPCWSTR Name,
  8673. DWORD Access,
  8674. /* [annotation][out] */
  8675. _Out_ HANDLE *pNTHandle);
  8676. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  8677. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  8678. ID3D12Device3 * This,
  8679. UINT NumObjects,
  8680. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8681. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  8682. HRESULT ( STDMETHODCALLTYPE *Evict )(
  8683. ID3D12Device3 * This,
  8684. UINT NumObjects,
  8685. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  8686. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  8687. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  8688. ID3D12Device3 * This,
  8689. UINT64 InitialValue,
  8690. D3D12_FENCE_FLAGS Flags,
  8691. REFIID riid,
  8692. _COM_Outptr_ void **ppFence);
  8693. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  8694. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  8695. ID3D12Device3 * This);
  8696. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  8697. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  8698. ID3D12Device3 * This,
  8699. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  8700. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  8701. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  8702. UINT64 BaseOffset,
  8703. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  8704. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  8705. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  8706. _Out_opt_ UINT64 *pTotalBytes);
  8707. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  8708. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  8709. ID3D12Device3 * This,
  8710. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  8711. REFIID riid,
  8712. _COM_Outptr_opt_ void **ppvHeap);
  8713. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  8714. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  8715. ID3D12Device3 * This,
  8716. BOOL Enable);
  8717. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  8718. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  8719. ID3D12Device3 * This,
  8720. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  8721. _In_opt_ ID3D12RootSignature *pRootSignature,
  8722. REFIID riid,
  8723. _COM_Outptr_opt_ void **ppvCommandSignature);
  8724. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  8725. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  8726. ID3D12Device3 * This,
  8727. _In_ ID3D12Resource *pTiledResource,
  8728. _Out_opt_ UINT *pNumTilesForEntireResource,
  8729. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  8730. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  8731. _Inout_opt_ UINT *pNumSubresourceTilings,
  8732. _In_ UINT FirstSubresourceTilingToGet,
  8733. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  8734. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  8735. #if !defined(_WIN32)
  8736. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  8737. ID3D12Device3 * This);
  8738. #else
  8739. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  8740. ID3D12Device3 * This,
  8741. LUID * RetVal);
  8742. #endif
  8743. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  8744. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  8745. ID3D12Device3 * This,
  8746. _In_reads_(BlobLength) const void *pLibraryBlob,
  8747. SIZE_T BlobLength,
  8748. REFIID riid,
  8749. _COM_Outptr_ void **ppPipelineLibrary);
  8750. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  8751. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  8752. ID3D12Device3 * This,
  8753. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  8754. _In_reads_(NumFences) const UINT64 *pFenceValues,
  8755. UINT NumFences,
  8756. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  8757. HANDLE hEvent);
  8758. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  8759. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  8760. ID3D12Device3 * This,
  8761. UINT NumObjects,
  8762. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8763. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  8764. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  8765. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  8766. ID3D12Device3 * This,
  8767. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  8768. REFIID riid,
  8769. _COM_Outptr_ void **ppPipelineState);
  8770. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  8771. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  8772. ID3D12Device3 * This,
  8773. _In_ const void *pAddress,
  8774. REFIID riid,
  8775. _COM_Outptr_ void **ppvHeap);
  8776. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  8777. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  8778. ID3D12Device3 * This,
  8779. _In_ HANDLE hFileMapping,
  8780. REFIID riid,
  8781. _COM_Outptr_ void **ppvHeap);
  8782. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  8783. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  8784. ID3D12Device3 * This,
  8785. D3D12_RESIDENCY_FLAGS Flags,
  8786. UINT NumObjects,
  8787. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  8788. _In_ ID3D12Fence *pFenceToSignal,
  8789. UINT64 FenceValueToSignal);
  8790. END_INTERFACE
  8791. } ID3D12Device3Vtbl;
  8792. interface ID3D12Device3
  8793. {
  8794. CONST_VTBL struct ID3D12Device3Vtbl *lpVtbl;
  8795. };
  8796. #ifdef COBJMACROS
  8797. #define ID3D12Device3_QueryInterface(This,riid,ppvObject) \
  8798. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  8799. #define ID3D12Device3_AddRef(This) \
  8800. ( (This)->lpVtbl -> AddRef(This) )
  8801. #define ID3D12Device3_Release(This) \
  8802. ( (This)->lpVtbl -> Release(This) )
  8803. #define ID3D12Device3_GetPrivateData(This,guid,pDataSize,pData) \
  8804. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  8805. #define ID3D12Device3_SetPrivateData(This,guid,DataSize,pData) \
  8806. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  8807. #define ID3D12Device3_SetPrivateDataInterface(This,guid,pData) \
  8808. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  8809. #define ID3D12Device3_SetName(This,Name) \
  8810. ( (This)->lpVtbl -> SetName(This,Name) )
  8811. #define ID3D12Device3_GetNodeCount(This) \
  8812. ( (This)->lpVtbl -> GetNodeCount(This) )
  8813. #define ID3D12Device3_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  8814. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  8815. #define ID3D12Device3_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  8816. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  8817. #define ID3D12Device3_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  8818. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  8819. #define ID3D12Device3_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  8820. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  8821. #define ID3D12Device3_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  8822. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  8823. #define ID3D12Device3_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  8824. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  8825. #define ID3D12Device3_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  8826. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  8827. #define ID3D12Device3_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  8828. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  8829. #define ID3D12Device3_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  8830. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  8831. #define ID3D12Device3_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  8832. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  8833. #define ID3D12Device3_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  8834. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  8835. #define ID3D12Device3_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  8836. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  8837. #define ID3D12Device3_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  8838. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  8839. #define ID3D12Device3_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  8840. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  8841. #define ID3D12Device3_CreateSampler(This,pDesc,DestDescriptor) \
  8842. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  8843. #define ID3D12Device3_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  8844. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  8845. #define ID3D12Device3_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  8846. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  8847. #if !defined(_WIN32)
  8848. #define ID3D12Device3_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  8849. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  8850. #else
  8851. #define ID3D12Device3_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  8852. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  8853. #endif
  8854. #if !defined(_WIN32)
  8855. #define ID3D12Device3_GetCustomHeapProperties(This,nodeMask,heapType) \
  8856. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  8857. #else
  8858. #define ID3D12Device3_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  8859. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  8860. #endif
  8861. #define ID3D12Device3_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  8862. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  8863. #define ID3D12Device3_CreateHeap(This,pDesc,riid,ppvHeap) \
  8864. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  8865. #define ID3D12Device3_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8866. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8867. #define ID3D12Device3_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  8868. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  8869. #define ID3D12Device3_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  8870. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  8871. #define ID3D12Device3_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  8872. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  8873. #define ID3D12Device3_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  8874. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  8875. #define ID3D12Device3_MakeResident(This,NumObjects,ppObjects) \
  8876. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  8877. #define ID3D12Device3_Evict(This,NumObjects,ppObjects) \
  8878. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  8879. #define ID3D12Device3_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  8880. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  8881. #define ID3D12Device3_GetDeviceRemovedReason(This) \
  8882. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  8883. #define ID3D12Device3_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  8884. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  8885. #define ID3D12Device3_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  8886. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  8887. #define ID3D12Device3_SetStablePowerState(This,Enable) \
  8888. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  8889. #define ID3D12Device3_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  8890. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  8891. #define ID3D12Device3_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  8892. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  8893. #if !defined(_WIN32)
  8894. #define ID3D12Device3_GetAdapterLuid(This) \
  8895. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  8896. #else
  8897. #define ID3D12Device3_GetAdapterLuid(This,RetVal) \
  8898. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  8899. #endif
  8900. #define ID3D12Device3_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  8901. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  8902. #define ID3D12Device3_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  8903. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  8904. #define ID3D12Device3_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  8905. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  8906. #define ID3D12Device3_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  8907. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  8908. #define ID3D12Device3_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  8909. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  8910. #define ID3D12Device3_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  8911. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  8912. #define ID3D12Device3_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  8913. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  8914. #endif /* COBJMACROS */
  8915. #endif /* C style interface */
  8916. #endif /* __ID3D12Device3_INTERFACE_DEFINED__ */
  8917. /* interface __MIDL_itf_d3d12_0000_0026 */
  8918. /* [local] */
  8919. typedef
  8920. enum D3D12_COMMAND_LIST_FLAGS
  8921. {
  8922. D3D12_COMMAND_LIST_FLAG_NONE = 0
  8923. } D3D12_COMMAND_LIST_FLAGS;
  8924. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_LIST_FLAGS );
  8925. typedef
  8926. enum D3D12_COMMAND_POOL_FLAGS
  8927. {
  8928. D3D12_COMMAND_POOL_FLAG_NONE = 0
  8929. } D3D12_COMMAND_POOL_FLAGS;
  8930. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_POOL_FLAGS );
  8931. typedef
  8932. enum D3D12_COMMAND_RECORDER_FLAGS
  8933. {
  8934. D3D12_COMMAND_RECORDER_FLAG_NONE = 0
  8935. } D3D12_COMMAND_RECORDER_FLAGS;
  8936. DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_RECORDER_FLAGS );
  8937. typedef
  8938. enum D3D12_PROTECTED_SESSION_STATUS
  8939. {
  8940. D3D12_PROTECTED_SESSION_STATUS_OK = 0,
  8941. D3D12_PROTECTED_SESSION_STATUS_INVALID = 1
  8942. } D3D12_PROTECTED_SESSION_STATUS;
  8943. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0026_v0_0_c_ifspec;
  8944. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0026_v0_0_s_ifspec;
  8945. #ifndef __ID3D12ProtectedSession_INTERFACE_DEFINED__
  8946. #define __ID3D12ProtectedSession_INTERFACE_DEFINED__
  8947. /* interface ID3D12ProtectedSession */
  8948. /* [unique][local][object][uuid] */
  8949. EXTERN_C const IID IID_ID3D12ProtectedSession;
  8950. #if defined(__cplusplus) && !defined(CINTERFACE)
  8951. MIDL_INTERFACE("A1533D18-0AC1-4084-85B9-89A96116806B")
  8952. ID3D12ProtectedSession : public ID3D12DeviceChild
  8953. {
  8954. public:
  8955. virtual HRESULT STDMETHODCALLTYPE GetStatusFence(
  8956. REFIID riid,
  8957. _COM_Outptr_opt_ void **ppFence) = 0;
  8958. virtual D3D12_PROTECTED_SESSION_STATUS STDMETHODCALLTYPE GetSessionStatus( void) = 0;
  8959. };
  8960. #else /* C style interface */
  8961. typedef struct ID3D12ProtectedSessionVtbl
  8962. {
  8963. BEGIN_INTERFACE
  8964. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  8965. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8966. ID3D12ProtectedSession * This,
  8967. REFIID riid,
  8968. _COM_Outptr_ void **ppvObject);
  8969. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  8970. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8971. ID3D12ProtectedSession * This);
  8972. DECLSPEC_XFGVIRT(IUnknown, Release)
  8973. ULONG ( STDMETHODCALLTYPE *Release )(
  8974. ID3D12ProtectedSession * This);
  8975. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  8976. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  8977. ID3D12ProtectedSession * This,
  8978. _In_ REFGUID guid,
  8979. _Inout_ UINT *pDataSize,
  8980. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  8981. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  8982. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  8983. ID3D12ProtectedSession * This,
  8984. _In_ REFGUID guid,
  8985. _In_ UINT DataSize,
  8986. _In_reads_bytes_opt_( DataSize ) const void *pData);
  8987. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  8988. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  8989. ID3D12ProtectedSession * This,
  8990. _In_ REFGUID guid,
  8991. _In_opt_ const IUnknown *pData);
  8992. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  8993. HRESULT ( STDMETHODCALLTYPE *SetName )(
  8994. ID3D12ProtectedSession * This,
  8995. _In_z_ LPCWSTR Name);
  8996. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  8997. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  8998. ID3D12ProtectedSession * This,
  8999. REFIID riid,
  9000. _COM_Outptr_opt_ void **ppvDevice);
  9001. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence)
  9002. HRESULT ( STDMETHODCALLTYPE *GetStatusFence )(
  9003. ID3D12ProtectedSession * This,
  9004. REFIID riid,
  9005. _COM_Outptr_opt_ void **ppFence);
  9006. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus)
  9007. D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )(
  9008. ID3D12ProtectedSession * This);
  9009. END_INTERFACE
  9010. } ID3D12ProtectedSessionVtbl;
  9011. interface ID3D12ProtectedSession
  9012. {
  9013. CONST_VTBL struct ID3D12ProtectedSessionVtbl *lpVtbl;
  9014. };
  9015. #ifdef COBJMACROS
  9016. #define ID3D12ProtectedSession_QueryInterface(This,riid,ppvObject) \
  9017. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9018. #define ID3D12ProtectedSession_AddRef(This) \
  9019. ( (This)->lpVtbl -> AddRef(This) )
  9020. #define ID3D12ProtectedSession_Release(This) \
  9021. ( (This)->lpVtbl -> Release(This) )
  9022. #define ID3D12ProtectedSession_GetPrivateData(This,guid,pDataSize,pData) \
  9023. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  9024. #define ID3D12ProtectedSession_SetPrivateData(This,guid,DataSize,pData) \
  9025. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  9026. #define ID3D12ProtectedSession_SetPrivateDataInterface(This,guid,pData) \
  9027. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  9028. #define ID3D12ProtectedSession_SetName(This,Name) \
  9029. ( (This)->lpVtbl -> SetName(This,Name) )
  9030. #define ID3D12ProtectedSession_GetDevice(This,riid,ppvDevice) \
  9031. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  9032. #define ID3D12ProtectedSession_GetStatusFence(This,riid,ppFence) \
  9033. ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) )
  9034. #define ID3D12ProtectedSession_GetSessionStatus(This) \
  9035. ( (This)->lpVtbl -> GetSessionStatus(This) )
  9036. #endif /* COBJMACROS */
  9037. #endif /* C style interface */
  9038. #endif /* __ID3D12ProtectedSession_INTERFACE_DEFINED__ */
  9039. /* interface __MIDL_itf_d3d12_0000_0027 */
  9040. /* [local] */
  9041. typedef
  9042. enum D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS
  9043. {
  9044. D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_NONE = 0,
  9045. D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_SUPPORTED = 0x1
  9046. } D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS;
  9047. DEFINE_ENUM_FLAG_OPERATORS( D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS );
  9048. typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT
  9049. {
  9050. UINT NodeIndex;
  9051. D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS Support;
  9052. } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT;
  9053. typedef
  9054. enum D3D12_PROTECTED_RESOURCE_SESSION_FLAGS
  9055. {
  9056. D3D12_PROTECTED_RESOURCE_SESSION_FLAG_NONE = 0
  9057. } D3D12_PROTECTED_RESOURCE_SESSION_FLAGS;
  9058. DEFINE_ENUM_FLAG_OPERATORS( D3D12_PROTECTED_RESOURCE_SESSION_FLAGS );
  9059. typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC
  9060. {
  9061. UINT NodeMask;
  9062. D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags;
  9063. } D3D12_PROTECTED_RESOURCE_SESSION_DESC;
  9064. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0027_v0_0_c_ifspec;
  9065. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0027_v0_0_s_ifspec;
  9066. #ifndef __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__
  9067. #define __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__
  9068. /* interface ID3D12ProtectedResourceSession */
  9069. /* [unique][local][object][uuid] */
  9070. EXTERN_C const IID IID_ID3D12ProtectedResourceSession;
  9071. #if defined(__cplusplus) && !defined(CINTERFACE)
  9072. MIDL_INTERFACE("6CD696F4-F289-40CC-8091-5A6C0A099C3D")
  9073. ID3D12ProtectedResourceSession : public ID3D12ProtectedSession
  9074. {
  9075. public:
  9076. #if defined(_MSC_VER) || !defined(_WIN32)
  9077. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  9078. #else
  9079. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC *STDMETHODCALLTYPE GetDesc(
  9080. D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal) = 0;
  9081. #endif
  9082. };
  9083. #else /* C style interface */
  9084. typedef struct ID3D12ProtectedResourceSessionVtbl
  9085. {
  9086. BEGIN_INTERFACE
  9087. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9088. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9089. ID3D12ProtectedResourceSession * This,
  9090. REFIID riid,
  9091. _COM_Outptr_ void **ppvObject);
  9092. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9093. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9094. ID3D12ProtectedResourceSession * This);
  9095. DECLSPEC_XFGVIRT(IUnknown, Release)
  9096. ULONG ( STDMETHODCALLTYPE *Release )(
  9097. ID3D12ProtectedResourceSession * This);
  9098. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  9099. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  9100. ID3D12ProtectedResourceSession * This,
  9101. _In_ REFGUID guid,
  9102. _Inout_ UINT *pDataSize,
  9103. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  9104. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  9105. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  9106. ID3D12ProtectedResourceSession * This,
  9107. _In_ REFGUID guid,
  9108. _In_ UINT DataSize,
  9109. _In_reads_bytes_opt_( DataSize ) const void *pData);
  9110. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  9111. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  9112. ID3D12ProtectedResourceSession * This,
  9113. _In_ REFGUID guid,
  9114. _In_opt_ const IUnknown *pData);
  9115. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  9116. HRESULT ( STDMETHODCALLTYPE *SetName )(
  9117. ID3D12ProtectedResourceSession * This,
  9118. _In_z_ LPCWSTR Name);
  9119. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  9120. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  9121. ID3D12ProtectedResourceSession * This,
  9122. REFIID riid,
  9123. _COM_Outptr_opt_ void **ppvDevice);
  9124. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence)
  9125. HRESULT ( STDMETHODCALLTYPE *GetStatusFence )(
  9126. ID3D12ProtectedResourceSession * This,
  9127. REFIID riid,
  9128. _COM_Outptr_opt_ void **ppFence);
  9129. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus)
  9130. D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )(
  9131. ID3D12ProtectedResourceSession * This);
  9132. DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession, GetDesc)
  9133. #if !defined(_WIN32)
  9134. D3D12_PROTECTED_RESOURCE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  9135. ID3D12ProtectedResourceSession * This);
  9136. #else
  9137. D3D12_PROTECTED_RESOURCE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  9138. ID3D12ProtectedResourceSession * This,
  9139. D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal);
  9140. #endif
  9141. END_INTERFACE
  9142. } ID3D12ProtectedResourceSessionVtbl;
  9143. interface ID3D12ProtectedResourceSession
  9144. {
  9145. CONST_VTBL struct ID3D12ProtectedResourceSessionVtbl *lpVtbl;
  9146. };
  9147. #ifdef COBJMACROS
  9148. #define ID3D12ProtectedResourceSession_QueryInterface(This,riid,ppvObject) \
  9149. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9150. #define ID3D12ProtectedResourceSession_AddRef(This) \
  9151. ( (This)->lpVtbl -> AddRef(This) )
  9152. #define ID3D12ProtectedResourceSession_Release(This) \
  9153. ( (This)->lpVtbl -> Release(This) )
  9154. #define ID3D12ProtectedResourceSession_GetPrivateData(This,guid,pDataSize,pData) \
  9155. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  9156. #define ID3D12ProtectedResourceSession_SetPrivateData(This,guid,DataSize,pData) \
  9157. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  9158. #define ID3D12ProtectedResourceSession_SetPrivateDataInterface(This,guid,pData) \
  9159. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  9160. #define ID3D12ProtectedResourceSession_SetName(This,Name) \
  9161. ( (This)->lpVtbl -> SetName(This,Name) )
  9162. #define ID3D12ProtectedResourceSession_GetDevice(This,riid,ppvDevice) \
  9163. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  9164. #define ID3D12ProtectedResourceSession_GetStatusFence(This,riid,ppFence) \
  9165. ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) )
  9166. #define ID3D12ProtectedResourceSession_GetSessionStatus(This) \
  9167. ( (This)->lpVtbl -> GetSessionStatus(This) )
  9168. #if !defined(_WIN32)
  9169. #define ID3D12ProtectedResourceSession_GetDesc(This) \
  9170. ( (This)->lpVtbl -> GetDesc(This) )
  9171. #else
  9172. #define ID3D12ProtectedResourceSession_GetDesc(This,RetVal) \
  9173. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  9174. #endif
  9175. #endif /* COBJMACROS */
  9176. #endif /* C style interface */
  9177. #endif /* __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__ */
  9178. #ifndef __ID3D12Device4_INTERFACE_DEFINED__
  9179. #define __ID3D12Device4_INTERFACE_DEFINED__
  9180. /* interface ID3D12Device4 */
  9181. /* [unique][local][object][uuid] */
  9182. EXTERN_C const IID IID_ID3D12Device4;
  9183. #if defined(__cplusplus) && !defined(CINTERFACE)
  9184. MIDL_INTERFACE("e865df17-a9ee-46f9-a463-3098315aa2e5")
  9185. ID3D12Device4 : public ID3D12Device3
  9186. {
  9187. public:
  9188. virtual HRESULT STDMETHODCALLTYPE CreateCommandList1(
  9189. _In_ UINT nodeMask,
  9190. _In_ D3D12_COMMAND_LIST_TYPE type,
  9191. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  9192. REFIID riid,
  9193. _COM_Outptr_ void **ppCommandList) = 0;
  9194. virtual HRESULT STDMETHODCALLTYPE CreateProtectedResourceSession(
  9195. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  9196. _In_ REFIID riid,
  9197. _COM_Outptr_ void **ppSession) = 0;
  9198. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource1(
  9199. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  9200. D3D12_HEAP_FLAGS HeapFlags,
  9201. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9202. D3D12_RESOURCE_STATES InitialResourceState,
  9203. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9204. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9205. REFIID riidResource,
  9206. _COM_Outptr_opt_ void **ppvResource) = 0;
  9207. virtual HRESULT STDMETHODCALLTYPE CreateHeap1(
  9208. _In_ const D3D12_HEAP_DESC *pDesc,
  9209. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9210. REFIID riid,
  9211. _COM_Outptr_opt_ void **ppvHeap) = 0;
  9212. virtual HRESULT STDMETHODCALLTYPE CreateReservedResource1(
  9213. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9214. D3D12_RESOURCE_STATES InitialState,
  9215. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9216. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9217. REFIID riid,
  9218. _COM_Outptr_opt_ void **ppvResource) = 0;
  9219. #if defined(_MSC_VER) || !defined(_WIN32)
  9220. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo1(
  9221. UINT visibleMask,
  9222. UINT numResourceDescs,
  9223. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9224. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  9225. #else
  9226. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo1(
  9227. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  9228. UINT visibleMask,
  9229. UINT numResourceDescs,
  9230. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9231. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  9232. #endif
  9233. };
  9234. #else /* C style interface */
  9235. typedef struct ID3D12Device4Vtbl
  9236. {
  9237. BEGIN_INTERFACE
  9238. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9239. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9240. ID3D12Device4 * This,
  9241. REFIID riid,
  9242. _COM_Outptr_ void **ppvObject);
  9243. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9244. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9245. ID3D12Device4 * This);
  9246. DECLSPEC_XFGVIRT(IUnknown, Release)
  9247. ULONG ( STDMETHODCALLTYPE *Release )(
  9248. ID3D12Device4 * This);
  9249. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  9250. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  9251. ID3D12Device4 * This,
  9252. _In_ REFGUID guid,
  9253. _Inout_ UINT *pDataSize,
  9254. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  9255. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  9256. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  9257. ID3D12Device4 * This,
  9258. _In_ REFGUID guid,
  9259. _In_ UINT DataSize,
  9260. _In_reads_bytes_opt_( DataSize ) const void *pData);
  9261. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  9262. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  9263. ID3D12Device4 * This,
  9264. _In_ REFGUID guid,
  9265. _In_opt_ const IUnknown *pData);
  9266. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  9267. HRESULT ( STDMETHODCALLTYPE *SetName )(
  9268. ID3D12Device4 * This,
  9269. _In_z_ LPCWSTR Name);
  9270. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  9271. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  9272. ID3D12Device4 * This);
  9273. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  9274. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  9275. ID3D12Device4 * This,
  9276. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  9277. REFIID riid,
  9278. _COM_Outptr_ void **ppCommandQueue);
  9279. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  9280. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  9281. ID3D12Device4 * This,
  9282. _In_ D3D12_COMMAND_LIST_TYPE type,
  9283. REFIID riid,
  9284. _COM_Outptr_ void **ppCommandAllocator);
  9285. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  9286. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  9287. ID3D12Device4 * This,
  9288. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  9289. REFIID riid,
  9290. _COM_Outptr_ void **ppPipelineState);
  9291. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  9292. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  9293. ID3D12Device4 * This,
  9294. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  9295. REFIID riid,
  9296. _COM_Outptr_ void **ppPipelineState);
  9297. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  9298. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  9299. ID3D12Device4 * This,
  9300. _In_ UINT nodeMask,
  9301. _In_ D3D12_COMMAND_LIST_TYPE type,
  9302. _In_ ID3D12CommandAllocator *pCommandAllocator,
  9303. _In_opt_ ID3D12PipelineState *pInitialState,
  9304. REFIID riid,
  9305. _COM_Outptr_ void **ppCommandList);
  9306. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  9307. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  9308. ID3D12Device4 * This,
  9309. D3D12_FEATURE Feature,
  9310. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  9311. UINT FeatureSupportDataSize);
  9312. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  9313. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  9314. ID3D12Device4 * This,
  9315. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  9316. REFIID riid,
  9317. _COM_Outptr_ void **ppvHeap);
  9318. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  9319. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  9320. ID3D12Device4 * This,
  9321. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  9322. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  9323. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  9324. ID3D12Device4 * This,
  9325. _In_ UINT nodeMask,
  9326. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  9327. _In_ SIZE_T blobLengthInBytes,
  9328. REFIID riid,
  9329. _COM_Outptr_ void **ppvRootSignature);
  9330. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  9331. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  9332. ID3D12Device4 * This,
  9333. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  9334. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9335. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  9336. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  9337. ID3D12Device4 * This,
  9338. _In_opt_ ID3D12Resource *pResource,
  9339. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  9340. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9341. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  9342. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  9343. ID3D12Device4 * This,
  9344. _In_opt_ ID3D12Resource *pResource,
  9345. _In_opt_ ID3D12Resource *pCounterResource,
  9346. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  9347. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9348. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  9349. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  9350. ID3D12Device4 * This,
  9351. _In_opt_ ID3D12Resource *pResource,
  9352. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  9353. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9354. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  9355. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  9356. ID3D12Device4 * This,
  9357. _In_opt_ ID3D12Resource *pResource,
  9358. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  9359. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9360. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  9361. void ( STDMETHODCALLTYPE *CreateSampler )(
  9362. ID3D12Device4 * This,
  9363. _In_ const D3D12_SAMPLER_DESC *pDesc,
  9364. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  9365. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  9366. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  9367. ID3D12Device4 * This,
  9368. _In_ UINT NumDestDescriptorRanges,
  9369. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  9370. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  9371. _In_ UINT NumSrcDescriptorRanges,
  9372. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  9373. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  9374. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  9375. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  9376. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  9377. ID3D12Device4 * This,
  9378. _In_ UINT NumDescriptors,
  9379. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  9380. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  9381. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  9382. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  9383. #if !defined(_WIN32)
  9384. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  9385. ID3D12Device4 * This,
  9386. _In_ UINT visibleMask,
  9387. _In_ UINT numResourceDescs,
  9388. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  9389. #else
  9390. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  9391. ID3D12Device4 * This,
  9392. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  9393. _In_ UINT visibleMask,
  9394. _In_ UINT numResourceDescs,
  9395. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  9396. #endif
  9397. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  9398. #if !defined(_WIN32)
  9399. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  9400. ID3D12Device4 * This,
  9401. _In_ UINT nodeMask,
  9402. D3D12_HEAP_TYPE heapType);
  9403. #else
  9404. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  9405. ID3D12Device4 * This,
  9406. D3D12_HEAP_PROPERTIES * RetVal,
  9407. _In_ UINT nodeMask,
  9408. D3D12_HEAP_TYPE heapType);
  9409. #endif
  9410. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  9411. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  9412. ID3D12Device4 * This,
  9413. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  9414. D3D12_HEAP_FLAGS HeapFlags,
  9415. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9416. D3D12_RESOURCE_STATES InitialResourceState,
  9417. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9418. REFIID riidResource,
  9419. _COM_Outptr_opt_ void **ppvResource);
  9420. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  9421. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  9422. ID3D12Device4 * This,
  9423. _In_ const D3D12_HEAP_DESC *pDesc,
  9424. REFIID riid,
  9425. _COM_Outptr_opt_ void **ppvHeap);
  9426. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  9427. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  9428. ID3D12Device4 * This,
  9429. _In_ ID3D12Heap *pHeap,
  9430. UINT64 HeapOffset,
  9431. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9432. D3D12_RESOURCE_STATES InitialState,
  9433. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9434. REFIID riid,
  9435. _COM_Outptr_opt_ void **ppvResource);
  9436. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  9437. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  9438. ID3D12Device4 * This,
  9439. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9440. D3D12_RESOURCE_STATES InitialState,
  9441. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9442. REFIID riid,
  9443. _COM_Outptr_opt_ void **ppvResource);
  9444. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  9445. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  9446. ID3D12Device4 * This,
  9447. _In_ ID3D12DeviceChild *pObject,
  9448. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  9449. DWORD Access,
  9450. _In_opt_ LPCWSTR Name,
  9451. _Out_ HANDLE *pHandle);
  9452. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  9453. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  9454. ID3D12Device4 * This,
  9455. _In_ HANDLE NTHandle,
  9456. REFIID riid,
  9457. _COM_Outptr_opt_ void **ppvObj);
  9458. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  9459. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  9460. ID3D12Device4 * This,
  9461. _In_ LPCWSTR Name,
  9462. DWORD Access,
  9463. /* [annotation][out] */
  9464. _Out_ HANDLE *pNTHandle);
  9465. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  9466. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  9467. ID3D12Device4 * This,
  9468. UINT NumObjects,
  9469. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  9470. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  9471. HRESULT ( STDMETHODCALLTYPE *Evict )(
  9472. ID3D12Device4 * This,
  9473. UINT NumObjects,
  9474. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  9475. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  9476. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  9477. ID3D12Device4 * This,
  9478. UINT64 InitialValue,
  9479. D3D12_FENCE_FLAGS Flags,
  9480. REFIID riid,
  9481. _COM_Outptr_ void **ppFence);
  9482. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  9483. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  9484. ID3D12Device4 * This);
  9485. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  9486. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  9487. ID3D12Device4 * This,
  9488. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  9489. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  9490. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  9491. UINT64 BaseOffset,
  9492. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  9493. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  9494. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  9495. _Out_opt_ UINT64 *pTotalBytes);
  9496. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  9497. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  9498. ID3D12Device4 * This,
  9499. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  9500. REFIID riid,
  9501. _COM_Outptr_opt_ void **ppvHeap);
  9502. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  9503. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  9504. ID3D12Device4 * This,
  9505. BOOL Enable);
  9506. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  9507. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  9508. ID3D12Device4 * This,
  9509. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  9510. _In_opt_ ID3D12RootSignature *pRootSignature,
  9511. REFIID riid,
  9512. _COM_Outptr_opt_ void **ppvCommandSignature);
  9513. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  9514. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  9515. ID3D12Device4 * This,
  9516. _In_ ID3D12Resource *pTiledResource,
  9517. _Out_opt_ UINT *pNumTilesForEntireResource,
  9518. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  9519. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  9520. _Inout_opt_ UINT *pNumSubresourceTilings,
  9521. _In_ UINT FirstSubresourceTilingToGet,
  9522. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  9523. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  9524. #if !defined(_WIN32)
  9525. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  9526. ID3D12Device4 * This);
  9527. #else
  9528. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  9529. ID3D12Device4 * This,
  9530. LUID * RetVal);
  9531. #endif
  9532. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  9533. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  9534. ID3D12Device4 * This,
  9535. _In_reads_(BlobLength) const void *pLibraryBlob,
  9536. SIZE_T BlobLength,
  9537. REFIID riid,
  9538. _COM_Outptr_ void **ppPipelineLibrary);
  9539. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  9540. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  9541. ID3D12Device4 * This,
  9542. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  9543. _In_reads_(NumFences) const UINT64 *pFenceValues,
  9544. UINT NumFences,
  9545. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  9546. HANDLE hEvent);
  9547. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  9548. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  9549. ID3D12Device4 * This,
  9550. UINT NumObjects,
  9551. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  9552. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  9553. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  9554. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  9555. ID3D12Device4 * This,
  9556. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  9557. REFIID riid,
  9558. _COM_Outptr_ void **ppPipelineState);
  9559. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  9560. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  9561. ID3D12Device4 * This,
  9562. _In_ const void *pAddress,
  9563. REFIID riid,
  9564. _COM_Outptr_ void **ppvHeap);
  9565. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  9566. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  9567. ID3D12Device4 * This,
  9568. _In_ HANDLE hFileMapping,
  9569. REFIID riid,
  9570. _COM_Outptr_ void **ppvHeap);
  9571. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  9572. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  9573. ID3D12Device4 * This,
  9574. D3D12_RESIDENCY_FLAGS Flags,
  9575. UINT NumObjects,
  9576. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  9577. _In_ ID3D12Fence *pFenceToSignal,
  9578. UINT64 FenceValueToSignal);
  9579. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  9580. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  9581. ID3D12Device4 * This,
  9582. _In_ UINT nodeMask,
  9583. _In_ D3D12_COMMAND_LIST_TYPE type,
  9584. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  9585. REFIID riid,
  9586. _COM_Outptr_ void **ppCommandList);
  9587. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  9588. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  9589. ID3D12Device4 * This,
  9590. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  9591. _In_ REFIID riid,
  9592. _COM_Outptr_ void **ppSession);
  9593. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  9594. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  9595. ID3D12Device4 * This,
  9596. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  9597. D3D12_HEAP_FLAGS HeapFlags,
  9598. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9599. D3D12_RESOURCE_STATES InitialResourceState,
  9600. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9601. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9602. REFIID riidResource,
  9603. _COM_Outptr_opt_ void **ppvResource);
  9604. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  9605. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  9606. ID3D12Device4 * This,
  9607. _In_ const D3D12_HEAP_DESC *pDesc,
  9608. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9609. REFIID riid,
  9610. _COM_Outptr_opt_ void **ppvHeap);
  9611. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  9612. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  9613. ID3D12Device4 * This,
  9614. _In_ const D3D12_RESOURCE_DESC *pDesc,
  9615. D3D12_RESOURCE_STATES InitialState,
  9616. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  9617. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  9618. REFIID riid,
  9619. _COM_Outptr_opt_ void **ppvResource);
  9620. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  9621. #if !defined(_WIN32)
  9622. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  9623. ID3D12Device4 * This,
  9624. UINT visibleMask,
  9625. UINT numResourceDescs,
  9626. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9627. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  9628. #else
  9629. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  9630. ID3D12Device4 * This,
  9631. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  9632. UINT visibleMask,
  9633. UINT numResourceDescs,
  9634. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  9635. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  9636. #endif
  9637. END_INTERFACE
  9638. } ID3D12Device4Vtbl;
  9639. interface ID3D12Device4
  9640. {
  9641. CONST_VTBL struct ID3D12Device4Vtbl *lpVtbl;
  9642. };
  9643. #ifdef COBJMACROS
  9644. #define ID3D12Device4_QueryInterface(This,riid,ppvObject) \
  9645. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9646. #define ID3D12Device4_AddRef(This) \
  9647. ( (This)->lpVtbl -> AddRef(This) )
  9648. #define ID3D12Device4_Release(This) \
  9649. ( (This)->lpVtbl -> Release(This) )
  9650. #define ID3D12Device4_GetPrivateData(This,guid,pDataSize,pData) \
  9651. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  9652. #define ID3D12Device4_SetPrivateData(This,guid,DataSize,pData) \
  9653. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  9654. #define ID3D12Device4_SetPrivateDataInterface(This,guid,pData) \
  9655. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  9656. #define ID3D12Device4_SetName(This,Name) \
  9657. ( (This)->lpVtbl -> SetName(This,Name) )
  9658. #define ID3D12Device4_GetNodeCount(This) \
  9659. ( (This)->lpVtbl -> GetNodeCount(This) )
  9660. #define ID3D12Device4_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  9661. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  9662. #define ID3D12Device4_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  9663. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  9664. #define ID3D12Device4_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  9665. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  9666. #define ID3D12Device4_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  9667. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  9668. #define ID3D12Device4_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  9669. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  9670. #define ID3D12Device4_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  9671. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  9672. #define ID3D12Device4_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  9673. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  9674. #define ID3D12Device4_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  9675. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  9676. #define ID3D12Device4_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  9677. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  9678. #define ID3D12Device4_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  9679. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  9680. #define ID3D12Device4_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  9681. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  9682. #define ID3D12Device4_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  9683. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  9684. #define ID3D12Device4_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  9685. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  9686. #define ID3D12Device4_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  9687. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  9688. #define ID3D12Device4_CreateSampler(This,pDesc,DestDescriptor) \
  9689. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  9690. #define ID3D12Device4_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  9691. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  9692. #define ID3D12Device4_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  9693. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  9694. #if !defined(_WIN32)
  9695. #define ID3D12Device4_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  9696. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  9697. #else
  9698. #define ID3D12Device4_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  9699. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  9700. #endif
  9701. #if !defined(_WIN32)
  9702. #define ID3D12Device4_GetCustomHeapProperties(This,nodeMask,heapType) \
  9703. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  9704. #else
  9705. #define ID3D12Device4_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  9706. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  9707. #endif
  9708. #define ID3D12Device4_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  9709. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  9710. #define ID3D12Device4_CreateHeap(This,pDesc,riid,ppvHeap) \
  9711. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  9712. #define ID3D12Device4_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  9713. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  9714. #define ID3D12Device4_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  9715. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  9716. #define ID3D12Device4_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  9717. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  9718. #define ID3D12Device4_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  9719. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  9720. #define ID3D12Device4_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  9721. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  9722. #define ID3D12Device4_MakeResident(This,NumObjects,ppObjects) \
  9723. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  9724. #define ID3D12Device4_Evict(This,NumObjects,ppObjects) \
  9725. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  9726. #define ID3D12Device4_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  9727. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  9728. #define ID3D12Device4_GetDeviceRemovedReason(This) \
  9729. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  9730. #define ID3D12Device4_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  9731. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  9732. #define ID3D12Device4_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  9733. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  9734. #define ID3D12Device4_SetStablePowerState(This,Enable) \
  9735. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  9736. #define ID3D12Device4_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  9737. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  9738. #define ID3D12Device4_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  9739. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  9740. #if !defined(_WIN32)
  9741. #define ID3D12Device4_GetAdapterLuid(This) \
  9742. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  9743. #else
  9744. #define ID3D12Device4_GetAdapterLuid(This,RetVal) \
  9745. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  9746. #endif
  9747. #define ID3D12Device4_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  9748. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  9749. #define ID3D12Device4_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  9750. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  9751. #define ID3D12Device4_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  9752. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  9753. #define ID3D12Device4_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  9754. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  9755. #define ID3D12Device4_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  9756. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  9757. #define ID3D12Device4_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  9758. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  9759. #define ID3D12Device4_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  9760. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  9761. #define ID3D12Device4_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  9762. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  9763. #define ID3D12Device4_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  9764. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  9765. #define ID3D12Device4_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  9766. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  9767. #define ID3D12Device4_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  9768. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  9769. #define ID3D12Device4_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  9770. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  9771. #if !defined(_WIN32)
  9772. #define ID3D12Device4_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  9773. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  9774. #else
  9775. #define ID3D12Device4_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  9776. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  9777. #endif
  9778. #endif /* COBJMACROS */
  9779. #endif /* C style interface */
  9780. #endif /* __ID3D12Device4_INTERFACE_DEFINED__ */
  9781. /* interface __MIDL_itf_d3d12_0000_0029 */
  9782. /* [local] */
  9783. typedef
  9784. enum D3D12_LIFETIME_STATE
  9785. {
  9786. D3D12_LIFETIME_STATE_IN_USE = 0,
  9787. D3D12_LIFETIME_STATE_NOT_IN_USE = ( D3D12_LIFETIME_STATE_IN_USE + 1 )
  9788. } D3D12_LIFETIME_STATE;
  9789. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0029_v0_0_c_ifspec;
  9790. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0029_v0_0_s_ifspec;
  9791. #ifndef __ID3D12LifetimeOwner_INTERFACE_DEFINED__
  9792. #define __ID3D12LifetimeOwner_INTERFACE_DEFINED__
  9793. /* interface ID3D12LifetimeOwner */
  9794. /* [unique][local][object][uuid] */
  9795. EXTERN_C const IID IID_ID3D12LifetimeOwner;
  9796. #if defined(__cplusplus) && !defined(CINTERFACE)
  9797. MIDL_INTERFACE("e667af9f-cd56-4f46-83ce-032e595d70a8")
  9798. ID3D12LifetimeOwner : public IUnknown
  9799. {
  9800. public:
  9801. virtual void STDMETHODCALLTYPE LifetimeStateUpdated(
  9802. D3D12_LIFETIME_STATE NewState) = 0;
  9803. };
  9804. #else /* C style interface */
  9805. typedef struct ID3D12LifetimeOwnerVtbl
  9806. {
  9807. BEGIN_INTERFACE
  9808. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9809. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9810. ID3D12LifetimeOwner * This,
  9811. REFIID riid,
  9812. _COM_Outptr_ void **ppvObject);
  9813. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9814. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9815. ID3D12LifetimeOwner * This);
  9816. DECLSPEC_XFGVIRT(IUnknown, Release)
  9817. ULONG ( STDMETHODCALLTYPE *Release )(
  9818. ID3D12LifetimeOwner * This);
  9819. DECLSPEC_XFGVIRT(ID3D12LifetimeOwner, LifetimeStateUpdated)
  9820. void ( STDMETHODCALLTYPE *LifetimeStateUpdated )(
  9821. ID3D12LifetimeOwner * This,
  9822. D3D12_LIFETIME_STATE NewState);
  9823. END_INTERFACE
  9824. } ID3D12LifetimeOwnerVtbl;
  9825. interface ID3D12LifetimeOwner
  9826. {
  9827. CONST_VTBL struct ID3D12LifetimeOwnerVtbl *lpVtbl;
  9828. };
  9829. #ifdef COBJMACROS
  9830. #define ID3D12LifetimeOwner_QueryInterface(This,riid,ppvObject) \
  9831. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9832. #define ID3D12LifetimeOwner_AddRef(This) \
  9833. ( (This)->lpVtbl -> AddRef(This) )
  9834. #define ID3D12LifetimeOwner_Release(This) \
  9835. ( (This)->lpVtbl -> Release(This) )
  9836. #define ID3D12LifetimeOwner_LifetimeStateUpdated(This,NewState) \
  9837. ( (This)->lpVtbl -> LifetimeStateUpdated(This,NewState) )
  9838. #endif /* COBJMACROS */
  9839. #endif /* C style interface */
  9840. #endif /* __ID3D12LifetimeOwner_INTERFACE_DEFINED__ */
  9841. #ifndef __ID3D12SwapChainAssistant_INTERFACE_DEFINED__
  9842. #define __ID3D12SwapChainAssistant_INTERFACE_DEFINED__
  9843. /* interface ID3D12SwapChainAssistant */
  9844. /* [unique][local][object][uuid] */
  9845. EXTERN_C const IID IID_ID3D12SwapChainAssistant;
  9846. #if defined(__cplusplus) && !defined(CINTERFACE)
  9847. MIDL_INTERFACE("f1df64b6-57fd-49cd-8807-c0eb88b45c8f")
  9848. ID3D12SwapChainAssistant : public IUnknown
  9849. {
  9850. public:
  9851. #if defined(_MSC_VER) || !defined(_WIN32)
  9852. virtual LUID STDMETHODCALLTYPE GetLUID( void) = 0;
  9853. #else
  9854. virtual LUID *STDMETHODCALLTYPE GetLUID(
  9855. LUID * RetVal) = 0;
  9856. #endif
  9857. virtual HRESULT STDMETHODCALLTYPE GetSwapChainObject(
  9858. REFIID riid,
  9859. _COM_Outptr_ void **ppv) = 0;
  9860. virtual HRESULT STDMETHODCALLTYPE GetCurrentResourceAndCommandQueue(
  9861. REFIID riidResource,
  9862. _COM_Outptr_ void **ppvResource,
  9863. REFIID riidQueue,
  9864. _COM_Outptr_ void **ppvQueue) = 0;
  9865. virtual HRESULT STDMETHODCALLTYPE InsertImplicitSync( void) = 0;
  9866. };
  9867. #else /* C style interface */
  9868. typedef struct ID3D12SwapChainAssistantVtbl
  9869. {
  9870. BEGIN_INTERFACE
  9871. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9872. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9873. ID3D12SwapChainAssistant * This,
  9874. REFIID riid,
  9875. _COM_Outptr_ void **ppvObject);
  9876. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9877. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9878. ID3D12SwapChainAssistant * This);
  9879. DECLSPEC_XFGVIRT(IUnknown, Release)
  9880. ULONG ( STDMETHODCALLTYPE *Release )(
  9881. ID3D12SwapChainAssistant * This);
  9882. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetLUID)
  9883. #if !defined(_WIN32)
  9884. LUID ( STDMETHODCALLTYPE *GetLUID )(
  9885. ID3D12SwapChainAssistant * This);
  9886. #else
  9887. LUID *( STDMETHODCALLTYPE *GetLUID )(
  9888. ID3D12SwapChainAssistant * This,
  9889. LUID * RetVal);
  9890. #endif
  9891. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetSwapChainObject)
  9892. HRESULT ( STDMETHODCALLTYPE *GetSwapChainObject )(
  9893. ID3D12SwapChainAssistant * This,
  9894. REFIID riid,
  9895. _COM_Outptr_ void **ppv);
  9896. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetCurrentResourceAndCommandQueue)
  9897. HRESULT ( STDMETHODCALLTYPE *GetCurrentResourceAndCommandQueue )(
  9898. ID3D12SwapChainAssistant * This,
  9899. REFIID riidResource,
  9900. _COM_Outptr_ void **ppvResource,
  9901. REFIID riidQueue,
  9902. _COM_Outptr_ void **ppvQueue);
  9903. DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, InsertImplicitSync)
  9904. HRESULT ( STDMETHODCALLTYPE *InsertImplicitSync )(
  9905. ID3D12SwapChainAssistant * This);
  9906. END_INTERFACE
  9907. } ID3D12SwapChainAssistantVtbl;
  9908. interface ID3D12SwapChainAssistant
  9909. {
  9910. CONST_VTBL struct ID3D12SwapChainAssistantVtbl *lpVtbl;
  9911. };
  9912. #ifdef COBJMACROS
  9913. #define ID3D12SwapChainAssistant_QueryInterface(This,riid,ppvObject) \
  9914. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  9915. #define ID3D12SwapChainAssistant_AddRef(This) \
  9916. ( (This)->lpVtbl -> AddRef(This) )
  9917. #define ID3D12SwapChainAssistant_Release(This) \
  9918. ( (This)->lpVtbl -> Release(This) )
  9919. #if !defined(_WIN32)
  9920. #define ID3D12SwapChainAssistant_GetLUID(This) \
  9921. ( (This)->lpVtbl -> GetLUID(This) )
  9922. #else
  9923. #define ID3D12SwapChainAssistant_GetLUID(This,RetVal) \
  9924. ( (This)->lpVtbl -> GetLUID(This,RetVal) )
  9925. #endif
  9926. #define ID3D12SwapChainAssistant_GetSwapChainObject(This,riid,ppv) \
  9927. ( (This)->lpVtbl -> GetSwapChainObject(This,riid,ppv) )
  9928. #define ID3D12SwapChainAssistant_GetCurrentResourceAndCommandQueue(This,riidResource,ppvResource,riidQueue,ppvQueue) \
  9929. ( (This)->lpVtbl -> GetCurrentResourceAndCommandQueue(This,riidResource,ppvResource,riidQueue,ppvQueue) )
  9930. #define ID3D12SwapChainAssistant_InsertImplicitSync(This) \
  9931. ( (This)->lpVtbl -> InsertImplicitSync(This) )
  9932. #endif /* COBJMACROS */
  9933. #endif /* C style interface */
  9934. #endif /* __ID3D12SwapChainAssistant_INTERFACE_DEFINED__ */
  9935. #ifndef __ID3D12LifetimeTracker_INTERFACE_DEFINED__
  9936. #define __ID3D12LifetimeTracker_INTERFACE_DEFINED__
  9937. /* interface ID3D12LifetimeTracker */
  9938. /* [unique][local][object][uuid] */
  9939. EXTERN_C const IID IID_ID3D12LifetimeTracker;
  9940. #if defined(__cplusplus) && !defined(CINTERFACE)
  9941. MIDL_INTERFACE("3fd03d36-4eb1-424a-a582-494ecb8ba813")
  9942. ID3D12LifetimeTracker : public ID3D12DeviceChild
  9943. {
  9944. public:
  9945. virtual HRESULT STDMETHODCALLTYPE DestroyOwnedObject(
  9946. _In_ ID3D12DeviceChild *pObject) = 0;
  9947. };
  9948. #else /* C style interface */
  9949. typedef struct ID3D12LifetimeTrackerVtbl
  9950. {
  9951. BEGIN_INTERFACE
  9952. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  9953. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9954. ID3D12LifetimeTracker * This,
  9955. REFIID riid,
  9956. _COM_Outptr_ void **ppvObject);
  9957. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  9958. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9959. ID3D12LifetimeTracker * This);
  9960. DECLSPEC_XFGVIRT(IUnknown, Release)
  9961. ULONG ( STDMETHODCALLTYPE *Release )(
  9962. ID3D12LifetimeTracker * This);
  9963. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  9964. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  9965. ID3D12LifetimeTracker * This,
  9966. _In_ REFGUID guid,
  9967. _Inout_ UINT *pDataSize,
  9968. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  9969. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  9970. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  9971. ID3D12LifetimeTracker * This,
  9972. _In_ REFGUID guid,
  9973. _In_ UINT DataSize,
  9974. _In_reads_bytes_opt_( DataSize ) const void *pData);
  9975. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  9976. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  9977. ID3D12LifetimeTracker * This,
  9978. _In_ REFGUID guid,
  9979. _In_opt_ const IUnknown *pData);
  9980. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  9981. HRESULT ( STDMETHODCALLTYPE *SetName )(
  9982. ID3D12LifetimeTracker * This,
  9983. _In_z_ LPCWSTR Name);
  9984. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  9985. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  9986. ID3D12LifetimeTracker * This,
  9987. REFIID riid,
  9988. _COM_Outptr_opt_ void **ppvDevice);
  9989. DECLSPEC_XFGVIRT(ID3D12LifetimeTracker, DestroyOwnedObject)
  9990. HRESULT ( STDMETHODCALLTYPE *DestroyOwnedObject )(
  9991. ID3D12LifetimeTracker * This,
  9992. _In_ ID3D12DeviceChild *pObject);
  9993. END_INTERFACE
  9994. } ID3D12LifetimeTrackerVtbl;
  9995. interface ID3D12LifetimeTracker
  9996. {
  9997. CONST_VTBL struct ID3D12LifetimeTrackerVtbl *lpVtbl;
  9998. };
  9999. #ifdef COBJMACROS
  10000. #define ID3D12LifetimeTracker_QueryInterface(This,riid,ppvObject) \
  10001. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10002. #define ID3D12LifetimeTracker_AddRef(This) \
  10003. ( (This)->lpVtbl -> AddRef(This) )
  10004. #define ID3D12LifetimeTracker_Release(This) \
  10005. ( (This)->lpVtbl -> Release(This) )
  10006. #define ID3D12LifetimeTracker_GetPrivateData(This,guid,pDataSize,pData) \
  10007. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  10008. #define ID3D12LifetimeTracker_SetPrivateData(This,guid,DataSize,pData) \
  10009. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  10010. #define ID3D12LifetimeTracker_SetPrivateDataInterface(This,guid,pData) \
  10011. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  10012. #define ID3D12LifetimeTracker_SetName(This,Name) \
  10013. ( (This)->lpVtbl -> SetName(This,Name) )
  10014. #define ID3D12LifetimeTracker_GetDevice(This,riid,ppvDevice) \
  10015. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  10016. #define ID3D12LifetimeTracker_DestroyOwnedObject(This,pObject) \
  10017. ( (This)->lpVtbl -> DestroyOwnedObject(This,pObject) )
  10018. #endif /* COBJMACROS */
  10019. #endif /* C style interface */
  10020. #endif /* __ID3D12LifetimeTracker_INTERFACE_DEFINED__ */
  10021. /* interface __MIDL_itf_d3d12_0000_0032 */
  10022. /* [local] */
  10023. typedef
  10024. enum D3D12_META_COMMAND_PARAMETER_TYPE
  10025. {
  10026. D3D12_META_COMMAND_PARAMETER_TYPE_FLOAT = 0,
  10027. D3D12_META_COMMAND_PARAMETER_TYPE_UINT64 = 1,
  10028. D3D12_META_COMMAND_PARAMETER_TYPE_GPU_VIRTUAL_ADDRESS = 2,
  10029. D3D12_META_COMMAND_PARAMETER_TYPE_CPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 3,
  10030. D3D12_META_COMMAND_PARAMETER_TYPE_GPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 4
  10031. } D3D12_META_COMMAND_PARAMETER_TYPE;
  10032. typedef
  10033. enum D3D12_META_COMMAND_PARAMETER_FLAGS
  10034. {
  10035. D3D12_META_COMMAND_PARAMETER_FLAG_INPUT = 0x1,
  10036. D3D12_META_COMMAND_PARAMETER_FLAG_OUTPUT = 0x2
  10037. } D3D12_META_COMMAND_PARAMETER_FLAGS;
  10038. DEFINE_ENUM_FLAG_OPERATORS( D3D12_META_COMMAND_PARAMETER_FLAGS );
  10039. typedef
  10040. enum D3D12_META_COMMAND_PARAMETER_STAGE
  10041. {
  10042. D3D12_META_COMMAND_PARAMETER_STAGE_CREATION = 0,
  10043. D3D12_META_COMMAND_PARAMETER_STAGE_INITIALIZATION = 1,
  10044. D3D12_META_COMMAND_PARAMETER_STAGE_EXECUTION = 2
  10045. } D3D12_META_COMMAND_PARAMETER_STAGE;
  10046. typedef struct D3D12_META_COMMAND_PARAMETER_DESC
  10047. {
  10048. LPCWSTR Name;
  10049. D3D12_META_COMMAND_PARAMETER_TYPE Type;
  10050. D3D12_META_COMMAND_PARAMETER_FLAGS Flags;
  10051. D3D12_RESOURCE_STATES RequiredResourceState;
  10052. UINT StructureOffset;
  10053. } D3D12_META_COMMAND_PARAMETER_DESC;
  10054. typedef
  10055. enum D3D12_GRAPHICS_STATES
  10056. {
  10057. D3D12_GRAPHICS_STATE_NONE = 0,
  10058. D3D12_GRAPHICS_STATE_IA_VERTEX_BUFFERS = ( 1 << 0 ) ,
  10059. D3D12_GRAPHICS_STATE_IA_INDEX_BUFFER = ( 1 << 1 ) ,
  10060. D3D12_GRAPHICS_STATE_IA_PRIMITIVE_TOPOLOGY = ( 1 << 2 ) ,
  10061. D3D12_GRAPHICS_STATE_DESCRIPTOR_HEAP = ( 1 << 3 ) ,
  10062. D3D12_GRAPHICS_STATE_GRAPHICS_ROOT_SIGNATURE = ( 1 << 4 ) ,
  10063. D3D12_GRAPHICS_STATE_COMPUTE_ROOT_SIGNATURE = ( 1 << 5 ) ,
  10064. D3D12_GRAPHICS_STATE_RS_VIEWPORTS = ( 1 << 6 ) ,
  10065. D3D12_GRAPHICS_STATE_RS_SCISSOR_RECTS = ( 1 << 7 ) ,
  10066. D3D12_GRAPHICS_STATE_PREDICATION = ( 1 << 8 ) ,
  10067. D3D12_GRAPHICS_STATE_OM_RENDER_TARGETS = ( 1 << 9 ) ,
  10068. D3D12_GRAPHICS_STATE_OM_STENCIL_REF = ( 1 << 10 ) ,
  10069. D3D12_GRAPHICS_STATE_OM_BLEND_FACTOR = ( 1 << 11 ) ,
  10070. D3D12_GRAPHICS_STATE_PIPELINE_STATE = ( 1 << 12 ) ,
  10071. D3D12_GRAPHICS_STATE_SO_TARGETS = ( 1 << 13 ) ,
  10072. D3D12_GRAPHICS_STATE_OM_DEPTH_BOUNDS = ( 1 << 14 ) ,
  10073. D3D12_GRAPHICS_STATE_SAMPLE_POSITIONS = ( 1 << 15 ) ,
  10074. D3D12_GRAPHICS_STATE_VIEW_INSTANCE_MASK = ( 1 << 16 )
  10075. } D3D12_GRAPHICS_STATES;
  10076. DEFINE_ENUM_FLAG_OPERATORS( D3D12_GRAPHICS_STATES );
  10077. typedef struct D3D12_META_COMMAND_DESC
  10078. {
  10079. GUID Id;
  10080. LPCWSTR Name;
  10081. D3D12_GRAPHICS_STATES InitializationDirtyState;
  10082. D3D12_GRAPHICS_STATES ExecutionDirtyState;
  10083. } D3D12_META_COMMAND_DESC;
  10084. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0032_v0_0_c_ifspec;
  10085. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0032_v0_0_s_ifspec;
  10086. #ifndef __ID3D12StateObject_INTERFACE_DEFINED__
  10087. #define __ID3D12StateObject_INTERFACE_DEFINED__
  10088. /* interface ID3D12StateObject */
  10089. /* [unique][local][object][uuid] */
  10090. EXTERN_C const IID IID_ID3D12StateObject;
  10091. #if defined(__cplusplus) && !defined(CINTERFACE)
  10092. MIDL_INTERFACE("47016943-fca8-4594-93ea-af258b55346d")
  10093. ID3D12StateObject : public ID3D12Pageable
  10094. {
  10095. public:
  10096. };
  10097. #else /* C style interface */
  10098. typedef struct ID3D12StateObjectVtbl
  10099. {
  10100. BEGIN_INTERFACE
  10101. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10102. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10103. ID3D12StateObject * This,
  10104. REFIID riid,
  10105. _COM_Outptr_ void **ppvObject);
  10106. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10107. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10108. ID3D12StateObject * This);
  10109. DECLSPEC_XFGVIRT(IUnknown, Release)
  10110. ULONG ( STDMETHODCALLTYPE *Release )(
  10111. ID3D12StateObject * This);
  10112. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  10113. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  10114. ID3D12StateObject * This,
  10115. _In_ REFGUID guid,
  10116. _Inout_ UINT *pDataSize,
  10117. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  10118. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  10119. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  10120. ID3D12StateObject * This,
  10121. _In_ REFGUID guid,
  10122. _In_ UINT DataSize,
  10123. _In_reads_bytes_opt_( DataSize ) const void *pData);
  10124. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  10125. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  10126. ID3D12StateObject * This,
  10127. _In_ REFGUID guid,
  10128. _In_opt_ const IUnknown *pData);
  10129. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  10130. HRESULT ( STDMETHODCALLTYPE *SetName )(
  10131. ID3D12StateObject * This,
  10132. _In_z_ LPCWSTR Name);
  10133. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  10134. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  10135. ID3D12StateObject * This,
  10136. REFIID riid,
  10137. _COM_Outptr_opt_ void **ppvDevice);
  10138. END_INTERFACE
  10139. } ID3D12StateObjectVtbl;
  10140. interface ID3D12StateObject
  10141. {
  10142. CONST_VTBL struct ID3D12StateObjectVtbl *lpVtbl;
  10143. };
  10144. #ifdef COBJMACROS
  10145. #define ID3D12StateObject_QueryInterface(This,riid,ppvObject) \
  10146. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10147. #define ID3D12StateObject_AddRef(This) \
  10148. ( (This)->lpVtbl -> AddRef(This) )
  10149. #define ID3D12StateObject_Release(This) \
  10150. ( (This)->lpVtbl -> Release(This) )
  10151. #define ID3D12StateObject_GetPrivateData(This,guid,pDataSize,pData) \
  10152. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  10153. #define ID3D12StateObject_SetPrivateData(This,guid,DataSize,pData) \
  10154. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  10155. #define ID3D12StateObject_SetPrivateDataInterface(This,guid,pData) \
  10156. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  10157. #define ID3D12StateObject_SetName(This,Name) \
  10158. ( (This)->lpVtbl -> SetName(This,Name) )
  10159. #define ID3D12StateObject_GetDevice(This,riid,ppvDevice) \
  10160. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  10161. #endif /* COBJMACROS */
  10162. #endif /* C style interface */
  10163. #endif /* __ID3D12StateObject_INTERFACE_DEFINED__ */
  10164. #ifndef __ID3D12StateObjectProperties_INTERFACE_DEFINED__
  10165. #define __ID3D12StateObjectProperties_INTERFACE_DEFINED__
  10166. /* interface ID3D12StateObjectProperties */
  10167. /* [unique][local][object][uuid] */
  10168. EXTERN_C const IID IID_ID3D12StateObjectProperties;
  10169. #if defined(__cplusplus) && !defined(CINTERFACE)
  10170. MIDL_INTERFACE("de5fa827-9bf9-4f26-89ff-d7f56fde3860")
  10171. ID3D12StateObjectProperties : public IUnknown
  10172. {
  10173. public:
  10174. virtual void *STDMETHODCALLTYPE GetShaderIdentifier(
  10175. _In_ LPCWSTR pExportName) = 0;
  10176. virtual UINT64 STDMETHODCALLTYPE GetShaderStackSize(
  10177. _In_ LPCWSTR pExportName) = 0;
  10178. virtual UINT64 STDMETHODCALLTYPE GetPipelineStackSize( void) = 0;
  10179. virtual void STDMETHODCALLTYPE SetPipelineStackSize(
  10180. UINT64 PipelineStackSizeInBytes) = 0;
  10181. };
  10182. #else /* C style interface */
  10183. typedef struct ID3D12StateObjectPropertiesVtbl
  10184. {
  10185. BEGIN_INTERFACE
  10186. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10187. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10188. ID3D12StateObjectProperties * This,
  10189. REFIID riid,
  10190. _COM_Outptr_ void **ppvObject);
  10191. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10192. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10193. ID3D12StateObjectProperties * This);
  10194. DECLSPEC_XFGVIRT(IUnknown, Release)
  10195. ULONG ( STDMETHODCALLTYPE *Release )(
  10196. ID3D12StateObjectProperties * This);
  10197. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderIdentifier)
  10198. void *( STDMETHODCALLTYPE *GetShaderIdentifier )(
  10199. ID3D12StateObjectProperties * This,
  10200. _In_ LPCWSTR pExportName);
  10201. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderStackSize)
  10202. UINT64 ( STDMETHODCALLTYPE *GetShaderStackSize )(
  10203. ID3D12StateObjectProperties * This,
  10204. _In_ LPCWSTR pExportName);
  10205. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetPipelineStackSize)
  10206. UINT64 ( STDMETHODCALLTYPE *GetPipelineStackSize )(
  10207. ID3D12StateObjectProperties * This);
  10208. DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, SetPipelineStackSize)
  10209. void ( STDMETHODCALLTYPE *SetPipelineStackSize )(
  10210. ID3D12StateObjectProperties * This,
  10211. UINT64 PipelineStackSizeInBytes);
  10212. END_INTERFACE
  10213. } ID3D12StateObjectPropertiesVtbl;
  10214. interface ID3D12StateObjectProperties
  10215. {
  10216. CONST_VTBL struct ID3D12StateObjectPropertiesVtbl *lpVtbl;
  10217. };
  10218. #ifdef COBJMACROS
  10219. #define ID3D12StateObjectProperties_QueryInterface(This,riid,ppvObject) \
  10220. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  10221. #define ID3D12StateObjectProperties_AddRef(This) \
  10222. ( (This)->lpVtbl -> AddRef(This) )
  10223. #define ID3D12StateObjectProperties_Release(This) \
  10224. ( (This)->lpVtbl -> Release(This) )
  10225. #define ID3D12StateObjectProperties_GetShaderIdentifier(This,pExportName) \
  10226. ( (This)->lpVtbl -> GetShaderIdentifier(This,pExportName) )
  10227. #define ID3D12StateObjectProperties_GetShaderStackSize(This,pExportName) \
  10228. ( (This)->lpVtbl -> GetShaderStackSize(This,pExportName) )
  10229. #define ID3D12StateObjectProperties_GetPipelineStackSize(This) \
  10230. ( (This)->lpVtbl -> GetPipelineStackSize(This) )
  10231. #define ID3D12StateObjectProperties_SetPipelineStackSize(This,PipelineStackSizeInBytes) \
  10232. ( (This)->lpVtbl -> SetPipelineStackSize(This,PipelineStackSizeInBytes) )
  10233. #endif /* COBJMACROS */
  10234. #endif /* C style interface */
  10235. #endif /* __ID3D12StateObjectProperties_INTERFACE_DEFINED__ */
  10236. /* interface __MIDL_itf_d3d12_0000_0034 */
  10237. /* [local] */
  10238. typedef
  10239. enum D3D12_STATE_SUBOBJECT_TYPE
  10240. {
  10241. D3D12_STATE_SUBOBJECT_TYPE_STATE_OBJECT_CONFIG = 0,
  10242. D3D12_STATE_SUBOBJECT_TYPE_GLOBAL_ROOT_SIGNATURE = 1,
  10243. D3D12_STATE_SUBOBJECT_TYPE_LOCAL_ROOT_SIGNATURE = 2,
  10244. D3D12_STATE_SUBOBJECT_TYPE_NODE_MASK = 3,
  10245. D3D12_STATE_SUBOBJECT_TYPE_DXIL_LIBRARY = 5,
  10246. D3D12_STATE_SUBOBJECT_TYPE_EXISTING_COLLECTION = 6,
  10247. D3D12_STATE_SUBOBJECT_TYPE_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 7,
  10248. D3D12_STATE_SUBOBJECT_TYPE_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 8,
  10249. D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_SHADER_CONFIG = 9,
  10250. D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG = 10,
  10251. D3D12_STATE_SUBOBJECT_TYPE_HIT_GROUP = 11,
  10252. D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1 = 12,
  10253. D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID = ( D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1 + 1 )
  10254. } D3D12_STATE_SUBOBJECT_TYPE;
  10255. typedef struct D3D12_STATE_SUBOBJECT
  10256. {
  10257. D3D12_STATE_SUBOBJECT_TYPE Type;
  10258. const void *pDesc;
  10259. } D3D12_STATE_SUBOBJECT;
  10260. typedef
  10261. enum D3D12_STATE_OBJECT_FLAGS
  10262. {
  10263. D3D12_STATE_OBJECT_FLAG_NONE = 0,
  10264. D3D12_STATE_OBJECT_FLAG_ALLOW_LOCAL_DEPENDENCIES_ON_EXTERNAL_DEFINITIONS = 0x1,
  10265. D3D12_STATE_OBJECT_FLAG_ALLOW_EXTERNAL_DEPENDENCIES_ON_LOCAL_DEFINITIONS = 0x2,
  10266. D3D12_STATE_OBJECT_FLAG_ALLOW_STATE_OBJECT_ADDITIONS = 0x4
  10267. } D3D12_STATE_OBJECT_FLAGS;
  10268. DEFINE_ENUM_FLAG_OPERATORS( D3D12_STATE_OBJECT_FLAGS );
  10269. typedef struct D3D12_STATE_OBJECT_CONFIG
  10270. {
  10271. D3D12_STATE_OBJECT_FLAGS Flags;
  10272. } D3D12_STATE_OBJECT_CONFIG;
  10273. typedef struct D3D12_GLOBAL_ROOT_SIGNATURE
  10274. {
  10275. ID3D12RootSignature *pGlobalRootSignature;
  10276. } D3D12_GLOBAL_ROOT_SIGNATURE;
  10277. typedef struct D3D12_LOCAL_ROOT_SIGNATURE
  10278. {
  10279. ID3D12RootSignature *pLocalRootSignature;
  10280. } D3D12_LOCAL_ROOT_SIGNATURE;
  10281. typedef struct D3D12_NODE_MASK
  10282. {
  10283. UINT NodeMask;
  10284. } D3D12_NODE_MASK;
  10285. typedef
  10286. enum D3D12_EXPORT_FLAGS
  10287. {
  10288. D3D12_EXPORT_FLAG_NONE = 0
  10289. } D3D12_EXPORT_FLAGS;
  10290. DEFINE_ENUM_FLAG_OPERATORS( D3D12_EXPORT_FLAGS );
  10291. typedef struct D3D12_EXPORT_DESC
  10292. {
  10293. LPCWSTR Name;
  10294. _In_opt_ LPCWSTR ExportToRename;
  10295. D3D12_EXPORT_FLAGS Flags;
  10296. } D3D12_EXPORT_DESC;
  10297. typedef struct D3D12_DXIL_LIBRARY_DESC
  10298. {
  10299. D3D12_SHADER_BYTECODE DXILLibrary;
  10300. UINT NumExports;
  10301. _In_reads_(NumExports) const D3D12_EXPORT_DESC *pExports;
  10302. } D3D12_DXIL_LIBRARY_DESC;
  10303. typedef struct D3D12_EXISTING_COLLECTION_DESC
  10304. {
  10305. ID3D12StateObject *pExistingCollection;
  10306. UINT NumExports;
  10307. _In_reads_(NumExports) const D3D12_EXPORT_DESC *pExports;
  10308. } D3D12_EXISTING_COLLECTION_DESC;
  10309. typedef struct D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION
  10310. {
  10311. const D3D12_STATE_SUBOBJECT *pSubobjectToAssociate;
  10312. UINT NumExports;
  10313. _In_reads_(NumExports) LPCWSTR *pExports;
  10314. } D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION;
  10315. typedef struct D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION
  10316. {
  10317. LPCWSTR SubobjectToAssociate;
  10318. UINT NumExports;
  10319. _In_reads_(NumExports) LPCWSTR *pExports;
  10320. } D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION;
  10321. typedef
  10322. enum D3D12_HIT_GROUP_TYPE
  10323. {
  10324. D3D12_HIT_GROUP_TYPE_TRIANGLES = 0,
  10325. D3D12_HIT_GROUP_TYPE_PROCEDURAL_PRIMITIVE = 0x1
  10326. } D3D12_HIT_GROUP_TYPE;
  10327. typedef struct D3D12_HIT_GROUP_DESC
  10328. {
  10329. LPCWSTR HitGroupExport;
  10330. D3D12_HIT_GROUP_TYPE Type;
  10331. _In_opt_ LPCWSTR AnyHitShaderImport;
  10332. _In_opt_ LPCWSTR ClosestHitShaderImport;
  10333. _In_opt_ LPCWSTR IntersectionShaderImport;
  10334. } D3D12_HIT_GROUP_DESC;
  10335. typedef struct D3D12_RAYTRACING_SHADER_CONFIG
  10336. {
  10337. UINT MaxPayloadSizeInBytes;
  10338. UINT MaxAttributeSizeInBytes;
  10339. } D3D12_RAYTRACING_SHADER_CONFIG;
  10340. typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG
  10341. {
  10342. UINT MaxTraceRecursionDepth;
  10343. } D3D12_RAYTRACING_PIPELINE_CONFIG;
  10344. typedef
  10345. enum D3D12_RAYTRACING_PIPELINE_FLAGS
  10346. {
  10347. D3D12_RAYTRACING_PIPELINE_FLAG_NONE = 0,
  10348. D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_TRIANGLES = 0x100,
  10349. D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200
  10350. } D3D12_RAYTRACING_PIPELINE_FLAGS;
  10351. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_PIPELINE_FLAGS );
  10352. typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG1
  10353. {
  10354. UINT MaxTraceRecursionDepth;
  10355. D3D12_RAYTRACING_PIPELINE_FLAGS Flags;
  10356. } D3D12_RAYTRACING_PIPELINE_CONFIG1;
  10357. typedef
  10358. enum D3D12_STATE_OBJECT_TYPE
  10359. {
  10360. D3D12_STATE_OBJECT_TYPE_COLLECTION = 0,
  10361. D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE = 3
  10362. } D3D12_STATE_OBJECT_TYPE;
  10363. typedef struct D3D12_STATE_OBJECT_DESC
  10364. {
  10365. D3D12_STATE_OBJECT_TYPE Type;
  10366. UINT NumSubobjects;
  10367. _In_reads_(NumSubobjects) const D3D12_STATE_SUBOBJECT *pSubobjects;
  10368. } D3D12_STATE_OBJECT_DESC;
  10369. typedef
  10370. enum D3D12_RAYTRACING_GEOMETRY_FLAGS
  10371. {
  10372. D3D12_RAYTRACING_GEOMETRY_FLAG_NONE = 0,
  10373. D3D12_RAYTRACING_GEOMETRY_FLAG_OPAQUE = 0x1,
  10374. D3D12_RAYTRACING_GEOMETRY_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION = 0x2
  10375. } D3D12_RAYTRACING_GEOMETRY_FLAGS;
  10376. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_GEOMETRY_FLAGS );
  10377. typedef
  10378. enum D3D12_RAYTRACING_GEOMETRY_TYPE
  10379. {
  10380. D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES = 0,
  10381. D3D12_RAYTRACING_GEOMETRY_TYPE_PROCEDURAL_PRIMITIVE_AABBS = ( D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES + 1 )
  10382. } D3D12_RAYTRACING_GEOMETRY_TYPE;
  10383. typedef
  10384. enum D3D12_RAYTRACING_INSTANCE_FLAGS
  10385. {
  10386. D3D12_RAYTRACING_INSTANCE_FLAG_NONE = 0,
  10387. D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_CULL_DISABLE = 0x1,
  10388. D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_FRONT_COUNTERCLOCKWISE = 0x2,
  10389. D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_OPAQUE = 0x4,
  10390. D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_NON_OPAQUE = 0x8
  10391. } D3D12_RAYTRACING_INSTANCE_FLAGS;
  10392. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_INSTANCE_FLAGS );
  10393. typedef struct D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE
  10394. {
  10395. D3D12_GPU_VIRTUAL_ADDRESS StartAddress;
  10396. UINT64 StrideInBytes;
  10397. } D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE;
  10398. typedef struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE
  10399. {
  10400. D3D12_GPU_VIRTUAL_ADDRESS StartAddress;
  10401. UINT64 SizeInBytes;
  10402. } D3D12_GPU_VIRTUAL_ADDRESS_RANGE;
  10403. typedef struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE
  10404. {
  10405. D3D12_GPU_VIRTUAL_ADDRESS StartAddress;
  10406. UINT64 SizeInBytes;
  10407. UINT64 StrideInBytes;
  10408. } D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE;
  10409. typedef struct D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC
  10410. {
  10411. D3D12_GPU_VIRTUAL_ADDRESS Transform3x4;
  10412. DXGI_FORMAT IndexFormat;
  10413. DXGI_FORMAT VertexFormat;
  10414. UINT IndexCount;
  10415. UINT VertexCount;
  10416. D3D12_GPU_VIRTUAL_ADDRESS IndexBuffer;
  10417. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE VertexBuffer;
  10418. } D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC;
  10419. typedef struct D3D12_RAYTRACING_AABB
  10420. {
  10421. FLOAT MinX;
  10422. FLOAT MinY;
  10423. FLOAT MinZ;
  10424. FLOAT MaxX;
  10425. FLOAT MaxY;
  10426. FLOAT MaxZ;
  10427. } D3D12_RAYTRACING_AABB;
  10428. typedef struct D3D12_RAYTRACING_GEOMETRY_AABBS_DESC
  10429. {
  10430. UINT64 AABBCount;
  10431. D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE AABBs;
  10432. } D3D12_RAYTRACING_GEOMETRY_AABBS_DESC;
  10433. typedef
  10434. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS
  10435. {
  10436. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_NONE = 0,
  10437. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_UPDATE = 0x1,
  10438. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_COMPACTION = 0x2,
  10439. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_TRACE = 0x4,
  10440. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_BUILD = 0x8,
  10441. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_MINIMIZE_MEMORY = 0x10,
  10442. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PERFORM_UPDATE = 0x20
  10443. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS;
  10444. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS );
  10445. typedef
  10446. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE
  10447. {
  10448. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_CLONE = 0,
  10449. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_COMPACT = 0x1,
  10450. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_VISUALIZATION_DECODE_FOR_TOOLS = 0x2,
  10451. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_SERIALIZE = 0x3,
  10452. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_DESERIALIZE = 0x4
  10453. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE;
  10454. typedef
  10455. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE
  10456. {
  10457. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL = 0,
  10458. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL = 0x1
  10459. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE;
  10460. typedef
  10461. enum D3D12_ELEMENTS_LAYOUT
  10462. {
  10463. D3D12_ELEMENTS_LAYOUT_ARRAY = 0,
  10464. D3D12_ELEMENTS_LAYOUT_ARRAY_OF_POINTERS = 0x1
  10465. } D3D12_ELEMENTS_LAYOUT;
  10466. typedef
  10467. enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE
  10468. {
  10469. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE = 0,
  10470. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION = 0x1,
  10471. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION = 0x2,
  10472. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE = 0x3
  10473. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE;
  10474. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC
  10475. {
  10476. D3D12_GPU_VIRTUAL_ADDRESS DestBuffer;
  10477. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE InfoType;
  10478. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC;
  10479. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC
  10480. {
  10481. UINT64 CompactedSizeInBytes;
  10482. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC;
  10483. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC
  10484. {
  10485. UINT64 DecodedSizeInBytes;
  10486. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC;
  10487. typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER
  10488. {
  10489. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type;
  10490. UINT NumDescs;
  10491. } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER;
  10492. // Regarding D3D12_BUILD_RAY_TRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER above,
  10493. // depending on Type field, NumDescs above is followed by either:
  10494. // D3D12_RAY_TRACING_INSTANCE_DESC InstanceDescs[NumDescs]
  10495. // or D3D12_RAY_TRACING_GEOMETRY_DESC GeometryDescs[NumDescs].
  10496. // There is 4 bytes of padding between GeometryDesc structs in the array so alignment is natural when viewed by CPU.
  10497. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC
  10498. {
  10499. UINT64 SerializedSizeInBytes;
  10500. UINT64 NumBottomLevelAccelerationStructurePointers;
  10501. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC;
  10502. typedef struct D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER
  10503. {
  10504. GUID DriverOpaqueGUID;
  10505. BYTE DriverOpaqueVersioningData[ 16 ];
  10506. } D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER;
  10507. typedef
  10508. enum D3D12_SERIALIZED_DATA_TYPE
  10509. {
  10510. D3D12_SERIALIZED_DATA_RAYTRACING_ACCELERATION_STRUCTURE = 0
  10511. } D3D12_SERIALIZED_DATA_TYPE;
  10512. typedef
  10513. enum D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS
  10514. {
  10515. D3D12_DRIVER_MATCHING_IDENTIFIER_COMPATIBLE_WITH_DEVICE = 0,
  10516. D3D12_DRIVER_MATCHING_IDENTIFIER_UNSUPPORTED_TYPE = 0x1,
  10517. D3D12_DRIVER_MATCHING_IDENTIFIER_UNRECOGNIZED = 0x2,
  10518. D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_VERSION = 0x3,
  10519. D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_TYPE = 0x4
  10520. } D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS;
  10521. typedef struct D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER
  10522. {
  10523. D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER DriverMatchingIdentifier;
  10524. UINT64 SerializedSizeInBytesIncludingHeader;
  10525. UINT64 DeserializedSizeInBytes;
  10526. UINT64 NumBottomLevelAccelerationStructurePointersAfterHeader;
  10527. } D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER;
  10528. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC
  10529. {
  10530. UINT64 CurrentSizeInBytes;
  10531. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC;
  10532. typedef struct D3D12_RAYTRACING_INSTANCE_DESC
  10533. {
  10534. FLOAT Transform[ 3 ][ 4 ];
  10535. UINT InstanceID : 24;
  10536. UINT InstanceMask : 8;
  10537. UINT InstanceContributionToHitGroupIndex : 24;
  10538. UINT Flags : 8;
  10539. D3D12_GPU_VIRTUAL_ADDRESS AccelerationStructure;
  10540. } D3D12_RAYTRACING_INSTANCE_DESC;
  10541. typedef struct D3D12_RAYTRACING_GEOMETRY_DESC
  10542. {
  10543. D3D12_RAYTRACING_GEOMETRY_TYPE Type;
  10544. D3D12_RAYTRACING_GEOMETRY_FLAGS Flags;
  10545. union
  10546. {
  10547. D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC Triangles;
  10548. D3D12_RAYTRACING_GEOMETRY_AABBS_DESC AABBs;
  10549. } ;
  10550. } D3D12_RAYTRACING_GEOMETRY_DESC;
  10551. typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS
  10552. {
  10553. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type;
  10554. D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS Flags;
  10555. UINT NumDescs;
  10556. D3D12_ELEMENTS_LAYOUT DescsLayout;
  10557. union
  10558. {
  10559. D3D12_GPU_VIRTUAL_ADDRESS InstanceDescs;
  10560. const D3D12_RAYTRACING_GEOMETRY_DESC *pGeometryDescs;
  10561. const D3D12_RAYTRACING_GEOMETRY_DESC *const *ppGeometryDescs;
  10562. } ;
  10563. } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS;
  10564. typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC
  10565. {
  10566. D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData;
  10567. D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS Inputs;
  10568. _In_opt_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData;
  10569. D3D12_GPU_VIRTUAL_ADDRESS ScratchAccelerationStructureData;
  10570. } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC;
  10571. typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO
  10572. {
  10573. UINT64 ResultDataMaxSizeInBytes;
  10574. UINT64 ScratchDataSizeInBytes;
  10575. UINT64 UpdateScratchDataSizeInBytes;
  10576. } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO;
  10577. typedef
  10578. enum D3D12_RAY_FLAGS
  10579. {
  10580. D3D12_RAY_FLAG_NONE = 0,
  10581. D3D12_RAY_FLAG_FORCE_OPAQUE = 0x1,
  10582. D3D12_RAY_FLAG_FORCE_NON_OPAQUE = 0x2,
  10583. D3D12_RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH = 0x4,
  10584. D3D12_RAY_FLAG_SKIP_CLOSEST_HIT_SHADER = 0x8,
  10585. D3D12_RAY_FLAG_CULL_BACK_FACING_TRIANGLES = 0x10,
  10586. D3D12_RAY_FLAG_CULL_FRONT_FACING_TRIANGLES = 0x20,
  10587. D3D12_RAY_FLAG_CULL_OPAQUE = 0x40,
  10588. D3D12_RAY_FLAG_CULL_NON_OPAQUE = 0x80,
  10589. D3D12_RAY_FLAG_SKIP_TRIANGLES = 0x100,
  10590. D3D12_RAY_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200
  10591. } D3D12_RAY_FLAGS;
  10592. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAY_FLAGS );
  10593. typedef
  10594. enum D3D12_HIT_KIND
  10595. {
  10596. D3D12_HIT_KIND_TRIANGLE_FRONT_FACE = 0xfe,
  10597. D3D12_HIT_KIND_TRIANGLE_BACK_FACE = 0xff
  10598. } D3D12_HIT_KIND;
  10599. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0034_v0_0_c_ifspec;
  10600. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0034_v0_0_s_ifspec;
  10601. #ifndef __ID3D12Device5_INTERFACE_DEFINED__
  10602. #define __ID3D12Device5_INTERFACE_DEFINED__
  10603. /* interface ID3D12Device5 */
  10604. /* [unique][local][object][uuid] */
  10605. EXTERN_C const IID IID_ID3D12Device5;
  10606. #if defined(__cplusplus) && !defined(CINTERFACE)
  10607. MIDL_INTERFACE("8b4f173b-2fea-4b80-8f58-4307191ab95d")
  10608. ID3D12Device5 : public ID3D12Device4
  10609. {
  10610. public:
  10611. virtual HRESULT STDMETHODCALLTYPE CreateLifetimeTracker(
  10612. _In_ ID3D12LifetimeOwner *pOwner,
  10613. REFIID riid,
  10614. _COM_Outptr_ void **ppvTracker) = 0;
  10615. virtual void STDMETHODCALLTYPE RemoveDevice( void) = 0;
  10616. virtual HRESULT STDMETHODCALLTYPE EnumerateMetaCommands(
  10617. _Inout_ UINT *pNumMetaCommands,
  10618. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs) = 0;
  10619. virtual HRESULT STDMETHODCALLTYPE EnumerateMetaCommandParameters(
  10620. _In_ REFGUID CommandId,
  10621. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  10622. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  10623. _Inout_ UINT *pParameterCount,
  10624. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs) = 0;
  10625. virtual HRESULT STDMETHODCALLTYPE CreateMetaCommand(
  10626. _In_ REFGUID CommandId,
  10627. _In_ UINT NodeMask,
  10628. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  10629. _In_ SIZE_T CreationParametersDataSizeInBytes,
  10630. REFIID riid,
  10631. _COM_Outptr_ void **ppMetaCommand) = 0;
  10632. virtual HRESULT STDMETHODCALLTYPE CreateStateObject(
  10633. const D3D12_STATE_OBJECT_DESC *pDesc,
  10634. REFIID riid,
  10635. _COM_Outptr_ void **ppStateObject) = 0;
  10636. virtual void STDMETHODCALLTYPE GetRaytracingAccelerationStructurePrebuildInfo(
  10637. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  10638. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo) = 0;
  10639. virtual D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS STDMETHODCALLTYPE CheckDriverMatchingIdentifier(
  10640. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  10641. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck) = 0;
  10642. };
  10643. #else /* C style interface */
  10644. typedef struct ID3D12Device5Vtbl
  10645. {
  10646. BEGIN_INTERFACE
  10647. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  10648. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10649. ID3D12Device5 * This,
  10650. REFIID riid,
  10651. _COM_Outptr_ void **ppvObject);
  10652. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  10653. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10654. ID3D12Device5 * This);
  10655. DECLSPEC_XFGVIRT(IUnknown, Release)
  10656. ULONG ( STDMETHODCALLTYPE *Release )(
  10657. ID3D12Device5 * This);
  10658. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  10659. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  10660. ID3D12Device5 * This,
  10661. _In_ REFGUID guid,
  10662. _Inout_ UINT *pDataSize,
  10663. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  10664. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  10665. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  10666. ID3D12Device5 * This,
  10667. _In_ REFGUID guid,
  10668. _In_ UINT DataSize,
  10669. _In_reads_bytes_opt_( DataSize ) const void *pData);
  10670. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  10671. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  10672. ID3D12Device5 * This,
  10673. _In_ REFGUID guid,
  10674. _In_opt_ const IUnknown *pData);
  10675. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  10676. HRESULT ( STDMETHODCALLTYPE *SetName )(
  10677. ID3D12Device5 * This,
  10678. _In_z_ LPCWSTR Name);
  10679. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  10680. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  10681. ID3D12Device5 * This);
  10682. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  10683. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  10684. ID3D12Device5 * This,
  10685. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  10686. REFIID riid,
  10687. _COM_Outptr_ void **ppCommandQueue);
  10688. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  10689. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  10690. ID3D12Device5 * This,
  10691. _In_ D3D12_COMMAND_LIST_TYPE type,
  10692. REFIID riid,
  10693. _COM_Outptr_ void **ppCommandAllocator);
  10694. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  10695. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  10696. ID3D12Device5 * This,
  10697. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  10698. REFIID riid,
  10699. _COM_Outptr_ void **ppPipelineState);
  10700. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  10701. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  10702. ID3D12Device5 * This,
  10703. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  10704. REFIID riid,
  10705. _COM_Outptr_ void **ppPipelineState);
  10706. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  10707. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  10708. ID3D12Device5 * This,
  10709. _In_ UINT nodeMask,
  10710. _In_ D3D12_COMMAND_LIST_TYPE type,
  10711. _In_ ID3D12CommandAllocator *pCommandAllocator,
  10712. _In_opt_ ID3D12PipelineState *pInitialState,
  10713. REFIID riid,
  10714. _COM_Outptr_ void **ppCommandList);
  10715. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  10716. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  10717. ID3D12Device5 * This,
  10718. D3D12_FEATURE Feature,
  10719. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  10720. UINT FeatureSupportDataSize);
  10721. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  10722. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  10723. ID3D12Device5 * This,
  10724. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  10725. REFIID riid,
  10726. _COM_Outptr_ void **ppvHeap);
  10727. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  10728. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  10729. ID3D12Device5 * This,
  10730. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  10731. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  10732. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  10733. ID3D12Device5 * This,
  10734. _In_ UINT nodeMask,
  10735. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  10736. _In_ SIZE_T blobLengthInBytes,
  10737. REFIID riid,
  10738. _COM_Outptr_ void **ppvRootSignature);
  10739. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  10740. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  10741. ID3D12Device5 * This,
  10742. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  10743. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  10744. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  10745. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  10746. ID3D12Device5 * This,
  10747. _In_opt_ ID3D12Resource *pResource,
  10748. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  10749. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  10750. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  10751. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  10752. ID3D12Device5 * This,
  10753. _In_opt_ ID3D12Resource *pResource,
  10754. _In_opt_ ID3D12Resource *pCounterResource,
  10755. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  10756. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  10757. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  10758. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  10759. ID3D12Device5 * This,
  10760. _In_opt_ ID3D12Resource *pResource,
  10761. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  10762. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  10763. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  10764. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  10765. ID3D12Device5 * This,
  10766. _In_opt_ ID3D12Resource *pResource,
  10767. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  10768. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  10769. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  10770. void ( STDMETHODCALLTYPE *CreateSampler )(
  10771. ID3D12Device5 * This,
  10772. _In_ const D3D12_SAMPLER_DESC *pDesc,
  10773. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  10774. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  10775. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  10776. ID3D12Device5 * This,
  10777. _In_ UINT NumDestDescriptorRanges,
  10778. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  10779. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  10780. _In_ UINT NumSrcDescriptorRanges,
  10781. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  10782. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  10783. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  10784. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  10785. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  10786. ID3D12Device5 * This,
  10787. _In_ UINT NumDescriptors,
  10788. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  10789. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  10790. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  10791. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  10792. #if !defined(_WIN32)
  10793. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  10794. ID3D12Device5 * This,
  10795. _In_ UINT visibleMask,
  10796. _In_ UINT numResourceDescs,
  10797. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  10798. #else
  10799. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  10800. ID3D12Device5 * This,
  10801. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  10802. _In_ UINT visibleMask,
  10803. _In_ UINT numResourceDescs,
  10804. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  10805. #endif
  10806. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  10807. #if !defined(_WIN32)
  10808. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  10809. ID3D12Device5 * This,
  10810. _In_ UINT nodeMask,
  10811. D3D12_HEAP_TYPE heapType);
  10812. #else
  10813. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  10814. ID3D12Device5 * This,
  10815. D3D12_HEAP_PROPERTIES * RetVal,
  10816. _In_ UINT nodeMask,
  10817. D3D12_HEAP_TYPE heapType);
  10818. #endif
  10819. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  10820. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  10821. ID3D12Device5 * This,
  10822. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  10823. D3D12_HEAP_FLAGS HeapFlags,
  10824. _In_ const D3D12_RESOURCE_DESC *pDesc,
  10825. D3D12_RESOURCE_STATES InitialResourceState,
  10826. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  10827. REFIID riidResource,
  10828. _COM_Outptr_opt_ void **ppvResource);
  10829. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  10830. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  10831. ID3D12Device5 * This,
  10832. _In_ const D3D12_HEAP_DESC *pDesc,
  10833. REFIID riid,
  10834. _COM_Outptr_opt_ void **ppvHeap);
  10835. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  10836. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  10837. ID3D12Device5 * This,
  10838. _In_ ID3D12Heap *pHeap,
  10839. UINT64 HeapOffset,
  10840. _In_ const D3D12_RESOURCE_DESC *pDesc,
  10841. D3D12_RESOURCE_STATES InitialState,
  10842. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  10843. REFIID riid,
  10844. _COM_Outptr_opt_ void **ppvResource);
  10845. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  10846. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  10847. ID3D12Device5 * This,
  10848. _In_ const D3D12_RESOURCE_DESC *pDesc,
  10849. D3D12_RESOURCE_STATES InitialState,
  10850. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  10851. REFIID riid,
  10852. _COM_Outptr_opt_ void **ppvResource);
  10853. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  10854. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  10855. ID3D12Device5 * This,
  10856. _In_ ID3D12DeviceChild *pObject,
  10857. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  10858. DWORD Access,
  10859. _In_opt_ LPCWSTR Name,
  10860. _Out_ HANDLE *pHandle);
  10861. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  10862. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  10863. ID3D12Device5 * This,
  10864. _In_ HANDLE NTHandle,
  10865. REFIID riid,
  10866. _COM_Outptr_opt_ void **ppvObj);
  10867. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  10868. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  10869. ID3D12Device5 * This,
  10870. _In_ LPCWSTR Name,
  10871. DWORD Access,
  10872. /* [annotation][out] */
  10873. _Out_ HANDLE *pNTHandle);
  10874. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  10875. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  10876. ID3D12Device5 * This,
  10877. UINT NumObjects,
  10878. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  10879. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  10880. HRESULT ( STDMETHODCALLTYPE *Evict )(
  10881. ID3D12Device5 * This,
  10882. UINT NumObjects,
  10883. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  10884. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  10885. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  10886. ID3D12Device5 * This,
  10887. UINT64 InitialValue,
  10888. D3D12_FENCE_FLAGS Flags,
  10889. REFIID riid,
  10890. _COM_Outptr_ void **ppFence);
  10891. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  10892. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  10893. ID3D12Device5 * This);
  10894. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  10895. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  10896. ID3D12Device5 * This,
  10897. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  10898. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  10899. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  10900. UINT64 BaseOffset,
  10901. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  10902. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  10903. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  10904. _Out_opt_ UINT64 *pTotalBytes);
  10905. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  10906. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  10907. ID3D12Device5 * This,
  10908. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  10909. REFIID riid,
  10910. _COM_Outptr_opt_ void **ppvHeap);
  10911. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  10912. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  10913. ID3D12Device5 * This,
  10914. BOOL Enable);
  10915. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  10916. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  10917. ID3D12Device5 * This,
  10918. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  10919. _In_opt_ ID3D12RootSignature *pRootSignature,
  10920. REFIID riid,
  10921. _COM_Outptr_opt_ void **ppvCommandSignature);
  10922. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  10923. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  10924. ID3D12Device5 * This,
  10925. _In_ ID3D12Resource *pTiledResource,
  10926. _Out_opt_ UINT *pNumTilesForEntireResource,
  10927. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  10928. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  10929. _Inout_opt_ UINT *pNumSubresourceTilings,
  10930. _In_ UINT FirstSubresourceTilingToGet,
  10931. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  10932. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  10933. #if !defined(_WIN32)
  10934. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  10935. ID3D12Device5 * This);
  10936. #else
  10937. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  10938. ID3D12Device5 * This,
  10939. LUID * RetVal);
  10940. #endif
  10941. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  10942. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  10943. ID3D12Device5 * This,
  10944. _In_reads_(BlobLength) const void *pLibraryBlob,
  10945. SIZE_T BlobLength,
  10946. REFIID riid,
  10947. _COM_Outptr_ void **ppPipelineLibrary);
  10948. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  10949. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  10950. ID3D12Device5 * This,
  10951. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  10952. _In_reads_(NumFences) const UINT64 *pFenceValues,
  10953. UINT NumFences,
  10954. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  10955. HANDLE hEvent);
  10956. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  10957. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  10958. ID3D12Device5 * This,
  10959. UINT NumObjects,
  10960. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  10961. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  10962. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  10963. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  10964. ID3D12Device5 * This,
  10965. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  10966. REFIID riid,
  10967. _COM_Outptr_ void **ppPipelineState);
  10968. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  10969. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  10970. ID3D12Device5 * This,
  10971. _In_ const void *pAddress,
  10972. REFIID riid,
  10973. _COM_Outptr_ void **ppvHeap);
  10974. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  10975. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  10976. ID3D12Device5 * This,
  10977. _In_ HANDLE hFileMapping,
  10978. REFIID riid,
  10979. _COM_Outptr_ void **ppvHeap);
  10980. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  10981. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  10982. ID3D12Device5 * This,
  10983. D3D12_RESIDENCY_FLAGS Flags,
  10984. UINT NumObjects,
  10985. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  10986. _In_ ID3D12Fence *pFenceToSignal,
  10987. UINT64 FenceValueToSignal);
  10988. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  10989. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  10990. ID3D12Device5 * This,
  10991. _In_ UINT nodeMask,
  10992. _In_ D3D12_COMMAND_LIST_TYPE type,
  10993. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  10994. REFIID riid,
  10995. _COM_Outptr_ void **ppCommandList);
  10996. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  10997. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  10998. ID3D12Device5 * This,
  10999. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  11000. _In_ REFIID riid,
  11001. _COM_Outptr_ void **ppSession);
  11002. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  11003. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  11004. ID3D12Device5 * This,
  11005. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  11006. D3D12_HEAP_FLAGS HeapFlags,
  11007. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11008. D3D12_RESOURCE_STATES InitialResourceState,
  11009. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11010. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  11011. REFIID riidResource,
  11012. _COM_Outptr_opt_ void **ppvResource);
  11013. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  11014. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  11015. ID3D12Device5 * This,
  11016. _In_ const D3D12_HEAP_DESC *pDesc,
  11017. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  11018. REFIID riid,
  11019. _COM_Outptr_opt_ void **ppvHeap);
  11020. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  11021. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  11022. ID3D12Device5 * This,
  11023. _In_ const D3D12_RESOURCE_DESC *pDesc,
  11024. D3D12_RESOURCE_STATES InitialState,
  11025. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  11026. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  11027. REFIID riid,
  11028. _COM_Outptr_opt_ void **ppvResource);
  11029. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  11030. #if !defined(_WIN32)
  11031. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  11032. ID3D12Device5 * This,
  11033. UINT visibleMask,
  11034. UINT numResourceDescs,
  11035. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  11036. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  11037. #else
  11038. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  11039. ID3D12Device5 * This,
  11040. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  11041. UINT visibleMask,
  11042. UINT numResourceDescs,
  11043. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  11044. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  11045. #endif
  11046. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  11047. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  11048. ID3D12Device5 * This,
  11049. _In_ ID3D12LifetimeOwner *pOwner,
  11050. REFIID riid,
  11051. _COM_Outptr_ void **ppvTracker);
  11052. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  11053. void ( STDMETHODCALLTYPE *RemoveDevice )(
  11054. ID3D12Device5 * This);
  11055. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  11056. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  11057. ID3D12Device5 * This,
  11058. _Inout_ UINT *pNumMetaCommands,
  11059. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  11060. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  11061. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  11062. ID3D12Device5 * This,
  11063. _In_ REFGUID CommandId,
  11064. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  11065. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  11066. _Inout_ UINT *pParameterCount,
  11067. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  11068. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  11069. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  11070. ID3D12Device5 * This,
  11071. _In_ REFGUID CommandId,
  11072. _In_ UINT NodeMask,
  11073. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  11074. _In_ SIZE_T CreationParametersDataSizeInBytes,
  11075. REFIID riid,
  11076. _COM_Outptr_ void **ppMetaCommand);
  11077. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  11078. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  11079. ID3D12Device5 * This,
  11080. const D3D12_STATE_OBJECT_DESC *pDesc,
  11081. REFIID riid,
  11082. _COM_Outptr_ void **ppStateObject);
  11083. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  11084. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  11085. ID3D12Device5 * This,
  11086. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  11087. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  11088. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  11089. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  11090. ID3D12Device5 * This,
  11091. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  11092. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  11093. END_INTERFACE
  11094. } ID3D12Device5Vtbl;
  11095. interface ID3D12Device5
  11096. {
  11097. CONST_VTBL struct ID3D12Device5Vtbl *lpVtbl;
  11098. };
  11099. #ifdef COBJMACROS
  11100. #define ID3D12Device5_QueryInterface(This,riid,ppvObject) \
  11101. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  11102. #define ID3D12Device5_AddRef(This) \
  11103. ( (This)->lpVtbl -> AddRef(This) )
  11104. #define ID3D12Device5_Release(This) \
  11105. ( (This)->lpVtbl -> Release(This) )
  11106. #define ID3D12Device5_GetPrivateData(This,guid,pDataSize,pData) \
  11107. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  11108. #define ID3D12Device5_SetPrivateData(This,guid,DataSize,pData) \
  11109. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  11110. #define ID3D12Device5_SetPrivateDataInterface(This,guid,pData) \
  11111. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  11112. #define ID3D12Device5_SetName(This,Name) \
  11113. ( (This)->lpVtbl -> SetName(This,Name) )
  11114. #define ID3D12Device5_GetNodeCount(This) \
  11115. ( (This)->lpVtbl -> GetNodeCount(This) )
  11116. #define ID3D12Device5_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  11117. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  11118. #define ID3D12Device5_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  11119. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  11120. #define ID3D12Device5_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  11121. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  11122. #define ID3D12Device5_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  11123. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  11124. #define ID3D12Device5_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  11125. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  11126. #define ID3D12Device5_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  11127. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  11128. #define ID3D12Device5_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  11129. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  11130. #define ID3D12Device5_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  11131. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  11132. #define ID3D12Device5_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  11133. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  11134. #define ID3D12Device5_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  11135. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  11136. #define ID3D12Device5_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  11137. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  11138. #define ID3D12Device5_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  11139. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  11140. #define ID3D12Device5_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  11141. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  11142. #define ID3D12Device5_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  11143. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  11144. #define ID3D12Device5_CreateSampler(This,pDesc,DestDescriptor) \
  11145. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  11146. #define ID3D12Device5_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  11147. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  11148. #define ID3D12Device5_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  11149. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  11150. #if !defined(_WIN32)
  11151. #define ID3D12Device5_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  11152. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  11153. #else
  11154. #define ID3D12Device5_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  11155. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  11156. #endif
  11157. #if !defined(_WIN32)
  11158. #define ID3D12Device5_GetCustomHeapProperties(This,nodeMask,heapType) \
  11159. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  11160. #else
  11161. #define ID3D12Device5_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  11162. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  11163. #endif
  11164. #define ID3D12Device5_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  11165. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  11166. #define ID3D12Device5_CreateHeap(This,pDesc,riid,ppvHeap) \
  11167. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  11168. #define ID3D12Device5_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  11169. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  11170. #define ID3D12Device5_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  11171. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  11172. #define ID3D12Device5_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  11173. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  11174. #define ID3D12Device5_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  11175. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  11176. #define ID3D12Device5_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  11177. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  11178. #define ID3D12Device5_MakeResident(This,NumObjects,ppObjects) \
  11179. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  11180. #define ID3D12Device5_Evict(This,NumObjects,ppObjects) \
  11181. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  11182. #define ID3D12Device5_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  11183. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  11184. #define ID3D12Device5_GetDeviceRemovedReason(This) \
  11185. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  11186. #define ID3D12Device5_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  11187. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  11188. #define ID3D12Device5_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  11189. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  11190. #define ID3D12Device5_SetStablePowerState(This,Enable) \
  11191. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  11192. #define ID3D12Device5_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  11193. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  11194. #define ID3D12Device5_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  11195. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  11196. #if !defined(_WIN32)
  11197. #define ID3D12Device5_GetAdapterLuid(This) \
  11198. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  11199. #else
  11200. #define ID3D12Device5_GetAdapterLuid(This,RetVal) \
  11201. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  11202. #endif
  11203. #define ID3D12Device5_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  11204. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  11205. #define ID3D12Device5_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  11206. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  11207. #define ID3D12Device5_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  11208. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  11209. #define ID3D12Device5_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  11210. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  11211. #define ID3D12Device5_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  11212. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  11213. #define ID3D12Device5_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  11214. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  11215. #define ID3D12Device5_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  11216. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  11217. #define ID3D12Device5_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  11218. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  11219. #define ID3D12Device5_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  11220. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  11221. #define ID3D12Device5_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  11222. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  11223. #define ID3D12Device5_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  11224. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  11225. #define ID3D12Device5_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  11226. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  11227. #if !defined(_WIN32)
  11228. #define ID3D12Device5_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  11229. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  11230. #else
  11231. #define ID3D12Device5_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  11232. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  11233. #endif
  11234. #define ID3D12Device5_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  11235. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  11236. #define ID3D12Device5_RemoveDevice(This) \
  11237. ( (This)->lpVtbl -> RemoveDevice(This) )
  11238. #define ID3D12Device5_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  11239. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  11240. #define ID3D12Device5_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  11241. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  11242. #define ID3D12Device5_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  11243. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  11244. #define ID3D12Device5_CreateStateObject(This,pDesc,riid,ppStateObject) \
  11245. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  11246. #define ID3D12Device5_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  11247. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  11248. #define ID3D12Device5_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  11249. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  11250. #endif /* COBJMACROS */
  11251. #endif /* C style interface */
  11252. #endif /* __ID3D12Device5_INTERFACE_DEFINED__ */
  11253. /* interface __MIDL_itf_d3d12_0000_0035 */
  11254. /* [local] */
  11255. typedef
  11256. enum D3D12_AUTO_BREADCRUMB_OP
  11257. {
  11258. D3D12_AUTO_BREADCRUMB_OP_SETMARKER = 0,
  11259. D3D12_AUTO_BREADCRUMB_OP_BEGINEVENT = 1,
  11260. D3D12_AUTO_BREADCRUMB_OP_ENDEVENT = 2,
  11261. D3D12_AUTO_BREADCRUMB_OP_DRAWINSTANCED = 3,
  11262. D3D12_AUTO_BREADCRUMB_OP_DRAWINDEXEDINSTANCED = 4,
  11263. D3D12_AUTO_BREADCRUMB_OP_EXECUTEINDIRECT = 5,
  11264. D3D12_AUTO_BREADCRUMB_OP_DISPATCH = 6,
  11265. D3D12_AUTO_BREADCRUMB_OP_COPYBUFFERREGION = 7,
  11266. D3D12_AUTO_BREADCRUMB_OP_COPYTEXTUREREGION = 8,
  11267. D3D12_AUTO_BREADCRUMB_OP_COPYRESOURCE = 9,
  11268. D3D12_AUTO_BREADCRUMB_OP_COPYTILES = 10,
  11269. D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCE = 11,
  11270. D3D12_AUTO_BREADCRUMB_OP_CLEARRENDERTARGETVIEW = 12,
  11271. D3D12_AUTO_BREADCRUMB_OP_CLEARUNORDEREDACCESSVIEW = 13,
  11272. D3D12_AUTO_BREADCRUMB_OP_CLEARDEPTHSTENCILVIEW = 14,
  11273. D3D12_AUTO_BREADCRUMB_OP_RESOURCEBARRIER = 15,
  11274. D3D12_AUTO_BREADCRUMB_OP_EXECUTEBUNDLE = 16,
  11275. D3D12_AUTO_BREADCRUMB_OP_PRESENT = 17,
  11276. D3D12_AUTO_BREADCRUMB_OP_RESOLVEQUERYDATA = 18,
  11277. D3D12_AUTO_BREADCRUMB_OP_BEGINSUBMISSION = 19,
  11278. D3D12_AUTO_BREADCRUMB_OP_ENDSUBMISSION = 20,
  11279. D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME = 21,
  11280. D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES = 22,
  11281. D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT = 23,
  11282. D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT64 = 24,
  11283. D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCEREGION = 25,
  11284. D3D12_AUTO_BREADCRUMB_OP_WRITEBUFFERIMMEDIATE = 26,
  11285. D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME1 = 27,
  11286. D3D12_AUTO_BREADCRUMB_OP_SETPROTECTEDRESOURCESESSION = 28,
  11287. D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME2 = 29,
  11288. D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES1 = 30,
  11289. D3D12_AUTO_BREADCRUMB_OP_BUILDRAYTRACINGACCELERATIONSTRUCTURE = 31,
  11290. D3D12_AUTO_BREADCRUMB_OP_EMITRAYTRACINGACCELERATIONSTRUCTUREPOSTBUILDINFO = 32,
  11291. D3D12_AUTO_BREADCRUMB_OP_COPYRAYTRACINGACCELERATIONSTRUCTURE = 33,
  11292. D3D12_AUTO_BREADCRUMB_OP_DISPATCHRAYS = 34,
  11293. D3D12_AUTO_BREADCRUMB_OP_INITIALIZEMETACOMMAND = 35,
  11294. D3D12_AUTO_BREADCRUMB_OP_EXECUTEMETACOMMAND = 36,
  11295. D3D12_AUTO_BREADCRUMB_OP_ESTIMATEMOTION = 37,
  11296. D3D12_AUTO_BREADCRUMB_OP_RESOLVEMOTIONVECTORHEAP = 38,
  11297. D3D12_AUTO_BREADCRUMB_OP_SETPIPELINESTATE1 = 39,
  11298. D3D12_AUTO_BREADCRUMB_OP_INITIALIZEEXTENSIONCOMMAND = 40,
  11299. D3D12_AUTO_BREADCRUMB_OP_EXECUTEEXTENSIONCOMMAND = 41,
  11300. D3D12_AUTO_BREADCRUMB_OP_DISPATCHMESH = 42,
  11301. D3D12_AUTO_BREADCRUMB_OP_ENCODEFRAME = 43,
  11302. D3D12_AUTO_BREADCRUMB_OP_RESOLVEENCODEROUTPUTMETADATA = 44,
  11303. D3D12_AUTO_BREADCRUMB_OP_BARRIER = 45,
  11304. D3D12_AUTO_BREADCRUMB_OP_BEGIN_COMMAND_LIST = 46
  11305. } D3D12_AUTO_BREADCRUMB_OP;
  11306. typedef struct D3D12_AUTO_BREADCRUMB_NODE
  11307. {
  11308. const char *pCommandListDebugNameA;
  11309. const wchar_t *pCommandListDebugNameW;
  11310. const char *pCommandQueueDebugNameA;
  11311. const wchar_t *pCommandQueueDebugNameW;
  11312. ID3D12GraphicsCommandList *pCommandList;
  11313. ID3D12CommandQueue *pCommandQueue;
  11314. UINT32 BreadcrumbCount;
  11315. const UINT32 *pLastBreadcrumbValue;
  11316. const D3D12_AUTO_BREADCRUMB_OP *pCommandHistory;
  11317. const struct D3D12_AUTO_BREADCRUMB_NODE *pNext;
  11318. } D3D12_AUTO_BREADCRUMB_NODE;
  11319. typedef struct D3D12_DRED_BREADCRUMB_CONTEXT
  11320. {
  11321. UINT BreadcrumbIndex;
  11322. const wchar_t *pContextString;
  11323. } D3D12_DRED_BREADCRUMB_CONTEXT;
  11324. typedef struct D3D12_AUTO_BREADCRUMB_NODE1
  11325. {
  11326. const char *pCommandListDebugNameA;
  11327. const wchar_t *pCommandListDebugNameW;
  11328. const char *pCommandQueueDebugNameA;
  11329. const wchar_t *pCommandQueueDebugNameW;
  11330. ID3D12GraphicsCommandList *pCommandList;
  11331. ID3D12CommandQueue *pCommandQueue;
  11332. UINT BreadcrumbCount;
  11333. const UINT *pLastBreadcrumbValue;
  11334. const D3D12_AUTO_BREADCRUMB_OP *pCommandHistory;
  11335. const struct D3D12_AUTO_BREADCRUMB_NODE1 *pNext;
  11336. UINT BreadcrumbContextsCount;
  11337. D3D12_DRED_BREADCRUMB_CONTEXT *pBreadcrumbContexts;
  11338. } D3D12_AUTO_BREADCRUMB_NODE1;
  11339. typedef
  11340. enum D3D12_DRED_VERSION
  11341. {
  11342. D3D12_DRED_VERSION_1_0 = 0x1,
  11343. D3D12_DRED_VERSION_1_1 = 0x2,
  11344. D3D12_DRED_VERSION_1_2 = 0x3,
  11345. D3D12_DRED_VERSION_1_3 = 0x4
  11346. } D3D12_DRED_VERSION;
  11347. typedef
  11348. enum D3D12_DRED_FLAGS
  11349. {
  11350. D3D12_DRED_FLAG_NONE = 0,
  11351. D3D12_DRED_FLAG_FORCE_ENABLE = 1,
  11352. D3D12_DRED_FLAG_DISABLE_AUTOBREADCRUMBS = 2
  11353. } D3D12_DRED_FLAGS;
  11354. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DRED_FLAGS );
  11355. typedef
  11356. enum D3D12_DRED_ENABLEMENT
  11357. {
  11358. D3D12_DRED_ENABLEMENT_SYSTEM_CONTROLLED = 0,
  11359. D3D12_DRED_ENABLEMENT_FORCED_OFF = 1,
  11360. D3D12_DRED_ENABLEMENT_FORCED_ON = 2
  11361. } D3D12_DRED_ENABLEMENT;
  11362. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA
  11363. {
  11364. _In_ D3D12_DRED_FLAGS Flags;
  11365. _Out_ D3D12_AUTO_BREADCRUMB_NODE *pHeadAutoBreadcrumbNode;
  11366. } D3D12_DEVICE_REMOVED_EXTENDED_DATA;
  11367. typedef
  11368. enum D3D12_DRED_ALLOCATION_TYPE
  11369. {
  11370. D3D12_DRED_ALLOCATION_TYPE_COMMAND_QUEUE = 19,
  11371. D3D12_DRED_ALLOCATION_TYPE_COMMAND_ALLOCATOR = 20,
  11372. D3D12_DRED_ALLOCATION_TYPE_PIPELINE_STATE = 21,
  11373. D3D12_DRED_ALLOCATION_TYPE_COMMAND_LIST = 22,
  11374. D3D12_DRED_ALLOCATION_TYPE_FENCE = 23,
  11375. D3D12_DRED_ALLOCATION_TYPE_DESCRIPTOR_HEAP = 24,
  11376. D3D12_DRED_ALLOCATION_TYPE_HEAP = 25,
  11377. D3D12_DRED_ALLOCATION_TYPE_QUERY_HEAP = 27,
  11378. D3D12_DRED_ALLOCATION_TYPE_COMMAND_SIGNATURE = 28,
  11379. D3D12_DRED_ALLOCATION_TYPE_PIPELINE_LIBRARY = 29,
  11380. D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER = 30,
  11381. D3D12_DRED_ALLOCATION_TYPE_VIDEO_PROCESSOR = 32,
  11382. D3D12_DRED_ALLOCATION_TYPE_RESOURCE = 34,
  11383. D3D12_DRED_ALLOCATION_TYPE_PASS = 35,
  11384. D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSION = 36,
  11385. D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSIONPOLICY = 37,
  11386. D3D12_DRED_ALLOCATION_TYPE_PROTECTEDRESOURCESESSION = 38,
  11387. D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER_HEAP = 39,
  11388. D3D12_DRED_ALLOCATION_TYPE_COMMAND_POOL = 40,
  11389. D3D12_DRED_ALLOCATION_TYPE_COMMAND_RECORDER = 41,
  11390. D3D12_DRED_ALLOCATION_TYPE_STATE_OBJECT = 42,
  11391. D3D12_DRED_ALLOCATION_TYPE_METACOMMAND = 43,
  11392. D3D12_DRED_ALLOCATION_TYPE_SCHEDULINGGROUP = 44,
  11393. D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_ESTIMATOR = 45,
  11394. D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_VECTOR_HEAP = 46,
  11395. D3D12_DRED_ALLOCATION_TYPE_VIDEO_EXTENSION_COMMAND = 47,
  11396. D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER = 48,
  11397. D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER_HEAP = 49,
  11398. D3D12_DRED_ALLOCATION_TYPE_INVALID = 0xffffffff
  11399. } D3D12_DRED_ALLOCATION_TYPE;
  11400. typedef struct D3D12_DRED_ALLOCATION_NODE
  11401. {
  11402. const char *ObjectNameA;
  11403. const wchar_t *ObjectNameW;
  11404. D3D12_DRED_ALLOCATION_TYPE AllocationType;
  11405. const struct D3D12_DRED_ALLOCATION_NODE *pNext;
  11406. } D3D12_DRED_ALLOCATION_NODE;
  11407. typedef struct D3D12_DRED_ALLOCATION_NODE1
  11408. {
  11409. const char *ObjectNameA;
  11410. const wchar_t *ObjectNameW;
  11411. D3D12_DRED_ALLOCATION_TYPE AllocationType;
  11412. const struct D3D12_DRED_ALLOCATION_NODE1 *pNext;
  11413. const IUnknown *pObject;
  11414. } D3D12_DRED_ALLOCATION_NODE1;
  11415. typedef struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT
  11416. {
  11417. _Out_ const D3D12_AUTO_BREADCRUMB_NODE *pHeadAutoBreadcrumbNode;
  11418. } D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT;
  11419. typedef struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1
  11420. {
  11421. _Out_ const D3D12_AUTO_BREADCRUMB_NODE1 *pHeadAutoBreadcrumbNode;
  11422. } D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1;
  11423. typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT
  11424. {
  11425. D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA;
  11426. _Out_ const D3D12_DRED_ALLOCATION_NODE *pHeadExistingAllocationNode;
  11427. _Out_ const D3D12_DRED_ALLOCATION_NODE *pHeadRecentFreedAllocationNode;
  11428. } D3D12_DRED_PAGE_FAULT_OUTPUT;
  11429. typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT1
  11430. {
  11431. D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA;
  11432. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadExistingAllocationNode;
  11433. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadRecentFreedAllocationNode;
  11434. } D3D12_DRED_PAGE_FAULT_OUTPUT1;
  11435. typedef
  11436. enum D3D12_DRED_PAGE_FAULT_FLAGS
  11437. {
  11438. D3D12_DRED_PAGE_FAULT_FLAGS_NONE = 0
  11439. } D3D12_DRED_PAGE_FAULT_FLAGS;
  11440. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DRED_PAGE_FAULT_FLAGS );
  11441. typedef
  11442. enum D3D12_DRED_DEVICE_STATE
  11443. {
  11444. D3D12_DRED_DEVICE_STATE_UNKNOWN = 0,
  11445. D3D12_DRED_DEVICE_STATE_HUNG = 3,
  11446. D3D12_DRED_DEVICE_STATE_FAULT = 6,
  11447. D3D12_DRED_DEVICE_STATE_PAGEFAULT = 7
  11448. } D3D12_DRED_DEVICE_STATE;
  11449. typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT2
  11450. {
  11451. D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA;
  11452. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadExistingAllocationNode;
  11453. _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadRecentFreedAllocationNode;
  11454. D3D12_DRED_PAGE_FAULT_FLAGS PageFaultFlags;
  11455. } D3D12_DRED_PAGE_FAULT_OUTPUT2;
  11456. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA1
  11457. {
  11458. HRESULT DeviceRemovedReason;
  11459. D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT AutoBreadcrumbsOutput;
  11460. D3D12_DRED_PAGE_FAULT_OUTPUT PageFaultOutput;
  11461. } D3D12_DEVICE_REMOVED_EXTENDED_DATA1;
  11462. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA2
  11463. {
  11464. HRESULT DeviceRemovedReason;
  11465. D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput;
  11466. D3D12_DRED_PAGE_FAULT_OUTPUT1 PageFaultOutput;
  11467. } D3D12_DEVICE_REMOVED_EXTENDED_DATA2;
  11468. typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA3
  11469. {
  11470. HRESULT DeviceRemovedReason;
  11471. D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput;
  11472. D3D12_DRED_PAGE_FAULT_OUTPUT2 PageFaultOutput;
  11473. D3D12_DRED_DEVICE_STATE DeviceState;
  11474. } D3D12_DEVICE_REMOVED_EXTENDED_DATA3;
  11475. typedef struct D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA
  11476. {
  11477. D3D12_DRED_VERSION Version;
  11478. union
  11479. {
  11480. D3D12_DEVICE_REMOVED_EXTENDED_DATA Dred_1_0;
  11481. D3D12_DEVICE_REMOVED_EXTENDED_DATA1 Dred_1_1;
  11482. D3D12_DEVICE_REMOVED_EXTENDED_DATA2 Dred_1_2;
  11483. D3D12_DEVICE_REMOVED_EXTENDED_DATA3 Dred_1_3;
  11484. } ;
  11485. } D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA;
  11486. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0035_v0_0_c_ifspec;
  11487. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0035_v0_0_s_ifspec;
  11488. #ifndef __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__
  11489. #define __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__
  11490. /* interface ID3D12DeviceRemovedExtendedDataSettings */
  11491. /* [unique][local][object][uuid] */
  11492. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings;
  11493. #if defined(__cplusplus) && !defined(CINTERFACE)
  11494. MIDL_INTERFACE("82BC481C-6B9B-4030-AEDB-7EE3D1DF1E63")
  11495. ID3D12DeviceRemovedExtendedDataSettings : public IUnknown
  11496. {
  11497. public:
  11498. virtual void STDMETHODCALLTYPE SetAutoBreadcrumbsEnablement(
  11499. D3D12_DRED_ENABLEMENT Enablement) = 0;
  11500. virtual void STDMETHODCALLTYPE SetPageFaultEnablement(
  11501. D3D12_DRED_ENABLEMENT Enablement) = 0;
  11502. virtual void STDMETHODCALLTYPE SetWatsonDumpEnablement(
  11503. D3D12_DRED_ENABLEMENT Enablement) = 0;
  11504. };
  11505. #else /* C style interface */
  11506. typedef struct ID3D12DeviceRemovedExtendedDataSettingsVtbl
  11507. {
  11508. BEGIN_INTERFACE
  11509. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  11510. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11511. ID3D12DeviceRemovedExtendedDataSettings * This,
  11512. REFIID riid,
  11513. _COM_Outptr_ void **ppvObject);
  11514. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  11515. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11516. ID3D12DeviceRemovedExtendedDataSettings * This);
  11517. DECLSPEC_XFGVIRT(IUnknown, Release)
  11518. ULONG ( STDMETHODCALLTYPE *Release )(
  11519. ID3D12DeviceRemovedExtendedDataSettings * This);
  11520. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement)
  11521. void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )(
  11522. ID3D12DeviceRemovedExtendedDataSettings * This,
  11523. D3D12_DRED_ENABLEMENT Enablement);
  11524. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement)
  11525. void ( STDMETHODCALLTYPE *SetPageFaultEnablement )(
  11526. ID3D12DeviceRemovedExtendedDataSettings * This,
  11527. D3D12_DRED_ENABLEMENT Enablement);
  11528. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement)
  11529. void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )(
  11530. ID3D12DeviceRemovedExtendedDataSettings * This,
  11531. D3D12_DRED_ENABLEMENT Enablement);
  11532. END_INTERFACE
  11533. } ID3D12DeviceRemovedExtendedDataSettingsVtbl;
  11534. interface ID3D12DeviceRemovedExtendedDataSettings
  11535. {
  11536. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettingsVtbl *lpVtbl;
  11537. };
  11538. #ifdef COBJMACROS
  11539. #define ID3D12DeviceRemovedExtendedDataSettings_QueryInterface(This,riid,ppvObject) \
  11540. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  11541. #define ID3D12DeviceRemovedExtendedDataSettings_AddRef(This) \
  11542. ( (This)->lpVtbl -> AddRef(This) )
  11543. #define ID3D12DeviceRemovedExtendedDataSettings_Release(This) \
  11544. ( (This)->lpVtbl -> Release(This) )
  11545. #define ID3D12DeviceRemovedExtendedDataSettings_SetAutoBreadcrumbsEnablement(This,Enablement) \
  11546. ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) )
  11547. #define ID3D12DeviceRemovedExtendedDataSettings_SetPageFaultEnablement(This,Enablement) \
  11548. ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) )
  11549. #define ID3D12DeviceRemovedExtendedDataSettings_SetWatsonDumpEnablement(This,Enablement) \
  11550. ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) )
  11551. #endif /* COBJMACROS */
  11552. #endif /* C style interface */
  11553. #endif /* __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__ */
  11554. #ifndef __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__
  11555. #define __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__
  11556. /* interface ID3D12DeviceRemovedExtendedDataSettings1 */
  11557. /* [unique][local][object][uuid] */
  11558. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings1;
  11559. #if defined(__cplusplus) && !defined(CINTERFACE)
  11560. MIDL_INTERFACE("DBD5AE51-3317-4F0A-ADF9-1D7CEDCAAE0B")
  11561. ID3D12DeviceRemovedExtendedDataSettings1 : public ID3D12DeviceRemovedExtendedDataSettings
  11562. {
  11563. public:
  11564. virtual void STDMETHODCALLTYPE SetBreadcrumbContextEnablement(
  11565. D3D12_DRED_ENABLEMENT Enablement) = 0;
  11566. };
  11567. #else /* C style interface */
  11568. typedef struct ID3D12DeviceRemovedExtendedDataSettings1Vtbl
  11569. {
  11570. BEGIN_INTERFACE
  11571. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  11572. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11573. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  11574. REFIID riid,
  11575. _COM_Outptr_ void **ppvObject);
  11576. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  11577. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11578. ID3D12DeviceRemovedExtendedDataSettings1 * This);
  11579. DECLSPEC_XFGVIRT(IUnknown, Release)
  11580. ULONG ( STDMETHODCALLTYPE *Release )(
  11581. ID3D12DeviceRemovedExtendedDataSettings1 * This);
  11582. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement)
  11583. void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )(
  11584. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  11585. D3D12_DRED_ENABLEMENT Enablement);
  11586. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement)
  11587. void ( STDMETHODCALLTYPE *SetPageFaultEnablement )(
  11588. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  11589. D3D12_DRED_ENABLEMENT Enablement);
  11590. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement)
  11591. void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )(
  11592. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  11593. D3D12_DRED_ENABLEMENT Enablement);
  11594. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings1, SetBreadcrumbContextEnablement)
  11595. void ( STDMETHODCALLTYPE *SetBreadcrumbContextEnablement )(
  11596. ID3D12DeviceRemovedExtendedDataSettings1 * This,
  11597. D3D12_DRED_ENABLEMENT Enablement);
  11598. END_INTERFACE
  11599. } ID3D12DeviceRemovedExtendedDataSettings1Vtbl;
  11600. interface ID3D12DeviceRemovedExtendedDataSettings1
  11601. {
  11602. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettings1Vtbl *lpVtbl;
  11603. };
  11604. #ifdef COBJMACROS
  11605. #define ID3D12DeviceRemovedExtendedDataSettings1_QueryInterface(This,riid,ppvObject) \
  11606. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  11607. #define ID3D12DeviceRemovedExtendedDataSettings1_AddRef(This) \
  11608. ( (This)->lpVtbl -> AddRef(This) )
  11609. #define ID3D12DeviceRemovedExtendedDataSettings1_Release(This) \
  11610. ( (This)->lpVtbl -> Release(This) )
  11611. #define ID3D12DeviceRemovedExtendedDataSettings1_SetAutoBreadcrumbsEnablement(This,Enablement) \
  11612. ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) )
  11613. #define ID3D12DeviceRemovedExtendedDataSettings1_SetPageFaultEnablement(This,Enablement) \
  11614. ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) )
  11615. #define ID3D12DeviceRemovedExtendedDataSettings1_SetWatsonDumpEnablement(This,Enablement) \
  11616. ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) )
  11617. #define ID3D12DeviceRemovedExtendedDataSettings1_SetBreadcrumbContextEnablement(This,Enablement) \
  11618. ( (This)->lpVtbl -> SetBreadcrumbContextEnablement(This,Enablement) )
  11619. #endif /* COBJMACROS */
  11620. #endif /* C style interface */
  11621. #endif /* __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__ */
  11622. #ifndef __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__
  11623. #define __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__
  11624. /* interface ID3D12DeviceRemovedExtendedDataSettings2 */
  11625. /* [unique][local][object][uuid] */
  11626. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings2;
  11627. #if defined(__cplusplus) && !defined(CINTERFACE)
  11628. MIDL_INTERFACE("61552388-01ab-4008-a436-83db189566ea")
  11629. ID3D12DeviceRemovedExtendedDataSettings2 : public ID3D12DeviceRemovedExtendedDataSettings1
  11630. {
  11631. public:
  11632. virtual void STDMETHODCALLTYPE UseMarkersOnlyAutoBreadcrumbs(
  11633. BOOL MarkersOnly) = 0;
  11634. };
  11635. #else /* C style interface */
  11636. typedef struct ID3D12DeviceRemovedExtendedDataSettings2Vtbl
  11637. {
  11638. BEGIN_INTERFACE
  11639. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  11640. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11641. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  11642. REFIID riid,
  11643. _COM_Outptr_ void **ppvObject);
  11644. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  11645. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11646. ID3D12DeviceRemovedExtendedDataSettings2 * This);
  11647. DECLSPEC_XFGVIRT(IUnknown, Release)
  11648. ULONG ( STDMETHODCALLTYPE *Release )(
  11649. ID3D12DeviceRemovedExtendedDataSettings2 * This);
  11650. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement)
  11651. void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )(
  11652. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  11653. D3D12_DRED_ENABLEMENT Enablement);
  11654. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement)
  11655. void ( STDMETHODCALLTYPE *SetPageFaultEnablement )(
  11656. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  11657. D3D12_DRED_ENABLEMENT Enablement);
  11658. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement)
  11659. void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )(
  11660. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  11661. D3D12_DRED_ENABLEMENT Enablement);
  11662. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings1, SetBreadcrumbContextEnablement)
  11663. void ( STDMETHODCALLTYPE *SetBreadcrumbContextEnablement )(
  11664. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  11665. D3D12_DRED_ENABLEMENT Enablement);
  11666. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings2, UseMarkersOnlyAutoBreadcrumbs)
  11667. void ( STDMETHODCALLTYPE *UseMarkersOnlyAutoBreadcrumbs )(
  11668. ID3D12DeviceRemovedExtendedDataSettings2 * This,
  11669. BOOL MarkersOnly);
  11670. END_INTERFACE
  11671. } ID3D12DeviceRemovedExtendedDataSettings2Vtbl;
  11672. interface ID3D12DeviceRemovedExtendedDataSettings2
  11673. {
  11674. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettings2Vtbl *lpVtbl;
  11675. };
  11676. #ifdef COBJMACROS
  11677. #define ID3D12DeviceRemovedExtendedDataSettings2_QueryInterface(This,riid,ppvObject) \
  11678. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  11679. #define ID3D12DeviceRemovedExtendedDataSettings2_AddRef(This) \
  11680. ( (This)->lpVtbl -> AddRef(This) )
  11681. #define ID3D12DeviceRemovedExtendedDataSettings2_Release(This) \
  11682. ( (This)->lpVtbl -> Release(This) )
  11683. #define ID3D12DeviceRemovedExtendedDataSettings2_SetAutoBreadcrumbsEnablement(This,Enablement) \
  11684. ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) )
  11685. #define ID3D12DeviceRemovedExtendedDataSettings2_SetPageFaultEnablement(This,Enablement) \
  11686. ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) )
  11687. #define ID3D12DeviceRemovedExtendedDataSettings2_SetWatsonDumpEnablement(This,Enablement) \
  11688. ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) )
  11689. #define ID3D12DeviceRemovedExtendedDataSettings2_SetBreadcrumbContextEnablement(This,Enablement) \
  11690. ( (This)->lpVtbl -> SetBreadcrumbContextEnablement(This,Enablement) )
  11691. #define ID3D12DeviceRemovedExtendedDataSettings2_UseMarkersOnlyAutoBreadcrumbs(This,MarkersOnly) \
  11692. ( (This)->lpVtbl -> UseMarkersOnlyAutoBreadcrumbs(This,MarkersOnly) )
  11693. #endif /* COBJMACROS */
  11694. #endif /* C style interface */
  11695. #endif /* __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__ */
  11696. #ifndef __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__
  11697. #define __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__
  11698. /* interface ID3D12DeviceRemovedExtendedData */
  11699. /* [unique][local][object][uuid] */
  11700. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData;
  11701. #if defined(__cplusplus) && !defined(CINTERFACE)
  11702. MIDL_INTERFACE("98931D33-5AE8-4791-AA3C-1A73A2934E71")
  11703. ID3D12DeviceRemovedExtendedData : public IUnknown
  11704. {
  11705. public:
  11706. virtual HRESULT STDMETHODCALLTYPE GetAutoBreadcrumbsOutput(
  11707. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput) = 0;
  11708. virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput(
  11709. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput) = 0;
  11710. };
  11711. #else /* C style interface */
  11712. typedef struct ID3D12DeviceRemovedExtendedDataVtbl
  11713. {
  11714. BEGIN_INTERFACE
  11715. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  11716. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11717. ID3D12DeviceRemovedExtendedData * This,
  11718. REFIID riid,
  11719. _COM_Outptr_ void **ppvObject);
  11720. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  11721. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11722. ID3D12DeviceRemovedExtendedData * This);
  11723. DECLSPEC_XFGVIRT(IUnknown, Release)
  11724. ULONG ( STDMETHODCALLTYPE *Release )(
  11725. ID3D12DeviceRemovedExtendedData * This);
  11726. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput)
  11727. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )(
  11728. ID3D12DeviceRemovedExtendedData * This,
  11729. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput);
  11730. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput)
  11731. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )(
  11732. ID3D12DeviceRemovedExtendedData * This,
  11733. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput);
  11734. END_INTERFACE
  11735. } ID3D12DeviceRemovedExtendedDataVtbl;
  11736. interface ID3D12DeviceRemovedExtendedData
  11737. {
  11738. CONST_VTBL struct ID3D12DeviceRemovedExtendedDataVtbl *lpVtbl;
  11739. };
  11740. #ifdef COBJMACROS
  11741. #define ID3D12DeviceRemovedExtendedData_QueryInterface(This,riid,ppvObject) \
  11742. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  11743. #define ID3D12DeviceRemovedExtendedData_AddRef(This) \
  11744. ( (This)->lpVtbl -> AddRef(This) )
  11745. #define ID3D12DeviceRemovedExtendedData_Release(This) \
  11746. ( (This)->lpVtbl -> Release(This) )
  11747. #define ID3D12DeviceRemovedExtendedData_GetAutoBreadcrumbsOutput(This,pOutput) \
  11748. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) )
  11749. #define ID3D12DeviceRemovedExtendedData_GetPageFaultAllocationOutput(This,pOutput) \
  11750. ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) )
  11751. #endif /* COBJMACROS */
  11752. #endif /* C style interface */
  11753. #endif /* __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__ */
  11754. #ifndef __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__
  11755. #define __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__
  11756. /* interface ID3D12DeviceRemovedExtendedData1 */
  11757. /* [unique][local][object][uuid] */
  11758. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData1;
  11759. #if defined(__cplusplus) && !defined(CINTERFACE)
  11760. MIDL_INTERFACE("9727A022-CF1D-4DDA-9EBA-EFFA653FC506")
  11761. ID3D12DeviceRemovedExtendedData1 : public ID3D12DeviceRemovedExtendedData
  11762. {
  11763. public:
  11764. virtual HRESULT STDMETHODCALLTYPE GetAutoBreadcrumbsOutput1(
  11765. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput) = 0;
  11766. virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput1(
  11767. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput) = 0;
  11768. };
  11769. #else /* C style interface */
  11770. typedef struct ID3D12DeviceRemovedExtendedData1Vtbl
  11771. {
  11772. BEGIN_INTERFACE
  11773. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  11774. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11775. ID3D12DeviceRemovedExtendedData1 * This,
  11776. REFIID riid,
  11777. _COM_Outptr_ void **ppvObject);
  11778. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  11779. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11780. ID3D12DeviceRemovedExtendedData1 * This);
  11781. DECLSPEC_XFGVIRT(IUnknown, Release)
  11782. ULONG ( STDMETHODCALLTYPE *Release )(
  11783. ID3D12DeviceRemovedExtendedData1 * This);
  11784. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput)
  11785. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )(
  11786. ID3D12DeviceRemovedExtendedData1 * This,
  11787. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput);
  11788. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput)
  11789. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )(
  11790. ID3D12DeviceRemovedExtendedData1 * This,
  11791. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput);
  11792. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetAutoBreadcrumbsOutput1)
  11793. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput1 )(
  11794. ID3D12DeviceRemovedExtendedData1 * This,
  11795. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput);
  11796. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetPageFaultAllocationOutput1)
  11797. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput1 )(
  11798. ID3D12DeviceRemovedExtendedData1 * This,
  11799. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput);
  11800. END_INTERFACE
  11801. } ID3D12DeviceRemovedExtendedData1Vtbl;
  11802. interface ID3D12DeviceRemovedExtendedData1
  11803. {
  11804. CONST_VTBL struct ID3D12DeviceRemovedExtendedData1Vtbl *lpVtbl;
  11805. };
  11806. #ifdef COBJMACROS
  11807. #define ID3D12DeviceRemovedExtendedData1_QueryInterface(This,riid,ppvObject) \
  11808. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  11809. #define ID3D12DeviceRemovedExtendedData1_AddRef(This) \
  11810. ( (This)->lpVtbl -> AddRef(This) )
  11811. #define ID3D12DeviceRemovedExtendedData1_Release(This) \
  11812. ( (This)->lpVtbl -> Release(This) )
  11813. #define ID3D12DeviceRemovedExtendedData1_GetAutoBreadcrumbsOutput(This,pOutput) \
  11814. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) )
  11815. #define ID3D12DeviceRemovedExtendedData1_GetPageFaultAllocationOutput(This,pOutput) \
  11816. ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) )
  11817. #define ID3D12DeviceRemovedExtendedData1_GetAutoBreadcrumbsOutput1(This,pOutput) \
  11818. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput1(This,pOutput) )
  11819. #define ID3D12DeviceRemovedExtendedData1_GetPageFaultAllocationOutput1(This,pOutput) \
  11820. ( (This)->lpVtbl -> GetPageFaultAllocationOutput1(This,pOutput) )
  11821. #endif /* COBJMACROS */
  11822. #endif /* C style interface */
  11823. #endif /* __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__ */
  11824. #ifndef __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__
  11825. #define __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__
  11826. /* interface ID3D12DeviceRemovedExtendedData2 */
  11827. /* [unique][local][object][uuid] */
  11828. EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData2;
  11829. #if defined(__cplusplus) && !defined(CINTERFACE)
  11830. MIDL_INTERFACE("67FC5816-E4CA-4915-BF18-42541272DA54")
  11831. ID3D12DeviceRemovedExtendedData2 : public ID3D12DeviceRemovedExtendedData1
  11832. {
  11833. public:
  11834. virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput2(
  11835. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT2 *pOutput) = 0;
  11836. virtual D3D12_DRED_DEVICE_STATE STDMETHODCALLTYPE GetDeviceState( void) = 0;
  11837. };
  11838. #else /* C style interface */
  11839. typedef struct ID3D12DeviceRemovedExtendedData2Vtbl
  11840. {
  11841. BEGIN_INTERFACE
  11842. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  11843. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11844. ID3D12DeviceRemovedExtendedData2 * This,
  11845. REFIID riid,
  11846. _COM_Outptr_ void **ppvObject);
  11847. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  11848. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11849. ID3D12DeviceRemovedExtendedData2 * This);
  11850. DECLSPEC_XFGVIRT(IUnknown, Release)
  11851. ULONG ( STDMETHODCALLTYPE *Release )(
  11852. ID3D12DeviceRemovedExtendedData2 * This);
  11853. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput)
  11854. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )(
  11855. ID3D12DeviceRemovedExtendedData2 * This,
  11856. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput);
  11857. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput)
  11858. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )(
  11859. ID3D12DeviceRemovedExtendedData2 * This,
  11860. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput);
  11861. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetAutoBreadcrumbsOutput1)
  11862. HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput1 )(
  11863. ID3D12DeviceRemovedExtendedData2 * This,
  11864. _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput);
  11865. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetPageFaultAllocationOutput1)
  11866. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput1 )(
  11867. ID3D12DeviceRemovedExtendedData2 * This,
  11868. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput);
  11869. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData2, GetPageFaultAllocationOutput2)
  11870. HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput2 )(
  11871. ID3D12DeviceRemovedExtendedData2 * This,
  11872. _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT2 *pOutput);
  11873. DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData2, GetDeviceState)
  11874. D3D12_DRED_DEVICE_STATE ( STDMETHODCALLTYPE *GetDeviceState )(
  11875. ID3D12DeviceRemovedExtendedData2 * This);
  11876. END_INTERFACE
  11877. } ID3D12DeviceRemovedExtendedData2Vtbl;
  11878. interface ID3D12DeviceRemovedExtendedData2
  11879. {
  11880. CONST_VTBL struct ID3D12DeviceRemovedExtendedData2Vtbl *lpVtbl;
  11881. };
  11882. #ifdef COBJMACROS
  11883. #define ID3D12DeviceRemovedExtendedData2_QueryInterface(This,riid,ppvObject) \
  11884. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  11885. #define ID3D12DeviceRemovedExtendedData2_AddRef(This) \
  11886. ( (This)->lpVtbl -> AddRef(This) )
  11887. #define ID3D12DeviceRemovedExtendedData2_Release(This) \
  11888. ( (This)->lpVtbl -> Release(This) )
  11889. #define ID3D12DeviceRemovedExtendedData2_GetAutoBreadcrumbsOutput(This,pOutput) \
  11890. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) )
  11891. #define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput(This,pOutput) \
  11892. ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) )
  11893. #define ID3D12DeviceRemovedExtendedData2_GetAutoBreadcrumbsOutput1(This,pOutput) \
  11894. ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput1(This,pOutput) )
  11895. #define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput1(This,pOutput) \
  11896. ( (This)->lpVtbl -> GetPageFaultAllocationOutput1(This,pOutput) )
  11897. #define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput2(This,pOutput) \
  11898. ( (This)->lpVtbl -> GetPageFaultAllocationOutput2(This,pOutput) )
  11899. #define ID3D12DeviceRemovedExtendedData2_GetDeviceState(This) \
  11900. ( (This)->lpVtbl -> GetDeviceState(This) )
  11901. #endif /* COBJMACROS */
  11902. #endif /* C style interface */
  11903. #endif /* __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__ */
  11904. /* interface __MIDL_itf_d3d12_0000_0041 */
  11905. /* [local] */
  11906. typedef
  11907. enum D3D12_BACKGROUND_PROCESSING_MODE
  11908. {
  11909. D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED = 0,
  11910. D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS = ( D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED + 1 ) ,
  11911. D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK = ( D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS + 1 ) ,
  11912. D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_PROFILING_BY_SYSTEM = ( D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK + 1 )
  11913. } D3D12_BACKGROUND_PROCESSING_MODE;
  11914. typedef
  11915. enum D3D12_MEASUREMENTS_ACTION
  11916. {
  11917. D3D12_MEASUREMENTS_ACTION_KEEP_ALL = 0,
  11918. D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS = ( D3D12_MEASUREMENTS_ACTION_KEEP_ALL + 1 ) ,
  11919. D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY = ( D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS + 1 ) ,
  11920. D3D12_MEASUREMENTS_ACTION_DISCARD_PREVIOUS = ( D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY + 1 )
  11921. } D3D12_MEASUREMENTS_ACTION;
  11922. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0041_v0_0_c_ifspec;
  11923. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0041_v0_0_s_ifspec;
  11924. #ifndef __ID3D12Device6_INTERFACE_DEFINED__
  11925. #define __ID3D12Device6_INTERFACE_DEFINED__
  11926. /* interface ID3D12Device6 */
  11927. /* [unique][local][object][uuid] */
  11928. EXTERN_C const IID IID_ID3D12Device6;
  11929. #if defined(__cplusplus) && !defined(CINTERFACE)
  11930. MIDL_INTERFACE("c70b221b-40e4-4a17-89af-025a0727a6dc")
  11931. ID3D12Device6 : public ID3D12Device5
  11932. {
  11933. public:
  11934. virtual HRESULT STDMETHODCALLTYPE SetBackgroundProcessingMode(
  11935. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  11936. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  11937. _In_opt_ HANDLE hEventToSignalUponCompletion,
  11938. _Out_opt_ BOOL *pbFurtherMeasurementsDesired) = 0;
  11939. };
  11940. #else /* C style interface */
  11941. typedef struct ID3D12Device6Vtbl
  11942. {
  11943. BEGIN_INTERFACE
  11944. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  11945. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11946. ID3D12Device6 * This,
  11947. REFIID riid,
  11948. _COM_Outptr_ void **ppvObject);
  11949. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  11950. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11951. ID3D12Device6 * This);
  11952. DECLSPEC_XFGVIRT(IUnknown, Release)
  11953. ULONG ( STDMETHODCALLTYPE *Release )(
  11954. ID3D12Device6 * This);
  11955. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  11956. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  11957. ID3D12Device6 * This,
  11958. _In_ REFGUID guid,
  11959. _Inout_ UINT *pDataSize,
  11960. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  11961. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  11962. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  11963. ID3D12Device6 * This,
  11964. _In_ REFGUID guid,
  11965. _In_ UINT DataSize,
  11966. _In_reads_bytes_opt_( DataSize ) const void *pData);
  11967. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  11968. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  11969. ID3D12Device6 * This,
  11970. _In_ REFGUID guid,
  11971. _In_opt_ const IUnknown *pData);
  11972. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  11973. HRESULT ( STDMETHODCALLTYPE *SetName )(
  11974. ID3D12Device6 * This,
  11975. _In_z_ LPCWSTR Name);
  11976. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  11977. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  11978. ID3D12Device6 * This);
  11979. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  11980. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  11981. ID3D12Device6 * This,
  11982. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  11983. REFIID riid,
  11984. _COM_Outptr_ void **ppCommandQueue);
  11985. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  11986. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  11987. ID3D12Device6 * This,
  11988. _In_ D3D12_COMMAND_LIST_TYPE type,
  11989. REFIID riid,
  11990. _COM_Outptr_ void **ppCommandAllocator);
  11991. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  11992. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  11993. ID3D12Device6 * This,
  11994. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  11995. REFIID riid,
  11996. _COM_Outptr_ void **ppPipelineState);
  11997. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  11998. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  11999. ID3D12Device6 * This,
  12000. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  12001. REFIID riid,
  12002. _COM_Outptr_ void **ppPipelineState);
  12003. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  12004. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  12005. ID3D12Device6 * This,
  12006. _In_ UINT nodeMask,
  12007. _In_ D3D12_COMMAND_LIST_TYPE type,
  12008. _In_ ID3D12CommandAllocator *pCommandAllocator,
  12009. _In_opt_ ID3D12PipelineState *pInitialState,
  12010. REFIID riid,
  12011. _COM_Outptr_ void **ppCommandList);
  12012. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  12013. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  12014. ID3D12Device6 * This,
  12015. D3D12_FEATURE Feature,
  12016. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  12017. UINT FeatureSupportDataSize);
  12018. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  12019. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  12020. ID3D12Device6 * This,
  12021. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  12022. REFIID riid,
  12023. _COM_Outptr_ void **ppvHeap);
  12024. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  12025. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  12026. ID3D12Device6 * This,
  12027. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  12028. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  12029. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  12030. ID3D12Device6 * This,
  12031. _In_ UINT nodeMask,
  12032. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  12033. _In_ SIZE_T blobLengthInBytes,
  12034. REFIID riid,
  12035. _COM_Outptr_ void **ppvRootSignature);
  12036. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  12037. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  12038. ID3D12Device6 * This,
  12039. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  12040. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12041. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  12042. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  12043. ID3D12Device6 * This,
  12044. _In_opt_ ID3D12Resource *pResource,
  12045. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  12046. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12047. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  12048. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  12049. ID3D12Device6 * This,
  12050. _In_opt_ ID3D12Resource *pResource,
  12051. _In_opt_ ID3D12Resource *pCounterResource,
  12052. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  12053. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12054. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  12055. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  12056. ID3D12Device6 * This,
  12057. _In_opt_ ID3D12Resource *pResource,
  12058. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  12059. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12060. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  12061. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  12062. ID3D12Device6 * This,
  12063. _In_opt_ ID3D12Resource *pResource,
  12064. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  12065. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12066. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  12067. void ( STDMETHODCALLTYPE *CreateSampler )(
  12068. ID3D12Device6 * This,
  12069. _In_ const D3D12_SAMPLER_DESC *pDesc,
  12070. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12071. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  12072. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  12073. ID3D12Device6 * This,
  12074. _In_ UINT NumDestDescriptorRanges,
  12075. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  12076. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  12077. _In_ UINT NumSrcDescriptorRanges,
  12078. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  12079. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  12080. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  12081. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  12082. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  12083. ID3D12Device6 * This,
  12084. _In_ UINT NumDescriptors,
  12085. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  12086. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  12087. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  12088. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  12089. #if !defined(_WIN32)
  12090. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  12091. ID3D12Device6 * This,
  12092. _In_ UINT visibleMask,
  12093. _In_ UINT numResourceDescs,
  12094. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  12095. #else
  12096. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  12097. ID3D12Device6 * This,
  12098. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  12099. _In_ UINT visibleMask,
  12100. _In_ UINT numResourceDescs,
  12101. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  12102. #endif
  12103. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  12104. #if !defined(_WIN32)
  12105. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  12106. ID3D12Device6 * This,
  12107. _In_ UINT nodeMask,
  12108. D3D12_HEAP_TYPE heapType);
  12109. #else
  12110. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  12111. ID3D12Device6 * This,
  12112. D3D12_HEAP_PROPERTIES * RetVal,
  12113. _In_ UINT nodeMask,
  12114. D3D12_HEAP_TYPE heapType);
  12115. #endif
  12116. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  12117. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  12118. ID3D12Device6 * This,
  12119. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  12120. D3D12_HEAP_FLAGS HeapFlags,
  12121. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12122. D3D12_RESOURCE_STATES InitialResourceState,
  12123. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12124. REFIID riidResource,
  12125. _COM_Outptr_opt_ void **ppvResource);
  12126. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  12127. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  12128. ID3D12Device6 * This,
  12129. _In_ const D3D12_HEAP_DESC *pDesc,
  12130. REFIID riid,
  12131. _COM_Outptr_opt_ void **ppvHeap);
  12132. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  12133. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  12134. ID3D12Device6 * This,
  12135. _In_ ID3D12Heap *pHeap,
  12136. UINT64 HeapOffset,
  12137. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12138. D3D12_RESOURCE_STATES InitialState,
  12139. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12140. REFIID riid,
  12141. _COM_Outptr_opt_ void **ppvResource);
  12142. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  12143. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  12144. ID3D12Device6 * This,
  12145. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12146. D3D12_RESOURCE_STATES InitialState,
  12147. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12148. REFIID riid,
  12149. _COM_Outptr_opt_ void **ppvResource);
  12150. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  12151. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  12152. ID3D12Device6 * This,
  12153. _In_ ID3D12DeviceChild *pObject,
  12154. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  12155. DWORD Access,
  12156. _In_opt_ LPCWSTR Name,
  12157. _Out_ HANDLE *pHandle);
  12158. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  12159. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  12160. ID3D12Device6 * This,
  12161. _In_ HANDLE NTHandle,
  12162. REFIID riid,
  12163. _COM_Outptr_opt_ void **ppvObj);
  12164. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  12165. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  12166. ID3D12Device6 * This,
  12167. _In_ LPCWSTR Name,
  12168. DWORD Access,
  12169. /* [annotation][out] */
  12170. _Out_ HANDLE *pNTHandle);
  12171. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  12172. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  12173. ID3D12Device6 * This,
  12174. UINT NumObjects,
  12175. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  12176. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  12177. HRESULT ( STDMETHODCALLTYPE *Evict )(
  12178. ID3D12Device6 * This,
  12179. UINT NumObjects,
  12180. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  12181. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  12182. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  12183. ID3D12Device6 * This,
  12184. UINT64 InitialValue,
  12185. D3D12_FENCE_FLAGS Flags,
  12186. REFIID riid,
  12187. _COM_Outptr_ void **ppFence);
  12188. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  12189. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  12190. ID3D12Device6 * This);
  12191. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  12192. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  12193. ID3D12Device6 * This,
  12194. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  12195. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  12196. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  12197. UINT64 BaseOffset,
  12198. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  12199. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  12200. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  12201. _Out_opt_ UINT64 *pTotalBytes);
  12202. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  12203. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  12204. ID3D12Device6 * This,
  12205. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  12206. REFIID riid,
  12207. _COM_Outptr_opt_ void **ppvHeap);
  12208. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  12209. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  12210. ID3D12Device6 * This,
  12211. BOOL Enable);
  12212. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  12213. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  12214. ID3D12Device6 * This,
  12215. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  12216. _In_opt_ ID3D12RootSignature *pRootSignature,
  12217. REFIID riid,
  12218. _COM_Outptr_opt_ void **ppvCommandSignature);
  12219. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  12220. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  12221. ID3D12Device6 * This,
  12222. _In_ ID3D12Resource *pTiledResource,
  12223. _Out_opt_ UINT *pNumTilesForEntireResource,
  12224. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  12225. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  12226. _Inout_opt_ UINT *pNumSubresourceTilings,
  12227. _In_ UINT FirstSubresourceTilingToGet,
  12228. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  12229. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  12230. #if !defined(_WIN32)
  12231. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  12232. ID3D12Device6 * This);
  12233. #else
  12234. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  12235. ID3D12Device6 * This,
  12236. LUID * RetVal);
  12237. #endif
  12238. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  12239. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  12240. ID3D12Device6 * This,
  12241. _In_reads_(BlobLength) const void *pLibraryBlob,
  12242. SIZE_T BlobLength,
  12243. REFIID riid,
  12244. _COM_Outptr_ void **ppPipelineLibrary);
  12245. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  12246. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  12247. ID3D12Device6 * This,
  12248. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  12249. _In_reads_(NumFences) const UINT64 *pFenceValues,
  12250. UINT NumFences,
  12251. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  12252. HANDLE hEvent);
  12253. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  12254. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  12255. ID3D12Device6 * This,
  12256. UINT NumObjects,
  12257. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  12258. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  12259. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  12260. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  12261. ID3D12Device6 * This,
  12262. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  12263. REFIID riid,
  12264. _COM_Outptr_ void **ppPipelineState);
  12265. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  12266. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  12267. ID3D12Device6 * This,
  12268. _In_ const void *pAddress,
  12269. REFIID riid,
  12270. _COM_Outptr_ void **ppvHeap);
  12271. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  12272. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  12273. ID3D12Device6 * This,
  12274. _In_ HANDLE hFileMapping,
  12275. REFIID riid,
  12276. _COM_Outptr_ void **ppvHeap);
  12277. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  12278. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  12279. ID3D12Device6 * This,
  12280. D3D12_RESIDENCY_FLAGS Flags,
  12281. UINT NumObjects,
  12282. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  12283. _In_ ID3D12Fence *pFenceToSignal,
  12284. UINT64 FenceValueToSignal);
  12285. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  12286. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  12287. ID3D12Device6 * This,
  12288. _In_ UINT nodeMask,
  12289. _In_ D3D12_COMMAND_LIST_TYPE type,
  12290. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  12291. REFIID riid,
  12292. _COM_Outptr_ void **ppCommandList);
  12293. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  12294. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  12295. ID3D12Device6 * This,
  12296. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  12297. _In_ REFIID riid,
  12298. _COM_Outptr_ void **ppSession);
  12299. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  12300. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  12301. ID3D12Device6 * This,
  12302. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  12303. D3D12_HEAP_FLAGS HeapFlags,
  12304. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12305. D3D12_RESOURCE_STATES InitialResourceState,
  12306. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12307. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  12308. REFIID riidResource,
  12309. _COM_Outptr_opt_ void **ppvResource);
  12310. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  12311. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  12312. ID3D12Device6 * This,
  12313. _In_ const D3D12_HEAP_DESC *pDesc,
  12314. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  12315. REFIID riid,
  12316. _COM_Outptr_opt_ void **ppvHeap);
  12317. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  12318. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  12319. ID3D12Device6 * This,
  12320. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12321. D3D12_RESOURCE_STATES InitialState,
  12322. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12323. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  12324. REFIID riid,
  12325. _COM_Outptr_opt_ void **ppvResource);
  12326. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  12327. #if !defined(_WIN32)
  12328. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  12329. ID3D12Device6 * This,
  12330. UINT visibleMask,
  12331. UINT numResourceDescs,
  12332. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  12333. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  12334. #else
  12335. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  12336. ID3D12Device6 * This,
  12337. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  12338. UINT visibleMask,
  12339. UINT numResourceDescs,
  12340. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  12341. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  12342. #endif
  12343. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  12344. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  12345. ID3D12Device6 * This,
  12346. _In_ ID3D12LifetimeOwner *pOwner,
  12347. REFIID riid,
  12348. _COM_Outptr_ void **ppvTracker);
  12349. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  12350. void ( STDMETHODCALLTYPE *RemoveDevice )(
  12351. ID3D12Device6 * This);
  12352. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  12353. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  12354. ID3D12Device6 * This,
  12355. _Inout_ UINT *pNumMetaCommands,
  12356. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  12357. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  12358. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  12359. ID3D12Device6 * This,
  12360. _In_ REFGUID CommandId,
  12361. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  12362. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  12363. _Inout_ UINT *pParameterCount,
  12364. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  12365. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  12366. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  12367. ID3D12Device6 * This,
  12368. _In_ REFGUID CommandId,
  12369. _In_ UINT NodeMask,
  12370. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  12371. _In_ SIZE_T CreationParametersDataSizeInBytes,
  12372. REFIID riid,
  12373. _COM_Outptr_ void **ppMetaCommand);
  12374. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  12375. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  12376. ID3D12Device6 * This,
  12377. const D3D12_STATE_OBJECT_DESC *pDesc,
  12378. REFIID riid,
  12379. _COM_Outptr_ void **ppStateObject);
  12380. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  12381. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  12382. ID3D12Device6 * This,
  12383. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  12384. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  12385. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  12386. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  12387. ID3D12Device6 * This,
  12388. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  12389. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  12390. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  12391. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  12392. ID3D12Device6 * This,
  12393. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  12394. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  12395. _In_opt_ HANDLE hEventToSignalUponCompletion,
  12396. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  12397. END_INTERFACE
  12398. } ID3D12Device6Vtbl;
  12399. interface ID3D12Device6
  12400. {
  12401. CONST_VTBL struct ID3D12Device6Vtbl *lpVtbl;
  12402. };
  12403. #ifdef COBJMACROS
  12404. #define ID3D12Device6_QueryInterface(This,riid,ppvObject) \
  12405. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12406. #define ID3D12Device6_AddRef(This) \
  12407. ( (This)->lpVtbl -> AddRef(This) )
  12408. #define ID3D12Device6_Release(This) \
  12409. ( (This)->lpVtbl -> Release(This) )
  12410. #define ID3D12Device6_GetPrivateData(This,guid,pDataSize,pData) \
  12411. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  12412. #define ID3D12Device6_SetPrivateData(This,guid,DataSize,pData) \
  12413. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  12414. #define ID3D12Device6_SetPrivateDataInterface(This,guid,pData) \
  12415. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  12416. #define ID3D12Device6_SetName(This,Name) \
  12417. ( (This)->lpVtbl -> SetName(This,Name) )
  12418. #define ID3D12Device6_GetNodeCount(This) \
  12419. ( (This)->lpVtbl -> GetNodeCount(This) )
  12420. #define ID3D12Device6_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  12421. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  12422. #define ID3D12Device6_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  12423. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  12424. #define ID3D12Device6_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  12425. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  12426. #define ID3D12Device6_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  12427. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  12428. #define ID3D12Device6_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  12429. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  12430. #define ID3D12Device6_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  12431. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  12432. #define ID3D12Device6_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  12433. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  12434. #define ID3D12Device6_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  12435. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  12436. #define ID3D12Device6_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  12437. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  12438. #define ID3D12Device6_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  12439. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  12440. #define ID3D12Device6_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  12441. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  12442. #define ID3D12Device6_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  12443. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  12444. #define ID3D12Device6_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  12445. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  12446. #define ID3D12Device6_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  12447. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  12448. #define ID3D12Device6_CreateSampler(This,pDesc,DestDescriptor) \
  12449. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  12450. #define ID3D12Device6_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  12451. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  12452. #define ID3D12Device6_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  12453. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  12454. #if !defined(_WIN32)
  12455. #define ID3D12Device6_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  12456. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  12457. #else
  12458. #define ID3D12Device6_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  12459. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  12460. #endif
  12461. #if !defined(_WIN32)
  12462. #define ID3D12Device6_GetCustomHeapProperties(This,nodeMask,heapType) \
  12463. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  12464. #else
  12465. #define ID3D12Device6_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  12466. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  12467. #endif
  12468. #define ID3D12Device6_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  12469. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  12470. #define ID3D12Device6_CreateHeap(This,pDesc,riid,ppvHeap) \
  12471. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  12472. #define ID3D12Device6_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  12473. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  12474. #define ID3D12Device6_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  12475. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  12476. #define ID3D12Device6_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  12477. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  12478. #define ID3D12Device6_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  12479. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  12480. #define ID3D12Device6_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  12481. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  12482. #define ID3D12Device6_MakeResident(This,NumObjects,ppObjects) \
  12483. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  12484. #define ID3D12Device6_Evict(This,NumObjects,ppObjects) \
  12485. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  12486. #define ID3D12Device6_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  12487. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  12488. #define ID3D12Device6_GetDeviceRemovedReason(This) \
  12489. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  12490. #define ID3D12Device6_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  12491. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  12492. #define ID3D12Device6_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  12493. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  12494. #define ID3D12Device6_SetStablePowerState(This,Enable) \
  12495. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  12496. #define ID3D12Device6_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  12497. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  12498. #define ID3D12Device6_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  12499. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  12500. #if !defined(_WIN32)
  12501. #define ID3D12Device6_GetAdapterLuid(This) \
  12502. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  12503. #else
  12504. #define ID3D12Device6_GetAdapterLuid(This,RetVal) \
  12505. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  12506. #endif
  12507. #define ID3D12Device6_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  12508. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  12509. #define ID3D12Device6_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  12510. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  12511. #define ID3D12Device6_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  12512. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  12513. #define ID3D12Device6_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  12514. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  12515. #define ID3D12Device6_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  12516. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  12517. #define ID3D12Device6_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  12518. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  12519. #define ID3D12Device6_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  12520. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  12521. #define ID3D12Device6_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  12522. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  12523. #define ID3D12Device6_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  12524. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  12525. #define ID3D12Device6_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  12526. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  12527. #define ID3D12Device6_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  12528. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  12529. #define ID3D12Device6_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  12530. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  12531. #if !defined(_WIN32)
  12532. #define ID3D12Device6_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  12533. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  12534. #else
  12535. #define ID3D12Device6_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  12536. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  12537. #endif
  12538. #define ID3D12Device6_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  12539. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  12540. #define ID3D12Device6_RemoveDevice(This) \
  12541. ( (This)->lpVtbl -> RemoveDevice(This) )
  12542. #define ID3D12Device6_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  12543. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  12544. #define ID3D12Device6_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  12545. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  12546. #define ID3D12Device6_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  12547. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  12548. #define ID3D12Device6_CreateStateObject(This,pDesc,riid,ppStateObject) \
  12549. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  12550. #define ID3D12Device6_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  12551. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  12552. #define ID3D12Device6_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  12553. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  12554. #define ID3D12Device6_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  12555. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  12556. #endif /* COBJMACROS */
  12557. #endif /* C style interface */
  12558. #endif /* __ID3D12Device6_INTERFACE_DEFINED__ */
  12559. /* interface __MIDL_itf_d3d12_0000_0042 */
  12560. /* [local] */
  12561. DEFINE_GUID(D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED, 0x62B0084E, 0xC70E, 0x4DAA, 0xA1, 0x09, 0x30, 0xFF, 0x8D, 0x5A, 0x04, 0x82);
  12562. typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT
  12563. {
  12564. UINT NodeIndex;
  12565. UINT Count;
  12566. } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT;
  12567. typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES
  12568. {
  12569. UINT NodeIndex;
  12570. UINT Count;
  12571. GUID *pTypes;
  12572. } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES;
  12573. typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC1
  12574. {
  12575. UINT NodeMask;
  12576. D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags;
  12577. GUID ProtectionType;
  12578. } D3D12_PROTECTED_RESOURCE_SESSION_DESC1;
  12579. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0042_v0_0_c_ifspec;
  12580. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0042_v0_0_s_ifspec;
  12581. #ifndef __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__
  12582. #define __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__
  12583. /* interface ID3D12ProtectedResourceSession1 */
  12584. /* [unique][local][object][uuid] */
  12585. EXTERN_C const IID IID_ID3D12ProtectedResourceSession1;
  12586. #if defined(__cplusplus) && !defined(CINTERFACE)
  12587. MIDL_INTERFACE("D6F12DD6-76FB-406E-8961-4296EEFC0409")
  12588. ID3D12ProtectedResourceSession1 : public ID3D12ProtectedResourceSession
  12589. {
  12590. public:
  12591. #if defined(_MSC_VER) || !defined(_WIN32)
  12592. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC1 STDMETHODCALLTYPE GetDesc1( void) = 0;
  12593. #else
  12594. virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *STDMETHODCALLTYPE GetDesc1(
  12595. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 * RetVal) = 0;
  12596. #endif
  12597. };
  12598. #else /* C style interface */
  12599. typedef struct ID3D12ProtectedResourceSession1Vtbl
  12600. {
  12601. BEGIN_INTERFACE
  12602. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12603. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12604. ID3D12ProtectedResourceSession1 * This,
  12605. REFIID riid,
  12606. _COM_Outptr_ void **ppvObject);
  12607. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12608. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12609. ID3D12ProtectedResourceSession1 * This);
  12610. DECLSPEC_XFGVIRT(IUnknown, Release)
  12611. ULONG ( STDMETHODCALLTYPE *Release )(
  12612. ID3D12ProtectedResourceSession1 * This);
  12613. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  12614. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  12615. ID3D12ProtectedResourceSession1 * This,
  12616. _In_ REFGUID guid,
  12617. _Inout_ UINT *pDataSize,
  12618. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  12619. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  12620. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  12621. ID3D12ProtectedResourceSession1 * This,
  12622. _In_ REFGUID guid,
  12623. _In_ UINT DataSize,
  12624. _In_reads_bytes_opt_( DataSize ) const void *pData);
  12625. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  12626. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  12627. ID3D12ProtectedResourceSession1 * This,
  12628. _In_ REFGUID guid,
  12629. _In_opt_ const IUnknown *pData);
  12630. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  12631. HRESULT ( STDMETHODCALLTYPE *SetName )(
  12632. ID3D12ProtectedResourceSession1 * This,
  12633. _In_z_ LPCWSTR Name);
  12634. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  12635. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  12636. ID3D12ProtectedResourceSession1 * This,
  12637. REFIID riid,
  12638. _COM_Outptr_opt_ void **ppvDevice);
  12639. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence)
  12640. HRESULT ( STDMETHODCALLTYPE *GetStatusFence )(
  12641. ID3D12ProtectedResourceSession1 * This,
  12642. REFIID riid,
  12643. _COM_Outptr_opt_ void **ppFence);
  12644. DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus)
  12645. D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )(
  12646. ID3D12ProtectedResourceSession1 * This);
  12647. DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession, GetDesc)
  12648. #if !defined(_WIN32)
  12649. D3D12_PROTECTED_RESOURCE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  12650. ID3D12ProtectedResourceSession1 * This);
  12651. #else
  12652. D3D12_PROTECTED_RESOURCE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  12653. ID3D12ProtectedResourceSession1 * This,
  12654. D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal);
  12655. #endif
  12656. DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession1, GetDesc1)
  12657. #if !defined(_WIN32)
  12658. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 ( STDMETHODCALLTYPE *GetDesc1 )(
  12659. ID3D12ProtectedResourceSession1 * This);
  12660. #else
  12661. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *( STDMETHODCALLTYPE *GetDesc1 )(
  12662. ID3D12ProtectedResourceSession1 * This,
  12663. D3D12_PROTECTED_RESOURCE_SESSION_DESC1 * RetVal);
  12664. #endif
  12665. END_INTERFACE
  12666. } ID3D12ProtectedResourceSession1Vtbl;
  12667. interface ID3D12ProtectedResourceSession1
  12668. {
  12669. CONST_VTBL struct ID3D12ProtectedResourceSession1Vtbl *lpVtbl;
  12670. };
  12671. #ifdef COBJMACROS
  12672. #define ID3D12ProtectedResourceSession1_QueryInterface(This,riid,ppvObject) \
  12673. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  12674. #define ID3D12ProtectedResourceSession1_AddRef(This) \
  12675. ( (This)->lpVtbl -> AddRef(This) )
  12676. #define ID3D12ProtectedResourceSession1_Release(This) \
  12677. ( (This)->lpVtbl -> Release(This) )
  12678. #define ID3D12ProtectedResourceSession1_GetPrivateData(This,guid,pDataSize,pData) \
  12679. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  12680. #define ID3D12ProtectedResourceSession1_SetPrivateData(This,guid,DataSize,pData) \
  12681. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  12682. #define ID3D12ProtectedResourceSession1_SetPrivateDataInterface(This,guid,pData) \
  12683. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  12684. #define ID3D12ProtectedResourceSession1_SetName(This,Name) \
  12685. ( (This)->lpVtbl -> SetName(This,Name) )
  12686. #define ID3D12ProtectedResourceSession1_GetDevice(This,riid,ppvDevice) \
  12687. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  12688. #define ID3D12ProtectedResourceSession1_GetStatusFence(This,riid,ppFence) \
  12689. ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) )
  12690. #define ID3D12ProtectedResourceSession1_GetSessionStatus(This) \
  12691. ( (This)->lpVtbl -> GetSessionStatus(This) )
  12692. #if !defined(_WIN32)
  12693. #define ID3D12ProtectedResourceSession1_GetDesc(This) \
  12694. ( (This)->lpVtbl -> GetDesc(This) )
  12695. #else
  12696. #define ID3D12ProtectedResourceSession1_GetDesc(This,RetVal) \
  12697. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  12698. #endif
  12699. #if !defined(_WIN32)
  12700. #define ID3D12ProtectedResourceSession1_GetDesc1(This) \
  12701. ( (This)->lpVtbl -> GetDesc1(This) )
  12702. #else
  12703. #define ID3D12ProtectedResourceSession1_GetDesc1(This,RetVal) \
  12704. ( (This)->lpVtbl -> GetDesc1(This,RetVal) )
  12705. #endif
  12706. #endif /* COBJMACROS */
  12707. #endif /* C style interface */
  12708. #endif /* __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__ */
  12709. #ifndef __ID3D12Device7_INTERFACE_DEFINED__
  12710. #define __ID3D12Device7_INTERFACE_DEFINED__
  12711. /* interface ID3D12Device7 */
  12712. /* [unique][local][object][uuid] */
  12713. EXTERN_C const IID IID_ID3D12Device7;
  12714. #if defined(__cplusplus) && !defined(CINTERFACE)
  12715. MIDL_INTERFACE("5c014b53-68a1-4b9b-8bd1-dd6046b9358b")
  12716. ID3D12Device7 : public ID3D12Device6
  12717. {
  12718. public:
  12719. virtual HRESULT STDMETHODCALLTYPE AddToStateObject(
  12720. const D3D12_STATE_OBJECT_DESC *pAddition,
  12721. ID3D12StateObject *pStateObjectToGrowFrom,
  12722. REFIID riid,
  12723. _COM_Outptr_ void **ppNewStateObject) = 0;
  12724. virtual HRESULT STDMETHODCALLTYPE CreateProtectedResourceSession1(
  12725. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  12726. _In_ REFIID riid,
  12727. _COM_Outptr_ void **ppSession) = 0;
  12728. };
  12729. #else /* C style interface */
  12730. typedef struct ID3D12Device7Vtbl
  12731. {
  12732. BEGIN_INTERFACE
  12733. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  12734. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12735. ID3D12Device7 * This,
  12736. REFIID riid,
  12737. _COM_Outptr_ void **ppvObject);
  12738. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  12739. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12740. ID3D12Device7 * This);
  12741. DECLSPEC_XFGVIRT(IUnknown, Release)
  12742. ULONG ( STDMETHODCALLTYPE *Release )(
  12743. ID3D12Device7 * This);
  12744. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  12745. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  12746. ID3D12Device7 * This,
  12747. _In_ REFGUID guid,
  12748. _Inout_ UINT *pDataSize,
  12749. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  12750. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  12751. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  12752. ID3D12Device7 * This,
  12753. _In_ REFGUID guid,
  12754. _In_ UINT DataSize,
  12755. _In_reads_bytes_opt_( DataSize ) const void *pData);
  12756. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  12757. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  12758. ID3D12Device7 * This,
  12759. _In_ REFGUID guid,
  12760. _In_opt_ const IUnknown *pData);
  12761. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  12762. HRESULT ( STDMETHODCALLTYPE *SetName )(
  12763. ID3D12Device7 * This,
  12764. _In_z_ LPCWSTR Name);
  12765. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  12766. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  12767. ID3D12Device7 * This);
  12768. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  12769. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  12770. ID3D12Device7 * This,
  12771. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  12772. REFIID riid,
  12773. _COM_Outptr_ void **ppCommandQueue);
  12774. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  12775. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  12776. ID3D12Device7 * This,
  12777. _In_ D3D12_COMMAND_LIST_TYPE type,
  12778. REFIID riid,
  12779. _COM_Outptr_ void **ppCommandAllocator);
  12780. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  12781. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  12782. ID3D12Device7 * This,
  12783. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  12784. REFIID riid,
  12785. _COM_Outptr_ void **ppPipelineState);
  12786. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  12787. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  12788. ID3D12Device7 * This,
  12789. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  12790. REFIID riid,
  12791. _COM_Outptr_ void **ppPipelineState);
  12792. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  12793. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  12794. ID3D12Device7 * This,
  12795. _In_ UINT nodeMask,
  12796. _In_ D3D12_COMMAND_LIST_TYPE type,
  12797. _In_ ID3D12CommandAllocator *pCommandAllocator,
  12798. _In_opt_ ID3D12PipelineState *pInitialState,
  12799. REFIID riid,
  12800. _COM_Outptr_ void **ppCommandList);
  12801. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  12802. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  12803. ID3D12Device7 * This,
  12804. D3D12_FEATURE Feature,
  12805. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  12806. UINT FeatureSupportDataSize);
  12807. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  12808. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  12809. ID3D12Device7 * This,
  12810. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  12811. REFIID riid,
  12812. _COM_Outptr_ void **ppvHeap);
  12813. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  12814. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  12815. ID3D12Device7 * This,
  12816. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  12817. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  12818. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  12819. ID3D12Device7 * This,
  12820. _In_ UINT nodeMask,
  12821. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  12822. _In_ SIZE_T blobLengthInBytes,
  12823. REFIID riid,
  12824. _COM_Outptr_ void **ppvRootSignature);
  12825. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  12826. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  12827. ID3D12Device7 * This,
  12828. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  12829. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12830. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  12831. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  12832. ID3D12Device7 * This,
  12833. _In_opt_ ID3D12Resource *pResource,
  12834. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  12835. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12836. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  12837. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  12838. ID3D12Device7 * This,
  12839. _In_opt_ ID3D12Resource *pResource,
  12840. _In_opt_ ID3D12Resource *pCounterResource,
  12841. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  12842. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12843. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  12844. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  12845. ID3D12Device7 * This,
  12846. _In_opt_ ID3D12Resource *pResource,
  12847. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  12848. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12849. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  12850. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  12851. ID3D12Device7 * This,
  12852. _In_opt_ ID3D12Resource *pResource,
  12853. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  12854. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12855. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  12856. void ( STDMETHODCALLTYPE *CreateSampler )(
  12857. ID3D12Device7 * This,
  12858. _In_ const D3D12_SAMPLER_DESC *pDesc,
  12859. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  12860. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  12861. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  12862. ID3D12Device7 * This,
  12863. _In_ UINT NumDestDescriptorRanges,
  12864. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  12865. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  12866. _In_ UINT NumSrcDescriptorRanges,
  12867. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  12868. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  12869. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  12870. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  12871. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  12872. ID3D12Device7 * This,
  12873. _In_ UINT NumDescriptors,
  12874. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  12875. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  12876. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  12877. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  12878. #if !defined(_WIN32)
  12879. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  12880. ID3D12Device7 * This,
  12881. _In_ UINT visibleMask,
  12882. _In_ UINT numResourceDescs,
  12883. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  12884. #else
  12885. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  12886. ID3D12Device7 * This,
  12887. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  12888. _In_ UINT visibleMask,
  12889. _In_ UINT numResourceDescs,
  12890. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  12891. #endif
  12892. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  12893. #if !defined(_WIN32)
  12894. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  12895. ID3D12Device7 * This,
  12896. _In_ UINT nodeMask,
  12897. D3D12_HEAP_TYPE heapType);
  12898. #else
  12899. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  12900. ID3D12Device7 * This,
  12901. D3D12_HEAP_PROPERTIES * RetVal,
  12902. _In_ UINT nodeMask,
  12903. D3D12_HEAP_TYPE heapType);
  12904. #endif
  12905. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  12906. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  12907. ID3D12Device7 * This,
  12908. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  12909. D3D12_HEAP_FLAGS HeapFlags,
  12910. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12911. D3D12_RESOURCE_STATES InitialResourceState,
  12912. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12913. REFIID riidResource,
  12914. _COM_Outptr_opt_ void **ppvResource);
  12915. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  12916. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  12917. ID3D12Device7 * This,
  12918. _In_ const D3D12_HEAP_DESC *pDesc,
  12919. REFIID riid,
  12920. _COM_Outptr_opt_ void **ppvHeap);
  12921. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  12922. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  12923. ID3D12Device7 * This,
  12924. _In_ ID3D12Heap *pHeap,
  12925. UINT64 HeapOffset,
  12926. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12927. D3D12_RESOURCE_STATES InitialState,
  12928. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12929. REFIID riid,
  12930. _COM_Outptr_opt_ void **ppvResource);
  12931. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  12932. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  12933. ID3D12Device7 * This,
  12934. _In_ const D3D12_RESOURCE_DESC *pDesc,
  12935. D3D12_RESOURCE_STATES InitialState,
  12936. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  12937. REFIID riid,
  12938. _COM_Outptr_opt_ void **ppvResource);
  12939. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  12940. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  12941. ID3D12Device7 * This,
  12942. _In_ ID3D12DeviceChild *pObject,
  12943. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  12944. DWORD Access,
  12945. _In_opt_ LPCWSTR Name,
  12946. _Out_ HANDLE *pHandle);
  12947. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  12948. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  12949. ID3D12Device7 * This,
  12950. _In_ HANDLE NTHandle,
  12951. REFIID riid,
  12952. _COM_Outptr_opt_ void **ppvObj);
  12953. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  12954. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  12955. ID3D12Device7 * This,
  12956. _In_ LPCWSTR Name,
  12957. DWORD Access,
  12958. /* [annotation][out] */
  12959. _Out_ HANDLE *pNTHandle);
  12960. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  12961. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  12962. ID3D12Device7 * This,
  12963. UINT NumObjects,
  12964. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  12965. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  12966. HRESULT ( STDMETHODCALLTYPE *Evict )(
  12967. ID3D12Device7 * This,
  12968. UINT NumObjects,
  12969. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  12970. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  12971. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  12972. ID3D12Device7 * This,
  12973. UINT64 InitialValue,
  12974. D3D12_FENCE_FLAGS Flags,
  12975. REFIID riid,
  12976. _COM_Outptr_ void **ppFence);
  12977. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  12978. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  12979. ID3D12Device7 * This);
  12980. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  12981. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  12982. ID3D12Device7 * This,
  12983. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  12984. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  12985. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  12986. UINT64 BaseOffset,
  12987. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  12988. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  12989. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  12990. _Out_opt_ UINT64 *pTotalBytes);
  12991. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  12992. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  12993. ID3D12Device7 * This,
  12994. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  12995. REFIID riid,
  12996. _COM_Outptr_opt_ void **ppvHeap);
  12997. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  12998. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  12999. ID3D12Device7 * This,
  13000. BOOL Enable);
  13001. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  13002. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  13003. ID3D12Device7 * This,
  13004. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  13005. _In_opt_ ID3D12RootSignature *pRootSignature,
  13006. REFIID riid,
  13007. _COM_Outptr_opt_ void **ppvCommandSignature);
  13008. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  13009. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  13010. ID3D12Device7 * This,
  13011. _In_ ID3D12Resource *pTiledResource,
  13012. _Out_opt_ UINT *pNumTilesForEntireResource,
  13013. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  13014. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  13015. _Inout_opt_ UINT *pNumSubresourceTilings,
  13016. _In_ UINT FirstSubresourceTilingToGet,
  13017. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  13018. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  13019. #if !defined(_WIN32)
  13020. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  13021. ID3D12Device7 * This);
  13022. #else
  13023. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  13024. ID3D12Device7 * This,
  13025. LUID * RetVal);
  13026. #endif
  13027. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  13028. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  13029. ID3D12Device7 * This,
  13030. _In_reads_(BlobLength) const void *pLibraryBlob,
  13031. SIZE_T BlobLength,
  13032. REFIID riid,
  13033. _COM_Outptr_ void **ppPipelineLibrary);
  13034. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  13035. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  13036. ID3D12Device7 * This,
  13037. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  13038. _In_reads_(NumFences) const UINT64 *pFenceValues,
  13039. UINT NumFences,
  13040. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  13041. HANDLE hEvent);
  13042. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  13043. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  13044. ID3D12Device7 * This,
  13045. UINT NumObjects,
  13046. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  13047. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  13048. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  13049. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  13050. ID3D12Device7 * This,
  13051. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  13052. REFIID riid,
  13053. _COM_Outptr_ void **ppPipelineState);
  13054. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  13055. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  13056. ID3D12Device7 * This,
  13057. _In_ const void *pAddress,
  13058. REFIID riid,
  13059. _COM_Outptr_ void **ppvHeap);
  13060. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  13061. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  13062. ID3D12Device7 * This,
  13063. _In_ HANDLE hFileMapping,
  13064. REFIID riid,
  13065. _COM_Outptr_ void **ppvHeap);
  13066. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  13067. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  13068. ID3D12Device7 * This,
  13069. D3D12_RESIDENCY_FLAGS Flags,
  13070. UINT NumObjects,
  13071. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  13072. _In_ ID3D12Fence *pFenceToSignal,
  13073. UINT64 FenceValueToSignal);
  13074. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  13075. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  13076. ID3D12Device7 * This,
  13077. _In_ UINT nodeMask,
  13078. _In_ D3D12_COMMAND_LIST_TYPE type,
  13079. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  13080. REFIID riid,
  13081. _COM_Outptr_ void **ppCommandList);
  13082. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  13083. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  13084. ID3D12Device7 * This,
  13085. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  13086. _In_ REFIID riid,
  13087. _COM_Outptr_ void **ppSession);
  13088. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  13089. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  13090. ID3D12Device7 * This,
  13091. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  13092. D3D12_HEAP_FLAGS HeapFlags,
  13093. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13094. D3D12_RESOURCE_STATES InitialResourceState,
  13095. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13096. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13097. REFIID riidResource,
  13098. _COM_Outptr_opt_ void **ppvResource);
  13099. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  13100. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  13101. ID3D12Device7 * This,
  13102. _In_ const D3D12_HEAP_DESC *pDesc,
  13103. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13104. REFIID riid,
  13105. _COM_Outptr_opt_ void **ppvHeap);
  13106. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  13107. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  13108. ID3D12Device7 * This,
  13109. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13110. D3D12_RESOURCE_STATES InitialState,
  13111. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13112. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13113. REFIID riid,
  13114. _COM_Outptr_opt_ void **ppvResource);
  13115. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  13116. #if !defined(_WIN32)
  13117. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  13118. ID3D12Device7 * This,
  13119. UINT visibleMask,
  13120. UINT numResourceDescs,
  13121. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  13122. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13123. #else
  13124. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  13125. ID3D12Device7 * This,
  13126. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13127. UINT visibleMask,
  13128. UINT numResourceDescs,
  13129. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  13130. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13131. #endif
  13132. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  13133. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  13134. ID3D12Device7 * This,
  13135. _In_ ID3D12LifetimeOwner *pOwner,
  13136. REFIID riid,
  13137. _COM_Outptr_ void **ppvTracker);
  13138. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  13139. void ( STDMETHODCALLTYPE *RemoveDevice )(
  13140. ID3D12Device7 * This);
  13141. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  13142. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  13143. ID3D12Device7 * This,
  13144. _Inout_ UINT *pNumMetaCommands,
  13145. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  13146. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  13147. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  13148. ID3D12Device7 * This,
  13149. _In_ REFGUID CommandId,
  13150. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  13151. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  13152. _Inout_ UINT *pParameterCount,
  13153. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  13154. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  13155. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  13156. ID3D12Device7 * This,
  13157. _In_ REFGUID CommandId,
  13158. _In_ UINT NodeMask,
  13159. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  13160. _In_ SIZE_T CreationParametersDataSizeInBytes,
  13161. REFIID riid,
  13162. _COM_Outptr_ void **ppMetaCommand);
  13163. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  13164. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  13165. ID3D12Device7 * This,
  13166. const D3D12_STATE_OBJECT_DESC *pDesc,
  13167. REFIID riid,
  13168. _COM_Outptr_ void **ppStateObject);
  13169. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  13170. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  13171. ID3D12Device7 * This,
  13172. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  13173. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  13174. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  13175. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  13176. ID3D12Device7 * This,
  13177. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  13178. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  13179. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  13180. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  13181. ID3D12Device7 * This,
  13182. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  13183. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  13184. _In_opt_ HANDLE hEventToSignalUponCompletion,
  13185. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  13186. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  13187. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  13188. ID3D12Device7 * This,
  13189. const D3D12_STATE_OBJECT_DESC *pAddition,
  13190. ID3D12StateObject *pStateObjectToGrowFrom,
  13191. REFIID riid,
  13192. _COM_Outptr_ void **ppNewStateObject);
  13193. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  13194. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  13195. ID3D12Device7 * This,
  13196. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  13197. _In_ REFIID riid,
  13198. _COM_Outptr_ void **ppSession);
  13199. END_INTERFACE
  13200. } ID3D12Device7Vtbl;
  13201. interface ID3D12Device7
  13202. {
  13203. CONST_VTBL struct ID3D12Device7Vtbl *lpVtbl;
  13204. };
  13205. #ifdef COBJMACROS
  13206. #define ID3D12Device7_QueryInterface(This,riid,ppvObject) \
  13207. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  13208. #define ID3D12Device7_AddRef(This) \
  13209. ( (This)->lpVtbl -> AddRef(This) )
  13210. #define ID3D12Device7_Release(This) \
  13211. ( (This)->lpVtbl -> Release(This) )
  13212. #define ID3D12Device7_GetPrivateData(This,guid,pDataSize,pData) \
  13213. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  13214. #define ID3D12Device7_SetPrivateData(This,guid,DataSize,pData) \
  13215. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  13216. #define ID3D12Device7_SetPrivateDataInterface(This,guid,pData) \
  13217. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  13218. #define ID3D12Device7_SetName(This,Name) \
  13219. ( (This)->lpVtbl -> SetName(This,Name) )
  13220. #define ID3D12Device7_GetNodeCount(This) \
  13221. ( (This)->lpVtbl -> GetNodeCount(This) )
  13222. #define ID3D12Device7_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  13223. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  13224. #define ID3D12Device7_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  13225. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  13226. #define ID3D12Device7_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  13227. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  13228. #define ID3D12Device7_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  13229. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  13230. #define ID3D12Device7_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  13231. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  13232. #define ID3D12Device7_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  13233. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  13234. #define ID3D12Device7_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  13235. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  13236. #define ID3D12Device7_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  13237. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  13238. #define ID3D12Device7_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  13239. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  13240. #define ID3D12Device7_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  13241. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  13242. #define ID3D12Device7_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  13243. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  13244. #define ID3D12Device7_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  13245. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  13246. #define ID3D12Device7_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  13247. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  13248. #define ID3D12Device7_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  13249. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  13250. #define ID3D12Device7_CreateSampler(This,pDesc,DestDescriptor) \
  13251. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  13252. #define ID3D12Device7_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  13253. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  13254. #define ID3D12Device7_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  13255. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  13256. #if !defined(_WIN32)
  13257. #define ID3D12Device7_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  13258. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  13259. #else
  13260. #define ID3D12Device7_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  13261. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  13262. #endif
  13263. #if !defined(_WIN32)
  13264. #define ID3D12Device7_GetCustomHeapProperties(This,nodeMask,heapType) \
  13265. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  13266. #else
  13267. #define ID3D12Device7_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  13268. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  13269. #endif
  13270. #define ID3D12Device7_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  13271. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  13272. #define ID3D12Device7_CreateHeap(This,pDesc,riid,ppvHeap) \
  13273. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  13274. #define ID3D12Device7_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  13275. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  13276. #define ID3D12Device7_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  13277. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  13278. #define ID3D12Device7_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  13279. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  13280. #define ID3D12Device7_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  13281. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  13282. #define ID3D12Device7_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  13283. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  13284. #define ID3D12Device7_MakeResident(This,NumObjects,ppObjects) \
  13285. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  13286. #define ID3D12Device7_Evict(This,NumObjects,ppObjects) \
  13287. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  13288. #define ID3D12Device7_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  13289. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  13290. #define ID3D12Device7_GetDeviceRemovedReason(This) \
  13291. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  13292. #define ID3D12Device7_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  13293. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  13294. #define ID3D12Device7_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  13295. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  13296. #define ID3D12Device7_SetStablePowerState(This,Enable) \
  13297. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  13298. #define ID3D12Device7_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  13299. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  13300. #define ID3D12Device7_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  13301. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  13302. #if !defined(_WIN32)
  13303. #define ID3D12Device7_GetAdapterLuid(This) \
  13304. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  13305. #else
  13306. #define ID3D12Device7_GetAdapterLuid(This,RetVal) \
  13307. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  13308. #endif
  13309. #define ID3D12Device7_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  13310. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  13311. #define ID3D12Device7_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  13312. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  13313. #define ID3D12Device7_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  13314. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  13315. #define ID3D12Device7_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  13316. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  13317. #define ID3D12Device7_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  13318. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  13319. #define ID3D12Device7_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  13320. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  13321. #define ID3D12Device7_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  13322. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  13323. #define ID3D12Device7_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  13324. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  13325. #define ID3D12Device7_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  13326. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  13327. #define ID3D12Device7_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  13328. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  13329. #define ID3D12Device7_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  13330. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  13331. #define ID3D12Device7_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  13332. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  13333. #if !defined(_WIN32)
  13334. #define ID3D12Device7_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  13335. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  13336. #else
  13337. #define ID3D12Device7_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  13338. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  13339. #endif
  13340. #define ID3D12Device7_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  13341. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  13342. #define ID3D12Device7_RemoveDevice(This) \
  13343. ( (This)->lpVtbl -> RemoveDevice(This) )
  13344. #define ID3D12Device7_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  13345. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  13346. #define ID3D12Device7_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  13347. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  13348. #define ID3D12Device7_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  13349. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  13350. #define ID3D12Device7_CreateStateObject(This,pDesc,riid,ppStateObject) \
  13351. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  13352. #define ID3D12Device7_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  13353. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  13354. #define ID3D12Device7_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  13355. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  13356. #define ID3D12Device7_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  13357. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  13358. #define ID3D12Device7_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  13359. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  13360. #define ID3D12Device7_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  13361. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  13362. #endif /* COBJMACROS */
  13363. #endif /* C style interface */
  13364. #endif /* __ID3D12Device7_INTERFACE_DEFINED__ */
  13365. #ifndef __ID3D12Device8_INTERFACE_DEFINED__
  13366. #define __ID3D12Device8_INTERFACE_DEFINED__
  13367. /* interface ID3D12Device8 */
  13368. /* [unique][local][object][uuid] */
  13369. EXTERN_C const IID IID_ID3D12Device8;
  13370. #if defined(__cplusplus) && !defined(CINTERFACE)
  13371. MIDL_INTERFACE("9218E6BB-F944-4F7E-A75C-B1B2C7B701F3")
  13372. ID3D12Device8 : public ID3D12Device7
  13373. {
  13374. public:
  13375. #if defined(_MSC_VER) || !defined(_WIN32)
  13376. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo2(
  13377. UINT visibleMask,
  13378. UINT numResourceDescs,
  13379. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  13380. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  13381. #else
  13382. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo2(
  13383. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13384. UINT visibleMask,
  13385. UINT numResourceDescs,
  13386. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  13387. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  13388. #endif
  13389. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource2(
  13390. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  13391. D3D12_HEAP_FLAGS HeapFlags,
  13392. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  13393. D3D12_RESOURCE_STATES InitialResourceState,
  13394. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13395. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13396. REFIID riidResource,
  13397. _COM_Outptr_opt_ void **ppvResource) = 0;
  13398. virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource1(
  13399. _In_ ID3D12Heap *pHeap,
  13400. UINT64 HeapOffset,
  13401. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  13402. D3D12_RESOURCE_STATES InitialState,
  13403. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13404. REFIID riid,
  13405. _COM_Outptr_opt_ void **ppvResource) = 0;
  13406. virtual void STDMETHODCALLTYPE CreateSamplerFeedbackUnorderedAccessView(
  13407. _In_opt_ ID3D12Resource *pTargetedResource,
  13408. _In_opt_ ID3D12Resource *pFeedbackResource,
  13409. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  13410. virtual void STDMETHODCALLTYPE GetCopyableFootprints1(
  13411. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  13412. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  13413. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  13414. UINT64 BaseOffset,
  13415. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  13416. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  13417. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  13418. _Out_opt_ UINT64 *pTotalBytes) = 0;
  13419. };
  13420. #else /* C style interface */
  13421. typedef struct ID3D12Device8Vtbl
  13422. {
  13423. BEGIN_INTERFACE
  13424. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  13425. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13426. ID3D12Device8 * This,
  13427. REFIID riid,
  13428. _COM_Outptr_ void **ppvObject);
  13429. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  13430. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13431. ID3D12Device8 * This);
  13432. DECLSPEC_XFGVIRT(IUnknown, Release)
  13433. ULONG ( STDMETHODCALLTYPE *Release )(
  13434. ID3D12Device8 * This);
  13435. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  13436. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  13437. ID3D12Device8 * This,
  13438. _In_ REFGUID guid,
  13439. _Inout_ UINT *pDataSize,
  13440. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  13441. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  13442. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  13443. ID3D12Device8 * This,
  13444. _In_ REFGUID guid,
  13445. _In_ UINT DataSize,
  13446. _In_reads_bytes_opt_( DataSize ) const void *pData);
  13447. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  13448. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  13449. ID3D12Device8 * This,
  13450. _In_ REFGUID guid,
  13451. _In_opt_ const IUnknown *pData);
  13452. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  13453. HRESULT ( STDMETHODCALLTYPE *SetName )(
  13454. ID3D12Device8 * This,
  13455. _In_z_ LPCWSTR Name);
  13456. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  13457. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  13458. ID3D12Device8 * This);
  13459. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  13460. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  13461. ID3D12Device8 * This,
  13462. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  13463. REFIID riid,
  13464. _COM_Outptr_ void **ppCommandQueue);
  13465. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  13466. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  13467. ID3D12Device8 * This,
  13468. _In_ D3D12_COMMAND_LIST_TYPE type,
  13469. REFIID riid,
  13470. _COM_Outptr_ void **ppCommandAllocator);
  13471. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  13472. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  13473. ID3D12Device8 * This,
  13474. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  13475. REFIID riid,
  13476. _COM_Outptr_ void **ppPipelineState);
  13477. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  13478. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  13479. ID3D12Device8 * This,
  13480. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  13481. REFIID riid,
  13482. _COM_Outptr_ void **ppPipelineState);
  13483. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  13484. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  13485. ID3D12Device8 * This,
  13486. _In_ UINT nodeMask,
  13487. _In_ D3D12_COMMAND_LIST_TYPE type,
  13488. _In_ ID3D12CommandAllocator *pCommandAllocator,
  13489. _In_opt_ ID3D12PipelineState *pInitialState,
  13490. REFIID riid,
  13491. _COM_Outptr_ void **ppCommandList);
  13492. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  13493. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  13494. ID3D12Device8 * This,
  13495. D3D12_FEATURE Feature,
  13496. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  13497. UINT FeatureSupportDataSize);
  13498. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  13499. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  13500. ID3D12Device8 * This,
  13501. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  13502. REFIID riid,
  13503. _COM_Outptr_ void **ppvHeap);
  13504. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  13505. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  13506. ID3D12Device8 * This,
  13507. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  13508. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  13509. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  13510. ID3D12Device8 * This,
  13511. _In_ UINT nodeMask,
  13512. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  13513. _In_ SIZE_T blobLengthInBytes,
  13514. REFIID riid,
  13515. _COM_Outptr_ void **ppvRootSignature);
  13516. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  13517. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  13518. ID3D12Device8 * This,
  13519. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  13520. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13521. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  13522. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  13523. ID3D12Device8 * This,
  13524. _In_opt_ ID3D12Resource *pResource,
  13525. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  13526. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13527. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  13528. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  13529. ID3D12Device8 * This,
  13530. _In_opt_ ID3D12Resource *pResource,
  13531. _In_opt_ ID3D12Resource *pCounterResource,
  13532. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  13533. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13534. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  13535. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  13536. ID3D12Device8 * This,
  13537. _In_opt_ ID3D12Resource *pResource,
  13538. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  13539. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13540. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  13541. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  13542. ID3D12Device8 * This,
  13543. _In_opt_ ID3D12Resource *pResource,
  13544. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  13545. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13546. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  13547. void ( STDMETHODCALLTYPE *CreateSampler )(
  13548. ID3D12Device8 * This,
  13549. _In_ const D3D12_SAMPLER_DESC *pDesc,
  13550. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13551. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  13552. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  13553. ID3D12Device8 * This,
  13554. _In_ UINT NumDestDescriptorRanges,
  13555. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  13556. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  13557. _In_ UINT NumSrcDescriptorRanges,
  13558. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  13559. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  13560. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  13561. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  13562. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  13563. ID3D12Device8 * This,
  13564. _In_ UINT NumDescriptors,
  13565. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  13566. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  13567. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  13568. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  13569. #if !defined(_WIN32)
  13570. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  13571. ID3D12Device8 * This,
  13572. _In_ UINT visibleMask,
  13573. _In_ UINT numResourceDescs,
  13574. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  13575. #else
  13576. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  13577. ID3D12Device8 * This,
  13578. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13579. _In_ UINT visibleMask,
  13580. _In_ UINT numResourceDescs,
  13581. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  13582. #endif
  13583. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  13584. #if !defined(_WIN32)
  13585. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  13586. ID3D12Device8 * This,
  13587. _In_ UINT nodeMask,
  13588. D3D12_HEAP_TYPE heapType);
  13589. #else
  13590. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  13591. ID3D12Device8 * This,
  13592. D3D12_HEAP_PROPERTIES * RetVal,
  13593. _In_ UINT nodeMask,
  13594. D3D12_HEAP_TYPE heapType);
  13595. #endif
  13596. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  13597. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  13598. ID3D12Device8 * This,
  13599. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  13600. D3D12_HEAP_FLAGS HeapFlags,
  13601. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13602. D3D12_RESOURCE_STATES InitialResourceState,
  13603. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13604. REFIID riidResource,
  13605. _COM_Outptr_opt_ void **ppvResource);
  13606. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  13607. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  13608. ID3D12Device8 * This,
  13609. _In_ const D3D12_HEAP_DESC *pDesc,
  13610. REFIID riid,
  13611. _COM_Outptr_opt_ void **ppvHeap);
  13612. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  13613. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  13614. ID3D12Device8 * This,
  13615. _In_ ID3D12Heap *pHeap,
  13616. UINT64 HeapOffset,
  13617. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13618. D3D12_RESOURCE_STATES InitialState,
  13619. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13620. REFIID riid,
  13621. _COM_Outptr_opt_ void **ppvResource);
  13622. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  13623. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  13624. ID3D12Device8 * This,
  13625. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13626. D3D12_RESOURCE_STATES InitialState,
  13627. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13628. REFIID riid,
  13629. _COM_Outptr_opt_ void **ppvResource);
  13630. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  13631. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  13632. ID3D12Device8 * This,
  13633. _In_ ID3D12DeviceChild *pObject,
  13634. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  13635. DWORD Access,
  13636. _In_opt_ LPCWSTR Name,
  13637. _Out_ HANDLE *pHandle);
  13638. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  13639. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  13640. ID3D12Device8 * This,
  13641. _In_ HANDLE NTHandle,
  13642. REFIID riid,
  13643. _COM_Outptr_opt_ void **ppvObj);
  13644. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  13645. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  13646. ID3D12Device8 * This,
  13647. _In_ LPCWSTR Name,
  13648. DWORD Access,
  13649. /* [annotation][out] */
  13650. _Out_ HANDLE *pNTHandle);
  13651. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  13652. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  13653. ID3D12Device8 * This,
  13654. UINT NumObjects,
  13655. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  13656. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  13657. HRESULT ( STDMETHODCALLTYPE *Evict )(
  13658. ID3D12Device8 * This,
  13659. UINT NumObjects,
  13660. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  13661. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  13662. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  13663. ID3D12Device8 * This,
  13664. UINT64 InitialValue,
  13665. D3D12_FENCE_FLAGS Flags,
  13666. REFIID riid,
  13667. _COM_Outptr_ void **ppFence);
  13668. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  13669. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  13670. ID3D12Device8 * This);
  13671. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  13672. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  13673. ID3D12Device8 * This,
  13674. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  13675. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  13676. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  13677. UINT64 BaseOffset,
  13678. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  13679. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  13680. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  13681. _Out_opt_ UINT64 *pTotalBytes);
  13682. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  13683. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  13684. ID3D12Device8 * This,
  13685. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  13686. REFIID riid,
  13687. _COM_Outptr_opt_ void **ppvHeap);
  13688. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  13689. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  13690. ID3D12Device8 * This,
  13691. BOOL Enable);
  13692. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  13693. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  13694. ID3D12Device8 * This,
  13695. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  13696. _In_opt_ ID3D12RootSignature *pRootSignature,
  13697. REFIID riid,
  13698. _COM_Outptr_opt_ void **ppvCommandSignature);
  13699. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  13700. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  13701. ID3D12Device8 * This,
  13702. _In_ ID3D12Resource *pTiledResource,
  13703. _Out_opt_ UINT *pNumTilesForEntireResource,
  13704. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  13705. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  13706. _Inout_opt_ UINT *pNumSubresourceTilings,
  13707. _In_ UINT FirstSubresourceTilingToGet,
  13708. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  13709. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  13710. #if !defined(_WIN32)
  13711. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  13712. ID3D12Device8 * This);
  13713. #else
  13714. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  13715. ID3D12Device8 * This,
  13716. LUID * RetVal);
  13717. #endif
  13718. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  13719. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  13720. ID3D12Device8 * This,
  13721. _In_reads_(BlobLength) const void *pLibraryBlob,
  13722. SIZE_T BlobLength,
  13723. REFIID riid,
  13724. _COM_Outptr_ void **ppPipelineLibrary);
  13725. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  13726. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  13727. ID3D12Device8 * This,
  13728. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  13729. _In_reads_(NumFences) const UINT64 *pFenceValues,
  13730. UINT NumFences,
  13731. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  13732. HANDLE hEvent);
  13733. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  13734. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  13735. ID3D12Device8 * This,
  13736. UINT NumObjects,
  13737. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  13738. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  13739. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  13740. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  13741. ID3D12Device8 * This,
  13742. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  13743. REFIID riid,
  13744. _COM_Outptr_ void **ppPipelineState);
  13745. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  13746. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  13747. ID3D12Device8 * This,
  13748. _In_ const void *pAddress,
  13749. REFIID riid,
  13750. _COM_Outptr_ void **ppvHeap);
  13751. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  13752. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  13753. ID3D12Device8 * This,
  13754. _In_ HANDLE hFileMapping,
  13755. REFIID riid,
  13756. _COM_Outptr_ void **ppvHeap);
  13757. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  13758. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  13759. ID3D12Device8 * This,
  13760. D3D12_RESIDENCY_FLAGS Flags,
  13761. UINT NumObjects,
  13762. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  13763. _In_ ID3D12Fence *pFenceToSignal,
  13764. UINT64 FenceValueToSignal);
  13765. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  13766. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  13767. ID3D12Device8 * This,
  13768. _In_ UINT nodeMask,
  13769. _In_ D3D12_COMMAND_LIST_TYPE type,
  13770. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  13771. REFIID riid,
  13772. _COM_Outptr_ void **ppCommandList);
  13773. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  13774. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  13775. ID3D12Device8 * This,
  13776. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  13777. _In_ REFIID riid,
  13778. _COM_Outptr_ void **ppSession);
  13779. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  13780. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  13781. ID3D12Device8 * This,
  13782. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  13783. D3D12_HEAP_FLAGS HeapFlags,
  13784. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13785. D3D12_RESOURCE_STATES InitialResourceState,
  13786. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13787. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13788. REFIID riidResource,
  13789. _COM_Outptr_opt_ void **ppvResource);
  13790. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  13791. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  13792. ID3D12Device8 * This,
  13793. _In_ const D3D12_HEAP_DESC *pDesc,
  13794. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13795. REFIID riid,
  13796. _COM_Outptr_opt_ void **ppvHeap);
  13797. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  13798. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  13799. ID3D12Device8 * This,
  13800. _In_ const D3D12_RESOURCE_DESC *pDesc,
  13801. D3D12_RESOURCE_STATES InitialState,
  13802. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13803. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13804. REFIID riid,
  13805. _COM_Outptr_opt_ void **ppvResource);
  13806. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  13807. #if !defined(_WIN32)
  13808. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  13809. ID3D12Device8 * This,
  13810. UINT visibleMask,
  13811. UINT numResourceDescs,
  13812. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  13813. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13814. #else
  13815. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  13816. ID3D12Device8 * This,
  13817. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13818. UINT visibleMask,
  13819. UINT numResourceDescs,
  13820. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  13821. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13822. #endif
  13823. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  13824. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  13825. ID3D12Device8 * This,
  13826. _In_ ID3D12LifetimeOwner *pOwner,
  13827. REFIID riid,
  13828. _COM_Outptr_ void **ppvTracker);
  13829. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  13830. void ( STDMETHODCALLTYPE *RemoveDevice )(
  13831. ID3D12Device8 * This);
  13832. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  13833. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  13834. ID3D12Device8 * This,
  13835. _Inout_ UINT *pNumMetaCommands,
  13836. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  13837. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  13838. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  13839. ID3D12Device8 * This,
  13840. _In_ REFGUID CommandId,
  13841. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  13842. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  13843. _Inout_ UINT *pParameterCount,
  13844. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  13845. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  13846. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  13847. ID3D12Device8 * This,
  13848. _In_ REFGUID CommandId,
  13849. _In_ UINT NodeMask,
  13850. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  13851. _In_ SIZE_T CreationParametersDataSizeInBytes,
  13852. REFIID riid,
  13853. _COM_Outptr_ void **ppMetaCommand);
  13854. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  13855. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  13856. ID3D12Device8 * This,
  13857. const D3D12_STATE_OBJECT_DESC *pDesc,
  13858. REFIID riid,
  13859. _COM_Outptr_ void **ppStateObject);
  13860. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  13861. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  13862. ID3D12Device8 * This,
  13863. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  13864. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  13865. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  13866. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  13867. ID3D12Device8 * This,
  13868. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  13869. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  13870. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  13871. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  13872. ID3D12Device8 * This,
  13873. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  13874. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  13875. _In_opt_ HANDLE hEventToSignalUponCompletion,
  13876. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  13877. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  13878. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  13879. ID3D12Device8 * This,
  13880. const D3D12_STATE_OBJECT_DESC *pAddition,
  13881. ID3D12StateObject *pStateObjectToGrowFrom,
  13882. REFIID riid,
  13883. _COM_Outptr_ void **ppNewStateObject);
  13884. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  13885. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  13886. ID3D12Device8 * This,
  13887. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  13888. _In_ REFIID riid,
  13889. _COM_Outptr_ void **ppSession);
  13890. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  13891. #if !defined(_WIN32)
  13892. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  13893. ID3D12Device8 * This,
  13894. UINT visibleMask,
  13895. UINT numResourceDescs,
  13896. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  13897. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13898. #else
  13899. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  13900. ID3D12Device8 * This,
  13901. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  13902. UINT visibleMask,
  13903. UINT numResourceDescs,
  13904. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  13905. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  13906. #endif
  13907. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  13908. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  13909. ID3D12Device8 * This,
  13910. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  13911. D3D12_HEAP_FLAGS HeapFlags,
  13912. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  13913. D3D12_RESOURCE_STATES InitialResourceState,
  13914. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13915. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  13916. REFIID riidResource,
  13917. _COM_Outptr_opt_ void **ppvResource);
  13918. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  13919. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  13920. ID3D12Device8 * This,
  13921. _In_ ID3D12Heap *pHeap,
  13922. UINT64 HeapOffset,
  13923. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  13924. D3D12_RESOURCE_STATES InitialState,
  13925. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  13926. REFIID riid,
  13927. _COM_Outptr_opt_ void **ppvResource);
  13928. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  13929. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  13930. ID3D12Device8 * This,
  13931. _In_opt_ ID3D12Resource *pTargetedResource,
  13932. _In_opt_ ID3D12Resource *pFeedbackResource,
  13933. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  13934. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  13935. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  13936. ID3D12Device8 * This,
  13937. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  13938. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  13939. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  13940. UINT64 BaseOffset,
  13941. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  13942. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  13943. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  13944. _Out_opt_ UINT64 *pTotalBytes);
  13945. END_INTERFACE
  13946. } ID3D12Device8Vtbl;
  13947. interface ID3D12Device8
  13948. {
  13949. CONST_VTBL struct ID3D12Device8Vtbl *lpVtbl;
  13950. };
  13951. #ifdef COBJMACROS
  13952. #define ID3D12Device8_QueryInterface(This,riid,ppvObject) \
  13953. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  13954. #define ID3D12Device8_AddRef(This) \
  13955. ( (This)->lpVtbl -> AddRef(This) )
  13956. #define ID3D12Device8_Release(This) \
  13957. ( (This)->lpVtbl -> Release(This) )
  13958. #define ID3D12Device8_GetPrivateData(This,guid,pDataSize,pData) \
  13959. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  13960. #define ID3D12Device8_SetPrivateData(This,guid,DataSize,pData) \
  13961. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  13962. #define ID3D12Device8_SetPrivateDataInterface(This,guid,pData) \
  13963. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  13964. #define ID3D12Device8_SetName(This,Name) \
  13965. ( (This)->lpVtbl -> SetName(This,Name) )
  13966. #define ID3D12Device8_GetNodeCount(This) \
  13967. ( (This)->lpVtbl -> GetNodeCount(This) )
  13968. #define ID3D12Device8_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  13969. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  13970. #define ID3D12Device8_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  13971. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  13972. #define ID3D12Device8_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  13973. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  13974. #define ID3D12Device8_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  13975. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  13976. #define ID3D12Device8_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  13977. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  13978. #define ID3D12Device8_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  13979. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  13980. #define ID3D12Device8_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  13981. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  13982. #define ID3D12Device8_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  13983. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  13984. #define ID3D12Device8_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  13985. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  13986. #define ID3D12Device8_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  13987. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  13988. #define ID3D12Device8_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  13989. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  13990. #define ID3D12Device8_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  13991. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  13992. #define ID3D12Device8_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  13993. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  13994. #define ID3D12Device8_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  13995. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  13996. #define ID3D12Device8_CreateSampler(This,pDesc,DestDescriptor) \
  13997. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  13998. #define ID3D12Device8_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  13999. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  14000. #define ID3D12Device8_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  14001. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  14002. #if !defined(_WIN32)
  14003. #define ID3D12Device8_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  14004. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  14005. #else
  14006. #define ID3D12Device8_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  14007. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  14008. #endif
  14009. #if !defined(_WIN32)
  14010. #define ID3D12Device8_GetCustomHeapProperties(This,nodeMask,heapType) \
  14011. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  14012. #else
  14013. #define ID3D12Device8_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  14014. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  14015. #endif
  14016. #define ID3D12Device8_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  14017. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  14018. #define ID3D12Device8_CreateHeap(This,pDesc,riid,ppvHeap) \
  14019. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  14020. #define ID3D12Device8_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  14021. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  14022. #define ID3D12Device8_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  14023. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  14024. #define ID3D12Device8_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  14025. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  14026. #define ID3D12Device8_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  14027. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  14028. #define ID3D12Device8_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  14029. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  14030. #define ID3D12Device8_MakeResident(This,NumObjects,ppObjects) \
  14031. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  14032. #define ID3D12Device8_Evict(This,NumObjects,ppObjects) \
  14033. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  14034. #define ID3D12Device8_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  14035. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  14036. #define ID3D12Device8_GetDeviceRemovedReason(This) \
  14037. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  14038. #define ID3D12Device8_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  14039. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  14040. #define ID3D12Device8_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  14041. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  14042. #define ID3D12Device8_SetStablePowerState(This,Enable) \
  14043. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  14044. #define ID3D12Device8_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  14045. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  14046. #define ID3D12Device8_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  14047. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  14048. #if !defined(_WIN32)
  14049. #define ID3D12Device8_GetAdapterLuid(This) \
  14050. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  14051. #else
  14052. #define ID3D12Device8_GetAdapterLuid(This,RetVal) \
  14053. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  14054. #endif
  14055. #define ID3D12Device8_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  14056. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  14057. #define ID3D12Device8_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  14058. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  14059. #define ID3D12Device8_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  14060. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  14061. #define ID3D12Device8_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  14062. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  14063. #define ID3D12Device8_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  14064. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  14065. #define ID3D12Device8_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  14066. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  14067. #define ID3D12Device8_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  14068. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  14069. #define ID3D12Device8_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  14070. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  14071. #define ID3D12Device8_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  14072. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  14073. #define ID3D12Device8_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  14074. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  14075. #define ID3D12Device8_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  14076. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  14077. #define ID3D12Device8_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  14078. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  14079. #if !defined(_WIN32)
  14080. #define ID3D12Device8_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14081. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14082. #else
  14083. #define ID3D12Device8_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14084. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14085. #endif
  14086. #define ID3D12Device8_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  14087. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  14088. #define ID3D12Device8_RemoveDevice(This) \
  14089. ( (This)->lpVtbl -> RemoveDevice(This) )
  14090. #define ID3D12Device8_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  14091. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  14092. #define ID3D12Device8_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  14093. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  14094. #define ID3D12Device8_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  14095. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  14096. #define ID3D12Device8_CreateStateObject(This,pDesc,riid,ppStateObject) \
  14097. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  14098. #define ID3D12Device8_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  14099. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  14100. #define ID3D12Device8_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  14101. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  14102. #define ID3D12Device8_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  14103. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  14104. #define ID3D12Device8_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  14105. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  14106. #define ID3D12Device8_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  14107. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  14108. #if !defined(_WIN32)
  14109. #define ID3D12Device8_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14110. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14111. #else
  14112. #define ID3D12Device8_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  14113. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  14114. #endif
  14115. #define ID3D12Device8_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  14116. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  14117. #define ID3D12Device8_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  14118. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  14119. #define ID3D12Device8_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  14120. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  14121. #define ID3D12Device8_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  14122. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  14123. #endif /* COBJMACROS */
  14124. #endif /* C style interface */
  14125. #endif /* __ID3D12Device8_INTERFACE_DEFINED__ */
  14126. #ifndef __ID3D12Resource1_INTERFACE_DEFINED__
  14127. #define __ID3D12Resource1_INTERFACE_DEFINED__
  14128. /* interface ID3D12Resource1 */
  14129. /* [unique][local][object][uuid] */
  14130. EXTERN_C const IID IID_ID3D12Resource1;
  14131. #if defined(__cplusplus) && !defined(CINTERFACE)
  14132. MIDL_INTERFACE("9D5E227A-4430-4161-88B3-3ECA6BB16E19")
  14133. ID3D12Resource1 : public ID3D12Resource
  14134. {
  14135. public:
  14136. virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession(
  14137. REFIID riid,
  14138. _COM_Outptr_opt_ void **ppProtectedSession) = 0;
  14139. };
  14140. #else /* C style interface */
  14141. typedef struct ID3D12Resource1Vtbl
  14142. {
  14143. BEGIN_INTERFACE
  14144. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  14145. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14146. ID3D12Resource1 * This,
  14147. REFIID riid,
  14148. _COM_Outptr_ void **ppvObject);
  14149. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  14150. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14151. ID3D12Resource1 * This);
  14152. DECLSPEC_XFGVIRT(IUnknown, Release)
  14153. ULONG ( STDMETHODCALLTYPE *Release )(
  14154. ID3D12Resource1 * This);
  14155. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  14156. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  14157. ID3D12Resource1 * This,
  14158. _In_ REFGUID guid,
  14159. _Inout_ UINT *pDataSize,
  14160. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  14161. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  14162. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  14163. ID3D12Resource1 * This,
  14164. _In_ REFGUID guid,
  14165. _In_ UINT DataSize,
  14166. _In_reads_bytes_opt_( DataSize ) const void *pData);
  14167. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  14168. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  14169. ID3D12Resource1 * This,
  14170. _In_ REFGUID guid,
  14171. _In_opt_ const IUnknown *pData);
  14172. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  14173. HRESULT ( STDMETHODCALLTYPE *SetName )(
  14174. ID3D12Resource1 * This,
  14175. _In_z_ LPCWSTR Name);
  14176. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  14177. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  14178. ID3D12Resource1 * This,
  14179. REFIID riid,
  14180. _COM_Outptr_opt_ void **ppvDevice);
  14181. DECLSPEC_XFGVIRT(ID3D12Resource, Map)
  14182. HRESULT ( STDMETHODCALLTYPE *Map )(
  14183. ID3D12Resource1 * This,
  14184. UINT Subresource,
  14185. _In_opt_ const D3D12_RANGE *pReadRange,
  14186. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData);
  14187. DECLSPEC_XFGVIRT(ID3D12Resource, Unmap)
  14188. void ( STDMETHODCALLTYPE *Unmap )(
  14189. ID3D12Resource1 * This,
  14190. UINT Subresource,
  14191. _In_opt_ const D3D12_RANGE *pWrittenRange);
  14192. DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc)
  14193. #if !defined(_WIN32)
  14194. D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  14195. ID3D12Resource1 * This);
  14196. #else
  14197. D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  14198. ID3D12Resource1 * This,
  14199. D3D12_RESOURCE_DESC * RetVal);
  14200. #endif
  14201. DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress)
  14202. D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )(
  14203. ID3D12Resource1 * This);
  14204. DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource)
  14205. HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )(
  14206. ID3D12Resource1 * This,
  14207. UINT DstSubresource,
  14208. _In_opt_ const D3D12_BOX *pDstBox,
  14209. _In_ const void *pSrcData,
  14210. UINT SrcRowPitch,
  14211. UINT SrcDepthPitch);
  14212. DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource)
  14213. HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )(
  14214. ID3D12Resource1 * This,
  14215. _Out_ void *pDstData,
  14216. UINT DstRowPitch,
  14217. UINT DstDepthPitch,
  14218. UINT SrcSubresource,
  14219. _In_opt_ const D3D12_BOX *pSrcBox);
  14220. DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties)
  14221. HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )(
  14222. ID3D12Resource1 * This,
  14223. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  14224. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags);
  14225. DECLSPEC_XFGVIRT(ID3D12Resource1, GetProtectedResourceSession)
  14226. HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )(
  14227. ID3D12Resource1 * This,
  14228. REFIID riid,
  14229. _COM_Outptr_opt_ void **ppProtectedSession);
  14230. END_INTERFACE
  14231. } ID3D12Resource1Vtbl;
  14232. interface ID3D12Resource1
  14233. {
  14234. CONST_VTBL struct ID3D12Resource1Vtbl *lpVtbl;
  14235. };
  14236. #ifdef COBJMACROS
  14237. #define ID3D12Resource1_QueryInterface(This,riid,ppvObject) \
  14238. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  14239. #define ID3D12Resource1_AddRef(This) \
  14240. ( (This)->lpVtbl -> AddRef(This) )
  14241. #define ID3D12Resource1_Release(This) \
  14242. ( (This)->lpVtbl -> Release(This) )
  14243. #define ID3D12Resource1_GetPrivateData(This,guid,pDataSize,pData) \
  14244. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  14245. #define ID3D12Resource1_SetPrivateData(This,guid,DataSize,pData) \
  14246. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  14247. #define ID3D12Resource1_SetPrivateDataInterface(This,guid,pData) \
  14248. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  14249. #define ID3D12Resource1_SetName(This,Name) \
  14250. ( (This)->lpVtbl -> SetName(This,Name) )
  14251. #define ID3D12Resource1_GetDevice(This,riid,ppvDevice) \
  14252. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  14253. #define ID3D12Resource1_Map(This,Subresource,pReadRange,ppData) \
  14254. ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) )
  14255. #define ID3D12Resource1_Unmap(This,Subresource,pWrittenRange) \
  14256. ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) )
  14257. #if !defined(_WIN32)
  14258. #define ID3D12Resource1_GetDesc(This) \
  14259. ( (This)->lpVtbl -> GetDesc(This) )
  14260. #else
  14261. #define ID3D12Resource1_GetDesc(This,RetVal) \
  14262. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  14263. #endif
  14264. #define ID3D12Resource1_GetGPUVirtualAddress(This) \
  14265. ( (This)->lpVtbl -> GetGPUVirtualAddress(This) )
  14266. #define ID3D12Resource1_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  14267. ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  14268. #define ID3D12Resource1_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \
  14269. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) )
  14270. #define ID3D12Resource1_GetHeapProperties(This,pHeapProperties,pHeapFlags) \
  14271. ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) )
  14272. #define ID3D12Resource1_GetProtectedResourceSession(This,riid,ppProtectedSession) \
  14273. ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) )
  14274. #endif /* COBJMACROS */
  14275. #endif /* C style interface */
  14276. #endif /* __ID3D12Resource1_INTERFACE_DEFINED__ */
  14277. #ifndef __ID3D12Resource2_INTERFACE_DEFINED__
  14278. #define __ID3D12Resource2_INTERFACE_DEFINED__
  14279. /* interface ID3D12Resource2 */
  14280. /* [unique][local][object][uuid] */
  14281. EXTERN_C const IID IID_ID3D12Resource2;
  14282. #if defined(__cplusplus) && !defined(CINTERFACE)
  14283. MIDL_INTERFACE("BE36EC3B-EA85-4AEB-A45A-E9D76404A495")
  14284. ID3D12Resource2 : public ID3D12Resource1
  14285. {
  14286. public:
  14287. #if defined(_MSC_VER) || !defined(_WIN32)
  14288. virtual D3D12_RESOURCE_DESC1 STDMETHODCALLTYPE GetDesc1( void) = 0;
  14289. #else
  14290. virtual D3D12_RESOURCE_DESC1 *STDMETHODCALLTYPE GetDesc1(
  14291. D3D12_RESOURCE_DESC1 * RetVal) = 0;
  14292. #endif
  14293. };
  14294. #else /* C style interface */
  14295. typedef struct ID3D12Resource2Vtbl
  14296. {
  14297. BEGIN_INTERFACE
  14298. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  14299. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14300. ID3D12Resource2 * This,
  14301. REFIID riid,
  14302. _COM_Outptr_ void **ppvObject);
  14303. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  14304. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14305. ID3D12Resource2 * This);
  14306. DECLSPEC_XFGVIRT(IUnknown, Release)
  14307. ULONG ( STDMETHODCALLTYPE *Release )(
  14308. ID3D12Resource2 * This);
  14309. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  14310. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  14311. ID3D12Resource2 * This,
  14312. _In_ REFGUID guid,
  14313. _Inout_ UINT *pDataSize,
  14314. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  14315. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  14316. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  14317. ID3D12Resource2 * This,
  14318. _In_ REFGUID guid,
  14319. _In_ UINT DataSize,
  14320. _In_reads_bytes_opt_( DataSize ) const void *pData);
  14321. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  14322. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  14323. ID3D12Resource2 * This,
  14324. _In_ REFGUID guid,
  14325. _In_opt_ const IUnknown *pData);
  14326. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  14327. HRESULT ( STDMETHODCALLTYPE *SetName )(
  14328. ID3D12Resource2 * This,
  14329. _In_z_ LPCWSTR Name);
  14330. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  14331. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  14332. ID3D12Resource2 * This,
  14333. REFIID riid,
  14334. _COM_Outptr_opt_ void **ppvDevice);
  14335. DECLSPEC_XFGVIRT(ID3D12Resource, Map)
  14336. HRESULT ( STDMETHODCALLTYPE *Map )(
  14337. ID3D12Resource2 * This,
  14338. UINT Subresource,
  14339. _In_opt_ const D3D12_RANGE *pReadRange,
  14340. _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData);
  14341. DECLSPEC_XFGVIRT(ID3D12Resource, Unmap)
  14342. void ( STDMETHODCALLTYPE *Unmap )(
  14343. ID3D12Resource2 * This,
  14344. UINT Subresource,
  14345. _In_opt_ const D3D12_RANGE *pWrittenRange);
  14346. DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc)
  14347. #if !defined(_WIN32)
  14348. D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )(
  14349. ID3D12Resource2 * This);
  14350. #else
  14351. D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )(
  14352. ID3D12Resource2 * This,
  14353. D3D12_RESOURCE_DESC * RetVal);
  14354. #endif
  14355. DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress)
  14356. D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )(
  14357. ID3D12Resource2 * This);
  14358. DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource)
  14359. HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )(
  14360. ID3D12Resource2 * This,
  14361. UINT DstSubresource,
  14362. _In_opt_ const D3D12_BOX *pDstBox,
  14363. _In_ const void *pSrcData,
  14364. UINT SrcRowPitch,
  14365. UINT SrcDepthPitch);
  14366. DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource)
  14367. HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )(
  14368. ID3D12Resource2 * This,
  14369. _Out_ void *pDstData,
  14370. UINT DstRowPitch,
  14371. UINT DstDepthPitch,
  14372. UINT SrcSubresource,
  14373. _In_opt_ const D3D12_BOX *pSrcBox);
  14374. DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties)
  14375. HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )(
  14376. ID3D12Resource2 * This,
  14377. _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties,
  14378. _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags);
  14379. DECLSPEC_XFGVIRT(ID3D12Resource1, GetProtectedResourceSession)
  14380. HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )(
  14381. ID3D12Resource2 * This,
  14382. REFIID riid,
  14383. _COM_Outptr_opt_ void **ppProtectedSession);
  14384. DECLSPEC_XFGVIRT(ID3D12Resource2, GetDesc1)
  14385. #if !defined(_WIN32)
  14386. D3D12_RESOURCE_DESC1 ( STDMETHODCALLTYPE *GetDesc1 )(
  14387. ID3D12Resource2 * This);
  14388. #else
  14389. D3D12_RESOURCE_DESC1 *( STDMETHODCALLTYPE *GetDesc1 )(
  14390. ID3D12Resource2 * This,
  14391. D3D12_RESOURCE_DESC1 * RetVal);
  14392. #endif
  14393. END_INTERFACE
  14394. } ID3D12Resource2Vtbl;
  14395. interface ID3D12Resource2
  14396. {
  14397. CONST_VTBL struct ID3D12Resource2Vtbl *lpVtbl;
  14398. };
  14399. #ifdef COBJMACROS
  14400. #define ID3D12Resource2_QueryInterface(This,riid,ppvObject) \
  14401. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  14402. #define ID3D12Resource2_AddRef(This) \
  14403. ( (This)->lpVtbl -> AddRef(This) )
  14404. #define ID3D12Resource2_Release(This) \
  14405. ( (This)->lpVtbl -> Release(This) )
  14406. #define ID3D12Resource2_GetPrivateData(This,guid,pDataSize,pData) \
  14407. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  14408. #define ID3D12Resource2_SetPrivateData(This,guid,DataSize,pData) \
  14409. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  14410. #define ID3D12Resource2_SetPrivateDataInterface(This,guid,pData) \
  14411. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  14412. #define ID3D12Resource2_SetName(This,Name) \
  14413. ( (This)->lpVtbl -> SetName(This,Name) )
  14414. #define ID3D12Resource2_GetDevice(This,riid,ppvDevice) \
  14415. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  14416. #define ID3D12Resource2_Map(This,Subresource,pReadRange,ppData) \
  14417. ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) )
  14418. #define ID3D12Resource2_Unmap(This,Subresource,pWrittenRange) \
  14419. ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) )
  14420. #if !defined(_WIN32)
  14421. #define ID3D12Resource2_GetDesc(This) \
  14422. ( (This)->lpVtbl -> GetDesc(This) )
  14423. #else
  14424. #define ID3D12Resource2_GetDesc(This,RetVal) \
  14425. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  14426. #endif
  14427. #define ID3D12Resource2_GetGPUVirtualAddress(This) \
  14428. ( (This)->lpVtbl -> GetGPUVirtualAddress(This) )
  14429. #define ID3D12Resource2_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \
  14430. ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) )
  14431. #define ID3D12Resource2_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \
  14432. ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) )
  14433. #define ID3D12Resource2_GetHeapProperties(This,pHeapProperties,pHeapFlags) \
  14434. ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) )
  14435. #define ID3D12Resource2_GetProtectedResourceSession(This,riid,ppProtectedSession) \
  14436. ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) )
  14437. #if !defined(_WIN32)
  14438. #define ID3D12Resource2_GetDesc1(This) \
  14439. ( (This)->lpVtbl -> GetDesc1(This) )
  14440. #else
  14441. #define ID3D12Resource2_GetDesc1(This,RetVal) \
  14442. ( (This)->lpVtbl -> GetDesc1(This,RetVal) )
  14443. #endif
  14444. #endif /* COBJMACROS */
  14445. #endif /* C style interface */
  14446. #endif /* __ID3D12Resource2_INTERFACE_DEFINED__ */
  14447. #ifndef __ID3D12Heap1_INTERFACE_DEFINED__
  14448. #define __ID3D12Heap1_INTERFACE_DEFINED__
  14449. /* interface ID3D12Heap1 */
  14450. /* [unique][local][object][uuid] */
  14451. EXTERN_C const IID IID_ID3D12Heap1;
  14452. #if defined(__cplusplus) && !defined(CINTERFACE)
  14453. MIDL_INTERFACE("572F7389-2168-49E3-9693-D6DF5871BF6D")
  14454. ID3D12Heap1 : public ID3D12Heap
  14455. {
  14456. public:
  14457. virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession(
  14458. REFIID riid,
  14459. _COM_Outptr_opt_ void **ppProtectedSession) = 0;
  14460. };
  14461. #else /* C style interface */
  14462. typedef struct ID3D12Heap1Vtbl
  14463. {
  14464. BEGIN_INTERFACE
  14465. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  14466. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14467. ID3D12Heap1 * This,
  14468. REFIID riid,
  14469. _COM_Outptr_ void **ppvObject);
  14470. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  14471. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14472. ID3D12Heap1 * This);
  14473. DECLSPEC_XFGVIRT(IUnknown, Release)
  14474. ULONG ( STDMETHODCALLTYPE *Release )(
  14475. ID3D12Heap1 * This);
  14476. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  14477. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  14478. ID3D12Heap1 * This,
  14479. _In_ REFGUID guid,
  14480. _Inout_ UINT *pDataSize,
  14481. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  14482. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  14483. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  14484. ID3D12Heap1 * This,
  14485. _In_ REFGUID guid,
  14486. _In_ UINT DataSize,
  14487. _In_reads_bytes_opt_( DataSize ) const void *pData);
  14488. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  14489. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  14490. ID3D12Heap1 * This,
  14491. _In_ REFGUID guid,
  14492. _In_opt_ const IUnknown *pData);
  14493. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  14494. HRESULT ( STDMETHODCALLTYPE *SetName )(
  14495. ID3D12Heap1 * This,
  14496. _In_z_ LPCWSTR Name);
  14497. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  14498. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  14499. ID3D12Heap1 * This,
  14500. REFIID riid,
  14501. _COM_Outptr_opt_ void **ppvDevice);
  14502. DECLSPEC_XFGVIRT(ID3D12Heap, GetDesc)
  14503. #if !defined(_WIN32)
  14504. D3D12_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )(
  14505. ID3D12Heap1 * This);
  14506. #else
  14507. D3D12_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )(
  14508. ID3D12Heap1 * This,
  14509. D3D12_HEAP_DESC * RetVal);
  14510. #endif
  14511. DECLSPEC_XFGVIRT(ID3D12Heap1, GetProtectedResourceSession)
  14512. HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )(
  14513. ID3D12Heap1 * This,
  14514. REFIID riid,
  14515. _COM_Outptr_opt_ void **ppProtectedSession);
  14516. END_INTERFACE
  14517. } ID3D12Heap1Vtbl;
  14518. interface ID3D12Heap1
  14519. {
  14520. CONST_VTBL struct ID3D12Heap1Vtbl *lpVtbl;
  14521. };
  14522. #ifdef COBJMACROS
  14523. #define ID3D12Heap1_QueryInterface(This,riid,ppvObject) \
  14524. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  14525. #define ID3D12Heap1_AddRef(This) \
  14526. ( (This)->lpVtbl -> AddRef(This) )
  14527. #define ID3D12Heap1_Release(This) \
  14528. ( (This)->lpVtbl -> Release(This) )
  14529. #define ID3D12Heap1_GetPrivateData(This,guid,pDataSize,pData) \
  14530. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  14531. #define ID3D12Heap1_SetPrivateData(This,guid,DataSize,pData) \
  14532. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  14533. #define ID3D12Heap1_SetPrivateDataInterface(This,guid,pData) \
  14534. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  14535. #define ID3D12Heap1_SetName(This,Name) \
  14536. ( (This)->lpVtbl -> SetName(This,Name) )
  14537. #define ID3D12Heap1_GetDevice(This,riid,ppvDevice) \
  14538. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  14539. #if !defined(_WIN32)
  14540. #define ID3D12Heap1_GetDesc(This) \
  14541. ( (This)->lpVtbl -> GetDesc(This) )
  14542. #else
  14543. #define ID3D12Heap1_GetDesc(This,RetVal) \
  14544. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  14545. #endif
  14546. #define ID3D12Heap1_GetProtectedResourceSession(This,riid,ppProtectedSession) \
  14547. ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) )
  14548. #endif /* COBJMACROS */
  14549. #endif /* C style interface */
  14550. #endif /* __ID3D12Heap1_INTERFACE_DEFINED__ */
  14551. #ifndef __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__
  14552. #define __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__
  14553. /* interface ID3D12GraphicsCommandList3 */
  14554. /* [unique][local][object][uuid] */
  14555. EXTERN_C const IID IID_ID3D12GraphicsCommandList3;
  14556. #if defined(__cplusplus) && !defined(CINTERFACE)
  14557. MIDL_INTERFACE("6FDA83A7-B84C-4E38-9AC8-C7BD22016B3D")
  14558. ID3D12GraphicsCommandList3 : public ID3D12GraphicsCommandList2
  14559. {
  14560. public:
  14561. virtual void STDMETHODCALLTYPE SetProtectedResourceSession(
  14562. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession) = 0;
  14563. };
  14564. #else /* C style interface */
  14565. typedef struct ID3D12GraphicsCommandList3Vtbl
  14566. {
  14567. BEGIN_INTERFACE
  14568. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  14569. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14570. ID3D12GraphicsCommandList3 * This,
  14571. REFIID riid,
  14572. _COM_Outptr_ void **ppvObject);
  14573. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  14574. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14575. ID3D12GraphicsCommandList3 * This);
  14576. DECLSPEC_XFGVIRT(IUnknown, Release)
  14577. ULONG ( STDMETHODCALLTYPE *Release )(
  14578. ID3D12GraphicsCommandList3 * This);
  14579. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  14580. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  14581. ID3D12GraphicsCommandList3 * This,
  14582. _In_ REFGUID guid,
  14583. _Inout_ UINT *pDataSize,
  14584. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  14585. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  14586. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  14587. ID3D12GraphicsCommandList3 * This,
  14588. _In_ REFGUID guid,
  14589. _In_ UINT DataSize,
  14590. _In_reads_bytes_opt_( DataSize ) const void *pData);
  14591. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  14592. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  14593. ID3D12GraphicsCommandList3 * This,
  14594. _In_ REFGUID guid,
  14595. _In_opt_ const IUnknown *pData);
  14596. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  14597. HRESULT ( STDMETHODCALLTYPE *SetName )(
  14598. ID3D12GraphicsCommandList3 * This,
  14599. _In_z_ LPCWSTR Name);
  14600. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  14601. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  14602. ID3D12GraphicsCommandList3 * This,
  14603. REFIID riid,
  14604. _COM_Outptr_opt_ void **ppvDevice);
  14605. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  14606. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  14607. ID3D12GraphicsCommandList3 * This);
  14608. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  14609. HRESULT ( STDMETHODCALLTYPE *Close )(
  14610. ID3D12GraphicsCommandList3 * This);
  14611. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  14612. HRESULT ( STDMETHODCALLTYPE *Reset )(
  14613. ID3D12GraphicsCommandList3 * This,
  14614. _In_ ID3D12CommandAllocator *pAllocator,
  14615. _In_opt_ ID3D12PipelineState *pInitialState);
  14616. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  14617. void ( STDMETHODCALLTYPE *ClearState )(
  14618. ID3D12GraphicsCommandList3 * This,
  14619. _In_opt_ ID3D12PipelineState *pPipelineState);
  14620. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  14621. void ( STDMETHODCALLTYPE *DrawInstanced )(
  14622. ID3D12GraphicsCommandList3 * This,
  14623. _In_ UINT VertexCountPerInstance,
  14624. _In_ UINT InstanceCount,
  14625. _In_ UINT StartVertexLocation,
  14626. _In_ UINT StartInstanceLocation);
  14627. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  14628. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  14629. ID3D12GraphicsCommandList3 * This,
  14630. _In_ UINT IndexCountPerInstance,
  14631. _In_ UINT InstanceCount,
  14632. _In_ UINT StartIndexLocation,
  14633. _In_ INT BaseVertexLocation,
  14634. _In_ UINT StartInstanceLocation);
  14635. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  14636. void ( STDMETHODCALLTYPE *Dispatch )(
  14637. ID3D12GraphicsCommandList3 * This,
  14638. _In_ UINT ThreadGroupCountX,
  14639. _In_ UINT ThreadGroupCountY,
  14640. _In_ UINT ThreadGroupCountZ);
  14641. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  14642. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  14643. ID3D12GraphicsCommandList3 * This,
  14644. _In_ ID3D12Resource *pDstBuffer,
  14645. UINT64 DstOffset,
  14646. _In_ ID3D12Resource *pSrcBuffer,
  14647. UINT64 SrcOffset,
  14648. UINT64 NumBytes);
  14649. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  14650. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  14651. ID3D12GraphicsCommandList3 * This,
  14652. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  14653. UINT DstX,
  14654. UINT DstY,
  14655. UINT DstZ,
  14656. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  14657. _In_opt_ const D3D12_BOX *pSrcBox);
  14658. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  14659. void ( STDMETHODCALLTYPE *CopyResource )(
  14660. ID3D12GraphicsCommandList3 * This,
  14661. _In_ ID3D12Resource *pDstResource,
  14662. _In_ ID3D12Resource *pSrcResource);
  14663. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  14664. void ( STDMETHODCALLTYPE *CopyTiles )(
  14665. ID3D12GraphicsCommandList3 * This,
  14666. _In_ ID3D12Resource *pTiledResource,
  14667. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  14668. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  14669. _In_ ID3D12Resource *pBuffer,
  14670. UINT64 BufferStartOffsetInBytes,
  14671. D3D12_TILE_COPY_FLAGS Flags);
  14672. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  14673. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  14674. ID3D12GraphicsCommandList3 * This,
  14675. _In_ ID3D12Resource *pDstResource,
  14676. _In_ UINT DstSubresource,
  14677. _In_ ID3D12Resource *pSrcResource,
  14678. _In_ UINT SrcSubresource,
  14679. _In_ DXGI_FORMAT Format);
  14680. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  14681. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  14682. ID3D12GraphicsCommandList3 * This,
  14683. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  14684. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  14685. void ( STDMETHODCALLTYPE *RSSetViewports )(
  14686. ID3D12GraphicsCommandList3 * This,
  14687. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  14688. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  14689. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  14690. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  14691. ID3D12GraphicsCommandList3 * This,
  14692. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  14693. _In_reads_( NumRects) const D3D12_RECT *pRects);
  14694. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  14695. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  14696. ID3D12GraphicsCommandList3 * This,
  14697. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  14698. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  14699. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  14700. ID3D12GraphicsCommandList3 * This,
  14701. _In_ UINT StencilRef);
  14702. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  14703. void ( STDMETHODCALLTYPE *SetPipelineState )(
  14704. ID3D12GraphicsCommandList3 * This,
  14705. _In_ ID3D12PipelineState *pPipelineState);
  14706. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  14707. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  14708. ID3D12GraphicsCommandList3 * This,
  14709. _In_ UINT NumBarriers,
  14710. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  14711. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  14712. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  14713. ID3D12GraphicsCommandList3 * This,
  14714. _In_ ID3D12GraphicsCommandList *pCommandList);
  14715. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  14716. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  14717. ID3D12GraphicsCommandList3 * This,
  14718. _In_ UINT NumDescriptorHeaps,
  14719. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  14720. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  14721. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  14722. ID3D12GraphicsCommandList3 * This,
  14723. _In_opt_ ID3D12RootSignature *pRootSignature);
  14724. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  14725. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  14726. ID3D12GraphicsCommandList3 * This,
  14727. _In_opt_ ID3D12RootSignature *pRootSignature);
  14728. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  14729. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  14730. ID3D12GraphicsCommandList3 * This,
  14731. _In_ UINT RootParameterIndex,
  14732. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  14733. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  14734. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  14735. ID3D12GraphicsCommandList3 * This,
  14736. _In_ UINT RootParameterIndex,
  14737. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  14738. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  14739. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  14740. ID3D12GraphicsCommandList3 * This,
  14741. _In_ UINT RootParameterIndex,
  14742. _In_ UINT SrcData,
  14743. _In_ UINT DestOffsetIn32BitValues);
  14744. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  14745. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  14746. ID3D12GraphicsCommandList3 * This,
  14747. _In_ UINT RootParameterIndex,
  14748. _In_ UINT SrcData,
  14749. _In_ UINT DestOffsetIn32BitValues);
  14750. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  14751. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  14752. ID3D12GraphicsCommandList3 * This,
  14753. _In_ UINT RootParameterIndex,
  14754. _In_ UINT Num32BitValuesToSet,
  14755. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  14756. _In_ UINT DestOffsetIn32BitValues);
  14757. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  14758. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  14759. ID3D12GraphicsCommandList3 * This,
  14760. _In_ UINT RootParameterIndex,
  14761. _In_ UINT Num32BitValuesToSet,
  14762. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  14763. _In_ UINT DestOffsetIn32BitValues);
  14764. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  14765. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  14766. ID3D12GraphicsCommandList3 * This,
  14767. _In_ UINT RootParameterIndex,
  14768. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  14769. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  14770. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  14771. ID3D12GraphicsCommandList3 * This,
  14772. _In_ UINT RootParameterIndex,
  14773. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  14774. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  14775. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  14776. ID3D12GraphicsCommandList3 * This,
  14777. _In_ UINT RootParameterIndex,
  14778. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  14779. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  14780. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  14781. ID3D12GraphicsCommandList3 * This,
  14782. _In_ UINT RootParameterIndex,
  14783. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  14784. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  14785. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  14786. ID3D12GraphicsCommandList3 * This,
  14787. _In_ UINT RootParameterIndex,
  14788. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  14789. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  14790. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  14791. ID3D12GraphicsCommandList3 * This,
  14792. _In_ UINT RootParameterIndex,
  14793. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  14794. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  14795. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  14796. ID3D12GraphicsCommandList3 * This,
  14797. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  14798. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  14799. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  14800. ID3D12GraphicsCommandList3 * This,
  14801. _In_ UINT StartSlot,
  14802. _In_ UINT NumViews,
  14803. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  14804. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  14805. void ( STDMETHODCALLTYPE *SOSetTargets )(
  14806. ID3D12GraphicsCommandList3 * This,
  14807. _In_ UINT StartSlot,
  14808. _In_ UINT NumViews,
  14809. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  14810. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  14811. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  14812. ID3D12GraphicsCommandList3 * This,
  14813. _In_ UINT NumRenderTargetDescriptors,
  14814. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  14815. _In_ BOOL RTsSingleHandleToDescriptorRange,
  14816. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  14817. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  14818. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  14819. ID3D12GraphicsCommandList3 * This,
  14820. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  14821. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  14822. _In_ FLOAT Depth,
  14823. _In_ UINT8 Stencil,
  14824. _In_ UINT NumRects,
  14825. _In_reads_(NumRects) const D3D12_RECT *pRects);
  14826. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  14827. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  14828. ID3D12GraphicsCommandList3 * This,
  14829. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  14830. _In_ const FLOAT ColorRGBA[ 4 ],
  14831. _In_ UINT NumRects,
  14832. _In_reads_(NumRects) const D3D12_RECT *pRects);
  14833. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  14834. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  14835. ID3D12GraphicsCommandList3 * This,
  14836. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  14837. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  14838. _In_ ID3D12Resource *pResource,
  14839. _In_ const UINT Values[ 4 ],
  14840. _In_ UINT NumRects,
  14841. _In_reads_(NumRects) const D3D12_RECT *pRects);
  14842. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  14843. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  14844. ID3D12GraphicsCommandList3 * This,
  14845. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  14846. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  14847. _In_ ID3D12Resource *pResource,
  14848. _In_ const FLOAT Values[ 4 ],
  14849. _In_ UINT NumRects,
  14850. _In_reads_(NumRects) const D3D12_RECT *pRects);
  14851. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  14852. void ( STDMETHODCALLTYPE *DiscardResource )(
  14853. ID3D12GraphicsCommandList3 * This,
  14854. _In_ ID3D12Resource *pResource,
  14855. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  14856. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  14857. void ( STDMETHODCALLTYPE *BeginQuery )(
  14858. ID3D12GraphicsCommandList3 * This,
  14859. _In_ ID3D12QueryHeap *pQueryHeap,
  14860. _In_ D3D12_QUERY_TYPE Type,
  14861. _In_ UINT Index);
  14862. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  14863. void ( STDMETHODCALLTYPE *EndQuery )(
  14864. ID3D12GraphicsCommandList3 * This,
  14865. _In_ ID3D12QueryHeap *pQueryHeap,
  14866. _In_ D3D12_QUERY_TYPE Type,
  14867. _In_ UINT Index);
  14868. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  14869. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  14870. ID3D12GraphicsCommandList3 * This,
  14871. _In_ ID3D12QueryHeap *pQueryHeap,
  14872. _In_ D3D12_QUERY_TYPE Type,
  14873. _In_ UINT StartIndex,
  14874. _In_ UINT NumQueries,
  14875. _In_ ID3D12Resource *pDestinationBuffer,
  14876. _In_ UINT64 AlignedDestinationBufferOffset);
  14877. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  14878. void ( STDMETHODCALLTYPE *SetPredication )(
  14879. ID3D12GraphicsCommandList3 * This,
  14880. _In_opt_ ID3D12Resource *pBuffer,
  14881. _In_ UINT64 AlignedBufferOffset,
  14882. _In_ D3D12_PREDICATION_OP Operation);
  14883. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  14884. void ( STDMETHODCALLTYPE *SetMarker )(
  14885. ID3D12GraphicsCommandList3 * This,
  14886. UINT Metadata,
  14887. _In_reads_bytes_opt_(Size) const void *pData,
  14888. UINT Size);
  14889. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  14890. void ( STDMETHODCALLTYPE *BeginEvent )(
  14891. ID3D12GraphicsCommandList3 * This,
  14892. UINT Metadata,
  14893. _In_reads_bytes_opt_(Size) const void *pData,
  14894. UINT Size);
  14895. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  14896. void ( STDMETHODCALLTYPE *EndEvent )(
  14897. ID3D12GraphicsCommandList3 * This);
  14898. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  14899. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  14900. ID3D12GraphicsCommandList3 * This,
  14901. _In_ ID3D12CommandSignature *pCommandSignature,
  14902. _In_ UINT MaxCommandCount,
  14903. _In_ ID3D12Resource *pArgumentBuffer,
  14904. _In_ UINT64 ArgumentBufferOffset,
  14905. _In_opt_ ID3D12Resource *pCountBuffer,
  14906. _In_ UINT64 CountBufferOffset);
  14907. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  14908. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  14909. ID3D12GraphicsCommandList3 * This,
  14910. _In_ ID3D12Resource *pDstBuffer,
  14911. UINT64 DstOffset,
  14912. _In_ ID3D12Resource *pSrcBuffer,
  14913. UINT64 SrcOffset,
  14914. UINT Dependencies,
  14915. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  14916. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  14917. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  14918. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  14919. ID3D12GraphicsCommandList3 * This,
  14920. _In_ ID3D12Resource *pDstBuffer,
  14921. UINT64 DstOffset,
  14922. _In_ ID3D12Resource *pSrcBuffer,
  14923. UINT64 SrcOffset,
  14924. UINT Dependencies,
  14925. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  14926. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  14927. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  14928. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  14929. ID3D12GraphicsCommandList3 * This,
  14930. _In_ FLOAT Min,
  14931. _In_ FLOAT Max);
  14932. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  14933. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  14934. ID3D12GraphicsCommandList3 * This,
  14935. _In_ UINT NumSamplesPerPixel,
  14936. _In_ UINT NumPixels,
  14937. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  14938. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  14939. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  14940. ID3D12GraphicsCommandList3 * This,
  14941. _In_ ID3D12Resource *pDstResource,
  14942. _In_ UINT DstSubresource,
  14943. _In_ UINT DstX,
  14944. _In_ UINT DstY,
  14945. _In_ ID3D12Resource *pSrcResource,
  14946. _In_ UINT SrcSubresource,
  14947. _In_opt_ D3D12_RECT *pSrcRect,
  14948. _In_ DXGI_FORMAT Format,
  14949. _In_ D3D12_RESOLVE_MODE ResolveMode);
  14950. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  14951. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  14952. ID3D12GraphicsCommandList3 * This,
  14953. _In_ UINT Mask);
  14954. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  14955. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  14956. ID3D12GraphicsCommandList3 * This,
  14957. UINT Count,
  14958. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  14959. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  14960. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  14961. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  14962. ID3D12GraphicsCommandList3 * This,
  14963. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  14964. END_INTERFACE
  14965. } ID3D12GraphicsCommandList3Vtbl;
  14966. interface ID3D12GraphicsCommandList3
  14967. {
  14968. CONST_VTBL struct ID3D12GraphicsCommandList3Vtbl *lpVtbl;
  14969. };
  14970. #ifdef COBJMACROS
  14971. #define ID3D12GraphicsCommandList3_QueryInterface(This,riid,ppvObject) \
  14972. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  14973. #define ID3D12GraphicsCommandList3_AddRef(This) \
  14974. ( (This)->lpVtbl -> AddRef(This) )
  14975. #define ID3D12GraphicsCommandList3_Release(This) \
  14976. ( (This)->lpVtbl -> Release(This) )
  14977. #define ID3D12GraphicsCommandList3_GetPrivateData(This,guid,pDataSize,pData) \
  14978. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  14979. #define ID3D12GraphicsCommandList3_SetPrivateData(This,guid,DataSize,pData) \
  14980. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  14981. #define ID3D12GraphicsCommandList3_SetPrivateDataInterface(This,guid,pData) \
  14982. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  14983. #define ID3D12GraphicsCommandList3_SetName(This,Name) \
  14984. ( (This)->lpVtbl -> SetName(This,Name) )
  14985. #define ID3D12GraphicsCommandList3_GetDevice(This,riid,ppvDevice) \
  14986. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  14987. #define ID3D12GraphicsCommandList3_GetType(This) \
  14988. ( (This)->lpVtbl -> GetType(This) )
  14989. #define ID3D12GraphicsCommandList3_Close(This) \
  14990. ( (This)->lpVtbl -> Close(This) )
  14991. #define ID3D12GraphicsCommandList3_Reset(This,pAllocator,pInitialState) \
  14992. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  14993. #define ID3D12GraphicsCommandList3_ClearState(This,pPipelineState) \
  14994. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  14995. #define ID3D12GraphicsCommandList3_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  14996. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  14997. #define ID3D12GraphicsCommandList3_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  14998. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  14999. #define ID3D12GraphicsCommandList3_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  15000. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  15001. #define ID3D12GraphicsCommandList3_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  15002. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  15003. #define ID3D12GraphicsCommandList3_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  15004. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  15005. #define ID3D12GraphicsCommandList3_CopyResource(This,pDstResource,pSrcResource) \
  15006. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  15007. #define ID3D12GraphicsCommandList3_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  15008. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  15009. #define ID3D12GraphicsCommandList3_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  15010. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  15011. #define ID3D12GraphicsCommandList3_IASetPrimitiveTopology(This,PrimitiveTopology) \
  15012. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  15013. #define ID3D12GraphicsCommandList3_RSSetViewports(This,NumViewports,pViewports) \
  15014. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  15015. #define ID3D12GraphicsCommandList3_RSSetScissorRects(This,NumRects,pRects) \
  15016. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  15017. #define ID3D12GraphicsCommandList3_OMSetBlendFactor(This,BlendFactor) \
  15018. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  15019. #define ID3D12GraphicsCommandList3_OMSetStencilRef(This,StencilRef) \
  15020. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  15021. #define ID3D12GraphicsCommandList3_SetPipelineState(This,pPipelineState) \
  15022. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  15023. #define ID3D12GraphicsCommandList3_ResourceBarrier(This,NumBarriers,pBarriers) \
  15024. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  15025. #define ID3D12GraphicsCommandList3_ExecuteBundle(This,pCommandList) \
  15026. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  15027. #define ID3D12GraphicsCommandList3_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  15028. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  15029. #define ID3D12GraphicsCommandList3_SetComputeRootSignature(This,pRootSignature) \
  15030. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  15031. #define ID3D12GraphicsCommandList3_SetGraphicsRootSignature(This,pRootSignature) \
  15032. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  15033. #define ID3D12GraphicsCommandList3_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  15034. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  15035. #define ID3D12GraphicsCommandList3_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  15036. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  15037. #define ID3D12GraphicsCommandList3_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  15038. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  15039. #define ID3D12GraphicsCommandList3_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  15040. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  15041. #define ID3D12GraphicsCommandList3_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  15042. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  15043. #define ID3D12GraphicsCommandList3_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  15044. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  15045. #define ID3D12GraphicsCommandList3_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  15046. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  15047. #define ID3D12GraphicsCommandList3_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  15048. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  15049. #define ID3D12GraphicsCommandList3_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  15050. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  15051. #define ID3D12GraphicsCommandList3_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  15052. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  15053. #define ID3D12GraphicsCommandList3_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  15054. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  15055. #define ID3D12GraphicsCommandList3_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  15056. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  15057. #define ID3D12GraphicsCommandList3_IASetIndexBuffer(This,pView) \
  15058. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  15059. #define ID3D12GraphicsCommandList3_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  15060. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  15061. #define ID3D12GraphicsCommandList3_SOSetTargets(This,StartSlot,NumViews,pViews) \
  15062. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  15063. #define ID3D12GraphicsCommandList3_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  15064. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  15065. #define ID3D12GraphicsCommandList3_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  15066. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  15067. #define ID3D12GraphicsCommandList3_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  15068. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  15069. #define ID3D12GraphicsCommandList3_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  15070. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  15071. #define ID3D12GraphicsCommandList3_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  15072. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  15073. #define ID3D12GraphicsCommandList3_DiscardResource(This,pResource,pRegion) \
  15074. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  15075. #define ID3D12GraphicsCommandList3_BeginQuery(This,pQueryHeap,Type,Index) \
  15076. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  15077. #define ID3D12GraphicsCommandList3_EndQuery(This,pQueryHeap,Type,Index) \
  15078. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  15079. #define ID3D12GraphicsCommandList3_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  15080. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  15081. #define ID3D12GraphicsCommandList3_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  15082. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  15083. #define ID3D12GraphicsCommandList3_SetMarker(This,Metadata,pData,Size) \
  15084. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  15085. #define ID3D12GraphicsCommandList3_BeginEvent(This,Metadata,pData,Size) \
  15086. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  15087. #define ID3D12GraphicsCommandList3_EndEvent(This) \
  15088. ( (This)->lpVtbl -> EndEvent(This) )
  15089. #define ID3D12GraphicsCommandList3_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  15090. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  15091. #define ID3D12GraphicsCommandList3_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  15092. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  15093. #define ID3D12GraphicsCommandList3_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  15094. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  15095. #define ID3D12GraphicsCommandList3_OMSetDepthBounds(This,Min,Max) \
  15096. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  15097. #define ID3D12GraphicsCommandList3_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  15098. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  15099. #define ID3D12GraphicsCommandList3_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  15100. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  15101. #define ID3D12GraphicsCommandList3_SetViewInstanceMask(This,Mask) \
  15102. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  15103. #define ID3D12GraphicsCommandList3_WriteBufferImmediate(This,Count,pParams,pModes) \
  15104. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  15105. #define ID3D12GraphicsCommandList3_SetProtectedResourceSession(This,pProtectedResourceSession) \
  15106. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  15107. #endif /* COBJMACROS */
  15108. #endif /* C style interface */
  15109. #endif /* __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__ */
  15110. /* interface __MIDL_itf_d3d12_0000_0049 */
  15111. /* [local] */
  15112. typedef
  15113. enum D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE
  15114. {
  15115. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD = 0,
  15116. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD + 1 ) ,
  15117. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE + 1 ) ,
  15118. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_NO_ACCESS = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR + 1 ) ,
  15119. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_NO_ACCESS + 1 ) ,
  15120. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER + 1 ) ,
  15121. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_UAV = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV + 1 )
  15122. } D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE;
  15123. typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS
  15124. {
  15125. D3D12_CLEAR_VALUE ClearValue;
  15126. } D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS;
  15127. typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS
  15128. {
  15129. UINT AdditionalWidth;
  15130. UINT AdditionalHeight;
  15131. } D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS;
  15132. typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS
  15133. {
  15134. D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE Type;
  15135. union
  15136. {
  15137. D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS Clear;
  15138. D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS PreserveLocal;
  15139. } ;
  15140. } D3D12_RENDER_PASS_BEGINNING_ACCESS;
  15141. typedef
  15142. enum D3D12_RENDER_PASS_ENDING_ACCESS_TYPE
  15143. {
  15144. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD = 0,
  15145. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD + 1 ) ,
  15146. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE + 1 ) ,
  15147. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_NO_ACCESS = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE + 1 ) ,
  15148. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_NO_ACCESS + 1 ) ,
  15149. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER + 1 ) ,
  15150. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_UAV = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV + 1 )
  15151. } D3D12_RENDER_PASS_ENDING_ACCESS_TYPE;
  15152. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS
  15153. {
  15154. UINT SrcSubresource;
  15155. UINT DstSubresource;
  15156. UINT DstX;
  15157. UINT DstY;
  15158. D3D12_RECT SrcRect;
  15159. } D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS;
  15160. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS
  15161. {
  15162. ID3D12Resource *pSrcResource;
  15163. ID3D12Resource *pDstResource;
  15164. UINT SubresourceCount;
  15165. _Field_size_full_(SubresourceCount) const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS *pSubresourceParameters;
  15166. DXGI_FORMAT Format;
  15167. D3D12_RESOLVE_MODE ResolveMode;
  15168. BOOL PreserveResolveSource;
  15169. } D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS;
  15170. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS
  15171. {
  15172. UINT AdditionalWidth;
  15173. UINT AdditionalHeight;
  15174. } D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS;
  15175. typedef struct D3D12_RENDER_PASS_ENDING_ACCESS
  15176. {
  15177. D3D12_RENDER_PASS_ENDING_ACCESS_TYPE Type;
  15178. union
  15179. {
  15180. D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS Resolve;
  15181. D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS PreserveLocal;
  15182. } ;
  15183. } D3D12_RENDER_PASS_ENDING_ACCESS;
  15184. typedef struct D3D12_RENDER_PASS_RENDER_TARGET_DESC
  15185. {
  15186. D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor;
  15187. D3D12_RENDER_PASS_BEGINNING_ACCESS BeginningAccess;
  15188. D3D12_RENDER_PASS_ENDING_ACCESS EndingAccess;
  15189. } D3D12_RENDER_PASS_RENDER_TARGET_DESC;
  15190. typedef struct D3D12_RENDER_PASS_DEPTH_STENCIL_DESC
  15191. {
  15192. D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor;
  15193. D3D12_RENDER_PASS_BEGINNING_ACCESS DepthBeginningAccess;
  15194. D3D12_RENDER_PASS_BEGINNING_ACCESS StencilBeginningAccess;
  15195. D3D12_RENDER_PASS_ENDING_ACCESS DepthEndingAccess;
  15196. D3D12_RENDER_PASS_ENDING_ACCESS StencilEndingAccess;
  15197. } D3D12_RENDER_PASS_DEPTH_STENCIL_DESC;
  15198. typedef
  15199. enum D3D12_RENDER_PASS_FLAGS
  15200. {
  15201. D3D12_RENDER_PASS_FLAG_NONE = 0,
  15202. D3D12_RENDER_PASS_FLAG_ALLOW_UAV_WRITES = 0x1,
  15203. D3D12_RENDER_PASS_FLAG_SUSPENDING_PASS = 0x2,
  15204. D3D12_RENDER_PASS_FLAG_RESUMING_PASS = 0x4,
  15205. D3D12_RENDER_PASS_FLAG_BIND_READ_ONLY_DEPTH = 0x8,
  15206. D3D12_RENDER_PASS_FLAG_BIND_READ_ONLY_STENCIL = 0x10
  15207. } D3D12_RENDER_PASS_FLAGS;
  15208. DEFINE_ENUM_FLAG_OPERATORS( D3D12_RENDER_PASS_FLAGS );
  15209. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0049_v0_0_c_ifspec;
  15210. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0049_v0_0_s_ifspec;
  15211. #ifndef __ID3D12MetaCommand_INTERFACE_DEFINED__
  15212. #define __ID3D12MetaCommand_INTERFACE_DEFINED__
  15213. /* interface ID3D12MetaCommand */
  15214. /* [unique][local][object][uuid] */
  15215. EXTERN_C const IID IID_ID3D12MetaCommand;
  15216. #if defined(__cplusplus) && !defined(CINTERFACE)
  15217. MIDL_INTERFACE("DBB84C27-36CE-4FC9-B801-F048C46AC570")
  15218. ID3D12MetaCommand : public ID3D12Pageable
  15219. {
  15220. public:
  15221. virtual UINT64 STDMETHODCALLTYPE GetRequiredParameterResourceSize(
  15222. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  15223. _In_ UINT ParameterIndex) = 0;
  15224. };
  15225. #else /* C style interface */
  15226. typedef struct ID3D12MetaCommandVtbl
  15227. {
  15228. BEGIN_INTERFACE
  15229. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  15230. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15231. ID3D12MetaCommand * This,
  15232. REFIID riid,
  15233. _COM_Outptr_ void **ppvObject);
  15234. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  15235. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15236. ID3D12MetaCommand * This);
  15237. DECLSPEC_XFGVIRT(IUnknown, Release)
  15238. ULONG ( STDMETHODCALLTYPE *Release )(
  15239. ID3D12MetaCommand * This);
  15240. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  15241. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  15242. ID3D12MetaCommand * This,
  15243. _In_ REFGUID guid,
  15244. _Inout_ UINT *pDataSize,
  15245. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  15246. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  15247. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  15248. ID3D12MetaCommand * This,
  15249. _In_ REFGUID guid,
  15250. _In_ UINT DataSize,
  15251. _In_reads_bytes_opt_( DataSize ) const void *pData);
  15252. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  15253. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  15254. ID3D12MetaCommand * This,
  15255. _In_ REFGUID guid,
  15256. _In_opt_ const IUnknown *pData);
  15257. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  15258. HRESULT ( STDMETHODCALLTYPE *SetName )(
  15259. ID3D12MetaCommand * This,
  15260. _In_z_ LPCWSTR Name);
  15261. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  15262. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  15263. ID3D12MetaCommand * This,
  15264. REFIID riid,
  15265. _COM_Outptr_opt_ void **ppvDevice);
  15266. DECLSPEC_XFGVIRT(ID3D12MetaCommand, GetRequiredParameterResourceSize)
  15267. UINT64 ( STDMETHODCALLTYPE *GetRequiredParameterResourceSize )(
  15268. ID3D12MetaCommand * This,
  15269. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  15270. _In_ UINT ParameterIndex);
  15271. END_INTERFACE
  15272. } ID3D12MetaCommandVtbl;
  15273. interface ID3D12MetaCommand
  15274. {
  15275. CONST_VTBL struct ID3D12MetaCommandVtbl *lpVtbl;
  15276. };
  15277. #ifdef COBJMACROS
  15278. #define ID3D12MetaCommand_QueryInterface(This,riid,ppvObject) \
  15279. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  15280. #define ID3D12MetaCommand_AddRef(This) \
  15281. ( (This)->lpVtbl -> AddRef(This) )
  15282. #define ID3D12MetaCommand_Release(This) \
  15283. ( (This)->lpVtbl -> Release(This) )
  15284. #define ID3D12MetaCommand_GetPrivateData(This,guid,pDataSize,pData) \
  15285. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  15286. #define ID3D12MetaCommand_SetPrivateData(This,guid,DataSize,pData) \
  15287. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  15288. #define ID3D12MetaCommand_SetPrivateDataInterface(This,guid,pData) \
  15289. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  15290. #define ID3D12MetaCommand_SetName(This,Name) \
  15291. ( (This)->lpVtbl -> SetName(This,Name) )
  15292. #define ID3D12MetaCommand_GetDevice(This,riid,ppvDevice) \
  15293. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  15294. #define ID3D12MetaCommand_GetRequiredParameterResourceSize(This,Stage,ParameterIndex) \
  15295. ( (This)->lpVtbl -> GetRequiredParameterResourceSize(This,Stage,ParameterIndex) )
  15296. #endif /* COBJMACROS */
  15297. #endif /* C style interface */
  15298. #endif /* __ID3D12MetaCommand_INTERFACE_DEFINED__ */
  15299. /* interface __MIDL_itf_d3d12_0000_0050 */
  15300. /* [local] */
  15301. typedef struct D3D12_DISPATCH_RAYS_DESC
  15302. {
  15303. D3D12_GPU_VIRTUAL_ADDRESS_RANGE RayGenerationShaderRecord;
  15304. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE MissShaderTable;
  15305. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE HitGroupTable;
  15306. D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE CallableShaderTable;
  15307. UINT Width;
  15308. UINT Height;
  15309. UINT Depth;
  15310. } D3D12_DISPATCH_RAYS_DESC;
  15311. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0050_v0_0_c_ifspec;
  15312. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0050_v0_0_s_ifspec;
  15313. #ifndef __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__
  15314. #define __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__
  15315. /* interface ID3D12GraphicsCommandList4 */
  15316. /* [unique][local][object][uuid] */
  15317. EXTERN_C const IID IID_ID3D12GraphicsCommandList4;
  15318. #if defined(__cplusplus) && !defined(CINTERFACE)
  15319. MIDL_INTERFACE("8754318e-d3a9-4541-98cf-645b50dc4874")
  15320. ID3D12GraphicsCommandList4 : public ID3D12GraphicsCommandList3
  15321. {
  15322. public:
  15323. virtual void STDMETHODCALLTYPE BeginRenderPass(
  15324. _In_ UINT NumRenderTargets,
  15325. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  15326. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  15327. D3D12_RENDER_PASS_FLAGS Flags) = 0;
  15328. virtual void STDMETHODCALLTYPE EndRenderPass( void) = 0;
  15329. virtual void STDMETHODCALLTYPE InitializeMetaCommand(
  15330. _In_ ID3D12MetaCommand *pMetaCommand,
  15331. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  15332. _In_ SIZE_T InitializationParametersDataSizeInBytes) = 0;
  15333. virtual void STDMETHODCALLTYPE ExecuteMetaCommand(
  15334. _In_ ID3D12MetaCommand *pMetaCommand,
  15335. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  15336. _In_ SIZE_T ExecutionParametersDataSizeInBytes) = 0;
  15337. virtual void STDMETHODCALLTYPE BuildRaytracingAccelerationStructure(
  15338. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  15339. _In_ UINT NumPostbuildInfoDescs,
  15340. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs) = 0;
  15341. virtual void STDMETHODCALLTYPE EmitRaytracingAccelerationStructurePostbuildInfo(
  15342. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  15343. _In_ UINT NumSourceAccelerationStructures,
  15344. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData) = 0;
  15345. virtual void STDMETHODCALLTYPE CopyRaytracingAccelerationStructure(
  15346. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  15347. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  15348. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode) = 0;
  15349. virtual void STDMETHODCALLTYPE SetPipelineState1(
  15350. _In_ ID3D12StateObject *pStateObject) = 0;
  15351. virtual void STDMETHODCALLTYPE DispatchRays(
  15352. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc) = 0;
  15353. };
  15354. #else /* C style interface */
  15355. typedef struct ID3D12GraphicsCommandList4Vtbl
  15356. {
  15357. BEGIN_INTERFACE
  15358. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  15359. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15360. ID3D12GraphicsCommandList4 * This,
  15361. REFIID riid,
  15362. _COM_Outptr_ void **ppvObject);
  15363. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  15364. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15365. ID3D12GraphicsCommandList4 * This);
  15366. DECLSPEC_XFGVIRT(IUnknown, Release)
  15367. ULONG ( STDMETHODCALLTYPE *Release )(
  15368. ID3D12GraphicsCommandList4 * This);
  15369. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  15370. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  15371. ID3D12GraphicsCommandList4 * This,
  15372. _In_ REFGUID guid,
  15373. _Inout_ UINT *pDataSize,
  15374. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  15375. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  15376. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  15377. ID3D12GraphicsCommandList4 * This,
  15378. _In_ REFGUID guid,
  15379. _In_ UINT DataSize,
  15380. _In_reads_bytes_opt_( DataSize ) const void *pData);
  15381. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  15382. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  15383. ID3D12GraphicsCommandList4 * This,
  15384. _In_ REFGUID guid,
  15385. _In_opt_ const IUnknown *pData);
  15386. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  15387. HRESULT ( STDMETHODCALLTYPE *SetName )(
  15388. ID3D12GraphicsCommandList4 * This,
  15389. _In_z_ LPCWSTR Name);
  15390. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  15391. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  15392. ID3D12GraphicsCommandList4 * This,
  15393. REFIID riid,
  15394. _COM_Outptr_opt_ void **ppvDevice);
  15395. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  15396. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  15397. ID3D12GraphicsCommandList4 * This);
  15398. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  15399. HRESULT ( STDMETHODCALLTYPE *Close )(
  15400. ID3D12GraphicsCommandList4 * This);
  15401. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  15402. HRESULT ( STDMETHODCALLTYPE *Reset )(
  15403. ID3D12GraphicsCommandList4 * This,
  15404. _In_ ID3D12CommandAllocator *pAllocator,
  15405. _In_opt_ ID3D12PipelineState *pInitialState);
  15406. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  15407. void ( STDMETHODCALLTYPE *ClearState )(
  15408. ID3D12GraphicsCommandList4 * This,
  15409. _In_opt_ ID3D12PipelineState *pPipelineState);
  15410. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  15411. void ( STDMETHODCALLTYPE *DrawInstanced )(
  15412. ID3D12GraphicsCommandList4 * This,
  15413. _In_ UINT VertexCountPerInstance,
  15414. _In_ UINT InstanceCount,
  15415. _In_ UINT StartVertexLocation,
  15416. _In_ UINT StartInstanceLocation);
  15417. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  15418. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  15419. ID3D12GraphicsCommandList4 * This,
  15420. _In_ UINT IndexCountPerInstance,
  15421. _In_ UINT InstanceCount,
  15422. _In_ UINT StartIndexLocation,
  15423. _In_ INT BaseVertexLocation,
  15424. _In_ UINT StartInstanceLocation);
  15425. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  15426. void ( STDMETHODCALLTYPE *Dispatch )(
  15427. ID3D12GraphicsCommandList4 * This,
  15428. _In_ UINT ThreadGroupCountX,
  15429. _In_ UINT ThreadGroupCountY,
  15430. _In_ UINT ThreadGroupCountZ);
  15431. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  15432. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  15433. ID3D12GraphicsCommandList4 * This,
  15434. _In_ ID3D12Resource *pDstBuffer,
  15435. UINT64 DstOffset,
  15436. _In_ ID3D12Resource *pSrcBuffer,
  15437. UINT64 SrcOffset,
  15438. UINT64 NumBytes);
  15439. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  15440. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  15441. ID3D12GraphicsCommandList4 * This,
  15442. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  15443. UINT DstX,
  15444. UINT DstY,
  15445. UINT DstZ,
  15446. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  15447. _In_opt_ const D3D12_BOX *pSrcBox);
  15448. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  15449. void ( STDMETHODCALLTYPE *CopyResource )(
  15450. ID3D12GraphicsCommandList4 * This,
  15451. _In_ ID3D12Resource *pDstResource,
  15452. _In_ ID3D12Resource *pSrcResource);
  15453. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  15454. void ( STDMETHODCALLTYPE *CopyTiles )(
  15455. ID3D12GraphicsCommandList4 * This,
  15456. _In_ ID3D12Resource *pTiledResource,
  15457. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  15458. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  15459. _In_ ID3D12Resource *pBuffer,
  15460. UINT64 BufferStartOffsetInBytes,
  15461. D3D12_TILE_COPY_FLAGS Flags);
  15462. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  15463. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  15464. ID3D12GraphicsCommandList4 * This,
  15465. _In_ ID3D12Resource *pDstResource,
  15466. _In_ UINT DstSubresource,
  15467. _In_ ID3D12Resource *pSrcResource,
  15468. _In_ UINT SrcSubresource,
  15469. _In_ DXGI_FORMAT Format);
  15470. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  15471. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  15472. ID3D12GraphicsCommandList4 * This,
  15473. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  15474. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  15475. void ( STDMETHODCALLTYPE *RSSetViewports )(
  15476. ID3D12GraphicsCommandList4 * This,
  15477. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  15478. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  15479. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  15480. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  15481. ID3D12GraphicsCommandList4 * This,
  15482. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  15483. _In_reads_( NumRects) const D3D12_RECT *pRects);
  15484. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  15485. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  15486. ID3D12GraphicsCommandList4 * This,
  15487. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  15488. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  15489. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  15490. ID3D12GraphicsCommandList4 * This,
  15491. _In_ UINT StencilRef);
  15492. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  15493. void ( STDMETHODCALLTYPE *SetPipelineState )(
  15494. ID3D12GraphicsCommandList4 * This,
  15495. _In_ ID3D12PipelineState *pPipelineState);
  15496. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  15497. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  15498. ID3D12GraphicsCommandList4 * This,
  15499. _In_ UINT NumBarriers,
  15500. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  15501. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  15502. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  15503. ID3D12GraphicsCommandList4 * This,
  15504. _In_ ID3D12GraphicsCommandList *pCommandList);
  15505. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  15506. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  15507. ID3D12GraphicsCommandList4 * This,
  15508. _In_ UINT NumDescriptorHeaps,
  15509. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  15510. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  15511. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  15512. ID3D12GraphicsCommandList4 * This,
  15513. _In_opt_ ID3D12RootSignature *pRootSignature);
  15514. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  15515. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  15516. ID3D12GraphicsCommandList4 * This,
  15517. _In_opt_ ID3D12RootSignature *pRootSignature);
  15518. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  15519. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  15520. ID3D12GraphicsCommandList4 * This,
  15521. _In_ UINT RootParameterIndex,
  15522. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  15523. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  15524. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  15525. ID3D12GraphicsCommandList4 * This,
  15526. _In_ UINT RootParameterIndex,
  15527. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  15528. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  15529. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  15530. ID3D12GraphicsCommandList4 * This,
  15531. _In_ UINT RootParameterIndex,
  15532. _In_ UINT SrcData,
  15533. _In_ UINT DestOffsetIn32BitValues);
  15534. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  15535. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  15536. ID3D12GraphicsCommandList4 * This,
  15537. _In_ UINT RootParameterIndex,
  15538. _In_ UINT SrcData,
  15539. _In_ UINT DestOffsetIn32BitValues);
  15540. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  15541. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  15542. ID3D12GraphicsCommandList4 * This,
  15543. _In_ UINT RootParameterIndex,
  15544. _In_ UINT Num32BitValuesToSet,
  15545. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  15546. _In_ UINT DestOffsetIn32BitValues);
  15547. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  15548. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  15549. ID3D12GraphicsCommandList4 * This,
  15550. _In_ UINT RootParameterIndex,
  15551. _In_ UINT Num32BitValuesToSet,
  15552. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  15553. _In_ UINT DestOffsetIn32BitValues);
  15554. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  15555. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  15556. ID3D12GraphicsCommandList4 * This,
  15557. _In_ UINT RootParameterIndex,
  15558. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15559. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  15560. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  15561. ID3D12GraphicsCommandList4 * This,
  15562. _In_ UINT RootParameterIndex,
  15563. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15564. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  15565. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  15566. ID3D12GraphicsCommandList4 * This,
  15567. _In_ UINT RootParameterIndex,
  15568. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15569. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  15570. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  15571. ID3D12GraphicsCommandList4 * This,
  15572. _In_ UINT RootParameterIndex,
  15573. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15574. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  15575. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  15576. ID3D12GraphicsCommandList4 * This,
  15577. _In_ UINT RootParameterIndex,
  15578. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15579. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  15580. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  15581. ID3D12GraphicsCommandList4 * This,
  15582. _In_ UINT RootParameterIndex,
  15583. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  15584. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  15585. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  15586. ID3D12GraphicsCommandList4 * This,
  15587. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  15588. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  15589. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  15590. ID3D12GraphicsCommandList4 * This,
  15591. _In_ UINT StartSlot,
  15592. _In_ UINT NumViews,
  15593. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  15594. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  15595. void ( STDMETHODCALLTYPE *SOSetTargets )(
  15596. ID3D12GraphicsCommandList4 * This,
  15597. _In_ UINT StartSlot,
  15598. _In_ UINT NumViews,
  15599. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  15600. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  15601. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  15602. ID3D12GraphicsCommandList4 * This,
  15603. _In_ UINT NumRenderTargetDescriptors,
  15604. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  15605. _In_ BOOL RTsSingleHandleToDescriptorRange,
  15606. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  15607. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  15608. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  15609. ID3D12GraphicsCommandList4 * This,
  15610. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  15611. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  15612. _In_ FLOAT Depth,
  15613. _In_ UINT8 Stencil,
  15614. _In_ UINT NumRects,
  15615. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15616. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  15617. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  15618. ID3D12GraphicsCommandList4 * This,
  15619. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  15620. _In_ const FLOAT ColorRGBA[ 4 ],
  15621. _In_ UINT NumRects,
  15622. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15623. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  15624. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  15625. ID3D12GraphicsCommandList4 * This,
  15626. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  15627. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  15628. _In_ ID3D12Resource *pResource,
  15629. _In_ const UINT Values[ 4 ],
  15630. _In_ UINT NumRects,
  15631. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15632. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  15633. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  15634. ID3D12GraphicsCommandList4 * This,
  15635. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  15636. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  15637. _In_ ID3D12Resource *pResource,
  15638. _In_ const FLOAT Values[ 4 ],
  15639. _In_ UINT NumRects,
  15640. _In_reads_(NumRects) const D3D12_RECT *pRects);
  15641. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  15642. void ( STDMETHODCALLTYPE *DiscardResource )(
  15643. ID3D12GraphicsCommandList4 * This,
  15644. _In_ ID3D12Resource *pResource,
  15645. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  15646. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  15647. void ( STDMETHODCALLTYPE *BeginQuery )(
  15648. ID3D12GraphicsCommandList4 * This,
  15649. _In_ ID3D12QueryHeap *pQueryHeap,
  15650. _In_ D3D12_QUERY_TYPE Type,
  15651. _In_ UINT Index);
  15652. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  15653. void ( STDMETHODCALLTYPE *EndQuery )(
  15654. ID3D12GraphicsCommandList4 * This,
  15655. _In_ ID3D12QueryHeap *pQueryHeap,
  15656. _In_ D3D12_QUERY_TYPE Type,
  15657. _In_ UINT Index);
  15658. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  15659. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  15660. ID3D12GraphicsCommandList4 * This,
  15661. _In_ ID3D12QueryHeap *pQueryHeap,
  15662. _In_ D3D12_QUERY_TYPE Type,
  15663. _In_ UINT StartIndex,
  15664. _In_ UINT NumQueries,
  15665. _In_ ID3D12Resource *pDestinationBuffer,
  15666. _In_ UINT64 AlignedDestinationBufferOffset);
  15667. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  15668. void ( STDMETHODCALLTYPE *SetPredication )(
  15669. ID3D12GraphicsCommandList4 * This,
  15670. _In_opt_ ID3D12Resource *pBuffer,
  15671. _In_ UINT64 AlignedBufferOffset,
  15672. _In_ D3D12_PREDICATION_OP Operation);
  15673. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  15674. void ( STDMETHODCALLTYPE *SetMarker )(
  15675. ID3D12GraphicsCommandList4 * This,
  15676. UINT Metadata,
  15677. _In_reads_bytes_opt_(Size) const void *pData,
  15678. UINT Size);
  15679. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  15680. void ( STDMETHODCALLTYPE *BeginEvent )(
  15681. ID3D12GraphicsCommandList4 * This,
  15682. UINT Metadata,
  15683. _In_reads_bytes_opt_(Size) const void *pData,
  15684. UINT Size);
  15685. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  15686. void ( STDMETHODCALLTYPE *EndEvent )(
  15687. ID3D12GraphicsCommandList4 * This);
  15688. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  15689. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  15690. ID3D12GraphicsCommandList4 * This,
  15691. _In_ ID3D12CommandSignature *pCommandSignature,
  15692. _In_ UINT MaxCommandCount,
  15693. _In_ ID3D12Resource *pArgumentBuffer,
  15694. _In_ UINT64 ArgumentBufferOffset,
  15695. _In_opt_ ID3D12Resource *pCountBuffer,
  15696. _In_ UINT64 CountBufferOffset);
  15697. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  15698. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  15699. ID3D12GraphicsCommandList4 * This,
  15700. _In_ ID3D12Resource *pDstBuffer,
  15701. UINT64 DstOffset,
  15702. _In_ ID3D12Resource *pSrcBuffer,
  15703. UINT64 SrcOffset,
  15704. UINT Dependencies,
  15705. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  15706. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  15707. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  15708. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  15709. ID3D12GraphicsCommandList4 * This,
  15710. _In_ ID3D12Resource *pDstBuffer,
  15711. UINT64 DstOffset,
  15712. _In_ ID3D12Resource *pSrcBuffer,
  15713. UINT64 SrcOffset,
  15714. UINT Dependencies,
  15715. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  15716. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  15717. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  15718. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  15719. ID3D12GraphicsCommandList4 * This,
  15720. _In_ FLOAT Min,
  15721. _In_ FLOAT Max);
  15722. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  15723. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  15724. ID3D12GraphicsCommandList4 * This,
  15725. _In_ UINT NumSamplesPerPixel,
  15726. _In_ UINT NumPixels,
  15727. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  15728. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  15729. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  15730. ID3D12GraphicsCommandList4 * This,
  15731. _In_ ID3D12Resource *pDstResource,
  15732. _In_ UINT DstSubresource,
  15733. _In_ UINT DstX,
  15734. _In_ UINT DstY,
  15735. _In_ ID3D12Resource *pSrcResource,
  15736. _In_ UINT SrcSubresource,
  15737. _In_opt_ D3D12_RECT *pSrcRect,
  15738. _In_ DXGI_FORMAT Format,
  15739. _In_ D3D12_RESOLVE_MODE ResolveMode);
  15740. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  15741. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  15742. ID3D12GraphicsCommandList4 * This,
  15743. _In_ UINT Mask);
  15744. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  15745. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  15746. ID3D12GraphicsCommandList4 * This,
  15747. UINT Count,
  15748. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  15749. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  15750. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  15751. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  15752. ID3D12GraphicsCommandList4 * This,
  15753. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  15754. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  15755. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  15756. ID3D12GraphicsCommandList4 * This,
  15757. _In_ UINT NumRenderTargets,
  15758. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  15759. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  15760. D3D12_RENDER_PASS_FLAGS Flags);
  15761. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  15762. void ( STDMETHODCALLTYPE *EndRenderPass )(
  15763. ID3D12GraphicsCommandList4 * This);
  15764. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  15765. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  15766. ID3D12GraphicsCommandList4 * This,
  15767. _In_ ID3D12MetaCommand *pMetaCommand,
  15768. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  15769. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  15770. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  15771. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  15772. ID3D12GraphicsCommandList4 * This,
  15773. _In_ ID3D12MetaCommand *pMetaCommand,
  15774. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  15775. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  15776. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  15777. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  15778. ID3D12GraphicsCommandList4 * This,
  15779. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  15780. _In_ UINT NumPostbuildInfoDescs,
  15781. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  15782. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  15783. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  15784. ID3D12GraphicsCommandList4 * This,
  15785. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  15786. _In_ UINT NumSourceAccelerationStructures,
  15787. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  15788. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  15789. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  15790. ID3D12GraphicsCommandList4 * This,
  15791. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  15792. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  15793. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  15794. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  15795. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  15796. ID3D12GraphicsCommandList4 * This,
  15797. _In_ ID3D12StateObject *pStateObject);
  15798. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  15799. void ( STDMETHODCALLTYPE *DispatchRays )(
  15800. ID3D12GraphicsCommandList4 * This,
  15801. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  15802. END_INTERFACE
  15803. } ID3D12GraphicsCommandList4Vtbl;
  15804. interface ID3D12GraphicsCommandList4
  15805. {
  15806. CONST_VTBL struct ID3D12GraphicsCommandList4Vtbl *lpVtbl;
  15807. };
  15808. #ifdef COBJMACROS
  15809. #define ID3D12GraphicsCommandList4_QueryInterface(This,riid,ppvObject) \
  15810. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  15811. #define ID3D12GraphicsCommandList4_AddRef(This) \
  15812. ( (This)->lpVtbl -> AddRef(This) )
  15813. #define ID3D12GraphicsCommandList4_Release(This) \
  15814. ( (This)->lpVtbl -> Release(This) )
  15815. #define ID3D12GraphicsCommandList4_GetPrivateData(This,guid,pDataSize,pData) \
  15816. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  15817. #define ID3D12GraphicsCommandList4_SetPrivateData(This,guid,DataSize,pData) \
  15818. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  15819. #define ID3D12GraphicsCommandList4_SetPrivateDataInterface(This,guid,pData) \
  15820. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  15821. #define ID3D12GraphicsCommandList4_SetName(This,Name) \
  15822. ( (This)->lpVtbl -> SetName(This,Name) )
  15823. #define ID3D12GraphicsCommandList4_GetDevice(This,riid,ppvDevice) \
  15824. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  15825. #define ID3D12GraphicsCommandList4_GetType(This) \
  15826. ( (This)->lpVtbl -> GetType(This) )
  15827. #define ID3D12GraphicsCommandList4_Close(This) \
  15828. ( (This)->lpVtbl -> Close(This) )
  15829. #define ID3D12GraphicsCommandList4_Reset(This,pAllocator,pInitialState) \
  15830. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  15831. #define ID3D12GraphicsCommandList4_ClearState(This,pPipelineState) \
  15832. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  15833. #define ID3D12GraphicsCommandList4_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  15834. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  15835. #define ID3D12GraphicsCommandList4_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  15836. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  15837. #define ID3D12GraphicsCommandList4_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  15838. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  15839. #define ID3D12GraphicsCommandList4_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  15840. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  15841. #define ID3D12GraphicsCommandList4_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  15842. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  15843. #define ID3D12GraphicsCommandList4_CopyResource(This,pDstResource,pSrcResource) \
  15844. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  15845. #define ID3D12GraphicsCommandList4_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  15846. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  15847. #define ID3D12GraphicsCommandList4_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  15848. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  15849. #define ID3D12GraphicsCommandList4_IASetPrimitiveTopology(This,PrimitiveTopology) \
  15850. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  15851. #define ID3D12GraphicsCommandList4_RSSetViewports(This,NumViewports,pViewports) \
  15852. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  15853. #define ID3D12GraphicsCommandList4_RSSetScissorRects(This,NumRects,pRects) \
  15854. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  15855. #define ID3D12GraphicsCommandList4_OMSetBlendFactor(This,BlendFactor) \
  15856. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  15857. #define ID3D12GraphicsCommandList4_OMSetStencilRef(This,StencilRef) \
  15858. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  15859. #define ID3D12GraphicsCommandList4_SetPipelineState(This,pPipelineState) \
  15860. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  15861. #define ID3D12GraphicsCommandList4_ResourceBarrier(This,NumBarriers,pBarriers) \
  15862. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  15863. #define ID3D12GraphicsCommandList4_ExecuteBundle(This,pCommandList) \
  15864. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  15865. #define ID3D12GraphicsCommandList4_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  15866. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  15867. #define ID3D12GraphicsCommandList4_SetComputeRootSignature(This,pRootSignature) \
  15868. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  15869. #define ID3D12GraphicsCommandList4_SetGraphicsRootSignature(This,pRootSignature) \
  15870. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  15871. #define ID3D12GraphicsCommandList4_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  15872. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  15873. #define ID3D12GraphicsCommandList4_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  15874. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  15875. #define ID3D12GraphicsCommandList4_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  15876. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  15877. #define ID3D12GraphicsCommandList4_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  15878. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  15879. #define ID3D12GraphicsCommandList4_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  15880. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  15881. #define ID3D12GraphicsCommandList4_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  15882. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  15883. #define ID3D12GraphicsCommandList4_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  15884. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  15885. #define ID3D12GraphicsCommandList4_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  15886. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  15887. #define ID3D12GraphicsCommandList4_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  15888. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  15889. #define ID3D12GraphicsCommandList4_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  15890. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  15891. #define ID3D12GraphicsCommandList4_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  15892. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  15893. #define ID3D12GraphicsCommandList4_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  15894. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  15895. #define ID3D12GraphicsCommandList4_IASetIndexBuffer(This,pView) \
  15896. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  15897. #define ID3D12GraphicsCommandList4_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  15898. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  15899. #define ID3D12GraphicsCommandList4_SOSetTargets(This,StartSlot,NumViews,pViews) \
  15900. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  15901. #define ID3D12GraphicsCommandList4_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  15902. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  15903. #define ID3D12GraphicsCommandList4_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  15904. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  15905. #define ID3D12GraphicsCommandList4_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  15906. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  15907. #define ID3D12GraphicsCommandList4_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  15908. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  15909. #define ID3D12GraphicsCommandList4_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  15910. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  15911. #define ID3D12GraphicsCommandList4_DiscardResource(This,pResource,pRegion) \
  15912. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  15913. #define ID3D12GraphicsCommandList4_BeginQuery(This,pQueryHeap,Type,Index) \
  15914. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  15915. #define ID3D12GraphicsCommandList4_EndQuery(This,pQueryHeap,Type,Index) \
  15916. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  15917. #define ID3D12GraphicsCommandList4_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  15918. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  15919. #define ID3D12GraphicsCommandList4_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  15920. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  15921. #define ID3D12GraphicsCommandList4_SetMarker(This,Metadata,pData,Size) \
  15922. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  15923. #define ID3D12GraphicsCommandList4_BeginEvent(This,Metadata,pData,Size) \
  15924. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  15925. #define ID3D12GraphicsCommandList4_EndEvent(This) \
  15926. ( (This)->lpVtbl -> EndEvent(This) )
  15927. #define ID3D12GraphicsCommandList4_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  15928. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  15929. #define ID3D12GraphicsCommandList4_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  15930. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  15931. #define ID3D12GraphicsCommandList4_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  15932. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  15933. #define ID3D12GraphicsCommandList4_OMSetDepthBounds(This,Min,Max) \
  15934. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  15935. #define ID3D12GraphicsCommandList4_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  15936. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  15937. #define ID3D12GraphicsCommandList4_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  15938. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  15939. #define ID3D12GraphicsCommandList4_SetViewInstanceMask(This,Mask) \
  15940. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  15941. #define ID3D12GraphicsCommandList4_WriteBufferImmediate(This,Count,pParams,pModes) \
  15942. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  15943. #define ID3D12GraphicsCommandList4_SetProtectedResourceSession(This,pProtectedResourceSession) \
  15944. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  15945. #define ID3D12GraphicsCommandList4_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  15946. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  15947. #define ID3D12GraphicsCommandList4_EndRenderPass(This) \
  15948. ( (This)->lpVtbl -> EndRenderPass(This) )
  15949. #define ID3D12GraphicsCommandList4_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  15950. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  15951. #define ID3D12GraphicsCommandList4_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  15952. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  15953. #define ID3D12GraphicsCommandList4_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  15954. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  15955. #define ID3D12GraphicsCommandList4_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  15956. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  15957. #define ID3D12GraphicsCommandList4_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  15958. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  15959. #define ID3D12GraphicsCommandList4_SetPipelineState1(This,pStateObject) \
  15960. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  15961. #define ID3D12GraphicsCommandList4_DispatchRays(This,pDesc) \
  15962. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  15963. #endif /* COBJMACROS */
  15964. #endif /* C style interface */
  15965. #endif /* __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__ */
  15966. /* interface __MIDL_itf_d3d12_0000_0051 */
  15967. /* [local] */
  15968. typedef
  15969. enum D3D12_SHADER_CACHE_MODE
  15970. {
  15971. D3D12_SHADER_CACHE_MODE_MEMORY = 0,
  15972. D3D12_SHADER_CACHE_MODE_DISK = ( D3D12_SHADER_CACHE_MODE_MEMORY + 1 )
  15973. } D3D12_SHADER_CACHE_MODE;
  15974. typedef
  15975. enum D3D12_SHADER_CACHE_FLAGS
  15976. {
  15977. D3D12_SHADER_CACHE_FLAG_NONE = 0,
  15978. D3D12_SHADER_CACHE_FLAG_DRIVER_VERSIONED = 0x1,
  15979. D3D12_SHADER_CACHE_FLAG_USE_WORKING_DIR = 0x2
  15980. } D3D12_SHADER_CACHE_FLAGS;
  15981. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_FLAGS );
  15982. typedef struct D3D12_SHADER_CACHE_SESSION_DESC
  15983. {
  15984. GUID Identifier;
  15985. D3D12_SHADER_CACHE_MODE Mode;
  15986. D3D12_SHADER_CACHE_FLAGS Flags;
  15987. UINT MaximumInMemoryCacheSizeBytes;
  15988. UINT MaximumInMemoryCacheEntries;
  15989. UINT MaximumValueFileSizeBytes;
  15990. UINT64 Version;
  15991. } D3D12_SHADER_CACHE_SESSION_DESC;
  15992. typedef
  15993. enum D3D12_BARRIER_LAYOUT
  15994. {
  15995. D3D12_BARRIER_LAYOUT_UNDEFINED = 0xffffffff,
  15996. D3D12_BARRIER_LAYOUT_COMMON = 0,
  15997. D3D12_BARRIER_LAYOUT_PRESENT = 0,
  15998. D3D12_BARRIER_LAYOUT_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_PRESENT + 1 ) ,
  15999. D3D12_BARRIER_LAYOUT_RENDER_TARGET = ( D3D12_BARRIER_LAYOUT_GENERIC_READ + 1 ) ,
  16000. D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_RENDER_TARGET + 1 ) ,
  16001. D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE = ( D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS + 1 ) ,
  16002. D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ = ( D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE + 1 ) ,
  16003. D3D12_BARRIER_LAYOUT_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ + 1 ) ,
  16004. D3D12_BARRIER_LAYOUT_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_SHADER_RESOURCE + 1 ) ,
  16005. D3D12_BARRIER_LAYOUT_COPY_DEST = ( D3D12_BARRIER_LAYOUT_COPY_SOURCE + 1 ) ,
  16006. D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE = ( D3D12_BARRIER_LAYOUT_COPY_DEST + 1 ) ,
  16007. D3D12_BARRIER_LAYOUT_RESOLVE_DEST = ( D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE + 1 ) ,
  16008. D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE = ( D3D12_BARRIER_LAYOUT_RESOLVE_DEST + 1 ) ,
  16009. D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ = ( D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE + 1 ) ,
  16010. D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ + 1 ) ,
  16011. D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ = ( D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE + 1 ) ,
  16012. D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ + 1 ) ,
  16013. D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ = ( D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE + 1 ) ,
  16014. D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ + 1 ) ,
  16015. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE + 1 ) ,
  16016. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON + 1 ) ,
  16017. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ + 1 ) ,
  16018. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS + 1 ) ,
  16019. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE + 1 ) ,
  16020. D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE + 1 ) ,
  16021. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST + 1 ) ,
  16022. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON + 1 ) ,
  16023. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ + 1 ) ,
  16024. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS + 1 ) ,
  16025. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE + 1 ) ,
  16026. D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE + 1 ) ,
  16027. D3D12_BARRIER_LAYOUT_VIDEO_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST + 1 )
  16028. } D3D12_BARRIER_LAYOUT;
  16029. typedef
  16030. enum D3D12_BARRIER_SYNC
  16031. {
  16032. D3D12_BARRIER_SYNC_NONE = 0,
  16033. D3D12_BARRIER_SYNC_ALL = 0x1,
  16034. D3D12_BARRIER_SYNC_DRAW = 0x2,
  16035. D3D12_BARRIER_SYNC_INDEX_INPUT = 0x4,
  16036. D3D12_BARRIER_SYNC_VERTEX_SHADING = 0x8,
  16037. D3D12_BARRIER_SYNC_PIXEL_SHADING = 0x10,
  16038. D3D12_BARRIER_SYNC_DEPTH_STENCIL = 0x20,
  16039. D3D12_BARRIER_SYNC_RENDER_TARGET = 0x40,
  16040. D3D12_BARRIER_SYNC_COMPUTE_SHADING = 0x80,
  16041. D3D12_BARRIER_SYNC_RAYTRACING = 0x100,
  16042. D3D12_BARRIER_SYNC_COPY = 0x200,
  16043. D3D12_BARRIER_SYNC_RESOLVE = 0x400,
  16044. D3D12_BARRIER_SYNC_EXECUTE_INDIRECT = 0x800,
  16045. D3D12_BARRIER_SYNC_PREDICATION = 0x800,
  16046. D3D12_BARRIER_SYNC_ALL_SHADING = 0x1000,
  16047. D3D12_BARRIER_SYNC_NON_PIXEL_SHADING = 0x2000,
  16048. D3D12_BARRIER_SYNC_EMIT_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO = 0x4000,
  16049. D3D12_BARRIER_SYNC_CLEAR_UNORDERED_ACCESS_VIEW = 0x8000,
  16050. D3D12_BARRIER_SYNC_VIDEO_DECODE = 0x100000,
  16051. D3D12_BARRIER_SYNC_VIDEO_PROCESS = 0x200000,
  16052. D3D12_BARRIER_SYNC_VIDEO_ENCODE = 0x400000,
  16053. D3D12_BARRIER_SYNC_BUILD_RAYTRACING_ACCELERATION_STRUCTURE = 0x800000,
  16054. D3D12_BARRIER_SYNC_COPY_RAYTRACING_ACCELERATION_STRUCTURE = 0x1000000,
  16055. D3D12_BARRIER_SYNC_SPLIT = 0x80000000
  16056. } D3D12_BARRIER_SYNC;
  16057. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_SYNC );
  16058. typedef
  16059. enum D3D12_BARRIER_ACCESS
  16060. {
  16061. D3D12_BARRIER_ACCESS_COMMON = 0,
  16062. D3D12_BARRIER_ACCESS_VERTEX_BUFFER = 0x1,
  16063. D3D12_BARRIER_ACCESS_CONSTANT_BUFFER = 0x2,
  16064. D3D12_BARRIER_ACCESS_INDEX_BUFFER = 0x4,
  16065. D3D12_BARRIER_ACCESS_RENDER_TARGET = 0x8,
  16066. D3D12_BARRIER_ACCESS_UNORDERED_ACCESS = 0x10,
  16067. D3D12_BARRIER_ACCESS_DEPTH_STENCIL_WRITE = 0x20,
  16068. D3D12_BARRIER_ACCESS_DEPTH_STENCIL_READ = 0x40,
  16069. D3D12_BARRIER_ACCESS_SHADER_RESOURCE = 0x80,
  16070. D3D12_BARRIER_ACCESS_STREAM_OUTPUT = 0x100,
  16071. D3D12_BARRIER_ACCESS_INDIRECT_ARGUMENT = 0x200,
  16072. D3D12_BARRIER_ACCESS_PREDICATION = 0x200,
  16073. D3D12_BARRIER_ACCESS_COPY_DEST = 0x400,
  16074. D3D12_BARRIER_ACCESS_COPY_SOURCE = 0x800,
  16075. D3D12_BARRIER_ACCESS_RESOLVE_DEST = 0x1000,
  16076. D3D12_BARRIER_ACCESS_RESOLVE_SOURCE = 0x2000,
  16077. D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_READ = 0x4000,
  16078. D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_WRITE = 0x8000,
  16079. D3D12_BARRIER_ACCESS_SHADING_RATE_SOURCE = 0x10000,
  16080. D3D12_BARRIER_ACCESS_VIDEO_DECODE_READ = 0x20000,
  16081. D3D12_BARRIER_ACCESS_VIDEO_DECODE_WRITE = 0x40000,
  16082. D3D12_BARRIER_ACCESS_VIDEO_PROCESS_READ = 0x80000,
  16083. D3D12_BARRIER_ACCESS_VIDEO_PROCESS_WRITE = 0x100000,
  16084. D3D12_BARRIER_ACCESS_VIDEO_ENCODE_READ = 0x200000,
  16085. D3D12_BARRIER_ACCESS_VIDEO_ENCODE_WRITE = 0x400000,
  16086. D3D12_BARRIER_ACCESS_NO_ACCESS = 0x80000000
  16087. } D3D12_BARRIER_ACCESS;
  16088. DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_ACCESS );
  16089. typedef
  16090. enum D3D12_BARRIER_TYPE
  16091. {
  16092. D3D12_BARRIER_TYPE_GLOBAL = 0,
  16093. D3D12_BARRIER_TYPE_TEXTURE = ( D3D12_BARRIER_TYPE_GLOBAL + 1 ) ,
  16094. D3D12_BARRIER_TYPE_BUFFER = ( D3D12_BARRIER_TYPE_TEXTURE + 1 )
  16095. } D3D12_BARRIER_TYPE;
  16096. typedef
  16097. enum D3D12_TEXTURE_BARRIER_FLAGS
  16098. {
  16099. D3D12_TEXTURE_BARRIER_FLAG_NONE = 0,
  16100. D3D12_TEXTURE_BARRIER_FLAG_DISCARD = 0x1
  16101. } D3D12_TEXTURE_BARRIER_FLAGS;
  16102. DEFINE_ENUM_FLAG_OPERATORS( D3D12_TEXTURE_BARRIER_FLAGS );
  16103. typedef struct D3D12_BARRIER_SUBRESOURCE_RANGE
  16104. {
  16105. UINT IndexOrFirstMipLevel;
  16106. UINT NumMipLevels;
  16107. UINT FirstArraySlice;
  16108. UINT NumArraySlices;
  16109. UINT FirstPlane;
  16110. UINT NumPlanes;
  16111. } D3D12_BARRIER_SUBRESOURCE_RANGE;
  16112. typedef struct D3D12_GLOBAL_BARRIER
  16113. {
  16114. D3D12_BARRIER_SYNC SyncBefore;
  16115. D3D12_BARRIER_SYNC SyncAfter;
  16116. D3D12_BARRIER_ACCESS AccessBefore;
  16117. D3D12_BARRIER_ACCESS AccessAfter;
  16118. } D3D12_GLOBAL_BARRIER;
  16119. typedef struct D3D12_TEXTURE_BARRIER
  16120. {
  16121. D3D12_BARRIER_SYNC SyncBefore;
  16122. D3D12_BARRIER_SYNC SyncAfter;
  16123. D3D12_BARRIER_ACCESS AccessBefore;
  16124. D3D12_BARRIER_ACCESS AccessAfter;
  16125. D3D12_BARRIER_LAYOUT LayoutBefore;
  16126. D3D12_BARRIER_LAYOUT LayoutAfter;
  16127. _In_ ID3D12Resource *pResource;
  16128. D3D12_BARRIER_SUBRESOURCE_RANGE Subresources;
  16129. D3D12_TEXTURE_BARRIER_FLAGS Flags;
  16130. } D3D12_TEXTURE_BARRIER;
  16131. typedef struct D3D12_BUFFER_BARRIER
  16132. {
  16133. D3D12_BARRIER_SYNC SyncBefore;
  16134. D3D12_BARRIER_SYNC SyncAfter;
  16135. D3D12_BARRIER_ACCESS AccessBefore;
  16136. D3D12_BARRIER_ACCESS AccessAfter;
  16137. _In_ ID3D12Resource *pResource;
  16138. UINT64 Offset;
  16139. UINT64 Size;
  16140. } D3D12_BUFFER_BARRIER;
  16141. typedef struct D3D12_BARRIER_GROUP
  16142. {
  16143. D3D12_BARRIER_TYPE Type;
  16144. UINT32 NumBarriers;
  16145. union
  16146. {
  16147. _In_reads_(NumBarriers) const D3D12_GLOBAL_BARRIER *pGlobalBarriers;
  16148. _In_reads_(NumBarriers) const D3D12_TEXTURE_BARRIER *pTextureBarriers;
  16149. _In_reads_(NumBarriers) const D3D12_BUFFER_BARRIER *pBufferBarriers;
  16150. } ;
  16151. } D3D12_BARRIER_GROUP;
  16152. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0051_v0_0_c_ifspec;
  16153. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0051_v0_0_s_ifspec;
  16154. #ifndef __ID3D12ShaderCacheSession_INTERFACE_DEFINED__
  16155. #define __ID3D12ShaderCacheSession_INTERFACE_DEFINED__
  16156. /* interface ID3D12ShaderCacheSession */
  16157. /* [unique][local][object][uuid] */
  16158. EXTERN_C const IID IID_ID3D12ShaderCacheSession;
  16159. #if defined(__cplusplus) && !defined(CINTERFACE)
  16160. MIDL_INTERFACE("28e2495d-0f64-4ae4-a6ec-129255dc49a8")
  16161. ID3D12ShaderCacheSession : public ID3D12DeviceChild
  16162. {
  16163. public:
  16164. virtual HRESULT STDMETHODCALLTYPE FindValue(
  16165. /* [annotation][in] */
  16166. _In_reads_bytes_(KeySize) const void *pKey,
  16167. UINT KeySize,
  16168. /* [annotation][out] */
  16169. _Out_writes_bytes_(*pValueSize) void *pValue,
  16170. _Inout_ UINT *pValueSize) = 0;
  16171. virtual HRESULT STDMETHODCALLTYPE StoreValue(
  16172. /* [annotation][in] */
  16173. _In_reads_bytes_(KeySize) const void *pKey,
  16174. UINT KeySize,
  16175. /* [annotation][in] */
  16176. _In_reads_bytes_(ValueSize) const void *pValue,
  16177. UINT ValueSize) = 0;
  16178. virtual void STDMETHODCALLTYPE SetDeleteOnDestroy( void) = 0;
  16179. #if defined(_MSC_VER) || !defined(_WIN32)
  16180. virtual D3D12_SHADER_CACHE_SESSION_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  16181. #else
  16182. virtual D3D12_SHADER_CACHE_SESSION_DESC *STDMETHODCALLTYPE GetDesc(
  16183. D3D12_SHADER_CACHE_SESSION_DESC * RetVal) = 0;
  16184. #endif
  16185. };
  16186. #else /* C style interface */
  16187. typedef struct ID3D12ShaderCacheSessionVtbl
  16188. {
  16189. BEGIN_INTERFACE
  16190. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  16191. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16192. ID3D12ShaderCacheSession * This,
  16193. REFIID riid,
  16194. _COM_Outptr_ void **ppvObject);
  16195. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  16196. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16197. ID3D12ShaderCacheSession * This);
  16198. DECLSPEC_XFGVIRT(IUnknown, Release)
  16199. ULONG ( STDMETHODCALLTYPE *Release )(
  16200. ID3D12ShaderCacheSession * This);
  16201. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  16202. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  16203. ID3D12ShaderCacheSession * This,
  16204. _In_ REFGUID guid,
  16205. _Inout_ UINT *pDataSize,
  16206. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  16207. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  16208. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  16209. ID3D12ShaderCacheSession * This,
  16210. _In_ REFGUID guid,
  16211. _In_ UINT DataSize,
  16212. _In_reads_bytes_opt_( DataSize ) const void *pData);
  16213. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  16214. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  16215. ID3D12ShaderCacheSession * This,
  16216. _In_ REFGUID guid,
  16217. _In_opt_ const IUnknown *pData);
  16218. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  16219. HRESULT ( STDMETHODCALLTYPE *SetName )(
  16220. ID3D12ShaderCacheSession * This,
  16221. _In_z_ LPCWSTR Name);
  16222. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  16223. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  16224. ID3D12ShaderCacheSession * This,
  16225. REFIID riid,
  16226. _COM_Outptr_opt_ void **ppvDevice);
  16227. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, FindValue)
  16228. HRESULT ( STDMETHODCALLTYPE *FindValue )(
  16229. ID3D12ShaderCacheSession * This,
  16230. /* [annotation][in] */
  16231. _In_reads_bytes_(KeySize) const void *pKey,
  16232. UINT KeySize,
  16233. /* [annotation][out] */
  16234. _Out_writes_bytes_(*pValueSize) void *pValue,
  16235. _Inout_ UINT *pValueSize);
  16236. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, StoreValue)
  16237. HRESULT ( STDMETHODCALLTYPE *StoreValue )(
  16238. ID3D12ShaderCacheSession * This,
  16239. /* [annotation][in] */
  16240. _In_reads_bytes_(KeySize) const void *pKey,
  16241. UINT KeySize,
  16242. /* [annotation][in] */
  16243. _In_reads_bytes_(ValueSize) const void *pValue,
  16244. UINT ValueSize);
  16245. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, SetDeleteOnDestroy)
  16246. void ( STDMETHODCALLTYPE *SetDeleteOnDestroy )(
  16247. ID3D12ShaderCacheSession * This);
  16248. DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, GetDesc)
  16249. #if !defined(_WIN32)
  16250. D3D12_SHADER_CACHE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  16251. ID3D12ShaderCacheSession * This);
  16252. #else
  16253. D3D12_SHADER_CACHE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  16254. ID3D12ShaderCacheSession * This,
  16255. D3D12_SHADER_CACHE_SESSION_DESC * RetVal);
  16256. #endif
  16257. END_INTERFACE
  16258. } ID3D12ShaderCacheSessionVtbl;
  16259. interface ID3D12ShaderCacheSession
  16260. {
  16261. CONST_VTBL struct ID3D12ShaderCacheSessionVtbl *lpVtbl;
  16262. };
  16263. #ifdef COBJMACROS
  16264. #define ID3D12ShaderCacheSession_QueryInterface(This,riid,ppvObject) \
  16265. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  16266. #define ID3D12ShaderCacheSession_AddRef(This) \
  16267. ( (This)->lpVtbl -> AddRef(This) )
  16268. #define ID3D12ShaderCacheSession_Release(This) \
  16269. ( (This)->lpVtbl -> Release(This) )
  16270. #define ID3D12ShaderCacheSession_GetPrivateData(This,guid,pDataSize,pData) \
  16271. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  16272. #define ID3D12ShaderCacheSession_SetPrivateData(This,guid,DataSize,pData) \
  16273. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  16274. #define ID3D12ShaderCacheSession_SetPrivateDataInterface(This,guid,pData) \
  16275. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  16276. #define ID3D12ShaderCacheSession_SetName(This,Name) \
  16277. ( (This)->lpVtbl -> SetName(This,Name) )
  16278. #define ID3D12ShaderCacheSession_GetDevice(This,riid,ppvDevice) \
  16279. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  16280. #define ID3D12ShaderCacheSession_FindValue(This,pKey,KeySize,pValue,pValueSize) \
  16281. ( (This)->lpVtbl -> FindValue(This,pKey,KeySize,pValue,pValueSize) )
  16282. #define ID3D12ShaderCacheSession_StoreValue(This,pKey,KeySize,pValue,ValueSize) \
  16283. ( (This)->lpVtbl -> StoreValue(This,pKey,KeySize,pValue,ValueSize) )
  16284. #define ID3D12ShaderCacheSession_SetDeleteOnDestroy(This) \
  16285. ( (This)->lpVtbl -> SetDeleteOnDestroy(This) )
  16286. #if !defined(_WIN32)
  16287. #define ID3D12ShaderCacheSession_GetDesc(This) \
  16288. ( (This)->lpVtbl -> GetDesc(This) )
  16289. #else
  16290. #define ID3D12ShaderCacheSession_GetDesc(This,RetVal) \
  16291. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  16292. #endif
  16293. #endif /* COBJMACROS */
  16294. #endif /* C style interface */
  16295. #endif /* __ID3D12ShaderCacheSession_INTERFACE_DEFINED__ */
  16296. /* interface __MIDL_itf_d3d12_0000_0052 */
  16297. /* [local] */
  16298. typedef
  16299. enum D3D12_SHADER_CACHE_KIND_FLAGS
  16300. {
  16301. D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CACHE_FOR_DRIVER = 0x1,
  16302. D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CONVERSIONS = 0x2,
  16303. D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_DRIVER_MANAGED = 0x4,
  16304. D3D12_SHADER_CACHE_KIND_FLAG_APPLICATION_MANAGED = 0x8
  16305. } D3D12_SHADER_CACHE_KIND_FLAGS;
  16306. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_KIND_FLAGS );
  16307. typedef
  16308. enum D3D12_SHADER_CACHE_CONTROL_FLAGS
  16309. {
  16310. D3D12_SHADER_CACHE_CONTROL_FLAG_DISABLE = 0x1,
  16311. D3D12_SHADER_CACHE_CONTROL_FLAG_ENABLE = 0x2,
  16312. D3D12_SHADER_CACHE_CONTROL_FLAG_CLEAR = 0x4
  16313. } D3D12_SHADER_CACHE_CONTROL_FLAGS;
  16314. DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_CONTROL_FLAGS );
  16315. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0052_v0_0_c_ifspec;
  16316. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0052_v0_0_s_ifspec;
  16317. #ifndef __ID3D12Device9_INTERFACE_DEFINED__
  16318. #define __ID3D12Device9_INTERFACE_DEFINED__
  16319. /* interface ID3D12Device9 */
  16320. /* [unique][local][object][uuid] */
  16321. EXTERN_C const IID IID_ID3D12Device9;
  16322. #if defined(__cplusplus) && !defined(CINTERFACE)
  16323. MIDL_INTERFACE("4c80e962-f032-4f60-bc9e-ebc2cfa1d83c")
  16324. ID3D12Device9 : public ID3D12Device8
  16325. {
  16326. public:
  16327. virtual HRESULT STDMETHODCALLTYPE CreateShaderCacheSession(
  16328. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  16329. REFIID riid,
  16330. _COM_Outptr_opt_ void **ppvSession) = 0;
  16331. virtual HRESULT STDMETHODCALLTYPE ShaderCacheControl(
  16332. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  16333. D3D12_SHADER_CACHE_CONTROL_FLAGS Control) = 0;
  16334. virtual HRESULT STDMETHODCALLTYPE CreateCommandQueue1(
  16335. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  16336. REFIID CreatorID,
  16337. REFIID riid,
  16338. _COM_Outptr_ void **ppCommandQueue) = 0;
  16339. };
  16340. #else /* C style interface */
  16341. typedef struct ID3D12Device9Vtbl
  16342. {
  16343. BEGIN_INTERFACE
  16344. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  16345. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16346. ID3D12Device9 * This,
  16347. REFIID riid,
  16348. _COM_Outptr_ void **ppvObject);
  16349. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  16350. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16351. ID3D12Device9 * This);
  16352. DECLSPEC_XFGVIRT(IUnknown, Release)
  16353. ULONG ( STDMETHODCALLTYPE *Release )(
  16354. ID3D12Device9 * This);
  16355. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  16356. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  16357. ID3D12Device9 * This,
  16358. _In_ REFGUID guid,
  16359. _Inout_ UINT *pDataSize,
  16360. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  16361. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  16362. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  16363. ID3D12Device9 * This,
  16364. _In_ REFGUID guid,
  16365. _In_ UINT DataSize,
  16366. _In_reads_bytes_opt_( DataSize ) const void *pData);
  16367. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  16368. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  16369. ID3D12Device9 * This,
  16370. _In_ REFGUID guid,
  16371. _In_opt_ const IUnknown *pData);
  16372. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  16373. HRESULT ( STDMETHODCALLTYPE *SetName )(
  16374. ID3D12Device9 * This,
  16375. _In_z_ LPCWSTR Name);
  16376. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  16377. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  16378. ID3D12Device9 * This);
  16379. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  16380. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  16381. ID3D12Device9 * This,
  16382. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  16383. REFIID riid,
  16384. _COM_Outptr_ void **ppCommandQueue);
  16385. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  16386. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  16387. ID3D12Device9 * This,
  16388. _In_ D3D12_COMMAND_LIST_TYPE type,
  16389. REFIID riid,
  16390. _COM_Outptr_ void **ppCommandAllocator);
  16391. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  16392. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  16393. ID3D12Device9 * This,
  16394. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  16395. REFIID riid,
  16396. _COM_Outptr_ void **ppPipelineState);
  16397. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  16398. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  16399. ID3D12Device9 * This,
  16400. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  16401. REFIID riid,
  16402. _COM_Outptr_ void **ppPipelineState);
  16403. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  16404. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  16405. ID3D12Device9 * This,
  16406. _In_ UINT nodeMask,
  16407. _In_ D3D12_COMMAND_LIST_TYPE type,
  16408. _In_ ID3D12CommandAllocator *pCommandAllocator,
  16409. _In_opt_ ID3D12PipelineState *pInitialState,
  16410. REFIID riid,
  16411. _COM_Outptr_ void **ppCommandList);
  16412. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  16413. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  16414. ID3D12Device9 * This,
  16415. D3D12_FEATURE Feature,
  16416. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  16417. UINT FeatureSupportDataSize);
  16418. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  16419. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  16420. ID3D12Device9 * This,
  16421. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  16422. REFIID riid,
  16423. _COM_Outptr_ void **ppvHeap);
  16424. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  16425. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  16426. ID3D12Device9 * This,
  16427. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  16428. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  16429. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  16430. ID3D12Device9 * This,
  16431. _In_ UINT nodeMask,
  16432. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  16433. _In_ SIZE_T blobLengthInBytes,
  16434. REFIID riid,
  16435. _COM_Outptr_ void **ppvRootSignature);
  16436. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  16437. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  16438. ID3D12Device9 * This,
  16439. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  16440. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  16441. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  16442. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  16443. ID3D12Device9 * This,
  16444. _In_opt_ ID3D12Resource *pResource,
  16445. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  16446. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  16447. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  16448. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  16449. ID3D12Device9 * This,
  16450. _In_opt_ ID3D12Resource *pResource,
  16451. _In_opt_ ID3D12Resource *pCounterResource,
  16452. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  16453. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  16454. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  16455. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  16456. ID3D12Device9 * This,
  16457. _In_opt_ ID3D12Resource *pResource,
  16458. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  16459. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  16460. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  16461. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  16462. ID3D12Device9 * This,
  16463. _In_opt_ ID3D12Resource *pResource,
  16464. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  16465. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  16466. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  16467. void ( STDMETHODCALLTYPE *CreateSampler )(
  16468. ID3D12Device9 * This,
  16469. _In_ const D3D12_SAMPLER_DESC *pDesc,
  16470. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  16471. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  16472. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  16473. ID3D12Device9 * This,
  16474. _In_ UINT NumDestDescriptorRanges,
  16475. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  16476. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  16477. _In_ UINT NumSrcDescriptorRanges,
  16478. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  16479. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  16480. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  16481. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  16482. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  16483. ID3D12Device9 * This,
  16484. _In_ UINT NumDescriptors,
  16485. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  16486. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  16487. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  16488. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  16489. #if !defined(_WIN32)
  16490. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  16491. ID3D12Device9 * This,
  16492. _In_ UINT visibleMask,
  16493. _In_ UINT numResourceDescs,
  16494. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  16495. #else
  16496. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  16497. ID3D12Device9 * This,
  16498. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  16499. _In_ UINT visibleMask,
  16500. _In_ UINT numResourceDescs,
  16501. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  16502. #endif
  16503. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  16504. #if !defined(_WIN32)
  16505. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  16506. ID3D12Device9 * This,
  16507. _In_ UINT nodeMask,
  16508. D3D12_HEAP_TYPE heapType);
  16509. #else
  16510. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  16511. ID3D12Device9 * This,
  16512. D3D12_HEAP_PROPERTIES * RetVal,
  16513. _In_ UINT nodeMask,
  16514. D3D12_HEAP_TYPE heapType);
  16515. #endif
  16516. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  16517. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  16518. ID3D12Device9 * This,
  16519. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  16520. D3D12_HEAP_FLAGS HeapFlags,
  16521. _In_ const D3D12_RESOURCE_DESC *pDesc,
  16522. D3D12_RESOURCE_STATES InitialResourceState,
  16523. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  16524. REFIID riidResource,
  16525. _COM_Outptr_opt_ void **ppvResource);
  16526. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  16527. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  16528. ID3D12Device9 * This,
  16529. _In_ const D3D12_HEAP_DESC *pDesc,
  16530. REFIID riid,
  16531. _COM_Outptr_opt_ void **ppvHeap);
  16532. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  16533. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  16534. ID3D12Device9 * This,
  16535. _In_ ID3D12Heap *pHeap,
  16536. UINT64 HeapOffset,
  16537. _In_ const D3D12_RESOURCE_DESC *pDesc,
  16538. D3D12_RESOURCE_STATES InitialState,
  16539. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  16540. REFIID riid,
  16541. _COM_Outptr_opt_ void **ppvResource);
  16542. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  16543. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  16544. ID3D12Device9 * This,
  16545. _In_ const D3D12_RESOURCE_DESC *pDesc,
  16546. D3D12_RESOURCE_STATES InitialState,
  16547. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  16548. REFIID riid,
  16549. _COM_Outptr_opt_ void **ppvResource);
  16550. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  16551. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  16552. ID3D12Device9 * This,
  16553. _In_ ID3D12DeviceChild *pObject,
  16554. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  16555. DWORD Access,
  16556. _In_opt_ LPCWSTR Name,
  16557. _Out_ HANDLE *pHandle);
  16558. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  16559. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  16560. ID3D12Device9 * This,
  16561. _In_ HANDLE NTHandle,
  16562. REFIID riid,
  16563. _COM_Outptr_opt_ void **ppvObj);
  16564. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  16565. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  16566. ID3D12Device9 * This,
  16567. _In_ LPCWSTR Name,
  16568. DWORD Access,
  16569. /* [annotation][out] */
  16570. _Out_ HANDLE *pNTHandle);
  16571. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  16572. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  16573. ID3D12Device9 * This,
  16574. UINT NumObjects,
  16575. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  16576. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  16577. HRESULT ( STDMETHODCALLTYPE *Evict )(
  16578. ID3D12Device9 * This,
  16579. UINT NumObjects,
  16580. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  16581. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  16582. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  16583. ID3D12Device9 * This,
  16584. UINT64 InitialValue,
  16585. D3D12_FENCE_FLAGS Flags,
  16586. REFIID riid,
  16587. _COM_Outptr_ void **ppFence);
  16588. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  16589. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  16590. ID3D12Device9 * This);
  16591. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  16592. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  16593. ID3D12Device9 * This,
  16594. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  16595. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  16596. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  16597. UINT64 BaseOffset,
  16598. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  16599. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  16600. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  16601. _Out_opt_ UINT64 *pTotalBytes);
  16602. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  16603. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  16604. ID3D12Device9 * This,
  16605. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  16606. REFIID riid,
  16607. _COM_Outptr_opt_ void **ppvHeap);
  16608. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  16609. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  16610. ID3D12Device9 * This,
  16611. BOOL Enable);
  16612. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  16613. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  16614. ID3D12Device9 * This,
  16615. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  16616. _In_opt_ ID3D12RootSignature *pRootSignature,
  16617. REFIID riid,
  16618. _COM_Outptr_opt_ void **ppvCommandSignature);
  16619. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  16620. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  16621. ID3D12Device9 * This,
  16622. _In_ ID3D12Resource *pTiledResource,
  16623. _Out_opt_ UINT *pNumTilesForEntireResource,
  16624. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  16625. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  16626. _Inout_opt_ UINT *pNumSubresourceTilings,
  16627. _In_ UINT FirstSubresourceTilingToGet,
  16628. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  16629. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  16630. #if !defined(_WIN32)
  16631. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  16632. ID3D12Device9 * This);
  16633. #else
  16634. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  16635. ID3D12Device9 * This,
  16636. LUID * RetVal);
  16637. #endif
  16638. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  16639. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  16640. ID3D12Device9 * This,
  16641. _In_reads_(BlobLength) const void *pLibraryBlob,
  16642. SIZE_T BlobLength,
  16643. REFIID riid,
  16644. _COM_Outptr_ void **ppPipelineLibrary);
  16645. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  16646. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  16647. ID3D12Device9 * This,
  16648. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  16649. _In_reads_(NumFences) const UINT64 *pFenceValues,
  16650. UINT NumFences,
  16651. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  16652. HANDLE hEvent);
  16653. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  16654. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  16655. ID3D12Device9 * This,
  16656. UINT NumObjects,
  16657. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  16658. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  16659. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  16660. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  16661. ID3D12Device9 * This,
  16662. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  16663. REFIID riid,
  16664. _COM_Outptr_ void **ppPipelineState);
  16665. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  16666. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  16667. ID3D12Device9 * This,
  16668. _In_ const void *pAddress,
  16669. REFIID riid,
  16670. _COM_Outptr_ void **ppvHeap);
  16671. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  16672. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  16673. ID3D12Device9 * This,
  16674. _In_ HANDLE hFileMapping,
  16675. REFIID riid,
  16676. _COM_Outptr_ void **ppvHeap);
  16677. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  16678. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  16679. ID3D12Device9 * This,
  16680. D3D12_RESIDENCY_FLAGS Flags,
  16681. UINT NumObjects,
  16682. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  16683. _In_ ID3D12Fence *pFenceToSignal,
  16684. UINT64 FenceValueToSignal);
  16685. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  16686. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  16687. ID3D12Device9 * This,
  16688. _In_ UINT nodeMask,
  16689. _In_ D3D12_COMMAND_LIST_TYPE type,
  16690. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  16691. REFIID riid,
  16692. _COM_Outptr_ void **ppCommandList);
  16693. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  16694. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  16695. ID3D12Device9 * This,
  16696. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  16697. _In_ REFIID riid,
  16698. _COM_Outptr_ void **ppSession);
  16699. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  16700. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  16701. ID3D12Device9 * This,
  16702. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  16703. D3D12_HEAP_FLAGS HeapFlags,
  16704. _In_ const D3D12_RESOURCE_DESC *pDesc,
  16705. D3D12_RESOURCE_STATES InitialResourceState,
  16706. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  16707. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  16708. REFIID riidResource,
  16709. _COM_Outptr_opt_ void **ppvResource);
  16710. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  16711. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  16712. ID3D12Device9 * This,
  16713. _In_ const D3D12_HEAP_DESC *pDesc,
  16714. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  16715. REFIID riid,
  16716. _COM_Outptr_opt_ void **ppvHeap);
  16717. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  16718. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  16719. ID3D12Device9 * This,
  16720. _In_ const D3D12_RESOURCE_DESC *pDesc,
  16721. D3D12_RESOURCE_STATES InitialState,
  16722. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  16723. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  16724. REFIID riid,
  16725. _COM_Outptr_opt_ void **ppvResource);
  16726. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  16727. #if !defined(_WIN32)
  16728. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  16729. ID3D12Device9 * This,
  16730. UINT visibleMask,
  16731. UINT numResourceDescs,
  16732. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  16733. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  16734. #else
  16735. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  16736. ID3D12Device9 * This,
  16737. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  16738. UINT visibleMask,
  16739. UINT numResourceDescs,
  16740. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  16741. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  16742. #endif
  16743. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  16744. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  16745. ID3D12Device9 * This,
  16746. _In_ ID3D12LifetimeOwner *pOwner,
  16747. REFIID riid,
  16748. _COM_Outptr_ void **ppvTracker);
  16749. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  16750. void ( STDMETHODCALLTYPE *RemoveDevice )(
  16751. ID3D12Device9 * This);
  16752. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  16753. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  16754. ID3D12Device9 * This,
  16755. _Inout_ UINT *pNumMetaCommands,
  16756. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  16757. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  16758. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  16759. ID3D12Device9 * This,
  16760. _In_ REFGUID CommandId,
  16761. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  16762. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  16763. _Inout_ UINT *pParameterCount,
  16764. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  16765. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  16766. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  16767. ID3D12Device9 * This,
  16768. _In_ REFGUID CommandId,
  16769. _In_ UINT NodeMask,
  16770. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  16771. _In_ SIZE_T CreationParametersDataSizeInBytes,
  16772. REFIID riid,
  16773. _COM_Outptr_ void **ppMetaCommand);
  16774. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  16775. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  16776. ID3D12Device9 * This,
  16777. const D3D12_STATE_OBJECT_DESC *pDesc,
  16778. REFIID riid,
  16779. _COM_Outptr_ void **ppStateObject);
  16780. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  16781. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  16782. ID3D12Device9 * This,
  16783. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  16784. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  16785. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  16786. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  16787. ID3D12Device9 * This,
  16788. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  16789. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  16790. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  16791. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  16792. ID3D12Device9 * This,
  16793. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  16794. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  16795. _In_opt_ HANDLE hEventToSignalUponCompletion,
  16796. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  16797. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  16798. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  16799. ID3D12Device9 * This,
  16800. const D3D12_STATE_OBJECT_DESC *pAddition,
  16801. ID3D12StateObject *pStateObjectToGrowFrom,
  16802. REFIID riid,
  16803. _COM_Outptr_ void **ppNewStateObject);
  16804. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  16805. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  16806. ID3D12Device9 * This,
  16807. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  16808. _In_ REFIID riid,
  16809. _COM_Outptr_ void **ppSession);
  16810. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  16811. #if !defined(_WIN32)
  16812. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  16813. ID3D12Device9 * This,
  16814. UINT visibleMask,
  16815. UINT numResourceDescs,
  16816. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  16817. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  16818. #else
  16819. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  16820. ID3D12Device9 * This,
  16821. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  16822. UINT visibleMask,
  16823. UINT numResourceDescs,
  16824. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  16825. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  16826. #endif
  16827. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  16828. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  16829. ID3D12Device9 * This,
  16830. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  16831. D3D12_HEAP_FLAGS HeapFlags,
  16832. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  16833. D3D12_RESOURCE_STATES InitialResourceState,
  16834. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  16835. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  16836. REFIID riidResource,
  16837. _COM_Outptr_opt_ void **ppvResource);
  16838. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  16839. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  16840. ID3D12Device9 * This,
  16841. _In_ ID3D12Heap *pHeap,
  16842. UINT64 HeapOffset,
  16843. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  16844. D3D12_RESOURCE_STATES InitialState,
  16845. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  16846. REFIID riid,
  16847. _COM_Outptr_opt_ void **ppvResource);
  16848. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  16849. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  16850. ID3D12Device9 * This,
  16851. _In_opt_ ID3D12Resource *pTargetedResource,
  16852. _In_opt_ ID3D12Resource *pFeedbackResource,
  16853. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  16854. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  16855. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  16856. ID3D12Device9 * This,
  16857. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  16858. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  16859. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  16860. UINT64 BaseOffset,
  16861. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  16862. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  16863. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  16864. _Out_opt_ UINT64 *pTotalBytes);
  16865. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  16866. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  16867. ID3D12Device9 * This,
  16868. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  16869. REFIID riid,
  16870. _COM_Outptr_opt_ void **ppvSession);
  16871. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  16872. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  16873. ID3D12Device9 * This,
  16874. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  16875. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  16876. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  16877. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  16878. ID3D12Device9 * This,
  16879. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  16880. REFIID CreatorID,
  16881. REFIID riid,
  16882. _COM_Outptr_ void **ppCommandQueue);
  16883. END_INTERFACE
  16884. } ID3D12Device9Vtbl;
  16885. interface ID3D12Device9
  16886. {
  16887. CONST_VTBL struct ID3D12Device9Vtbl *lpVtbl;
  16888. };
  16889. #ifdef COBJMACROS
  16890. #define ID3D12Device9_QueryInterface(This,riid,ppvObject) \
  16891. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  16892. #define ID3D12Device9_AddRef(This) \
  16893. ( (This)->lpVtbl -> AddRef(This) )
  16894. #define ID3D12Device9_Release(This) \
  16895. ( (This)->lpVtbl -> Release(This) )
  16896. #define ID3D12Device9_GetPrivateData(This,guid,pDataSize,pData) \
  16897. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  16898. #define ID3D12Device9_SetPrivateData(This,guid,DataSize,pData) \
  16899. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  16900. #define ID3D12Device9_SetPrivateDataInterface(This,guid,pData) \
  16901. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  16902. #define ID3D12Device9_SetName(This,Name) \
  16903. ( (This)->lpVtbl -> SetName(This,Name) )
  16904. #define ID3D12Device9_GetNodeCount(This) \
  16905. ( (This)->lpVtbl -> GetNodeCount(This) )
  16906. #define ID3D12Device9_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  16907. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  16908. #define ID3D12Device9_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  16909. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  16910. #define ID3D12Device9_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  16911. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  16912. #define ID3D12Device9_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  16913. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  16914. #define ID3D12Device9_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  16915. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  16916. #define ID3D12Device9_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  16917. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  16918. #define ID3D12Device9_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  16919. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  16920. #define ID3D12Device9_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  16921. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  16922. #define ID3D12Device9_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  16923. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  16924. #define ID3D12Device9_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  16925. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  16926. #define ID3D12Device9_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  16927. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  16928. #define ID3D12Device9_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  16929. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  16930. #define ID3D12Device9_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  16931. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  16932. #define ID3D12Device9_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  16933. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  16934. #define ID3D12Device9_CreateSampler(This,pDesc,DestDescriptor) \
  16935. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  16936. #define ID3D12Device9_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  16937. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  16938. #define ID3D12Device9_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  16939. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  16940. #if !defined(_WIN32)
  16941. #define ID3D12Device9_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  16942. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  16943. #else
  16944. #define ID3D12Device9_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  16945. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  16946. #endif
  16947. #if !defined(_WIN32)
  16948. #define ID3D12Device9_GetCustomHeapProperties(This,nodeMask,heapType) \
  16949. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  16950. #else
  16951. #define ID3D12Device9_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  16952. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  16953. #endif
  16954. #define ID3D12Device9_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  16955. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  16956. #define ID3D12Device9_CreateHeap(This,pDesc,riid,ppvHeap) \
  16957. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  16958. #define ID3D12Device9_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  16959. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  16960. #define ID3D12Device9_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  16961. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  16962. #define ID3D12Device9_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  16963. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  16964. #define ID3D12Device9_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  16965. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  16966. #define ID3D12Device9_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  16967. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  16968. #define ID3D12Device9_MakeResident(This,NumObjects,ppObjects) \
  16969. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  16970. #define ID3D12Device9_Evict(This,NumObjects,ppObjects) \
  16971. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  16972. #define ID3D12Device9_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  16973. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  16974. #define ID3D12Device9_GetDeviceRemovedReason(This) \
  16975. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  16976. #define ID3D12Device9_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  16977. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  16978. #define ID3D12Device9_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  16979. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  16980. #define ID3D12Device9_SetStablePowerState(This,Enable) \
  16981. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  16982. #define ID3D12Device9_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  16983. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  16984. #define ID3D12Device9_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  16985. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  16986. #if !defined(_WIN32)
  16987. #define ID3D12Device9_GetAdapterLuid(This) \
  16988. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  16989. #else
  16990. #define ID3D12Device9_GetAdapterLuid(This,RetVal) \
  16991. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  16992. #endif
  16993. #define ID3D12Device9_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  16994. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  16995. #define ID3D12Device9_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  16996. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  16997. #define ID3D12Device9_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  16998. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  16999. #define ID3D12Device9_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  17000. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  17001. #define ID3D12Device9_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  17002. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  17003. #define ID3D12Device9_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  17004. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  17005. #define ID3D12Device9_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  17006. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  17007. #define ID3D12Device9_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  17008. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  17009. #define ID3D12Device9_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  17010. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  17011. #define ID3D12Device9_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  17012. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  17013. #define ID3D12Device9_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  17014. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  17015. #define ID3D12Device9_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  17016. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  17017. #if !defined(_WIN32)
  17018. #define ID3D12Device9_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17019. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17020. #else
  17021. #define ID3D12Device9_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17022. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17023. #endif
  17024. #define ID3D12Device9_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  17025. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  17026. #define ID3D12Device9_RemoveDevice(This) \
  17027. ( (This)->lpVtbl -> RemoveDevice(This) )
  17028. #define ID3D12Device9_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  17029. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  17030. #define ID3D12Device9_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  17031. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  17032. #define ID3D12Device9_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  17033. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  17034. #define ID3D12Device9_CreateStateObject(This,pDesc,riid,ppStateObject) \
  17035. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  17036. #define ID3D12Device9_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  17037. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  17038. #define ID3D12Device9_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  17039. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  17040. #define ID3D12Device9_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  17041. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  17042. #define ID3D12Device9_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  17043. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  17044. #define ID3D12Device9_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  17045. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  17046. #if !defined(_WIN32)
  17047. #define ID3D12Device9_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17048. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17049. #else
  17050. #define ID3D12Device9_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17051. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17052. #endif
  17053. #define ID3D12Device9_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  17054. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  17055. #define ID3D12Device9_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  17056. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  17057. #define ID3D12Device9_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  17058. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  17059. #define ID3D12Device9_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  17060. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  17061. #define ID3D12Device9_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  17062. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  17063. #define ID3D12Device9_ShaderCacheControl(This,Kinds,Control) \
  17064. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  17065. #define ID3D12Device9_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  17066. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  17067. #endif /* COBJMACROS */
  17068. #endif /* C style interface */
  17069. #endif /* __ID3D12Device9_INTERFACE_DEFINED__ */
  17070. #ifndef __ID3D12Device10_INTERFACE_DEFINED__
  17071. #define __ID3D12Device10_INTERFACE_DEFINED__
  17072. /* interface ID3D12Device10 */
  17073. /* [unique][local][object][uuid] */
  17074. EXTERN_C const IID IID_ID3D12Device10;
  17075. #if defined(__cplusplus) && !defined(CINTERFACE)
  17076. MIDL_INTERFACE("517f8718-aa66-49f9-b02b-a7ab89c06031")
  17077. ID3D12Device10 : public ID3D12Device9
  17078. {
  17079. public:
  17080. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource3(
  17081. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17082. D3D12_HEAP_FLAGS HeapFlags,
  17083. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17084. D3D12_BARRIER_LAYOUT InitialLayout,
  17085. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17086. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17087. UINT32 NumCastableFormats,
  17088. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17089. REFIID riidResource,
  17090. _COM_Outptr_opt_ void **ppvResource) = 0;
  17091. virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource2(
  17092. _In_ ID3D12Heap *pHeap,
  17093. UINT64 HeapOffset,
  17094. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17095. D3D12_BARRIER_LAYOUT InitialLayout,
  17096. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17097. UINT32 NumCastableFormats,
  17098. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17099. REFIID riid,
  17100. _COM_Outptr_opt_ void **ppvResource) = 0;
  17101. virtual HRESULT STDMETHODCALLTYPE CreateReservedResource2(
  17102. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17103. D3D12_BARRIER_LAYOUT InitialLayout,
  17104. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17105. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17106. UINT32 NumCastableFormats,
  17107. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17108. REFIID riid,
  17109. _COM_Outptr_opt_ void **ppvResource) = 0;
  17110. };
  17111. #else /* C style interface */
  17112. typedef struct ID3D12Device10Vtbl
  17113. {
  17114. BEGIN_INTERFACE
  17115. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  17116. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17117. ID3D12Device10 * This,
  17118. REFIID riid,
  17119. _COM_Outptr_ void **ppvObject);
  17120. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  17121. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17122. ID3D12Device10 * This);
  17123. DECLSPEC_XFGVIRT(IUnknown, Release)
  17124. ULONG ( STDMETHODCALLTYPE *Release )(
  17125. ID3D12Device10 * This);
  17126. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  17127. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  17128. ID3D12Device10 * This,
  17129. _In_ REFGUID guid,
  17130. _Inout_ UINT *pDataSize,
  17131. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  17132. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  17133. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  17134. ID3D12Device10 * This,
  17135. _In_ REFGUID guid,
  17136. _In_ UINT DataSize,
  17137. _In_reads_bytes_opt_( DataSize ) const void *pData);
  17138. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  17139. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  17140. ID3D12Device10 * This,
  17141. _In_ REFGUID guid,
  17142. _In_opt_ const IUnknown *pData);
  17143. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  17144. HRESULT ( STDMETHODCALLTYPE *SetName )(
  17145. ID3D12Device10 * This,
  17146. _In_z_ LPCWSTR Name);
  17147. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  17148. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  17149. ID3D12Device10 * This);
  17150. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  17151. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  17152. ID3D12Device10 * This,
  17153. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  17154. REFIID riid,
  17155. _COM_Outptr_ void **ppCommandQueue);
  17156. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  17157. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  17158. ID3D12Device10 * This,
  17159. _In_ D3D12_COMMAND_LIST_TYPE type,
  17160. REFIID riid,
  17161. _COM_Outptr_ void **ppCommandAllocator);
  17162. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  17163. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  17164. ID3D12Device10 * This,
  17165. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  17166. REFIID riid,
  17167. _COM_Outptr_ void **ppPipelineState);
  17168. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  17169. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  17170. ID3D12Device10 * This,
  17171. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  17172. REFIID riid,
  17173. _COM_Outptr_ void **ppPipelineState);
  17174. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  17175. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  17176. ID3D12Device10 * This,
  17177. _In_ UINT nodeMask,
  17178. _In_ D3D12_COMMAND_LIST_TYPE type,
  17179. _In_ ID3D12CommandAllocator *pCommandAllocator,
  17180. _In_opt_ ID3D12PipelineState *pInitialState,
  17181. REFIID riid,
  17182. _COM_Outptr_ void **ppCommandList);
  17183. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  17184. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  17185. ID3D12Device10 * This,
  17186. D3D12_FEATURE Feature,
  17187. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  17188. UINT FeatureSupportDataSize);
  17189. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  17190. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  17191. ID3D12Device10 * This,
  17192. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  17193. REFIID riid,
  17194. _COM_Outptr_ void **ppvHeap);
  17195. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  17196. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  17197. ID3D12Device10 * This,
  17198. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  17199. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  17200. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  17201. ID3D12Device10 * This,
  17202. _In_ UINT nodeMask,
  17203. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  17204. _In_ SIZE_T blobLengthInBytes,
  17205. REFIID riid,
  17206. _COM_Outptr_ void **ppvRootSignature);
  17207. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  17208. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  17209. ID3D12Device10 * This,
  17210. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  17211. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17212. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  17213. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  17214. ID3D12Device10 * This,
  17215. _In_opt_ ID3D12Resource *pResource,
  17216. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  17217. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17218. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  17219. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  17220. ID3D12Device10 * This,
  17221. _In_opt_ ID3D12Resource *pResource,
  17222. _In_opt_ ID3D12Resource *pCounterResource,
  17223. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  17224. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17225. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  17226. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  17227. ID3D12Device10 * This,
  17228. _In_opt_ ID3D12Resource *pResource,
  17229. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  17230. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17231. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  17232. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  17233. ID3D12Device10 * This,
  17234. _In_opt_ ID3D12Resource *pResource,
  17235. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  17236. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17237. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  17238. void ( STDMETHODCALLTYPE *CreateSampler )(
  17239. ID3D12Device10 * This,
  17240. _In_ const D3D12_SAMPLER_DESC *pDesc,
  17241. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17242. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  17243. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  17244. ID3D12Device10 * This,
  17245. _In_ UINT NumDestDescriptorRanges,
  17246. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  17247. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  17248. _In_ UINT NumSrcDescriptorRanges,
  17249. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  17250. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  17251. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  17252. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  17253. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  17254. ID3D12Device10 * This,
  17255. _In_ UINT NumDescriptors,
  17256. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  17257. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  17258. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  17259. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  17260. #if !defined(_WIN32)
  17261. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  17262. ID3D12Device10 * This,
  17263. _In_ UINT visibleMask,
  17264. _In_ UINT numResourceDescs,
  17265. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  17266. #else
  17267. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  17268. ID3D12Device10 * This,
  17269. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  17270. _In_ UINT visibleMask,
  17271. _In_ UINT numResourceDescs,
  17272. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  17273. #endif
  17274. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  17275. #if !defined(_WIN32)
  17276. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  17277. ID3D12Device10 * This,
  17278. _In_ UINT nodeMask,
  17279. D3D12_HEAP_TYPE heapType);
  17280. #else
  17281. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  17282. ID3D12Device10 * This,
  17283. D3D12_HEAP_PROPERTIES * RetVal,
  17284. _In_ UINT nodeMask,
  17285. D3D12_HEAP_TYPE heapType);
  17286. #endif
  17287. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  17288. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  17289. ID3D12Device10 * This,
  17290. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17291. D3D12_HEAP_FLAGS HeapFlags,
  17292. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17293. D3D12_RESOURCE_STATES InitialResourceState,
  17294. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17295. REFIID riidResource,
  17296. _COM_Outptr_opt_ void **ppvResource);
  17297. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  17298. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  17299. ID3D12Device10 * This,
  17300. _In_ const D3D12_HEAP_DESC *pDesc,
  17301. REFIID riid,
  17302. _COM_Outptr_opt_ void **ppvHeap);
  17303. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  17304. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  17305. ID3D12Device10 * This,
  17306. _In_ ID3D12Heap *pHeap,
  17307. UINT64 HeapOffset,
  17308. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17309. D3D12_RESOURCE_STATES InitialState,
  17310. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17311. REFIID riid,
  17312. _COM_Outptr_opt_ void **ppvResource);
  17313. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  17314. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  17315. ID3D12Device10 * This,
  17316. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17317. D3D12_RESOURCE_STATES InitialState,
  17318. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17319. REFIID riid,
  17320. _COM_Outptr_opt_ void **ppvResource);
  17321. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  17322. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  17323. ID3D12Device10 * This,
  17324. _In_ ID3D12DeviceChild *pObject,
  17325. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  17326. DWORD Access,
  17327. _In_opt_ LPCWSTR Name,
  17328. _Out_ HANDLE *pHandle);
  17329. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  17330. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  17331. ID3D12Device10 * This,
  17332. _In_ HANDLE NTHandle,
  17333. REFIID riid,
  17334. _COM_Outptr_opt_ void **ppvObj);
  17335. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  17336. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  17337. ID3D12Device10 * This,
  17338. _In_ LPCWSTR Name,
  17339. DWORD Access,
  17340. /* [annotation][out] */
  17341. _Out_ HANDLE *pNTHandle);
  17342. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  17343. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  17344. ID3D12Device10 * This,
  17345. UINT NumObjects,
  17346. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  17347. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  17348. HRESULT ( STDMETHODCALLTYPE *Evict )(
  17349. ID3D12Device10 * This,
  17350. UINT NumObjects,
  17351. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  17352. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  17353. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  17354. ID3D12Device10 * This,
  17355. UINT64 InitialValue,
  17356. D3D12_FENCE_FLAGS Flags,
  17357. REFIID riid,
  17358. _COM_Outptr_ void **ppFence);
  17359. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  17360. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  17361. ID3D12Device10 * This);
  17362. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  17363. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  17364. ID3D12Device10 * This,
  17365. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  17366. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  17367. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  17368. UINT64 BaseOffset,
  17369. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  17370. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  17371. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  17372. _Out_opt_ UINT64 *pTotalBytes);
  17373. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  17374. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  17375. ID3D12Device10 * This,
  17376. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  17377. REFIID riid,
  17378. _COM_Outptr_opt_ void **ppvHeap);
  17379. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  17380. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  17381. ID3D12Device10 * This,
  17382. BOOL Enable);
  17383. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  17384. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  17385. ID3D12Device10 * This,
  17386. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  17387. _In_opt_ ID3D12RootSignature *pRootSignature,
  17388. REFIID riid,
  17389. _COM_Outptr_opt_ void **ppvCommandSignature);
  17390. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  17391. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  17392. ID3D12Device10 * This,
  17393. _In_ ID3D12Resource *pTiledResource,
  17394. _Out_opt_ UINT *pNumTilesForEntireResource,
  17395. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  17396. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  17397. _Inout_opt_ UINT *pNumSubresourceTilings,
  17398. _In_ UINT FirstSubresourceTilingToGet,
  17399. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  17400. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  17401. #if !defined(_WIN32)
  17402. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  17403. ID3D12Device10 * This);
  17404. #else
  17405. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  17406. ID3D12Device10 * This,
  17407. LUID * RetVal);
  17408. #endif
  17409. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  17410. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  17411. ID3D12Device10 * This,
  17412. _In_reads_(BlobLength) const void *pLibraryBlob,
  17413. SIZE_T BlobLength,
  17414. REFIID riid,
  17415. _COM_Outptr_ void **ppPipelineLibrary);
  17416. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  17417. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  17418. ID3D12Device10 * This,
  17419. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  17420. _In_reads_(NumFences) const UINT64 *pFenceValues,
  17421. UINT NumFences,
  17422. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  17423. HANDLE hEvent);
  17424. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  17425. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  17426. ID3D12Device10 * This,
  17427. UINT NumObjects,
  17428. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  17429. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  17430. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  17431. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  17432. ID3D12Device10 * This,
  17433. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  17434. REFIID riid,
  17435. _COM_Outptr_ void **ppPipelineState);
  17436. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  17437. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  17438. ID3D12Device10 * This,
  17439. _In_ const void *pAddress,
  17440. REFIID riid,
  17441. _COM_Outptr_ void **ppvHeap);
  17442. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  17443. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  17444. ID3D12Device10 * This,
  17445. _In_ HANDLE hFileMapping,
  17446. REFIID riid,
  17447. _COM_Outptr_ void **ppvHeap);
  17448. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  17449. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  17450. ID3D12Device10 * This,
  17451. D3D12_RESIDENCY_FLAGS Flags,
  17452. UINT NumObjects,
  17453. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  17454. _In_ ID3D12Fence *pFenceToSignal,
  17455. UINT64 FenceValueToSignal);
  17456. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  17457. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  17458. ID3D12Device10 * This,
  17459. _In_ UINT nodeMask,
  17460. _In_ D3D12_COMMAND_LIST_TYPE type,
  17461. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  17462. REFIID riid,
  17463. _COM_Outptr_ void **ppCommandList);
  17464. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  17465. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  17466. ID3D12Device10 * This,
  17467. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  17468. _In_ REFIID riid,
  17469. _COM_Outptr_ void **ppSession);
  17470. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  17471. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  17472. ID3D12Device10 * This,
  17473. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17474. D3D12_HEAP_FLAGS HeapFlags,
  17475. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17476. D3D12_RESOURCE_STATES InitialResourceState,
  17477. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17478. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17479. REFIID riidResource,
  17480. _COM_Outptr_opt_ void **ppvResource);
  17481. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  17482. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  17483. ID3D12Device10 * This,
  17484. _In_ const D3D12_HEAP_DESC *pDesc,
  17485. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17486. REFIID riid,
  17487. _COM_Outptr_opt_ void **ppvHeap);
  17488. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  17489. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  17490. ID3D12Device10 * This,
  17491. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17492. D3D12_RESOURCE_STATES InitialState,
  17493. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17494. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17495. REFIID riid,
  17496. _COM_Outptr_opt_ void **ppvResource);
  17497. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  17498. #if !defined(_WIN32)
  17499. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  17500. ID3D12Device10 * This,
  17501. UINT visibleMask,
  17502. UINT numResourceDescs,
  17503. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  17504. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17505. #else
  17506. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  17507. ID3D12Device10 * This,
  17508. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  17509. UINT visibleMask,
  17510. UINT numResourceDescs,
  17511. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  17512. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17513. #endif
  17514. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  17515. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  17516. ID3D12Device10 * This,
  17517. _In_ ID3D12LifetimeOwner *pOwner,
  17518. REFIID riid,
  17519. _COM_Outptr_ void **ppvTracker);
  17520. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  17521. void ( STDMETHODCALLTYPE *RemoveDevice )(
  17522. ID3D12Device10 * This);
  17523. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  17524. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  17525. ID3D12Device10 * This,
  17526. _Inout_ UINT *pNumMetaCommands,
  17527. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  17528. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  17529. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  17530. ID3D12Device10 * This,
  17531. _In_ REFGUID CommandId,
  17532. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  17533. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  17534. _Inout_ UINT *pParameterCount,
  17535. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  17536. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  17537. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  17538. ID3D12Device10 * This,
  17539. _In_ REFGUID CommandId,
  17540. _In_ UINT NodeMask,
  17541. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  17542. _In_ SIZE_T CreationParametersDataSizeInBytes,
  17543. REFIID riid,
  17544. _COM_Outptr_ void **ppMetaCommand);
  17545. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  17546. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  17547. ID3D12Device10 * This,
  17548. const D3D12_STATE_OBJECT_DESC *pDesc,
  17549. REFIID riid,
  17550. _COM_Outptr_ void **ppStateObject);
  17551. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  17552. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  17553. ID3D12Device10 * This,
  17554. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  17555. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  17556. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  17557. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  17558. ID3D12Device10 * This,
  17559. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  17560. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  17561. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  17562. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  17563. ID3D12Device10 * This,
  17564. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  17565. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  17566. _In_opt_ HANDLE hEventToSignalUponCompletion,
  17567. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  17568. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  17569. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  17570. ID3D12Device10 * This,
  17571. const D3D12_STATE_OBJECT_DESC *pAddition,
  17572. ID3D12StateObject *pStateObjectToGrowFrom,
  17573. REFIID riid,
  17574. _COM_Outptr_ void **ppNewStateObject);
  17575. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  17576. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  17577. ID3D12Device10 * This,
  17578. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  17579. _In_ REFIID riid,
  17580. _COM_Outptr_ void **ppSession);
  17581. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  17582. #if !defined(_WIN32)
  17583. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  17584. ID3D12Device10 * This,
  17585. UINT visibleMask,
  17586. UINT numResourceDescs,
  17587. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  17588. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17589. #else
  17590. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  17591. ID3D12Device10 * This,
  17592. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  17593. UINT visibleMask,
  17594. UINT numResourceDescs,
  17595. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  17596. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  17597. #endif
  17598. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  17599. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  17600. ID3D12Device10 * This,
  17601. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17602. D3D12_HEAP_FLAGS HeapFlags,
  17603. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17604. D3D12_RESOURCE_STATES InitialResourceState,
  17605. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17606. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17607. REFIID riidResource,
  17608. _COM_Outptr_opt_ void **ppvResource);
  17609. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  17610. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  17611. ID3D12Device10 * This,
  17612. _In_ ID3D12Heap *pHeap,
  17613. UINT64 HeapOffset,
  17614. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17615. D3D12_RESOURCE_STATES InitialState,
  17616. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17617. REFIID riid,
  17618. _COM_Outptr_opt_ void **ppvResource);
  17619. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  17620. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  17621. ID3D12Device10 * This,
  17622. _In_opt_ ID3D12Resource *pTargetedResource,
  17623. _In_opt_ ID3D12Resource *pFeedbackResource,
  17624. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17625. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  17626. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  17627. ID3D12Device10 * This,
  17628. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  17629. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  17630. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  17631. UINT64 BaseOffset,
  17632. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  17633. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  17634. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  17635. _Out_opt_ UINT64 *pTotalBytes);
  17636. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  17637. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  17638. ID3D12Device10 * This,
  17639. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  17640. REFIID riid,
  17641. _COM_Outptr_opt_ void **ppvSession);
  17642. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  17643. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  17644. ID3D12Device10 * This,
  17645. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  17646. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  17647. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  17648. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  17649. ID3D12Device10 * This,
  17650. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  17651. REFIID CreatorID,
  17652. REFIID riid,
  17653. _COM_Outptr_ void **ppCommandQueue);
  17654. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  17655. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  17656. ID3D12Device10 * This,
  17657. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  17658. D3D12_HEAP_FLAGS HeapFlags,
  17659. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17660. D3D12_BARRIER_LAYOUT InitialLayout,
  17661. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17662. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17663. UINT32 NumCastableFormats,
  17664. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17665. REFIID riidResource,
  17666. _COM_Outptr_opt_ void **ppvResource);
  17667. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  17668. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  17669. ID3D12Device10 * This,
  17670. _In_ ID3D12Heap *pHeap,
  17671. UINT64 HeapOffset,
  17672. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  17673. D3D12_BARRIER_LAYOUT InitialLayout,
  17674. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17675. UINT32 NumCastableFormats,
  17676. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17677. REFIID riid,
  17678. _COM_Outptr_opt_ void **ppvResource);
  17679. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  17680. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  17681. ID3D12Device10 * This,
  17682. _In_ const D3D12_RESOURCE_DESC *pDesc,
  17683. D3D12_BARRIER_LAYOUT InitialLayout,
  17684. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  17685. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  17686. UINT32 NumCastableFormats,
  17687. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  17688. REFIID riid,
  17689. _COM_Outptr_opt_ void **ppvResource);
  17690. END_INTERFACE
  17691. } ID3D12Device10Vtbl;
  17692. interface ID3D12Device10
  17693. {
  17694. CONST_VTBL struct ID3D12Device10Vtbl *lpVtbl;
  17695. };
  17696. #ifdef COBJMACROS
  17697. #define ID3D12Device10_QueryInterface(This,riid,ppvObject) \
  17698. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  17699. #define ID3D12Device10_AddRef(This) \
  17700. ( (This)->lpVtbl -> AddRef(This) )
  17701. #define ID3D12Device10_Release(This) \
  17702. ( (This)->lpVtbl -> Release(This) )
  17703. #define ID3D12Device10_GetPrivateData(This,guid,pDataSize,pData) \
  17704. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  17705. #define ID3D12Device10_SetPrivateData(This,guid,DataSize,pData) \
  17706. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  17707. #define ID3D12Device10_SetPrivateDataInterface(This,guid,pData) \
  17708. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  17709. #define ID3D12Device10_SetName(This,Name) \
  17710. ( (This)->lpVtbl -> SetName(This,Name) )
  17711. #define ID3D12Device10_GetNodeCount(This) \
  17712. ( (This)->lpVtbl -> GetNodeCount(This) )
  17713. #define ID3D12Device10_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  17714. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  17715. #define ID3D12Device10_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  17716. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  17717. #define ID3D12Device10_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  17718. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  17719. #define ID3D12Device10_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  17720. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  17721. #define ID3D12Device10_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  17722. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  17723. #define ID3D12Device10_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  17724. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  17725. #define ID3D12Device10_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  17726. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  17727. #define ID3D12Device10_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  17728. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  17729. #define ID3D12Device10_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  17730. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  17731. #define ID3D12Device10_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  17732. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  17733. #define ID3D12Device10_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  17734. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  17735. #define ID3D12Device10_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  17736. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  17737. #define ID3D12Device10_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  17738. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  17739. #define ID3D12Device10_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  17740. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  17741. #define ID3D12Device10_CreateSampler(This,pDesc,DestDescriptor) \
  17742. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  17743. #define ID3D12Device10_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  17744. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  17745. #define ID3D12Device10_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  17746. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  17747. #if !defined(_WIN32)
  17748. #define ID3D12Device10_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  17749. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  17750. #else
  17751. #define ID3D12Device10_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  17752. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  17753. #endif
  17754. #if !defined(_WIN32)
  17755. #define ID3D12Device10_GetCustomHeapProperties(This,nodeMask,heapType) \
  17756. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  17757. #else
  17758. #define ID3D12Device10_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  17759. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  17760. #endif
  17761. #define ID3D12Device10_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  17762. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  17763. #define ID3D12Device10_CreateHeap(This,pDesc,riid,ppvHeap) \
  17764. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  17765. #define ID3D12Device10_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  17766. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  17767. #define ID3D12Device10_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  17768. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  17769. #define ID3D12Device10_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  17770. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  17771. #define ID3D12Device10_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  17772. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  17773. #define ID3D12Device10_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  17774. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  17775. #define ID3D12Device10_MakeResident(This,NumObjects,ppObjects) \
  17776. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  17777. #define ID3D12Device10_Evict(This,NumObjects,ppObjects) \
  17778. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  17779. #define ID3D12Device10_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  17780. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  17781. #define ID3D12Device10_GetDeviceRemovedReason(This) \
  17782. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  17783. #define ID3D12Device10_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  17784. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  17785. #define ID3D12Device10_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  17786. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  17787. #define ID3D12Device10_SetStablePowerState(This,Enable) \
  17788. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  17789. #define ID3D12Device10_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  17790. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  17791. #define ID3D12Device10_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  17792. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  17793. #if !defined(_WIN32)
  17794. #define ID3D12Device10_GetAdapterLuid(This) \
  17795. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  17796. #else
  17797. #define ID3D12Device10_GetAdapterLuid(This,RetVal) \
  17798. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  17799. #endif
  17800. #define ID3D12Device10_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  17801. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  17802. #define ID3D12Device10_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  17803. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  17804. #define ID3D12Device10_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  17805. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  17806. #define ID3D12Device10_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  17807. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  17808. #define ID3D12Device10_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  17809. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  17810. #define ID3D12Device10_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  17811. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  17812. #define ID3D12Device10_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  17813. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  17814. #define ID3D12Device10_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  17815. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  17816. #define ID3D12Device10_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  17817. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  17818. #define ID3D12Device10_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  17819. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  17820. #define ID3D12Device10_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  17821. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  17822. #define ID3D12Device10_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  17823. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  17824. #if !defined(_WIN32)
  17825. #define ID3D12Device10_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17826. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17827. #else
  17828. #define ID3D12Device10_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17829. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17830. #endif
  17831. #define ID3D12Device10_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  17832. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  17833. #define ID3D12Device10_RemoveDevice(This) \
  17834. ( (This)->lpVtbl -> RemoveDevice(This) )
  17835. #define ID3D12Device10_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  17836. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  17837. #define ID3D12Device10_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  17838. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  17839. #define ID3D12Device10_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  17840. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  17841. #define ID3D12Device10_CreateStateObject(This,pDesc,riid,ppStateObject) \
  17842. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  17843. #define ID3D12Device10_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  17844. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  17845. #define ID3D12Device10_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  17846. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  17847. #define ID3D12Device10_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  17848. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  17849. #define ID3D12Device10_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  17850. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  17851. #define ID3D12Device10_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  17852. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  17853. #if !defined(_WIN32)
  17854. #define ID3D12Device10_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17855. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17856. #else
  17857. #define ID3D12Device10_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  17858. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  17859. #endif
  17860. #define ID3D12Device10_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  17861. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  17862. #define ID3D12Device10_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  17863. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  17864. #define ID3D12Device10_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  17865. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  17866. #define ID3D12Device10_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  17867. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  17868. #define ID3D12Device10_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  17869. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  17870. #define ID3D12Device10_ShaderCacheControl(This,Kinds,Control) \
  17871. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  17872. #define ID3D12Device10_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  17873. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  17874. #define ID3D12Device10_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  17875. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  17876. #define ID3D12Device10_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  17877. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  17878. #define ID3D12Device10_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  17879. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  17880. #endif /* COBJMACROS */
  17881. #endif /* C style interface */
  17882. #endif /* __ID3D12Device10_INTERFACE_DEFINED__ */
  17883. #ifndef __ID3D12Device11_INTERFACE_DEFINED__
  17884. #define __ID3D12Device11_INTERFACE_DEFINED__
  17885. /* interface ID3D12Device11 */
  17886. /* [unique][local][object][uuid] */
  17887. EXTERN_C const IID IID_ID3D12Device11;
  17888. #if defined(__cplusplus) && !defined(CINTERFACE)
  17889. MIDL_INTERFACE("5405c344-d457-444e-b4dd-2366e45aee39")
  17890. ID3D12Device11 : public ID3D12Device10
  17891. {
  17892. public:
  17893. virtual void STDMETHODCALLTYPE CreateSampler2(
  17894. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  17895. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0;
  17896. };
  17897. #else /* C style interface */
  17898. typedef struct ID3D12Device11Vtbl
  17899. {
  17900. BEGIN_INTERFACE
  17901. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  17902. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17903. ID3D12Device11 * This,
  17904. REFIID riid,
  17905. _COM_Outptr_ void **ppvObject);
  17906. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  17907. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17908. ID3D12Device11 * This);
  17909. DECLSPEC_XFGVIRT(IUnknown, Release)
  17910. ULONG ( STDMETHODCALLTYPE *Release )(
  17911. ID3D12Device11 * This);
  17912. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  17913. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  17914. ID3D12Device11 * This,
  17915. _In_ REFGUID guid,
  17916. _Inout_ UINT *pDataSize,
  17917. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  17918. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  17919. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  17920. ID3D12Device11 * This,
  17921. _In_ REFGUID guid,
  17922. _In_ UINT DataSize,
  17923. _In_reads_bytes_opt_( DataSize ) const void *pData);
  17924. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  17925. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  17926. ID3D12Device11 * This,
  17927. _In_ REFGUID guid,
  17928. _In_opt_ const IUnknown *pData);
  17929. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  17930. HRESULT ( STDMETHODCALLTYPE *SetName )(
  17931. ID3D12Device11 * This,
  17932. _In_z_ LPCWSTR Name);
  17933. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  17934. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  17935. ID3D12Device11 * This);
  17936. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  17937. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  17938. ID3D12Device11 * This,
  17939. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  17940. REFIID riid,
  17941. _COM_Outptr_ void **ppCommandQueue);
  17942. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  17943. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  17944. ID3D12Device11 * This,
  17945. _In_ D3D12_COMMAND_LIST_TYPE type,
  17946. REFIID riid,
  17947. _COM_Outptr_ void **ppCommandAllocator);
  17948. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  17949. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  17950. ID3D12Device11 * This,
  17951. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  17952. REFIID riid,
  17953. _COM_Outptr_ void **ppPipelineState);
  17954. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  17955. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  17956. ID3D12Device11 * This,
  17957. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  17958. REFIID riid,
  17959. _COM_Outptr_ void **ppPipelineState);
  17960. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  17961. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  17962. ID3D12Device11 * This,
  17963. _In_ UINT nodeMask,
  17964. _In_ D3D12_COMMAND_LIST_TYPE type,
  17965. _In_ ID3D12CommandAllocator *pCommandAllocator,
  17966. _In_opt_ ID3D12PipelineState *pInitialState,
  17967. REFIID riid,
  17968. _COM_Outptr_ void **ppCommandList);
  17969. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  17970. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  17971. ID3D12Device11 * This,
  17972. D3D12_FEATURE Feature,
  17973. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  17974. UINT FeatureSupportDataSize);
  17975. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  17976. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  17977. ID3D12Device11 * This,
  17978. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  17979. REFIID riid,
  17980. _COM_Outptr_ void **ppvHeap);
  17981. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  17982. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  17983. ID3D12Device11 * This,
  17984. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  17985. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  17986. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  17987. ID3D12Device11 * This,
  17988. _In_ UINT nodeMask,
  17989. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  17990. _In_ SIZE_T blobLengthInBytes,
  17991. REFIID riid,
  17992. _COM_Outptr_ void **ppvRootSignature);
  17993. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  17994. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  17995. ID3D12Device11 * This,
  17996. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  17997. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  17998. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  17999. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  18000. ID3D12Device11 * This,
  18001. _In_opt_ ID3D12Resource *pResource,
  18002. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  18003. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18004. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  18005. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  18006. ID3D12Device11 * This,
  18007. _In_opt_ ID3D12Resource *pResource,
  18008. _In_opt_ ID3D12Resource *pCounterResource,
  18009. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  18010. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18011. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  18012. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  18013. ID3D12Device11 * This,
  18014. _In_opt_ ID3D12Resource *pResource,
  18015. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  18016. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18017. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  18018. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  18019. ID3D12Device11 * This,
  18020. _In_opt_ ID3D12Resource *pResource,
  18021. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  18022. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18023. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  18024. void ( STDMETHODCALLTYPE *CreateSampler )(
  18025. ID3D12Device11 * This,
  18026. _In_ const D3D12_SAMPLER_DESC *pDesc,
  18027. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18028. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  18029. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  18030. ID3D12Device11 * This,
  18031. _In_ UINT NumDestDescriptorRanges,
  18032. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  18033. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  18034. _In_ UINT NumSrcDescriptorRanges,
  18035. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  18036. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  18037. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  18038. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  18039. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  18040. ID3D12Device11 * This,
  18041. _In_ UINT NumDescriptors,
  18042. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  18043. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  18044. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  18045. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  18046. #if !defined(_WIN32)
  18047. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  18048. ID3D12Device11 * This,
  18049. _In_ UINT visibleMask,
  18050. _In_ UINT numResourceDescs,
  18051. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  18052. #else
  18053. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  18054. ID3D12Device11 * This,
  18055. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18056. _In_ UINT visibleMask,
  18057. _In_ UINT numResourceDescs,
  18058. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  18059. #endif
  18060. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  18061. #if !defined(_WIN32)
  18062. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  18063. ID3D12Device11 * This,
  18064. _In_ UINT nodeMask,
  18065. D3D12_HEAP_TYPE heapType);
  18066. #else
  18067. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  18068. ID3D12Device11 * This,
  18069. D3D12_HEAP_PROPERTIES * RetVal,
  18070. _In_ UINT nodeMask,
  18071. D3D12_HEAP_TYPE heapType);
  18072. #endif
  18073. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  18074. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  18075. ID3D12Device11 * This,
  18076. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18077. D3D12_HEAP_FLAGS HeapFlags,
  18078. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18079. D3D12_RESOURCE_STATES InitialResourceState,
  18080. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18081. REFIID riidResource,
  18082. _COM_Outptr_opt_ void **ppvResource);
  18083. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  18084. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  18085. ID3D12Device11 * This,
  18086. _In_ const D3D12_HEAP_DESC *pDesc,
  18087. REFIID riid,
  18088. _COM_Outptr_opt_ void **ppvHeap);
  18089. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  18090. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  18091. ID3D12Device11 * This,
  18092. _In_ ID3D12Heap *pHeap,
  18093. UINT64 HeapOffset,
  18094. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18095. D3D12_RESOURCE_STATES InitialState,
  18096. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18097. REFIID riid,
  18098. _COM_Outptr_opt_ void **ppvResource);
  18099. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  18100. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  18101. ID3D12Device11 * This,
  18102. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18103. D3D12_RESOURCE_STATES InitialState,
  18104. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18105. REFIID riid,
  18106. _COM_Outptr_opt_ void **ppvResource);
  18107. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  18108. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  18109. ID3D12Device11 * This,
  18110. _In_ ID3D12DeviceChild *pObject,
  18111. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  18112. DWORD Access,
  18113. _In_opt_ LPCWSTR Name,
  18114. _Out_ HANDLE *pHandle);
  18115. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  18116. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  18117. ID3D12Device11 * This,
  18118. _In_ HANDLE NTHandle,
  18119. REFIID riid,
  18120. _COM_Outptr_opt_ void **ppvObj);
  18121. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  18122. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  18123. ID3D12Device11 * This,
  18124. _In_ LPCWSTR Name,
  18125. DWORD Access,
  18126. /* [annotation][out] */
  18127. _Out_ HANDLE *pNTHandle);
  18128. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  18129. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  18130. ID3D12Device11 * This,
  18131. UINT NumObjects,
  18132. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  18133. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  18134. HRESULT ( STDMETHODCALLTYPE *Evict )(
  18135. ID3D12Device11 * This,
  18136. UINT NumObjects,
  18137. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  18138. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  18139. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  18140. ID3D12Device11 * This,
  18141. UINT64 InitialValue,
  18142. D3D12_FENCE_FLAGS Flags,
  18143. REFIID riid,
  18144. _COM_Outptr_ void **ppFence);
  18145. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  18146. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  18147. ID3D12Device11 * This);
  18148. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  18149. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  18150. ID3D12Device11 * This,
  18151. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  18152. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  18153. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  18154. UINT64 BaseOffset,
  18155. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  18156. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  18157. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  18158. _Out_opt_ UINT64 *pTotalBytes);
  18159. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  18160. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  18161. ID3D12Device11 * This,
  18162. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  18163. REFIID riid,
  18164. _COM_Outptr_opt_ void **ppvHeap);
  18165. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  18166. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  18167. ID3D12Device11 * This,
  18168. BOOL Enable);
  18169. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  18170. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  18171. ID3D12Device11 * This,
  18172. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  18173. _In_opt_ ID3D12RootSignature *pRootSignature,
  18174. REFIID riid,
  18175. _COM_Outptr_opt_ void **ppvCommandSignature);
  18176. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  18177. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  18178. ID3D12Device11 * This,
  18179. _In_ ID3D12Resource *pTiledResource,
  18180. _Out_opt_ UINT *pNumTilesForEntireResource,
  18181. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  18182. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  18183. _Inout_opt_ UINT *pNumSubresourceTilings,
  18184. _In_ UINT FirstSubresourceTilingToGet,
  18185. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  18186. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  18187. #if !defined(_WIN32)
  18188. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  18189. ID3D12Device11 * This);
  18190. #else
  18191. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  18192. ID3D12Device11 * This,
  18193. LUID * RetVal);
  18194. #endif
  18195. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  18196. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  18197. ID3D12Device11 * This,
  18198. _In_reads_(BlobLength) const void *pLibraryBlob,
  18199. SIZE_T BlobLength,
  18200. REFIID riid,
  18201. _COM_Outptr_ void **ppPipelineLibrary);
  18202. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  18203. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  18204. ID3D12Device11 * This,
  18205. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  18206. _In_reads_(NumFences) const UINT64 *pFenceValues,
  18207. UINT NumFences,
  18208. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  18209. HANDLE hEvent);
  18210. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  18211. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  18212. ID3D12Device11 * This,
  18213. UINT NumObjects,
  18214. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  18215. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  18216. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  18217. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  18218. ID3D12Device11 * This,
  18219. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  18220. REFIID riid,
  18221. _COM_Outptr_ void **ppPipelineState);
  18222. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  18223. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  18224. ID3D12Device11 * This,
  18225. _In_ const void *pAddress,
  18226. REFIID riid,
  18227. _COM_Outptr_ void **ppvHeap);
  18228. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  18229. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  18230. ID3D12Device11 * This,
  18231. _In_ HANDLE hFileMapping,
  18232. REFIID riid,
  18233. _COM_Outptr_ void **ppvHeap);
  18234. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  18235. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  18236. ID3D12Device11 * This,
  18237. D3D12_RESIDENCY_FLAGS Flags,
  18238. UINT NumObjects,
  18239. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  18240. _In_ ID3D12Fence *pFenceToSignal,
  18241. UINT64 FenceValueToSignal);
  18242. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  18243. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  18244. ID3D12Device11 * This,
  18245. _In_ UINT nodeMask,
  18246. _In_ D3D12_COMMAND_LIST_TYPE type,
  18247. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  18248. REFIID riid,
  18249. _COM_Outptr_ void **ppCommandList);
  18250. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  18251. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  18252. ID3D12Device11 * This,
  18253. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  18254. _In_ REFIID riid,
  18255. _COM_Outptr_ void **ppSession);
  18256. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  18257. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  18258. ID3D12Device11 * This,
  18259. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18260. D3D12_HEAP_FLAGS HeapFlags,
  18261. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18262. D3D12_RESOURCE_STATES InitialResourceState,
  18263. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18264. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18265. REFIID riidResource,
  18266. _COM_Outptr_opt_ void **ppvResource);
  18267. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  18268. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  18269. ID3D12Device11 * This,
  18270. _In_ const D3D12_HEAP_DESC *pDesc,
  18271. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18272. REFIID riid,
  18273. _COM_Outptr_opt_ void **ppvHeap);
  18274. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  18275. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  18276. ID3D12Device11 * This,
  18277. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18278. D3D12_RESOURCE_STATES InitialState,
  18279. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18280. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18281. REFIID riid,
  18282. _COM_Outptr_opt_ void **ppvResource);
  18283. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  18284. #if !defined(_WIN32)
  18285. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  18286. ID3D12Device11 * This,
  18287. UINT visibleMask,
  18288. UINT numResourceDescs,
  18289. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  18290. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18291. #else
  18292. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  18293. ID3D12Device11 * This,
  18294. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18295. UINT visibleMask,
  18296. UINT numResourceDescs,
  18297. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  18298. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18299. #endif
  18300. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  18301. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  18302. ID3D12Device11 * This,
  18303. _In_ ID3D12LifetimeOwner *pOwner,
  18304. REFIID riid,
  18305. _COM_Outptr_ void **ppvTracker);
  18306. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  18307. void ( STDMETHODCALLTYPE *RemoveDevice )(
  18308. ID3D12Device11 * This);
  18309. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  18310. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  18311. ID3D12Device11 * This,
  18312. _Inout_ UINT *pNumMetaCommands,
  18313. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  18314. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  18315. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  18316. ID3D12Device11 * This,
  18317. _In_ REFGUID CommandId,
  18318. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  18319. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  18320. _Inout_ UINT *pParameterCount,
  18321. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  18322. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  18323. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  18324. ID3D12Device11 * This,
  18325. _In_ REFGUID CommandId,
  18326. _In_ UINT NodeMask,
  18327. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  18328. _In_ SIZE_T CreationParametersDataSizeInBytes,
  18329. REFIID riid,
  18330. _COM_Outptr_ void **ppMetaCommand);
  18331. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  18332. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  18333. ID3D12Device11 * This,
  18334. const D3D12_STATE_OBJECT_DESC *pDesc,
  18335. REFIID riid,
  18336. _COM_Outptr_ void **ppStateObject);
  18337. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  18338. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  18339. ID3D12Device11 * This,
  18340. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  18341. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  18342. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  18343. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  18344. ID3D12Device11 * This,
  18345. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  18346. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  18347. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  18348. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  18349. ID3D12Device11 * This,
  18350. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  18351. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  18352. _In_opt_ HANDLE hEventToSignalUponCompletion,
  18353. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  18354. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  18355. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  18356. ID3D12Device11 * This,
  18357. const D3D12_STATE_OBJECT_DESC *pAddition,
  18358. ID3D12StateObject *pStateObjectToGrowFrom,
  18359. REFIID riid,
  18360. _COM_Outptr_ void **ppNewStateObject);
  18361. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  18362. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  18363. ID3D12Device11 * This,
  18364. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  18365. _In_ REFIID riid,
  18366. _COM_Outptr_ void **ppSession);
  18367. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  18368. #if !defined(_WIN32)
  18369. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  18370. ID3D12Device11 * This,
  18371. UINT visibleMask,
  18372. UINT numResourceDescs,
  18373. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  18374. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18375. #else
  18376. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  18377. ID3D12Device11 * This,
  18378. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18379. UINT visibleMask,
  18380. UINT numResourceDescs,
  18381. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  18382. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  18383. #endif
  18384. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  18385. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  18386. ID3D12Device11 * This,
  18387. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18388. D3D12_HEAP_FLAGS HeapFlags,
  18389. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18390. D3D12_RESOURCE_STATES InitialResourceState,
  18391. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18392. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18393. REFIID riidResource,
  18394. _COM_Outptr_opt_ void **ppvResource);
  18395. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  18396. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  18397. ID3D12Device11 * This,
  18398. _In_ ID3D12Heap *pHeap,
  18399. UINT64 HeapOffset,
  18400. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18401. D3D12_RESOURCE_STATES InitialState,
  18402. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18403. REFIID riid,
  18404. _COM_Outptr_opt_ void **ppvResource);
  18405. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  18406. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  18407. ID3D12Device11 * This,
  18408. _In_opt_ ID3D12Resource *pTargetedResource,
  18409. _In_opt_ ID3D12Resource *pFeedbackResource,
  18410. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18411. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  18412. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  18413. ID3D12Device11 * This,
  18414. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  18415. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  18416. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  18417. UINT64 BaseOffset,
  18418. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  18419. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  18420. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  18421. _Out_opt_ UINT64 *pTotalBytes);
  18422. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  18423. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  18424. ID3D12Device11 * This,
  18425. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  18426. REFIID riid,
  18427. _COM_Outptr_opt_ void **ppvSession);
  18428. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  18429. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  18430. ID3D12Device11 * This,
  18431. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  18432. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  18433. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  18434. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  18435. ID3D12Device11 * This,
  18436. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  18437. REFIID CreatorID,
  18438. REFIID riid,
  18439. _COM_Outptr_ void **ppCommandQueue);
  18440. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  18441. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  18442. ID3D12Device11 * This,
  18443. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18444. D3D12_HEAP_FLAGS HeapFlags,
  18445. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18446. D3D12_BARRIER_LAYOUT InitialLayout,
  18447. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18448. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18449. UINT32 NumCastableFormats,
  18450. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  18451. REFIID riidResource,
  18452. _COM_Outptr_opt_ void **ppvResource);
  18453. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  18454. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  18455. ID3D12Device11 * This,
  18456. _In_ ID3D12Heap *pHeap,
  18457. UINT64 HeapOffset,
  18458. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  18459. D3D12_BARRIER_LAYOUT InitialLayout,
  18460. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18461. UINT32 NumCastableFormats,
  18462. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  18463. REFIID riid,
  18464. _COM_Outptr_opt_ void **ppvResource);
  18465. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  18466. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  18467. ID3D12Device11 * This,
  18468. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18469. D3D12_BARRIER_LAYOUT InitialLayout,
  18470. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18471. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  18472. UINT32 NumCastableFormats,
  18473. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  18474. REFIID riid,
  18475. _COM_Outptr_opt_ void **ppvResource);
  18476. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  18477. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  18478. ID3D12Device11 * This,
  18479. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  18480. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18481. END_INTERFACE
  18482. } ID3D12Device11Vtbl;
  18483. interface ID3D12Device11
  18484. {
  18485. CONST_VTBL struct ID3D12Device11Vtbl *lpVtbl;
  18486. };
  18487. #ifdef COBJMACROS
  18488. #define ID3D12Device11_QueryInterface(This,riid,ppvObject) \
  18489. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  18490. #define ID3D12Device11_AddRef(This) \
  18491. ( (This)->lpVtbl -> AddRef(This) )
  18492. #define ID3D12Device11_Release(This) \
  18493. ( (This)->lpVtbl -> Release(This) )
  18494. #define ID3D12Device11_GetPrivateData(This,guid,pDataSize,pData) \
  18495. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  18496. #define ID3D12Device11_SetPrivateData(This,guid,DataSize,pData) \
  18497. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  18498. #define ID3D12Device11_SetPrivateDataInterface(This,guid,pData) \
  18499. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  18500. #define ID3D12Device11_SetName(This,Name) \
  18501. ( (This)->lpVtbl -> SetName(This,Name) )
  18502. #define ID3D12Device11_GetNodeCount(This) \
  18503. ( (This)->lpVtbl -> GetNodeCount(This) )
  18504. #define ID3D12Device11_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  18505. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  18506. #define ID3D12Device11_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  18507. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  18508. #define ID3D12Device11_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  18509. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  18510. #define ID3D12Device11_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  18511. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  18512. #define ID3D12Device11_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  18513. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  18514. #define ID3D12Device11_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  18515. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  18516. #define ID3D12Device11_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  18517. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  18518. #define ID3D12Device11_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  18519. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  18520. #define ID3D12Device11_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  18521. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  18522. #define ID3D12Device11_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  18523. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  18524. #define ID3D12Device11_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  18525. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  18526. #define ID3D12Device11_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  18527. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  18528. #define ID3D12Device11_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  18529. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  18530. #define ID3D12Device11_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  18531. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  18532. #define ID3D12Device11_CreateSampler(This,pDesc,DestDescriptor) \
  18533. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  18534. #define ID3D12Device11_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  18535. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  18536. #define ID3D12Device11_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  18537. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  18538. #if !defined(_WIN32)
  18539. #define ID3D12Device11_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  18540. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  18541. #else
  18542. #define ID3D12Device11_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  18543. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  18544. #endif
  18545. #if !defined(_WIN32)
  18546. #define ID3D12Device11_GetCustomHeapProperties(This,nodeMask,heapType) \
  18547. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  18548. #else
  18549. #define ID3D12Device11_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  18550. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  18551. #endif
  18552. #define ID3D12Device11_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  18553. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  18554. #define ID3D12Device11_CreateHeap(This,pDesc,riid,ppvHeap) \
  18555. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  18556. #define ID3D12Device11_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  18557. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  18558. #define ID3D12Device11_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  18559. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  18560. #define ID3D12Device11_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  18561. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  18562. #define ID3D12Device11_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  18563. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  18564. #define ID3D12Device11_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  18565. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  18566. #define ID3D12Device11_MakeResident(This,NumObjects,ppObjects) \
  18567. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  18568. #define ID3D12Device11_Evict(This,NumObjects,ppObjects) \
  18569. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  18570. #define ID3D12Device11_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  18571. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  18572. #define ID3D12Device11_GetDeviceRemovedReason(This) \
  18573. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  18574. #define ID3D12Device11_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  18575. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  18576. #define ID3D12Device11_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  18577. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  18578. #define ID3D12Device11_SetStablePowerState(This,Enable) \
  18579. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  18580. #define ID3D12Device11_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  18581. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  18582. #define ID3D12Device11_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  18583. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  18584. #if !defined(_WIN32)
  18585. #define ID3D12Device11_GetAdapterLuid(This) \
  18586. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  18587. #else
  18588. #define ID3D12Device11_GetAdapterLuid(This,RetVal) \
  18589. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  18590. #endif
  18591. #define ID3D12Device11_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  18592. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  18593. #define ID3D12Device11_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  18594. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  18595. #define ID3D12Device11_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  18596. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  18597. #define ID3D12Device11_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  18598. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  18599. #define ID3D12Device11_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  18600. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  18601. #define ID3D12Device11_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  18602. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  18603. #define ID3D12Device11_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  18604. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  18605. #define ID3D12Device11_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  18606. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  18607. #define ID3D12Device11_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  18608. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  18609. #define ID3D12Device11_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  18610. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  18611. #define ID3D12Device11_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  18612. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  18613. #define ID3D12Device11_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  18614. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  18615. #if !defined(_WIN32)
  18616. #define ID3D12Device11_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18617. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18618. #else
  18619. #define ID3D12Device11_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18620. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18621. #endif
  18622. #define ID3D12Device11_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  18623. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  18624. #define ID3D12Device11_RemoveDevice(This) \
  18625. ( (This)->lpVtbl -> RemoveDevice(This) )
  18626. #define ID3D12Device11_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  18627. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  18628. #define ID3D12Device11_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  18629. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  18630. #define ID3D12Device11_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  18631. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  18632. #define ID3D12Device11_CreateStateObject(This,pDesc,riid,ppStateObject) \
  18633. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  18634. #define ID3D12Device11_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  18635. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  18636. #define ID3D12Device11_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  18637. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  18638. #define ID3D12Device11_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  18639. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  18640. #define ID3D12Device11_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  18641. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  18642. #define ID3D12Device11_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  18643. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  18644. #if !defined(_WIN32)
  18645. #define ID3D12Device11_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18646. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18647. #else
  18648. #define ID3D12Device11_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  18649. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  18650. #endif
  18651. #define ID3D12Device11_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  18652. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  18653. #define ID3D12Device11_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  18654. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  18655. #define ID3D12Device11_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  18656. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  18657. #define ID3D12Device11_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  18658. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  18659. #define ID3D12Device11_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  18660. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  18661. #define ID3D12Device11_ShaderCacheControl(This,Kinds,Control) \
  18662. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  18663. #define ID3D12Device11_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  18664. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  18665. #define ID3D12Device11_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  18666. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  18667. #define ID3D12Device11_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  18668. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  18669. #define ID3D12Device11_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  18670. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  18671. #define ID3D12Device11_CreateSampler2(This,pDesc,DestDescriptor) \
  18672. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  18673. #endif /* COBJMACROS */
  18674. #endif /* C style interface */
  18675. #endif /* __ID3D12Device11_INTERFACE_DEFINED__ */
  18676. #ifndef __ID3D12Device12_INTERFACE_DEFINED__
  18677. #define __ID3D12Device12_INTERFACE_DEFINED__
  18678. /* interface ID3D12Device12 */
  18679. /* [unique][local][object][uuid] */
  18680. EXTERN_C const IID IID_ID3D12Device12;
  18681. #if defined(__cplusplus) && !defined(CINTERFACE)
  18682. MIDL_INTERFACE("5af5c532-4c91-4cd0-b541-15a405395fc5")
  18683. ID3D12Device12 : public ID3D12Device11
  18684. {
  18685. public:
  18686. #if defined(_MSC_VER) || !defined(_WIN32)
  18687. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo3(
  18688. UINT visibleMask,
  18689. UINT numResourceDescs,
  18690. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  18691. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  18692. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  18693. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  18694. #else
  18695. virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo3(
  18696. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18697. UINT visibleMask,
  18698. UINT numResourceDescs,
  18699. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  18700. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  18701. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  18702. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0;
  18703. #endif
  18704. };
  18705. #else /* C style interface */
  18706. typedef struct ID3D12Device12Vtbl
  18707. {
  18708. BEGIN_INTERFACE
  18709. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  18710. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  18711. ID3D12Device12 * This,
  18712. REFIID riid,
  18713. _COM_Outptr_ void **ppvObject);
  18714. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  18715. ULONG ( STDMETHODCALLTYPE *AddRef )(
  18716. ID3D12Device12 * This);
  18717. DECLSPEC_XFGVIRT(IUnknown, Release)
  18718. ULONG ( STDMETHODCALLTYPE *Release )(
  18719. ID3D12Device12 * This);
  18720. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  18721. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  18722. ID3D12Device12 * This,
  18723. _In_ REFGUID guid,
  18724. _Inout_ UINT *pDataSize,
  18725. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  18726. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  18727. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  18728. ID3D12Device12 * This,
  18729. _In_ REFGUID guid,
  18730. _In_ UINT DataSize,
  18731. _In_reads_bytes_opt_( DataSize ) const void *pData);
  18732. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  18733. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  18734. ID3D12Device12 * This,
  18735. _In_ REFGUID guid,
  18736. _In_opt_ const IUnknown *pData);
  18737. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  18738. HRESULT ( STDMETHODCALLTYPE *SetName )(
  18739. ID3D12Device12 * This,
  18740. _In_z_ LPCWSTR Name);
  18741. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  18742. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  18743. ID3D12Device12 * This);
  18744. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  18745. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  18746. ID3D12Device12 * This,
  18747. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  18748. REFIID riid,
  18749. _COM_Outptr_ void **ppCommandQueue);
  18750. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  18751. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  18752. ID3D12Device12 * This,
  18753. _In_ D3D12_COMMAND_LIST_TYPE type,
  18754. REFIID riid,
  18755. _COM_Outptr_ void **ppCommandAllocator);
  18756. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  18757. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  18758. ID3D12Device12 * This,
  18759. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  18760. REFIID riid,
  18761. _COM_Outptr_ void **ppPipelineState);
  18762. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  18763. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  18764. ID3D12Device12 * This,
  18765. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  18766. REFIID riid,
  18767. _COM_Outptr_ void **ppPipelineState);
  18768. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  18769. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  18770. ID3D12Device12 * This,
  18771. _In_ UINT nodeMask,
  18772. _In_ D3D12_COMMAND_LIST_TYPE type,
  18773. _In_ ID3D12CommandAllocator *pCommandAllocator,
  18774. _In_opt_ ID3D12PipelineState *pInitialState,
  18775. REFIID riid,
  18776. _COM_Outptr_ void **ppCommandList);
  18777. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  18778. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  18779. ID3D12Device12 * This,
  18780. D3D12_FEATURE Feature,
  18781. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  18782. UINT FeatureSupportDataSize);
  18783. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  18784. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  18785. ID3D12Device12 * This,
  18786. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  18787. REFIID riid,
  18788. _COM_Outptr_ void **ppvHeap);
  18789. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  18790. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  18791. ID3D12Device12 * This,
  18792. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  18793. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  18794. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  18795. ID3D12Device12 * This,
  18796. _In_ UINT nodeMask,
  18797. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  18798. _In_ SIZE_T blobLengthInBytes,
  18799. REFIID riid,
  18800. _COM_Outptr_ void **ppvRootSignature);
  18801. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  18802. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  18803. ID3D12Device12 * This,
  18804. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  18805. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18806. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  18807. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  18808. ID3D12Device12 * This,
  18809. _In_opt_ ID3D12Resource *pResource,
  18810. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  18811. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18812. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  18813. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  18814. ID3D12Device12 * This,
  18815. _In_opt_ ID3D12Resource *pResource,
  18816. _In_opt_ ID3D12Resource *pCounterResource,
  18817. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  18818. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18819. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  18820. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  18821. ID3D12Device12 * This,
  18822. _In_opt_ ID3D12Resource *pResource,
  18823. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  18824. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18825. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  18826. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  18827. ID3D12Device12 * This,
  18828. _In_opt_ ID3D12Resource *pResource,
  18829. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  18830. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18831. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  18832. void ( STDMETHODCALLTYPE *CreateSampler )(
  18833. ID3D12Device12 * This,
  18834. _In_ const D3D12_SAMPLER_DESC *pDesc,
  18835. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  18836. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  18837. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  18838. ID3D12Device12 * This,
  18839. _In_ UINT NumDestDescriptorRanges,
  18840. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  18841. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  18842. _In_ UINT NumSrcDescriptorRanges,
  18843. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  18844. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  18845. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  18846. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  18847. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  18848. ID3D12Device12 * This,
  18849. _In_ UINT NumDescriptors,
  18850. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  18851. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  18852. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  18853. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  18854. #if !defined(_WIN32)
  18855. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  18856. ID3D12Device12 * This,
  18857. _In_ UINT visibleMask,
  18858. _In_ UINT numResourceDescs,
  18859. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  18860. #else
  18861. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  18862. ID3D12Device12 * This,
  18863. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  18864. _In_ UINT visibleMask,
  18865. _In_ UINT numResourceDescs,
  18866. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  18867. #endif
  18868. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  18869. #if !defined(_WIN32)
  18870. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  18871. ID3D12Device12 * This,
  18872. _In_ UINT nodeMask,
  18873. D3D12_HEAP_TYPE heapType);
  18874. #else
  18875. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  18876. ID3D12Device12 * This,
  18877. D3D12_HEAP_PROPERTIES * RetVal,
  18878. _In_ UINT nodeMask,
  18879. D3D12_HEAP_TYPE heapType);
  18880. #endif
  18881. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  18882. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  18883. ID3D12Device12 * This,
  18884. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  18885. D3D12_HEAP_FLAGS HeapFlags,
  18886. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18887. D3D12_RESOURCE_STATES InitialResourceState,
  18888. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18889. REFIID riidResource,
  18890. _COM_Outptr_opt_ void **ppvResource);
  18891. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  18892. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  18893. ID3D12Device12 * This,
  18894. _In_ const D3D12_HEAP_DESC *pDesc,
  18895. REFIID riid,
  18896. _COM_Outptr_opt_ void **ppvHeap);
  18897. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  18898. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  18899. ID3D12Device12 * This,
  18900. _In_ ID3D12Heap *pHeap,
  18901. UINT64 HeapOffset,
  18902. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18903. D3D12_RESOURCE_STATES InitialState,
  18904. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18905. REFIID riid,
  18906. _COM_Outptr_opt_ void **ppvResource);
  18907. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  18908. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  18909. ID3D12Device12 * This,
  18910. _In_ const D3D12_RESOURCE_DESC *pDesc,
  18911. D3D12_RESOURCE_STATES InitialState,
  18912. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  18913. REFIID riid,
  18914. _COM_Outptr_opt_ void **ppvResource);
  18915. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  18916. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  18917. ID3D12Device12 * This,
  18918. _In_ ID3D12DeviceChild *pObject,
  18919. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  18920. DWORD Access,
  18921. _In_opt_ LPCWSTR Name,
  18922. _Out_ HANDLE *pHandle);
  18923. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  18924. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  18925. ID3D12Device12 * This,
  18926. _In_ HANDLE NTHandle,
  18927. REFIID riid,
  18928. _COM_Outptr_opt_ void **ppvObj);
  18929. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  18930. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  18931. ID3D12Device12 * This,
  18932. _In_ LPCWSTR Name,
  18933. DWORD Access,
  18934. /* [annotation][out] */
  18935. _Out_ HANDLE *pNTHandle);
  18936. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  18937. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  18938. ID3D12Device12 * This,
  18939. UINT NumObjects,
  18940. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  18941. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  18942. HRESULT ( STDMETHODCALLTYPE *Evict )(
  18943. ID3D12Device12 * This,
  18944. UINT NumObjects,
  18945. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  18946. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  18947. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  18948. ID3D12Device12 * This,
  18949. UINT64 InitialValue,
  18950. D3D12_FENCE_FLAGS Flags,
  18951. REFIID riid,
  18952. _COM_Outptr_ void **ppFence);
  18953. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  18954. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  18955. ID3D12Device12 * This);
  18956. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  18957. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  18958. ID3D12Device12 * This,
  18959. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  18960. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  18961. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  18962. UINT64 BaseOffset,
  18963. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  18964. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  18965. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  18966. _Out_opt_ UINT64 *pTotalBytes);
  18967. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  18968. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  18969. ID3D12Device12 * This,
  18970. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  18971. REFIID riid,
  18972. _COM_Outptr_opt_ void **ppvHeap);
  18973. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  18974. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  18975. ID3D12Device12 * This,
  18976. BOOL Enable);
  18977. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  18978. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  18979. ID3D12Device12 * This,
  18980. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  18981. _In_opt_ ID3D12RootSignature *pRootSignature,
  18982. REFIID riid,
  18983. _COM_Outptr_opt_ void **ppvCommandSignature);
  18984. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  18985. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  18986. ID3D12Device12 * This,
  18987. _In_ ID3D12Resource *pTiledResource,
  18988. _Out_opt_ UINT *pNumTilesForEntireResource,
  18989. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  18990. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  18991. _Inout_opt_ UINT *pNumSubresourceTilings,
  18992. _In_ UINT FirstSubresourceTilingToGet,
  18993. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  18994. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  18995. #if !defined(_WIN32)
  18996. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  18997. ID3D12Device12 * This);
  18998. #else
  18999. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  19000. ID3D12Device12 * This,
  19001. LUID * RetVal);
  19002. #endif
  19003. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  19004. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  19005. ID3D12Device12 * This,
  19006. _In_reads_(BlobLength) const void *pLibraryBlob,
  19007. SIZE_T BlobLength,
  19008. REFIID riid,
  19009. _COM_Outptr_ void **ppPipelineLibrary);
  19010. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  19011. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  19012. ID3D12Device12 * This,
  19013. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  19014. _In_reads_(NumFences) const UINT64 *pFenceValues,
  19015. UINT NumFences,
  19016. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  19017. HANDLE hEvent);
  19018. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  19019. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  19020. ID3D12Device12 * This,
  19021. UINT NumObjects,
  19022. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  19023. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  19024. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  19025. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  19026. ID3D12Device12 * This,
  19027. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  19028. REFIID riid,
  19029. _COM_Outptr_ void **ppPipelineState);
  19030. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  19031. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  19032. ID3D12Device12 * This,
  19033. _In_ const void *pAddress,
  19034. REFIID riid,
  19035. _COM_Outptr_ void **ppvHeap);
  19036. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  19037. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  19038. ID3D12Device12 * This,
  19039. _In_ HANDLE hFileMapping,
  19040. REFIID riid,
  19041. _COM_Outptr_ void **ppvHeap);
  19042. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  19043. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  19044. ID3D12Device12 * This,
  19045. D3D12_RESIDENCY_FLAGS Flags,
  19046. UINT NumObjects,
  19047. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  19048. _In_ ID3D12Fence *pFenceToSignal,
  19049. UINT64 FenceValueToSignal);
  19050. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  19051. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  19052. ID3D12Device12 * This,
  19053. _In_ UINT nodeMask,
  19054. _In_ D3D12_COMMAND_LIST_TYPE type,
  19055. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  19056. REFIID riid,
  19057. _COM_Outptr_ void **ppCommandList);
  19058. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  19059. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  19060. ID3D12Device12 * This,
  19061. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  19062. _In_ REFIID riid,
  19063. _COM_Outptr_ void **ppSession);
  19064. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  19065. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  19066. ID3D12Device12 * This,
  19067. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19068. D3D12_HEAP_FLAGS HeapFlags,
  19069. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19070. D3D12_RESOURCE_STATES InitialResourceState,
  19071. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19072. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19073. REFIID riidResource,
  19074. _COM_Outptr_opt_ void **ppvResource);
  19075. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  19076. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  19077. ID3D12Device12 * This,
  19078. _In_ const D3D12_HEAP_DESC *pDesc,
  19079. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19080. REFIID riid,
  19081. _COM_Outptr_opt_ void **ppvHeap);
  19082. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  19083. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  19084. ID3D12Device12 * This,
  19085. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19086. D3D12_RESOURCE_STATES InitialState,
  19087. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19088. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19089. REFIID riid,
  19090. _COM_Outptr_opt_ void **ppvResource);
  19091. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  19092. #if !defined(_WIN32)
  19093. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  19094. ID3D12Device12 * This,
  19095. UINT visibleMask,
  19096. UINT numResourceDescs,
  19097. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  19098. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19099. #else
  19100. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  19101. ID3D12Device12 * This,
  19102. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19103. UINT visibleMask,
  19104. UINT numResourceDescs,
  19105. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  19106. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19107. #endif
  19108. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  19109. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  19110. ID3D12Device12 * This,
  19111. _In_ ID3D12LifetimeOwner *pOwner,
  19112. REFIID riid,
  19113. _COM_Outptr_ void **ppvTracker);
  19114. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  19115. void ( STDMETHODCALLTYPE *RemoveDevice )(
  19116. ID3D12Device12 * This);
  19117. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  19118. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  19119. ID3D12Device12 * This,
  19120. _Inout_ UINT *pNumMetaCommands,
  19121. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  19122. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  19123. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  19124. ID3D12Device12 * This,
  19125. _In_ REFGUID CommandId,
  19126. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  19127. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  19128. _Inout_ UINT *pParameterCount,
  19129. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  19130. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  19131. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  19132. ID3D12Device12 * This,
  19133. _In_ REFGUID CommandId,
  19134. _In_ UINT NodeMask,
  19135. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  19136. _In_ SIZE_T CreationParametersDataSizeInBytes,
  19137. REFIID riid,
  19138. _COM_Outptr_ void **ppMetaCommand);
  19139. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  19140. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  19141. ID3D12Device12 * This,
  19142. const D3D12_STATE_OBJECT_DESC *pDesc,
  19143. REFIID riid,
  19144. _COM_Outptr_ void **ppStateObject);
  19145. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  19146. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  19147. ID3D12Device12 * This,
  19148. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  19149. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  19150. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  19151. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  19152. ID3D12Device12 * This,
  19153. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  19154. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  19155. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  19156. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  19157. ID3D12Device12 * This,
  19158. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  19159. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  19160. _In_opt_ HANDLE hEventToSignalUponCompletion,
  19161. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  19162. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  19163. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  19164. ID3D12Device12 * This,
  19165. const D3D12_STATE_OBJECT_DESC *pAddition,
  19166. ID3D12StateObject *pStateObjectToGrowFrom,
  19167. REFIID riid,
  19168. _COM_Outptr_ void **ppNewStateObject);
  19169. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  19170. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  19171. ID3D12Device12 * This,
  19172. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  19173. _In_ REFIID riid,
  19174. _COM_Outptr_ void **ppSession);
  19175. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  19176. #if !defined(_WIN32)
  19177. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  19178. ID3D12Device12 * This,
  19179. UINT visibleMask,
  19180. UINT numResourceDescs,
  19181. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19182. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19183. #else
  19184. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  19185. ID3D12Device12 * This,
  19186. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19187. UINT visibleMask,
  19188. UINT numResourceDescs,
  19189. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19190. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19191. #endif
  19192. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  19193. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  19194. ID3D12Device12 * This,
  19195. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19196. D3D12_HEAP_FLAGS HeapFlags,
  19197. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19198. D3D12_RESOURCE_STATES InitialResourceState,
  19199. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19200. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19201. REFIID riidResource,
  19202. _COM_Outptr_opt_ void **ppvResource);
  19203. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  19204. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  19205. ID3D12Device12 * This,
  19206. _In_ ID3D12Heap *pHeap,
  19207. UINT64 HeapOffset,
  19208. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19209. D3D12_RESOURCE_STATES InitialState,
  19210. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19211. REFIID riid,
  19212. _COM_Outptr_opt_ void **ppvResource);
  19213. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  19214. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  19215. ID3D12Device12 * This,
  19216. _In_opt_ ID3D12Resource *pTargetedResource,
  19217. _In_opt_ ID3D12Resource *pFeedbackResource,
  19218. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19219. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  19220. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  19221. ID3D12Device12 * This,
  19222. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  19223. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  19224. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  19225. UINT64 BaseOffset,
  19226. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  19227. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  19228. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  19229. _Out_opt_ UINT64 *pTotalBytes);
  19230. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  19231. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  19232. ID3D12Device12 * This,
  19233. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  19234. REFIID riid,
  19235. _COM_Outptr_opt_ void **ppvSession);
  19236. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  19237. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  19238. ID3D12Device12 * This,
  19239. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  19240. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  19241. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  19242. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  19243. ID3D12Device12 * This,
  19244. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  19245. REFIID CreatorID,
  19246. REFIID riid,
  19247. _COM_Outptr_ void **ppCommandQueue);
  19248. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  19249. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  19250. ID3D12Device12 * This,
  19251. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19252. D3D12_HEAP_FLAGS HeapFlags,
  19253. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19254. D3D12_BARRIER_LAYOUT InitialLayout,
  19255. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19256. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19257. UINT32 NumCastableFormats,
  19258. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19259. REFIID riidResource,
  19260. _COM_Outptr_opt_ void **ppvResource);
  19261. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  19262. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  19263. ID3D12Device12 * This,
  19264. _In_ ID3D12Heap *pHeap,
  19265. UINT64 HeapOffset,
  19266. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  19267. D3D12_BARRIER_LAYOUT InitialLayout,
  19268. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19269. UINT32 NumCastableFormats,
  19270. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19271. REFIID riid,
  19272. _COM_Outptr_opt_ void **ppvResource);
  19273. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  19274. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  19275. ID3D12Device12 * This,
  19276. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19277. D3D12_BARRIER_LAYOUT InitialLayout,
  19278. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19279. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19280. UINT32 NumCastableFormats,
  19281. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  19282. REFIID riid,
  19283. _COM_Outptr_opt_ void **ppvResource);
  19284. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  19285. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  19286. ID3D12Device12 * This,
  19287. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  19288. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19289. DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3)
  19290. #if !defined(_WIN32)
  19291. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  19292. ID3D12Device12 * This,
  19293. UINT visibleMask,
  19294. UINT numResourceDescs,
  19295. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19296. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  19297. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  19298. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19299. #else
  19300. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  19301. ID3D12Device12 * This,
  19302. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19303. UINT visibleMask,
  19304. UINT numResourceDescs,
  19305. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  19306. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  19307. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  19308. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19309. #endif
  19310. END_INTERFACE
  19311. } ID3D12Device12Vtbl;
  19312. interface ID3D12Device12
  19313. {
  19314. CONST_VTBL struct ID3D12Device12Vtbl *lpVtbl;
  19315. };
  19316. #ifdef COBJMACROS
  19317. #define ID3D12Device12_QueryInterface(This,riid,ppvObject) \
  19318. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  19319. #define ID3D12Device12_AddRef(This) \
  19320. ( (This)->lpVtbl -> AddRef(This) )
  19321. #define ID3D12Device12_Release(This) \
  19322. ( (This)->lpVtbl -> Release(This) )
  19323. #define ID3D12Device12_GetPrivateData(This,guid,pDataSize,pData) \
  19324. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  19325. #define ID3D12Device12_SetPrivateData(This,guid,DataSize,pData) \
  19326. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  19327. #define ID3D12Device12_SetPrivateDataInterface(This,guid,pData) \
  19328. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  19329. #define ID3D12Device12_SetName(This,Name) \
  19330. ( (This)->lpVtbl -> SetName(This,Name) )
  19331. #define ID3D12Device12_GetNodeCount(This) \
  19332. ( (This)->lpVtbl -> GetNodeCount(This) )
  19333. #define ID3D12Device12_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  19334. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  19335. #define ID3D12Device12_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  19336. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  19337. #define ID3D12Device12_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  19338. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  19339. #define ID3D12Device12_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  19340. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  19341. #define ID3D12Device12_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  19342. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  19343. #define ID3D12Device12_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  19344. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  19345. #define ID3D12Device12_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  19346. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  19347. #define ID3D12Device12_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  19348. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  19349. #define ID3D12Device12_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  19350. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  19351. #define ID3D12Device12_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  19352. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  19353. #define ID3D12Device12_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  19354. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  19355. #define ID3D12Device12_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  19356. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  19357. #define ID3D12Device12_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  19358. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  19359. #define ID3D12Device12_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  19360. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  19361. #define ID3D12Device12_CreateSampler(This,pDesc,DestDescriptor) \
  19362. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  19363. #define ID3D12Device12_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  19364. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  19365. #define ID3D12Device12_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  19366. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  19367. #if !defined(_WIN32)
  19368. #define ID3D12Device12_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  19369. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  19370. #else
  19371. #define ID3D12Device12_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  19372. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  19373. #endif
  19374. #if !defined(_WIN32)
  19375. #define ID3D12Device12_GetCustomHeapProperties(This,nodeMask,heapType) \
  19376. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  19377. #else
  19378. #define ID3D12Device12_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  19379. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  19380. #endif
  19381. #define ID3D12Device12_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  19382. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  19383. #define ID3D12Device12_CreateHeap(This,pDesc,riid,ppvHeap) \
  19384. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  19385. #define ID3D12Device12_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19386. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19387. #define ID3D12Device12_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19388. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19389. #define ID3D12Device12_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  19390. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  19391. #define ID3D12Device12_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  19392. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  19393. #define ID3D12Device12_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  19394. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  19395. #define ID3D12Device12_MakeResident(This,NumObjects,ppObjects) \
  19396. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  19397. #define ID3D12Device12_Evict(This,NumObjects,ppObjects) \
  19398. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  19399. #define ID3D12Device12_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  19400. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  19401. #define ID3D12Device12_GetDeviceRemovedReason(This) \
  19402. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  19403. #define ID3D12Device12_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  19404. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  19405. #define ID3D12Device12_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  19406. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  19407. #define ID3D12Device12_SetStablePowerState(This,Enable) \
  19408. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  19409. #define ID3D12Device12_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  19410. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  19411. #define ID3D12Device12_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  19412. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  19413. #if !defined(_WIN32)
  19414. #define ID3D12Device12_GetAdapterLuid(This) \
  19415. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  19416. #else
  19417. #define ID3D12Device12_GetAdapterLuid(This,RetVal) \
  19418. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  19419. #endif
  19420. #define ID3D12Device12_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  19421. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  19422. #define ID3D12Device12_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  19423. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  19424. #define ID3D12Device12_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  19425. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  19426. #define ID3D12Device12_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  19427. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  19428. #define ID3D12Device12_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  19429. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  19430. #define ID3D12Device12_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  19431. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  19432. #define ID3D12Device12_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  19433. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  19434. #define ID3D12Device12_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  19435. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  19436. #define ID3D12Device12_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  19437. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  19438. #define ID3D12Device12_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  19439. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  19440. #define ID3D12Device12_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  19441. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  19442. #define ID3D12Device12_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  19443. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  19444. #if !defined(_WIN32)
  19445. #define ID3D12Device12_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19446. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19447. #else
  19448. #define ID3D12Device12_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19449. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19450. #endif
  19451. #define ID3D12Device12_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  19452. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  19453. #define ID3D12Device12_RemoveDevice(This) \
  19454. ( (This)->lpVtbl -> RemoveDevice(This) )
  19455. #define ID3D12Device12_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  19456. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  19457. #define ID3D12Device12_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  19458. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  19459. #define ID3D12Device12_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  19460. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  19461. #define ID3D12Device12_CreateStateObject(This,pDesc,riid,ppStateObject) \
  19462. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  19463. #define ID3D12Device12_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  19464. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  19465. #define ID3D12Device12_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  19466. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  19467. #define ID3D12Device12_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  19468. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  19469. #define ID3D12Device12_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  19470. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  19471. #define ID3D12Device12_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  19472. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  19473. #if !defined(_WIN32)
  19474. #define ID3D12Device12_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19475. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19476. #else
  19477. #define ID3D12Device12_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  19478. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  19479. #endif
  19480. #define ID3D12Device12_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  19481. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  19482. #define ID3D12Device12_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  19483. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  19484. #define ID3D12Device12_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  19485. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  19486. #define ID3D12Device12_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  19487. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  19488. #define ID3D12Device12_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  19489. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  19490. #define ID3D12Device12_ShaderCacheControl(This,Kinds,Control) \
  19491. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  19492. #define ID3D12Device12_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  19493. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  19494. #define ID3D12Device12_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  19495. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  19496. #define ID3D12Device12_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  19497. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  19498. #define ID3D12Device12_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  19499. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  19500. #define ID3D12Device12_CreateSampler2(This,pDesc,DestDescriptor) \
  19501. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  19502. #if !defined(_WIN32)
  19503. #define ID3D12Device12_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  19504. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  19505. #else
  19506. #define ID3D12Device12_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  19507. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  19508. #endif
  19509. #endif /* COBJMACROS */
  19510. #endif /* C style interface */
  19511. #endif /* __ID3D12Device12_INTERFACE_DEFINED__ */
  19512. #ifndef __ID3D12Device13_INTERFACE_DEFINED__
  19513. #define __ID3D12Device13_INTERFACE_DEFINED__
  19514. /* interface ID3D12Device13 */
  19515. /* [unique][local][object][uuid] */
  19516. EXTERN_C const IID IID_ID3D12Device13;
  19517. #if defined(__cplusplus) && !defined(CINTERFACE)
  19518. MIDL_INTERFACE("14eecffc-4df8-40f7-a118-5c816f45695e")
  19519. ID3D12Device13 : public ID3D12Device12
  19520. {
  19521. public:
  19522. virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromAddress1(
  19523. _In_ const void *pAddress,
  19524. SIZE_T size,
  19525. REFIID riid,
  19526. _COM_Outptr_ void **ppvHeap) = 0;
  19527. };
  19528. #else /* C style interface */
  19529. typedef struct ID3D12Device13Vtbl
  19530. {
  19531. BEGIN_INTERFACE
  19532. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  19533. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  19534. ID3D12Device13 * This,
  19535. REFIID riid,
  19536. _COM_Outptr_ void **ppvObject);
  19537. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  19538. ULONG ( STDMETHODCALLTYPE *AddRef )(
  19539. ID3D12Device13 * This);
  19540. DECLSPEC_XFGVIRT(IUnknown, Release)
  19541. ULONG ( STDMETHODCALLTYPE *Release )(
  19542. ID3D12Device13 * This);
  19543. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  19544. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  19545. ID3D12Device13 * This,
  19546. _In_ REFGUID guid,
  19547. _Inout_ UINT *pDataSize,
  19548. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  19549. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  19550. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  19551. ID3D12Device13 * This,
  19552. _In_ REFGUID guid,
  19553. _In_ UINT DataSize,
  19554. _In_reads_bytes_opt_( DataSize ) const void *pData);
  19555. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  19556. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  19557. ID3D12Device13 * This,
  19558. _In_ REFGUID guid,
  19559. _In_opt_ const IUnknown *pData);
  19560. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  19561. HRESULT ( STDMETHODCALLTYPE *SetName )(
  19562. ID3D12Device13 * This,
  19563. _In_z_ LPCWSTR Name);
  19564. DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount)
  19565. UINT ( STDMETHODCALLTYPE *GetNodeCount )(
  19566. ID3D12Device13 * This);
  19567. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue)
  19568. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )(
  19569. ID3D12Device13 * This,
  19570. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  19571. REFIID riid,
  19572. _COM_Outptr_ void **ppCommandQueue);
  19573. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator)
  19574. HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )(
  19575. ID3D12Device13 * This,
  19576. _In_ D3D12_COMMAND_LIST_TYPE type,
  19577. REFIID riid,
  19578. _COM_Outptr_ void **ppCommandAllocator);
  19579. DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState)
  19580. HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )(
  19581. ID3D12Device13 * This,
  19582. _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc,
  19583. REFIID riid,
  19584. _COM_Outptr_ void **ppPipelineState);
  19585. DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState)
  19586. HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )(
  19587. ID3D12Device13 * This,
  19588. _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc,
  19589. REFIID riid,
  19590. _COM_Outptr_ void **ppPipelineState);
  19591. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList)
  19592. HRESULT ( STDMETHODCALLTYPE *CreateCommandList )(
  19593. ID3D12Device13 * This,
  19594. _In_ UINT nodeMask,
  19595. _In_ D3D12_COMMAND_LIST_TYPE type,
  19596. _In_ ID3D12CommandAllocator *pCommandAllocator,
  19597. _In_opt_ ID3D12PipelineState *pInitialState,
  19598. REFIID riid,
  19599. _COM_Outptr_ void **ppCommandList);
  19600. DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport)
  19601. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  19602. ID3D12Device13 * This,
  19603. D3D12_FEATURE Feature,
  19604. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  19605. UINT FeatureSupportDataSize);
  19606. DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap)
  19607. HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )(
  19608. ID3D12Device13 * This,
  19609. _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc,
  19610. REFIID riid,
  19611. _COM_Outptr_ void **ppvHeap);
  19612. DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize)
  19613. UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )(
  19614. ID3D12Device13 * This,
  19615. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType);
  19616. DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature)
  19617. HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )(
  19618. ID3D12Device13 * This,
  19619. _In_ UINT nodeMask,
  19620. _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature,
  19621. _In_ SIZE_T blobLengthInBytes,
  19622. REFIID riid,
  19623. _COM_Outptr_ void **ppvRootSignature);
  19624. DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView)
  19625. void ( STDMETHODCALLTYPE *CreateConstantBufferView )(
  19626. ID3D12Device13 * This,
  19627. _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc,
  19628. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19629. DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView)
  19630. void ( STDMETHODCALLTYPE *CreateShaderResourceView )(
  19631. ID3D12Device13 * This,
  19632. _In_opt_ ID3D12Resource *pResource,
  19633. _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc,
  19634. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19635. DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView)
  19636. void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )(
  19637. ID3D12Device13 * This,
  19638. _In_opt_ ID3D12Resource *pResource,
  19639. _In_opt_ ID3D12Resource *pCounterResource,
  19640. _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc,
  19641. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19642. DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView)
  19643. void ( STDMETHODCALLTYPE *CreateRenderTargetView )(
  19644. ID3D12Device13 * This,
  19645. _In_opt_ ID3D12Resource *pResource,
  19646. _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc,
  19647. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19648. DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView)
  19649. void ( STDMETHODCALLTYPE *CreateDepthStencilView )(
  19650. ID3D12Device13 * This,
  19651. _In_opt_ ID3D12Resource *pResource,
  19652. _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc,
  19653. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19654. DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler)
  19655. void ( STDMETHODCALLTYPE *CreateSampler )(
  19656. ID3D12Device13 * This,
  19657. _In_ const D3D12_SAMPLER_DESC *pDesc,
  19658. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  19659. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors)
  19660. void ( STDMETHODCALLTYPE *CopyDescriptors )(
  19661. ID3D12Device13 * This,
  19662. _In_ UINT NumDestDescriptorRanges,
  19663. _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts,
  19664. _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes,
  19665. _In_ UINT NumSrcDescriptorRanges,
  19666. _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts,
  19667. _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes,
  19668. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  19669. DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple)
  19670. void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )(
  19671. ID3D12Device13 * This,
  19672. _In_ UINT NumDescriptors,
  19673. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart,
  19674. _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart,
  19675. _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType);
  19676. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo)
  19677. #if !defined(_WIN32)
  19678. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  19679. ID3D12Device13 * This,
  19680. _In_ UINT visibleMask,
  19681. _In_ UINT numResourceDescs,
  19682. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  19683. #else
  19684. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )(
  19685. ID3D12Device13 * This,
  19686. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19687. _In_ UINT visibleMask,
  19688. _In_ UINT numResourceDescs,
  19689. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs);
  19690. #endif
  19691. DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties)
  19692. #if !defined(_WIN32)
  19693. D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  19694. ID3D12Device13 * This,
  19695. _In_ UINT nodeMask,
  19696. D3D12_HEAP_TYPE heapType);
  19697. #else
  19698. D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )(
  19699. ID3D12Device13 * This,
  19700. D3D12_HEAP_PROPERTIES * RetVal,
  19701. _In_ UINT nodeMask,
  19702. D3D12_HEAP_TYPE heapType);
  19703. #endif
  19704. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource)
  19705. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )(
  19706. ID3D12Device13 * This,
  19707. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19708. D3D12_HEAP_FLAGS HeapFlags,
  19709. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19710. D3D12_RESOURCE_STATES InitialResourceState,
  19711. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19712. REFIID riidResource,
  19713. _COM_Outptr_opt_ void **ppvResource);
  19714. DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap)
  19715. HRESULT ( STDMETHODCALLTYPE *CreateHeap )(
  19716. ID3D12Device13 * This,
  19717. _In_ const D3D12_HEAP_DESC *pDesc,
  19718. REFIID riid,
  19719. _COM_Outptr_opt_ void **ppvHeap);
  19720. DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource)
  19721. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )(
  19722. ID3D12Device13 * This,
  19723. _In_ ID3D12Heap *pHeap,
  19724. UINT64 HeapOffset,
  19725. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19726. D3D12_RESOURCE_STATES InitialState,
  19727. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19728. REFIID riid,
  19729. _COM_Outptr_opt_ void **ppvResource);
  19730. DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource)
  19731. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )(
  19732. ID3D12Device13 * This,
  19733. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19734. D3D12_RESOURCE_STATES InitialState,
  19735. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19736. REFIID riid,
  19737. _COM_Outptr_opt_ void **ppvResource);
  19738. DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle)
  19739. HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )(
  19740. ID3D12Device13 * This,
  19741. _In_ ID3D12DeviceChild *pObject,
  19742. _In_opt_ const SECURITY_ATTRIBUTES *pAttributes,
  19743. DWORD Access,
  19744. _In_opt_ LPCWSTR Name,
  19745. _Out_ HANDLE *pHandle);
  19746. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle)
  19747. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )(
  19748. ID3D12Device13 * This,
  19749. _In_ HANDLE NTHandle,
  19750. REFIID riid,
  19751. _COM_Outptr_opt_ void **ppvObj);
  19752. DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName)
  19753. HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )(
  19754. ID3D12Device13 * This,
  19755. _In_ LPCWSTR Name,
  19756. DWORD Access,
  19757. /* [annotation][out] */
  19758. _Out_ HANDLE *pNTHandle);
  19759. DECLSPEC_XFGVIRT(ID3D12Device, MakeResident)
  19760. HRESULT ( STDMETHODCALLTYPE *MakeResident )(
  19761. ID3D12Device13 * This,
  19762. UINT NumObjects,
  19763. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  19764. DECLSPEC_XFGVIRT(ID3D12Device, Evict)
  19765. HRESULT ( STDMETHODCALLTYPE *Evict )(
  19766. ID3D12Device13 * This,
  19767. UINT NumObjects,
  19768. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects);
  19769. DECLSPEC_XFGVIRT(ID3D12Device, CreateFence)
  19770. HRESULT ( STDMETHODCALLTYPE *CreateFence )(
  19771. ID3D12Device13 * This,
  19772. UINT64 InitialValue,
  19773. D3D12_FENCE_FLAGS Flags,
  19774. REFIID riid,
  19775. _COM_Outptr_ void **ppFence);
  19776. DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason)
  19777. HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )(
  19778. ID3D12Device13 * This);
  19779. DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints)
  19780. void ( STDMETHODCALLTYPE *GetCopyableFootprints )(
  19781. ID3D12Device13 * This,
  19782. _In_ const D3D12_RESOURCE_DESC *pResourceDesc,
  19783. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  19784. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  19785. UINT64 BaseOffset,
  19786. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  19787. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  19788. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  19789. _Out_opt_ UINT64 *pTotalBytes);
  19790. DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap)
  19791. HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )(
  19792. ID3D12Device13 * This,
  19793. _In_ const D3D12_QUERY_HEAP_DESC *pDesc,
  19794. REFIID riid,
  19795. _COM_Outptr_opt_ void **ppvHeap);
  19796. DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState)
  19797. HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )(
  19798. ID3D12Device13 * This,
  19799. BOOL Enable);
  19800. DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature)
  19801. HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )(
  19802. ID3D12Device13 * This,
  19803. _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc,
  19804. _In_opt_ ID3D12RootSignature *pRootSignature,
  19805. REFIID riid,
  19806. _COM_Outptr_opt_ void **ppvCommandSignature);
  19807. DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling)
  19808. void ( STDMETHODCALLTYPE *GetResourceTiling )(
  19809. ID3D12Device13 * This,
  19810. _In_ ID3D12Resource *pTiledResource,
  19811. _Out_opt_ UINT *pNumTilesForEntireResource,
  19812. _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc,
  19813. _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
  19814. _Inout_opt_ UINT *pNumSubresourceTilings,
  19815. _In_ UINT FirstSubresourceTilingToGet,
  19816. _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips);
  19817. DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid)
  19818. #if !defined(_WIN32)
  19819. LUID ( STDMETHODCALLTYPE *GetAdapterLuid )(
  19820. ID3D12Device13 * This);
  19821. #else
  19822. LUID *( STDMETHODCALLTYPE *GetAdapterLuid )(
  19823. ID3D12Device13 * This,
  19824. LUID * RetVal);
  19825. #endif
  19826. DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary)
  19827. HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )(
  19828. ID3D12Device13 * This,
  19829. _In_reads_(BlobLength) const void *pLibraryBlob,
  19830. SIZE_T BlobLength,
  19831. REFIID riid,
  19832. _COM_Outptr_ void **ppPipelineLibrary);
  19833. DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion)
  19834. HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )(
  19835. ID3D12Device13 * This,
  19836. _In_reads_(NumFences) ID3D12Fence *const *ppFences,
  19837. _In_reads_(NumFences) const UINT64 *pFenceValues,
  19838. UINT NumFences,
  19839. D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags,
  19840. HANDLE hEvent);
  19841. DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority)
  19842. HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )(
  19843. ID3D12Device13 * This,
  19844. UINT NumObjects,
  19845. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  19846. _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities);
  19847. DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState)
  19848. HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )(
  19849. ID3D12Device13 * This,
  19850. const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc,
  19851. REFIID riid,
  19852. _COM_Outptr_ void **ppPipelineState);
  19853. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress)
  19854. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )(
  19855. ID3D12Device13 * This,
  19856. _In_ const void *pAddress,
  19857. REFIID riid,
  19858. _COM_Outptr_ void **ppvHeap);
  19859. DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping)
  19860. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )(
  19861. ID3D12Device13 * This,
  19862. _In_ HANDLE hFileMapping,
  19863. REFIID riid,
  19864. _COM_Outptr_ void **ppvHeap);
  19865. DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident)
  19866. HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )(
  19867. ID3D12Device13 * This,
  19868. D3D12_RESIDENCY_FLAGS Flags,
  19869. UINT NumObjects,
  19870. _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects,
  19871. _In_ ID3D12Fence *pFenceToSignal,
  19872. UINT64 FenceValueToSignal);
  19873. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1)
  19874. HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )(
  19875. ID3D12Device13 * This,
  19876. _In_ UINT nodeMask,
  19877. _In_ D3D12_COMMAND_LIST_TYPE type,
  19878. _In_ D3D12_COMMAND_LIST_FLAGS flags,
  19879. REFIID riid,
  19880. _COM_Outptr_ void **ppCommandList);
  19881. DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession)
  19882. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )(
  19883. ID3D12Device13 * This,
  19884. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  19885. _In_ REFIID riid,
  19886. _COM_Outptr_ void **ppSession);
  19887. DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1)
  19888. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )(
  19889. ID3D12Device13 * This,
  19890. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  19891. D3D12_HEAP_FLAGS HeapFlags,
  19892. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19893. D3D12_RESOURCE_STATES InitialResourceState,
  19894. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19895. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19896. REFIID riidResource,
  19897. _COM_Outptr_opt_ void **ppvResource);
  19898. DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1)
  19899. HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )(
  19900. ID3D12Device13 * This,
  19901. _In_ const D3D12_HEAP_DESC *pDesc,
  19902. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19903. REFIID riid,
  19904. _COM_Outptr_opt_ void **ppvHeap);
  19905. DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1)
  19906. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )(
  19907. ID3D12Device13 * This,
  19908. _In_ const D3D12_RESOURCE_DESC *pDesc,
  19909. D3D12_RESOURCE_STATES InitialState,
  19910. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  19911. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  19912. REFIID riid,
  19913. _COM_Outptr_opt_ void **ppvResource);
  19914. DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1)
  19915. #if !defined(_WIN32)
  19916. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  19917. ID3D12Device13 * This,
  19918. UINT visibleMask,
  19919. UINT numResourceDescs,
  19920. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  19921. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19922. #else
  19923. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )(
  19924. ID3D12Device13 * This,
  19925. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  19926. UINT visibleMask,
  19927. UINT numResourceDescs,
  19928. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs,
  19929. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  19930. #endif
  19931. DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker)
  19932. HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )(
  19933. ID3D12Device13 * This,
  19934. _In_ ID3D12LifetimeOwner *pOwner,
  19935. REFIID riid,
  19936. _COM_Outptr_ void **ppvTracker);
  19937. DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice)
  19938. void ( STDMETHODCALLTYPE *RemoveDevice )(
  19939. ID3D12Device13 * This);
  19940. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands)
  19941. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )(
  19942. ID3D12Device13 * This,
  19943. _Inout_ UINT *pNumMetaCommands,
  19944. _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs);
  19945. DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters)
  19946. HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )(
  19947. ID3D12Device13 * This,
  19948. _In_ REFGUID CommandId,
  19949. _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage,
  19950. _Out_opt_ UINT *pTotalStructureSizeInBytes,
  19951. _Inout_ UINT *pParameterCount,
  19952. _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs);
  19953. DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand)
  19954. HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )(
  19955. ID3D12Device13 * This,
  19956. _In_ REFGUID CommandId,
  19957. _In_ UINT NodeMask,
  19958. _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData,
  19959. _In_ SIZE_T CreationParametersDataSizeInBytes,
  19960. REFIID riid,
  19961. _COM_Outptr_ void **ppMetaCommand);
  19962. DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject)
  19963. HRESULT ( STDMETHODCALLTYPE *CreateStateObject )(
  19964. ID3D12Device13 * This,
  19965. const D3D12_STATE_OBJECT_DESC *pDesc,
  19966. REFIID riid,
  19967. _COM_Outptr_ void **ppStateObject);
  19968. DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo)
  19969. void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )(
  19970. ID3D12Device13 * This,
  19971. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc,
  19972. _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo);
  19973. DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier)
  19974. D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )(
  19975. ID3D12Device13 * This,
  19976. _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType,
  19977. _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck);
  19978. DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode)
  19979. HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )(
  19980. ID3D12Device13 * This,
  19981. D3D12_BACKGROUND_PROCESSING_MODE Mode,
  19982. D3D12_MEASUREMENTS_ACTION MeasurementsAction,
  19983. _In_opt_ HANDLE hEventToSignalUponCompletion,
  19984. _Out_opt_ BOOL *pbFurtherMeasurementsDesired);
  19985. DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject)
  19986. HRESULT ( STDMETHODCALLTYPE *AddToStateObject )(
  19987. ID3D12Device13 * This,
  19988. const D3D12_STATE_OBJECT_DESC *pAddition,
  19989. ID3D12StateObject *pStateObjectToGrowFrom,
  19990. REFIID riid,
  19991. _COM_Outptr_ void **ppNewStateObject);
  19992. DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1)
  19993. HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )(
  19994. ID3D12Device13 * This,
  19995. _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  19996. _In_ REFIID riid,
  19997. _COM_Outptr_ void **ppSession);
  19998. DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2)
  19999. #if !defined(_WIN32)
  20000. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  20001. ID3D12Device13 * This,
  20002. UINT visibleMask,
  20003. UINT numResourceDescs,
  20004. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20005. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20006. #else
  20007. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )(
  20008. ID3D12Device13 * This,
  20009. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20010. UINT visibleMask,
  20011. UINT numResourceDescs,
  20012. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20013. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20014. #endif
  20015. DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2)
  20016. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )(
  20017. ID3D12Device13 * This,
  20018. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20019. D3D12_HEAP_FLAGS HeapFlags,
  20020. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20021. D3D12_RESOURCE_STATES InitialResourceState,
  20022. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20023. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20024. REFIID riidResource,
  20025. _COM_Outptr_opt_ void **ppvResource);
  20026. DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1)
  20027. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )(
  20028. ID3D12Device13 * This,
  20029. _In_ ID3D12Heap *pHeap,
  20030. UINT64 HeapOffset,
  20031. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20032. D3D12_RESOURCE_STATES InitialState,
  20033. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20034. REFIID riid,
  20035. _COM_Outptr_opt_ void **ppvResource);
  20036. DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView)
  20037. void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )(
  20038. ID3D12Device13 * This,
  20039. _In_opt_ ID3D12Resource *pTargetedResource,
  20040. _In_opt_ ID3D12Resource *pFeedbackResource,
  20041. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20042. DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1)
  20043. void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )(
  20044. ID3D12Device13 * This,
  20045. _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc,
  20046. _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource,
  20047. _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources,
  20048. UINT64 BaseOffset,
  20049. _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts,
  20050. _Out_writes_opt_(NumSubresources) UINT *pNumRows,
  20051. _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes,
  20052. _Out_opt_ UINT64 *pTotalBytes);
  20053. DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession)
  20054. HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )(
  20055. ID3D12Device13 * This,
  20056. _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
  20057. REFIID riid,
  20058. _COM_Outptr_opt_ void **ppvSession);
  20059. DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl)
  20060. HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )(
  20061. ID3D12Device13 * This,
  20062. D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
  20063. D3D12_SHADER_CACHE_CONTROL_FLAGS Control);
  20064. DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1)
  20065. HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )(
  20066. ID3D12Device13 * This,
  20067. _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc,
  20068. REFIID CreatorID,
  20069. REFIID riid,
  20070. _COM_Outptr_ void **ppCommandQueue);
  20071. DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3)
  20072. HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )(
  20073. ID3D12Device13 * This,
  20074. _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties,
  20075. D3D12_HEAP_FLAGS HeapFlags,
  20076. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20077. D3D12_BARRIER_LAYOUT InitialLayout,
  20078. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20079. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20080. UINT32 NumCastableFormats,
  20081. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20082. REFIID riidResource,
  20083. _COM_Outptr_opt_ void **ppvResource);
  20084. DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2)
  20085. HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )(
  20086. ID3D12Device13 * This,
  20087. _In_ ID3D12Heap *pHeap,
  20088. UINT64 HeapOffset,
  20089. _In_ const D3D12_RESOURCE_DESC1 *pDesc,
  20090. D3D12_BARRIER_LAYOUT InitialLayout,
  20091. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20092. UINT32 NumCastableFormats,
  20093. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20094. REFIID riid,
  20095. _COM_Outptr_opt_ void **ppvResource);
  20096. DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2)
  20097. HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )(
  20098. ID3D12Device13 * This,
  20099. _In_ const D3D12_RESOURCE_DESC *pDesc,
  20100. D3D12_BARRIER_LAYOUT InitialLayout,
  20101. _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue,
  20102. _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession,
  20103. UINT32 NumCastableFormats,
  20104. _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats,
  20105. REFIID riid,
  20106. _COM_Outptr_opt_ void **ppvResource);
  20107. DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2)
  20108. void ( STDMETHODCALLTYPE *CreateSampler2 )(
  20109. ID3D12Device13 * This,
  20110. _In_ const D3D12_SAMPLER_DESC2 *pDesc,
  20111. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor);
  20112. DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3)
  20113. #if !defined(_WIN32)
  20114. D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  20115. ID3D12Device13 * This,
  20116. UINT visibleMask,
  20117. UINT numResourceDescs,
  20118. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20119. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  20120. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  20121. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20122. #else
  20123. D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )(
  20124. ID3D12Device13 * This,
  20125. D3D12_RESOURCE_ALLOCATION_INFO * RetVal,
  20126. UINT visibleMask,
  20127. UINT numResourceDescs,
  20128. _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs,
  20129. _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats,
  20130. _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats,
  20131. _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1);
  20132. #endif
  20133. DECLSPEC_XFGVIRT(ID3D12Device13, OpenExistingHeapFromAddress1)
  20134. HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress1 )(
  20135. ID3D12Device13 * This,
  20136. _In_ const void *pAddress,
  20137. SIZE_T size,
  20138. REFIID riid,
  20139. _COM_Outptr_ void **ppvHeap);
  20140. END_INTERFACE
  20141. } ID3D12Device13Vtbl;
  20142. interface ID3D12Device13
  20143. {
  20144. CONST_VTBL struct ID3D12Device13Vtbl *lpVtbl;
  20145. };
  20146. #ifdef COBJMACROS
  20147. #define ID3D12Device13_QueryInterface(This,riid,ppvObject) \
  20148. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  20149. #define ID3D12Device13_AddRef(This) \
  20150. ( (This)->lpVtbl -> AddRef(This) )
  20151. #define ID3D12Device13_Release(This) \
  20152. ( (This)->lpVtbl -> Release(This) )
  20153. #define ID3D12Device13_GetPrivateData(This,guid,pDataSize,pData) \
  20154. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  20155. #define ID3D12Device13_SetPrivateData(This,guid,DataSize,pData) \
  20156. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  20157. #define ID3D12Device13_SetPrivateDataInterface(This,guid,pData) \
  20158. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  20159. #define ID3D12Device13_SetName(This,Name) \
  20160. ( (This)->lpVtbl -> SetName(This,Name) )
  20161. #define ID3D12Device13_GetNodeCount(This) \
  20162. ( (This)->lpVtbl -> GetNodeCount(This) )
  20163. #define ID3D12Device13_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \
  20164. ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) )
  20165. #define ID3D12Device13_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \
  20166. ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) )
  20167. #define ID3D12Device13_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \
  20168. ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) )
  20169. #define ID3D12Device13_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \
  20170. ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) )
  20171. #define ID3D12Device13_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \
  20172. ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) )
  20173. #define ID3D12Device13_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  20174. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  20175. #define ID3D12Device13_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \
  20176. ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) )
  20177. #define ID3D12Device13_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \
  20178. ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) )
  20179. #define ID3D12Device13_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \
  20180. ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) )
  20181. #define ID3D12Device13_CreateConstantBufferView(This,pDesc,DestDescriptor) \
  20182. ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) )
  20183. #define ID3D12Device13_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \
  20184. ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) )
  20185. #define ID3D12Device13_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \
  20186. ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) )
  20187. #define ID3D12Device13_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \
  20188. ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) )
  20189. #define ID3D12Device13_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \
  20190. ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) )
  20191. #define ID3D12Device13_CreateSampler(This,pDesc,DestDescriptor) \
  20192. ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) )
  20193. #define ID3D12Device13_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \
  20194. ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) )
  20195. #define ID3D12Device13_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \
  20196. ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) )
  20197. #if !defined(_WIN32)
  20198. #define ID3D12Device13_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \
  20199. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) )
  20200. #else
  20201. #define ID3D12Device13_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \
  20202. ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) )
  20203. #endif
  20204. #if !defined(_WIN32)
  20205. #define ID3D12Device13_GetCustomHeapProperties(This,nodeMask,heapType) \
  20206. ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) )
  20207. #else
  20208. #define ID3D12Device13_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \
  20209. ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) )
  20210. #endif
  20211. #define ID3D12Device13_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \
  20212. ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) )
  20213. #define ID3D12Device13_CreateHeap(This,pDesc,riid,ppvHeap) \
  20214. ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) )
  20215. #define ID3D12Device13_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20216. ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20217. #define ID3D12Device13_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20218. ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20219. #define ID3D12Device13_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \
  20220. ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) )
  20221. #define ID3D12Device13_OpenSharedHandle(This,NTHandle,riid,ppvObj) \
  20222. ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) )
  20223. #define ID3D12Device13_OpenSharedHandleByName(This,Name,Access,pNTHandle) \
  20224. ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) )
  20225. #define ID3D12Device13_MakeResident(This,NumObjects,ppObjects) \
  20226. ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) )
  20227. #define ID3D12Device13_Evict(This,NumObjects,ppObjects) \
  20228. ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) )
  20229. #define ID3D12Device13_CreateFence(This,InitialValue,Flags,riid,ppFence) \
  20230. ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) )
  20231. #define ID3D12Device13_GetDeviceRemovedReason(This) \
  20232. ( (This)->lpVtbl -> GetDeviceRemovedReason(This) )
  20233. #define ID3D12Device13_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  20234. ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  20235. #define ID3D12Device13_CreateQueryHeap(This,pDesc,riid,ppvHeap) \
  20236. ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) )
  20237. #define ID3D12Device13_SetStablePowerState(This,Enable) \
  20238. ( (This)->lpVtbl -> SetStablePowerState(This,Enable) )
  20239. #define ID3D12Device13_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \
  20240. ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) )
  20241. #define ID3D12Device13_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \
  20242. ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) )
  20243. #if !defined(_WIN32)
  20244. #define ID3D12Device13_GetAdapterLuid(This) \
  20245. ( (This)->lpVtbl -> GetAdapterLuid(This) )
  20246. #else
  20247. #define ID3D12Device13_GetAdapterLuid(This,RetVal) \
  20248. ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) )
  20249. #endif
  20250. #define ID3D12Device13_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \
  20251. ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) )
  20252. #define ID3D12Device13_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \
  20253. ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) )
  20254. #define ID3D12Device13_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \
  20255. ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) )
  20256. #define ID3D12Device13_CreatePipelineState(This,pDesc,riid,ppPipelineState) \
  20257. ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) )
  20258. #define ID3D12Device13_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \
  20259. ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) )
  20260. #define ID3D12Device13_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \
  20261. ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) )
  20262. #define ID3D12Device13_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \
  20263. ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) )
  20264. #define ID3D12Device13_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \
  20265. ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) )
  20266. #define ID3D12Device13_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \
  20267. ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) )
  20268. #define ID3D12Device13_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  20269. ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  20270. #define ID3D12Device13_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \
  20271. ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) )
  20272. #define ID3D12Device13_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \
  20273. ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) )
  20274. #if !defined(_WIN32)
  20275. #define ID3D12Device13_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20276. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20277. #else
  20278. #define ID3D12Device13_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20279. ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20280. #endif
  20281. #define ID3D12Device13_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \
  20282. ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) )
  20283. #define ID3D12Device13_RemoveDevice(This) \
  20284. ( (This)->lpVtbl -> RemoveDevice(This) )
  20285. #define ID3D12Device13_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \
  20286. ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) )
  20287. #define ID3D12Device13_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \
  20288. ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) )
  20289. #define ID3D12Device13_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \
  20290. ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) )
  20291. #define ID3D12Device13_CreateStateObject(This,pDesc,riid,ppStateObject) \
  20292. ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) )
  20293. #define ID3D12Device13_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \
  20294. ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) )
  20295. #define ID3D12Device13_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \
  20296. ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) )
  20297. #define ID3D12Device13_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \
  20298. ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) )
  20299. #define ID3D12Device13_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \
  20300. ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) )
  20301. #define ID3D12Device13_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \
  20302. ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) )
  20303. #if !defined(_WIN32)
  20304. #define ID3D12Device13_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20305. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20306. #else
  20307. #define ID3D12Device13_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \
  20308. ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) )
  20309. #endif
  20310. #define ID3D12Device13_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \
  20311. ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) )
  20312. #define ID3D12Device13_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \
  20313. ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) )
  20314. #define ID3D12Device13_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \
  20315. ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) )
  20316. #define ID3D12Device13_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \
  20317. ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) )
  20318. #define ID3D12Device13_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \
  20319. ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) )
  20320. #define ID3D12Device13_ShaderCacheControl(This,Kinds,Control) \
  20321. ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) )
  20322. #define ID3D12Device13_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \
  20323. ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) )
  20324. #define ID3D12Device13_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \
  20325. ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) )
  20326. #define ID3D12Device13_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  20327. ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  20328. #define ID3D12Device13_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \
  20329. ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) )
  20330. #define ID3D12Device13_CreateSampler2(This,pDesc,DestDescriptor) \
  20331. ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) )
  20332. #if !defined(_WIN32)
  20333. #define ID3D12Device13_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  20334. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  20335. #else
  20336. #define ID3D12Device13_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \
  20337. ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) )
  20338. #endif
  20339. #define ID3D12Device13_OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) \
  20340. ( (This)->lpVtbl -> OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) )
  20341. #endif /* COBJMACROS */
  20342. #endif /* C style interface */
  20343. #endif /* __ID3D12Device13_INTERFACE_DEFINED__ */
  20344. #ifndef __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__
  20345. #define __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__
  20346. /* interface ID3D12VirtualizationGuestDevice */
  20347. /* [unique][local][object][uuid] */
  20348. EXTERN_C const IID IID_ID3D12VirtualizationGuestDevice;
  20349. #if defined(__cplusplus) && !defined(CINTERFACE)
  20350. MIDL_INTERFACE("bc66d368-7373-4943-8757-fc87dc79e476")
  20351. ID3D12VirtualizationGuestDevice : public IUnknown
  20352. {
  20353. public:
  20354. virtual HRESULT STDMETHODCALLTYPE ShareWithHost(
  20355. _In_ ID3D12DeviceChild *pObject,
  20356. _Out_ HANDLE *pHandle) = 0;
  20357. virtual HRESULT STDMETHODCALLTYPE CreateFenceFd(
  20358. _In_ ID3D12Fence *pFence,
  20359. UINT64 FenceValue,
  20360. _Out_ int *pFenceFd) = 0;
  20361. };
  20362. #else /* C style interface */
  20363. typedef struct ID3D12VirtualizationGuestDeviceVtbl
  20364. {
  20365. BEGIN_INTERFACE
  20366. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  20367. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  20368. ID3D12VirtualizationGuestDevice * This,
  20369. REFIID riid,
  20370. _COM_Outptr_ void **ppvObject);
  20371. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  20372. ULONG ( STDMETHODCALLTYPE *AddRef )(
  20373. ID3D12VirtualizationGuestDevice * This);
  20374. DECLSPEC_XFGVIRT(IUnknown, Release)
  20375. ULONG ( STDMETHODCALLTYPE *Release )(
  20376. ID3D12VirtualizationGuestDevice * This);
  20377. DECLSPEC_XFGVIRT(ID3D12VirtualizationGuestDevice, ShareWithHost)
  20378. HRESULT ( STDMETHODCALLTYPE *ShareWithHost )(
  20379. ID3D12VirtualizationGuestDevice * This,
  20380. _In_ ID3D12DeviceChild *pObject,
  20381. _Out_ HANDLE *pHandle);
  20382. DECLSPEC_XFGVIRT(ID3D12VirtualizationGuestDevice, CreateFenceFd)
  20383. HRESULT ( STDMETHODCALLTYPE *CreateFenceFd )(
  20384. ID3D12VirtualizationGuestDevice * This,
  20385. _In_ ID3D12Fence *pFence,
  20386. UINT64 FenceValue,
  20387. _Out_ int *pFenceFd);
  20388. END_INTERFACE
  20389. } ID3D12VirtualizationGuestDeviceVtbl;
  20390. interface ID3D12VirtualizationGuestDevice
  20391. {
  20392. CONST_VTBL struct ID3D12VirtualizationGuestDeviceVtbl *lpVtbl;
  20393. };
  20394. #ifdef COBJMACROS
  20395. #define ID3D12VirtualizationGuestDevice_QueryInterface(This,riid,ppvObject) \
  20396. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  20397. #define ID3D12VirtualizationGuestDevice_AddRef(This) \
  20398. ( (This)->lpVtbl -> AddRef(This) )
  20399. #define ID3D12VirtualizationGuestDevice_Release(This) \
  20400. ( (This)->lpVtbl -> Release(This) )
  20401. #define ID3D12VirtualizationGuestDevice_ShareWithHost(This,pObject,pHandle) \
  20402. ( (This)->lpVtbl -> ShareWithHost(This,pObject,pHandle) )
  20403. #define ID3D12VirtualizationGuestDevice_CreateFenceFd(This,pFence,FenceValue,pFenceFd) \
  20404. ( (This)->lpVtbl -> CreateFenceFd(This,pFence,FenceValue,pFenceFd) )
  20405. #endif /* COBJMACROS */
  20406. #endif /* C style interface */
  20407. #endif /* __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__ */
  20408. #ifndef __ID3D12Tools_INTERFACE_DEFINED__
  20409. #define __ID3D12Tools_INTERFACE_DEFINED__
  20410. /* interface ID3D12Tools */
  20411. /* [unique][local][object][uuid] */
  20412. EXTERN_C const IID IID_ID3D12Tools;
  20413. #if defined(__cplusplus) && !defined(CINTERFACE)
  20414. MIDL_INTERFACE("7071e1f0-e84b-4b33-974f-12fa49de65c5")
  20415. ID3D12Tools : public IUnknown
  20416. {
  20417. public:
  20418. virtual void STDMETHODCALLTYPE EnableShaderInstrumentation(
  20419. BOOL bEnable) = 0;
  20420. virtual BOOL STDMETHODCALLTYPE ShaderInstrumentationEnabled( void) = 0;
  20421. };
  20422. #else /* C style interface */
  20423. typedef struct ID3D12ToolsVtbl
  20424. {
  20425. BEGIN_INTERFACE
  20426. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  20427. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  20428. ID3D12Tools * This,
  20429. REFIID riid,
  20430. _COM_Outptr_ void **ppvObject);
  20431. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  20432. ULONG ( STDMETHODCALLTYPE *AddRef )(
  20433. ID3D12Tools * This);
  20434. DECLSPEC_XFGVIRT(IUnknown, Release)
  20435. ULONG ( STDMETHODCALLTYPE *Release )(
  20436. ID3D12Tools * This);
  20437. DECLSPEC_XFGVIRT(ID3D12Tools, EnableShaderInstrumentation)
  20438. void ( STDMETHODCALLTYPE *EnableShaderInstrumentation )(
  20439. ID3D12Tools * This,
  20440. BOOL bEnable);
  20441. DECLSPEC_XFGVIRT(ID3D12Tools, ShaderInstrumentationEnabled)
  20442. BOOL ( STDMETHODCALLTYPE *ShaderInstrumentationEnabled )(
  20443. ID3D12Tools * This);
  20444. END_INTERFACE
  20445. } ID3D12ToolsVtbl;
  20446. interface ID3D12Tools
  20447. {
  20448. CONST_VTBL struct ID3D12ToolsVtbl *lpVtbl;
  20449. };
  20450. #ifdef COBJMACROS
  20451. #define ID3D12Tools_QueryInterface(This,riid,ppvObject) \
  20452. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  20453. #define ID3D12Tools_AddRef(This) \
  20454. ( (This)->lpVtbl -> AddRef(This) )
  20455. #define ID3D12Tools_Release(This) \
  20456. ( (This)->lpVtbl -> Release(This) )
  20457. #define ID3D12Tools_EnableShaderInstrumentation(This,bEnable) \
  20458. ( (This)->lpVtbl -> EnableShaderInstrumentation(This,bEnable) )
  20459. #define ID3D12Tools_ShaderInstrumentationEnabled(This) \
  20460. ( (This)->lpVtbl -> ShaderInstrumentationEnabled(This) )
  20461. #endif /* COBJMACROS */
  20462. #endif /* C style interface */
  20463. #endif /* __ID3D12Tools_INTERFACE_DEFINED__ */
  20464. /* interface __MIDL_itf_d3d12_0000_0059 */
  20465. /* [local] */
  20466. typedef struct D3D12_SUBRESOURCE_DATA
  20467. {
  20468. const void *pData;
  20469. LONG_PTR RowPitch;
  20470. LONG_PTR SlicePitch;
  20471. } D3D12_SUBRESOURCE_DATA;
  20472. typedef struct D3D12_MEMCPY_DEST
  20473. {
  20474. void *pData;
  20475. SIZE_T RowPitch;
  20476. SIZE_T SlicePitch;
  20477. } D3D12_MEMCPY_DEST;
  20478. #if !defined( D3D12_IGNORE_SDK_LAYERS )
  20479. #include "d3d12sdklayers.h"
  20480. #endif
  20481. ///////////////////////////////////////////////////////////////////////////
  20482. // D3D12CreateDevice
  20483. // ------------------
  20484. //
  20485. // pAdapter
  20486. // If NULL, D3D12CreateDevice will choose the primary adapter.
  20487. // If non-NULL, D3D12CreateDevice will use the provided adapter.
  20488. // MinimumFeatureLevel
  20489. // The minimum feature level required for successful device creation.
  20490. // riid
  20491. // The interface IID of the device to be returned. Expected: ID3D12Device.
  20492. // ppDevice
  20493. // Pointer to returned interface. May be NULL.
  20494. //
  20495. // Return Values
  20496. // Any of those documented for
  20497. // CreateDXGIFactory1
  20498. // IDXGIFactory::EnumAdapters
  20499. // D3D12CreateDevice
  20500. //
  20501. ///////////////////////////////////////////////////////////////////////////
  20502. typedef HRESULT (WINAPI* PFN_D3D12_CREATE_DEVICE)( _In_opt_ IUnknown*,
  20503. D3D_FEATURE_LEVEL,
  20504. _In_ REFIID, _COM_Outptr_opt_ void** );
  20505. HRESULT WINAPI D3D12CreateDevice(
  20506. _In_opt_ IUnknown* pAdapter,
  20507. D3D_FEATURE_LEVEL MinimumFeatureLevel,
  20508. _In_ REFIID riid, // Expected: ID3D12Device
  20509. _COM_Outptr_opt_ void** ppDevice );
  20510. typedef HRESULT (WINAPI* PFN_D3D12_GET_DEBUG_INTERFACE)( _In_ REFIID, _COM_Outptr_opt_ void** );
  20511. HRESULT WINAPI D3D12GetDebugInterface( _In_ REFIID riid, _COM_Outptr_opt_ void** ppvDebug );
  20512. // --------------------------------------------------------------------------------------------------------------------------------
  20513. // D3D12EnableExperimentalFeatures
  20514. //
  20515. // Pass in a list of feature GUIDs to be enabled together.
  20516. //
  20517. // If a particular feature requires some configuration information on enablement, it will have
  20518. // a configuration struct that can be passed alongside the GUID.
  20519. //
  20520. // Some features might use an interface IID as the GUID. For these, once the feature is enabled via
  20521. // D3D12EnableExperimentalFeatures, D3D12GetDebugInterface can then be called with the IID to retrieve the interface
  20522. // for manipulating the feature. This allows for control that might not cleanly be expressed by just
  20523. // the configuration struct that D3D12EnableExperimentalFeatures provides.
  20524. //
  20525. // If this method is called and a change to existing feature enablement is made,
  20526. // all current D3D12 devices are set to DEVICE_REMOVED state, since under the covers there is really only one
  20527. // singleton device for a process. Removing the devices when configuration changes prevents
  20528. // mismatched expectations of how a device is supposed to work after it has been created from the app's point of view.
  20529. //
  20530. // The call returns E_NOINTERFACE if an unrecognized feature is passed in or Windows Developer mode is not on.
  20531. // The call returns E_INVALIDARG if the configuration of a feature is incorrect, the set of features passed
  20532. // in are known to be incompatible with each other, or other errors.
  20533. // Returns S_OK otherwise.
  20534. //
  20535. // --------------------------------------------------------------------------------------------------------------------------------
  20536. HRESULT WINAPI D3D12EnableExperimentalFeatures(
  20537. UINT NumFeatures,
  20538. _In_count_(NumFeatures) const IID* pIIDs,
  20539. _In_opt_count_(NumFeatures) void* pConfigurationStructs,
  20540. _In_opt_count_(NumFeatures) UINT* pConfigurationStructSizes);
  20541. // --------------------------------------------------------------------------------------------------------------------------------
  20542. // Experimental Feature: D3D12ExperimentalShaderModels
  20543. //
  20544. // Use with D3D12EnableExperimentalFeatures to enable experimental shader model support,
  20545. // meaning shader models that haven't been finalized for use in retail.
  20546. //
  20547. // Enabling D3D12ExperimentalShaderModels needs no configuration struct, pass NULL in the pConfigurationStructs array.
  20548. //
  20549. // --------------------------------------------------------------------------------------------------------------------------------
  20550. static const UUID D3D12ExperimentalShaderModels = { /* 76f5573e-f13a-40f5-b297-81ce9e18933f */
  20551. 0x76f5573e,
  20552. 0xf13a,
  20553. 0x40f5,
  20554. { 0xb2, 0x97, 0x81, 0xce, 0x9e, 0x18, 0x93, 0x3f }
  20555. };
  20556. // --------------------------------------------------------------------------------------------------------------------------------
  20557. // Experimental Feature: D3D12TiledResourceTier4
  20558. //
  20559. // Use with D3D12EnableExperimentalFeatures to enable tiled resource tier 4 support,
  20560. // meaning texture tile data-inheritance is allowed.
  20561. //
  20562. // Enabling D3D12TiledResourceTier4 needs no configuration struct, pass NULL in the pConfigurationStructs array.
  20563. //
  20564. // --------------------------------------------------------------------------------------------------------------------------------
  20565. static const UUID D3D12TiledResourceTier4 = { /* c9c4725f-a81a-4f56-8c5b-c51039d694fb */
  20566. 0xc9c4725f,
  20567. 0xa81a,
  20568. 0x4f56,
  20569. { 0x8c, 0x5b, 0xc5, 0x10, 0x39, 0xd6, 0x94, 0xfb }
  20570. };
  20571. // --------------------------------------------------------------------------------------------------------------------------------
  20572. // D3D12GetInterface
  20573. //
  20574. // Retrieve Global D3D12 Interface.
  20575. //
  20576. DEFINE_GUID(CLSID_D3D12Debug, 0xf2352aeb, 0xdd84, 0x49fe, 0xb9, 0x7b, 0xa9, 0xdc, 0xfd, 0xcc, 0x1b, 0x4f);
  20577. DEFINE_GUID(CLSID_D3D12Tools, 0xe38216b1, 0x3c8c, 0x4833, 0xaa, 0x09, 0x0a, 0x06, 0xb6, 0x5d, 0x96, 0xc8);
  20578. DEFINE_GUID(CLSID_D3D12DeviceRemovedExtendedData, 0x4a75bbc4, 0x9ff4, 0x4ad8, 0x9f, 0x18, 0xab, 0xae, 0x84, 0xdc, 0x5f, 0xf2);
  20579. DEFINE_GUID(CLSID_D3D12SDKConfiguration, 0x7cda6aca, 0xa03e, 0x49c8, 0x94, 0x58, 0x03, 0x34, 0xd2, 0x0e, 0x07, 0xce);
  20580. DEFINE_GUID(CLSID_D3D12DeviceFactory, 0x114863bf, 0xc386, 0x4aee, 0xb3, 0x9d, 0x8f, 0x0b, 0xbb, 0x06, 0x29, 0x55);
  20581. typedef HRESULT (WINAPI* PFN_D3D12_GET_INTERFACE)( _In_ REFCLSID, _In_ REFIID, _COM_Outptr_opt_ void** );
  20582. HRESULT WINAPI D3D12GetInterface( _In_ REFCLSID rclsid, _In_ REFIID riid, _COM_Outptr_opt_ void** ppvDebug );
  20583. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0059_v0_0_c_ifspec;
  20584. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0059_v0_0_s_ifspec;
  20585. #ifndef __ID3D12SDKConfiguration_INTERFACE_DEFINED__
  20586. #define __ID3D12SDKConfiguration_INTERFACE_DEFINED__
  20587. /* interface ID3D12SDKConfiguration */
  20588. /* [unique][local][object][uuid] */
  20589. EXTERN_C const IID IID_ID3D12SDKConfiguration;
  20590. #if defined(__cplusplus) && !defined(CINTERFACE)
  20591. MIDL_INTERFACE("e9eb5314-33aa-42b2-a718-d77f58b1f1c7")
  20592. ID3D12SDKConfiguration : public IUnknown
  20593. {
  20594. public:
  20595. virtual HRESULT STDMETHODCALLTYPE SetSDKVersion(
  20596. UINT SDKVersion,
  20597. _In_z_ LPCSTR SDKPath) = 0;
  20598. };
  20599. #else /* C style interface */
  20600. typedef struct ID3D12SDKConfigurationVtbl
  20601. {
  20602. BEGIN_INTERFACE
  20603. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  20604. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  20605. ID3D12SDKConfiguration * This,
  20606. REFIID riid,
  20607. _COM_Outptr_ void **ppvObject);
  20608. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  20609. ULONG ( STDMETHODCALLTYPE *AddRef )(
  20610. ID3D12SDKConfiguration * This);
  20611. DECLSPEC_XFGVIRT(IUnknown, Release)
  20612. ULONG ( STDMETHODCALLTYPE *Release )(
  20613. ID3D12SDKConfiguration * This);
  20614. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration, SetSDKVersion)
  20615. HRESULT ( STDMETHODCALLTYPE *SetSDKVersion )(
  20616. ID3D12SDKConfiguration * This,
  20617. UINT SDKVersion,
  20618. _In_z_ LPCSTR SDKPath);
  20619. END_INTERFACE
  20620. } ID3D12SDKConfigurationVtbl;
  20621. interface ID3D12SDKConfiguration
  20622. {
  20623. CONST_VTBL struct ID3D12SDKConfigurationVtbl *lpVtbl;
  20624. };
  20625. #ifdef COBJMACROS
  20626. #define ID3D12SDKConfiguration_QueryInterface(This,riid,ppvObject) \
  20627. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  20628. #define ID3D12SDKConfiguration_AddRef(This) \
  20629. ( (This)->lpVtbl -> AddRef(This) )
  20630. #define ID3D12SDKConfiguration_Release(This) \
  20631. ( (This)->lpVtbl -> Release(This) )
  20632. #define ID3D12SDKConfiguration_SetSDKVersion(This,SDKVersion,SDKPath) \
  20633. ( (This)->lpVtbl -> SetSDKVersion(This,SDKVersion,SDKPath) )
  20634. #endif /* COBJMACROS */
  20635. #endif /* C style interface */
  20636. #endif /* __ID3D12SDKConfiguration_INTERFACE_DEFINED__ */
  20637. #ifndef __ID3D12SDKConfiguration1_INTERFACE_DEFINED__
  20638. #define __ID3D12SDKConfiguration1_INTERFACE_DEFINED__
  20639. /* interface ID3D12SDKConfiguration1 */
  20640. /* [unique][local][object][uuid] */
  20641. EXTERN_C const IID IID_ID3D12SDKConfiguration1;
  20642. #if defined(__cplusplus) && !defined(CINTERFACE)
  20643. MIDL_INTERFACE("8aaf9303-ad25-48b9-9a57-d9c37e009d9f")
  20644. ID3D12SDKConfiguration1 : public ID3D12SDKConfiguration
  20645. {
  20646. public:
  20647. virtual HRESULT STDMETHODCALLTYPE CreateDeviceFactory(
  20648. UINT SDKVersion,
  20649. _In_ LPCSTR SDKPath,
  20650. REFIID riid,
  20651. _COM_Outptr_ void **ppvFactory) = 0;
  20652. virtual void STDMETHODCALLTYPE FreeUnusedSDKs( void) = 0;
  20653. };
  20654. #else /* C style interface */
  20655. typedef struct ID3D12SDKConfiguration1Vtbl
  20656. {
  20657. BEGIN_INTERFACE
  20658. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  20659. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  20660. ID3D12SDKConfiguration1 * This,
  20661. REFIID riid,
  20662. _COM_Outptr_ void **ppvObject);
  20663. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  20664. ULONG ( STDMETHODCALLTYPE *AddRef )(
  20665. ID3D12SDKConfiguration1 * This);
  20666. DECLSPEC_XFGVIRT(IUnknown, Release)
  20667. ULONG ( STDMETHODCALLTYPE *Release )(
  20668. ID3D12SDKConfiguration1 * This);
  20669. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration, SetSDKVersion)
  20670. HRESULT ( STDMETHODCALLTYPE *SetSDKVersion )(
  20671. ID3D12SDKConfiguration1 * This,
  20672. UINT SDKVersion,
  20673. _In_z_ LPCSTR SDKPath);
  20674. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration1, CreateDeviceFactory)
  20675. HRESULT ( STDMETHODCALLTYPE *CreateDeviceFactory )(
  20676. ID3D12SDKConfiguration1 * This,
  20677. UINT SDKVersion,
  20678. _In_ LPCSTR SDKPath,
  20679. REFIID riid,
  20680. _COM_Outptr_ void **ppvFactory);
  20681. DECLSPEC_XFGVIRT(ID3D12SDKConfiguration1, FreeUnusedSDKs)
  20682. void ( STDMETHODCALLTYPE *FreeUnusedSDKs )(
  20683. ID3D12SDKConfiguration1 * This);
  20684. END_INTERFACE
  20685. } ID3D12SDKConfiguration1Vtbl;
  20686. interface ID3D12SDKConfiguration1
  20687. {
  20688. CONST_VTBL struct ID3D12SDKConfiguration1Vtbl *lpVtbl;
  20689. };
  20690. #ifdef COBJMACROS
  20691. #define ID3D12SDKConfiguration1_QueryInterface(This,riid,ppvObject) \
  20692. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  20693. #define ID3D12SDKConfiguration1_AddRef(This) \
  20694. ( (This)->lpVtbl -> AddRef(This) )
  20695. #define ID3D12SDKConfiguration1_Release(This) \
  20696. ( (This)->lpVtbl -> Release(This) )
  20697. #define ID3D12SDKConfiguration1_SetSDKVersion(This,SDKVersion,SDKPath) \
  20698. ( (This)->lpVtbl -> SetSDKVersion(This,SDKVersion,SDKPath) )
  20699. #define ID3D12SDKConfiguration1_CreateDeviceFactory(This,SDKVersion,SDKPath,riid,ppvFactory) \
  20700. ( (This)->lpVtbl -> CreateDeviceFactory(This,SDKVersion,SDKPath,riid,ppvFactory) )
  20701. #define ID3D12SDKConfiguration1_FreeUnusedSDKs(This) \
  20702. ( (This)->lpVtbl -> FreeUnusedSDKs(This) )
  20703. #endif /* COBJMACROS */
  20704. #endif /* C style interface */
  20705. #endif /* __ID3D12SDKConfiguration1_INTERFACE_DEFINED__ */
  20706. /* interface __MIDL_itf_d3d12_0000_0061 */
  20707. /* [local] */
  20708. typedef
  20709. enum D3D12_DEVICE_FACTORY_FLAGS
  20710. {
  20711. D3D12_DEVICE_FACTORY_FLAG_NONE = 0,
  20712. D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_EXISTING_DEVICE = 0x1,
  20713. D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_INCOMPATIBLE_EXISTING_DEVICE = 0x2,
  20714. D3D12_DEVICE_FACTORY_FLAG_DISALLOW_STORING_NEW_DEVICE_AS_SINGLETON = 0x4
  20715. } D3D12_DEVICE_FACTORY_FLAGS;
  20716. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DEVICE_FACTORY_FLAGS );
  20717. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0061_v0_0_c_ifspec;
  20718. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0061_v0_0_s_ifspec;
  20719. #ifndef __ID3D12DeviceFactory_INTERFACE_DEFINED__
  20720. #define __ID3D12DeviceFactory_INTERFACE_DEFINED__
  20721. /* interface ID3D12DeviceFactory */
  20722. /* [unique][local][object][uuid] */
  20723. EXTERN_C const IID IID_ID3D12DeviceFactory;
  20724. #if defined(__cplusplus) && !defined(CINTERFACE)
  20725. MIDL_INTERFACE("61f307d3-d34e-4e7c-8374-3ba4de23cccb")
  20726. ID3D12DeviceFactory : public IUnknown
  20727. {
  20728. public:
  20729. virtual HRESULT STDMETHODCALLTYPE InitializeFromGlobalState( void) = 0;
  20730. virtual HRESULT STDMETHODCALLTYPE ApplyToGlobalState( void) = 0;
  20731. virtual HRESULT STDMETHODCALLTYPE SetFlags(
  20732. D3D12_DEVICE_FACTORY_FLAGS flags) = 0;
  20733. virtual D3D12_DEVICE_FACTORY_FLAGS STDMETHODCALLTYPE GetFlags( void) = 0;
  20734. virtual HRESULT STDMETHODCALLTYPE GetConfigurationInterface(
  20735. REFCLSID clsid,
  20736. REFIID iid,
  20737. _COM_Outptr_ void **ppv) = 0;
  20738. virtual HRESULT STDMETHODCALLTYPE EnableExperimentalFeatures(
  20739. UINT NumFeatures,
  20740. _In_reads_(NumFeatures) const IID *pIIDs,
  20741. _In_reads_opt_(NumFeatures) void *pConfigurationStructs,
  20742. _In_reads_opt_(NumFeatures) UINT *pConfigurationStructSizes) = 0;
  20743. virtual HRESULT STDMETHODCALLTYPE CreateDevice(
  20744. _In_opt_ IUnknown *adapter,
  20745. D3D_FEATURE_LEVEL FeatureLevel,
  20746. REFIID riid,
  20747. _COM_Outptr_opt_ void **ppvDevice) = 0;
  20748. };
  20749. #else /* C style interface */
  20750. typedef struct ID3D12DeviceFactoryVtbl
  20751. {
  20752. BEGIN_INTERFACE
  20753. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  20754. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  20755. ID3D12DeviceFactory * This,
  20756. REFIID riid,
  20757. _COM_Outptr_ void **ppvObject);
  20758. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  20759. ULONG ( STDMETHODCALLTYPE *AddRef )(
  20760. ID3D12DeviceFactory * This);
  20761. DECLSPEC_XFGVIRT(IUnknown, Release)
  20762. ULONG ( STDMETHODCALLTYPE *Release )(
  20763. ID3D12DeviceFactory * This);
  20764. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, InitializeFromGlobalState)
  20765. HRESULT ( STDMETHODCALLTYPE *InitializeFromGlobalState )(
  20766. ID3D12DeviceFactory * This);
  20767. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, ApplyToGlobalState)
  20768. HRESULT ( STDMETHODCALLTYPE *ApplyToGlobalState )(
  20769. ID3D12DeviceFactory * This);
  20770. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, SetFlags)
  20771. HRESULT ( STDMETHODCALLTYPE *SetFlags )(
  20772. ID3D12DeviceFactory * This,
  20773. D3D12_DEVICE_FACTORY_FLAGS flags);
  20774. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, GetFlags)
  20775. D3D12_DEVICE_FACTORY_FLAGS ( STDMETHODCALLTYPE *GetFlags )(
  20776. ID3D12DeviceFactory * This);
  20777. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, GetConfigurationInterface)
  20778. HRESULT ( STDMETHODCALLTYPE *GetConfigurationInterface )(
  20779. ID3D12DeviceFactory * This,
  20780. REFCLSID clsid,
  20781. REFIID iid,
  20782. _COM_Outptr_ void **ppv);
  20783. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, EnableExperimentalFeatures)
  20784. HRESULT ( STDMETHODCALLTYPE *EnableExperimentalFeatures )(
  20785. ID3D12DeviceFactory * This,
  20786. UINT NumFeatures,
  20787. _In_reads_(NumFeatures) const IID *pIIDs,
  20788. _In_reads_opt_(NumFeatures) void *pConfigurationStructs,
  20789. _In_reads_opt_(NumFeatures) UINT *pConfigurationStructSizes);
  20790. DECLSPEC_XFGVIRT(ID3D12DeviceFactory, CreateDevice)
  20791. HRESULT ( STDMETHODCALLTYPE *CreateDevice )(
  20792. ID3D12DeviceFactory * This,
  20793. _In_opt_ IUnknown *adapter,
  20794. D3D_FEATURE_LEVEL FeatureLevel,
  20795. REFIID riid,
  20796. _COM_Outptr_opt_ void **ppvDevice);
  20797. END_INTERFACE
  20798. } ID3D12DeviceFactoryVtbl;
  20799. interface ID3D12DeviceFactory
  20800. {
  20801. CONST_VTBL struct ID3D12DeviceFactoryVtbl *lpVtbl;
  20802. };
  20803. #ifdef COBJMACROS
  20804. #define ID3D12DeviceFactory_QueryInterface(This,riid,ppvObject) \
  20805. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  20806. #define ID3D12DeviceFactory_AddRef(This) \
  20807. ( (This)->lpVtbl -> AddRef(This) )
  20808. #define ID3D12DeviceFactory_Release(This) \
  20809. ( (This)->lpVtbl -> Release(This) )
  20810. #define ID3D12DeviceFactory_InitializeFromGlobalState(This) \
  20811. ( (This)->lpVtbl -> InitializeFromGlobalState(This) )
  20812. #define ID3D12DeviceFactory_ApplyToGlobalState(This) \
  20813. ( (This)->lpVtbl -> ApplyToGlobalState(This) )
  20814. #define ID3D12DeviceFactory_SetFlags(This,flags) \
  20815. ( (This)->lpVtbl -> SetFlags(This,flags) )
  20816. #define ID3D12DeviceFactory_GetFlags(This) \
  20817. ( (This)->lpVtbl -> GetFlags(This) )
  20818. #define ID3D12DeviceFactory_GetConfigurationInterface(This,clsid,iid,ppv) \
  20819. ( (This)->lpVtbl -> GetConfigurationInterface(This,clsid,iid,ppv) )
  20820. #define ID3D12DeviceFactory_EnableExperimentalFeatures(This,NumFeatures,pIIDs,pConfigurationStructs,pConfigurationStructSizes) \
  20821. ( (This)->lpVtbl -> EnableExperimentalFeatures(This,NumFeatures,pIIDs,pConfigurationStructs,pConfigurationStructSizes) )
  20822. #define ID3D12DeviceFactory_CreateDevice(This,adapter,FeatureLevel,riid,ppvDevice) \
  20823. ( (This)->lpVtbl -> CreateDevice(This,adapter,FeatureLevel,riid,ppvDevice) )
  20824. #endif /* COBJMACROS */
  20825. #endif /* C style interface */
  20826. #endif /* __ID3D12DeviceFactory_INTERFACE_DEFINED__ */
  20827. /* interface __MIDL_itf_d3d12_0000_0062 */
  20828. /* [local] */
  20829. typedef
  20830. enum D3D12_DEVICE_FLAGS
  20831. {
  20832. D3D12_DEVICE_FLAG_NONE = 0,
  20833. D3D12_DEVICE_FLAG_DEBUG_LAYER_ENABLED = 0x1,
  20834. D3D12_DEVICE_FLAG_GPU_BASED_VALIDATION_ENABLED = 0x2,
  20835. D3D12_DEVICE_FLAG_SYNCHRONIZED_COMMAND_QUEUE_VALIDATION_DISABLED = 0x4,
  20836. D3D12_DEVICE_FLAG_DRED_AUTO_BREADCRUMBS_ENABLED = 0x8,
  20837. D3D12_DEVICE_FLAG_DRED_PAGE_FAULT_REPORTING_ENABLED = 0x10,
  20838. D3D12_DEVICE_FLAG_DRED_WATSON_REPORTING_ENABLED = 0x20,
  20839. D3D12_DEVICE_FLAG_DRED_BREADCRUMB_CONTEXT_ENABLED = 0x40,
  20840. D3D12_DEVICE_FLAG_DRED_USE_MARKERS_ONLY_BREADCRUMBS = 0x80,
  20841. D3D12_DEVICE_FLAG_SHADER_INSTRUMENTATION_ENABLED = 0x100,
  20842. D3D12_DEVICE_FLAG_AUTO_DEBUG_NAME_ENABLED = 0x200,
  20843. D3D12_DEVICE_FLAG_FORCE_LEGACY_STATE_VALIDATION = 0x400
  20844. } D3D12_DEVICE_FLAGS;
  20845. DEFINE_ENUM_FLAG_OPERATORS( D3D12_DEVICE_FLAGS );
  20846. typedef struct D3D12_DEVICE_CONFIGURATION_DESC
  20847. {
  20848. D3D12_DEVICE_FLAGS Flags;
  20849. UINT GpuBasedValidationFlags;
  20850. UINT SDKVersion;
  20851. UINT NumEnabledExperimentalFeatures;
  20852. } D3D12_DEVICE_CONFIGURATION_DESC;
  20853. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0062_v0_0_c_ifspec;
  20854. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0062_v0_0_s_ifspec;
  20855. #ifndef __ID3D12DeviceConfiguration_INTERFACE_DEFINED__
  20856. #define __ID3D12DeviceConfiguration_INTERFACE_DEFINED__
  20857. /* interface ID3D12DeviceConfiguration */
  20858. /* [unique][local][object][uuid] */
  20859. EXTERN_C const IID IID_ID3D12DeviceConfiguration;
  20860. #if defined(__cplusplus) && !defined(CINTERFACE)
  20861. MIDL_INTERFACE("78dbf87b-f766-422b-a61c-c8c446bdb9ad")
  20862. ID3D12DeviceConfiguration : public IUnknown
  20863. {
  20864. public:
  20865. #if defined(_MSC_VER) || !defined(_WIN32)
  20866. virtual D3D12_DEVICE_CONFIGURATION_DESC STDMETHODCALLTYPE GetDesc( void) = 0;
  20867. #else
  20868. virtual D3D12_DEVICE_CONFIGURATION_DESC *STDMETHODCALLTYPE GetDesc(
  20869. D3D12_DEVICE_CONFIGURATION_DESC * RetVal) = 0;
  20870. #endif
  20871. virtual HRESULT STDMETHODCALLTYPE GetEnabledExperimentalFeatures(
  20872. _Out_writes_(NumGuids) GUID *pGuids,
  20873. UINT NumGuids) = 0;
  20874. virtual HRESULT STDMETHODCALLTYPE SerializeVersionedRootSignature(
  20875. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc,
  20876. _COM_Outptr_ ID3DBlob **ppResult,
  20877. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError) = 0;
  20878. virtual HRESULT STDMETHODCALLTYPE CreateVersionedRootSignatureDeserializer(
  20879. _In_reads_bytes_(Size) const void *pBlob,
  20880. SIZE_T Size,
  20881. REFIID riid,
  20882. _COM_Outptr_ void **ppvDeserializer) = 0;
  20883. };
  20884. #else /* C style interface */
  20885. typedef struct ID3D12DeviceConfigurationVtbl
  20886. {
  20887. BEGIN_INTERFACE
  20888. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  20889. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  20890. ID3D12DeviceConfiguration * This,
  20891. REFIID riid,
  20892. _COM_Outptr_ void **ppvObject);
  20893. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  20894. ULONG ( STDMETHODCALLTYPE *AddRef )(
  20895. ID3D12DeviceConfiguration * This);
  20896. DECLSPEC_XFGVIRT(IUnknown, Release)
  20897. ULONG ( STDMETHODCALLTYPE *Release )(
  20898. ID3D12DeviceConfiguration * This);
  20899. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetDesc)
  20900. #if !defined(_WIN32)
  20901. D3D12_DEVICE_CONFIGURATION_DESC ( STDMETHODCALLTYPE *GetDesc )(
  20902. ID3D12DeviceConfiguration * This);
  20903. #else
  20904. D3D12_DEVICE_CONFIGURATION_DESC *( STDMETHODCALLTYPE *GetDesc )(
  20905. ID3D12DeviceConfiguration * This,
  20906. D3D12_DEVICE_CONFIGURATION_DESC * RetVal);
  20907. #endif
  20908. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetEnabledExperimentalFeatures)
  20909. HRESULT ( STDMETHODCALLTYPE *GetEnabledExperimentalFeatures )(
  20910. ID3D12DeviceConfiguration * This,
  20911. _Out_writes_(NumGuids) GUID *pGuids,
  20912. UINT NumGuids);
  20913. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, SerializeVersionedRootSignature)
  20914. HRESULT ( STDMETHODCALLTYPE *SerializeVersionedRootSignature )(
  20915. ID3D12DeviceConfiguration * This,
  20916. _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc,
  20917. _COM_Outptr_ ID3DBlob **ppResult,
  20918. _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError);
  20919. DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, CreateVersionedRootSignatureDeserializer)
  20920. HRESULT ( STDMETHODCALLTYPE *CreateVersionedRootSignatureDeserializer )(
  20921. ID3D12DeviceConfiguration * This,
  20922. _In_reads_bytes_(Size) const void *pBlob,
  20923. SIZE_T Size,
  20924. REFIID riid,
  20925. _COM_Outptr_ void **ppvDeserializer);
  20926. END_INTERFACE
  20927. } ID3D12DeviceConfigurationVtbl;
  20928. interface ID3D12DeviceConfiguration
  20929. {
  20930. CONST_VTBL struct ID3D12DeviceConfigurationVtbl *lpVtbl;
  20931. };
  20932. #ifdef COBJMACROS
  20933. #define ID3D12DeviceConfiguration_QueryInterface(This,riid,ppvObject) \
  20934. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  20935. #define ID3D12DeviceConfiguration_AddRef(This) \
  20936. ( (This)->lpVtbl -> AddRef(This) )
  20937. #define ID3D12DeviceConfiguration_Release(This) \
  20938. ( (This)->lpVtbl -> Release(This) )
  20939. #if !defined(_WIN32)
  20940. #define ID3D12DeviceConfiguration_GetDesc(This) \
  20941. ( (This)->lpVtbl -> GetDesc(This) )
  20942. #else
  20943. #define ID3D12DeviceConfiguration_GetDesc(This,RetVal) \
  20944. ( (This)->lpVtbl -> GetDesc(This,RetVal) )
  20945. #endif
  20946. #define ID3D12DeviceConfiguration_GetEnabledExperimentalFeatures(This,pGuids,NumGuids) \
  20947. ( (This)->lpVtbl -> GetEnabledExperimentalFeatures(This,pGuids,NumGuids) )
  20948. #define ID3D12DeviceConfiguration_SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) \
  20949. ( (This)->lpVtbl -> SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) )
  20950. #define ID3D12DeviceConfiguration_CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) \
  20951. ( (This)->lpVtbl -> CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) )
  20952. #endif /* COBJMACROS */
  20953. #endif /* C style interface */
  20954. #endif /* __ID3D12DeviceConfiguration_INTERFACE_DEFINED__ */
  20955. /* interface __MIDL_itf_d3d12_0000_0063 */
  20956. /* [local] */
  20957. typedef
  20958. enum D3D12_AXIS_SHADING_RATE
  20959. {
  20960. D3D12_AXIS_SHADING_RATE_1X = 0,
  20961. D3D12_AXIS_SHADING_RATE_2X = 0x1,
  20962. D3D12_AXIS_SHADING_RATE_4X = 0x2
  20963. } D3D12_AXIS_SHADING_RATE;
  20964. #define D3D12_SHADING_RATE_X_AXIS_SHIFT 2
  20965. #define D3D12_SHADING_RATE_VALID_MASK 3
  20966. #define D3D12_MAKE_COARSE_SHADING_RATE(x,y) ((x) << D3D12_SHADING_RATE_X_AXIS_SHIFT | (y))
  20967. #define D3D12_GET_COARSE_SHADING_RATE_X_AXIS(x) (((x) >> D3D12_SHADING_RATE_X_AXIS_SHIFT) & D3D12_SHADING_RATE_VALID_MASK)
  20968. #define D3D12_GET_COARSE_SHADING_RATE_Y_AXIS(y) ((y) & D3D12_SHADING_RATE_VALID_MASK)
  20969. typedef
  20970. enum D3D12_SHADING_RATE
  20971. {
  20972. D3D12_SHADING_RATE_1X1 = 0,
  20973. D3D12_SHADING_RATE_1X2 = 0x1,
  20974. D3D12_SHADING_RATE_2X1 = 0x4,
  20975. D3D12_SHADING_RATE_2X2 = 0x5,
  20976. D3D12_SHADING_RATE_2X4 = 0x6,
  20977. D3D12_SHADING_RATE_4X2 = 0x9,
  20978. D3D12_SHADING_RATE_4X4 = 0xa
  20979. } D3D12_SHADING_RATE;
  20980. typedef
  20981. enum D3D12_SHADING_RATE_COMBINER
  20982. {
  20983. D3D12_SHADING_RATE_COMBINER_PASSTHROUGH = 0,
  20984. D3D12_SHADING_RATE_COMBINER_OVERRIDE = 1,
  20985. D3D12_SHADING_RATE_COMBINER_MIN = 2,
  20986. D3D12_SHADING_RATE_COMBINER_MAX = 3,
  20987. D3D12_SHADING_RATE_COMBINER_SUM = 4
  20988. } D3D12_SHADING_RATE_COMBINER;
  20989. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0063_v0_0_c_ifspec;
  20990. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0063_v0_0_s_ifspec;
  20991. #ifndef __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__
  20992. #define __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__
  20993. /* interface ID3D12GraphicsCommandList5 */
  20994. /* [unique][local][object][uuid] */
  20995. EXTERN_C const IID IID_ID3D12GraphicsCommandList5;
  20996. #if defined(__cplusplus) && !defined(CINTERFACE)
  20997. MIDL_INTERFACE("55050859-4024-474c-87f5-6472eaee44ea")
  20998. ID3D12GraphicsCommandList5 : public ID3D12GraphicsCommandList4
  20999. {
  21000. public:
  21001. virtual void STDMETHODCALLTYPE RSSetShadingRate(
  21002. _In_ D3D12_SHADING_RATE baseShadingRate,
  21003. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners) = 0;
  21004. virtual void STDMETHODCALLTYPE RSSetShadingRateImage(
  21005. _In_opt_ ID3D12Resource *shadingRateImage) = 0;
  21006. };
  21007. #else /* C style interface */
  21008. typedef struct ID3D12GraphicsCommandList5Vtbl
  21009. {
  21010. BEGIN_INTERFACE
  21011. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  21012. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  21013. ID3D12GraphicsCommandList5 * This,
  21014. REFIID riid,
  21015. _COM_Outptr_ void **ppvObject);
  21016. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  21017. ULONG ( STDMETHODCALLTYPE *AddRef )(
  21018. ID3D12GraphicsCommandList5 * This);
  21019. DECLSPEC_XFGVIRT(IUnknown, Release)
  21020. ULONG ( STDMETHODCALLTYPE *Release )(
  21021. ID3D12GraphicsCommandList5 * This);
  21022. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  21023. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  21024. ID3D12GraphicsCommandList5 * This,
  21025. _In_ REFGUID guid,
  21026. _Inout_ UINT *pDataSize,
  21027. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  21028. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  21029. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  21030. ID3D12GraphicsCommandList5 * This,
  21031. _In_ REFGUID guid,
  21032. _In_ UINT DataSize,
  21033. _In_reads_bytes_opt_( DataSize ) const void *pData);
  21034. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  21035. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  21036. ID3D12GraphicsCommandList5 * This,
  21037. _In_ REFGUID guid,
  21038. _In_opt_ const IUnknown *pData);
  21039. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  21040. HRESULT ( STDMETHODCALLTYPE *SetName )(
  21041. ID3D12GraphicsCommandList5 * This,
  21042. _In_z_ LPCWSTR Name);
  21043. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  21044. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  21045. ID3D12GraphicsCommandList5 * This,
  21046. REFIID riid,
  21047. _COM_Outptr_opt_ void **ppvDevice);
  21048. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  21049. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  21050. ID3D12GraphicsCommandList5 * This);
  21051. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  21052. HRESULT ( STDMETHODCALLTYPE *Close )(
  21053. ID3D12GraphicsCommandList5 * This);
  21054. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  21055. HRESULT ( STDMETHODCALLTYPE *Reset )(
  21056. ID3D12GraphicsCommandList5 * This,
  21057. _In_ ID3D12CommandAllocator *pAllocator,
  21058. _In_opt_ ID3D12PipelineState *pInitialState);
  21059. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  21060. void ( STDMETHODCALLTYPE *ClearState )(
  21061. ID3D12GraphicsCommandList5 * This,
  21062. _In_opt_ ID3D12PipelineState *pPipelineState);
  21063. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  21064. void ( STDMETHODCALLTYPE *DrawInstanced )(
  21065. ID3D12GraphicsCommandList5 * This,
  21066. _In_ UINT VertexCountPerInstance,
  21067. _In_ UINT InstanceCount,
  21068. _In_ UINT StartVertexLocation,
  21069. _In_ UINT StartInstanceLocation);
  21070. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  21071. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  21072. ID3D12GraphicsCommandList5 * This,
  21073. _In_ UINT IndexCountPerInstance,
  21074. _In_ UINT InstanceCount,
  21075. _In_ UINT StartIndexLocation,
  21076. _In_ INT BaseVertexLocation,
  21077. _In_ UINT StartInstanceLocation);
  21078. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  21079. void ( STDMETHODCALLTYPE *Dispatch )(
  21080. ID3D12GraphicsCommandList5 * This,
  21081. _In_ UINT ThreadGroupCountX,
  21082. _In_ UINT ThreadGroupCountY,
  21083. _In_ UINT ThreadGroupCountZ);
  21084. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  21085. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  21086. ID3D12GraphicsCommandList5 * This,
  21087. _In_ ID3D12Resource *pDstBuffer,
  21088. UINT64 DstOffset,
  21089. _In_ ID3D12Resource *pSrcBuffer,
  21090. UINT64 SrcOffset,
  21091. UINT64 NumBytes);
  21092. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  21093. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  21094. ID3D12GraphicsCommandList5 * This,
  21095. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  21096. UINT DstX,
  21097. UINT DstY,
  21098. UINT DstZ,
  21099. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  21100. _In_opt_ const D3D12_BOX *pSrcBox);
  21101. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  21102. void ( STDMETHODCALLTYPE *CopyResource )(
  21103. ID3D12GraphicsCommandList5 * This,
  21104. _In_ ID3D12Resource *pDstResource,
  21105. _In_ ID3D12Resource *pSrcResource);
  21106. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  21107. void ( STDMETHODCALLTYPE *CopyTiles )(
  21108. ID3D12GraphicsCommandList5 * This,
  21109. _In_ ID3D12Resource *pTiledResource,
  21110. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  21111. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  21112. _In_ ID3D12Resource *pBuffer,
  21113. UINT64 BufferStartOffsetInBytes,
  21114. D3D12_TILE_COPY_FLAGS Flags);
  21115. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  21116. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  21117. ID3D12GraphicsCommandList5 * This,
  21118. _In_ ID3D12Resource *pDstResource,
  21119. _In_ UINT DstSubresource,
  21120. _In_ ID3D12Resource *pSrcResource,
  21121. _In_ UINT SrcSubresource,
  21122. _In_ DXGI_FORMAT Format);
  21123. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  21124. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  21125. ID3D12GraphicsCommandList5 * This,
  21126. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  21127. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  21128. void ( STDMETHODCALLTYPE *RSSetViewports )(
  21129. ID3D12GraphicsCommandList5 * This,
  21130. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  21131. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  21132. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  21133. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  21134. ID3D12GraphicsCommandList5 * This,
  21135. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  21136. _In_reads_( NumRects) const D3D12_RECT *pRects);
  21137. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  21138. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  21139. ID3D12GraphicsCommandList5 * This,
  21140. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  21141. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  21142. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  21143. ID3D12GraphicsCommandList5 * This,
  21144. _In_ UINT StencilRef);
  21145. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  21146. void ( STDMETHODCALLTYPE *SetPipelineState )(
  21147. ID3D12GraphicsCommandList5 * This,
  21148. _In_ ID3D12PipelineState *pPipelineState);
  21149. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  21150. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  21151. ID3D12GraphicsCommandList5 * This,
  21152. _In_ UINT NumBarriers,
  21153. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  21154. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  21155. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  21156. ID3D12GraphicsCommandList5 * This,
  21157. _In_ ID3D12GraphicsCommandList *pCommandList);
  21158. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  21159. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  21160. ID3D12GraphicsCommandList5 * This,
  21161. _In_ UINT NumDescriptorHeaps,
  21162. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  21163. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  21164. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  21165. ID3D12GraphicsCommandList5 * This,
  21166. _In_opt_ ID3D12RootSignature *pRootSignature);
  21167. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  21168. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  21169. ID3D12GraphicsCommandList5 * This,
  21170. _In_opt_ ID3D12RootSignature *pRootSignature);
  21171. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  21172. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  21173. ID3D12GraphicsCommandList5 * This,
  21174. _In_ UINT RootParameterIndex,
  21175. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  21176. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  21177. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  21178. ID3D12GraphicsCommandList5 * This,
  21179. _In_ UINT RootParameterIndex,
  21180. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  21181. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  21182. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  21183. ID3D12GraphicsCommandList5 * This,
  21184. _In_ UINT RootParameterIndex,
  21185. _In_ UINT SrcData,
  21186. _In_ UINT DestOffsetIn32BitValues);
  21187. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  21188. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  21189. ID3D12GraphicsCommandList5 * This,
  21190. _In_ UINT RootParameterIndex,
  21191. _In_ UINT SrcData,
  21192. _In_ UINT DestOffsetIn32BitValues);
  21193. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  21194. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  21195. ID3D12GraphicsCommandList5 * This,
  21196. _In_ UINT RootParameterIndex,
  21197. _In_ UINT Num32BitValuesToSet,
  21198. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  21199. _In_ UINT DestOffsetIn32BitValues);
  21200. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  21201. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  21202. ID3D12GraphicsCommandList5 * This,
  21203. _In_ UINT RootParameterIndex,
  21204. _In_ UINT Num32BitValuesToSet,
  21205. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  21206. _In_ UINT DestOffsetIn32BitValues);
  21207. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  21208. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  21209. ID3D12GraphicsCommandList5 * This,
  21210. _In_ UINT RootParameterIndex,
  21211. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21212. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  21213. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  21214. ID3D12GraphicsCommandList5 * This,
  21215. _In_ UINT RootParameterIndex,
  21216. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21217. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  21218. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  21219. ID3D12GraphicsCommandList5 * This,
  21220. _In_ UINT RootParameterIndex,
  21221. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21222. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  21223. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  21224. ID3D12GraphicsCommandList5 * This,
  21225. _In_ UINT RootParameterIndex,
  21226. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21227. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  21228. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  21229. ID3D12GraphicsCommandList5 * This,
  21230. _In_ UINT RootParameterIndex,
  21231. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21232. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  21233. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  21234. ID3D12GraphicsCommandList5 * This,
  21235. _In_ UINT RootParameterIndex,
  21236. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21237. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  21238. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  21239. ID3D12GraphicsCommandList5 * This,
  21240. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  21241. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  21242. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  21243. ID3D12GraphicsCommandList5 * This,
  21244. _In_ UINT StartSlot,
  21245. _In_ UINT NumViews,
  21246. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  21247. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  21248. void ( STDMETHODCALLTYPE *SOSetTargets )(
  21249. ID3D12GraphicsCommandList5 * This,
  21250. _In_ UINT StartSlot,
  21251. _In_ UINT NumViews,
  21252. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  21253. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  21254. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  21255. ID3D12GraphicsCommandList5 * This,
  21256. _In_ UINT NumRenderTargetDescriptors,
  21257. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  21258. _In_ BOOL RTsSingleHandleToDescriptorRange,
  21259. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  21260. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  21261. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  21262. ID3D12GraphicsCommandList5 * This,
  21263. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  21264. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  21265. _In_ FLOAT Depth,
  21266. _In_ UINT8 Stencil,
  21267. _In_ UINT NumRects,
  21268. _In_reads_(NumRects) const D3D12_RECT *pRects);
  21269. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  21270. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  21271. ID3D12GraphicsCommandList5 * This,
  21272. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  21273. _In_ const FLOAT ColorRGBA[ 4 ],
  21274. _In_ UINT NumRects,
  21275. _In_reads_(NumRects) const D3D12_RECT *pRects);
  21276. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  21277. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  21278. ID3D12GraphicsCommandList5 * This,
  21279. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  21280. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  21281. _In_ ID3D12Resource *pResource,
  21282. _In_ const UINT Values[ 4 ],
  21283. _In_ UINT NumRects,
  21284. _In_reads_(NumRects) const D3D12_RECT *pRects);
  21285. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  21286. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  21287. ID3D12GraphicsCommandList5 * This,
  21288. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  21289. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  21290. _In_ ID3D12Resource *pResource,
  21291. _In_ const FLOAT Values[ 4 ],
  21292. _In_ UINT NumRects,
  21293. _In_reads_(NumRects) const D3D12_RECT *pRects);
  21294. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  21295. void ( STDMETHODCALLTYPE *DiscardResource )(
  21296. ID3D12GraphicsCommandList5 * This,
  21297. _In_ ID3D12Resource *pResource,
  21298. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  21299. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  21300. void ( STDMETHODCALLTYPE *BeginQuery )(
  21301. ID3D12GraphicsCommandList5 * This,
  21302. _In_ ID3D12QueryHeap *pQueryHeap,
  21303. _In_ D3D12_QUERY_TYPE Type,
  21304. _In_ UINT Index);
  21305. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  21306. void ( STDMETHODCALLTYPE *EndQuery )(
  21307. ID3D12GraphicsCommandList5 * This,
  21308. _In_ ID3D12QueryHeap *pQueryHeap,
  21309. _In_ D3D12_QUERY_TYPE Type,
  21310. _In_ UINT Index);
  21311. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  21312. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  21313. ID3D12GraphicsCommandList5 * This,
  21314. _In_ ID3D12QueryHeap *pQueryHeap,
  21315. _In_ D3D12_QUERY_TYPE Type,
  21316. _In_ UINT StartIndex,
  21317. _In_ UINT NumQueries,
  21318. _In_ ID3D12Resource *pDestinationBuffer,
  21319. _In_ UINT64 AlignedDestinationBufferOffset);
  21320. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  21321. void ( STDMETHODCALLTYPE *SetPredication )(
  21322. ID3D12GraphicsCommandList5 * This,
  21323. _In_opt_ ID3D12Resource *pBuffer,
  21324. _In_ UINT64 AlignedBufferOffset,
  21325. _In_ D3D12_PREDICATION_OP Operation);
  21326. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  21327. void ( STDMETHODCALLTYPE *SetMarker )(
  21328. ID3D12GraphicsCommandList5 * This,
  21329. UINT Metadata,
  21330. _In_reads_bytes_opt_(Size) const void *pData,
  21331. UINT Size);
  21332. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  21333. void ( STDMETHODCALLTYPE *BeginEvent )(
  21334. ID3D12GraphicsCommandList5 * This,
  21335. UINT Metadata,
  21336. _In_reads_bytes_opt_(Size) const void *pData,
  21337. UINT Size);
  21338. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  21339. void ( STDMETHODCALLTYPE *EndEvent )(
  21340. ID3D12GraphicsCommandList5 * This);
  21341. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  21342. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  21343. ID3D12GraphicsCommandList5 * This,
  21344. _In_ ID3D12CommandSignature *pCommandSignature,
  21345. _In_ UINT MaxCommandCount,
  21346. _In_ ID3D12Resource *pArgumentBuffer,
  21347. _In_ UINT64 ArgumentBufferOffset,
  21348. _In_opt_ ID3D12Resource *pCountBuffer,
  21349. _In_ UINT64 CountBufferOffset);
  21350. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  21351. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  21352. ID3D12GraphicsCommandList5 * This,
  21353. _In_ ID3D12Resource *pDstBuffer,
  21354. UINT64 DstOffset,
  21355. _In_ ID3D12Resource *pSrcBuffer,
  21356. UINT64 SrcOffset,
  21357. UINT Dependencies,
  21358. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  21359. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  21360. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  21361. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  21362. ID3D12GraphicsCommandList5 * This,
  21363. _In_ ID3D12Resource *pDstBuffer,
  21364. UINT64 DstOffset,
  21365. _In_ ID3D12Resource *pSrcBuffer,
  21366. UINT64 SrcOffset,
  21367. UINT Dependencies,
  21368. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  21369. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  21370. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  21371. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  21372. ID3D12GraphicsCommandList5 * This,
  21373. _In_ FLOAT Min,
  21374. _In_ FLOAT Max);
  21375. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  21376. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  21377. ID3D12GraphicsCommandList5 * This,
  21378. _In_ UINT NumSamplesPerPixel,
  21379. _In_ UINT NumPixels,
  21380. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  21381. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  21382. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  21383. ID3D12GraphicsCommandList5 * This,
  21384. _In_ ID3D12Resource *pDstResource,
  21385. _In_ UINT DstSubresource,
  21386. _In_ UINT DstX,
  21387. _In_ UINT DstY,
  21388. _In_ ID3D12Resource *pSrcResource,
  21389. _In_ UINT SrcSubresource,
  21390. _In_opt_ D3D12_RECT *pSrcRect,
  21391. _In_ DXGI_FORMAT Format,
  21392. _In_ D3D12_RESOLVE_MODE ResolveMode);
  21393. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  21394. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  21395. ID3D12GraphicsCommandList5 * This,
  21396. _In_ UINT Mask);
  21397. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  21398. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  21399. ID3D12GraphicsCommandList5 * This,
  21400. UINT Count,
  21401. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  21402. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  21403. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  21404. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  21405. ID3D12GraphicsCommandList5 * This,
  21406. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  21407. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  21408. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  21409. ID3D12GraphicsCommandList5 * This,
  21410. _In_ UINT NumRenderTargets,
  21411. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  21412. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  21413. D3D12_RENDER_PASS_FLAGS Flags);
  21414. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  21415. void ( STDMETHODCALLTYPE *EndRenderPass )(
  21416. ID3D12GraphicsCommandList5 * This);
  21417. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  21418. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  21419. ID3D12GraphicsCommandList5 * This,
  21420. _In_ ID3D12MetaCommand *pMetaCommand,
  21421. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  21422. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  21423. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  21424. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  21425. ID3D12GraphicsCommandList5 * This,
  21426. _In_ ID3D12MetaCommand *pMetaCommand,
  21427. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  21428. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  21429. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  21430. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  21431. ID3D12GraphicsCommandList5 * This,
  21432. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  21433. _In_ UINT NumPostbuildInfoDescs,
  21434. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  21435. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  21436. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  21437. ID3D12GraphicsCommandList5 * This,
  21438. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  21439. _In_ UINT NumSourceAccelerationStructures,
  21440. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  21441. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  21442. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  21443. ID3D12GraphicsCommandList5 * This,
  21444. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  21445. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  21446. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  21447. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  21448. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  21449. ID3D12GraphicsCommandList5 * This,
  21450. _In_ ID3D12StateObject *pStateObject);
  21451. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  21452. void ( STDMETHODCALLTYPE *DispatchRays )(
  21453. ID3D12GraphicsCommandList5 * This,
  21454. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  21455. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  21456. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  21457. ID3D12GraphicsCommandList5 * This,
  21458. _In_ D3D12_SHADING_RATE baseShadingRate,
  21459. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  21460. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  21461. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  21462. ID3D12GraphicsCommandList5 * This,
  21463. _In_opt_ ID3D12Resource *shadingRateImage);
  21464. END_INTERFACE
  21465. } ID3D12GraphicsCommandList5Vtbl;
  21466. interface ID3D12GraphicsCommandList5
  21467. {
  21468. CONST_VTBL struct ID3D12GraphicsCommandList5Vtbl *lpVtbl;
  21469. };
  21470. #ifdef COBJMACROS
  21471. #define ID3D12GraphicsCommandList5_QueryInterface(This,riid,ppvObject) \
  21472. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  21473. #define ID3D12GraphicsCommandList5_AddRef(This) \
  21474. ( (This)->lpVtbl -> AddRef(This) )
  21475. #define ID3D12GraphicsCommandList5_Release(This) \
  21476. ( (This)->lpVtbl -> Release(This) )
  21477. #define ID3D12GraphicsCommandList5_GetPrivateData(This,guid,pDataSize,pData) \
  21478. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  21479. #define ID3D12GraphicsCommandList5_SetPrivateData(This,guid,DataSize,pData) \
  21480. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  21481. #define ID3D12GraphicsCommandList5_SetPrivateDataInterface(This,guid,pData) \
  21482. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  21483. #define ID3D12GraphicsCommandList5_SetName(This,Name) \
  21484. ( (This)->lpVtbl -> SetName(This,Name) )
  21485. #define ID3D12GraphicsCommandList5_GetDevice(This,riid,ppvDevice) \
  21486. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  21487. #define ID3D12GraphicsCommandList5_GetType(This) \
  21488. ( (This)->lpVtbl -> GetType(This) )
  21489. #define ID3D12GraphicsCommandList5_Close(This) \
  21490. ( (This)->lpVtbl -> Close(This) )
  21491. #define ID3D12GraphicsCommandList5_Reset(This,pAllocator,pInitialState) \
  21492. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  21493. #define ID3D12GraphicsCommandList5_ClearState(This,pPipelineState) \
  21494. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  21495. #define ID3D12GraphicsCommandList5_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  21496. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  21497. #define ID3D12GraphicsCommandList5_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  21498. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  21499. #define ID3D12GraphicsCommandList5_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  21500. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  21501. #define ID3D12GraphicsCommandList5_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  21502. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  21503. #define ID3D12GraphicsCommandList5_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  21504. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  21505. #define ID3D12GraphicsCommandList5_CopyResource(This,pDstResource,pSrcResource) \
  21506. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  21507. #define ID3D12GraphicsCommandList5_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  21508. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  21509. #define ID3D12GraphicsCommandList5_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  21510. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  21511. #define ID3D12GraphicsCommandList5_IASetPrimitiveTopology(This,PrimitiveTopology) \
  21512. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  21513. #define ID3D12GraphicsCommandList5_RSSetViewports(This,NumViewports,pViewports) \
  21514. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  21515. #define ID3D12GraphicsCommandList5_RSSetScissorRects(This,NumRects,pRects) \
  21516. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  21517. #define ID3D12GraphicsCommandList5_OMSetBlendFactor(This,BlendFactor) \
  21518. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  21519. #define ID3D12GraphicsCommandList5_OMSetStencilRef(This,StencilRef) \
  21520. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  21521. #define ID3D12GraphicsCommandList5_SetPipelineState(This,pPipelineState) \
  21522. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  21523. #define ID3D12GraphicsCommandList5_ResourceBarrier(This,NumBarriers,pBarriers) \
  21524. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  21525. #define ID3D12GraphicsCommandList5_ExecuteBundle(This,pCommandList) \
  21526. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  21527. #define ID3D12GraphicsCommandList5_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  21528. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  21529. #define ID3D12GraphicsCommandList5_SetComputeRootSignature(This,pRootSignature) \
  21530. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  21531. #define ID3D12GraphicsCommandList5_SetGraphicsRootSignature(This,pRootSignature) \
  21532. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  21533. #define ID3D12GraphicsCommandList5_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  21534. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  21535. #define ID3D12GraphicsCommandList5_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  21536. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  21537. #define ID3D12GraphicsCommandList5_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  21538. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  21539. #define ID3D12GraphicsCommandList5_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  21540. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  21541. #define ID3D12GraphicsCommandList5_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  21542. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  21543. #define ID3D12GraphicsCommandList5_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  21544. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  21545. #define ID3D12GraphicsCommandList5_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  21546. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  21547. #define ID3D12GraphicsCommandList5_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  21548. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  21549. #define ID3D12GraphicsCommandList5_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  21550. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  21551. #define ID3D12GraphicsCommandList5_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  21552. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  21553. #define ID3D12GraphicsCommandList5_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  21554. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  21555. #define ID3D12GraphicsCommandList5_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  21556. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  21557. #define ID3D12GraphicsCommandList5_IASetIndexBuffer(This,pView) \
  21558. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  21559. #define ID3D12GraphicsCommandList5_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  21560. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  21561. #define ID3D12GraphicsCommandList5_SOSetTargets(This,StartSlot,NumViews,pViews) \
  21562. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  21563. #define ID3D12GraphicsCommandList5_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  21564. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  21565. #define ID3D12GraphicsCommandList5_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  21566. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  21567. #define ID3D12GraphicsCommandList5_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  21568. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  21569. #define ID3D12GraphicsCommandList5_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  21570. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  21571. #define ID3D12GraphicsCommandList5_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  21572. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  21573. #define ID3D12GraphicsCommandList5_DiscardResource(This,pResource,pRegion) \
  21574. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  21575. #define ID3D12GraphicsCommandList5_BeginQuery(This,pQueryHeap,Type,Index) \
  21576. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  21577. #define ID3D12GraphicsCommandList5_EndQuery(This,pQueryHeap,Type,Index) \
  21578. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  21579. #define ID3D12GraphicsCommandList5_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  21580. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  21581. #define ID3D12GraphicsCommandList5_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  21582. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  21583. #define ID3D12GraphicsCommandList5_SetMarker(This,Metadata,pData,Size) \
  21584. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  21585. #define ID3D12GraphicsCommandList5_BeginEvent(This,Metadata,pData,Size) \
  21586. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  21587. #define ID3D12GraphicsCommandList5_EndEvent(This) \
  21588. ( (This)->lpVtbl -> EndEvent(This) )
  21589. #define ID3D12GraphicsCommandList5_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  21590. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  21591. #define ID3D12GraphicsCommandList5_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  21592. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  21593. #define ID3D12GraphicsCommandList5_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  21594. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  21595. #define ID3D12GraphicsCommandList5_OMSetDepthBounds(This,Min,Max) \
  21596. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  21597. #define ID3D12GraphicsCommandList5_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  21598. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  21599. #define ID3D12GraphicsCommandList5_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  21600. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  21601. #define ID3D12GraphicsCommandList5_SetViewInstanceMask(This,Mask) \
  21602. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  21603. #define ID3D12GraphicsCommandList5_WriteBufferImmediate(This,Count,pParams,pModes) \
  21604. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  21605. #define ID3D12GraphicsCommandList5_SetProtectedResourceSession(This,pProtectedResourceSession) \
  21606. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  21607. #define ID3D12GraphicsCommandList5_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  21608. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  21609. #define ID3D12GraphicsCommandList5_EndRenderPass(This) \
  21610. ( (This)->lpVtbl -> EndRenderPass(This) )
  21611. #define ID3D12GraphicsCommandList5_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  21612. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  21613. #define ID3D12GraphicsCommandList5_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  21614. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  21615. #define ID3D12GraphicsCommandList5_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  21616. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  21617. #define ID3D12GraphicsCommandList5_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  21618. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  21619. #define ID3D12GraphicsCommandList5_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  21620. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  21621. #define ID3D12GraphicsCommandList5_SetPipelineState1(This,pStateObject) \
  21622. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  21623. #define ID3D12GraphicsCommandList5_DispatchRays(This,pDesc) \
  21624. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  21625. #define ID3D12GraphicsCommandList5_RSSetShadingRate(This,baseShadingRate,combiners) \
  21626. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  21627. #define ID3D12GraphicsCommandList5_RSSetShadingRateImage(This,shadingRateImage) \
  21628. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  21629. #endif /* COBJMACROS */
  21630. #endif /* C style interface */
  21631. #endif /* __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__ */
  21632. /* interface __MIDL_itf_d3d12_0000_0064 */
  21633. /* [local] */
  21634. typedef struct D3D12_DISPATCH_MESH_ARGUMENTS
  21635. {
  21636. UINT ThreadGroupCountX;
  21637. UINT ThreadGroupCountY;
  21638. UINT ThreadGroupCountZ;
  21639. } D3D12_DISPATCH_MESH_ARGUMENTS;
  21640. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0064_v0_0_c_ifspec;
  21641. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0064_v0_0_s_ifspec;
  21642. #ifndef __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__
  21643. #define __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__
  21644. /* interface ID3D12GraphicsCommandList6 */
  21645. /* [unique][local][object][uuid] */
  21646. EXTERN_C const IID IID_ID3D12GraphicsCommandList6;
  21647. #if defined(__cplusplus) && !defined(CINTERFACE)
  21648. MIDL_INTERFACE("c3827890-e548-4cfa-96cf-5689a9370f80")
  21649. ID3D12GraphicsCommandList6 : public ID3D12GraphicsCommandList5
  21650. {
  21651. public:
  21652. virtual void STDMETHODCALLTYPE DispatchMesh(
  21653. _In_ UINT ThreadGroupCountX,
  21654. _In_ UINT ThreadGroupCountY,
  21655. _In_ UINT ThreadGroupCountZ) = 0;
  21656. };
  21657. #else /* C style interface */
  21658. typedef struct ID3D12GraphicsCommandList6Vtbl
  21659. {
  21660. BEGIN_INTERFACE
  21661. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  21662. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  21663. ID3D12GraphicsCommandList6 * This,
  21664. REFIID riid,
  21665. _COM_Outptr_ void **ppvObject);
  21666. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  21667. ULONG ( STDMETHODCALLTYPE *AddRef )(
  21668. ID3D12GraphicsCommandList6 * This);
  21669. DECLSPEC_XFGVIRT(IUnknown, Release)
  21670. ULONG ( STDMETHODCALLTYPE *Release )(
  21671. ID3D12GraphicsCommandList6 * This);
  21672. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  21673. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  21674. ID3D12GraphicsCommandList6 * This,
  21675. _In_ REFGUID guid,
  21676. _Inout_ UINT *pDataSize,
  21677. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  21678. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  21679. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  21680. ID3D12GraphicsCommandList6 * This,
  21681. _In_ REFGUID guid,
  21682. _In_ UINT DataSize,
  21683. _In_reads_bytes_opt_( DataSize ) const void *pData);
  21684. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  21685. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  21686. ID3D12GraphicsCommandList6 * This,
  21687. _In_ REFGUID guid,
  21688. _In_opt_ const IUnknown *pData);
  21689. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  21690. HRESULT ( STDMETHODCALLTYPE *SetName )(
  21691. ID3D12GraphicsCommandList6 * This,
  21692. _In_z_ LPCWSTR Name);
  21693. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  21694. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  21695. ID3D12GraphicsCommandList6 * This,
  21696. REFIID riid,
  21697. _COM_Outptr_opt_ void **ppvDevice);
  21698. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  21699. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  21700. ID3D12GraphicsCommandList6 * This);
  21701. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  21702. HRESULT ( STDMETHODCALLTYPE *Close )(
  21703. ID3D12GraphicsCommandList6 * This);
  21704. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  21705. HRESULT ( STDMETHODCALLTYPE *Reset )(
  21706. ID3D12GraphicsCommandList6 * This,
  21707. _In_ ID3D12CommandAllocator *pAllocator,
  21708. _In_opt_ ID3D12PipelineState *pInitialState);
  21709. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  21710. void ( STDMETHODCALLTYPE *ClearState )(
  21711. ID3D12GraphicsCommandList6 * This,
  21712. _In_opt_ ID3D12PipelineState *pPipelineState);
  21713. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  21714. void ( STDMETHODCALLTYPE *DrawInstanced )(
  21715. ID3D12GraphicsCommandList6 * This,
  21716. _In_ UINT VertexCountPerInstance,
  21717. _In_ UINT InstanceCount,
  21718. _In_ UINT StartVertexLocation,
  21719. _In_ UINT StartInstanceLocation);
  21720. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  21721. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  21722. ID3D12GraphicsCommandList6 * This,
  21723. _In_ UINT IndexCountPerInstance,
  21724. _In_ UINT InstanceCount,
  21725. _In_ UINT StartIndexLocation,
  21726. _In_ INT BaseVertexLocation,
  21727. _In_ UINT StartInstanceLocation);
  21728. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  21729. void ( STDMETHODCALLTYPE *Dispatch )(
  21730. ID3D12GraphicsCommandList6 * This,
  21731. _In_ UINT ThreadGroupCountX,
  21732. _In_ UINT ThreadGroupCountY,
  21733. _In_ UINT ThreadGroupCountZ);
  21734. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  21735. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  21736. ID3D12GraphicsCommandList6 * This,
  21737. _In_ ID3D12Resource *pDstBuffer,
  21738. UINT64 DstOffset,
  21739. _In_ ID3D12Resource *pSrcBuffer,
  21740. UINT64 SrcOffset,
  21741. UINT64 NumBytes);
  21742. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  21743. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  21744. ID3D12GraphicsCommandList6 * This,
  21745. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  21746. UINT DstX,
  21747. UINT DstY,
  21748. UINT DstZ,
  21749. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  21750. _In_opt_ const D3D12_BOX *pSrcBox);
  21751. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  21752. void ( STDMETHODCALLTYPE *CopyResource )(
  21753. ID3D12GraphicsCommandList6 * This,
  21754. _In_ ID3D12Resource *pDstResource,
  21755. _In_ ID3D12Resource *pSrcResource);
  21756. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  21757. void ( STDMETHODCALLTYPE *CopyTiles )(
  21758. ID3D12GraphicsCommandList6 * This,
  21759. _In_ ID3D12Resource *pTiledResource,
  21760. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  21761. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  21762. _In_ ID3D12Resource *pBuffer,
  21763. UINT64 BufferStartOffsetInBytes,
  21764. D3D12_TILE_COPY_FLAGS Flags);
  21765. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  21766. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  21767. ID3D12GraphicsCommandList6 * This,
  21768. _In_ ID3D12Resource *pDstResource,
  21769. _In_ UINT DstSubresource,
  21770. _In_ ID3D12Resource *pSrcResource,
  21771. _In_ UINT SrcSubresource,
  21772. _In_ DXGI_FORMAT Format);
  21773. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  21774. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  21775. ID3D12GraphicsCommandList6 * This,
  21776. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  21777. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  21778. void ( STDMETHODCALLTYPE *RSSetViewports )(
  21779. ID3D12GraphicsCommandList6 * This,
  21780. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  21781. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  21782. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  21783. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  21784. ID3D12GraphicsCommandList6 * This,
  21785. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  21786. _In_reads_( NumRects) const D3D12_RECT *pRects);
  21787. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  21788. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  21789. ID3D12GraphicsCommandList6 * This,
  21790. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  21791. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  21792. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  21793. ID3D12GraphicsCommandList6 * This,
  21794. _In_ UINT StencilRef);
  21795. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  21796. void ( STDMETHODCALLTYPE *SetPipelineState )(
  21797. ID3D12GraphicsCommandList6 * This,
  21798. _In_ ID3D12PipelineState *pPipelineState);
  21799. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  21800. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  21801. ID3D12GraphicsCommandList6 * This,
  21802. _In_ UINT NumBarriers,
  21803. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  21804. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  21805. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  21806. ID3D12GraphicsCommandList6 * This,
  21807. _In_ ID3D12GraphicsCommandList *pCommandList);
  21808. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  21809. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  21810. ID3D12GraphicsCommandList6 * This,
  21811. _In_ UINT NumDescriptorHeaps,
  21812. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  21813. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  21814. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  21815. ID3D12GraphicsCommandList6 * This,
  21816. _In_opt_ ID3D12RootSignature *pRootSignature);
  21817. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  21818. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  21819. ID3D12GraphicsCommandList6 * This,
  21820. _In_opt_ ID3D12RootSignature *pRootSignature);
  21821. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  21822. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  21823. ID3D12GraphicsCommandList6 * This,
  21824. _In_ UINT RootParameterIndex,
  21825. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  21826. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  21827. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  21828. ID3D12GraphicsCommandList6 * This,
  21829. _In_ UINT RootParameterIndex,
  21830. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  21831. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  21832. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  21833. ID3D12GraphicsCommandList6 * This,
  21834. _In_ UINT RootParameterIndex,
  21835. _In_ UINT SrcData,
  21836. _In_ UINT DestOffsetIn32BitValues);
  21837. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  21838. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  21839. ID3D12GraphicsCommandList6 * This,
  21840. _In_ UINT RootParameterIndex,
  21841. _In_ UINT SrcData,
  21842. _In_ UINT DestOffsetIn32BitValues);
  21843. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  21844. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  21845. ID3D12GraphicsCommandList6 * This,
  21846. _In_ UINT RootParameterIndex,
  21847. _In_ UINT Num32BitValuesToSet,
  21848. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  21849. _In_ UINT DestOffsetIn32BitValues);
  21850. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  21851. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  21852. ID3D12GraphicsCommandList6 * This,
  21853. _In_ UINT RootParameterIndex,
  21854. _In_ UINT Num32BitValuesToSet,
  21855. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  21856. _In_ UINT DestOffsetIn32BitValues);
  21857. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  21858. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  21859. ID3D12GraphicsCommandList6 * This,
  21860. _In_ UINT RootParameterIndex,
  21861. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21862. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  21863. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  21864. ID3D12GraphicsCommandList6 * This,
  21865. _In_ UINT RootParameterIndex,
  21866. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21867. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  21868. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  21869. ID3D12GraphicsCommandList6 * This,
  21870. _In_ UINT RootParameterIndex,
  21871. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21872. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  21873. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  21874. ID3D12GraphicsCommandList6 * This,
  21875. _In_ UINT RootParameterIndex,
  21876. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21877. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  21878. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  21879. ID3D12GraphicsCommandList6 * This,
  21880. _In_ UINT RootParameterIndex,
  21881. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21882. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  21883. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  21884. ID3D12GraphicsCommandList6 * This,
  21885. _In_ UINT RootParameterIndex,
  21886. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  21887. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  21888. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  21889. ID3D12GraphicsCommandList6 * This,
  21890. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  21891. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  21892. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  21893. ID3D12GraphicsCommandList6 * This,
  21894. _In_ UINT StartSlot,
  21895. _In_ UINT NumViews,
  21896. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  21897. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  21898. void ( STDMETHODCALLTYPE *SOSetTargets )(
  21899. ID3D12GraphicsCommandList6 * This,
  21900. _In_ UINT StartSlot,
  21901. _In_ UINT NumViews,
  21902. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  21903. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  21904. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  21905. ID3D12GraphicsCommandList6 * This,
  21906. _In_ UINT NumRenderTargetDescriptors,
  21907. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  21908. _In_ BOOL RTsSingleHandleToDescriptorRange,
  21909. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  21910. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  21911. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  21912. ID3D12GraphicsCommandList6 * This,
  21913. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  21914. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  21915. _In_ FLOAT Depth,
  21916. _In_ UINT8 Stencil,
  21917. _In_ UINT NumRects,
  21918. _In_reads_(NumRects) const D3D12_RECT *pRects);
  21919. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  21920. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  21921. ID3D12GraphicsCommandList6 * This,
  21922. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  21923. _In_ const FLOAT ColorRGBA[ 4 ],
  21924. _In_ UINT NumRects,
  21925. _In_reads_(NumRects) const D3D12_RECT *pRects);
  21926. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  21927. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  21928. ID3D12GraphicsCommandList6 * This,
  21929. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  21930. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  21931. _In_ ID3D12Resource *pResource,
  21932. _In_ const UINT Values[ 4 ],
  21933. _In_ UINT NumRects,
  21934. _In_reads_(NumRects) const D3D12_RECT *pRects);
  21935. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  21936. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  21937. ID3D12GraphicsCommandList6 * This,
  21938. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  21939. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  21940. _In_ ID3D12Resource *pResource,
  21941. _In_ const FLOAT Values[ 4 ],
  21942. _In_ UINT NumRects,
  21943. _In_reads_(NumRects) const D3D12_RECT *pRects);
  21944. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  21945. void ( STDMETHODCALLTYPE *DiscardResource )(
  21946. ID3D12GraphicsCommandList6 * This,
  21947. _In_ ID3D12Resource *pResource,
  21948. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  21949. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  21950. void ( STDMETHODCALLTYPE *BeginQuery )(
  21951. ID3D12GraphicsCommandList6 * This,
  21952. _In_ ID3D12QueryHeap *pQueryHeap,
  21953. _In_ D3D12_QUERY_TYPE Type,
  21954. _In_ UINT Index);
  21955. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  21956. void ( STDMETHODCALLTYPE *EndQuery )(
  21957. ID3D12GraphicsCommandList6 * This,
  21958. _In_ ID3D12QueryHeap *pQueryHeap,
  21959. _In_ D3D12_QUERY_TYPE Type,
  21960. _In_ UINT Index);
  21961. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  21962. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  21963. ID3D12GraphicsCommandList6 * This,
  21964. _In_ ID3D12QueryHeap *pQueryHeap,
  21965. _In_ D3D12_QUERY_TYPE Type,
  21966. _In_ UINT StartIndex,
  21967. _In_ UINT NumQueries,
  21968. _In_ ID3D12Resource *pDestinationBuffer,
  21969. _In_ UINT64 AlignedDestinationBufferOffset);
  21970. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  21971. void ( STDMETHODCALLTYPE *SetPredication )(
  21972. ID3D12GraphicsCommandList6 * This,
  21973. _In_opt_ ID3D12Resource *pBuffer,
  21974. _In_ UINT64 AlignedBufferOffset,
  21975. _In_ D3D12_PREDICATION_OP Operation);
  21976. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  21977. void ( STDMETHODCALLTYPE *SetMarker )(
  21978. ID3D12GraphicsCommandList6 * This,
  21979. UINT Metadata,
  21980. _In_reads_bytes_opt_(Size) const void *pData,
  21981. UINT Size);
  21982. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  21983. void ( STDMETHODCALLTYPE *BeginEvent )(
  21984. ID3D12GraphicsCommandList6 * This,
  21985. UINT Metadata,
  21986. _In_reads_bytes_opt_(Size) const void *pData,
  21987. UINT Size);
  21988. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  21989. void ( STDMETHODCALLTYPE *EndEvent )(
  21990. ID3D12GraphicsCommandList6 * This);
  21991. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  21992. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  21993. ID3D12GraphicsCommandList6 * This,
  21994. _In_ ID3D12CommandSignature *pCommandSignature,
  21995. _In_ UINT MaxCommandCount,
  21996. _In_ ID3D12Resource *pArgumentBuffer,
  21997. _In_ UINT64 ArgumentBufferOffset,
  21998. _In_opt_ ID3D12Resource *pCountBuffer,
  21999. _In_ UINT64 CountBufferOffset);
  22000. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  22001. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  22002. ID3D12GraphicsCommandList6 * This,
  22003. _In_ ID3D12Resource *pDstBuffer,
  22004. UINT64 DstOffset,
  22005. _In_ ID3D12Resource *pSrcBuffer,
  22006. UINT64 SrcOffset,
  22007. UINT Dependencies,
  22008. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  22009. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  22010. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  22011. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  22012. ID3D12GraphicsCommandList6 * This,
  22013. _In_ ID3D12Resource *pDstBuffer,
  22014. UINT64 DstOffset,
  22015. _In_ ID3D12Resource *pSrcBuffer,
  22016. UINT64 SrcOffset,
  22017. UINT Dependencies,
  22018. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  22019. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  22020. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  22021. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  22022. ID3D12GraphicsCommandList6 * This,
  22023. _In_ FLOAT Min,
  22024. _In_ FLOAT Max);
  22025. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  22026. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  22027. ID3D12GraphicsCommandList6 * This,
  22028. _In_ UINT NumSamplesPerPixel,
  22029. _In_ UINT NumPixels,
  22030. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  22031. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  22032. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  22033. ID3D12GraphicsCommandList6 * This,
  22034. _In_ ID3D12Resource *pDstResource,
  22035. _In_ UINT DstSubresource,
  22036. _In_ UINT DstX,
  22037. _In_ UINT DstY,
  22038. _In_ ID3D12Resource *pSrcResource,
  22039. _In_ UINT SrcSubresource,
  22040. _In_opt_ D3D12_RECT *pSrcRect,
  22041. _In_ DXGI_FORMAT Format,
  22042. _In_ D3D12_RESOLVE_MODE ResolveMode);
  22043. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  22044. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  22045. ID3D12GraphicsCommandList6 * This,
  22046. _In_ UINT Mask);
  22047. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  22048. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  22049. ID3D12GraphicsCommandList6 * This,
  22050. UINT Count,
  22051. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  22052. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  22053. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  22054. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  22055. ID3D12GraphicsCommandList6 * This,
  22056. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  22057. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  22058. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  22059. ID3D12GraphicsCommandList6 * This,
  22060. _In_ UINT NumRenderTargets,
  22061. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  22062. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  22063. D3D12_RENDER_PASS_FLAGS Flags);
  22064. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  22065. void ( STDMETHODCALLTYPE *EndRenderPass )(
  22066. ID3D12GraphicsCommandList6 * This);
  22067. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  22068. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  22069. ID3D12GraphicsCommandList6 * This,
  22070. _In_ ID3D12MetaCommand *pMetaCommand,
  22071. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  22072. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  22073. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  22074. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  22075. ID3D12GraphicsCommandList6 * This,
  22076. _In_ ID3D12MetaCommand *pMetaCommand,
  22077. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  22078. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  22079. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  22080. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  22081. ID3D12GraphicsCommandList6 * This,
  22082. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  22083. _In_ UINT NumPostbuildInfoDescs,
  22084. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  22085. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  22086. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  22087. ID3D12GraphicsCommandList6 * This,
  22088. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  22089. _In_ UINT NumSourceAccelerationStructures,
  22090. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  22091. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  22092. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  22093. ID3D12GraphicsCommandList6 * This,
  22094. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  22095. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  22096. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  22097. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  22098. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  22099. ID3D12GraphicsCommandList6 * This,
  22100. _In_ ID3D12StateObject *pStateObject);
  22101. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  22102. void ( STDMETHODCALLTYPE *DispatchRays )(
  22103. ID3D12GraphicsCommandList6 * This,
  22104. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  22105. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  22106. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  22107. ID3D12GraphicsCommandList6 * This,
  22108. _In_ D3D12_SHADING_RATE baseShadingRate,
  22109. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  22110. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  22111. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  22112. ID3D12GraphicsCommandList6 * This,
  22113. _In_opt_ ID3D12Resource *shadingRateImage);
  22114. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  22115. void ( STDMETHODCALLTYPE *DispatchMesh )(
  22116. ID3D12GraphicsCommandList6 * This,
  22117. _In_ UINT ThreadGroupCountX,
  22118. _In_ UINT ThreadGroupCountY,
  22119. _In_ UINT ThreadGroupCountZ);
  22120. END_INTERFACE
  22121. } ID3D12GraphicsCommandList6Vtbl;
  22122. interface ID3D12GraphicsCommandList6
  22123. {
  22124. CONST_VTBL struct ID3D12GraphicsCommandList6Vtbl *lpVtbl;
  22125. };
  22126. #ifdef COBJMACROS
  22127. #define ID3D12GraphicsCommandList6_QueryInterface(This,riid,ppvObject) \
  22128. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22129. #define ID3D12GraphicsCommandList6_AddRef(This) \
  22130. ( (This)->lpVtbl -> AddRef(This) )
  22131. #define ID3D12GraphicsCommandList6_Release(This) \
  22132. ( (This)->lpVtbl -> Release(This) )
  22133. #define ID3D12GraphicsCommandList6_GetPrivateData(This,guid,pDataSize,pData) \
  22134. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  22135. #define ID3D12GraphicsCommandList6_SetPrivateData(This,guid,DataSize,pData) \
  22136. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  22137. #define ID3D12GraphicsCommandList6_SetPrivateDataInterface(This,guid,pData) \
  22138. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  22139. #define ID3D12GraphicsCommandList6_SetName(This,Name) \
  22140. ( (This)->lpVtbl -> SetName(This,Name) )
  22141. #define ID3D12GraphicsCommandList6_GetDevice(This,riid,ppvDevice) \
  22142. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  22143. #define ID3D12GraphicsCommandList6_GetType(This) \
  22144. ( (This)->lpVtbl -> GetType(This) )
  22145. #define ID3D12GraphicsCommandList6_Close(This) \
  22146. ( (This)->lpVtbl -> Close(This) )
  22147. #define ID3D12GraphicsCommandList6_Reset(This,pAllocator,pInitialState) \
  22148. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  22149. #define ID3D12GraphicsCommandList6_ClearState(This,pPipelineState) \
  22150. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  22151. #define ID3D12GraphicsCommandList6_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  22152. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  22153. #define ID3D12GraphicsCommandList6_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  22154. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  22155. #define ID3D12GraphicsCommandList6_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  22156. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  22157. #define ID3D12GraphicsCommandList6_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  22158. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  22159. #define ID3D12GraphicsCommandList6_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  22160. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  22161. #define ID3D12GraphicsCommandList6_CopyResource(This,pDstResource,pSrcResource) \
  22162. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  22163. #define ID3D12GraphicsCommandList6_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  22164. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  22165. #define ID3D12GraphicsCommandList6_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  22166. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  22167. #define ID3D12GraphicsCommandList6_IASetPrimitiveTopology(This,PrimitiveTopology) \
  22168. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  22169. #define ID3D12GraphicsCommandList6_RSSetViewports(This,NumViewports,pViewports) \
  22170. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  22171. #define ID3D12GraphicsCommandList6_RSSetScissorRects(This,NumRects,pRects) \
  22172. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  22173. #define ID3D12GraphicsCommandList6_OMSetBlendFactor(This,BlendFactor) \
  22174. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  22175. #define ID3D12GraphicsCommandList6_OMSetStencilRef(This,StencilRef) \
  22176. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  22177. #define ID3D12GraphicsCommandList6_SetPipelineState(This,pPipelineState) \
  22178. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  22179. #define ID3D12GraphicsCommandList6_ResourceBarrier(This,NumBarriers,pBarriers) \
  22180. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  22181. #define ID3D12GraphicsCommandList6_ExecuteBundle(This,pCommandList) \
  22182. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  22183. #define ID3D12GraphicsCommandList6_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  22184. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  22185. #define ID3D12GraphicsCommandList6_SetComputeRootSignature(This,pRootSignature) \
  22186. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  22187. #define ID3D12GraphicsCommandList6_SetGraphicsRootSignature(This,pRootSignature) \
  22188. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  22189. #define ID3D12GraphicsCommandList6_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  22190. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  22191. #define ID3D12GraphicsCommandList6_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  22192. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  22193. #define ID3D12GraphicsCommandList6_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  22194. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  22195. #define ID3D12GraphicsCommandList6_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  22196. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  22197. #define ID3D12GraphicsCommandList6_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  22198. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  22199. #define ID3D12GraphicsCommandList6_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  22200. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  22201. #define ID3D12GraphicsCommandList6_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  22202. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  22203. #define ID3D12GraphicsCommandList6_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  22204. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  22205. #define ID3D12GraphicsCommandList6_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  22206. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  22207. #define ID3D12GraphicsCommandList6_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  22208. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  22209. #define ID3D12GraphicsCommandList6_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  22210. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  22211. #define ID3D12GraphicsCommandList6_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  22212. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  22213. #define ID3D12GraphicsCommandList6_IASetIndexBuffer(This,pView) \
  22214. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  22215. #define ID3D12GraphicsCommandList6_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  22216. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  22217. #define ID3D12GraphicsCommandList6_SOSetTargets(This,StartSlot,NumViews,pViews) \
  22218. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  22219. #define ID3D12GraphicsCommandList6_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  22220. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  22221. #define ID3D12GraphicsCommandList6_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  22222. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  22223. #define ID3D12GraphicsCommandList6_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  22224. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  22225. #define ID3D12GraphicsCommandList6_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  22226. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  22227. #define ID3D12GraphicsCommandList6_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  22228. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  22229. #define ID3D12GraphicsCommandList6_DiscardResource(This,pResource,pRegion) \
  22230. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  22231. #define ID3D12GraphicsCommandList6_BeginQuery(This,pQueryHeap,Type,Index) \
  22232. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  22233. #define ID3D12GraphicsCommandList6_EndQuery(This,pQueryHeap,Type,Index) \
  22234. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  22235. #define ID3D12GraphicsCommandList6_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  22236. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  22237. #define ID3D12GraphicsCommandList6_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  22238. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  22239. #define ID3D12GraphicsCommandList6_SetMarker(This,Metadata,pData,Size) \
  22240. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  22241. #define ID3D12GraphicsCommandList6_BeginEvent(This,Metadata,pData,Size) \
  22242. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  22243. #define ID3D12GraphicsCommandList6_EndEvent(This) \
  22244. ( (This)->lpVtbl -> EndEvent(This) )
  22245. #define ID3D12GraphicsCommandList6_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  22246. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  22247. #define ID3D12GraphicsCommandList6_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  22248. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  22249. #define ID3D12GraphicsCommandList6_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  22250. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  22251. #define ID3D12GraphicsCommandList6_OMSetDepthBounds(This,Min,Max) \
  22252. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  22253. #define ID3D12GraphicsCommandList6_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  22254. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  22255. #define ID3D12GraphicsCommandList6_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  22256. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  22257. #define ID3D12GraphicsCommandList6_SetViewInstanceMask(This,Mask) \
  22258. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  22259. #define ID3D12GraphicsCommandList6_WriteBufferImmediate(This,Count,pParams,pModes) \
  22260. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  22261. #define ID3D12GraphicsCommandList6_SetProtectedResourceSession(This,pProtectedResourceSession) \
  22262. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  22263. #define ID3D12GraphicsCommandList6_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  22264. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  22265. #define ID3D12GraphicsCommandList6_EndRenderPass(This) \
  22266. ( (This)->lpVtbl -> EndRenderPass(This) )
  22267. #define ID3D12GraphicsCommandList6_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  22268. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  22269. #define ID3D12GraphicsCommandList6_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  22270. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  22271. #define ID3D12GraphicsCommandList6_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  22272. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  22273. #define ID3D12GraphicsCommandList6_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  22274. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  22275. #define ID3D12GraphicsCommandList6_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  22276. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  22277. #define ID3D12GraphicsCommandList6_SetPipelineState1(This,pStateObject) \
  22278. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  22279. #define ID3D12GraphicsCommandList6_DispatchRays(This,pDesc) \
  22280. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  22281. #define ID3D12GraphicsCommandList6_RSSetShadingRate(This,baseShadingRate,combiners) \
  22282. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  22283. #define ID3D12GraphicsCommandList6_RSSetShadingRateImage(This,shadingRateImage) \
  22284. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  22285. #define ID3D12GraphicsCommandList6_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  22286. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  22287. #endif /* COBJMACROS */
  22288. #endif /* C style interface */
  22289. #endif /* __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__ */
  22290. #ifndef __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__
  22291. #define __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__
  22292. /* interface ID3D12GraphicsCommandList7 */
  22293. /* [unique][local][object][uuid] */
  22294. EXTERN_C const IID IID_ID3D12GraphicsCommandList7;
  22295. #if defined(__cplusplus) && !defined(CINTERFACE)
  22296. MIDL_INTERFACE("dd171223-8b61-4769-90e3-160ccde4e2c1")
  22297. ID3D12GraphicsCommandList7 : public ID3D12GraphicsCommandList6
  22298. {
  22299. public:
  22300. virtual void STDMETHODCALLTYPE Barrier(
  22301. UINT32 NumBarrierGroups,
  22302. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups) = 0;
  22303. };
  22304. #else /* C style interface */
  22305. typedef struct ID3D12GraphicsCommandList7Vtbl
  22306. {
  22307. BEGIN_INTERFACE
  22308. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22309. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22310. ID3D12GraphicsCommandList7 * This,
  22311. REFIID riid,
  22312. _COM_Outptr_ void **ppvObject);
  22313. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22314. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22315. ID3D12GraphicsCommandList7 * This);
  22316. DECLSPEC_XFGVIRT(IUnknown, Release)
  22317. ULONG ( STDMETHODCALLTYPE *Release )(
  22318. ID3D12GraphicsCommandList7 * This);
  22319. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  22320. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  22321. ID3D12GraphicsCommandList7 * This,
  22322. _In_ REFGUID guid,
  22323. _Inout_ UINT *pDataSize,
  22324. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  22325. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  22326. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  22327. ID3D12GraphicsCommandList7 * This,
  22328. _In_ REFGUID guid,
  22329. _In_ UINT DataSize,
  22330. _In_reads_bytes_opt_( DataSize ) const void *pData);
  22331. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  22332. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  22333. ID3D12GraphicsCommandList7 * This,
  22334. _In_ REFGUID guid,
  22335. _In_opt_ const IUnknown *pData);
  22336. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  22337. HRESULT ( STDMETHODCALLTYPE *SetName )(
  22338. ID3D12GraphicsCommandList7 * This,
  22339. _In_z_ LPCWSTR Name);
  22340. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  22341. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  22342. ID3D12GraphicsCommandList7 * This,
  22343. REFIID riid,
  22344. _COM_Outptr_opt_ void **ppvDevice);
  22345. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  22346. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  22347. ID3D12GraphicsCommandList7 * This);
  22348. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  22349. HRESULT ( STDMETHODCALLTYPE *Close )(
  22350. ID3D12GraphicsCommandList7 * This);
  22351. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  22352. HRESULT ( STDMETHODCALLTYPE *Reset )(
  22353. ID3D12GraphicsCommandList7 * This,
  22354. _In_ ID3D12CommandAllocator *pAllocator,
  22355. _In_opt_ ID3D12PipelineState *pInitialState);
  22356. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  22357. void ( STDMETHODCALLTYPE *ClearState )(
  22358. ID3D12GraphicsCommandList7 * This,
  22359. _In_opt_ ID3D12PipelineState *pPipelineState);
  22360. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  22361. void ( STDMETHODCALLTYPE *DrawInstanced )(
  22362. ID3D12GraphicsCommandList7 * This,
  22363. _In_ UINT VertexCountPerInstance,
  22364. _In_ UINT InstanceCount,
  22365. _In_ UINT StartVertexLocation,
  22366. _In_ UINT StartInstanceLocation);
  22367. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  22368. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  22369. ID3D12GraphicsCommandList7 * This,
  22370. _In_ UINT IndexCountPerInstance,
  22371. _In_ UINT InstanceCount,
  22372. _In_ UINT StartIndexLocation,
  22373. _In_ INT BaseVertexLocation,
  22374. _In_ UINT StartInstanceLocation);
  22375. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  22376. void ( STDMETHODCALLTYPE *Dispatch )(
  22377. ID3D12GraphicsCommandList7 * This,
  22378. _In_ UINT ThreadGroupCountX,
  22379. _In_ UINT ThreadGroupCountY,
  22380. _In_ UINT ThreadGroupCountZ);
  22381. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  22382. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  22383. ID3D12GraphicsCommandList7 * This,
  22384. _In_ ID3D12Resource *pDstBuffer,
  22385. UINT64 DstOffset,
  22386. _In_ ID3D12Resource *pSrcBuffer,
  22387. UINT64 SrcOffset,
  22388. UINT64 NumBytes);
  22389. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  22390. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  22391. ID3D12GraphicsCommandList7 * This,
  22392. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  22393. UINT DstX,
  22394. UINT DstY,
  22395. UINT DstZ,
  22396. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  22397. _In_opt_ const D3D12_BOX *pSrcBox);
  22398. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  22399. void ( STDMETHODCALLTYPE *CopyResource )(
  22400. ID3D12GraphicsCommandList7 * This,
  22401. _In_ ID3D12Resource *pDstResource,
  22402. _In_ ID3D12Resource *pSrcResource);
  22403. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  22404. void ( STDMETHODCALLTYPE *CopyTiles )(
  22405. ID3D12GraphicsCommandList7 * This,
  22406. _In_ ID3D12Resource *pTiledResource,
  22407. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  22408. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  22409. _In_ ID3D12Resource *pBuffer,
  22410. UINT64 BufferStartOffsetInBytes,
  22411. D3D12_TILE_COPY_FLAGS Flags);
  22412. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  22413. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  22414. ID3D12GraphicsCommandList7 * This,
  22415. _In_ ID3D12Resource *pDstResource,
  22416. _In_ UINT DstSubresource,
  22417. _In_ ID3D12Resource *pSrcResource,
  22418. _In_ UINT SrcSubresource,
  22419. _In_ DXGI_FORMAT Format);
  22420. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  22421. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  22422. ID3D12GraphicsCommandList7 * This,
  22423. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  22424. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  22425. void ( STDMETHODCALLTYPE *RSSetViewports )(
  22426. ID3D12GraphicsCommandList7 * This,
  22427. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  22428. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  22429. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  22430. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  22431. ID3D12GraphicsCommandList7 * This,
  22432. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  22433. _In_reads_( NumRects) const D3D12_RECT *pRects);
  22434. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  22435. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  22436. ID3D12GraphicsCommandList7 * This,
  22437. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  22438. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  22439. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  22440. ID3D12GraphicsCommandList7 * This,
  22441. _In_ UINT StencilRef);
  22442. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  22443. void ( STDMETHODCALLTYPE *SetPipelineState )(
  22444. ID3D12GraphicsCommandList7 * This,
  22445. _In_ ID3D12PipelineState *pPipelineState);
  22446. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  22447. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  22448. ID3D12GraphicsCommandList7 * This,
  22449. _In_ UINT NumBarriers,
  22450. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  22451. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  22452. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  22453. ID3D12GraphicsCommandList7 * This,
  22454. _In_ ID3D12GraphicsCommandList *pCommandList);
  22455. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  22456. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  22457. ID3D12GraphicsCommandList7 * This,
  22458. _In_ UINT NumDescriptorHeaps,
  22459. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  22460. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  22461. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  22462. ID3D12GraphicsCommandList7 * This,
  22463. _In_opt_ ID3D12RootSignature *pRootSignature);
  22464. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  22465. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  22466. ID3D12GraphicsCommandList7 * This,
  22467. _In_opt_ ID3D12RootSignature *pRootSignature);
  22468. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  22469. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  22470. ID3D12GraphicsCommandList7 * This,
  22471. _In_ UINT RootParameterIndex,
  22472. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  22473. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  22474. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  22475. ID3D12GraphicsCommandList7 * This,
  22476. _In_ UINT RootParameterIndex,
  22477. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  22478. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  22479. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  22480. ID3D12GraphicsCommandList7 * This,
  22481. _In_ UINT RootParameterIndex,
  22482. _In_ UINT SrcData,
  22483. _In_ UINT DestOffsetIn32BitValues);
  22484. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  22485. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  22486. ID3D12GraphicsCommandList7 * This,
  22487. _In_ UINT RootParameterIndex,
  22488. _In_ UINT SrcData,
  22489. _In_ UINT DestOffsetIn32BitValues);
  22490. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  22491. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  22492. ID3D12GraphicsCommandList7 * This,
  22493. _In_ UINT RootParameterIndex,
  22494. _In_ UINT Num32BitValuesToSet,
  22495. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  22496. _In_ UINT DestOffsetIn32BitValues);
  22497. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  22498. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  22499. ID3D12GraphicsCommandList7 * This,
  22500. _In_ UINT RootParameterIndex,
  22501. _In_ UINT Num32BitValuesToSet,
  22502. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  22503. _In_ UINT DestOffsetIn32BitValues);
  22504. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  22505. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  22506. ID3D12GraphicsCommandList7 * This,
  22507. _In_ UINT RootParameterIndex,
  22508. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22509. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  22510. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  22511. ID3D12GraphicsCommandList7 * This,
  22512. _In_ UINT RootParameterIndex,
  22513. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22514. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  22515. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  22516. ID3D12GraphicsCommandList7 * This,
  22517. _In_ UINT RootParameterIndex,
  22518. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22519. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  22520. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  22521. ID3D12GraphicsCommandList7 * This,
  22522. _In_ UINT RootParameterIndex,
  22523. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22524. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  22525. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  22526. ID3D12GraphicsCommandList7 * This,
  22527. _In_ UINT RootParameterIndex,
  22528. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22529. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  22530. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  22531. ID3D12GraphicsCommandList7 * This,
  22532. _In_ UINT RootParameterIndex,
  22533. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  22534. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  22535. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  22536. ID3D12GraphicsCommandList7 * This,
  22537. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  22538. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  22539. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  22540. ID3D12GraphicsCommandList7 * This,
  22541. _In_ UINT StartSlot,
  22542. _In_ UINT NumViews,
  22543. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  22544. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  22545. void ( STDMETHODCALLTYPE *SOSetTargets )(
  22546. ID3D12GraphicsCommandList7 * This,
  22547. _In_ UINT StartSlot,
  22548. _In_ UINT NumViews,
  22549. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  22550. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  22551. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  22552. ID3D12GraphicsCommandList7 * This,
  22553. _In_ UINT NumRenderTargetDescriptors,
  22554. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  22555. _In_ BOOL RTsSingleHandleToDescriptorRange,
  22556. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  22557. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  22558. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  22559. ID3D12GraphicsCommandList7 * This,
  22560. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  22561. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  22562. _In_ FLOAT Depth,
  22563. _In_ UINT8 Stencil,
  22564. _In_ UINT NumRects,
  22565. _In_reads_(NumRects) const D3D12_RECT *pRects);
  22566. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  22567. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  22568. ID3D12GraphicsCommandList7 * This,
  22569. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  22570. _In_ const FLOAT ColorRGBA[ 4 ],
  22571. _In_ UINT NumRects,
  22572. _In_reads_(NumRects) const D3D12_RECT *pRects);
  22573. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  22574. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  22575. ID3D12GraphicsCommandList7 * This,
  22576. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  22577. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  22578. _In_ ID3D12Resource *pResource,
  22579. _In_ const UINT Values[ 4 ],
  22580. _In_ UINT NumRects,
  22581. _In_reads_(NumRects) const D3D12_RECT *pRects);
  22582. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  22583. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  22584. ID3D12GraphicsCommandList7 * This,
  22585. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  22586. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  22587. _In_ ID3D12Resource *pResource,
  22588. _In_ const FLOAT Values[ 4 ],
  22589. _In_ UINT NumRects,
  22590. _In_reads_(NumRects) const D3D12_RECT *pRects);
  22591. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  22592. void ( STDMETHODCALLTYPE *DiscardResource )(
  22593. ID3D12GraphicsCommandList7 * This,
  22594. _In_ ID3D12Resource *pResource,
  22595. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  22596. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  22597. void ( STDMETHODCALLTYPE *BeginQuery )(
  22598. ID3D12GraphicsCommandList7 * This,
  22599. _In_ ID3D12QueryHeap *pQueryHeap,
  22600. _In_ D3D12_QUERY_TYPE Type,
  22601. _In_ UINT Index);
  22602. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  22603. void ( STDMETHODCALLTYPE *EndQuery )(
  22604. ID3D12GraphicsCommandList7 * This,
  22605. _In_ ID3D12QueryHeap *pQueryHeap,
  22606. _In_ D3D12_QUERY_TYPE Type,
  22607. _In_ UINT Index);
  22608. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  22609. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  22610. ID3D12GraphicsCommandList7 * This,
  22611. _In_ ID3D12QueryHeap *pQueryHeap,
  22612. _In_ D3D12_QUERY_TYPE Type,
  22613. _In_ UINT StartIndex,
  22614. _In_ UINT NumQueries,
  22615. _In_ ID3D12Resource *pDestinationBuffer,
  22616. _In_ UINT64 AlignedDestinationBufferOffset);
  22617. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  22618. void ( STDMETHODCALLTYPE *SetPredication )(
  22619. ID3D12GraphicsCommandList7 * This,
  22620. _In_opt_ ID3D12Resource *pBuffer,
  22621. _In_ UINT64 AlignedBufferOffset,
  22622. _In_ D3D12_PREDICATION_OP Operation);
  22623. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  22624. void ( STDMETHODCALLTYPE *SetMarker )(
  22625. ID3D12GraphicsCommandList7 * This,
  22626. UINT Metadata,
  22627. _In_reads_bytes_opt_(Size) const void *pData,
  22628. UINT Size);
  22629. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  22630. void ( STDMETHODCALLTYPE *BeginEvent )(
  22631. ID3D12GraphicsCommandList7 * This,
  22632. UINT Metadata,
  22633. _In_reads_bytes_opt_(Size) const void *pData,
  22634. UINT Size);
  22635. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  22636. void ( STDMETHODCALLTYPE *EndEvent )(
  22637. ID3D12GraphicsCommandList7 * This);
  22638. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  22639. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  22640. ID3D12GraphicsCommandList7 * This,
  22641. _In_ ID3D12CommandSignature *pCommandSignature,
  22642. _In_ UINT MaxCommandCount,
  22643. _In_ ID3D12Resource *pArgumentBuffer,
  22644. _In_ UINT64 ArgumentBufferOffset,
  22645. _In_opt_ ID3D12Resource *pCountBuffer,
  22646. _In_ UINT64 CountBufferOffset);
  22647. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  22648. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  22649. ID3D12GraphicsCommandList7 * This,
  22650. _In_ ID3D12Resource *pDstBuffer,
  22651. UINT64 DstOffset,
  22652. _In_ ID3D12Resource *pSrcBuffer,
  22653. UINT64 SrcOffset,
  22654. UINT Dependencies,
  22655. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  22656. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  22657. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  22658. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  22659. ID3D12GraphicsCommandList7 * This,
  22660. _In_ ID3D12Resource *pDstBuffer,
  22661. UINT64 DstOffset,
  22662. _In_ ID3D12Resource *pSrcBuffer,
  22663. UINT64 SrcOffset,
  22664. UINT Dependencies,
  22665. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  22666. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  22667. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  22668. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  22669. ID3D12GraphicsCommandList7 * This,
  22670. _In_ FLOAT Min,
  22671. _In_ FLOAT Max);
  22672. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  22673. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  22674. ID3D12GraphicsCommandList7 * This,
  22675. _In_ UINT NumSamplesPerPixel,
  22676. _In_ UINT NumPixels,
  22677. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  22678. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  22679. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  22680. ID3D12GraphicsCommandList7 * This,
  22681. _In_ ID3D12Resource *pDstResource,
  22682. _In_ UINT DstSubresource,
  22683. _In_ UINT DstX,
  22684. _In_ UINT DstY,
  22685. _In_ ID3D12Resource *pSrcResource,
  22686. _In_ UINT SrcSubresource,
  22687. _In_opt_ D3D12_RECT *pSrcRect,
  22688. _In_ DXGI_FORMAT Format,
  22689. _In_ D3D12_RESOLVE_MODE ResolveMode);
  22690. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  22691. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  22692. ID3D12GraphicsCommandList7 * This,
  22693. _In_ UINT Mask);
  22694. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  22695. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  22696. ID3D12GraphicsCommandList7 * This,
  22697. UINT Count,
  22698. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  22699. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  22700. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  22701. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  22702. ID3D12GraphicsCommandList7 * This,
  22703. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  22704. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  22705. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  22706. ID3D12GraphicsCommandList7 * This,
  22707. _In_ UINT NumRenderTargets,
  22708. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  22709. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  22710. D3D12_RENDER_PASS_FLAGS Flags);
  22711. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  22712. void ( STDMETHODCALLTYPE *EndRenderPass )(
  22713. ID3D12GraphicsCommandList7 * This);
  22714. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  22715. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  22716. ID3D12GraphicsCommandList7 * This,
  22717. _In_ ID3D12MetaCommand *pMetaCommand,
  22718. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  22719. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  22720. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  22721. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  22722. ID3D12GraphicsCommandList7 * This,
  22723. _In_ ID3D12MetaCommand *pMetaCommand,
  22724. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  22725. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  22726. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  22727. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  22728. ID3D12GraphicsCommandList7 * This,
  22729. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  22730. _In_ UINT NumPostbuildInfoDescs,
  22731. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  22732. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  22733. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  22734. ID3D12GraphicsCommandList7 * This,
  22735. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  22736. _In_ UINT NumSourceAccelerationStructures,
  22737. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  22738. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  22739. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  22740. ID3D12GraphicsCommandList7 * This,
  22741. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  22742. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  22743. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  22744. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  22745. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  22746. ID3D12GraphicsCommandList7 * This,
  22747. _In_ ID3D12StateObject *pStateObject);
  22748. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  22749. void ( STDMETHODCALLTYPE *DispatchRays )(
  22750. ID3D12GraphicsCommandList7 * This,
  22751. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  22752. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  22753. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  22754. ID3D12GraphicsCommandList7 * This,
  22755. _In_ D3D12_SHADING_RATE baseShadingRate,
  22756. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  22757. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  22758. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  22759. ID3D12GraphicsCommandList7 * This,
  22760. _In_opt_ ID3D12Resource *shadingRateImage);
  22761. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  22762. void ( STDMETHODCALLTYPE *DispatchMesh )(
  22763. ID3D12GraphicsCommandList7 * This,
  22764. _In_ UINT ThreadGroupCountX,
  22765. _In_ UINT ThreadGroupCountY,
  22766. _In_ UINT ThreadGroupCountZ);
  22767. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  22768. void ( STDMETHODCALLTYPE *Barrier )(
  22769. ID3D12GraphicsCommandList7 * This,
  22770. UINT32 NumBarrierGroups,
  22771. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  22772. END_INTERFACE
  22773. } ID3D12GraphicsCommandList7Vtbl;
  22774. interface ID3D12GraphicsCommandList7
  22775. {
  22776. CONST_VTBL struct ID3D12GraphicsCommandList7Vtbl *lpVtbl;
  22777. };
  22778. #ifdef COBJMACROS
  22779. #define ID3D12GraphicsCommandList7_QueryInterface(This,riid,ppvObject) \
  22780. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  22781. #define ID3D12GraphicsCommandList7_AddRef(This) \
  22782. ( (This)->lpVtbl -> AddRef(This) )
  22783. #define ID3D12GraphicsCommandList7_Release(This) \
  22784. ( (This)->lpVtbl -> Release(This) )
  22785. #define ID3D12GraphicsCommandList7_GetPrivateData(This,guid,pDataSize,pData) \
  22786. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  22787. #define ID3D12GraphicsCommandList7_SetPrivateData(This,guid,DataSize,pData) \
  22788. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  22789. #define ID3D12GraphicsCommandList7_SetPrivateDataInterface(This,guid,pData) \
  22790. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  22791. #define ID3D12GraphicsCommandList7_SetName(This,Name) \
  22792. ( (This)->lpVtbl -> SetName(This,Name) )
  22793. #define ID3D12GraphicsCommandList7_GetDevice(This,riid,ppvDevice) \
  22794. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  22795. #define ID3D12GraphicsCommandList7_GetType(This) \
  22796. ( (This)->lpVtbl -> GetType(This) )
  22797. #define ID3D12GraphicsCommandList7_Close(This) \
  22798. ( (This)->lpVtbl -> Close(This) )
  22799. #define ID3D12GraphicsCommandList7_Reset(This,pAllocator,pInitialState) \
  22800. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  22801. #define ID3D12GraphicsCommandList7_ClearState(This,pPipelineState) \
  22802. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  22803. #define ID3D12GraphicsCommandList7_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  22804. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  22805. #define ID3D12GraphicsCommandList7_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  22806. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  22807. #define ID3D12GraphicsCommandList7_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  22808. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  22809. #define ID3D12GraphicsCommandList7_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  22810. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  22811. #define ID3D12GraphicsCommandList7_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  22812. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  22813. #define ID3D12GraphicsCommandList7_CopyResource(This,pDstResource,pSrcResource) \
  22814. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  22815. #define ID3D12GraphicsCommandList7_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  22816. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  22817. #define ID3D12GraphicsCommandList7_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  22818. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  22819. #define ID3D12GraphicsCommandList7_IASetPrimitiveTopology(This,PrimitiveTopology) \
  22820. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  22821. #define ID3D12GraphicsCommandList7_RSSetViewports(This,NumViewports,pViewports) \
  22822. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  22823. #define ID3D12GraphicsCommandList7_RSSetScissorRects(This,NumRects,pRects) \
  22824. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  22825. #define ID3D12GraphicsCommandList7_OMSetBlendFactor(This,BlendFactor) \
  22826. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  22827. #define ID3D12GraphicsCommandList7_OMSetStencilRef(This,StencilRef) \
  22828. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  22829. #define ID3D12GraphicsCommandList7_SetPipelineState(This,pPipelineState) \
  22830. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  22831. #define ID3D12GraphicsCommandList7_ResourceBarrier(This,NumBarriers,pBarriers) \
  22832. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  22833. #define ID3D12GraphicsCommandList7_ExecuteBundle(This,pCommandList) \
  22834. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  22835. #define ID3D12GraphicsCommandList7_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  22836. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  22837. #define ID3D12GraphicsCommandList7_SetComputeRootSignature(This,pRootSignature) \
  22838. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  22839. #define ID3D12GraphicsCommandList7_SetGraphicsRootSignature(This,pRootSignature) \
  22840. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  22841. #define ID3D12GraphicsCommandList7_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  22842. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  22843. #define ID3D12GraphicsCommandList7_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  22844. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  22845. #define ID3D12GraphicsCommandList7_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  22846. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  22847. #define ID3D12GraphicsCommandList7_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  22848. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  22849. #define ID3D12GraphicsCommandList7_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  22850. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  22851. #define ID3D12GraphicsCommandList7_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  22852. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  22853. #define ID3D12GraphicsCommandList7_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  22854. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  22855. #define ID3D12GraphicsCommandList7_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  22856. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  22857. #define ID3D12GraphicsCommandList7_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  22858. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  22859. #define ID3D12GraphicsCommandList7_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  22860. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  22861. #define ID3D12GraphicsCommandList7_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  22862. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  22863. #define ID3D12GraphicsCommandList7_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  22864. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  22865. #define ID3D12GraphicsCommandList7_IASetIndexBuffer(This,pView) \
  22866. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  22867. #define ID3D12GraphicsCommandList7_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  22868. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  22869. #define ID3D12GraphicsCommandList7_SOSetTargets(This,StartSlot,NumViews,pViews) \
  22870. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  22871. #define ID3D12GraphicsCommandList7_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  22872. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  22873. #define ID3D12GraphicsCommandList7_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  22874. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  22875. #define ID3D12GraphicsCommandList7_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  22876. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  22877. #define ID3D12GraphicsCommandList7_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  22878. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  22879. #define ID3D12GraphicsCommandList7_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  22880. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  22881. #define ID3D12GraphicsCommandList7_DiscardResource(This,pResource,pRegion) \
  22882. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  22883. #define ID3D12GraphicsCommandList7_BeginQuery(This,pQueryHeap,Type,Index) \
  22884. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  22885. #define ID3D12GraphicsCommandList7_EndQuery(This,pQueryHeap,Type,Index) \
  22886. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  22887. #define ID3D12GraphicsCommandList7_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  22888. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  22889. #define ID3D12GraphicsCommandList7_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  22890. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  22891. #define ID3D12GraphicsCommandList7_SetMarker(This,Metadata,pData,Size) \
  22892. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  22893. #define ID3D12GraphicsCommandList7_BeginEvent(This,Metadata,pData,Size) \
  22894. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  22895. #define ID3D12GraphicsCommandList7_EndEvent(This) \
  22896. ( (This)->lpVtbl -> EndEvent(This) )
  22897. #define ID3D12GraphicsCommandList7_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  22898. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  22899. #define ID3D12GraphicsCommandList7_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  22900. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  22901. #define ID3D12GraphicsCommandList7_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  22902. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  22903. #define ID3D12GraphicsCommandList7_OMSetDepthBounds(This,Min,Max) \
  22904. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  22905. #define ID3D12GraphicsCommandList7_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  22906. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  22907. #define ID3D12GraphicsCommandList7_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  22908. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  22909. #define ID3D12GraphicsCommandList7_SetViewInstanceMask(This,Mask) \
  22910. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  22911. #define ID3D12GraphicsCommandList7_WriteBufferImmediate(This,Count,pParams,pModes) \
  22912. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  22913. #define ID3D12GraphicsCommandList7_SetProtectedResourceSession(This,pProtectedResourceSession) \
  22914. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  22915. #define ID3D12GraphicsCommandList7_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  22916. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  22917. #define ID3D12GraphicsCommandList7_EndRenderPass(This) \
  22918. ( (This)->lpVtbl -> EndRenderPass(This) )
  22919. #define ID3D12GraphicsCommandList7_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  22920. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  22921. #define ID3D12GraphicsCommandList7_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  22922. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  22923. #define ID3D12GraphicsCommandList7_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  22924. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  22925. #define ID3D12GraphicsCommandList7_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  22926. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  22927. #define ID3D12GraphicsCommandList7_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  22928. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  22929. #define ID3D12GraphicsCommandList7_SetPipelineState1(This,pStateObject) \
  22930. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  22931. #define ID3D12GraphicsCommandList7_DispatchRays(This,pDesc) \
  22932. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  22933. #define ID3D12GraphicsCommandList7_RSSetShadingRate(This,baseShadingRate,combiners) \
  22934. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  22935. #define ID3D12GraphicsCommandList7_RSSetShadingRateImage(This,shadingRateImage) \
  22936. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  22937. #define ID3D12GraphicsCommandList7_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  22938. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  22939. #define ID3D12GraphicsCommandList7_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  22940. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  22941. #endif /* COBJMACROS */
  22942. #endif /* C style interface */
  22943. #endif /* __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__ */
  22944. #ifndef __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__
  22945. #define __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__
  22946. /* interface ID3D12GraphicsCommandList8 */
  22947. /* [unique][local][object][uuid] */
  22948. EXTERN_C const IID IID_ID3D12GraphicsCommandList8;
  22949. #if defined(__cplusplus) && !defined(CINTERFACE)
  22950. MIDL_INTERFACE("ee936ef9-599d-4d28-938e-23c4ad05ce51")
  22951. ID3D12GraphicsCommandList8 : public ID3D12GraphicsCommandList7
  22952. {
  22953. public:
  22954. virtual void STDMETHODCALLTYPE OMSetFrontAndBackStencilRef(
  22955. _In_ UINT FrontStencilRef,
  22956. _In_ UINT BackStencilRef) = 0;
  22957. };
  22958. #else /* C style interface */
  22959. typedef struct ID3D12GraphicsCommandList8Vtbl
  22960. {
  22961. BEGIN_INTERFACE
  22962. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  22963. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  22964. ID3D12GraphicsCommandList8 * This,
  22965. REFIID riid,
  22966. _COM_Outptr_ void **ppvObject);
  22967. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  22968. ULONG ( STDMETHODCALLTYPE *AddRef )(
  22969. ID3D12GraphicsCommandList8 * This);
  22970. DECLSPEC_XFGVIRT(IUnknown, Release)
  22971. ULONG ( STDMETHODCALLTYPE *Release )(
  22972. ID3D12GraphicsCommandList8 * This);
  22973. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  22974. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  22975. ID3D12GraphicsCommandList8 * This,
  22976. _In_ REFGUID guid,
  22977. _Inout_ UINT *pDataSize,
  22978. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  22979. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  22980. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  22981. ID3D12GraphicsCommandList8 * This,
  22982. _In_ REFGUID guid,
  22983. _In_ UINT DataSize,
  22984. _In_reads_bytes_opt_( DataSize ) const void *pData);
  22985. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  22986. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  22987. ID3D12GraphicsCommandList8 * This,
  22988. _In_ REFGUID guid,
  22989. _In_opt_ const IUnknown *pData);
  22990. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  22991. HRESULT ( STDMETHODCALLTYPE *SetName )(
  22992. ID3D12GraphicsCommandList8 * This,
  22993. _In_z_ LPCWSTR Name);
  22994. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  22995. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  22996. ID3D12GraphicsCommandList8 * This,
  22997. REFIID riid,
  22998. _COM_Outptr_opt_ void **ppvDevice);
  22999. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  23000. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  23001. ID3D12GraphicsCommandList8 * This);
  23002. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  23003. HRESULT ( STDMETHODCALLTYPE *Close )(
  23004. ID3D12GraphicsCommandList8 * This);
  23005. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  23006. HRESULT ( STDMETHODCALLTYPE *Reset )(
  23007. ID3D12GraphicsCommandList8 * This,
  23008. _In_ ID3D12CommandAllocator *pAllocator,
  23009. _In_opt_ ID3D12PipelineState *pInitialState);
  23010. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  23011. void ( STDMETHODCALLTYPE *ClearState )(
  23012. ID3D12GraphicsCommandList8 * This,
  23013. _In_opt_ ID3D12PipelineState *pPipelineState);
  23014. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  23015. void ( STDMETHODCALLTYPE *DrawInstanced )(
  23016. ID3D12GraphicsCommandList8 * This,
  23017. _In_ UINT VertexCountPerInstance,
  23018. _In_ UINT InstanceCount,
  23019. _In_ UINT StartVertexLocation,
  23020. _In_ UINT StartInstanceLocation);
  23021. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  23022. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  23023. ID3D12GraphicsCommandList8 * This,
  23024. _In_ UINT IndexCountPerInstance,
  23025. _In_ UINT InstanceCount,
  23026. _In_ UINT StartIndexLocation,
  23027. _In_ INT BaseVertexLocation,
  23028. _In_ UINT StartInstanceLocation);
  23029. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  23030. void ( STDMETHODCALLTYPE *Dispatch )(
  23031. ID3D12GraphicsCommandList8 * This,
  23032. _In_ UINT ThreadGroupCountX,
  23033. _In_ UINT ThreadGroupCountY,
  23034. _In_ UINT ThreadGroupCountZ);
  23035. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  23036. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  23037. ID3D12GraphicsCommandList8 * This,
  23038. _In_ ID3D12Resource *pDstBuffer,
  23039. UINT64 DstOffset,
  23040. _In_ ID3D12Resource *pSrcBuffer,
  23041. UINT64 SrcOffset,
  23042. UINT64 NumBytes);
  23043. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  23044. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  23045. ID3D12GraphicsCommandList8 * This,
  23046. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  23047. UINT DstX,
  23048. UINT DstY,
  23049. UINT DstZ,
  23050. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  23051. _In_opt_ const D3D12_BOX *pSrcBox);
  23052. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  23053. void ( STDMETHODCALLTYPE *CopyResource )(
  23054. ID3D12GraphicsCommandList8 * This,
  23055. _In_ ID3D12Resource *pDstResource,
  23056. _In_ ID3D12Resource *pSrcResource);
  23057. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  23058. void ( STDMETHODCALLTYPE *CopyTiles )(
  23059. ID3D12GraphicsCommandList8 * This,
  23060. _In_ ID3D12Resource *pTiledResource,
  23061. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  23062. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  23063. _In_ ID3D12Resource *pBuffer,
  23064. UINT64 BufferStartOffsetInBytes,
  23065. D3D12_TILE_COPY_FLAGS Flags);
  23066. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  23067. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  23068. ID3D12GraphicsCommandList8 * This,
  23069. _In_ ID3D12Resource *pDstResource,
  23070. _In_ UINT DstSubresource,
  23071. _In_ ID3D12Resource *pSrcResource,
  23072. _In_ UINT SrcSubresource,
  23073. _In_ DXGI_FORMAT Format);
  23074. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  23075. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  23076. ID3D12GraphicsCommandList8 * This,
  23077. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  23078. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  23079. void ( STDMETHODCALLTYPE *RSSetViewports )(
  23080. ID3D12GraphicsCommandList8 * This,
  23081. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  23082. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  23083. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  23084. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  23085. ID3D12GraphicsCommandList8 * This,
  23086. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  23087. _In_reads_( NumRects) const D3D12_RECT *pRects);
  23088. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  23089. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  23090. ID3D12GraphicsCommandList8 * This,
  23091. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  23092. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  23093. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  23094. ID3D12GraphicsCommandList8 * This,
  23095. _In_ UINT StencilRef);
  23096. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  23097. void ( STDMETHODCALLTYPE *SetPipelineState )(
  23098. ID3D12GraphicsCommandList8 * This,
  23099. _In_ ID3D12PipelineState *pPipelineState);
  23100. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  23101. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  23102. ID3D12GraphicsCommandList8 * This,
  23103. _In_ UINT NumBarriers,
  23104. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  23105. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  23106. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  23107. ID3D12GraphicsCommandList8 * This,
  23108. _In_ ID3D12GraphicsCommandList *pCommandList);
  23109. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  23110. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  23111. ID3D12GraphicsCommandList8 * This,
  23112. _In_ UINT NumDescriptorHeaps,
  23113. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  23114. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  23115. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  23116. ID3D12GraphicsCommandList8 * This,
  23117. _In_opt_ ID3D12RootSignature *pRootSignature);
  23118. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  23119. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  23120. ID3D12GraphicsCommandList8 * This,
  23121. _In_opt_ ID3D12RootSignature *pRootSignature);
  23122. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  23123. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  23124. ID3D12GraphicsCommandList8 * This,
  23125. _In_ UINT RootParameterIndex,
  23126. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  23127. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  23128. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  23129. ID3D12GraphicsCommandList8 * This,
  23130. _In_ UINT RootParameterIndex,
  23131. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  23132. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  23133. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  23134. ID3D12GraphicsCommandList8 * This,
  23135. _In_ UINT RootParameterIndex,
  23136. _In_ UINT SrcData,
  23137. _In_ UINT DestOffsetIn32BitValues);
  23138. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  23139. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  23140. ID3D12GraphicsCommandList8 * This,
  23141. _In_ UINT RootParameterIndex,
  23142. _In_ UINT SrcData,
  23143. _In_ UINT DestOffsetIn32BitValues);
  23144. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  23145. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  23146. ID3D12GraphicsCommandList8 * This,
  23147. _In_ UINT RootParameterIndex,
  23148. _In_ UINT Num32BitValuesToSet,
  23149. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  23150. _In_ UINT DestOffsetIn32BitValues);
  23151. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  23152. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  23153. ID3D12GraphicsCommandList8 * This,
  23154. _In_ UINT RootParameterIndex,
  23155. _In_ UINT Num32BitValuesToSet,
  23156. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  23157. _In_ UINT DestOffsetIn32BitValues);
  23158. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  23159. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  23160. ID3D12GraphicsCommandList8 * This,
  23161. _In_ UINT RootParameterIndex,
  23162. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23163. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  23164. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  23165. ID3D12GraphicsCommandList8 * This,
  23166. _In_ UINT RootParameterIndex,
  23167. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23168. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  23169. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  23170. ID3D12GraphicsCommandList8 * This,
  23171. _In_ UINT RootParameterIndex,
  23172. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23173. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  23174. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  23175. ID3D12GraphicsCommandList8 * This,
  23176. _In_ UINT RootParameterIndex,
  23177. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23178. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  23179. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  23180. ID3D12GraphicsCommandList8 * This,
  23181. _In_ UINT RootParameterIndex,
  23182. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23183. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  23184. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  23185. ID3D12GraphicsCommandList8 * This,
  23186. _In_ UINT RootParameterIndex,
  23187. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23188. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  23189. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  23190. ID3D12GraphicsCommandList8 * This,
  23191. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  23192. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  23193. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  23194. ID3D12GraphicsCommandList8 * This,
  23195. _In_ UINT StartSlot,
  23196. _In_ UINT NumViews,
  23197. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  23198. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  23199. void ( STDMETHODCALLTYPE *SOSetTargets )(
  23200. ID3D12GraphicsCommandList8 * This,
  23201. _In_ UINT StartSlot,
  23202. _In_ UINT NumViews,
  23203. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  23204. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  23205. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  23206. ID3D12GraphicsCommandList8 * This,
  23207. _In_ UINT NumRenderTargetDescriptors,
  23208. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  23209. _In_ BOOL RTsSingleHandleToDescriptorRange,
  23210. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  23211. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  23212. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  23213. ID3D12GraphicsCommandList8 * This,
  23214. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  23215. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  23216. _In_ FLOAT Depth,
  23217. _In_ UINT8 Stencil,
  23218. _In_ UINT NumRects,
  23219. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23220. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  23221. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  23222. ID3D12GraphicsCommandList8 * This,
  23223. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  23224. _In_ const FLOAT ColorRGBA[ 4 ],
  23225. _In_ UINT NumRects,
  23226. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23227. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  23228. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  23229. ID3D12GraphicsCommandList8 * This,
  23230. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  23231. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  23232. _In_ ID3D12Resource *pResource,
  23233. _In_ const UINT Values[ 4 ],
  23234. _In_ UINT NumRects,
  23235. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23236. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  23237. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  23238. ID3D12GraphicsCommandList8 * This,
  23239. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  23240. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  23241. _In_ ID3D12Resource *pResource,
  23242. _In_ const FLOAT Values[ 4 ],
  23243. _In_ UINT NumRects,
  23244. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23245. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  23246. void ( STDMETHODCALLTYPE *DiscardResource )(
  23247. ID3D12GraphicsCommandList8 * This,
  23248. _In_ ID3D12Resource *pResource,
  23249. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  23250. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  23251. void ( STDMETHODCALLTYPE *BeginQuery )(
  23252. ID3D12GraphicsCommandList8 * This,
  23253. _In_ ID3D12QueryHeap *pQueryHeap,
  23254. _In_ D3D12_QUERY_TYPE Type,
  23255. _In_ UINT Index);
  23256. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  23257. void ( STDMETHODCALLTYPE *EndQuery )(
  23258. ID3D12GraphicsCommandList8 * This,
  23259. _In_ ID3D12QueryHeap *pQueryHeap,
  23260. _In_ D3D12_QUERY_TYPE Type,
  23261. _In_ UINT Index);
  23262. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  23263. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  23264. ID3D12GraphicsCommandList8 * This,
  23265. _In_ ID3D12QueryHeap *pQueryHeap,
  23266. _In_ D3D12_QUERY_TYPE Type,
  23267. _In_ UINT StartIndex,
  23268. _In_ UINT NumQueries,
  23269. _In_ ID3D12Resource *pDestinationBuffer,
  23270. _In_ UINT64 AlignedDestinationBufferOffset);
  23271. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  23272. void ( STDMETHODCALLTYPE *SetPredication )(
  23273. ID3D12GraphicsCommandList8 * This,
  23274. _In_opt_ ID3D12Resource *pBuffer,
  23275. _In_ UINT64 AlignedBufferOffset,
  23276. _In_ D3D12_PREDICATION_OP Operation);
  23277. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  23278. void ( STDMETHODCALLTYPE *SetMarker )(
  23279. ID3D12GraphicsCommandList8 * This,
  23280. UINT Metadata,
  23281. _In_reads_bytes_opt_(Size) const void *pData,
  23282. UINT Size);
  23283. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  23284. void ( STDMETHODCALLTYPE *BeginEvent )(
  23285. ID3D12GraphicsCommandList8 * This,
  23286. UINT Metadata,
  23287. _In_reads_bytes_opt_(Size) const void *pData,
  23288. UINT Size);
  23289. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  23290. void ( STDMETHODCALLTYPE *EndEvent )(
  23291. ID3D12GraphicsCommandList8 * This);
  23292. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  23293. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  23294. ID3D12GraphicsCommandList8 * This,
  23295. _In_ ID3D12CommandSignature *pCommandSignature,
  23296. _In_ UINT MaxCommandCount,
  23297. _In_ ID3D12Resource *pArgumentBuffer,
  23298. _In_ UINT64 ArgumentBufferOffset,
  23299. _In_opt_ ID3D12Resource *pCountBuffer,
  23300. _In_ UINT64 CountBufferOffset);
  23301. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  23302. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  23303. ID3D12GraphicsCommandList8 * This,
  23304. _In_ ID3D12Resource *pDstBuffer,
  23305. UINT64 DstOffset,
  23306. _In_ ID3D12Resource *pSrcBuffer,
  23307. UINT64 SrcOffset,
  23308. UINT Dependencies,
  23309. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  23310. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  23311. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  23312. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  23313. ID3D12GraphicsCommandList8 * This,
  23314. _In_ ID3D12Resource *pDstBuffer,
  23315. UINT64 DstOffset,
  23316. _In_ ID3D12Resource *pSrcBuffer,
  23317. UINT64 SrcOffset,
  23318. UINT Dependencies,
  23319. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  23320. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  23321. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  23322. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  23323. ID3D12GraphicsCommandList8 * This,
  23324. _In_ FLOAT Min,
  23325. _In_ FLOAT Max);
  23326. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  23327. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  23328. ID3D12GraphicsCommandList8 * This,
  23329. _In_ UINT NumSamplesPerPixel,
  23330. _In_ UINT NumPixels,
  23331. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  23332. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  23333. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  23334. ID3D12GraphicsCommandList8 * This,
  23335. _In_ ID3D12Resource *pDstResource,
  23336. _In_ UINT DstSubresource,
  23337. _In_ UINT DstX,
  23338. _In_ UINT DstY,
  23339. _In_ ID3D12Resource *pSrcResource,
  23340. _In_ UINT SrcSubresource,
  23341. _In_opt_ D3D12_RECT *pSrcRect,
  23342. _In_ DXGI_FORMAT Format,
  23343. _In_ D3D12_RESOLVE_MODE ResolveMode);
  23344. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  23345. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  23346. ID3D12GraphicsCommandList8 * This,
  23347. _In_ UINT Mask);
  23348. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  23349. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  23350. ID3D12GraphicsCommandList8 * This,
  23351. UINT Count,
  23352. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  23353. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  23354. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  23355. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  23356. ID3D12GraphicsCommandList8 * This,
  23357. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  23358. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  23359. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  23360. ID3D12GraphicsCommandList8 * This,
  23361. _In_ UINT NumRenderTargets,
  23362. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  23363. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  23364. D3D12_RENDER_PASS_FLAGS Flags);
  23365. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  23366. void ( STDMETHODCALLTYPE *EndRenderPass )(
  23367. ID3D12GraphicsCommandList8 * This);
  23368. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  23369. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  23370. ID3D12GraphicsCommandList8 * This,
  23371. _In_ ID3D12MetaCommand *pMetaCommand,
  23372. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  23373. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  23374. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  23375. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  23376. ID3D12GraphicsCommandList8 * This,
  23377. _In_ ID3D12MetaCommand *pMetaCommand,
  23378. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  23379. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  23380. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  23381. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  23382. ID3D12GraphicsCommandList8 * This,
  23383. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  23384. _In_ UINT NumPostbuildInfoDescs,
  23385. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  23386. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  23387. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  23388. ID3D12GraphicsCommandList8 * This,
  23389. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  23390. _In_ UINT NumSourceAccelerationStructures,
  23391. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  23392. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  23393. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  23394. ID3D12GraphicsCommandList8 * This,
  23395. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  23396. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  23397. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  23398. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  23399. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  23400. ID3D12GraphicsCommandList8 * This,
  23401. _In_ ID3D12StateObject *pStateObject);
  23402. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  23403. void ( STDMETHODCALLTYPE *DispatchRays )(
  23404. ID3D12GraphicsCommandList8 * This,
  23405. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  23406. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  23407. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  23408. ID3D12GraphicsCommandList8 * This,
  23409. _In_ D3D12_SHADING_RATE baseShadingRate,
  23410. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  23411. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  23412. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  23413. ID3D12GraphicsCommandList8 * This,
  23414. _In_opt_ ID3D12Resource *shadingRateImage);
  23415. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  23416. void ( STDMETHODCALLTYPE *DispatchMesh )(
  23417. ID3D12GraphicsCommandList8 * This,
  23418. _In_ UINT ThreadGroupCountX,
  23419. _In_ UINT ThreadGroupCountY,
  23420. _In_ UINT ThreadGroupCountZ);
  23421. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  23422. void ( STDMETHODCALLTYPE *Barrier )(
  23423. ID3D12GraphicsCommandList8 * This,
  23424. UINT32 NumBarrierGroups,
  23425. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  23426. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef)
  23427. void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )(
  23428. ID3D12GraphicsCommandList8 * This,
  23429. _In_ UINT FrontStencilRef,
  23430. _In_ UINT BackStencilRef);
  23431. END_INTERFACE
  23432. } ID3D12GraphicsCommandList8Vtbl;
  23433. interface ID3D12GraphicsCommandList8
  23434. {
  23435. CONST_VTBL struct ID3D12GraphicsCommandList8Vtbl *lpVtbl;
  23436. };
  23437. #ifdef COBJMACROS
  23438. #define ID3D12GraphicsCommandList8_QueryInterface(This,riid,ppvObject) \
  23439. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  23440. #define ID3D12GraphicsCommandList8_AddRef(This) \
  23441. ( (This)->lpVtbl -> AddRef(This) )
  23442. #define ID3D12GraphicsCommandList8_Release(This) \
  23443. ( (This)->lpVtbl -> Release(This) )
  23444. #define ID3D12GraphicsCommandList8_GetPrivateData(This,guid,pDataSize,pData) \
  23445. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  23446. #define ID3D12GraphicsCommandList8_SetPrivateData(This,guid,DataSize,pData) \
  23447. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  23448. #define ID3D12GraphicsCommandList8_SetPrivateDataInterface(This,guid,pData) \
  23449. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  23450. #define ID3D12GraphicsCommandList8_SetName(This,Name) \
  23451. ( (This)->lpVtbl -> SetName(This,Name) )
  23452. #define ID3D12GraphicsCommandList8_GetDevice(This,riid,ppvDevice) \
  23453. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  23454. #define ID3D12GraphicsCommandList8_GetType(This) \
  23455. ( (This)->lpVtbl -> GetType(This) )
  23456. #define ID3D12GraphicsCommandList8_Close(This) \
  23457. ( (This)->lpVtbl -> Close(This) )
  23458. #define ID3D12GraphicsCommandList8_Reset(This,pAllocator,pInitialState) \
  23459. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  23460. #define ID3D12GraphicsCommandList8_ClearState(This,pPipelineState) \
  23461. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  23462. #define ID3D12GraphicsCommandList8_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  23463. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  23464. #define ID3D12GraphicsCommandList8_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  23465. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  23466. #define ID3D12GraphicsCommandList8_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  23467. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  23468. #define ID3D12GraphicsCommandList8_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  23469. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  23470. #define ID3D12GraphicsCommandList8_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  23471. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  23472. #define ID3D12GraphicsCommandList8_CopyResource(This,pDstResource,pSrcResource) \
  23473. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  23474. #define ID3D12GraphicsCommandList8_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  23475. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  23476. #define ID3D12GraphicsCommandList8_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  23477. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  23478. #define ID3D12GraphicsCommandList8_IASetPrimitiveTopology(This,PrimitiveTopology) \
  23479. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  23480. #define ID3D12GraphicsCommandList8_RSSetViewports(This,NumViewports,pViewports) \
  23481. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  23482. #define ID3D12GraphicsCommandList8_RSSetScissorRects(This,NumRects,pRects) \
  23483. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  23484. #define ID3D12GraphicsCommandList8_OMSetBlendFactor(This,BlendFactor) \
  23485. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  23486. #define ID3D12GraphicsCommandList8_OMSetStencilRef(This,StencilRef) \
  23487. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  23488. #define ID3D12GraphicsCommandList8_SetPipelineState(This,pPipelineState) \
  23489. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  23490. #define ID3D12GraphicsCommandList8_ResourceBarrier(This,NumBarriers,pBarriers) \
  23491. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  23492. #define ID3D12GraphicsCommandList8_ExecuteBundle(This,pCommandList) \
  23493. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  23494. #define ID3D12GraphicsCommandList8_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  23495. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  23496. #define ID3D12GraphicsCommandList8_SetComputeRootSignature(This,pRootSignature) \
  23497. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  23498. #define ID3D12GraphicsCommandList8_SetGraphicsRootSignature(This,pRootSignature) \
  23499. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  23500. #define ID3D12GraphicsCommandList8_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  23501. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  23502. #define ID3D12GraphicsCommandList8_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  23503. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  23504. #define ID3D12GraphicsCommandList8_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  23505. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  23506. #define ID3D12GraphicsCommandList8_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  23507. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  23508. #define ID3D12GraphicsCommandList8_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  23509. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  23510. #define ID3D12GraphicsCommandList8_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  23511. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  23512. #define ID3D12GraphicsCommandList8_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  23513. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  23514. #define ID3D12GraphicsCommandList8_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  23515. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  23516. #define ID3D12GraphicsCommandList8_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  23517. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  23518. #define ID3D12GraphicsCommandList8_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  23519. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  23520. #define ID3D12GraphicsCommandList8_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  23521. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  23522. #define ID3D12GraphicsCommandList8_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  23523. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  23524. #define ID3D12GraphicsCommandList8_IASetIndexBuffer(This,pView) \
  23525. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  23526. #define ID3D12GraphicsCommandList8_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  23527. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  23528. #define ID3D12GraphicsCommandList8_SOSetTargets(This,StartSlot,NumViews,pViews) \
  23529. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  23530. #define ID3D12GraphicsCommandList8_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  23531. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  23532. #define ID3D12GraphicsCommandList8_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  23533. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  23534. #define ID3D12GraphicsCommandList8_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  23535. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  23536. #define ID3D12GraphicsCommandList8_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  23537. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  23538. #define ID3D12GraphicsCommandList8_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  23539. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  23540. #define ID3D12GraphicsCommandList8_DiscardResource(This,pResource,pRegion) \
  23541. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  23542. #define ID3D12GraphicsCommandList8_BeginQuery(This,pQueryHeap,Type,Index) \
  23543. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  23544. #define ID3D12GraphicsCommandList8_EndQuery(This,pQueryHeap,Type,Index) \
  23545. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  23546. #define ID3D12GraphicsCommandList8_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  23547. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  23548. #define ID3D12GraphicsCommandList8_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  23549. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  23550. #define ID3D12GraphicsCommandList8_SetMarker(This,Metadata,pData,Size) \
  23551. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  23552. #define ID3D12GraphicsCommandList8_BeginEvent(This,Metadata,pData,Size) \
  23553. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  23554. #define ID3D12GraphicsCommandList8_EndEvent(This) \
  23555. ( (This)->lpVtbl -> EndEvent(This) )
  23556. #define ID3D12GraphicsCommandList8_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  23557. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  23558. #define ID3D12GraphicsCommandList8_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  23559. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  23560. #define ID3D12GraphicsCommandList8_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  23561. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  23562. #define ID3D12GraphicsCommandList8_OMSetDepthBounds(This,Min,Max) \
  23563. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  23564. #define ID3D12GraphicsCommandList8_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  23565. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  23566. #define ID3D12GraphicsCommandList8_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  23567. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  23568. #define ID3D12GraphicsCommandList8_SetViewInstanceMask(This,Mask) \
  23569. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  23570. #define ID3D12GraphicsCommandList8_WriteBufferImmediate(This,Count,pParams,pModes) \
  23571. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  23572. #define ID3D12GraphicsCommandList8_SetProtectedResourceSession(This,pProtectedResourceSession) \
  23573. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  23574. #define ID3D12GraphicsCommandList8_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  23575. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  23576. #define ID3D12GraphicsCommandList8_EndRenderPass(This) \
  23577. ( (This)->lpVtbl -> EndRenderPass(This) )
  23578. #define ID3D12GraphicsCommandList8_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  23579. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  23580. #define ID3D12GraphicsCommandList8_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  23581. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  23582. #define ID3D12GraphicsCommandList8_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  23583. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  23584. #define ID3D12GraphicsCommandList8_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  23585. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  23586. #define ID3D12GraphicsCommandList8_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  23587. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  23588. #define ID3D12GraphicsCommandList8_SetPipelineState1(This,pStateObject) \
  23589. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  23590. #define ID3D12GraphicsCommandList8_DispatchRays(This,pDesc) \
  23591. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  23592. #define ID3D12GraphicsCommandList8_RSSetShadingRate(This,baseShadingRate,combiners) \
  23593. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  23594. #define ID3D12GraphicsCommandList8_RSSetShadingRateImage(This,shadingRateImage) \
  23595. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  23596. #define ID3D12GraphicsCommandList8_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  23597. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  23598. #define ID3D12GraphicsCommandList8_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  23599. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  23600. #define ID3D12GraphicsCommandList8_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \
  23601. ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) )
  23602. #endif /* COBJMACROS */
  23603. #endif /* C style interface */
  23604. #endif /* __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__ */
  23605. #ifndef __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__
  23606. #define __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__
  23607. /* interface ID3D12GraphicsCommandList9 */
  23608. /* [unique][local][object][uuid] */
  23609. EXTERN_C const IID IID_ID3D12GraphicsCommandList9;
  23610. #if defined(__cplusplus) && !defined(CINTERFACE)
  23611. MIDL_INTERFACE("34ed2808-ffe6-4c2b-b11a-cabd2b0c59e1")
  23612. ID3D12GraphicsCommandList9 : public ID3D12GraphicsCommandList8
  23613. {
  23614. public:
  23615. virtual void STDMETHODCALLTYPE RSSetDepthBias(
  23616. _In_ FLOAT DepthBias,
  23617. _In_ FLOAT DepthBiasClamp,
  23618. _In_ FLOAT SlopeScaledDepthBias) = 0;
  23619. virtual void STDMETHODCALLTYPE IASetIndexBufferStripCutValue(
  23620. _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue) = 0;
  23621. };
  23622. #else /* C style interface */
  23623. typedef struct ID3D12GraphicsCommandList9Vtbl
  23624. {
  23625. BEGIN_INTERFACE
  23626. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  23627. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  23628. ID3D12GraphicsCommandList9 * This,
  23629. REFIID riid,
  23630. _COM_Outptr_ void **ppvObject);
  23631. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  23632. ULONG ( STDMETHODCALLTYPE *AddRef )(
  23633. ID3D12GraphicsCommandList9 * This);
  23634. DECLSPEC_XFGVIRT(IUnknown, Release)
  23635. ULONG ( STDMETHODCALLTYPE *Release )(
  23636. ID3D12GraphicsCommandList9 * This);
  23637. DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData)
  23638. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  23639. ID3D12GraphicsCommandList9 * This,
  23640. _In_ REFGUID guid,
  23641. _Inout_ UINT *pDataSize,
  23642. _Out_writes_bytes_opt_( *pDataSize ) void *pData);
  23643. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData)
  23644. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  23645. ID3D12GraphicsCommandList9 * This,
  23646. _In_ REFGUID guid,
  23647. _In_ UINT DataSize,
  23648. _In_reads_bytes_opt_( DataSize ) const void *pData);
  23649. DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface)
  23650. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  23651. ID3D12GraphicsCommandList9 * This,
  23652. _In_ REFGUID guid,
  23653. _In_opt_ const IUnknown *pData);
  23654. DECLSPEC_XFGVIRT(ID3D12Object, SetName)
  23655. HRESULT ( STDMETHODCALLTYPE *SetName )(
  23656. ID3D12GraphicsCommandList9 * This,
  23657. _In_z_ LPCWSTR Name);
  23658. DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice)
  23659. HRESULT ( STDMETHODCALLTYPE *GetDevice )(
  23660. ID3D12GraphicsCommandList9 * This,
  23661. REFIID riid,
  23662. _COM_Outptr_opt_ void **ppvDevice);
  23663. DECLSPEC_XFGVIRT(ID3D12CommandList, GetType)
  23664. D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )(
  23665. ID3D12GraphicsCommandList9 * This);
  23666. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close)
  23667. HRESULT ( STDMETHODCALLTYPE *Close )(
  23668. ID3D12GraphicsCommandList9 * This);
  23669. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset)
  23670. HRESULT ( STDMETHODCALLTYPE *Reset )(
  23671. ID3D12GraphicsCommandList9 * This,
  23672. _In_ ID3D12CommandAllocator *pAllocator,
  23673. _In_opt_ ID3D12PipelineState *pInitialState);
  23674. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState)
  23675. void ( STDMETHODCALLTYPE *ClearState )(
  23676. ID3D12GraphicsCommandList9 * This,
  23677. _In_opt_ ID3D12PipelineState *pPipelineState);
  23678. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced)
  23679. void ( STDMETHODCALLTYPE *DrawInstanced )(
  23680. ID3D12GraphicsCommandList9 * This,
  23681. _In_ UINT VertexCountPerInstance,
  23682. _In_ UINT InstanceCount,
  23683. _In_ UINT StartVertexLocation,
  23684. _In_ UINT StartInstanceLocation);
  23685. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced)
  23686. void ( STDMETHODCALLTYPE *DrawIndexedInstanced )(
  23687. ID3D12GraphicsCommandList9 * This,
  23688. _In_ UINT IndexCountPerInstance,
  23689. _In_ UINT InstanceCount,
  23690. _In_ UINT StartIndexLocation,
  23691. _In_ INT BaseVertexLocation,
  23692. _In_ UINT StartInstanceLocation);
  23693. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch)
  23694. void ( STDMETHODCALLTYPE *Dispatch )(
  23695. ID3D12GraphicsCommandList9 * This,
  23696. _In_ UINT ThreadGroupCountX,
  23697. _In_ UINT ThreadGroupCountY,
  23698. _In_ UINT ThreadGroupCountZ);
  23699. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion)
  23700. void ( STDMETHODCALLTYPE *CopyBufferRegion )(
  23701. ID3D12GraphicsCommandList9 * This,
  23702. _In_ ID3D12Resource *pDstBuffer,
  23703. UINT64 DstOffset,
  23704. _In_ ID3D12Resource *pSrcBuffer,
  23705. UINT64 SrcOffset,
  23706. UINT64 NumBytes);
  23707. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion)
  23708. void ( STDMETHODCALLTYPE *CopyTextureRegion )(
  23709. ID3D12GraphicsCommandList9 * This,
  23710. _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst,
  23711. UINT DstX,
  23712. UINT DstY,
  23713. UINT DstZ,
  23714. _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc,
  23715. _In_opt_ const D3D12_BOX *pSrcBox);
  23716. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource)
  23717. void ( STDMETHODCALLTYPE *CopyResource )(
  23718. ID3D12GraphicsCommandList9 * This,
  23719. _In_ ID3D12Resource *pDstResource,
  23720. _In_ ID3D12Resource *pSrcResource);
  23721. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles)
  23722. void ( STDMETHODCALLTYPE *CopyTiles )(
  23723. ID3D12GraphicsCommandList9 * This,
  23724. _In_ ID3D12Resource *pTiledResource,
  23725. _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate,
  23726. _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize,
  23727. _In_ ID3D12Resource *pBuffer,
  23728. UINT64 BufferStartOffsetInBytes,
  23729. D3D12_TILE_COPY_FLAGS Flags);
  23730. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource)
  23731. void ( STDMETHODCALLTYPE *ResolveSubresource )(
  23732. ID3D12GraphicsCommandList9 * This,
  23733. _In_ ID3D12Resource *pDstResource,
  23734. _In_ UINT DstSubresource,
  23735. _In_ ID3D12Resource *pSrcResource,
  23736. _In_ UINT SrcSubresource,
  23737. _In_ DXGI_FORMAT Format);
  23738. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology)
  23739. void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )(
  23740. ID3D12GraphicsCommandList9 * This,
  23741. _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology);
  23742. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports)
  23743. void ( STDMETHODCALLTYPE *RSSetViewports )(
  23744. ID3D12GraphicsCommandList9 * This,
  23745. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports,
  23746. _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports);
  23747. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects)
  23748. void ( STDMETHODCALLTYPE *RSSetScissorRects )(
  23749. ID3D12GraphicsCommandList9 * This,
  23750. _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects,
  23751. _In_reads_( NumRects) const D3D12_RECT *pRects);
  23752. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor)
  23753. void ( STDMETHODCALLTYPE *OMSetBlendFactor )(
  23754. ID3D12GraphicsCommandList9 * This,
  23755. _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]);
  23756. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef)
  23757. void ( STDMETHODCALLTYPE *OMSetStencilRef )(
  23758. ID3D12GraphicsCommandList9 * This,
  23759. _In_ UINT StencilRef);
  23760. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState)
  23761. void ( STDMETHODCALLTYPE *SetPipelineState )(
  23762. ID3D12GraphicsCommandList9 * This,
  23763. _In_ ID3D12PipelineState *pPipelineState);
  23764. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier)
  23765. void ( STDMETHODCALLTYPE *ResourceBarrier )(
  23766. ID3D12GraphicsCommandList9 * This,
  23767. _In_ UINT NumBarriers,
  23768. _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers);
  23769. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle)
  23770. void ( STDMETHODCALLTYPE *ExecuteBundle )(
  23771. ID3D12GraphicsCommandList9 * This,
  23772. _In_ ID3D12GraphicsCommandList *pCommandList);
  23773. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps)
  23774. void ( STDMETHODCALLTYPE *SetDescriptorHeaps )(
  23775. ID3D12GraphicsCommandList9 * This,
  23776. _In_ UINT NumDescriptorHeaps,
  23777. _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps);
  23778. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature)
  23779. void ( STDMETHODCALLTYPE *SetComputeRootSignature )(
  23780. ID3D12GraphicsCommandList9 * This,
  23781. _In_opt_ ID3D12RootSignature *pRootSignature);
  23782. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature)
  23783. void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )(
  23784. ID3D12GraphicsCommandList9 * This,
  23785. _In_opt_ ID3D12RootSignature *pRootSignature);
  23786. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable)
  23787. void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )(
  23788. ID3D12GraphicsCommandList9 * This,
  23789. _In_ UINT RootParameterIndex,
  23790. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  23791. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable)
  23792. void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )(
  23793. ID3D12GraphicsCommandList9 * This,
  23794. _In_ UINT RootParameterIndex,
  23795. _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor);
  23796. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant)
  23797. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )(
  23798. ID3D12GraphicsCommandList9 * This,
  23799. _In_ UINT RootParameterIndex,
  23800. _In_ UINT SrcData,
  23801. _In_ UINT DestOffsetIn32BitValues);
  23802. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant)
  23803. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )(
  23804. ID3D12GraphicsCommandList9 * This,
  23805. _In_ UINT RootParameterIndex,
  23806. _In_ UINT SrcData,
  23807. _In_ UINT DestOffsetIn32BitValues);
  23808. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants)
  23809. void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )(
  23810. ID3D12GraphicsCommandList9 * This,
  23811. _In_ UINT RootParameterIndex,
  23812. _In_ UINT Num32BitValuesToSet,
  23813. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  23814. _In_ UINT DestOffsetIn32BitValues);
  23815. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants)
  23816. void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )(
  23817. ID3D12GraphicsCommandList9 * This,
  23818. _In_ UINT RootParameterIndex,
  23819. _In_ UINT Num32BitValuesToSet,
  23820. _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData,
  23821. _In_ UINT DestOffsetIn32BitValues);
  23822. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView)
  23823. void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )(
  23824. ID3D12GraphicsCommandList9 * This,
  23825. _In_ UINT RootParameterIndex,
  23826. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23827. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView)
  23828. void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )(
  23829. ID3D12GraphicsCommandList9 * This,
  23830. _In_ UINT RootParameterIndex,
  23831. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23832. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView)
  23833. void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )(
  23834. ID3D12GraphicsCommandList9 * This,
  23835. _In_ UINT RootParameterIndex,
  23836. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23837. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView)
  23838. void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )(
  23839. ID3D12GraphicsCommandList9 * This,
  23840. _In_ UINT RootParameterIndex,
  23841. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23842. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView)
  23843. void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )(
  23844. ID3D12GraphicsCommandList9 * This,
  23845. _In_ UINT RootParameterIndex,
  23846. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23847. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView)
  23848. void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )(
  23849. ID3D12GraphicsCommandList9 * This,
  23850. _In_ UINT RootParameterIndex,
  23851. _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation);
  23852. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer)
  23853. void ( STDMETHODCALLTYPE *IASetIndexBuffer )(
  23854. ID3D12GraphicsCommandList9 * This,
  23855. _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView);
  23856. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers)
  23857. void ( STDMETHODCALLTYPE *IASetVertexBuffers )(
  23858. ID3D12GraphicsCommandList9 * This,
  23859. _In_ UINT StartSlot,
  23860. _In_ UINT NumViews,
  23861. _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews);
  23862. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets)
  23863. void ( STDMETHODCALLTYPE *SOSetTargets )(
  23864. ID3D12GraphicsCommandList9 * This,
  23865. _In_ UINT StartSlot,
  23866. _In_ UINT NumViews,
  23867. _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews);
  23868. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets)
  23869. void ( STDMETHODCALLTYPE *OMSetRenderTargets )(
  23870. ID3D12GraphicsCommandList9 * This,
  23871. _In_ UINT NumRenderTargetDescriptors,
  23872. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors,
  23873. _In_ BOOL RTsSingleHandleToDescriptorRange,
  23874. _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor);
  23875. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView)
  23876. void ( STDMETHODCALLTYPE *ClearDepthStencilView )(
  23877. ID3D12GraphicsCommandList9 * This,
  23878. _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView,
  23879. _In_ D3D12_CLEAR_FLAGS ClearFlags,
  23880. _In_ FLOAT Depth,
  23881. _In_ UINT8 Stencil,
  23882. _In_ UINT NumRects,
  23883. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23884. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView)
  23885. void ( STDMETHODCALLTYPE *ClearRenderTargetView )(
  23886. ID3D12GraphicsCommandList9 * This,
  23887. _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView,
  23888. _In_ const FLOAT ColorRGBA[ 4 ],
  23889. _In_ UINT NumRects,
  23890. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23891. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint)
  23892. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )(
  23893. ID3D12GraphicsCommandList9 * This,
  23894. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  23895. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  23896. _In_ ID3D12Resource *pResource,
  23897. _In_ const UINT Values[ 4 ],
  23898. _In_ UINT NumRects,
  23899. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23900. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat)
  23901. void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )(
  23902. ID3D12GraphicsCommandList9 * This,
  23903. _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap,
  23904. _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle,
  23905. _In_ ID3D12Resource *pResource,
  23906. _In_ const FLOAT Values[ 4 ],
  23907. _In_ UINT NumRects,
  23908. _In_reads_(NumRects) const D3D12_RECT *pRects);
  23909. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource)
  23910. void ( STDMETHODCALLTYPE *DiscardResource )(
  23911. ID3D12GraphicsCommandList9 * This,
  23912. _In_ ID3D12Resource *pResource,
  23913. _In_opt_ const D3D12_DISCARD_REGION *pRegion);
  23914. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery)
  23915. void ( STDMETHODCALLTYPE *BeginQuery )(
  23916. ID3D12GraphicsCommandList9 * This,
  23917. _In_ ID3D12QueryHeap *pQueryHeap,
  23918. _In_ D3D12_QUERY_TYPE Type,
  23919. _In_ UINT Index);
  23920. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery)
  23921. void ( STDMETHODCALLTYPE *EndQuery )(
  23922. ID3D12GraphicsCommandList9 * This,
  23923. _In_ ID3D12QueryHeap *pQueryHeap,
  23924. _In_ D3D12_QUERY_TYPE Type,
  23925. _In_ UINT Index);
  23926. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData)
  23927. void ( STDMETHODCALLTYPE *ResolveQueryData )(
  23928. ID3D12GraphicsCommandList9 * This,
  23929. _In_ ID3D12QueryHeap *pQueryHeap,
  23930. _In_ D3D12_QUERY_TYPE Type,
  23931. _In_ UINT StartIndex,
  23932. _In_ UINT NumQueries,
  23933. _In_ ID3D12Resource *pDestinationBuffer,
  23934. _In_ UINT64 AlignedDestinationBufferOffset);
  23935. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication)
  23936. void ( STDMETHODCALLTYPE *SetPredication )(
  23937. ID3D12GraphicsCommandList9 * This,
  23938. _In_opt_ ID3D12Resource *pBuffer,
  23939. _In_ UINT64 AlignedBufferOffset,
  23940. _In_ D3D12_PREDICATION_OP Operation);
  23941. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker)
  23942. void ( STDMETHODCALLTYPE *SetMarker )(
  23943. ID3D12GraphicsCommandList9 * This,
  23944. UINT Metadata,
  23945. _In_reads_bytes_opt_(Size) const void *pData,
  23946. UINT Size);
  23947. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent)
  23948. void ( STDMETHODCALLTYPE *BeginEvent )(
  23949. ID3D12GraphicsCommandList9 * This,
  23950. UINT Metadata,
  23951. _In_reads_bytes_opt_(Size) const void *pData,
  23952. UINT Size);
  23953. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent)
  23954. void ( STDMETHODCALLTYPE *EndEvent )(
  23955. ID3D12GraphicsCommandList9 * This);
  23956. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect)
  23957. void ( STDMETHODCALLTYPE *ExecuteIndirect )(
  23958. ID3D12GraphicsCommandList9 * This,
  23959. _In_ ID3D12CommandSignature *pCommandSignature,
  23960. _In_ UINT MaxCommandCount,
  23961. _In_ ID3D12Resource *pArgumentBuffer,
  23962. _In_ UINT64 ArgumentBufferOffset,
  23963. _In_opt_ ID3D12Resource *pCountBuffer,
  23964. _In_ UINT64 CountBufferOffset);
  23965. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT)
  23966. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )(
  23967. ID3D12GraphicsCommandList9 * This,
  23968. _In_ ID3D12Resource *pDstBuffer,
  23969. UINT64 DstOffset,
  23970. _In_ ID3D12Resource *pSrcBuffer,
  23971. UINT64 SrcOffset,
  23972. UINT Dependencies,
  23973. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  23974. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  23975. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64)
  23976. void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )(
  23977. ID3D12GraphicsCommandList9 * This,
  23978. _In_ ID3D12Resource *pDstBuffer,
  23979. UINT64 DstOffset,
  23980. _In_ ID3D12Resource *pSrcBuffer,
  23981. UINT64 SrcOffset,
  23982. UINT Dependencies,
  23983. _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources,
  23984. _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges);
  23985. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds)
  23986. void ( STDMETHODCALLTYPE *OMSetDepthBounds )(
  23987. ID3D12GraphicsCommandList9 * This,
  23988. _In_ FLOAT Min,
  23989. _In_ FLOAT Max);
  23990. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions)
  23991. void ( STDMETHODCALLTYPE *SetSamplePositions )(
  23992. ID3D12GraphicsCommandList9 * This,
  23993. _In_ UINT NumSamplesPerPixel,
  23994. _In_ UINT NumPixels,
  23995. _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions);
  23996. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion)
  23997. void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )(
  23998. ID3D12GraphicsCommandList9 * This,
  23999. _In_ ID3D12Resource *pDstResource,
  24000. _In_ UINT DstSubresource,
  24001. _In_ UINT DstX,
  24002. _In_ UINT DstY,
  24003. _In_ ID3D12Resource *pSrcResource,
  24004. _In_ UINT SrcSubresource,
  24005. _In_opt_ D3D12_RECT *pSrcRect,
  24006. _In_ DXGI_FORMAT Format,
  24007. _In_ D3D12_RESOLVE_MODE ResolveMode);
  24008. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask)
  24009. void ( STDMETHODCALLTYPE *SetViewInstanceMask )(
  24010. ID3D12GraphicsCommandList9 * This,
  24011. _In_ UINT Mask);
  24012. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate)
  24013. void ( STDMETHODCALLTYPE *WriteBufferImmediate )(
  24014. ID3D12GraphicsCommandList9 * This,
  24015. UINT Count,
  24016. _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  24017. _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes);
  24018. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession)
  24019. void ( STDMETHODCALLTYPE *SetProtectedResourceSession )(
  24020. ID3D12GraphicsCommandList9 * This,
  24021. _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession);
  24022. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass)
  24023. void ( STDMETHODCALLTYPE *BeginRenderPass )(
  24024. ID3D12GraphicsCommandList9 * This,
  24025. _In_ UINT NumRenderTargets,
  24026. _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  24027. _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  24028. D3D12_RENDER_PASS_FLAGS Flags);
  24029. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass)
  24030. void ( STDMETHODCALLTYPE *EndRenderPass )(
  24031. ID3D12GraphicsCommandList9 * This);
  24032. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand)
  24033. void ( STDMETHODCALLTYPE *InitializeMetaCommand )(
  24034. ID3D12GraphicsCommandList9 * This,
  24035. _In_ ID3D12MetaCommand *pMetaCommand,
  24036. _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData,
  24037. _In_ SIZE_T InitializationParametersDataSizeInBytes);
  24038. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand)
  24039. void ( STDMETHODCALLTYPE *ExecuteMetaCommand )(
  24040. ID3D12GraphicsCommandList9 * This,
  24041. _In_ ID3D12MetaCommand *pMetaCommand,
  24042. _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData,
  24043. _In_ SIZE_T ExecutionParametersDataSizeInBytes);
  24044. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure)
  24045. void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )(
  24046. ID3D12GraphicsCommandList9 * This,
  24047. _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc,
  24048. _In_ UINT NumPostbuildInfoDescs,
  24049. _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs);
  24050. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo)
  24051. void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )(
  24052. ID3D12GraphicsCommandList9 * This,
  24053. _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc,
  24054. _In_ UINT NumSourceAccelerationStructures,
  24055. _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData);
  24056. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure)
  24057. void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )(
  24058. ID3D12GraphicsCommandList9 * This,
  24059. _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData,
  24060. _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData,
  24061. _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode);
  24062. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1)
  24063. void ( STDMETHODCALLTYPE *SetPipelineState1 )(
  24064. ID3D12GraphicsCommandList9 * This,
  24065. _In_ ID3D12StateObject *pStateObject);
  24066. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays)
  24067. void ( STDMETHODCALLTYPE *DispatchRays )(
  24068. ID3D12GraphicsCommandList9 * This,
  24069. _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc);
  24070. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate)
  24071. void ( STDMETHODCALLTYPE *RSSetShadingRate )(
  24072. ID3D12GraphicsCommandList9 * This,
  24073. _In_ D3D12_SHADING_RATE baseShadingRate,
  24074. _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners);
  24075. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage)
  24076. void ( STDMETHODCALLTYPE *RSSetShadingRateImage )(
  24077. ID3D12GraphicsCommandList9 * This,
  24078. _In_opt_ ID3D12Resource *shadingRateImage);
  24079. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh)
  24080. void ( STDMETHODCALLTYPE *DispatchMesh )(
  24081. ID3D12GraphicsCommandList9 * This,
  24082. _In_ UINT ThreadGroupCountX,
  24083. _In_ UINT ThreadGroupCountY,
  24084. _In_ UINT ThreadGroupCountZ);
  24085. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier)
  24086. void ( STDMETHODCALLTYPE *Barrier )(
  24087. ID3D12GraphicsCommandList9 * This,
  24088. UINT32 NumBarrierGroups,
  24089. _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups);
  24090. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef)
  24091. void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )(
  24092. ID3D12GraphicsCommandList9 * This,
  24093. _In_ UINT FrontStencilRef,
  24094. _In_ UINT BackStencilRef);
  24095. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, RSSetDepthBias)
  24096. void ( STDMETHODCALLTYPE *RSSetDepthBias )(
  24097. ID3D12GraphicsCommandList9 * This,
  24098. _In_ FLOAT DepthBias,
  24099. _In_ FLOAT DepthBiasClamp,
  24100. _In_ FLOAT SlopeScaledDepthBias);
  24101. DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, IASetIndexBufferStripCutValue)
  24102. void ( STDMETHODCALLTYPE *IASetIndexBufferStripCutValue )(
  24103. ID3D12GraphicsCommandList9 * This,
  24104. _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue);
  24105. END_INTERFACE
  24106. } ID3D12GraphicsCommandList9Vtbl;
  24107. interface ID3D12GraphicsCommandList9
  24108. {
  24109. CONST_VTBL struct ID3D12GraphicsCommandList9Vtbl *lpVtbl;
  24110. };
  24111. #ifdef COBJMACROS
  24112. #define ID3D12GraphicsCommandList9_QueryInterface(This,riid,ppvObject) \
  24113. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  24114. #define ID3D12GraphicsCommandList9_AddRef(This) \
  24115. ( (This)->lpVtbl -> AddRef(This) )
  24116. #define ID3D12GraphicsCommandList9_Release(This) \
  24117. ( (This)->lpVtbl -> Release(This) )
  24118. #define ID3D12GraphicsCommandList9_GetPrivateData(This,guid,pDataSize,pData) \
  24119. ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) )
  24120. #define ID3D12GraphicsCommandList9_SetPrivateData(This,guid,DataSize,pData) \
  24121. ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) )
  24122. #define ID3D12GraphicsCommandList9_SetPrivateDataInterface(This,guid,pData) \
  24123. ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) )
  24124. #define ID3D12GraphicsCommandList9_SetName(This,Name) \
  24125. ( (This)->lpVtbl -> SetName(This,Name) )
  24126. #define ID3D12GraphicsCommandList9_GetDevice(This,riid,ppvDevice) \
  24127. ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) )
  24128. #define ID3D12GraphicsCommandList9_GetType(This) \
  24129. ( (This)->lpVtbl -> GetType(This) )
  24130. #define ID3D12GraphicsCommandList9_Close(This) \
  24131. ( (This)->lpVtbl -> Close(This) )
  24132. #define ID3D12GraphicsCommandList9_Reset(This,pAllocator,pInitialState) \
  24133. ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) )
  24134. #define ID3D12GraphicsCommandList9_ClearState(This,pPipelineState) \
  24135. ( (This)->lpVtbl -> ClearState(This,pPipelineState) )
  24136. #define ID3D12GraphicsCommandList9_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \
  24137. ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) )
  24138. #define ID3D12GraphicsCommandList9_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \
  24139. ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) )
  24140. #define ID3D12GraphicsCommandList9_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  24141. ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  24142. #define ID3D12GraphicsCommandList9_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \
  24143. ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) )
  24144. #define ID3D12GraphicsCommandList9_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \
  24145. ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) )
  24146. #define ID3D12GraphicsCommandList9_CopyResource(This,pDstResource,pSrcResource) \
  24147. ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) )
  24148. #define ID3D12GraphicsCommandList9_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \
  24149. ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) )
  24150. #define ID3D12GraphicsCommandList9_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \
  24151. ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) )
  24152. #define ID3D12GraphicsCommandList9_IASetPrimitiveTopology(This,PrimitiveTopology) \
  24153. ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) )
  24154. #define ID3D12GraphicsCommandList9_RSSetViewports(This,NumViewports,pViewports) \
  24155. ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) )
  24156. #define ID3D12GraphicsCommandList9_RSSetScissorRects(This,NumRects,pRects) \
  24157. ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) )
  24158. #define ID3D12GraphicsCommandList9_OMSetBlendFactor(This,BlendFactor) \
  24159. ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) )
  24160. #define ID3D12GraphicsCommandList9_OMSetStencilRef(This,StencilRef) \
  24161. ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) )
  24162. #define ID3D12GraphicsCommandList9_SetPipelineState(This,pPipelineState) \
  24163. ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) )
  24164. #define ID3D12GraphicsCommandList9_ResourceBarrier(This,NumBarriers,pBarriers) \
  24165. ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) )
  24166. #define ID3D12GraphicsCommandList9_ExecuteBundle(This,pCommandList) \
  24167. ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) )
  24168. #define ID3D12GraphicsCommandList9_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \
  24169. ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) )
  24170. #define ID3D12GraphicsCommandList9_SetComputeRootSignature(This,pRootSignature) \
  24171. ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) )
  24172. #define ID3D12GraphicsCommandList9_SetGraphicsRootSignature(This,pRootSignature) \
  24173. ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) )
  24174. #define ID3D12GraphicsCommandList9_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  24175. ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  24176. #define ID3D12GraphicsCommandList9_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \
  24177. ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) )
  24178. #define ID3D12GraphicsCommandList9_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  24179. ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  24180. #define ID3D12GraphicsCommandList9_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \
  24181. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) )
  24182. #define ID3D12GraphicsCommandList9_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  24183. ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  24184. #define ID3D12GraphicsCommandList9_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \
  24185. ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) )
  24186. #define ID3D12GraphicsCommandList9_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  24187. ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  24188. #define ID3D12GraphicsCommandList9_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \
  24189. ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) )
  24190. #define ID3D12GraphicsCommandList9_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  24191. ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  24192. #define ID3D12GraphicsCommandList9_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \
  24193. ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) )
  24194. #define ID3D12GraphicsCommandList9_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  24195. ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  24196. #define ID3D12GraphicsCommandList9_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \
  24197. ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) )
  24198. #define ID3D12GraphicsCommandList9_IASetIndexBuffer(This,pView) \
  24199. ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) )
  24200. #define ID3D12GraphicsCommandList9_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \
  24201. ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) )
  24202. #define ID3D12GraphicsCommandList9_SOSetTargets(This,StartSlot,NumViews,pViews) \
  24203. ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) )
  24204. #define ID3D12GraphicsCommandList9_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \
  24205. ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) )
  24206. #define ID3D12GraphicsCommandList9_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \
  24207. ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) )
  24208. #define ID3D12GraphicsCommandList9_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \
  24209. ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) )
  24210. #define ID3D12GraphicsCommandList9_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  24211. ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  24212. #define ID3D12GraphicsCommandList9_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \
  24213. ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) )
  24214. #define ID3D12GraphicsCommandList9_DiscardResource(This,pResource,pRegion) \
  24215. ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) )
  24216. #define ID3D12GraphicsCommandList9_BeginQuery(This,pQueryHeap,Type,Index) \
  24217. ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) )
  24218. #define ID3D12GraphicsCommandList9_EndQuery(This,pQueryHeap,Type,Index) \
  24219. ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) )
  24220. #define ID3D12GraphicsCommandList9_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \
  24221. ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) )
  24222. #define ID3D12GraphicsCommandList9_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \
  24223. ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) )
  24224. #define ID3D12GraphicsCommandList9_SetMarker(This,Metadata,pData,Size) \
  24225. ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) )
  24226. #define ID3D12GraphicsCommandList9_BeginEvent(This,Metadata,pData,Size) \
  24227. ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) )
  24228. #define ID3D12GraphicsCommandList9_EndEvent(This) \
  24229. ( (This)->lpVtbl -> EndEvent(This) )
  24230. #define ID3D12GraphicsCommandList9_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \
  24231. ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) )
  24232. #define ID3D12GraphicsCommandList9_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  24233. ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  24234. #define ID3D12GraphicsCommandList9_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \
  24235. ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) )
  24236. #define ID3D12GraphicsCommandList9_OMSetDepthBounds(This,Min,Max) \
  24237. ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) )
  24238. #define ID3D12GraphicsCommandList9_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \
  24239. ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) )
  24240. #define ID3D12GraphicsCommandList9_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \
  24241. ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) )
  24242. #define ID3D12GraphicsCommandList9_SetViewInstanceMask(This,Mask) \
  24243. ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) )
  24244. #define ID3D12GraphicsCommandList9_WriteBufferImmediate(This,Count,pParams,pModes) \
  24245. ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) )
  24246. #define ID3D12GraphicsCommandList9_SetProtectedResourceSession(This,pProtectedResourceSession) \
  24247. ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) )
  24248. #define ID3D12GraphicsCommandList9_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \
  24249. ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) )
  24250. #define ID3D12GraphicsCommandList9_EndRenderPass(This) \
  24251. ( (This)->lpVtbl -> EndRenderPass(This) )
  24252. #define ID3D12GraphicsCommandList9_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \
  24253. ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) )
  24254. #define ID3D12GraphicsCommandList9_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \
  24255. ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) )
  24256. #define ID3D12GraphicsCommandList9_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \
  24257. ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) )
  24258. #define ID3D12GraphicsCommandList9_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \
  24259. ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) )
  24260. #define ID3D12GraphicsCommandList9_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \
  24261. ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) )
  24262. #define ID3D12GraphicsCommandList9_SetPipelineState1(This,pStateObject) \
  24263. ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) )
  24264. #define ID3D12GraphicsCommandList9_DispatchRays(This,pDesc) \
  24265. ( (This)->lpVtbl -> DispatchRays(This,pDesc) )
  24266. #define ID3D12GraphicsCommandList9_RSSetShadingRate(This,baseShadingRate,combiners) \
  24267. ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) )
  24268. #define ID3D12GraphicsCommandList9_RSSetShadingRateImage(This,shadingRateImage) \
  24269. ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) )
  24270. #define ID3D12GraphicsCommandList9_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \
  24271. ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) )
  24272. #define ID3D12GraphicsCommandList9_Barrier(This,NumBarrierGroups,pBarrierGroups) \
  24273. ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) )
  24274. #define ID3D12GraphicsCommandList9_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \
  24275. ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) )
  24276. #define ID3D12GraphicsCommandList9_RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) \
  24277. ( (This)->lpVtbl -> RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) )
  24278. #define ID3D12GraphicsCommandList9_IASetIndexBufferStripCutValue(This,IBStripCutValue) \
  24279. ( (This)->lpVtbl -> IASetIndexBufferStripCutValue(This,IBStripCutValue) )
  24280. #endif /* COBJMACROS */
  24281. #endif /* C style interface */
  24282. #endif /* __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__ */
  24283. /* interface __MIDL_itf_d3d12_0000_0068 */
  24284. /* [local] */
  24285. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */
  24286. #pragma endregion
  24287. DEFINE_GUID(IID_ID3D12Object,0xc4fec28f,0x7966,0x4e95,0x9f,0x94,0xf4,0x31,0xcb,0x56,0xc3,0xb8);
  24288. DEFINE_GUID(IID_ID3D12DeviceChild,0x905db94b,0xa00c,0x4140,0x9d,0xf5,0x2b,0x64,0xca,0x9e,0xa3,0x57);
  24289. DEFINE_GUID(IID_ID3D12RootSignature,0xc54a6b66,0x72df,0x4ee8,0x8b,0xe5,0xa9,0x46,0xa1,0x42,0x92,0x14);
  24290. DEFINE_GUID(IID_ID3D12RootSignatureDeserializer,0x34AB647B,0x3CC8,0x46AC,0x84,0x1B,0xC0,0x96,0x56,0x45,0xC0,0x46);
  24291. DEFINE_GUID(IID_ID3D12VersionedRootSignatureDeserializer,0x7F91CE67,0x090C,0x4BB7,0xB7,0x8E,0xED,0x8F,0xF2,0xE3,0x1D,0xA0);
  24292. DEFINE_GUID(IID_ID3D12Pageable,0x63ee58fb,0x1268,0x4835,0x86,0xda,0xf0,0x08,0xce,0x62,0xf0,0xd6);
  24293. DEFINE_GUID(IID_ID3D12Heap,0x6b3b2502,0x6e51,0x45b3,0x90,0xee,0x98,0x84,0x26,0x5e,0x8d,0xf3);
  24294. DEFINE_GUID(IID_ID3D12Resource,0x696442be,0xa72e,0x4059,0xbc,0x79,0x5b,0x5c,0x98,0x04,0x0f,0xad);
  24295. DEFINE_GUID(IID_ID3D12CommandAllocator,0x6102dee4,0xaf59,0x4b09,0xb9,0x99,0xb4,0x4d,0x73,0xf0,0x9b,0x24);
  24296. DEFINE_GUID(IID_ID3D12Fence,0x0a753dcf,0xc4d8,0x4b91,0xad,0xf6,0xbe,0x5a,0x60,0xd9,0x5a,0x76);
  24297. DEFINE_GUID(IID_ID3D12Fence1,0x433685fe,0xe22b,0x4ca0,0xa8,0xdb,0xb5,0xb4,0xf4,0xdd,0x0e,0x4a);
  24298. DEFINE_GUID(IID_ID3D12PipelineState,0x765a30f3,0xf624,0x4c6f,0xa8,0x28,0xac,0xe9,0x48,0x62,0x24,0x45);
  24299. DEFINE_GUID(IID_ID3D12DescriptorHeap,0x8efb471d,0x616c,0x4f49,0x90,0xf7,0x12,0x7b,0xb7,0x63,0xfa,0x51);
  24300. DEFINE_GUID(IID_ID3D12QueryHeap,0x0d9658ae,0xed45,0x469e,0xa6,0x1d,0x97,0x0e,0xc5,0x83,0xca,0xb4);
  24301. DEFINE_GUID(IID_ID3D12CommandSignature,0xc36a797c,0xec80,0x4f0a,0x89,0x85,0xa7,0xb2,0x47,0x50,0x82,0xd1);
  24302. DEFINE_GUID(IID_ID3D12CommandList,0x7116d91c,0xe7e4,0x47ce,0xb8,0xc6,0xec,0x81,0x68,0xf4,0x37,0xe5);
  24303. DEFINE_GUID(IID_ID3D12GraphicsCommandList,0x5b160d0f,0xac1b,0x4185,0x8b,0xa8,0xb3,0xae,0x42,0xa5,0xa4,0x55);
  24304. DEFINE_GUID(IID_ID3D12GraphicsCommandList1,0x553103fb,0x1fe7,0x4557,0xbb,0x38,0x94,0x6d,0x7d,0x0e,0x7c,0xa7);
  24305. DEFINE_GUID(IID_ID3D12GraphicsCommandList2,0x38C3E585,0xFF17,0x412C,0x91,0x50,0x4F,0xC6,0xF9,0xD7,0x2A,0x28);
  24306. DEFINE_GUID(IID_ID3D12CommandQueue,0x0ec870a6,0x5d7e,0x4c22,0x8c,0xfc,0x5b,0xaa,0xe0,0x76,0x16,0xed);
  24307. DEFINE_GUID(IID_ID3D12Device,0x189819f1,0x1db6,0x4b57,0xbe,0x54,0x18,0x21,0x33,0x9b,0x85,0xf7);
  24308. DEFINE_GUID(IID_ID3D12PipelineLibrary,0xc64226a8,0x9201,0x46af,0xb4,0xcc,0x53,0xfb,0x9f,0xf7,0x41,0x4f);
  24309. DEFINE_GUID(IID_ID3D12PipelineLibrary1,0x80eabf42,0x2568,0x4e5e,0xbd,0x82,0xc3,0x7f,0x86,0x96,0x1d,0xc3);
  24310. DEFINE_GUID(IID_ID3D12Device1,0x77acce80,0x638e,0x4e65,0x88,0x95,0xc1,0xf2,0x33,0x86,0x86,0x3e);
  24311. DEFINE_GUID(IID_ID3D12Device2,0x30baa41e,0xb15b,0x475c,0xa0,0xbb,0x1a,0xf5,0xc5,0xb6,0x43,0x28);
  24312. DEFINE_GUID(IID_ID3D12Device3,0x81dadc15,0x2bad,0x4392,0x93,0xc5,0x10,0x13,0x45,0xc4,0xaa,0x98);
  24313. DEFINE_GUID(IID_ID3D12ProtectedSession,0xA1533D18,0x0AC1,0x4084,0x85,0xB9,0x89,0xA9,0x61,0x16,0x80,0x6B);
  24314. DEFINE_GUID(IID_ID3D12ProtectedResourceSession,0x6CD696F4,0xF289,0x40CC,0x80,0x91,0x5A,0x6C,0x0A,0x09,0x9C,0x3D);
  24315. DEFINE_GUID(IID_ID3D12Device4,0xe865df17,0xa9ee,0x46f9,0xa4,0x63,0x30,0x98,0x31,0x5a,0xa2,0xe5);
  24316. DEFINE_GUID(IID_ID3D12LifetimeOwner,0xe667af9f,0xcd56,0x4f46,0x83,0xce,0x03,0x2e,0x59,0x5d,0x70,0xa8);
  24317. DEFINE_GUID(IID_ID3D12SwapChainAssistant,0xf1df64b6,0x57fd,0x49cd,0x88,0x07,0xc0,0xeb,0x88,0xb4,0x5c,0x8f);
  24318. DEFINE_GUID(IID_ID3D12LifetimeTracker,0x3fd03d36,0x4eb1,0x424a,0xa5,0x82,0x49,0x4e,0xcb,0x8b,0xa8,0x13);
  24319. DEFINE_GUID(IID_ID3D12StateObject,0x47016943,0xfca8,0x4594,0x93,0xea,0xaf,0x25,0x8b,0x55,0x34,0x6d);
  24320. DEFINE_GUID(IID_ID3D12StateObjectProperties,0xde5fa827,0x9bf9,0x4f26,0x89,0xff,0xd7,0xf5,0x6f,0xde,0x38,0x60);
  24321. DEFINE_GUID(IID_ID3D12Device5,0x8b4f173b,0x2fea,0x4b80,0x8f,0x58,0x43,0x07,0x19,0x1a,0xb9,0x5d);
  24322. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings,0x82BC481C,0x6B9B,0x4030,0xAE,0xDB,0x7E,0xE3,0xD1,0xDF,0x1E,0x63);
  24323. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings1,0xDBD5AE51,0x3317,0x4F0A,0xAD,0xF9,0x1D,0x7C,0xED,0xCA,0xAE,0x0B);
  24324. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings2,0x61552388,0x01ab,0x4008,0xa4,0x36,0x83,0xdb,0x18,0x95,0x66,0xea);
  24325. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData,0x98931D33,0x5AE8,0x4791,0xAA,0x3C,0x1A,0x73,0xA2,0x93,0x4E,0x71);
  24326. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData1,0x9727A022,0xCF1D,0x4DDA,0x9E,0xBA,0xEF,0xFA,0x65,0x3F,0xC5,0x06);
  24327. DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData2,0x67FC5816,0xE4CA,0x4915,0xBF,0x18,0x42,0x54,0x12,0x72,0xDA,0x54);
  24328. DEFINE_GUID(IID_ID3D12Device6,0xc70b221b,0x40e4,0x4a17,0x89,0xaf,0x02,0x5a,0x07,0x27,0xa6,0xdc);
  24329. DEFINE_GUID(IID_ID3D12ProtectedResourceSession1,0xD6F12DD6,0x76FB,0x406E,0x89,0x61,0x42,0x96,0xEE,0xFC,0x04,0x09);
  24330. DEFINE_GUID(IID_ID3D12Device7,0x5c014b53,0x68a1,0x4b9b,0x8b,0xd1,0xdd,0x60,0x46,0xb9,0x35,0x8b);
  24331. DEFINE_GUID(IID_ID3D12Device8,0x9218E6BB,0xF944,0x4F7E,0xA7,0x5C,0xB1,0xB2,0xC7,0xB7,0x01,0xF3);
  24332. DEFINE_GUID(IID_ID3D12Resource1,0x9D5E227A,0x4430,0x4161,0x88,0xB3,0x3E,0xCA,0x6B,0xB1,0x6E,0x19);
  24333. DEFINE_GUID(IID_ID3D12Resource2,0xBE36EC3B,0xEA85,0x4AEB,0xA4,0x5A,0xE9,0xD7,0x64,0x04,0xA4,0x95);
  24334. DEFINE_GUID(IID_ID3D12Heap1,0x572F7389,0x2168,0x49E3,0x96,0x93,0xD6,0xDF,0x58,0x71,0xBF,0x6D);
  24335. DEFINE_GUID(IID_ID3D12GraphicsCommandList3,0x6FDA83A7,0xB84C,0x4E38,0x9A,0xC8,0xC7,0xBD,0x22,0x01,0x6B,0x3D);
  24336. DEFINE_GUID(IID_ID3D12MetaCommand,0xDBB84C27,0x36CE,0x4FC9,0xB8,0x01,0xF0,0x48,0xC4,0x6A,0xC5,0x70);
  24337. DEFINE_GUID(IID_ID3D12GraphicsCommandList4,0x8754318e,0xd3a9,0x4541,0x98,0xcf,0x64,0x5b,0x50,0xdc,0x48,0x74);
  24338. DEFINE_GUID(IID_ID3D12ShaderCacheSession,0x28e2495d,0x0f64,0x4ae4,0xa6,0xec,0x12,0x92,0x55,0xdc,0x49,0xa8);
  24339. DEFINE_GUID(IID_ID3D12Device9,0x4c80e962,0xf032,0x4f60,0xbc,0x9e,0xeb,0xc2,0xcf,0xa1,0xd8,0x3c);
  24340. DEFINE_GUID(IID_ID3D12Device10,0x517f8718,0xaa66,0x49f9,0xb0,0x2b,0xa7,0xab,0x89,0xc0,0x60,0x31);
  24341. DEFINE_GUID(IID_ID3D12Device11,0x5405c344,0xd457,0x444e,0xb4,0xdd,0x23,0x66,0xe4,0x5a,0xee,0x39);
  24342. DEFINE_GUID(IID_ID3D12Device12,0x5af5c532,0x4c91,0x4cd0,0xb5,0x41,0x15,0xa4,0x05,0x39,0x5f,0xc5);
  24343. DEFINE_GUID(IID_ID3D12Device13,0x14eecffc,0x4df8,0x40f7,0xa1,0x18,0x5c,0x81,0x6f,0x45,0x69,0x5e);
  24344. DEFINE_GUID(IID_ID3D12VirtualizationGuestDevice,0xbc66d368,0x7373,0x4943,0x87,0x57,0xfc,0x87,0xdc,0x79,0xe4,0x76);
  24345. DEFINE_GUID(IID_ID3D12Tools,0x7071e1f0,0xe84b,0x4b33,0x97,0x4f,0x12,0xfa,0x49,0xde,0x65,0xc5);
  24346. DEFINE_GUID(IID_ID3D12SDKConfiguration,0xe9eb5314,0x33aa,0x42b2,0xa7,0x18,0xd7,0x7f,0x58,0xb1,0xf1,0xc7);
  24347. DEFINE_GUID(IID_ID3D12SDKConfiguration1,0x8aaf9303,0xad25,0x48b9,0x9a,0x57,0xd9,0xc3,0x7e,0x00,0x9d,0x9f);
  24348. DEFINE_GUID(IID_ID3D12DeviceFactory,0x61f307d3,0xd34e,0x4e7c,0x83,0x74,0x3b,0xa4,0xde,0x23,0xcc,0xcb);
  24349. DEFINE_GUID(IID_ID3D12DeviceConfiguration,0x78dbf87b,0xf766,0x422b,0xa6,0x1c,0xc8,0xc4,0x46,0xbd,0xb9,0xad);
  24350. DEFINE_GUID(IID_ID3D12GraphicsCommandList5,0x55050859,0x4024,0x474c,0x87,0xf5,0x64,0x72,0xea,0xee,0x44,0xea);
  24351. DEFINE_GUID(IID_ID3D12GraphicsCommandList6,0xc3827890,0xe548,0x4cfa,0x96,0xcf,0x56,0x89,0xa9,0x37,0x0f,0x80);
  24352. DEFINE_GUID(IID_ID3D12GraphicsCommandList7,0xdd171223,0x8b61,0x4769,0x90,0xe3,0x16,0x0c,0xcd,0xe4,0xe2,0xc1);
  24353. DEFINE_GUID(IID_ID3D12GraphicsCommandList8,0xee936ef9,0x599d,0x4d28,0x93,0x8e,0x23,0xc4,0xad,0x05,0xce,0x51);
  24354. DEFINE_GUID(IID_ID3D12GraphicsCommandList9,0x34ed2808,0xffe6,0x4c2b,0xb1,0x1a,0xca,0xbd,0x2b,0x0c,0x59,0xe1);
  24355. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0068_v0_0_c_ifspec;
  24356. extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0068_v0_0_s_ifspec;
  24357. /* Additional Prototypes for ALL interfaces */
  24358. /* end of Additional Prototypes */
  24359. #ifdef __cplusplus
  24360. }
  24361. #endif
  24362. #endif