d3d12.h 348 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794
  1. /*** Autogenerated by WIDL 7.7 from include/d3d12.idl - Do not edit ***/
  2. #ifdef _WIN32
  3. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  4. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  5. #endif
  6. #include <rpc.h>
  7. #include <rpcndr.h>
  8. #endif
  9. #ifndef COM_NO_WINDOWS_H
  10. #include <windows.h>
  11. #include <ole2.h>
  12. #endif
  13. #ifndef __d3d12_h__
  14. #define __d3d12_h__
  15. /* Forward declarations */
  16. #ifndef __ID3D12Object_FWD_DEFINED__
  17. #define __ID3D12Object_FWD_DEFINED__
  18. typedef interface ID3D12Object ID3D12Object;
  19. #ifdef __cplusplus
  20. interface ID3D12Object;
  21. #endif /* __cplusplus */
  22. #endif
  23. #ifndef __ID3D12DeviceChild_FWD_DEFINED__
  24. #define __ID3D12DeviceChild_FWD_DEFINED__
  25. typedef interface ID3D12DeviceChild ID3D12DeviceChild;
  26. #ifdef __cplusplus
  27. interface ID3D12DeviceChild;
  28. #endif /* __cplusplus */
  29. #endif
  30. #ifndef __ID3D12Pageable_FWD_DEFINED__
  31. #define __ID3D12Pageable_FWD_DEFINED__
  32. typedef interface ID3D12Pageable ID3D12Pageable;
  33. #ifdef __cplusplus
  34. interface ID3D12Pageable;
  35. #endif /* __cplusplus */
  36. #endif
  37. #ifndef __ID3D12Heap_FWD_DEFINED__
  38. #define __ID3D12Heap_FWD_DEFINED__
  39. typedef interface ID3D12Heap ID3D12Heap;
  40. #ifdef __cplusplus
  41. interface ID3D12Heap;
  42. #endif /* __cplusplus */
  43. #endif
  44. #ifndef __ID3D12Resource_FWD_DEFINED__
  45. #define __ID3D12Resource_FWD_DEFINED__
  46. typedef interface ID3D12Resource ID3D12Resource;
  47. #ifdef __cplusplus
  48. interface ID3D12Resource;
  49. #endif /* __cplusplus */
  50. #endif
  51. #ifndef __ID3D12CommandList_FWD_DEFINED__
  52. #define __ID3D12CommandList_FWD_DEFINED__
  53. typedef interface ID3D12CommandList ID3D12CommandList;
  54. #ifdef __cplusplus
  55. interface ID3D12CommandList;
  56. #endif /* __cplusplus */
  57. #endif
  58. #ifndef __ID3D12DescriptorHeap_FWD_DEFINED__
  59. #define __ID3D12DescriptorHeap_FWD_DEFINED__
  60. typedef interface ID3D12DescriptorHeap ID3D12DescriptorHeap;
  61. #ifdef __cplusplus
  62. interface ID3D12DescriptorHeap;
  63. #endif /* __cplusplus */
  64. #endif
  65. #ifndef __ID3D12QueryHeap_FWD_DEFINED__
  66. #define __ID3D12QueryHeap_FWD_DEFINED__
  67. typedef interface ID3D12QueryHeap ID3D12QueryHeap;
  68. #ifdef __cplusplus
  69. interface ID3D12QueryHeap;
  70. #endif /* __cplusplus */
  71. #endif
  72. #ifndef __ID3D12CommandSignature_FWD_DEFINED__
  73. #define __ID3D12CommandSignature_FWD_DEFINED__
  74. typedef interface ID3D12CommandSignature ID3D12CommandSignature;
  75. #ifdef __cplusplus
  76. interface ID3D12CommandSignature;
  77. #endif /* __cplusplus */
  78. #endif
  79. #ifndef __ID3D12GraphicsCommandList_FWD_DEFINED__
  80. #define __ID3D12GraphicsCommandList_FWD_DEFINED__
  81. typedef interface ID3D12GraphicsCommandList ID3D12GraphicsCommandList;
  82. #ifdef __cplusplus
  83. interface ID3D12GraphicsCommandList;
  84. #endif /* __cplusplus */
  85. #endif
  86. #ifndef __ID3D12GraphicsCommandList1_FWD_DEFINED__
  87. #define __ID3D12GraphicsCommandList1_FWD_DEFINED__
  88. typedef interface ID3D12GraphicsCommandList1 ID3D12GraphicsCommandList1;
  89. #ifdef __cplusplus
  90. interface ID3D12GraphicsCommandList1;
  91. #endif /* __cplusplus */
  92. #endif
  93. #ifndef __ID3D12GraphicsCommandList2_FWD_DEFINED__
  94. #define __ID3D12GraphicsCommandList2_FWD_DEFINED__
  95. typedef interface ID3D12GraphicsCommandList2 ID3D12GraphicsCommandList2;
  96. #ifdef __cplusplus
  97. interface ID3D12GraphicsCommandList2;
  98. #endif /* __cplusplus */
  99. #endif
  100. #ifndef __ID3D12CommandQueue_FWD_DEFINED__
  101. #define __ID3D12CommandQueue_FWD_DEFINED__
  102. typedef interface ID3D12CommandQueue ID3D12CommandQueue;
  103. #ifdef __cplusplus
  104. interface ID3D12CommandQueue;
  105. #endif /* __cplusplus */
  106. #endif
  107. #ifndef __ID3D12RootSignature_FWD_DEFINED__
  108. #define __ID3D12RootSignature_FWD_DEFINED__
  109. typedef interface ID3D12RootSignature ID3D12RootSignature;
  110. #ifdef __cplusplus
  111. interface ID3D12RootSignature;
  112. #endif /* __cplusplus */
  113. #endif
  114. #ifndef __ID3D12PipelineState_FWD_DEFINED__
  115. #define __ID3D12PipelineState_FWD_DEFINED__
  116. typedef interface ID3D12PipelineState ID3D12PipelineState;
  117. #ifdef __cplusplus
  118. interface ID3D12PipelineState;
  119. #endif /* __cplusplus */
  120. #endif
  121. #ifndef __ID3D12Fence_FWD_DEFINED__
  122. #define __ID3D12Fence_FWD_DEFINED__
  123. typedef interface ID3D12Fence ID3D12Fence;
  124. #ifdef __cplusplus
  125. interface ID3D12Fence;
  126. #endif /* __cplusplus */
  127. #endif
  128. #ifndef __ID3D12CommandAllocator_FWD_DEFINED__
  129. #define __ID3D12CommandAllocator_FWD_DEFINED__
  130. typedef interface ID3D12CommandAllocator ID3D12CommandAllocator;
  131. #ifdef __cplusplus
  132. interface ID3D12CommandAllocator;
  133. #endif /* __cplusplus */
  134. #endif
  135. #ifndef __ID3D12Device_FWD_DEFINED__
  136. #define __ID3D12Device_FWD_DEFINED__
  137. typedef interface ID3D12Device ID3D12Device;
  138. #ifdef __cplusplus
  139. interface ID3D12Device;
  140. #endif /* __cplusplus */
  141. #endif
  142. #ifndef __ID3D12Device1_FWD_DEFINED__
  143. #define __ID3D12Device1_FWD_DEFINED__
  144. typedef interface ID3D12Device1 ID3D12Device1;
  145. #ifdef __cplusplus
  146. interface ID3D12Device1;
  147. #endif /* __cplusplus */
  148. #endif
  149. #ifndef __ID3D12RootSignatureDeserializer_FWD_DEFINED__
  150. #define __ID3D12RootSignatureDeserializer_FWD_DEFINED__
  151. typedef interface ID3D12RootSignatureDeserializer ID3D12RootSignatureDeserializer;
  152. #ifdef __cplusplus
  153. interface ID3D12RootSignatureDeserializer;
  154. #endif /* __cplusplus */
  155. #endif
  156. #ifndef __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__
  157. #define __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__
  158. typedef interface ID3D12VersionedRootSignatureDeserializer ID3D12VersionedRootSignatureDeserializer;
  159. #ifdef __cplusplus
  160. interface ID3D12VersionedRootSignatureDeserializer;
  161. #endif /* __cplusplus */
  162. #endif
  163. /* Headers for imported files */
  164. #include <oaidl.h>
  165. #include <ocidl.h>
  166. #include <dxgi.h>
  167. #include <d3dcommon.h>
  168. #ifdef __cplusplus
  169. extern "C" {
  170. #endif
  171. #ifndef _D3D12_CONSTANTS
  172. #define _D3D12_CONSTANTS
  173. #define D3D12_CS_TGSM_REGISTER_COUNT (8192)
  174. #define D3D12_MAX_ROOT_COST (64)
  175. #define D3D12_VIEWPORT_BOUNDS_MAX (32767)
  176. #define D3D12_VIEWPORT_BOUNDS_MIN (-32768)
  177. #define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT (15)
  178. #define D3D12_APPEND_ALIGNED_ELEMENT (0xffffffff)
  179. #define D3D12_DEFAULT_BLEND_FACTOR_ALPHA (1.0f)
  180. #define D3D12_DEFAULT_BLEND_FACTOR_BLUE (1.0f)
  181. #define D3D12_DEFAULT_BLEND_FACTOR_GREEN (1.0f)
  182. #define D3D12_DEFAULT_BLEND_FACTOR_RED (1.0f)
  183. #define D3D12_DEFAULT_DEPTH_BIAS (0)
  184. #define D3D12_DEFAULT_DEPTH_BIAS_CLAMP (0.0f)
  185. #define D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS (0.0f)
  186. #define D3D12_DEFAULT_STENCIL_READ_MASK (0xff)
  187. #define D3D12_DEFAULT_STENCIL_WRITE_MASK (0xff)
  188. #define D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND (0xffffffff)
  189. #define D3D12_FLOAT32_MAX (3.402823466e+38f)
  190. #define D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT (32)
  191. #define D3D12_UAV_SLOT_COUNT (64)
  192. #define D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT (4096)
  193. #define D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT (4096)
  194. #define D3D12_REQ_MIP_LEVELS (15)
  195. #define D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION (2048)
  196. #define D3D12_REQ_TEXTURE1D_U_DIMENSION (16384)
  197. #define D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION (2048)
  198. #define D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION (16384)
  199. #define D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION (2048)
  200. #define D3D12_REQ_TEXTURECUBE_DIMENSION (16384)
  201. #define D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES (0xffffffff)
  202. #define D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT (8)
  203. #define D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES (2048)
  204. #define D3D12_SO_BUFFER_SLOT_COUNT (4)
  205. #define D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP (0xffffffff)
  206. #define D3D12_SO_NO_RASTERIZED_STREAM (0xffffffff)
  207. #define D3D12_SO_OUTPUT_COMPONENT_COUNT (128)
  208. #define D3D12_SO_STREAM_COUNT (4)
  209. #define D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT (256)
  210. #define D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT (4194304)
  211. #define D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT (65536)
  212. #define D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT (16)
  213. #define D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT (65536)
  214. #define D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT (4096)
  215. #define D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE (4)
  216. #define D3D12_TEXTURE_DATA_PITCH_ALIGNMENT (256)
  217. #define D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT (512)
  218. #define D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT (4096)
  219. #define D3D12_VS_INPUT_REGISTER_COUNT (32)
  220. #define D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE (16)
  221. #endif
  222. #define D3D12_SHADER_COMPONENT_MAPPING_MASK (0x7)
  223. #define D3D12_SHADER_COMPONENT_MAPPING_SHIFT (3)
  224. #define D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES (1 << (D3D12_SHADER_COMPONENT_MAPPING_SHIFT * 4))
  225. typedef enum D3D12_SHADER_MIN_PRECISION_SUPPORT {
  226. D3D12_SHADER_MIN_PRECISION_SUPPORT_NONE = 0x0,
  227. D3D12_SHADER_MIN_PRECISION_SUPPORT_10_BIT = 0x1,
  228. D3D12_SHADER_MIN_PRECISION_SUPPORT_16_BIT = 0x2
  229. } D3D12_SHADER_MIN_PRECISION_SUPPORT;
  230. DEFINE_ENUM_FLAG_OPERATORS(D3D12_SHADER_MIN_PRECISION_SUPPORT);
  231. typedef enum D3D12_TILED_RESOURCES_TIER {
  232. D3D12_TILED_RESOURCES_TIER_NOT_SUPPORTED = 0,
  233. D3D12_TILED_RESOURCES_TIER_1 = 1,
  234. D3D12_TILED_RESOURCES_TIER_2 = 2,
  235. D3D12_TILED_RESOURCES_TIER_3 = 3
  236. } D3D12_TILED_RESOURCES_TIER;
  237. typedef enum D3D12_RESOURCE_BINDING_TIER {
  238. D3D12_RESOURCE_BINDING_TIER_1 = 1,
  239. D3D12_RESOURCE_BINDING_TIER_2 = 2,
  240. D3D12_RESOURCE_BINDING_TIER_3 = 3
  241. } D3D12_RESOURCE_BINDING_TIER;
  242. typedef enum D3D12_CONSERVATIVE_RASTERIZATION_TIER {
  243. D3D12_CONSERVATIVE_RASTERIZATION_TIER_NOT_SUPPORTED = 0,
  244. D3D12_CONSERVATIVE_RASTERIZATION_TIER_1 = 1,
  245. D3D12_CONSERVATIVE_RASTERIZATION_TIER_2 = 2,
  246. D3D12_CONSERVATIVE_RASTERIZATION_TIER_3 = 3
  247. } D3D12_CONSERVATIVE_RASTERIZATION_TIER;
  248. typedef enum D3D12_CROSS_NODE_SHARING_TIER {
  249. D3D12_CROSS_NODE_SHARING_TIER_NOT_SUPPORTED = 0,
  250. D3D12_CROSS_NODE_SHARING_TIER_1_EMULATED = 1,
  251. D3D12_CROSS_NODE_SHARING_TIER_1 = 2,
  252. D3D12_CROSS_NODE_SHARING_TIER_2 = 3
  253. } D3D12_CROSS_NODE_SHARING_TIER;
  254. typedef enum D3D12_RESOURCE_HEAP_TIER {
  255. D3D12_RESOURCE_HEAP_TIER_1 = 1,
  256. D3D12_RESOURCE_HEAP_TIER_2 = 2
  257. } D3D12_RESOURCE_HEAP_TIER;
  258. typedef enum D3D12_FORMAT_SUPPORT1 {
  259. D3D12_FORMAT_SUPPORT1_NONE = 0x0,
  260. D3D12_FORMAT_SUPPORT1_BUFFER = 0x1,
  261. D3D12_FORMAT_SUPPORT1_IA_VERTEX_BUFFER = 0x2,
  262. D3D12_FORMAT_SUPPORT1_IA_INDEX_BUFFER = 0x4,
  263. D3D12_FORMAT_SUPPORT1_SO_BUFFER = 0x8,
  264. D3D12_FORMAT_SUPPORT1_TEXTURE1D = 0x10,
  265. D3D12_FORMAT_SUPPORT1_TEXTURE2D = 0x20,
  266. D3D12_FORMAT_SUPPORT1_TEXTURE3D = 0x40,
  267. D3D12_FORMAT_SUPPORT1_TEXTURECUBE = 0x80,
  268. D3D12_FORMAT_SUPPORT1_SHADER_LOAD = 0x100,
  269. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE = 0x200,
  270. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_COMPARISON = 0x400,
  271. D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_MONO_TEXT = 0x800,
  272. D3D12_FORMAT_SUPPORT1_MIP = 0x1000,
  273. D3D12_FORMAT_SUPPORT1_RENDER_TARGET = 0x4000,
  274. D3D12_FORMAT_SUPPORT1_BLENDABLE = 0x8000,
  275. D3D12_FORMAT_SUPPORT1_DEPTH_STENCIL = 0x10000,
  276. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RESOLVE = 0x40000,
  277. D3D12_FORMAT_SUPPORT1_DISPLAY = 0x80000,
  278. D3D12_FORMAT_SUPPORT1_CAST_WITHIN_BIT_LAYOUT = 0x100000,
  279. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RENDERTARGET = 0x200000,
  280. D3D12_FORMAT_SUPPORT1_MULTISAMPLE_LOAD = 0x400000,
  281. D3D12_FORMAT_SUPPORT1_SHADER_GATHER = 0x800000,
  282. D3D12_FORMAT_SUPPORT1_BACK_BUFFER_CAST = 0x1000000,
  283. D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW = 0x2000000,
  284. D3D12_FORMAT_SUPPORT1_SHADER_GATHER_COMPARISON = 0x4000000,
  285. D3D12_FORMAT_SUPPORT1_DECODER_OUTPUT = 0x8000000,
  286. D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_OUTPUT = 0x10000000,
  287. D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_INPUT = 0x20000000,
  288. D3D12_FORMAT_SUPPORT1_VIDEO_ENCODER = 0x40000000
  289. } D3D12_FORMAT_SUPPORT1;
  290. DEFINE_ENUM_FLAG_OPERATORS(D3D12_FORMAT_SUPPORT1);
  291. typedef enum D3D12_FORMAT_SUPPORT2 {
  292. D3D12_FORMAT_SUPPORT2_NONE = 0x0,
  293. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x1,
  294. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x2,
  295. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x4,
  296. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x8,
  297. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x10,
  298. D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x20,
  299. D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x40,
  300. D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x80,
  301. D3D12_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x100,
  302. D3D12_FORMAT_SUPPORT2_TILED = 0x200,
  303. D3D12_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x4000
  304. } D3D12_FORMAT_SUPPORT2;
  305. DEFINE_ENUM_FLAG_OPERATORS(D3D12_FORMAT_SUPPORT2);
  306. typedef enum D3D12_WRITEBUFFERIMMEDIATE_MODE {
  307. D3D12_WRITEBUFFERIMMEDIATE_MODE_DEFAULT = 0x0,
  308. D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_IN = 0x1,
  309. D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_OUT = 0x2
  310. } D3D12_WRITEBUFFERIMMEDIATE_MODE;
  311. typedef enum D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER {
  312. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_NOT_SUPPORTED = 0x0,
  313. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_1 = 0x1,
  314. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_2 = 0x2
  315. } D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER;
  316. typedef enum D3D12_SHADER_CACHE_SUPPORT_FLAGS {
  317. D3D12_SHADER_CACHE_SUPPORT_NONE = 0x0,
  318. D3D12_SHADER_CACHE_SUPPORT_SINGLE_PSO = 0x1,
  319. D3D12_SHADER_CACHE_SUPPORT_LIBRARY = 0x2,
  320. D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x4,
  321. D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x8
  322. } D3D12_SHADER_CACHE_SUPPORT_FLAGS;
  323. DEFINE_ENUM_FLAG_OPERATORS(D3D12_SHADER_CACHE_SUPPORT_FLAGS);
  324. typedef enum D3D12_COMMAND_LIST_SUPPORT_FLAGS {
  325. D3D12_COMMAND_LIST_SUPPORT_FLAG_NONE = 0x0,
  326. D3D12_COMMAND_LIST_SUPPORT_FLAG_DIRECT = 0x1,
  327. D3D12_COMMAND_LIST_SUPPORT_FLAG_BUNDLE = 0x2,
  328. D3D12_COMMAND_LIST_SUPPORT_FLAG_COMPUTE = 0x4,
  329. D3D12_COMMAND_LIST_SUPPORT_FLAG_COPY = 0x8,
  330. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_DECODE = 0x10,
  331. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_PROCESS = 0x20,
  332. D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_ENCODE = 0x40
  333. } D3D12_COMMAND_LIST_SUPPORT_FLAGS;
  334. DEFINE_ENUM_FLAG_OPERATORS(D3D12_COMMAND_LIST_SUPPORT_FLAGS);
  335. typedef enum D3D12_VIEW_INSTANCING_TIER {
  336. D3D12_VIEW_INSTANCING_TIER_NOT_SUPPORTED = 0x0,
  337. D3D12_VIEW_INSTANCING_TIER_1 = 0x1,
  338. D3D12_VIEW_INSTANCING_TIER_2 = 0x2,
  339. D3D12_VIEW_INSTANCING_TIER_3 = 0x3
  340. } D3D12_VIEW_INSTANCING_TIER;
  341. typedef enum D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER {
  342. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 = 0x0,
  343. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 = 0x1
  344. } D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER;
  345. typedef enum D3D12_HEAP_SERIALIZATION_TIER {
  346. D3D12_HEAP_SERIALIZATION_TIER_0 = 0x0,
  347. D3D12_HEAP_SERIALIZATION_TIER_10 = 0xa
  348. } D3D12_HEAP_SERIALIZATION_TIER;
  349. typedef enum D3D12_RENDER_PASS_TIER {
  350. D3D12_RENDER_PASS_TIER_0 = 0x0,
  351. D3D12_RENDER_PASS_TIER_1 = 0x1,
  352. D3D12_RENDER_PASS_TIER_2 = 0x2
  353. } D3D12_RENDER_PASS_TIER;
  354. typedef enum D3D12_RAYTRACING_TIER {
  355. D3D12_RAYTRACING_TIER_NOT_SUPPORTED = 0x0,
  356. D3D12_RAYTRACING_TIER_1_0 = 0xa
  357. } D3D12_RAYTRACING_TIER;
  358. #ifndef __ID3D12Fence_FWD_DEFINED__
  359. #define __ID3D12Fence_FWD_DEFINED__
  360. typedef interface ID3D12Fence ID3D12Fence;
  361. #ifdef __cplusplus
  362. interface ID3D12Fence;
  363. #endif /* __cplusplus */
  364. #endif
  365. #ifndef __ID3D12RootSignature_FWD_DEFINED__
  366. #define __ID3D12RootSignature_FWD_DEFINED__
  367. typedef interface ID3D12RootSignature ID3D12RootSignature;
  368. #ifdef __cplusplus
  369. interface ID3D12RootSignature;
  370. #endif /* __cplusplus */
  371. #endif
  372. #ifndef __ID3D12Heap_FWD_DEFINED__
  373. #define __ID3D12Heap_FWD_DEFINED__
  374. typedef interface ID3D12Heap ID3D12Heap;
  375. #ifdef __cplusplus
  376. interface ID3D12Heap;
  377. #endif /* __cplusplus */
  378. #endif
  379. #ifndef __ID3D12DescriptorHeap_FWD_DEFINED__
  380. #define __ID3D12DescriptorHeap_FWD_DEFINED__
  381. typedef interface ID3D12DescriptorHeap ID3D12DescriptorHeap;
  382. #ifdef __cplusplus
  383. interface ID3D12DescriptorHeap;
  384. #endif /* __cplusplus */
  385. #endif
  386. #ifndef __ID3D12Resource_FWD_DEFINED__
  387. #define __ID3D12Resource_FWD_DEFINED__
  388. typedef interface ID3D12Resource ID3D12Resource;
  389. #ifdef __cplusplus
  390. interface ID3D12Resource;
  391. #endif /* __cplusplus */
  392. #endif
  393. #ifndef __ID3D12CommandAllocator_FWD_DEFINED__
  394. #define __ID3D12CommandAllocator_FWD_DEFINED__
  395. typedef interface ID3D12CommandAllocator ID3D12CommandAllocator;
  396. #ifdef __cplusplus
  397. interface ID3D12CommandAllocator;
  398. #endif /* __cplusplus */
  399. #endif
  400. #ifndef __ID3D12GraphicsCommandList_FWD_DEFINED__
  401. #define __ID3D12GraphicsCommandList_FWD_DEFINED__
  402. typedef interface ID3D12GraphicsCommandList ID3D12GraphicsCommandList;
  403. #ifdef __cplusplus
  404. interface ID3D12GraphicsCommandList;
  405. #endif /* __cplusplus */
  406. #endif
  407. #ifndef __ID3D12CommandQueue_FWD_DEFINED__
  408. #define __ID3D12CommandQueue_FWD_DEFINED__
  409. typedef interface ID3D12CommandQueue ID3D12CommandQueue;
  410. #ifdef __cplusplus
  411. interface ID3D12CommandQueue;
  412. #endif /* __cplusplus */
  413. #endif
  414. #ifndef __ID3D12PipelineState_FWD_DEFINED__
  415. #define __ID3D12PipelineState_FWD_DEFINED__
  416. typedef interface ID3D12PipelineState ID3D12PipelineState;
  417. #ifdef __cplusplus
  418. interface ID3D12PipelineState;
  419. #endif /* __cplusplus */
  420. #endif
  421. #ifndef __ID3D12Device_FWD_DEFINED__
  422. #define __ID3D12Device_FWD_DEFINED__
  423. typedef interface ID3D12Device ID3D12Device;
  424. #ifdef __cplusplus
  425. interface ID3D12Device;
  426. #endif /* __cplusplus */
  427. #endif
  428. typedef RECT D3D12_RECT;
  429. typedef struct D3D12_BOX {
  430. UINT left;
  431. UINT top;
  432. UINT front;
  433. UINT right;
  434. UINT bottom;
  435. UINT back;
  436. } D3D12_BOX;
  437. typedef struct D3D12_VIEWPORT {
  438. FLOAT TopLeftX;
  439. FLOAT TopLeftY;
  440. FLOAT Width;
  441. FLOAT Height;
  442. FLOAT MinDepth;
  443. FLOAT MaxDepth;
  444. } D3D12_VIEWPORT;
  445. typedef struct D3D12_RANGE {
  446. SIZE_T Begin;
  447. SIZE_T End;
  448. } D3D12_RANGE;
  449. typedef struct D3D12_RANGE_UINT64 {
  450. UINT64 Begin;
  451. UINT64 End;
  452. } D3D12_RANGE_UINT64;
  453. typedef struct D3D12_SUBRESOURCE_RANGE_UINT64 {
  454. UINT Subresource;
  455. D3D12_RANGE_UINT64 Range;
  456. } D3D12_SUBRESOURCE_RANGE_UINT64;
  457. typedef struct D3D12_RESOURCE_ALLOCATION_INFO {
  458. UINT64 SizeInBytes;
  459. UINT64 Alignment;
  460. } D3D12_RESOURCE_ALLOCATION_INFO;
  461. typedef struct D3D12_DRAW_ARGUMENTS {
  462. UINT VertexCountPerInstance;
  463. UINT InstanceCount;
  464. UINT StartVertexLocation;
  465. UINT StartInstanceLocation;
  466. } D3D12_DRAW_ARGUMENTS;
  467. typedef struct D3D12_DRAW_INDEXED_ARGUMENTS {
  468. UINT IndexCountPerInstance;
  469. UINT InstanceCount;
  470. UINT StartIndexLocation;
  471. INT BaseVertexLocation;
  472. UINT StartInstanceLocation;
  473. } D3D12_DRAW_INDEXED_ARGUMENTS;
  474. typedef struct D3D12_DISPATCH_ARGUMENTS {
  475. UINT ThreadGroupCountX;
  476. UINT ThreadGroupCountY;
  477. UINT ThreadGroupCountZ;
  478. } D3D12_DISPATCH_ARGUMENTS;
  479. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS {
  480. WINBOOL DoublePrecisionFloatShaderOps;
  481. WINBOOL OutputMergerLogicOp;
  482. D3D12_SHADER_MIN_PRECISION_SUPPORT MinPrecisionSupport;
  483. D3D12_TILED_RESOURCES_TIER TiledResourcesTier;
  484. D3D12_RESOURCE_BINDING_TIER ResourceBindingTier;
  485. WINBOOL PSSpecifiedStencilRefSupported;
  486. WINBOOL TypedUAVLoadAdditionalFormats;
  487. WINBOOL ROVsSupported;
  488. D3D12_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier;
  489. UINT MaxGPUVirtualAddressBitsPerResource;
  490. WINBOOL StandardSwizzle64KBSupported;
  491. D3D12_CROSS_NODE_SHARING_TIER CrossNodeSharingTier;
  492. WINBOOL CrossAdapterRowMajorTextureSupported;
  493. WINBOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation;
  494. D3D12_RESOURCE_HEAP_TIER ResourceHeapTier;
  495. } D3D12_FEATURE_DATA_D3D12_OPTIONS;
  496. typedef struct D3D12_FEATURE_DATA_FORMAT_SUPPORT {
  497. DXGI_FORMAT Format;
  498. D3D12_FORMAT_SUPPORT1 Support1;
  499. D3D12_FORMAT_SUPPORT2 Support2;
  500. } D3D12_FEATURE_DATA_FORMAT_SUPPORT;
  501. typedef enum D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS {
  502. D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_NONE = 0x0,
  503. D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_TILED_RESOURCE = 0x1
  504. } D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS;
  505. DEFINE_ENUM_FLAG_OPERATORS(D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS);
  506. typedef struct D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS {
  507. DXGI_FORMAT Format;
  508. UINT SampleCount;
  509. D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS Flags;
  510. UINT NumQualityLevels;
  511. } D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS;
  512. typedef enum D3D12_HEAP_TYPE {
  513. D3D12_HEAP_TYPE_DEFAULT = 1,
  514. D3D12_HEAP_TYPE_UPLOAD = 2,
  515. D3D12_HEAP_TYPE_READBACK = 3,
  516. D3D12_HEAP_TYPE_CUSTOM = 4
  517. } D3D12_HEAP_TYPE;
  518. typedef enum D3D12_CPU_PAGE_PROPERTY {
  519. D3D12_CPU_PAGE_PROPERTY_UNKNOWN = 0,
  520. D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE = 1,
  521. D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE = 2,
  522. D3D12_CPU_PAGE_PROPERTY_WRITE_BACK = 3
  523. } D3D12_CPU_PAGE_PROPERTY;
  524. typedef enum D3D12_MEMORY_POOL {
  525. D3D12_MEMORY_POOL_UNKNOWN = 0,
  526. D3D12_MEMORY_POOL_L0 = 1,
  527. D3D12_MEMORY_POOL_L1 = 2
  528. } D3D12_MEMORY_POOL;
  529. typedef struct D3D12_HEAP_PROPERTIES {
  530. D3D12_HEAP_TYPE Type;
  531. D3D12_CPU_PAGE_PROPERTY CPUPageProperty;
  532. D3D12_MEMORY_POOL MemoryPoolPreference;
  533. UINT CreationNodeMask;
  534. UINT VisibleNodeMask;
  535. } D3D12_HEAP_PROPERTIES;
  536. typedef enum D3D12_HEAP_FLAGS {
  537. D3D12_HEAP_FLAG_NONE = 0x0,
  538. D3D12_HEAP_FLAG_SHARED = 0x1,
  539. D3D12_HEAP_FLAG_DENY_BUFFERS = 0x4,
  540. D3D12_HEAP_FLAG_ALLOW_DISPLAY = 0x8,
  541. D3D12_HEAP_FLAG_SHARED_CROSS_ADAPTER = 0x20,
  542. D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES = 0x40,
  543. D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES = 0x80,
  544. D3D12_HEAP_FLAG_ALLOW_ALL_BUFFERS_AND_TEXTURES = 0x0,
  545. D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS = 0xc0,
  546. D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES = 0x44,
  547. D3D12_HEAP_FLAG_ALLOW_ONLY_RT_DS_TEXTURES = 0x84
  548. } D3D12_HEAP_FLAGS;
  549. DEFINE_ENUM_FLAG_OPERATORS(D3D12_HEAP_FLAGS);
  550. typedef struct D3D12_HEAP_DESC {
  551. UINT64 SizeInBytes;
  552. D3D12_HEAP_PROPERTIES Properties;
  553. UINT64 Alignment;
  554. D3D12_HEAP_FLAGS Flags;
  555. } D3D12_HEAP_DESC;
  556. typedef struct D3D12_TILED_RESOURCE_COORDINATE {
  557. UINT X;
  558. UINT Y;
  559. UINT Z;
  560. UINT Subresource;
  561. } D3D12_TILED_RESOURCE_COORDINATE;
  562. typedef struct D3D12_TILE_REGION_SIZE {
  563. UINT NumTiles;
  564. WINBOOL UseBox;
  565. UINT Width;
  566. UINT16 Height;
  567. UINT16 Depth;
  568. } D3D12_TILE_REGION_SIZE;
  569. typedef struct D3D12_SUBRESOURCE_TILING {
  570. UINT WidthInTiles;
  571. UINT16 HeightInTiles;
  572. UINT16 DepthInTiles;
  573. UINT StartTileIndexInOverallResource;
  574. } D3D12_SUBRESOURCE_TILING;
  575. typedef struct D3D12_TILE_SHAPE {
  576. UINT WidthInTexels;
  577. UINT HeightInTexels;
  578. UINT DepthInTexels;
  579. } D3D12_TILE_SHAPE;
  580. typedef struct D3D12_SHADER_BYTECODE {
  581. const void *pShaderBytecode;
  582. SIZE_T BytecodeLength;
  583. } D3D12_SHADER_BYTECODE;
  584. typedef struct D3D12_DEPTH_STENCIL_VALUE {
  585. FLOAT Depth;
  586. UINT8 Stencil;
  587. } D3D12_DEPTH_STENCIL_VALUE;
  588. typedef struct D3D12_CLEAR_VALUE {
  589. DXGI_FORMAT Format;
  590. __C89_NAMELESS union {
  591. FLOAT Color[4];
  592. D3D12_DEPTH_STENCIL_VALUE DepthStencil;
  593. } __C89_NAMELESSUNIONNAME;
  594. } D3D12_CLEAR_VALUE;
  595. typedef struct D3D12_PACKED_MIP_INFO {
  596. UINT8 NumStandardMips;
  597. UINT8 NumPackedMips;
  598. UINT NumTilesForPackedMips;
  599. UINT StartTileIndexInOverallResource;
  600. } D3D12_PACKED_MIP_INFO;
  601. typedef enum D3D12_RESOURCE_STATES {
  602. D3D12_RESOURCE_STATE_COMMON = 0,
  603. D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER = 0x1,
  604. D3D12_RESOURCE_STATE_INDEX_BUFFER = 0x2,
  605. D3D12_RESOURCE_STATE_RENDER_TARGET = 0x4,
  606. D3D12_RESOURCE_STATE_UNORDERED_ACCESS = 0x8,
  607. D3D12_RESOURCE_STATE_DEPTH_WRITE = 0x10,
  608. D3D12_RESOURCE_STATE_DEPTH_READ = 0x20,
  609. D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE = 0x40,
  610. D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE = 0x80,
  611. D3D12_RESOURCE_STATE_STREAM_OUT = 0x100,
  612. D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT = 0x200,
  613. D3D12_RESOURCE_STATE_COPY_DEST = 0x400,
  614. D3D12_RESOURCE_STATE_COPY_SOURCE = 0x800,
  615. D3D12_RESOURCE_STATE_RESOLVE_DEST = 0x1000,
  616. D3D12_RESOURCE_STATE_RESOLVE_SOURCE = 0x2000,
  617. D3D12_RESOURCE_STATE_GENERIC_READ = ((((0x1 | 0x2) | 0x40) | 0x80) | 0x200) | 0x800,
  618. D3D12_RESOURCE_STATE_PRESENT = 0x0,
  619. D3D12_RESOURCE_STATE_PREDICATION = 0x200,
  620. D3D12_RESOURCE_STATE_VIDEO_DECODE_READ = 0x10000,
  621. D3D12_RESOURCE_STATE_VIDEO_DECODE_WRITE = 0x20000,
  622. D3D12_RESOURCE_STATE_VIDEO_PROCESS_READ = 0x40000,
  623. D3D12_RESOURCE_STATE_VIDEO_PROCESS_WRITE = 0x80000,
  624. D3D12_RESOURCE_STATE_VIDEO_ENCODE_READ = 0x200000,
  625. D3D12_RESOURCE_STATE_VIDEO_ENCODE_WRITE = 0x800000
  626. } D3D12_RESOURCE_STATES;
  627. DEFINE_ENUM_FLAG_OPERATORS(D3D12_RESOURCE_STATES);
  628. typedef enum D3D12_RESOURCE_BARRIER_TYPE {
  629. D3D12_RESOURCE_BARRIER_TYPE_TRANSITION = 0,
  630. D3D12_RESOURCE_BARRIER_TYPE_ALIASING = 1,
  631. D3D12_RESOURCE_BARRIER_TYPE_UAV = 2
  632. } D3D12_RESOURCE_BARRIER_TYPE;
  633. typedef enum D3D12_RESOURCE_BARRIER_FLAGS {
  634. D3D12_RESOURCE_BARRIER_FLAG_NONE = 0x0,
  635. D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY = 0x1,
  636. D3D12_RESOURCE_BARRIER_FLAG_END_ONLY = 0x2
  637. } D3D12_RESOURCE_BARRIER_FLAGS;
  638. DEFINE_ENUM_FLAG_OPERATORS(D3D12_RESOURCE_BARRIER_FLAGS);
  639. typedef struct D3D12_RESOURCE_TRANSITION_BARRIER {
  640. ID3D12Resource *pResource;
  641. UINT Subresource;
  642. D3D12_RESOURCE_STATES StateBefore;
  643. D3D12_RESOURCE_STATES StateAfter;
  644. } D3D12_RESOURCE_TRANSITION_BARRIER;
  645. typedef struct D3D12_RESOURCE_ALIASING_BARRIER_ALIASING {
  646. ID3D12Resource *pResourceBefore;
  647. ID3D12Resource *pResourceAfter;
  648. } D3D12_RESOURCE_ALIASING_BARRIER;
  649. typedef struct D3D12_RESOURCE_UAV_BARRIER {
  650. ID3D12Resource *pResource;
  651. } D3D12_RESOURCE_UAV_BARRIER;
  652. typedef struct D3D12_RESOURCE_BARRIER {
  653. D3D12_RESOURCE_BARRIER_TYPE Type;
  654. D3D12_RESOURCE_BARRIER_FLAGS Flags;
  655. __C89_NAMELESS union {
  656. D3D12_RESOURCE_TRANSITION_BARRIER Transition;
  657. D3D12_RESOURCE_ALIASING_BARRIER Aliasing;
  658. D3D12_RESOURCE_UAV_BARRIER UAV;
  659. } __C89_NAMELESSUNIONNAME;
  660. } D3D12_RESOURCE_BARRIER;
  661. typedef enum D3D12_RESOURCE_DIMENSION {
  662. D3D12_RESOURCE_DIMENSION_UNKNOWN = 0,
  663. D3D12_RESOURCE_DIMENSION_BUFFER = 1,
  664. D3D12_RESOURCE_DIMENSION_TEXTURE1D = 2,
  665. D3D12_RESOURCE_DIMENSION_TEXTURE2D = 3,
  666. D3D12_RESOURCE_DIMENSION_TEXTURE3D = 4
  667. } D3D12_RESOURCE_DIMENSION;
  668. typedef enum D3D12_TEXTURE_LAYOUT {
  669. D3D12_TEXTURE_LAYOUT_UNKNOWN = 0,
  670. D3D12_TEXTURE_LAYOUT_ROW_MAJOR = 1,
  671. D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE = 2,
  672. D3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE = 3
  673. } D3D12_TEXTURE_LAYOUT;
  674. typedef enum D3D12_RESOURCE_FLAGS {
  675. D3D12_RESOURCE_FLAG_NONE = 0x0,
  676. D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET = 0x1,
  677. D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL = 0x2,
  678. D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS = 0x4,
  679. D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE = 0x8,
  680. D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER = 0x10,
  681. D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS = 0x20
  682. } D3D12_RESOURCE_FLAGS;
  683. DEFINE_ENUM_FLAG_OPERATORS(D3D12_RESOURCE_FLAGS);
  684. typedef struct D3D12_RESOURCE_DESC {
  685. D3D12_RESOURCE_DIMENSION Dimension;
  686. UINT64 Alignment;
  687. UINT64 Width;
  688. UINT Height;
  689. UINT16 DepthOrArraySize;
  690. UINT16 MipLevels;
  691. DXGI_FORMAT Format;
  692. DXGI_SAMPLE_DESC SampleDesc;
  693. D3D12_TEXTURE_LAYOUT Layout;
  694. D3D12_RESOURCE_FLAGS Flags;
  695. } D3D12_RESOURCE_DESC;
  696. typedef enum D3D12_RESOLVE_MODE {
  697. D3D12_RESOLVE_MODE_DECOMPRESS = 0,
  698. D3D12_RESOLVE_MODE_MIN = 1,
  699. D3D12_RESOLVE_MODE_MAX = 2,
  700. D3D12_RESOLVE_MODE_AVERAGE = 3
  701. } D3D12_RESOLVE_MODE;
  702. typedef struct D3D12_SAMPLE_POSITION {
  703. INT8 X;
  704. INT8 Y;
  705. } D3D12_SAMPLE_POSITION;
  706. typedef enum D3D12_TEXTURE_COPY_TYPE {
  707. D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX = 0,
  708. D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT = 1
  709. } D3D12_TEXTURE_COPY_TYPE;
  710. typedef struct D3D12_SUBRESOURCE_FOOTPRINT {
  711. DXGI_FORMAT Format;
  712. UINT Width;
  713. UINT Height;
  714. UINT Depth;
  715. UINT RowPitch;
  716. } D3D12_SUBRESOURCE_FOOTPRINT;
  717. typedef struct D3D12_PLACED_SUBRESOURCE_FOOTPRINT {
  718. UINT64 Offset;
  719. D3D12_SUBRESOURCE_FOOTPRINT Footprint;
  720. } D3D12_PLACED_SUBRESOURCE_FOOTPRINT;
  721. typedef struct D3D12_TEXTURE_COPY_LOCATION {
  722. ID3D12Resource *pResource;
  723. D3D12_TEXTURE_COPY_TYPE Type;
  724. __C89_NAMELESS union {
  725. D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint;
  726. UINT SubresourceIndex;
  727. } __C89_NAMELESSUNIONNAME;
  728. } D3D12_TEXTURE_COPY_LOCATION;
  729. typedef enum D3D12_DESCRIPTOR_RANGE_TYPE {
  730. D3D12_DESCRIPTOR_RANGE_TYPE_SRV = 0,
  731. D3D12_DESCRIPTOR_RANGE_TYPE_UAV = 1,
  732. D3D12_DESCRIPTOR_RANGE_TYPE_CBV = 2,
  733. D3D12_DESCRIPTOR_RANGE_TYPE_SAMPLER = 3
  734. } D3D12_DESCRIPTOR_RANGE_TYPE;
  735. typedef struct D3D12_DESCRIPTOR_RANGE {
  736. D3D12_DESCRIPTOR_RANGE_TYPE RangeType;
  737. UINT NumDescriptors;
  738. UINT BaseShaderRegister;
  739. UINT RegisterSpace;
  740. UINT OffsetInDescriptorsFromTableStart;
  741. } D3D12_DESCRIPTOR_RANGE;
  742. typedef enum D3D12_DESCRIPTOR_RANGE_FLAGS {
  743. D3D12_DESCRIPTOR_RANGE_FLAG_NONE = 0x0,
  744. D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_VOLATILE = 0x1,
  745. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_VOLATILE = 0x2,
  746. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4,
  747. D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC = 0x8
  748. } D3D12_DESCRIPTOR_RANGE_FLAGS;
  749. DEFINE_ENUM_FLAG_OPERATORS(D3D12_DESCRIPTOR_RANGE_FLAGS);
  750. typedef struct D3D12_DESCRIPTOR_RANGE1 {
  751. D3D12_DESCRIPTOR_RANGE_TYPE RangeType;
  752. UINT NumDescriptors;
  753. UINT BaseShaderRegister;
  754. UINT RegisterSpace;
  755. D3D12_DESCRIPTOR_RANGE_FLAGS Flags;
  756. UINT OffsetInDescriptorsFromTableStart;
  757. } D3D12_DESCRIPTOR_RANGE1;
  758. typedef struct D3D12_ROOT_DESCRIPTOR_TABLE {
  759. UINT NumDescriptorRanges;
  760. const D3D12_DESCRIPTOR_RANGE *pDescriptorRanges;
  761. } D3D12_ROOT_DESCRIPTOR_TABLE;
  762. typedef struct D3D12_ROOT_DESCRIPTOR_TABLE1 {
  763. UINT NumDescriptorRanges;
  764. const D3D12_DESCRIPTOR_RANGE1 *pDescriptorRanges;
  765. } D3D12_ROOT_DESCRIPTOR_TABLE1;
  766. typedef struct D3D12_ROOT_CONSTANTS {
  767. UINT ShaderRegister;
  768. UINT RegisterSpace;
  769. UINT Num32BitValues;
  770. } D3D12_ROOT_CONSTANTS;
  771. typedef struct D3D12_ROOT_DESCRIPTOR {
  772. UINT ShaderRegister;
  773. UINT RegisterSpace;
  774. } D3D12_ROOT_DESCRIPTOR;
  775. typedef enum D3D12_ROOT_DESCRIPTOR_FLAGS {
  776. D3D12_ROOT_DESCRIPTOR_FLAG_NONE = 0x0,
  777. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_VOLATILE = 0x2,
  778. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4,
  779. D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC = 0x8
  780. } D3D12_ROOT_DESCRIPTOR_FLAGS;
  781. DEFINE_ENUM_FLAG_OPERATORS(D3D12_ROOT_DESCRIPTOR_FLAGS);
  782. typedef struct D3D12_ROOT_DESCRIPTOR1 {
  783. UINT ShaderRegister;
  784. UINT RegisterSpace;
  785. D3D12_ROOT_DESCRIPTOR_FLAGS Flags;
  786. } D3D12_ROOT_DESCRIPTOR1;
  787. typedef enum D3D12_ROOT_PARAMETER_TYPE {
  788. D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE = 0,
  789. D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS = 1,
  790. D3D12_ROOT_PARAMETER_TYPE_CBV = 2,
  791. D3D12_ROOT_PARAMETER_TYPE_SRV = 3,
  792. D3D12_ROOT_PARAMETER_TYPE_UAV = 4
  793. } D3D12_ROOT_PARAMETER_TYPE;
  794. typedef enum D3D12_SHADER_VISIBILITY {
  795. D3D12_SHADER_VISIBILITY_ALL = 0,
  796. D3D12_SHADER_VISIBILITY_VERTEX = 1,
  797. D3D12_SHADER_VISIBILITY_HULL = 2,
  798. D3D12_SHADER_VISIBILITY_DOMAIN = 3,
  799. D3D12_SHADER_VISIBILITY_GEOMETRY = 4,
  800. D3D12_SHADER_VISIBILITY_PIXEL = 5
  801. } D3D12_SHADER_VISIBILITY;
  802. typedef struct D3D12_ROOT_PARAMETER {
  803. D3D12_ROOT_PARAMETER_TYPE ParameterType;
  804. __C89_NAMELESS union {
  805. D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable;
  806. D3D12_ROOT_CONSTANTS Constants;
  807. D3D12_ROOT_DESCRIPTOR Descriptor;
  808. } __C89_NAMELESSUNIONNAME;
  809. D3D12_SHADER_VISIBILITY ShaderVisibility;
  810. } D3D12_ROOT_PARAMETER;
  811. typedef struct D3D12_ROOT_PARAMETER1 {
  812. D3D12_ROOT_PARAMETER_TYPE ParameterType;
  813. __C89_NAMELESS union {
  814. D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable;
  815. D3D12_ROOT_CONSTANTS Constants;
  816. D3D12_ROOT_DESCRIPTOR1 Descriptor;
  817. } __C89_NAMELESSUNIONNAME;
  818. D3D12_SHADER_VISIBILITY ShaderVisibility;
  819. } D3D12_ROOT_PARAMETER1;
  820. typedef enum D3D12_STATIC_BORDER_COLOR {
  821. D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK = 0,
  822. D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK = 1,
  823. D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE = 2
  824. } D3D12_STATIC_BORDER_COLOR;
  825. typedef enum D3D12_FILTER {
  826. D3D12_FILTER_MIN_MAG_MIP_POINT = 0x0,
  827. D3D12_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x1,
  828. D3D12_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x4,
  829. D3D12_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x5,
  830. D3D12_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10,
  831. D3D12_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11,
  832. D3D12_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14,
  833. D3D12_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
  834. D3D12_FILTER_ANISOTROPIC = 0x55,
  835. D3D12_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80,
  836. D3D12_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81,
  837. D3D12_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84,
  838. D3D12_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85,
  839. D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90,
  840. D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91,
  841. D3D12_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94,
  842. D3D12_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95,
  843. D3D12_FILTER_COMPARISON_ANISOTROPIC = 0xd5,
  844. D3D12_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100,
  845. D3D12_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101,
  846. D3D12_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104,
  847. D3D12_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105,
  848. D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110,
  849. D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111,
  850. D3D12_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114,
  851. D3D12_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115,
  852. D3D12_FILTER_MINIMUM_ANISOTROPIC = 0x155,
  853. D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180,
  854. D3D12_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181,
  855. D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184,
  856. D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185,
  857. D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190,
  858. D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191,
  859. D3D12_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194,
  860. D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195,
  861. D3D12_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5
  862. } D3D12_FILTER;
  863. typedef enum D3D12_FILTER_TYPE {
  864. D3D12_FILTER_TYPE_POINT = 0,
  865. D3D12_FILTER_TYPE_LINEAR = 1
  866. } D3D12_FILTER_TYPE;
  867. #define D3D12_MIP_FILTER_SHIFT (0)
  868. #define D3D12_MAG_FILTER_SHIFT (2)
  869. #define D3D12_MIN_FILTER_SHIFT (4)
  870. #define D3D12_FILTER_TYPE_MASK (0x3)
  871. #define D3D12_ANISOTROPIC_FILTERING_BIT (0x40)
  872. typedef enum D3D12_FILTER_REDUCTION_TYPE {
  873. D3D12_FILTER_REDUCTION_TYPE_STANDARD = 0,
  874. D3D12_FILTER_REDUCTION_TYPE_COMPARISON = 1,
  875. D3D12_FILTER_REDUCTION_TYPE_MINIMUM = 2,
  876. D3D12_FILTER_REDUCTION_TYPE_MAXIMUM = 3
  877. } D3D12_FILTER_REDUCTION_TYPE;
  878. #define D3D12_FILTER_REDUCTION_TYPE_MASK (0x3)
  879. #define D3D12_FILTER_REDUCTION_TYPE_SHIFT (7)
  880. #define D3D12_DECODE_MAG_FILTER(filter) \
  881. ((D3D12_FILTER_TYPE)(((filter) >> D3D12_MAG_FILTER_SHIFT) & D3D12_FILTER_TYPE_MASK))
  882. #define D3D12_DECODE_MIN_FILTER(filter) \
  883. ((D3D12_FILTER_TYPE)(((filter) >> D3D12_MIN_FILTER_SHIFT) & D3D12_FILTER_TYPE_MASK))
  884. #define D3D12_DECODE_MIP_FILTER(filter) \
  885. ((D3D12_FILTER_TYPE)(((filter) >> D3D12_MIP_FILTER_SHIFT) & D3D12_FILTER_TYPE_MASK))
  886. #define D3D12_DECODE_IS_ANISOTROPIC_FILTER(filter) \
  887. (((filter) & D3D12_ANISOTROPIC_FILTERING_BIT) \
  888. && (D3D12_DECODE_MIN_FILTER(filter) == D3D12_FILTER_TYPE_LINEAR) \
  889. && (D3D12_DECODE_MAG_FILTER(filter) == D3D12_FILTER_TYPE_LINEAR) \
  890. && (D3D12_DECODE_MIP_FILTER(filter) == D3D12_FILTER_TYPE_LINEAR))
  891. #define D3D12_DECODE_FILTER_REDUCTION(filter) \
  892. ((D3D12_FILTER_REDUCTION_TYPE)(((filter) >> D3D12_FILTER_REDUCTION_TYPE_SHIFT) \
  893. & D3D12_FILTER_REDUCTION_TYPE_MASK))
  894. #define D3D12_DECODE_IS_COMPARISON_FILTER(filter) \
  895. (D3D12_DECODE_FILTER_REDUCTION(filter) == D3D12_FILTER_REDUCTION_TYPE_COMPARISON)
  896. typedef enum D3D12_TEXTURE_ADDRESS_MODE {
  897. D3D12_TEXTURE_ADDRESS_MODE_WRAP = 1,
  898. D3D12_TEXTURE_ADDRESS_MODE_MIRROR = 2,
  899. D3D12_TEXTURE_ADDRESS_MODE_CLAMP = 3,
  900. D3D12_TEXTURE_ADDRESS_MODE_BORDER = 4,
  901. D3D12_TEXTURE_ADDRESS_MODE_MIRROR_ONCE = 5
  902. } D3D12_TEXTURE_ADDRESS_MODE;
  903. typedef enum D3D12_COMPARISON_FUNC {
  904. D3D12_COMPARISON_FUNC_NEVER = 1,
  905. D3D12_COMPARISON_FUNC_LESS = 2,
  906. D3D12_COMPARISON_FUNC_EQUAL = 3,
  907. D3D12_COMPARISON_FUNC_LESS_EQUAL = 4,
  908. D3D12_COMPARISON_FUNC_GREATER = 5,
  909. D3D12_COMPARISON_FUNC_NOT_EQUAL = 6,
  910. D3D12_COMPARISON_FUNC_GREATER_EQUAL = 7,
  911. D3D12_COMPARISON_FUNC_ALWAYS = 8
  912. } D3D12_COMPARISON_FUNC;
  913. typedef struct D3D12_STATIC_SAMPLER_DESC {
  914. D3D12_FILTER Filter;
  915. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  916. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  917. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  918. FLOAT MipLODBias;
  919. UINT MaxAnisotropy;
  920. D3D12_COMPARISON_FUNC ComparisonFunc;
  921. D3D12_STATIC_BORDER_COLOR BorderColor;
  922. FLOAT MinLOD;
  923. FLOAT MaxLOD;
  924. UINT ShaderRegister;
  925. UINT RegisterSpace;
  926. D3D12_SHADER_VISIBILITY ShaderVisibility;
  927. } D3D12_STATIC_SAMPLER_DESC;
  928. typedef enum D3D12_ROOT_SIGNATURE_FLAGS {
  929. D3D12_ROOT_SIGNATURE_FLAG_NONE = 0x0,
  930. D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT = 0x1,
  931. D3D12_ROOT_SIGNATURE_FLAG_DENY_VERTEX_SHADER_ROOT_ACCESS = 0x2,
  932. D3D12_ROOT_SIGNATURE_FLAG_DENY_HULL_SHADER_ROOT_ACCESS = 0x4,
  933. D3D12_ROOT_SIGNATURE_FLAG_DENY_DOMAIN_SHADER_ROOT_ACCESS = 0x8,
  934. D3D12_ROOT_SIGNATURE_FLAG_DENY_GEOMETRY_SHADER_ROOT_ACCESS = 0x10,
  935. D3D12_ROOT_SIGNATURE_FLAG_DENY_PIXEL_SHADER_ROOT_ACCESS = 0x20,
  936. D3D12_ROOT_SIGNATURE_FLAG_ALLOW_STREAM_OUTPUT = 0x40
  937. } D3D12_ROOT_SIGNATURE_FLAGS;
  938. DEFINE_ENUM_FLAG_OPERATORS(D3D12_ROOT_SIGNATURE_FLAGS);
  939. typedef struct D3D12_ROOT_SIGNATURE_DESC {
  940. UINT NumParameters;
  941. const D3D12_ROOT_PARAMETER *pParameters;
  942. UINT NumStaticSamplers;
  943. const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers;
  944. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  945. } D3D12_ROOT_SIGNATURE_DESC;
  946. typedef struct D3D12_ROOT_SIGNATURE_DESC1 {
  947. UINT NumParameters;
  948. const D3D12_ROOT_PARAMETER1 *pParameters;
  949. UINT NumStaticSamplers;
  950. const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers;
  951. D3D12_ROOT_SIGNATURE_FLAGS Flags;
  952. } D3D12_ROOT_SIGNATURE_DESC1;
  953. typedef enum D3D_ROOT_SIGNATURE_VERSION {
  954. D3D_ROOT_SIGNATURE_VERSION_1 = 0x1,
  955. D3D_ROOT_SIGNATURE_VERSION_1_0 = 0x1,
  956. D3D_ROOT_SIGNATURE_VERSION_1_1 = 0x2
  957. } D3D_ROOT_SIGNATURE_VERSION;
  958. typedef struct D3D12_VERSIONED_ROOT_SIGNATURE_DESC {
  959. D3D_ROOT_SIGNATURE_VERSION Version;
  960. __C89_NAMELESS union {
  961. D3D12_ROOT_SIGNATURE_DESC Desc_1_0;
  962. D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1;
  963. } __C89_NAMELESSUNIONNAME;
  964. } D3D12_VERSIONED_ROOT_SIGNATURE_DESC;
  965. typedef enum D3D12_DESCRIPTOR_HEAP_TYPE {
  966. D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV = 0,
  967. D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER = 1,
  968. D3D12_DESCRIPTOR_HEAP_TYPE_RTV = 2,
  969. D3D12_DESCRIPTOR_HEAP_TYPE_DSV = 3,
  970. D3D12_DESCRIPTOR_HEAP_TYPE_NUM_TYPES = 4
  971. } D3D12_DESCRIPTOR_HEAP_TYPE;
  972. typedef enum D3D12_DESCRIPTOR_HEAP_FLAGS {
  973. D3D12_DESCRIPTOR_HEAP_FLAG_NONE = 0x0,
  974. D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE = 0x1
  975. } D3D12_DESCRIPTOR_HEAP_FLAGS;
  976. DEFINE_ENUM_FLAG_OPERATORS(D3D12_DESCRIPTOR_HEAP_FLAGS);
  977. typedef struct D3D12_DESCRIPTOR_HEAP_DESC {
  978. D3D12_DESCRIPTOR_HEAP_TYPE Type;
  979. UINT NumDescriptors;
  980. D3D12_DESCRIPTOR_HEAP_FLAGS Flags;
  981. UINT NodeMask;
  982. } D3D12_DESCRIPTOR_HEAP_DESC;
  983. typedef UINT64 D3D12_GPU_VIRTUAL_ADDRESS;
  984. typedef struct D3D12_CONSTANT_BUFFER_VIEW_DESC {
  985. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  986. UINT SizeInBytes;
  987. } D3D12_CONSTANT_BUFFER_VIEW_DESC;
  988. typedef enum D3D12_SRV_DIMENSION {
  989. D3D12_SRV_DIMENSION_UNKNOWN = 0,
  990. D3D12_SRV_DIMENSION_BUFFER = 1,
  991. D3D12_SRV_DIMENSION_TEXTURE1D = 2,
  992. D3D12_SRV_DIMENSION_TEXTURE1DARRAY = 3,
  993. D3D12_SRV_DIMENSION_TEXTURE2D = 4,
  994. D3D12_SRV_DIMENSION_TEXTURE2DARRAY = 5,
  995. D3D12_SRV_DIMENSION_TEXTURE2DMS = 6,
  996. D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY = 7,
  997. D3D12_SRV_DIMENSION_TEXTURE3D = 8,
  998. D3D12_SRV_DIMENSION_TEXTURECUBE = 9,
  999. D3D12_SRV_DIMENSION_TEXTURECUBEARRAY = 10
  1000. } D3D12_SRV_DIMENSION;
  1001. typedef enum D3D12_BUFFER_SRV_FLAGS {
  1002. D3D12_BUFFER_SRV_FLAG_NONE = 0x0,
  1003. D3D12_BUFFER_SRV_FLAG_RAW = 0x1
  1004. } D3D12_BUFFER_SRV_FLAGS;
  1005. DEFINE_ENUM_FLAG_OPERATORS(D3D12_BUFFER_SRV_FLAGS);
  1006. typedef enum D3D12_SHADER_COMPONENT_MAPPING {
  1007. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_0 = 0,
  1008. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_1 = 1,
  1009. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_2 = 2,
  1010. D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_3 = 3,
  1011. D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_0 = 4,
  1012. D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_1 = 5
  1013. } D3D12_SHADER_COMPONENT_MAPPING;
  1014. #define D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(x, y, z, w) \
  1015. (((x) & D3D12_SHADER_COMPONENT_MAPPING_MASK) \
  1016. | (((y) & D3D12_SHADER_COMPONENT_MAPPING_MASK) << D3D12_SHADER_COMPONENT_MAPPING_SHIFT) \
  1017. | (((z) & D3D12_SHADER_COMPONENT_MAPPING_MASK) << (D3D12_SHADER_COMPONENT_MAPPING_SHIFT * 2)) \
  1018. | (((w) & D3D12_SHADER_COMPONENT_MAPPING_MASK) << (D3D12_SHADER_COMPONENT_MAPPING_SHIFT * 3)) \
  1019. | D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES)
  1020. #define D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(0, 1, 2, 3)
  1021. #define D3D12_DECODE_SHADER_4_COMPONENT_MAPPING(i, mapping) \
  1022. ((D3D12_SHADER_COMPONENT_MAPPING)(mapping >> (i * D3D12_SHADER_COMPONENT_MAPPING_SHIFT) \
  1023. & D3D12_SHADER_COMPONENT_MAPPING_MASK))
  1024. typedef struct D3D12_BUFFER_SRV {
  1025. UINT64 FirstElement;
  1026. UINT NumElements;
  1027. UINT StructureByteStride;
  1028. D3D12_BUFFER_SRV_FLAGS Flags;
  1029. } D3D12_BUFFER_SRV;
  1030. typedef struct D3D12_TEX1D_SRV {
  1031. UINT MostDetailedMip;
  1032. UINT MipLevels;
  1033. FLOAT ResourceMinLODClamp;
  1034. } D3D12_TEX1D_SRV;
  1035. typedef struct D3D12_TEX1D_ARRAY_SRV {
  1036. UINT MostDetailedMip;
  1037. UINT MipLevels;
  1038. UINT FirstArraySlice;
  1039. UINT ArraySize;
  1040. FLOAT ResourceMinLODClamp;
  1041. } D3D12_TEX1D_ARRAY_SRV;
  1042. typedef struct D3D12_TEX2D_SRV {
  1043. UINT MostDetailedMip;
  1044. UINT MipLevels;
  1045. UINT PlaneSlice;
  1046. FLOAT ResourceMinLODClamp;
  1047. } D3D12_TEX2D_SRV;
  1048. typedef struct D3D12_TEX2D_ARRAY_SRV {
  1049. UINT MostDetailedMip;
  1050. UINT MipLevels;
  1051. UINT FirstArraySlice;
  1052. UINT ArraySize;
  1053. UINT PlaneSlice;
  1054. FLOAT ResourceMinLODClamp;
  1055. } D3D12_TEX2D_ARRAY_SRV;
  1056. typedef struct D3D12_TEX2DMS_SRV {
  1057. UINT UnusedField_NothingToDefine;
  1058. } D3D12_TEX2DMS_SRV;
  1059. typedef struct D3D12_TEX2DMS_ARRAY_SRV {
  1060. UINT FirstArraySlice;
  1061. UINT ArraySize;
  1062. } D3D12_TEX2DMS_ARRAY_SRV;
  1063. typedef struct D3D12_TEX3D_SRV {
  1064. UINT MostDetailedMip;
  1065. UINT MipLevels;
  1066. FLOAT ResourceMinLODClamp;
  1067. } D3D12_TEX3D_SRV;
  1068. typedef struct D3D12_TEXCUBE_SRV {
  1069. UINT MostDetailedMip;
  1070. UINT MipLevels;
  1071. FLOAT ResourceMinLODClamp;
  1072. } D3D12_TEXCUBE_SRV;
  1073. typedef struct D3D12_TEXCUBE_ARRAY_SRV {
  1074. UINT MostDetailedMip;
  1075. UINT MipLevels;
  1076. UINT First2DArrayFace;
  1077. UINT NumCubes;
  1078. FLOAT ResourceMinLODClamp;
  1079. } D3D12_TEXCUBE_ARRAY_SRV;
  1080. typedef struct D3D12_SHADER_RESOURCE_VIEW_DESC {
  1081. DXGI_FORMAT Format;
  1082. D3D12_SRV_DIMENSION ViewDimension;
  1083. UINT Shader4ComponentMapping;
  1084. __C89_NAMELESS union {
  1085. D3D12_BUFFER_SRV Buffer;
  1086. D3D12_TEX1D_SRV Texture1D;
  1087. D3D12_TEX1D_ARRAY_SRV Texture1DArray;
  1088. D3D12_TEX2D_SRV Texture2D;
  1089. D3D12_TEX2D_ARRAY_SRV Texture2DArray;
  1090. D3D12_TEX2DMS_SRV Texture2DMS;
  1091. D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray;
  1092. D3D12_TEX3D_SRV Texture3D;
  1093. D3D12_TEXCUBE_SRV TextureCube;
  1094. D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray;
  1095. } __C89_NAMELESSUNIONNAME;
  1096. } D3D12_SHADER_RESOURCE_VIEW_DESC;
  1097. typedef enum D3D12_UAV_DIMENSION {
  1098. D3D12_UAV_DIMENSION_UNKNOWN = 0,
  1099. D3D12_UAV_DIMENSION_BUFFER = 1,
  1100. D3D12_UAV_DIMENSION_TEXTURE1D = 2,
  1101. D3D12_UAV_DIMENSION_TEXTURE1DARRAY = 3,
  1102. D3D12_UAV_DIMENSION_TEXTURE2D = 4,
  1103. D3D12_UAV_DIMENSION_TEXTURE2DARRAY = 5,
  1104. D3D12_UAV_DIMENSION_TEXTURE3D = 8
  1105. } D3D12_UAV_DIMENSION;
  1106. typedef enum D3D12_BUFFER_UAV_FLAGS {
  1107. D3D12_BUFFER_UAV_FLAG_NONE = 0x0,
  1108. D3D12_BUFFER_UAV_FLAG_RAW = 0x1
  1109. } D3D12_BUFFER_UAV_FLAGS;
  1110. DEFINE_ENUM_FLAG_OPERATORS(D3D12_BUFFER_UAV_FLAGS);
  1111. typedef struct D3D12_BUFFER_UAV {
  1112. UINT64 FirstElement;
  1113. UINT NumElements;
  1114. UINT StructureByteStride;
  1115. UINT64 CounterOffsetInBytes;
  1116. D3D12_BUFFER_UAV_FLAGS Flags;
  1117. } D3D12_BUFFER_UAV;
  1118. typedef struct D3D12_TEX1D_UAV {
  1119. UINT MipSlice;
  1120. } D3D12_TEX1D_UAV;
  1121. typedef struct D3D12_TEX1D_ARRAY_UAV {
  1122. UINT MipSlice;
  1123. UINT FirstArraySlice;
  1124. UINT ArraySize;
  1125. } D3D12_TEX1D_ARRAY_UAV;
  1126. typedef struct D3D12_TEX2D_UAV {
  1127. UINT MipSlice;
  1128. UINT PlaneSlice;
  1129. } D3D12_TEX2D_UAV;
  1130. typedef struct D3D12_TEX2D_ARRAY_UAV {
  1131. UINT MipSlice;
  1132. UINT FirstArraySlice;
  1133. UINT ArraySize;
  1134. UINT PlaneSlice;
  1135. } D3D12_TEX2D_ARRAY_UAV;
  1136. typedef struct D3D12_TEX3D_UAV {
  1137. UINT MipSlice;
  1138. UINT FirstWSlice;
  1139. UINT WSize;
  1140. } D3D12_TEX3D_UAV;
  1141. typedef struct D3D12_UNORDERED_ACCESS_VIEW_DESC {
  1142. DXGI_FORMAT Format;
  1143. D3D12_UAV_DIMENSION ViewDimension;
  1144. __C89_NAMELESS union {
  1145. D3D12_BUFFER_UAV Buffer;
  1146. D3D12_TEX1D_UAV Texture1D;
  1147. D3D12_TEX1D_ARRAY_UAV Texture1DArray;
  1148. D3D12_TEX2D_UAV Texture2D;
  1149. D3D12_TEX2D_ARRAY_UAV Texture2DArray;
  1150. D3D12_TEX3D_UAV Texture3D;
  1151. } __C89_NAMELESSUNIONNAME;
  1152. } D3D12_UNORDERED_ACCESS_VIEW_DESC;
  1153. typedef enum D3D12_RTV_DIMENSION {
  1154. D3D12_RTV_DIMENSION_UNKNOWN = 0,
  1155. D3D12_RTV_DIMENSION_BUFFER = 1,
  1156. D3D12_RTV_DIMENSION_TEXTURE1D = 2,
  1157. D3D12_RTV_DIMENSION_TEXTURE1DARRAY = 3,
  1158. D3D12_RTV_DIMENSION_TEXTURE2D = 4,
  1159. D3D12_RTV_DIMENSION_TEXTURE2DARRAY = 5,
  1160. D3D12_RTV_DIMENSION_TEXTURE2DMS = 6,
  1161. D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY = 7,
  1162. D3D12_RTV_DIMENSION_TEXTURE3D = 8
  1163. } D3D12_RTV_DIMENSION;
  1164. typedef struct D3D12_BUFFER_RTV {
  1165. UINT64 FirstElement;
  1166. UINT NumElements;
  1167. } D3D12_BUFFER_RTV;
  1168. typedef struct D3D12_TEX1D_RTV {
  1169. UINT MipSlice;
  1170. } D3D12_TEX1D_RTV;
  1171. typedef struct D3D12_TEX1D_ARRAY_RTV {
  1172. UINT MipSlice;
  1173. UINT FirstArraySlice;
  1174. UINT ArraySize;
  1175. } D3D12_TEX1D_ARRAY_RTV;
  1176. typedef struct D3D12_TEX2D_RTV {
  1177. UINT MipSlice;
  1178. UINT PlaneSlice;
  1179. } D3D12_TEX2D_RTV;
  1180. typedef struct D3D12_TEX2D_ARRAY_RTV {
  1181. UINT MipSlice;
  1182. UINT FirstArraySlice;
  1183. UINT ArraySize;
  1184. UINT PlaneSlice;
  1185. } D3D12_TEX2D_ARRAY_RTV;
  1186. typedef struct D3D12_TEX2DMS_RTV {
  1187. UINT UnusedField_NothingToDefine;
  1188. } D3D12_TEX2DMS_RTV;
  1189. typedef struct D3D12_TEX2DMS_ARRAY_RTV {
  1190. UINT FirstArraySlice;
  1191. UINT ArraySize;
  1192. } D3D12_TEX2DMS_ARRAY_RTV;
  1193. typedef struct D3D12_TEX3D_RTV {
  1194. UINT MipSlice;
  1195. UINT FirstWSlice;
  1196. UINT WSize;
  1197. } D3D12_TEX3D_RTV;
  1198. typedef struct D3D12_RENDER_TARGET_VIEW_DESC {
  1199. DXGI_FORMAT Format;
  1200. D3D12_RTV_DIMENSION ViewDimension;
  1201. __C89_NAMELESS union {
  1202. D3D12_BUFFER_RTV Buffer;
  1203. D3D12_TEX1D_RTV Texture1D;
  1204. D3D12_TEX1D_ARRAY_RTV Texture1DArray;
  1205. D3D12_TEX2D_RTV Texture2D;
  1206. D3D12_TEX2D_ARRAY_RTV Texture2DArray;
  1207. D3D12_TEX2DMS_RTV Texture2DMS;
  1208. D3D12_TEX2DMS_ARRAY_RTV Texture2DMSArray;
  1209. D3D12_TEX3D_RTV Texture3D;
  1210. } __C89_NAMELESSUNIONNAME;
  1211. } D3D12_RENDER_TARGET_VIEW_DESC;
  1212. typedef enum D3D12_DSV_DIMENSION {
  1213. D3D12_DSV_DIMENSION_UNKNOWN = 0,
  1214. D3D12_DSV_DIMENSION_TEXTURE1D = 1,
  1215. D3D12_DSV_DIMENSION_TEXTURE1DARRAY = 2,
  1216. D3D12_DSV_DIMENSION_TEXTURE2D = 3,
  1217. D3D12_DSV_DIMENSION_TEXTURE2DARRAY = 4,
  1218. D3D12_DSV_DIMENSION_TEXTURE2DMS = 5,
  1219. D3D12_DSV_DIMENSION_TEXTURE2DMSARRAY = 6
  1220. } D3D12_DSV_DIMENSION;
  1221. typedef enum D3D12_DSV_FLAGS {
  1222. D3D12_DSV_FLAG_NONE = 0x0,
  1223. D3D12_DSV_FLAG_READ_ONLY_DEPTH = 0x1,
  1224. D3D12_DSV_FLAG_READ_ONLY_STENCIL = 0x2
  1225. } D3D12_DSV_FLAGS;
  1226. DEFINE_ENUM_FLAG_OPERATORS(D3D12_DSV_FLAGS);
  1227. typedef struct D3D12_TEX1D_DSV {
  1228. UINT MipSlice;
  1229. } D3D12_TEX1D_DSV;
  1230. typedef struct D3D12_TEX1D_ARRAY_DSV {
  1231. UINT MipSlice;
  1232. UINT FirstArraySlice;
  1233. UINT ArraySize;
  1234. } D3D12_TEX1D_ARRAY_DSV;
  1235. typedef struct D3D12_TEX2D_DSV {
  1236. UINT MipSlice;
  1237. } D3D12_TEX2D_DSV;
  1238. typedef struct D3D12_TEX2D_ARRAY_DSV {
  1239. UINT MipSlice;
  1240. UINT FirstArraySlice;
  1241. UINT ArraySize;
  1242. } D3D12_TEX2D_ARRAY_DSV;
  1243. typedef struct D3D12_TEX2DMS_DSV {
  1244. UINT UnusedField_NothingToDefine;
  1245. } D3D12_TEX2DMS_DSV;
  1246. typedef struct D3D12_TEX2DMS_ARRAY_DSV {
  1247. UINT FirstArraySlice;
  1248. UINT ArraySize;
  1249. } D3D12_TEX2DMS_ARRAY_DSV;
  1250. typedef struct D3D12_DEPTH_STENCIL_VIEW_DESC {
  1251. DXGI_FORMAT Format;
  1252. D3D12_DSV_DIMENSION ViewDimension;
  1253. D3D12_DSV_FLAGS Flags;
  1254. __C89_NAMELESS union {
  1255. D3D12_TEX1D_DSV Texture1D;
  1256. D3D12_TEX1D_ARRAY_DSV Texture1DArray;
  1257. D3D12_TEX2D_DSV Texture2D;
  1258. D3D12_TEX2D_ARRAY_DSV Texture2DArray;
  1259. D3D12_TEX2DMS_DSV Texture2DMS;
  1260. D3D12_TEX2DMS_ARRAY_DSV Texture2DMSArray;
  1261. } __C89_NAMELESSUNIONNAME;
  1262. } D3D12_DEPTH_STENCIL_VIEW_DESC;
  1263. typedef struct D3D12_SAMPLER_DESC {
  1264. D3D12_FILTER Filter;
  1265. D3D12_TEXTURE_ADDRESS_MODE AddressU;
  1266. D3D12_TEXTURE_ADDRESS_MODE AddressV;
  1267. D3D12_TEXTURE_ADDRESS_MODE AddressW;
  1268. FLOAT MipLODBias;
  1269. UINT MaxAnisotropy;
  1270. D3D12_COMPARISON_FUNC ComparisonFunc;
  1271. FLOAT BorderColor[4];
  1272. FLOAT MinLOD;
  1273. FLOAT MaxLOD;
  1274. } D3D12_SAMPLER_DESC;
  1275. typedef struct D3D12_CPU_DESCRIPTOR_HANDLE {
  1276. SIZE_T ptr;
  1277. } D3D12_CPU_DESCRIPTOR_HANDLE;
  1278. typedef struct D3D12_GPU_DESCRIPTOR_HANDLE {
  1279. UINT64 ptr;
  1280. } D3D12_GPU_DESCRIPTOR_HANDLE;
  1281. typedef enum D3D12_STENCIL_OP {
  1282. D3D12_STENCIL_OP_KEEP = 1,
  1283. D3D12_STENCIL_OP_ZERO = 2,
  1284. D3D12_STENCIL_OP_REPLACE = 3,
  1285. D3D12_STENCIL_OP_INCR_SAT = 4,
  1286. D3D12_STENCIL_OP_DECR_SAT = 5,
  1287. D3D12_STENCIL_OP_INVERT = 6,
  1288. D3D12_STENCIL_OP_INCR = 7,
  1289. D3D12_STENCIL_OP_DECR = 8
  1290. } D3D12_STENCIL_OP;
  1291. typedef struct D3D12_DEPTH_STENCILOP_DESC {
  1292. D3D12_STENCIL_OP StencilFailOp;
  1293. D3D12_STENCIL_OP StencilDepthFailOp;
  1294. D3D12_STENCIL_OP StencilPassOp;
  1295. D3D12_COMPARISON_FUNC StencilFunc;
  1296. } D3D12_DEPTH_STENCILOP_DESC;
  1297. typedef enum D3D12_DEPTH_WRITE_MASK {
  1298. D3D12_DEPTH_WRITE_MASK_ZERO = 0,
  1299. D3D12_DEPTH_WRITE_MASK_ALL = 1
  1300. } D3D12_DEPTH_WRITE_MASK;
  1301. typedef struct D3D12_DEPTH_STENCIL_DESC {
  1302. WINBOOL DepthEnable;
  1303. D3D12_DEPTH_WRITE_MASK DepthWriteMask;
  1304. D3D12_COMPARISON_FUNC DepthFunc;
  1305. WINBOOL StencilEnable;
  1306. UINT8 StencilReadMask;
  1307. UINT8 StencilWriteMask;
  1308. D3D12_DEPTH_STENCILOP_DESC FrontFace;
  1309. D3D12_DEPTH_STENCILOP_DESC BackFace;
  1310. } D3D12_DEPTH_STENCIL_DESC;
  1311. typedef enum D3D12_BLEND {
  1312. D3D12_BLEND_ZERO = 1,
  1313. D3D12_BLEND_ONE = 2,
  1314. D3D12_BLEND_SRC_COLOR = 3,
  1315. D3D12_BLEND_INV_SRC_COLOR = 4,
  1316. D3D12_BLEND_SRC_ALPHA = 5,
  1317. D3D12_BLEND_INV_SRC_ALPHA = 6,
  1318. D3D12_BLEND_DEST_ALPHA = 7,
  1319. D3D12_BLEND_INV_DEST_ALPHA = 8,
  1320. D3D12_BLEND_DEST_COLOR = 9,
  1321. D3D12_BLEND_INV_DEST_COLOR = 10,
  1322. D3D12_BLEND_SRC_ALPHA_SAT = 11,
  1323. D3D12_BLEND_BLEND_FACTOR = 14,
  1324. D3D12_BLEND_INV_BLEND_FACTOR = 15,
  1325. D3D12_BLEND_SRC1_COLOR = 16,
  1326. D3D12_BLEND_INV_SRC1_COLOR = 17,
  1327. D3D12_BLEND_SRC1_ALPHA = 18,
  1328. D3D12_BLEND_INV_SRC1_ALPHA = 19
  1329. } D3D12_BLEND;
  1330. typedef enum D3D12_BLEND_OP {
  1331. D3D12_BLEND_OP_ADD = 1,
  1332. D3D12_BLEND_OP_SUBTRACT = 2,
  1333. D3D12_BLEND_OP_REV_SUBTRACT = 3,
  1334. D3D12_BLEND_OP_MIN = 4,
  1335. D3D12_BLEND_OP_MAX = 5
  1336. } D3D12_BLEND_OP;
  1337. typedef enum D3D12_LOGIC_OP {
  1338. D3D12_LOGIC_OP_CLEAR = 0,
  1339. D3D12_LOGIC_OP_SET = 1,
  1340. D3D12_LOGIC_OP_COPY = 2,
  1341. D3D12_LOGIC_OP_COPY_INVERTED = 3,
  1342. D3D12_LOGIC_OP_NOOP = 4,
  1343. D3D12_LOGIC_OP_INVERT = 5,
  1344. D3D12_LOGIC_OP_AND = 6,
  1345. D3D12_LOGIC_OP_NAND = 7,
  1346. D3D12_LOGIC_OP_OR = 8,
  1347. D3D12_LOGIC_OP_NOR = 9,
  1348. D3D12_LOGIC_OP_XOR = 10,
  1349. D3D12_LOGIC_OP_EQUIV = 11,
  1350. D3D12_LOGIC_OP_AND_REVERSE = 12,
  1351. D3D12_LOGIC_OP_AND_INVERTED = 13,
  1352. D3D12_LOGIC_OP_OR_REVERSE = 14,
  1353. D3D12_LOGIC_OP_OR_INVERTED = 15
  1354. } D3D12_LOGIC_OP;
  1355. typedef enum D3D12_COLOR_WRITE_ENABLE {
  1356. D3D12_COLOR_WRITE_ENABLE_RED = 0x1,
  1357. D3D12_COLOR_WRITE_ENABLE_GREEN = 0x2,
  1358. D3D12_COLOR_WRITE_ENABLE_BLUE = 0x4,
  1359. D3D12_COLOR_WRITE_ENABLE_ALPHA = 0x8,
  1360. 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
  1361. } D3D12_COLOR_WRITE_ENABLE;
  1362. typedef struct D3D12_RENDER_TARGET_BLEND_DESC {
  1363. WINBOOL BlendEnable;
  1364. WINBOOL LogicOpEnable;
  1365. D3D12_BLEND SrcBlend;
  1366. D3D12_BLEND DestBlend;
  1367. D3D12_BLEND_OP BlendOp;
  1368. D3D12_BLEND SrcBlendAlpha;
  1369. D3D12_BLEND DestBlendAlpha;
  1370. D3D12_BLEND_OP BlendOpAlpha;
  1371. D3D12_LOGIC_OP LogicOp;
  1372. UINT8 RenderTargetWriteMask;
  1373. } D3D12_RENDER_TARGET_BLEND_DESC;
  1374. typedef struct D3D12_BLEND_DESC {
  1375. WINBOOL AlphaToCoverageEnable;
  1376. WINBOOL IndependentBlendEnable;
  1377. D3D12_RENDER_TARGET_BLEND_DESC RenderTarget[8];
  1378. } D3D12_BLEND_DESC;
  1379. typedef enum D3D12_FILL_MODE {
  1380. D3D12_FILL_MODE_WIREFRAME = 2,
  1381. D3D12_FILL_MODE_SOLID = 3
  1382. } D3D12_FILL_MODE;
  1383. typedef enum D3D12_CULL_MODE {
  1384. D3D12_CULL_MODE_NONE = 1,
  1385. D3D12_CULL_MODE_FRONT = 2,
  1386. D3D12_CULL_MODE_BACK = 3
  1387. } D3D12_CULL_MODE;
  1388. typedef enum D3D12_CONSERVATIVE_RASTERIZATION_MODE {
  1389. D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF = 0,
  1390. D3D12_CONSERVATIVE_RASTERIZATION_MODE_ON = 1
  1391. } D3D12_CONSERVATIVE_RASTERIZATION_MODE;
  1392. typedef struct D3D12_RASTERIZER_DESC {
  1393. D3D12_FILL_MODE FillMode;
  1394. D3D12_CULL_MODE CullMode;
  1395. WINBOOL FrontCounterClockwise;
  1396. INT DepthBias;
  1397. FLOAT DepthBiasClamp;
  1398. FLOAT SlopeScaledDepthBias;
  1399. WINBOOL DepthClipEnable;
  1400. WINBOOL MultisampleEnable;
  1401. WINBOOL AntialiasedLineEnable;
  1402. UINT ForcedSampleCount;
  1403. D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster;
  1404. } D3D12_RASTERIZER_DESC;
  1405. typedef struct D3D12_SO_DECLARATION_ENTRY {
  1406. UINT Stream;
  1407. const char *SemanticName;
  1408. UINT SemanticIndex;
  1409. BYTE StartComponent;
  1410. BYTE ComponentCount;
  1411. BYTE OutputSlot;
  1412. } D3D12_SO_DECLARATION_ENTRY;
  1413. typedef struct D3D12_STREAM_OUTPUT_DESC {
  1414. const D3D12_SO_DECLARATION_ENTRY *pSODeclaration;
  1415. UINT NumEntries;
  1416. const UINT *pBufferStrides;
  1417. UINT NumStrides;
  1418. UINT RasterizedStream;
  1419. } D3D12_STREAM_OUTPUT_DESC;
  1420. typedef enum D3D12_INPUT_CLASSIFICATION {
  1421. D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA = 0,
  1422. D3D12_INPUT_CLASSIFICATION_PER_INSTANCE_DATA = 1
  1423. } D3D12_INPUT_CLASSIFICATION;
  1424. typedef struct D3D12_INPUT_ELEMENT_DESC {
  1425. const char *SemanticName;
  1426. UINT SemanticIndex;
  1427. DXGI_FORMAT Format;
  1428. UINT InputSlot;
  1429. UINT AlignedByteOffset;
  1430. D3D12_INPUT_CLASSIFICATION InputSlotClass;
  1431. UINT InstanceDataStepRate;
  1432. } D3D12_INPUT_ELEMENT_DESC;
  1433. typedef struct D3D12_INPUT_LAYOUT_DESC {
  1434. const D3D12_INPUT_ELEMENT_DESC *pInputElementDescs;
  1435. UINT NumElements;
  1436. } D3D12_INPUT_LAYOUT_DESC;
  1437. typedef enum D3D12_INDEX_BUFFER_STRIP_CUT_VALUE {
  1438. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_DISABLED = 0,
  1439. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFF = 1,
  1440. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFFFFFF = 2
  1441. } D3D12_INDEX_BUFFER_STRIP_CUT_VALUE;
  1442. typedef D3D_PRIMITIVE_TOPOLOGY D3D12_PRIMITIVE_TOPOLOGY;
  1443. typedef enum D3D12_PRIMITIVE_TOPOLOGY_TYPE {
  1444. D3D12_PRIMITIVE_TOPOLOGY_TYPE_UNDEFINED = 0,
  1445. D3D12_PRIMITIVE_TOPOLOGY_TYPE_POINT = 1,
  1446. D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE = 2,
  1447. D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE = 3,
  1448. D3D12_PRIMITIVE_TOPOLOGY_TYPE_PATCH = 4
  1449. } D3D12_PRIMITIVE_TOPOLOGY_TYPE;
  1450. typedef struct D3D12_CACHED_PIPELINE_STATE {
  1451. const void *pCachedBlob;
  1452. SIZE_T CachedBlobSizeInBytes;
  1453. } D3D12_CACHED_PIPELINE_STATE;
  1454. typedef enum D3D12_PIPELINE_STATE_FLAGS {
  1455. D3D12_PIPELINE_STATE_FLAG_NONE = 0x0,
  1456. D3D12_PIPELINE_STATE_FLAG_DEBUG = 0x1
  1457. } D3D12_PIPELINE_STATE_FLAGS;
  1458. DEFINE_ENUM_FLAG_OPERATORS(D3D12_PIPELINE_STATE_FLAGS);
  1459. typedef struct D3D12_GRAPHICS_PIPELINE_STATE_DESC {
  1460. ID3D12RootSignature *pRootSignature;
  1461. D3D12_SHADER_BYTECODE VS;
  1462. D3D12_SHADER_BYTECODE PS;
  1463. D3D12_SHADER_BYTECODE DS;
  1464. D3D12_SHADER_BYTECODE HS;
  1465. D3D12_SHADER_BYTECODE GS;
  1466. D3D12_STREAM_OUTPUT_DESC StreamOutput;
  1467. D3D12_BLEND_DESC BlendState;
  1468. UINT SampleMask;
  1469. D3D12_RASTERIZER_DESC RasterizerState;
  1470. D3D12_DEPTH_STENCIL_DESC DepthStencilState;
  1471. D3D12_INPUT_LAYOUT_DESC InputLayout;
  1472. D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue;
  1473. D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType;
  1474. UINT NumRenderTargets;
  1475. DXGI_FORMAT RTVFormats[8];
  1476. DXGI_FORMAT DSVFormat;
  1477. DXGI_SAMPLE_DESC SampleDesc;
  1478. UINT NodeMask;
  1479. D3D12_CACHED_PIPELINE_STATE CachedPSO;
  1480. D3D12_PIPELINE_STATE_FLAGS Flags;
  1481. } D3D12_GRAPHICS_PIPELINE_STATE_DESC;
  1482. typedef struct D3D12_COMPUTE_PIPELINE_STATE_DESC {
  1483. ID3D12RootSignature *pRootSignature;
  1484. D3D12_SHADER_BYTECODE CS;
  1485. UINT NodeMask;
  1486. D3D12_CACHED_PIPELINE_STATE CachedPSO;
  1487. D3D12_PIPELINE_STATE_FLAGS Flags;
  1488. } D3D12_COMPUTE_PIPELINE_STATE_DESC;
  1489. typedef enum D3D12_COMMAND_LIST_TYPE {
  1490. D3D12_COMMAND_LIST_TYPE_DIRECT = 0,
  1491. D3D12_COMMAND_LIST_TYPE_BUNDLE = 1,
  1492. D3D12_COMMAND_LIST_TYPE_COMPUTE = 2,
  1493. D3D12_COMMAND_LIST_TYPE_COPY = 3
  1494. } D3D12_COMMAND_LIST_TYPE;
  1495. typedef enum D3D12_COMMAND_QUEUE_PRIORITY {
  1496. D3D12_COMMAND_QUEUE_PRIORITY_NORMAL = 0,
  1497. D3D12_COMMAND_QUEUE_PRIORITY_HIGH = 100,
  1498. D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME = 10000
  1499. } D3D12_COMMAND_QUEUE_PRIORITY;
  1500. typedef enum D3D12_COMMAND_QUEUE_FLAGS {
  1501. D3D12_COMMAND_QUEUE_FLAG_NONE = 0x0,
  1502. D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT = 0x1
  1503. } D3D12_COMMAND_QUEUE_FLAGS;
  1504. DEFINE_ENUM_FLAG_OPERATORS(D3D12_COMMAND_QUEUE_FLAGS);
  1505. typedef struct D3D12_COMMAND_QUEUE_DESC {
  1506. D3D12_COMMAND_LIST_TYPE Type;
  1507. INT Priority;
  1508. D3D12_COMMAND_QUEUE_FLAGS Flags;
  1509. UINT NodeMask;
  1510. } D3D12_COMMAND_QUEUE_DESC;
  1511. typedef struct D3D12_FEATURE_DATA_ARCHITECTURE {
  1512. UINT NodeIndex;
  1513. WINBOOL TileBasedRenderer;
  1514. WINBOOL UMA;
  1515. WINBOOL CacheCoherentUMA;
  1516. } D3D12_FEATURE_DATA_ARCHITECTURE;
  1517. typedef struct D3D12_FEATURE_DATA_FORMAT_INFO {
  1518. DXGI_FORMAT Format;
  1519. UINT8 PlaneCount;
  1520. } D3D12_FEATURE_DATA_FORMAT_INFO;
  1521. typedef struct D3D12_FEATURE_DATA_FEATURE_LEVELS {
  1522. UINT NumFeatureLevels;
  1523. const D3D_FEATURE_LEVEL *pFeatureLevelsRequested;
  1524. D3D_FEATURE_LEVEL MaxSupportedFeatureLevel;
  1525. } D3D12_FEATURE_DATA_FEATURE_LEVELS;
  1526. typedef struct D3D12_FEATURE_DATA_ROOT_SIGNATURE {
  1527. D3D_ROOT_SIGNATURE_VERSION HighestVersion;
  1528. } D3D12_FEATURE_DATA_ROOT_SIGNATURE;
  1529. typedef struct D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT {
  1530. UINT MaxGPUVirtualAddressBitsPerResource;
  1531. UINT MaxGPUVirtualAddressBitsPerProcess;
  1532. } D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT;
  1533. typedef enum D3D_SHADER_MODEL {
  1534. D3D_SHADER_MODEL_5_1 = 0x51,
  1535. D3D_SHADER_MODEL_6_0 = 0x60
  1536. } D3D_SHADER_MODEL;
  1537. typedef struct D3D12_FEATURE_DATA_SHADER_MODEL {
  1538. D3D_SHADER_MODEL HighestShaderModel;
  1539. } D3D12_FEATURE_DATA_SHADER_MODEL;
  1540. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS1 {
  1541. WINBOOL WaveOps;
  1542. UINT WaveLaneCountMin;
  1543. UINT WaveLaneCountMax;
  1544. UINT TotalLaneCount;
  1545. WINBOOL ExpandedComputeResourceStates;
  1546. WINBOOL Int64ShaderOps;
  1547. } D3D12_FEATURE_DATA_D3D12_OPTIONS1;
  1548. typedef struct D3D12_FEATURE_DATA_ARCHITECTURE1 {
  1549. UINT NodeIndex;
  1550. WINBOOL TileBasedRenderer;
  1551. WINBOOL UMA;
  1552. WINBOOL CacheCoherentUMA;
  1553. WINBOOL IsolatedMMU;
  1554. } D3D12_FEATURE_DATA_ARCHITECTURE1;
  1555. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS2 {
  1556. WINBOOL DepthBoundsTestSupported;
  1557. D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER ProgrammableSamplePositionsTier;
  1558. } D3D12_FEATURE_DATA_D3D12_OPTIONS2;
  1559. typedef struct D3D12_FEATURE_DATA_SHADER_CACHE {
  1560. D3D12_SHADER_CACHE_SUPPORT_FLAGS SupportFlags;
  1561. } D3D12_FEATURE_DATA_SHADER_CACHE;
  1562. typedef struct D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY {
  1563. D3D12_COMMAND_LIST_TYPE CommandListType;
  1564. UINT Priority;
  1565. WINBOOL PriorityForTypeIsSupported;
  1566. } D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY;
  1567. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS3 {
  1568. WINBOOL CopyQueueTimestampQueriesSupported;
  1569. WINBOOL CastingFullyTypedFormatSupported;
  1570. D3D12_COMMAND_LIST_SUPPORT_FLAGS WriteBufferImmediateSupportFlags;
  1571. D3D12_VIEW_INSTANCING_TIER ViewInstancingTier;
  1572. WINBOOL BarycentricsSupported;
  1573. } D3D12_FEATURE_DATA_D3D12_OPTIONS3;
  1574. typedef struct D3D12_FEATURE_DATA_EXISTING_HEAPS {
  1575. WINBOOL Supported;
  1576. } D3D12_FEATURE_DATA_EXISTING_HEAPS;
  1577. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS4 {
  1578. WINBOOL MSAA64KBAlignedTextureSupported;
  1579. D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier;
  1580. WINBOOL Native16BitShaderOpsSupported;
  1581. } D3D12_FEATURE_DATA_D3D12_OPTIONS4;
  1582. typedef struct D3D12_FEATURE_DATA_SERIALIZATION {
  1583. UINT NodeIndex;
  1584. D3D12_HEAP_SERIALIZATION_TIER HeapSerializationTier;
  1585. } D3D12_FEATURE_DATA_SERIALIZATION;
  1586. typedef struct D3D12_FEATURE_DATA_CROSS_NODE {
  1587. D3D12_CROSS_NODE_SHARING_TIER SharingTier;
  1588. WINBOOL AtomicShaderInstructions;
  1589. } D3D12_FEATURE_DATA_CROSS_NODE;
  1590. typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS5 {
  1591. WINBOOL SRVOnlyTiledResourceTier3;
  1592. D3D12_RENDER_PASS_TIER RenderPassesTier;
  1593. D3D12_RAYTRACING_TIER RaytracingTier;
  1594. } D3D12_FEATURE_DATA_D3D12_OPTIONS5;
  1595. typedef enum D3D12_FEATURE {
  1596. D3D12_FEATURE_D3D12_OPTIONS = 0,
  1597. D3D12_FEATURE_ARCHITECTURE = 1,
  1598. D3D12_FEATURE_FEATURE_LEVELS = 2,
  1599. D3D12_FEATURE_FORMAT_SUPPORT = 3,
  1600. D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS = 4,
  1601. D3D12_FEATURE_FORMAT_INFO = 5,
  1602. D3D12_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT = 6,
  1603. D3D12_FEATURE_SHADER_MODEL = 7,
  1604. D3D12_FEATURE_D3D12_OPTIONS1 = 8,
  1605. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT = 10,
  1606. D3D12_FEATURE_ROOT_SIGNATURE = 12,
  1607. D3D12_FEATURE_ARCHITECTURE1 = 16,
  1608. D3D12_FEATURE_D3D12_OPTIONS2 = 18,
  1609. D3D12_FEATURE_SHADER_CACHE = 19,
  1610. D3D12_FEATURE_COMMAND_QUEUE_PRIORITY = 20,
  1611. D3D12_FEATURE_D3D12_OPTIONS3 = 21,
  1612. D3D12_FEATURE_EXISTING_HEAPS = 22,
  1613. D3D12_FEATURE_D3D12_OPTIONS4 = 23,
  1614. D3D12_FEATURE_SERIALIZATION = 24,
  1615. D3D12_FEATURE_CROSS_NODE = 25,
  1616. D3D12_FEATURE_D3D12_OPTIONS5 = 27,
  1617. D3D12_FEATURE_D3D12_OPTIONS6 = 30,
  1618. D3D12_FEATURE_QUERY_META_COMMAND = 31,
  1619. D3D12_FEATURE_D3D12_OPTIONS7 = 32,
  1620. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPE_COUNT = 33,
  1621. D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPES = 34
  1622. } D3D12_FEATURE;
  1623. typedef struct D3D12_MEMCPY_DEST {
  1624. void *pData;
  1625. SIZE_T RowPitch;
  1626. SIZE_T SlicePitch;
  1627. } D3D12_MEMCPY_DEST;
  1628. typedef struct D3D12_SUBRESOURCE_DATA {
  1629. const void *pData;
  1630. LONG_PTR RowPitch;
  1631. LONG_PTR SlicePitch;
  1632. } D3D12_SUBRESOURCE_DATA;
  1633. typedef enum D3D12_MULTIPLE_FENCE_WAIT_FLAGS {
  1634. D3D12_MULTIPLE_FENCE_WAIT_FLAG_NONE = 0x0,
  1635. D3D12_MULTIPLE_FENCE_WAIT_FLAG_ANY = 0x1,
  1636. D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL = 0x0
  1637. } D3D12_MULTIPLE_FENCE_WAIT_FLAGS;
  1638. DEFINE_ENUM_FLAG_OPERATORS(D3D12_MULTIPLE_FENCE_WAIT_FLAGS);
  1639. typedef enum D3D12_RESIDENCY_PRIORITY {
  1640. D3D12_RESIDENCY_PRIORITY_MINIMUM = 0x28000000,
  1641. D3D12_RESIDENCY_PRIORITY_LOW = 0x50000000,
  1642. D3D12_RESIDENCY_PRIORITY_NORMAL = 0x78000000,
  1643. D3D12_RESIDENCY_PRIORITY_HIGH = 0xa0010000,
  1644. D3D12_RESIDENCY_PRIORITY_MAXIMUM = 0xc8000000
  1645. } D3D12_RESIDENCY_PRIORITY;
  1646. typedef struct D3D12_WRITEBUFFERIMMEDIATE_PARAMETER {
  1647. D3D12_GPU_VIRTUAL_ADDRESS Dest;
  1648. UINT32 Value;
  1649. } D3D12_WRITEBUFFERIMMEDIATE_PARAMETER;
  1650. /*****************************************************************************
  1651. * ID3D12Object interface
  1652. */
  1653. #ifndef __ID3D12Object_INTERFACE_DEFINED__
  1654. #define __ID3D12Object_INTERFACE_DEFINED__
  1655. DEFINE_GUID(IID_ID3D12Object, 0xc4fec28f, 0x7966, 0x4e95, 0x9f,0x94, 0xf4,0x31,0xcb,0x56,0xc3,0xb8);
  1656. #if defined(__cplusplus) && !defined(CINTERFACE)
  1657. MIDL_INTERFACE("c4fec28f-7966-4e95-9f94-f431cb56c3b8")
  1658. ID3D12Object : public IUnknown
  1659. {
  1660. virtual HRESULT STDMETHODCALLTYPE GetPrivateData(
  1661. REFGUID guid,
  1662. UINT *data_size,
  1663. void *data) = 0;
  1664. virtual HRESULT STDMETHODCALLTYPE SetPrivateData(
  1665. REFGUID guid,
  1666. UINT data_size,
  1667. const void *data) = 0;
  1668. virtual HRESULT STDMETHODCALLTYPE SetPrivateDataInterface(
  1669. REFGUID guid,
  1670. const IUnknown *data) = 0;
  1671. virtual HRESULT STDMETHODCALLTYPE SetName(
  1672. const WCHAR *name) = 0;
  1673. };
  1674. #ifdef __CRT_UUID_DECL
  1675. __CRT_UUID_DECL(ID3D12Object, 0xc4fec28f, 0x7966, 0x4e95, 0x9f,0x94, 0xf4,0x31,0xcb,0x56,0xc3,0xb8)
  1676. #endif
  1677. #else
  1678. typedef struct ID3D12ObjectVtbl {
  1679. BEGIN_INTERFACE
  1680. /*** IUnknown methods ***/
  1681. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1682. ID3D12Object *This,
  1683. REFIID riid,
  1684. void **ppvObject);
  1685. ULONG (STDMETHODCALLTYPE *AddRef)(
  1686. ID3D12Object *This);
  1687. ULONG (STDMETHODCALLTYPE *Release)(
  1688. ID3D12Object *This);
  1689. /*** ID3D12Object methods ***/
  1690. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  1691. ID3D12Object *This,
  1692. REFGUID guid,
  1693. UINT *data_size,
  1694. void *data);
  1695. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  1696. ID3D12Object *This,
  1697. REFGUID guid,
  1698. UINT data_size,
  1699. const void *data);
  1700. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  1701. ID3D12Object *This,
  1702. REFGUID guid,
  1703. const IUnknown *data);
  1704. HRESULT (STDMETHODCALLTYPE *SetName)(
  1705. ID3D12Object *This,
  1706. const WCHAR *name);
  1707. END_INTERFACE
  1708. } ID3D12ObjectVtbl;
  1709. interface ID3D12Object {
  1710. CONST_VTBL ID3D12ObjectVtbl* lpVtbl;
  1711. };
  1712. #ifdef COBJMACROS
  1713. #ifndef WIDL_C_INLINE_WRAPPERS
  1714. /*** IUnknown methods ***/
  1715. #define ID3D12Object_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1716. #define ID3D12Object_AddRef(This) (This)->lpVtbl->AddRef(This)
  1717. #define ID3D12Object_Release(This) (This)->lpVtbl->Release(This)
  1718. /*** ID3D12Object methods ***/
  1719. #define ID3D12Object_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  1720. #define ID3D12Object_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  1721. #define ID3D12Object_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  1722. #define ID3D12Object_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  1723. #else
  1724. /*** IUnknown methods ***/
  1725. static FORCEINLINE HRESULT ID3D12Object_QueryInterface(ID3D12Object* This,REFIID riid,void **ppvObject) {
  1726. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1727. }
  1728. static FORCEINLINE ULONG ID3D12Object_AddRef(ID3D12Object* This) {
  1729. return This->lpVtbl->AddRef(This);
  1730. }
  1731. static FORCEINLINE ULONG ID3D12Object_Release(ID3D12Object* This) {
  1732. return This->lpVtbl->Release(This);
  1733. }
  1734. /*** ID3D12Object methods ***/
  1735. static FORCEINLINE HRESULT ID3D12Object_GetPrivateData(ID3D12Object* This,REFGUID guid,UINT *data_size,void *data) {
  1736. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  1737. }
  1738. static FORCEINLINE HRESULT ID3D12Object_SetPrivateData(ID3D12Object* This,REFGUID guid,UINT data_size,const void *data) {
  1739. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  1740. }
  1741. static FORCEINLINE HRESULT ID3D12Object_SetPrivateDataInterface(ID3D12Object* This,REFGUID guid,const IUnknown *data) {
  1742. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  1743. }
  1744. static FORCEINLINE HRESULT ID3D12Object_SetName(ID3D12Object* This,const WCHAR *name) {
  1745. return This->lpVtbl->SetName(This,name);
  1746. }
  1747. #endif
  1748. #endif
  1749. #endif
  1750. #endif /* __ID3D12Object_INTERFACE_DEFINED__ */
  1751. /*****************************************************************************
  1752. * ID3D12DeviceChild interface
  1753. */
  1754. #ifndef __ID3D12DeviceChild_INTERFACE_DEFINED__
  1755. #define __ID3D12DeviceChild_INTERFACE_DEFINED__
  1756. DEFINE_GUID(IID_ID3D12DeviceChild, 0x905db94b, 0xa00c, 0x4140, 0x9d,0xf5, 0x2b,0x64,0xca,0x9e,0xa3,0x57);
  1757. #if defined(__cplusplus) && !defined(CINTERFACE)
  1758. MIDL_INTERFACE("905db94b-a00c-4140-9df5-2b64ca9ea357")
  1759. ID3D12DeviceChild : public ID3D12Object
  1760. {
  1761. virtual HRESULT STDMETHODCALLTYPE GetDevice(
  1762. REFIID riid,
  1763. void **device) = 0;
  1764. };
  1765. #ifdef __CRT_UUID_DECL
  1766. __CRT_UUID_DECL(ID3D12DeviceChild, 0x905db94b, 0xa00c, 0x4140, 0x9d,0xf5, 0x2b,0x64,0xca,0x9e,0xa3,0x57)
  1767. #endif
  1768. #else
  1769. typedef struct ID3D12DeviceChildVtbl {
  1770. BEGIN_INTERFACE
  1771. /*** IUnknown methods ***/
  1772. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1773. ID3D12DeviceChild *This,
  1774. REFIID riid,
  1775. void **ppvObject);
  1776. ULONG (STDMETHODCALLTYPE *AddRef)(
  1777. ID3D12DeviceChild *This);
  1778. ULONG (STDMETHODCALLTYPE *Release)(
  1779. ID3D12DeviceChild *This);
  1780. /*** ID3D12Object methods ***/
  1781. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  1782. ID3D12DeviceChild *This,
  1783. REFGUID guid,
  1784. UINT *data_size,
  1785. void *data);
  1786. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  1787. ID3D12DeviceChild *This,
  1788. REFGUID guid,
  1789. UINT data_size,
  1790. const void *data);
  1791. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  1792. ID3D12DeviceChild *This,
  1793. REFGUID guid,
  1794. const IUnknown *data);
  1795. HRESULT (STDMETHODCALLTYPE *SetName)(
  1796. ID3D12DeviceChild *This,
  1797. const WCHAR *name);
  1798. /*** ID3D12DeviceChild methods ***/
  1799. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  1800. ID3D12DeviceChild *This,
  1801. REFIID riid,
  1802. void **device);
  1803. END_INTERFACE
  1804. } ID3D12DeviceChildVtbl;
  1805. interface ID3D12DeviceChild {
  1806. CONST_VTBL ID3D12DeviceChildVtbl* lpVtbl;
  1807. };
  1808. #ifdef COBJMACROS
  1809. #ifndef WIDL_C_INLINE_WRAPPERS
  1810. /*** IUnknown methods ***/
  1811. #define ID3D12DeviceChild_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1812. #define ID3D12DeviceChild_AddRef(This) (This)->lpVtbl->AddRef(This)
  1813. #define ID3D12DeviceChild_Release(This) (This)->lpVtbl->Release(This)
  1814. /*** ID3D12Object methods ***/
  1815. #define ID3D12DeviceChild_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  1816. #define ID3D12DeviceChild_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  1817. #define ID3D12DeviceChild_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  1818. #define ID3D12DeviceChild_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  1819. /*** ID3D12DeviceChild methods ***/
  1820. #define ID3D12DeviceChild_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  1821. #else
  1822. /*** IUnknown methods ***/
  1823. static FORCEINLINE HRESULT ID3D12DeviceChild_QueryInterface(ID3D12DeviceChild* This,REFIID riid,void **ppvObject) {
  1824. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1825. }
  1826. static FORCEINLINE ULONG ID3D12DeviceChild_AddRef(ID3D12DeviceChild* This) {
  1827. return This->lpVtbl->AddRef(This);
  1828. }
  1829. static FORCEINLINE ULONG ID3D12DeviceChild_Release(ID3D12DeviceChild* This) {
  1830. return This->lpVtbl->Release(This);
  1831. }
  1832. /*** ID3D12Object methods ***/
  1833. static FORCEINLINE HRESULT ID3D12DeviceChild_GetPrivateData(ID3D12DeviceChild* This,REFGUID guid,UINT *data_size,void *data) {
  1834. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  1835. }
  1836. static FORCEINLINE HRESULT ID3D12DeviceChild_SetPrivateData(ID3D12DeviceChild* This,REFGUID guid,UINT data_size,const void *data) {
  1837. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  1838. }
  1839. static FORCEINLINE HRESULT ID3D12DeviceChild_SetPrivateDataInterface(ID3D12DeviceChild* This,REFGUID guid,const IUnknown *data) {
  1840. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  1841. }
  1842. static FORCEINLINE HRESULT ID3D12DeviceChild_SetName(ID3D12DeviceChild* This,const WCHAR *name) {
  1843. return This->lpVtbl->SetName(This,name);
  1844. }
  1845. /*** ID3D12DeviceChild methods ***/
  1846. static FORCEINLINE HRESULT ID3D12DeviceChild_GetDevice(ID3D12DeviceChild* This,REFIID riid,void **device) {
  1847. return This->lpVtbl->GetDevice(This,riid,device);
  1848. }
  1849. #endif
  1850. #endif
  1851. #endif
  1852. #endif /* __ID3D12DeviceChild_INTERFACE_DEFINED__ */
  1853. /*****************************************************************************
  1854. * ID3D12Pageable interface
  1855. */
  1856. #ifndef __ID3D12Pageable_INTERFACE_DEFINED__
  1857. #define __ID3D12Pageable_INTERFACE_DEFINED__
  1858. DEFINE_GUID(IID_ID3D12Pageable, 0x63ee58fb, 0x1268, 0x4835, 0x86,0xda, 0xf0,0x08,0xce,0x62,0xf0,0xd6);
  1859. #if defined(__cplusplus) && !defined(CINTERFACE)
  1860. MIDL_INTERFACE("63ee58fb-1268-4835-86da-f008ce62f0d6")
  1861. ID3D12Pageable : public ID3D12DeviceChild
  1862. {
  1863. };
  1864. #ifdef __CRT_UUID_DECL
  1865. __CRT_UUID_DECL(ID3D12Pageable, 0x63ee58fb, 0x1268, 0x4835, 0x86,0xda, 0xf0,0x08,0xce,0x62,0xf0,0xd6)
  1866. #endif
  1867. #else
  1868. typedef struct ID3D12PageableVtbl {
  1869. BEGIN_INTERFACE
  1870. /*** IUnknown methods ***/
  1871. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1872. ID3D12Pageable *This,
  1873. REFIID riid,
  1874. void **ppvObject);
  1875. ULONG (STDMETHODCALLTYPE *AddRef)(
  1876. ID3D12Pageable *This);
  1877. ULONG (STDMETHODCALLTYPE *Release)(
  1878. ID3D12Pageable *This);
  1879. /*** ID3D12Object methods ***/
  1880. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  1881. ID3D12Pageable *This,
  1882. REFGUID guid,
  1883. UINT *data_size,
  1884. void *data);
  1885. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  1886. ID3D12Pageable *This,
  1887. REFGUID guid,
  1888. UINT data_size,
  1889. const void *data);
  1890. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  1891. ID3D12Pageable *This,
  1892. REFGUID guid,
  1893. const IUnknown *data);
  1894. HRESULT (STDMETHODCALLTYPE *SetName)(
  1895. ID3D12Pageable *This,
  1896. const WCHAR *name);
  1897. /*** ID3D12DeviceChild methods ***/
  1898. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  1899. ID3D12Pageable *This,
  1900. REFIID riid,
  1901. void **device);
  1902. END_INTERFACE
  1903. } ID3D12PageableVtbl;
  1904. interface ID3D12Pageable {
  1905. CONST_VTBL ID3D12PageableVtbl* lpVtbl;
  1906. };
  1907. #ifdef COBJMACROS
  1908. #ifndef WIDL_C_INLINE_WRAPPERS
  1909. /*** IUnknown methods ***/
  1910. #define ID3D12Pageable_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1911. #define ID3D12Pageable_AddRef(This) (This)->lpVtbl->AddRef(This)
  1912. #define ID3D12Pageable_Release(This) (This)->lpVtbl->Release(This)
  1913. /*** ID3D12Object methods ***/
  1914. #define ID3D12Pageable_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  1915. #define ID3D12Pageable_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  1916. #define ID3D12Pageable_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  1917. #define ID3D12Pageable_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  1918. /*** ID3D12DeviceChild methods ***/
  1919. #define ID3D12Pageable_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  1920. #else
  1921. /*** IUnknown methods ***/
  1922. static FORCEINLINE HRESULT ID3D12Pageable_QueryInterface(ID3D12Pageable* This,REFIID riid,void **ppvObject) {
  1923. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1924. }
  1925. static FORCEINLINE ULONG ID3D12Pageable_AddRef(ID3D12Pageable* This) {
  1926. return This->lpVtbl->AddRef(This);
  1927. }
  1928. static FORCEINLINE ULONG ID3D12Pageable_Release(ID3D12Pageable* This) {
  1929. return This->lpVtbl->Release(This);
  1930. }
  1931. /*** ID3D12Object methods ***/
  1932. static FORCEINLINE HRESULT ID3D12Pageable_GetPrivateData(ID3D12Pageable* This,REFGUID guid,UINT *data_size,void *data) {
  1933. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  1934. }
  1935. static FORCEINLINE HRESULT ID3D12Pageable_SetPrivateData(ID3D12Pageable* This,REFGUID guid,UINT data_size,const void *data) {
  1936. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  1937. }
  1938. static FORCEINLINE HRESULT ID3D12Pageable_SetPrivateDataInterface(ID3D12Pageable* This,REFGUID guid,const IUnknown *data) {
  1939. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  1940. }
  1941. static FORCEINLINE HRESULT ID3D12Pageable_SetName(ID3D12Pageable* This,const WCHAR *name) {
  1942. return This->lpVtbl->SetName(This,name);
  1943. }
  1944. /*** ID3D12DeviceChild methods ***/
  1945. static FORCEINLINE HRESULT ID3D12Pageable_GetDevice(ID3D12Pageable* This,REFIID riid,void **device) {
  1946. return This->lpVtbl->GetDevice(This,riid,device);
  1947. }
  1948. #endif
  1949. #endif
  1950. #endif
  1951. #endif /* __ID3D12Pageable_INTERFACE_DEFINED__ */
  1952. /*****************************************************************************
  1953. * ID3D12Heap interface
  1954. */
  1955. #ifndef __ID3D12Heap_INTERFACE_DEFINED__
  1956. #define __ID3D12Heap_INTERFACE_DEFINED__
  1957. DEFINE_GUID(IID_ID3D12Heap, 0x6b3b2502, 0x6e51, 0x45b3, 0x90,0xee, 0x98,0x84,0x26,0x5e,0x8d,0xf3);
  1958. #if defined(__cplusplus) && !defined(CINTERFACE)
  1959. MIDL_INTERFACE("6b3b2502-6e51-45b3-90ee-9884265e8df3")
  1960. ID3D12Heap : public ID3D12Pageable
  1961. {
  1962. #ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
  1963. virtual D3D12_HEAP_DESC* STDMETHODCALLTYPE GetDesc(
  1964. D3D12_HEAP_DESC *__ret) = 0;
  1965. D3D12_HEAP_DESC STDMETHODCALLTYPE GetDesc(
  1966. )
  1967. {
  1968. D3D12_HEAP_DESC __ret;
  1969. return *GetDesc(&__ret);
  1970. }
  1971. #else
  1972. virtual D3D12_HEAP_DESC STDMETHODCALLTYPE GetDesc(
  1973. ) = 0;
  1974. #endif
  1975. };
  1976. #ifdef __CRT_UUID_DECL
  1977. __CRT_UUID_DECL(ID3D12Heap, 0x6b3b2502, 0x6e51, 0x45b3, 0x90,0xee, 0x98,0x84,0x26,0x5e,0x8d,0xf3)
  1978. #endif
  1979. #else
  1980. typedef struct ID3D12HeapVtbl {
  1981. BEGIN_INTERFACE
  1982. /*** IUnknown methods ***/
  1983. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1984. ID3D12Heap *This,
  1985. REFIID riid,
  1986. void **ppvObject);
  1987. ULONG (STDMETHODCALLTYPE *AddRef)(
  1988. ID3D12Heap *This);
  1989. ULONG (STDMETHODCALLTYPE *Release)(
  1990. ID3D12Heap *This);
  1991. /*** ID3D12Object methods ***/
  1992. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  1993. ID3D12Heap *This,
  1994. REFGUID guid,
  1995. UINT *data_size,
  1996. void *data);
  1997. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  1998. ID3D12Heap *This,
  1999. REFGUID guid,
  2000. UINT data_size,
  2001. const void *data);
  2002. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  2003. ID3D12Heap *This,
  2004. REFGUID guid,
  2005. const IUnknown *data);
  2006. HRESULT (STDMETHODCALLTYPE *SetName)(
  2007. ID3D12Heap *This,
  2008. const WCHAR *name);
  2009. /*** ID3D12DeviceChild methods ***/
  2010. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  2011. ID3D12Heap *This,
  2012. REFIID riid,
  2013. void **device);
  2014. /*** ID3D12Heap methods ***/
  2015. D3D12_HEAP_DESC * (STDMETHODCALLTYPE *GetDesc)(
  2016. ID3D12Heap *This,
  2017. D3D12_HEAP_DESC *__ret);
  2018. END_INTERFACE
  2019. } ID3D12HeapVtbl;
  2020. interface ID3D12Heap {
  2021. CONST_VTBL ID3D12HeapVtbl* lpVtbl;
  2022. };
  2023. #ifdef COBJMACROS
  2024. #ifndef WIDL_C_INLINE_WRAPPERS
  2025. /*** IUnknown methods ***/
  2026. #define ID3D12Heap_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2027. #define ID3D12Heap_AddRef(This) (This)->lpVtbl->AddRef(This)
  2028. #define ID3D12Heap_Release(This) (This)->lpVtbl->Release(This)
  2029. /*** ID3D12Object methods ***/
  2030. #define ID3D12Heap_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  2031. #define ID3D12Heap_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  2032. #define ID3D12Heap_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  2033. #define ID3D12Heap_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  2034. /*** ID3D12DeviceChild methods ***/
  2035. #define ID3D12Heap_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  2036. /*** ID3D12Heap methods ***/
  2037. #define ID3D12Heap_GetDesc(This) ID3D12Heap_GetDesc_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  2038. #else
  2039. /*** IUnknown methods ***/
  2040. static FORCEINLINE HRESULT ID3D12Heap_QueryInterface(ID3D12Heap* This,REFIID riid,void **ppvObject) {
  2041. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2042. }
  2043. static FORCEINLINE ULONG ID3D12Heap_AddRef(ID3D12Heap* This) {
  2044. return This->lpVtbl->AddRef(This);
  2045. }
  2046. static FORCEINLINE ULONG ID3D12Heap_Release(ID3D12Heap* This) {
  2047. return This->lpVtbl->Release(This);
  2048. }
  2049. /*** ID3D12Object methods ***/
  2050. static FORCEINLINE HRESULT ID3D12Heap_GetPrivateData(ID3D12Heap* This,REFGUID guid,UINT *data_size,void *data) {
  2051. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  2052. }
  2053. static FORCEINLINE HRESULT ID3D12Heap_SetPrivateData(ID3D12Heap* This,REFGUID guid,UINT data_size,const void *data) {
  2054. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  2055. }
  2056. static FORCEINLINE HRESULT ID3D12Heap_SetPrivateDataInterface(ID3D12Heap* This,REFGUID guid,const IUnknown *data) {
  2057. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  2058. }
  2059. static FORCEINLINE HRESULT ID3D12Heap_SetName(ID3D12Heap* This,const WCHAR *name) {
  2060. return This->lpVtbl->SetName(This,name);
  2061. }
  2062. /*** ID3D12DeviceChild methods ***/
  2063. static FORCEINLINE HRESULT ID3D12Heap_GetDevice(ID3D12Heap* This,REFIID riid,void **device) {
  2064. return This->lpVtbl->GetDevice(This,riid,device);
  2065. }
  2066. /*** ID3D12Heap methods ***/
  2067. static FORCEINLINE D3D12_HEAP_DESC ID3D12Heap_GetDesc(ID3D12Heap* This) {
  2068. D3D12_HEAP_DESC __ret;
  2069. return *This->lpVtbl->GetDesc(This,&__ret);
  2070. }
  2071. #endif
  2072. #endif
  2073. #endif
  2074. #endif /* __ID3D12Heap_INTERFACE_DEFINED__ */
  2075. /*****************************************************************************
  2076. * ID3D12Resource interface
  2077. */
  2078. #ifndef __ID3D12Resource_INTERFACE_DEFINED__
  2079. #define __ID3D12Resource_INTERFACE_DEFINED__
  2080. DEFINE_GUID(IID_ID3D12Resource, 0x696442be, 0xa72e, 0x4059, 0xbc,0x79, 0x5b,0x5c,0x98,0x04,0x0f,0xad);
  2081. #if defined(__cplusplus) && !defined(CINTERFACE)
  2082. MIDL_INTERFACE("696442be-a72e-4059-bc79-5b5c98040fad")
  2083. ID3D12Resource : public ID3D12Pageable
  2084. {
  2085. virtual HRESULT STDMETHODCALLTYPE Map(
  2086. UINT sub_resource,
  2087. const D3D12_RANGE *read_range,
  2088. void **data) = 0;
  2089. virtual void STDMETHODCALLTYPE Unmap(
  2090. UINT sub_resource,
  2091. const D3D12_RANGE *written_range) = 0;
  2092. #ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
  2093. virtual D3D12_RESOURCE_DESC* STDMETHODCALLTYPE GetDesc(
  2094. D3D12_RESOURCE_DESC *__ret) = 0;
  2095. D3D12_RESOURCE_DESC STDMETHODCALLTYPE GetDesc(
  2096. )
  2097. {
  2098. D3D12_RESOURCE_DESC __ret;
  2099. return *GetDesc(&__ret);
  2100. }
  2101. #else
  2102. virtual D3D12_RESOURCE_DESC STDMETHODCALLTYPE GetDesc(
  2103. ) = 0;
  2104. #endif
  2105. virtual D3D12_GPU_VIRTUAL_ADDRESS STDMETHODCALLTYPE GetGPUVirtualAddress(
  2106. ) = 0;
  2107. virtual HRESULT STDMETHODCALLTYPE WriteToSubresource(
  2108. UINT dst_sub_resource,
  2109. const D3D12_BOX *dst_box,
  2110. const void *src_data,
  2111. UINT src_row_pitch,
  2112. UINT src_slice_pitch) = 0;
  2113. virtual HRESULT STDMETHODCALLTYPE ReadFromSubresource(
  2114. void *dst_data,
  2115. UINT dst_row_pitch,
  2116. UINT dst_slice_pitch,
  2117. UINT src_sub_resource,
  2118. const D3D12_BOX *src_box) = 0;
  2119. virtual HRESULT STDMETHODCALLTYPE GetHeapProperties(
  2120. D3D12_HEAP_PROPERTIES *heap_properties,
  2121. D3D12_HEAP_FLAGS *flags) = 0;
  2122. };
  2123. #ifdef __CRT_UUID_DECL
  2124. __CRT_UUID_DECL(ID3D12Resource, 0x696442be, 0xa72e, 0x4059, 0xbc,0x79, 0x5b,0x5c,0x98,0x04,0x0f,0xad)
  2125. #endif
  2126. #else
  2127. typedef struct ID3D12ResourceVtbl {
  2128. BEGIN_INTERFACE
  2129. /*** IUnknown methods ***/
  2130. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2131. ID3D12Resource *This,
  2132. REFIID riid,
  2133. void **ppvObject);
  2134. ULONG (STDMETHODCALLTYPE *AddRef)(
  2135. ID3D12Resource *This);
  2136. ULONG (STDMETHODCALLTYPE *Release)(
  2137. ID3D12Resource *This);
  2138. /*** ID3D12Object methods ***/
  2139. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  2140. ID3D12Resource *This,
  2141. REFGUID guid,
  2142. UINT *data_size,
  2143. void *data);
  2144. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  2145. ID3D12Resource *This,
  2146. REFGUID guid,
  2147. UINT data_size,
  2148. const void *data);
  2149. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  2150. ID3D12Resource *This,
  2151. REFGUID guid,
  2152. const IUnknown *data);
  2153. HRESULT (STDMETHODCALLTYPE *SetName)(
  2154. ID3D12Resource *This,
  2155. const WCHAR *name);
  2156. /*** ID3D12DeviceChild methods ***/
  2157. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  2158. ID3D12Resource *This,
  2159. REFIID riid,
  2160. void **device);
  2161. /*** ID3D12Resource methods ***/
  2162. HRESULT (STDMETHODCALLTYPE *Map)(
  2163. ID3D12Resource *This,
  2164. UINT sub_resource,
  2165. const D3D12_RANGE *read_range,
  2166. void **data);
  2167. void (STDMETHODCALLTYPE *Unmap)(
  2168. ID3D12Resource *This,
  2169. UINT sub_resource,
  2170. const D3D12_RANGE *written_range);
  2171. D3D12_RESOURCE_DESC * (STDMETHODCALLTYPE *GetDesc)(
  2172. ID3D12Resource *This,
  2173. D3D12_RESOURCE_DESC *__ret);
  2174. D3D12_GPU_VIRTUAL_ADDRESS (STDMETHODCALLTYPE *GetGPUVirtualAddress)(
  2175. ID3D12Resource *This);
  2176. HRESULT (STDMETHODCALLTYPE *WriteToSubresource)(
  2177. ID3D12Resource *This,
  2178. UINT dst_sub_resource,
  2179. const D3D12_BOX *dst_box,
  2180. const void *src_data,
  2181. UINT src_row_pitch,
  2182. UINT src_slice_pitch);
  2183. HRESULT (STDMETHODCALLTYPE *ReadFromSubresource)(
  2184. ID3D12Resource *This,
  2185. void *dst_data,
  2186. UINT dst_row_pitch,
  2187. UINT dst_slice_pitch,
  2188. UINT src_sub_resource,
  2189. const D3D12_BOX *src_box);
  2190. HRESULT (STDMETHODCALLTYPE *GetHeapProperties)(
  2191. ID3D12Resource *This,
  2192. D3D12_HEAP_PROPERTIES *heap_properties,
  2193. D3D12_HEAP_FLAGS *flags);
  2194. END_INTERFACE
  2195. } ID3D12ResourceVtbl;
  2196. interface ID3D12Resource {
  2197. CONST_VTBL ID3D12ResourceVtbl* lpVtbl;
  2198. };
  2199. #ifdef COBJMACROS
  2200. #ifndef WIDL_C_INLINE_WRAPPERS
  2201. /*** IUnknown methods ***/
  2202. #define ID3D12Resource_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2203. #define ID3D12Resource_AddRef(This) (This)->lpVtbl->AddRef(This)
  2204. #define ID3D12Resource_Release(This) (This)->lpVtbl->Release(This)
  2205. /*** ID3D12Object methods ***/
  2206. #define ID3D12Resource_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  2207. #define ID3D12Resource_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  2208. #define ID3D12Resource_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  2209. #define ID3D12Resource_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  2210. /*** ID3D12DeviceChild methods ***/
  2211. #define ID3D12Resource_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  2212. /*** ID3D12Resource methods ***/
  2213. #define ID3D12Resource_Map(This,sub_resource,read_range,data) (This)->lpVtbl->Map(This,sub_resource,read_range,data)
  2214. #define ID3D12Resource_Unmap(This,sub_resource,written_range) (This)->lpVtbl->Unmap(This,sub_resource,written_range)
  2215. #define ID3D12Resource_GetDesc(This) ID3D12Resource_GetDesc_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  2216. #define ID3D12Resource_GetGPUVirtualAddress(This) (This)->lpVtbl->GetGPUVirtualAddress(This)
  2217. #define ID3D12Resource_WriteToSubresource(This,dst_sub_resource,dst_box,src_data,src_row_pitch,src_slice_pitch) (This)->lpVtbl->WriteToSubresource(This,dst_sub_resource,dst_box,src_data,src_row_pitch,src_slice_pitch)
  2218. #define ID3D12Resource_ReadFromSubresource(This,dst_data,dst_row_pitch,dst_slice_pitch,src_sub_resource,src_box) (This)->lpVtbl->ReadFromSubresource(This,dst_data,dst_row_pitch,dst_slice_pitch,src_sub_resource,src_box)
  2219. #define ID3D12Resource_GetHeapProperties(This,heap_properties,flags) (This)->lpVtbl->GetHeapProperties(This,heap_properties,flags)
  2220. #else
  2221. /*** IUnknown methods ***/
  2222. static FORCEINLINE HRESULT ID3D12Resource_QueryInterface(ID3D12Resource* This,REFIID riid,void **ppvObject) {
  2223. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2224. }
  2225. static FORCEINLINE ULONG ID3D12Resource_AddRef(ID3D12Resource* This) {
  2226. return This->lpVtbl->AddRef(This);
  2227. }
  2228. static FORCEINLINE ULONG ID3D12Resource_Release(ID3D12Resource* This) {
  2229. return This->lpVtbl->Release(This);
  2230. }
  2231. /*** ID3D12Object methods ***/
  2232. static FORCEINLINE HRESULT ID3D12Resource_GetPrivateData(ID3D12Resource* This,REFGUID guid,UINT *data_size,void *data) {
  2233. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  2234. }
  2235. static FORCEINLINE HRESULT ID3D12Resource_SetPrivateData(ID3D12Resource* This,REFGUID guid,UINT data_size,const void *data) {
  2236. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  2237. }
  2238. static FORCEINLINE HRESULT ID3D12Resource_SetPrivateDataInterface(ID3D12Resource* This,REFGUID guid,const IUnknown *data) {
  2239. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  2240. }
  2241. static FORCEINLINE HRESULT ID3D12Resource_SetName(ID3D12Resource* This,const WCHAR *name) {
  2242. return This->lpVtbl->SetName(This,name);
  2243. }
  2244. /*** ID3D12DeviceChild methods ***/
  2245. static FORCEINLINE HRESULT ID3D12Resource_GetDevice(ID3D12Resource* This,REFIID riid,void **device) {
  2246. return This->lpVtbl->GetDevice(This,riid,device);
  2247. }
  2248. /*** ID3D12Resource methods ***/
  2249. static FORCEINLINE HRESULT ID3D12Resource_Map(ID3D12Resource* This,UINT sub_resource,const D3D12_RANGE *read_range,void **data) {
  2250. return This->lpVtbl->Map(This,sub_resource,read_range,data);
  2251. }
  2252. static FORCEINLINE void ID3D12Resource_Unmap(ID3D12Resource* This,UINT sub_resource,const D3D12_RANGE *written_range) {
  2253. This->lpVtbl->Unmap(This,sub_resource,written_range);
  2254. }
  2255. static FORCEINLINE D3D12_RESOURCE_DESC ID3D12Resource_GetDesc(ID3D12Resource* This) {
  2256. D3D12_RESOURCE_DESC __ret;
  2257. return *This->lpVtbl->GetDesc(This,&__ret);
  2258. }
  2259. static FORCEINLINE D3D12_GPU_VIRTUAL_ADDRESS ID3D12Resource_GetGPUVirtualAddress(ID3D12Resource* This) {
  2260. return This->lpVtbl->GetGPUVirtualAddress(This);
  2261. }
  2262. static FORCEINLINE HRESULT ID3D12Resource_WriteToSubresource(ID3D12Resource* This,UINT dst_sub_resource,const D3D12_BOX *dst_box,const void *src_data,UINT src_row_pitch,UINT src_slice_pitch) {
  2263. return This->lpVtbl->WriteToSubresource(This,dst_sub_resource,dst_box,src_data,src_row_pitch,src_slice_pitch);
  2264. }
  2265. static FORCEINLINE HRESULT ID3D12Resource_ReadFromSubresource(ID3D12Resource* This,void *dst_data,UINT dst_row_pitch,UINT dst_slice_pitch,UINT src_sub_resource,const D3D12_BOX *src_box) {
  2266. return This->lpVtbl->ReadFromSubresource(This,dst_data,dst_row_pitch,dst_slice_pitch,src_sub_resource,src_box);
  2267. }
  2268. static FORCEINLINE HRESULT ID3D12Resource_GetHeapProperties(ID3D12Resource* This,D3D12_HEAP_PROPERTIES *heap_properties,D3D12_HEAP_FLAGS *flags) {
  2269. return This->lpVtbl->GetHeapProperties(This,heap_properties,flags);
  2270. }
  2271. #endif
  2272. #endif
  2273. #endif
  2274. #endif /* __ID3D12Resource_INTERFACE_DEFINED__ */
  2275. /*****************************************************************************
  2276. * ID3D12CommandList interface
  2277. */
  2278. #ifndef __ID3D12CommandList_INTERFACE_DEFINED__
  2279. #define __ID3D12CommandList_INTERFACE_DEFINED__
  2280. DEFINE_GUID(IID_ID3D12CommandList, 0x7116d91c, 0xe7e4, 0x47ce, 0xb8,0xc6, 0xec,0x81,0x68,0xf4,0x37,0xe5);
  2281. #if defined(__cplusplus) && !defined(CINTERFACE)
  2282. MIDL_INTERFACE("7116d91c-e7e4-47ce-b8c6-ec8168f437e5")
  2283. ID3D12CommandList : public ID3D12DeviceChild
  2284. {
  2285. virtual D3D12_COMMAND_LIST_TYPE STDMETHODCALLTYPE GetType(
  2286. ) = 0;
  2287. };
  2288. #ifdef __CRT_UUID_DECL
  2289. __CRT_UUID_DECL(ID3D12CommandList, 0x7116d91c, 0xe7e4, 0x47ce, 0xb8,0xc6, 0xec,0x81,0x68,0xf4,0x37,0xe5)
  2290. #endif
  2291. #else
  2292. typedef struct ID3D12CommandListVtbl {
  2293. BEGIN_INTERFACE
  2294. /*** IUnknown methods ***/
  2295. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2296. ID3D12CommandList *This,
  2297. REFIID riid,
  2298. void **ppvObject);
  2299. ULONG (STDMETHODCALLTYPE *AddRef)(
  2300. ID3D12CommandList *This);
  2301. ULONG (STDMETHODCALLTYPE *Release)(
  2302. ID3D12CommandList *This);
  2303. /*** ID3D12Object methods ***/
  2304. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  2305. ID3D12CommandList *This,
  2306. REFGUID guid,
  2307. UINT *data_size,
  2308. void *data);
  2309. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  2310. ID3D12CommandList *This,
  2311. REFGUID guid,
  2312. UINT data_size,
  2313. const void *data);
  2314. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  2315. ID3D12CommandList *This,
  2316. REFGUID guid,
  2317. const IUnknown *data);
  2318. HRESULT (STDMETHODCALLTYPE *SetName)(
  2319. ID3D12CommandList *This,
  2320. const WCHAR *name);
  2321. /*** ID3D12DeviceChild methods ***/
  2322. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  2323. ID3D12CommandList *This,
  2324. REFIID riid,
  2325. void **device);
  2326. /*** ID3D12CommandList methods ***/
  2327. D3D12_COMMAND_LIST_TYPE (STDMETHODCALLTYPE *GetType)(
  2328. ID3D12CommandList *This);
  2329. END_INTERFACE
  2330. } ID3D12CommandListVtbl;
  2331. interface ID3D12CommandList {
  2332. CONST_VTBL ID3D12CommandListVtbl* lpVtbl;
  2333. };
  2334. #ifdef COBJMACROS
  2335. #ifndef WIDL_C_INLINE_WRAPPERS
  2336. /*** IUnknown methods ***/
  2337. #define ID3D12CommandList_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2338. #define ID3D12CommandList_AddRef(This) (This)->lpVtbl->AddRef(This)
  2339. #define ID3D12CommandList_Release(This) (This)->lpVtbl->Release(This)
  2340. /*** ID3D12Object methods ***/
  2341. #define ID3D12CommandList_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  2342. #define ID3D12CommandList_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  2343. #define ID3D12CommandList_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  2344. #define ID3D12CommandList_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  2345. /*** ID3D12DeviceChild methods ***/
  2346. #define ID3D12CommandList_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  2347. /*** ID3D12CommandList methods ***/
  2348. #define ID3D12CommandList_GetType(This) (This)->lpVtbl->GetType(This)
  2349. #else
  2350. /*** IUnknown methods ***/
  2351. static FORCEINLINE HRESULT ID3D12CommandList_QueryInterface(ID3D12CommandList* This,REFIID riid,void **ppvObject) {
  2352. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2353. }
  2354. static FORCEINLINE ULONG ID3D12CommandList_AddRef(ID3D12CommandList* This) {
  2355. return This->lpVtbl->AddRef(This);
  2356. }
  2357. static FORCEINLINE ULONG ID3D12CommandList_Release(ID3D12CommandList* This) {
  2358. return This->lpVtbl->Release(This);
  2359. }
  2360. /*** ID3D12Object methods ***/
  2361. static FORCEINLINE HRESULT ID3D12CommandList_GetPrivateData(ID3D12CommandList* This,REFGUID guid,UINT *data_size,void *data) {
  2362. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  2363. }
  2364. static FORCEINLINE HRESULT ID3D12CommandList_SetPrivateData(ID3D12CommandList* This,REFGUID guid,UINT data_size,const void *data) {
  2365. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  2366. }
  2367. static FORCEINLINE HRESULT ID3D12CommandList_SetPrivateDataInterface(ID3D12CommandList* This,REFGUID guid,const IUnknown *data) {
  2368. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  2369. }
  2370. static FORCEINLINE HRESULT ID3D12CommandList_SetName(ID3D12CommandList* This,const WCHAR *name) {
  2371. return This->lpVtbl->SetName(This,name);
  2372. }
  2373. /*** ID3D12DeviceChild methods ***/
  2374. static FORCEINLINE HRESULT ID3D12CommandList_GetDevice(ID3D12CommandList* This,REFIID riid,void **device) {
  2375. return This->lpVtbl->GetDevice(This,riid,device);
  2376. }
  2377. /*** ID3D12CommandList methods ***/
  2378. static FORCEINLINE D3D12_COMMAND_LIST_TYPE ID3D12CommandList_GetType(ID3D12CommandList* This) {
  2379. return This->lpVtbl->GetType(This);
  2380. }
  2381. #endif
  2382. #endif
  2383. #endif
  2384. #endif /* __ID3D12CommandList_INTERFACE_DEFINED__ */
  2385. typedef enum D3D12_TILE_COPY_FLAGS {
  2386. D3D12_TILE_COPY_FLAG_NONE = 0x0,
  2387. D3D12_TILE_COPY_FLAG_NO_HAZARD = 0x1,
  2388. D3D12_TILE_COPY_FLAG_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2,
  2389. D3D12_TILE_COPY_FLAG_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4
  2390. } D3D12_TILE_COPY_FLAGS;
  2391. DEFINE_ENUM_FLAG_OPERATORS(D3D12_TILE_COPY_FLAGS);
  2392. typedef struct D3D12_INDEX_BUFFER_VIEW {
  2393. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  2394. UINT SizeInBytes;
  2395. DXGI_FORMAT Format;
  2396. } D3D12_INDEX_BUFFER_VIEW;
  2397. typedef struct D3D12_VERTEX_BUFFER_VIEW {
  2398. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  2399. UINT SizeInBytes;
  2400. UINT StrideInBytes;
  2401. } D3D12_VERTEX_BUFFER_VIEW;
  2402. typedef struct D3D12_STREAM_OUTPUT_BUFFER_VIEW {
  2403. D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
  2404. UINT64 SizeInBytes;
  2405. D3D12_GPU_VIRTUAL_ADDRESS BufferFilledSizeLocation;
  2406. } D3D12_STREAM_OUTPUT_BUFFER_VIEW;
  2407. typedef enum D3D12_CLEAR_FLAGS {
  2408. D3D12_CLEAR_FLAG_DEPTH = 0x1,
  2409. D3D12_CLEAR_FLAG_STENCIL = 0x2
  2410. } D3D12_CLEAR_FLAGS;
  2411. DEFINE_ENUM_FLAG_OPERATORS(D3D12_CLEAR_FLAGS);
  2412. typedef struct D3D12_DISCARD_REGION {
  2413. UINT NumRects;
  2414. const D3D12_RECT *pRects;
  2415. UINT FirstSubresource;
  2416. UINT NumSubresources;
  2417. } D3D12_DISCARD_REGION;
  2418. typedef enum D3D12_QUERY_TYPE {
  2419. D3D12_QUERY_TYPE_OCCLUSION = 0,
  2420. D3D12_QUERY_TYPE_BINARY_OCCLUSION = 1,
  2421. D3D12_QUERY_TYPE_TIMESTAMP = 2,
  2422. D3D12_QUERY_TYPE_PIPELINE_STATISTICS = 3,
  2423. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM0 = 4,
  2424. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM1 = 5,
  2425. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM2 = 6,
  2426. D3D12_QUERY_TYPE_SO_STATISTICS_STREAM3 = 7
  2427. } D3D12_QUERY_TYPE;
  2428. typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS {
  2429. UINT64 IAVertices;
  2430. UINT64 IAPrimitives;
  2431. UINT64 VSInvocations;
  2432. UINT64 GSInvocations;
  2433. UINT64 GSPrimitives;
  2434. UINT64 CInvocations;
  2435. UINT64 CPrimitives;
  2436. UINT64 PSInvocations;
  2437. UINT64 HSInvocations;
  2438. UINT64 DSInvocations;
  2439. UINT64 CSInvocations;
  2440. } D3D12_QUERY_DATA_PIPELINE_STATISTICS;
  2441. typedef struct D3D12_QUERY_DATA_SO_STATISTICS {
  2442. UINT64 NumPrimitivesWritten;
  2443. UINT64 PrimitivesStorageNeeded;
  2444. } D3D12_QUERY_DATA_SO_STATISTICS;
  2445. typedef enum D3D12_PREDICATION_OP {
  2446. D3D12_PREDICATION_OP_EQUAL_ZERO = 0,
  2447. D3D12_PREDICATION_OP_NOT_EQUAL_ZERO = 1
  2448. } D3D12_PREDICATION_OP;
  2449. /*****************************************************************************
  2450. * ID3D12DescriptorHeap interface
  2451. */
  2452. #ifndef __ID3D12DescriptorHeap_INTERFACE_DEFINED__
  2453. #define __ID3D12DescriptorHeap_INTERFACE_DEFINED__
  2454. DEFINE_GUID(IID_ID3D12DescriptorHeap, 0x8efb471d, 0x616c, 0x4f49, 0x90,0xf7, 0x12,0x7b,0xb7,0x63,0xfa,0x51);
  2455. #if defined(__cplusplus) && !defined(CINTERFACE)
  2456. MIDL_INTERFACE("8efb471d-616c-4f49-90f7-127bb763fa51")
  2457. ID3D12DescriptorHeap : public ID3D12Pageable
  2458. {
  2459. #ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
  2460. virtual D3D12_DESCRIPTOR_HEAP_DESC* STDMETHODCALLTYPE GetDesc(
  2461. D3D12_DESCRIPTOR_HEAP_DESC *__ret) = 0;
  2462. D3D12_DESCRIPTOR_HEAP_DESC STDMETHODCALLTYPE GetDesc(
  2463. )
  2464. {
  2465. D3D12_DESCRIPTOR_HEAP_DESC __ret;
  2466. return *GetDesc(&__ret);
  2467. }
  2468. #else
  2469. virtual D3D12_DESCRIPTOR_HEAP_DESC STDMETHODCALLTYPE GetDesc(
  2470. ) = 0;
  2471. #endif
  2472. #ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
  2473. virtual D3D12_CPU_DESCRIPTOR_HANDLE* STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart(
  2474. D3D12_CPU_DESCRIPTOR_HANDLE *__ret) = 0;
  2475. D3D12_CPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart(
  2476. )
  2477. {
  2478. D3D12_CPU_DESCRIPTOR_HANDLE __ret;
  2479. return *GetCPUDescriptorHandleForHeapStart(&__ret);
  2480. }
  2481. #else
  2482. virtual D3D12_CPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart(
  2483. ) = 0;
  2484. #endif
  2485. #ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
  2486. virtual D3D12_GPU_DESCRIPTOR_HANDLE* STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart(
  2487. D3D12_GPU_DESCRIPTOR_HANDLE *__ret) = 0;
  2488. D3D12_GPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart(
  2489. )
  2490. {
  2491. D3D12_GPU_DESCRIPTOR_HANDLE __ret;
  2492. return *GetGPUDescriptorHandleForHeapStart(&__ret);
  2493. }
  2494. #else
  2495. virtual D3D12_GPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart(
  2496. ) = 0;
  2497. #endif
  2498. };
  2499. #ifdef __CRT_UUID_DECL
  2500. __CRT_UUID_DECL(ID3D12DescriptorHeap, 0x8efb471d, 0x616c, 0x4f49, 0x90,0xf7, 0x12,0x7b,0xb7,0x63,0xfa,0x51)
  2501. #endif
  2502. #else
  2503. typedef struct ID3D12DescriptorHeapVtbl {
  2504. BEGIN_INTERFACE
  2505. /*** IUnknown methods ***/
  2506. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2507. ID3D12DescriptorHeap *This,
  2508. REFIID riid,
  2509. void **ppvObject);
  2510. ULONG (STDMETHODCALLTYPE *AddRef)(
  2511. ID3D12DescriptorHeap *This);
  2512. ULONG (STDMETHODCALLTYPE *Release)(
  2513. ID3D12DescriptorHeap *This);
  2514. /*** ID3D12Object methods ***/
  2515. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  2516. ID3D12DescriptorHeap *This,
  2517. REFGUID guid,
  2518. UINT *data_size,
  2519. void *data);
  2520. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  2521. ID3D12DescriptorHeap *This,
  2522. REFGUID guid,
  2523. UINT data_size,
  2524. const void *data);
  2525. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  2526. ID3D12DescriptorHeap *This,
  2527. REFGUID guid,
  2528. const IUnknown *data);
  2529. HRESULT (STDMETHODCALLTYPE *SetName)(
  2530. ID3D12DescriptorHeap *This,
  2531. const WCHAR *name);
  2532. /*** ID3D12DeviceChild methods ***/
  2533. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  2534. ID3D12DescriptorHeap *This,
  2535. REFIID riid,
  2536. void **device);
  2537. /*** ID3D12DescriptorHeap methods ***/
  2538. D3D12_DESCRIPTOR_HEAP_DESC * (STDMETHODCALLTYPE *GetDesc)(
  2539. ID3D12DescriptorHeap *This,
  2540. D3D12_DESCRIPTOR_HEAP_DESC *__ret);
  2541. D3D12_CPU_DESCRIPTOR_HANDLE * (STDMETHODCALLTYPE *GetCPUDescriptorHandleForHeapStart)(
  2542. ID3D12DescriptorHeap *This,
  2543. D3D12_CPU_DESCRIPTOR_HANDLE *__ret);
  2544. D3D12_GPU_DESCRIPTOR_HANDLE * (STDMETHODCALLTYPE *GetGPUDescriptorHandleForHeapStart)(
  2545. ID3D12DescriptorHeap *This,
  2546. D3D12_GPU_DESCRIPTOR_HANDLE *__ret);
  2547. END_INTERFACE
  2548. } ID3D12DescriptorHeapVtbl;
  2549. interface ID3D12DescriptorHeap {
  2550. CONST_VTBL ID3D12DescriptorHeapVtbl* lpVtbl;
  2551. };
  2552. #ifdef COBJMACROS
  2553. #ifndef WIDL_C_INLINE_WRAPPERS
  2554. /*** IUnknown methods ***/
  2555. #define ID3D12DescriptorHeap_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2556. #define ID3D12DescriptorHeap_AddRef(This) (This)->lpVtbl->AddRef(This)
  2557. #define ID3D12DescriptorHeap_Release(This) (This)->lpVtbl->Release(This)
  2558. /*** ID3D12Object methods ***/
  2559. #define ID3D12DescriptorHeap_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  2560. #define ID3D12DescriptorHeap_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  2561. #define ID3D12DescriptorHeap_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  2562. #define ID3D12DescriptorHeap_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  2563. /*** ID3D12DeviceChild methods ***/
  2564. #define ID3D12DescriptorHeap_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  2565. /*** ID3D12DescriptorHeap methods ***/
  2566. #define ID3D12DescriptorHeap_GetDesc(This) ID3D12DescriptorHeap_GetDesc_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  2567. #define ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(This) ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  2568. #define ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(This) ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  2569. #else
  2570. /*** IUnknown methods ***/
  2571. static FORCEINLINE HRESULT ID3D12DescriptorHeap_QueryInterface(ID3D12DescriptorHeap* This,REFIID riid,void **ppvObject) {
  2572. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2573. }
  2574. static FORCEINLINE ULONG ID3D12DescriptorHeap_AddRef(ID3D12DescriptorHeap* This) {
  2575. return This->lpVtbl->AddRef(This);
  2576. }
  2577. static FORCEINLINE ULONG ID3D12DescriptorHeap_Release(ID3D12DescriptorHeap* This) {
  2578. return This->lpVtbl->Release(This);
  2579. }
  2580. /*** ID3D12Object methods ***/
  2581. static FORCEINLINE HRESULT ID3D12DescriptorHeap_GetPrivateData(ID3D12DescriptorHeap* This,REFGUID guid,UINT *data_size,void *data) {
  2582. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  2583. }
  2584. static FORCEINLINE HRESULT ID3D12DescriptorHeap_SetPrivateData(ID3D12DescriptorHeap* This,REFGUID guid,UINT data_size,const void *data) {
  2585. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  2586. }
  2587. static FORCEINLINE HRESULT ID3D12DescriptorHeap_SetPrivateDataInterface(ID3D12DescriptorHeap* This,REFGUID guid,const IUnknown *data) {
  2588. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  2589. }
  2590. static FORCEINLINE HRESULT ID3D12DescriptorHeap_SetName(ID3D12DescriptorHeap* This,const WCHAR *name) {
  2591. return This->lpVtbl->SetName(This,name);
  2592. }
  2593. /*** ID3D12DeviceChild methods ***/
  2594. static FORCEINLINE HRESULT ID3D12DescriptorHeap_GetDevice(ID3D12DescriptorHeap* This,REFIID riid,void **device) {
  2595. return This->lpVtbl->GetDevice(This,riid,device);
  2596. }
  2597. /*** ID3D12DescriptorHeap methods ***/
  2598. static FORCEINLINE D3D12_DESCRIPTOR_HEAP_DESC ID3D12DescriptorHeap_GetDesc(ID3D12DescriptorHeap* This) {
  2599. D3D12_DESCRIPTOR_HEAP_DESC __ret;
  2600. return *This->lpVtbl->GetDesc(This,&__ret);
  2601. }
  2602. static FORCEINLINE D3D12_CPU_DESCRIPTOR_HANDLE ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(ID3D12DescriptorHeap* This) {
  2603. D3D12_CPU_DESCRIPTOR_HANDLE __ret;
  2604. return *This->lpVtbl->GetCPUDescriptorHandleForHeapStart(This,&__ret);
  2605. }
  2606. static FORCEINLINE D3D12_GPU_DESCRIPTOR_HANDLE ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(ID3D12DescriptorHeap* This) {
  2607. D3D12_GPU_DESCRIPTOR_HANDLE __ret;
  2608. return *This->lpVtbl->GetGPUDescriptorHandleForHeapStart(This,&__ret);
  2609. }
  2610. #endif
  2611. #endif
  2612. #endif
  2613. #endif /* __ID3D12DescriptorHeap_INTERFACE_DEFINED__ */
  2614. /*****************************************************************************
  2615. * ID3D12QueryHeap interface
  2616. */
  2617. #ifndef __ID3D12QueryHeap_INTERFACE_DEFINED__
  2618. #define __ID3D12QueryHeap_INTERFACE_DEFINED__
  2619. DEFINE_GUID(IID_ID3D12QueryHeap, 0x0d9658ae, 0xed45, 0x469e, 0xa6,0x1d, 0x97,0x0e,0xc5,0x83,0xca,0xb4);
  2620. #if defined(__cplusplus) && !defined(CINTERFACE)
  2621. MIDL_INTERFACE("0d9658ae-ed45-469e-a61d-970ec583cab4")
  2622. ID3D12QueryHeap : public ID3D12Pageable
  2623. {
  2624. };
  2625. #ifdef __CRT_UUID_DECL
  2626. __CRT_UUID_DECL(ID3D12QueryHeap, 0x0d9658ae, 0xed45, 0x469e, 0xa6,0x1d, 0x97,0x0e,0xc5,0x83,0xca,0xb4)
  2627. #endif
  2628. #else
  2629. typedef struct ID3D12QueryHeapVtbl {
  2630. BEGIN_INTERFACE
  2631. /*** IUnknown methods ***/
  2632. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2633. ID3D12QueryHeap *This,
  2634. REFIID riid,
  2635. void **ppvObject);
  2636. ULONG (STDMETHODCALLTYPE *AddRef)(
  2637. ID3D12QueryHeap *This);
  2638. ULONG (STDMETHODCALLTYPE *Release)(
  2639. ID3D12QueryHeap *This);
  2640. /*** ID3D12Object methods ***/
  2641. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  2642. ID3D12QueryHeap *This,
  2643. REFGUID guid,
  2644. UINT *data_size,
  2645. void *data);
  2646. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  2647. ID3D12QueryHeap *This,
  2648. REFGUID guid,
  2649. UINT data_size,
  2650. const void *data);
  2651. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  2652. ID3D12QueryHeap *This,
  2653. REFGUID guid,
  2654. const IUnknown *data);
  2655. HRESULT (STDMETHODCALLTYPE *SetName)(
  2656. ID3D12QueryHeap *This,
  2657. const WCHAR *name);
  2658. /*** ID3D12DeviceChild methods ***/
  2659. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  2660. ID3D12QueryHeap *This,
  2661. REFIID riid,
  2662. void **device);
  2663. END_INTERFACE
  2664. } ID3D12QueryHeapVtbl;
  2665. interface ID3D12QueryHeap {
  2666. CONST_VTBL ID3D12QueryHeapVtbl* lpVtbl;
  2667. };
  2668. #ifdef COBJMACROS
  2669. #ifndef WIDL_C_INLINE_WRAPPERS
  2670. /*** IUnknown methods ***/
  2671. #define ID3D12QueryHeap_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2672. #define ID3D12QueryHeap_AddRef(This) (This)->lpVtbl->AddRef(This)
  2673. #define ID3D12QueryHeap_Release(This) (This)->lpVtbl->Release(This)
  2674. /*** ID3D12Object methods ***/
  2675. #define ID3D12QueryHeap_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  2676. #define ID3D12QueryHeap_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  2677. #define ID3D12QueryHeap_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  2678. #define ID3D12QueryHeap_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  2679. /*** ID3D12DeviceChild methods ***/
  2680. #define ID3D12QueryHeap_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  2681. #else
  2682. /*** IUnknown methods ***/
  2683. static FORCEINLINE HRESULT ID3D12QueryHeap_QueryInterface(ID3D12QueryHeap* This,REFIID riid,void **ppvObject) {
  2684. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2685. }
  2686. static FORCEINLINE ULONG ID3D12QueryHeap_AddRef(ID3D12QueryHeap* This) {
  2687. return This->lpVtbl->AddRef(This);
  2688. }
  2689. static FORCEINLINE ULONG ID3D12QueryHeap_Release(ID3D12QueryHeap* This) {
  2690. return This->lpVtbl->Release(This);
  2691. }
  2692. /*** ID3D12Object methods ***/
  2693. static FORCEINLINE HRESULT ID3D12QueryHeap_GetPrivateData(ID3D12QueryHeap* This,REFGUID guid,UINT *data_size,void *data) {
  2694. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  2695. }
  2696. static FORCEINLINE HRESULT ID3D12QueryHeap_SetPrivateData(ID3D12QueryHeap* This,REFGUID guid,UINT data_size,const void *data) {
  2697. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  2698. }
  2699. static FORCEINLINE HRESULT ID3D12QueryHeap_SetPrivateDataInterface(ID3D12QueryHeap* This,REFGUID guid,const IUnknown *data) {
  2700. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  2701. }
  2702. static FORCEINLINE HRESULT ID3D12QueryHeap_SetName(ID3D12QueryHeap* This,const WCHAR *name) {
  2703. return This->lpVtbl->SetName(This,name);
  2704. }
  2705. /*** ID3D12DeviceChild methods ***/
  2706. static FORCEINLINE HRESULT ID3D12QueryHeap_GetDevice(ID3D12QueryHeap* This,REFIID riid,void **device) {
  2707. return This->lpVtbl->GetDevice(This,riid,device);
  2708. }
  2709. #endif
  2710. #endif
  2711. #endif
  2712. #endif /* __ID3D12QueryHeap_INTERFACE_DEFINED__ */
  2713. /*****************************************************************************
  2714. * ID3D12CommandSignature interface
  2715. */
  2716. #ifndef __ID3D12CommandSignature_INTERFACE_DEFINED__
  2717. #define __ID3D12CommandSignature_INTERFACE_DEFINED__
  2718. DEFINE_GUID(IID_ID3D12CommandSignature, 0xc36a797c, 0xec80, 0x4f0a, 0x89,0x85, 0xa7,0xb2,0x47,0x50,0x82,0xd1);
  2719. #if defined(__cplusplus) && !defined(CINTERFACE)
  2720. MIDL_INTERFACE("c36a797c-ec80-4f0a-8985-a7b2475082d1")
  2721. ID3D12CommandSignature : public ID3D12Pageable
  2722. {
  2723. };
  2724. #ifdef __CRT_UUID_DECL
  2725. __CRT_UUID_DECL(ID3D12CommandSignature, 0xc36a797c, 0xec80, 0x4f0a, 0x89,0x85, 0xa7,0xb2,0x47,0x50,0x82,0xd1)
  2726. #endif
  2727. #else
  2728. typedef struct ID3D12CommandSignatureVtbl {
  2729. BEGIN_INTERFACE
  2730. /*** IUnknown methods ***/
  2731. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2732. ID3D12CommandSignature *This,
  2733. REFIID riid,
  2734. void **ppvObject);
  2735. ULONG (STDMETHODCALLTYPE *AddRef)(
  2736. ID3D12CommandSignature *This);
  2737. ULONG (STDMETHODCALLTYPE *Release)(
  2738. ID3D12CommandSignature *This);
  2739. /*** ID3D12Object methods ***/
  2740. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  2741. ID3D12CommandSignature *This,
  2742. REFGUID guid,
  2743. UINT *data_size,
  2744. void *data);
  2745. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  2746. ID3D12CommandSignature *This,
  2747. REFGUID guid,
  2748. UINT data_size,
  2749. const void *data);
  2750. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  2751. ID3D12CommandSignature *This,
  2752. REFGUID guid,
  2753. const IUnknown *data);
  2754. HRESULT (STDMETHODCALLTYPE *SetName)(
  2755. ID3D12CommandSignature *This,
  2756. const WCHAR *name);
  2757. /*** ID3D12DeviceChild methods ***/
  2758. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  2759. ID3D12CommandSignature *This,
  2760. REFIID riid,
  2761. void **device);
  2762. END_INTERFACE
  2763. } ID3D12CommandSignatureVtbl;
  2764. interface ID3D12CommandSignature {
  2765. CONST_VTBL ID3D12CommandSignatureVtbl* lpVtbl;
  2766. };
  2767. #ifdef COBJMACROS
  2768. #ifndef WIDL_C_INLINE_WRAPPERS
  2769. /*** IUnknown methods ***/
  2770. #define ID3D12CommandSignature_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2771. #define ID3D12CommandSignature_AddRef(This) (This)->lpVtbl->AddRef(This)
  2772. #define ID3D12CommandSignature_Release(This) (This)->lpVtbl->Release(This)
  2773. /*** ID3D12Object methods ***/
  2774. #define ID3D12CommandSignature_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  2775. #define ID3D12CommandSignature_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  2776. #define ID3D12CommandSignature_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  2777. #define ID3D12CommandSignature_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  2778. /*** ID3D12DeviceChild methods ***/
  2779. #define ID3D12CommandSignature_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  2780. #else
  2781. /*** IUnknown methods ***/
  2782. static FORCEINLINE HRESULT ID3D12CommandSignature_QueryInterface(ID3D12CommandSignature* This,REFIID riid,void **ppvObject) {
  2783. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2784. }
  2785. static FORCEINLINE ULONG ID3D12CommandSignature_AddRef(ID3D12CommandSignature* This) {
  2786. return This->lpVtbl->AddRef(This);
  2787. }
  2788. static FORCEINLINE ULONG ID3D12CommandSignature_Release(ID3D12CommandSignature* This) {
  2789. return This->lpVtbl->Release(This);
  2790. }
  2791. /*** ID3D12Object methods ***/
  2792. static FORCEINLINE HRESULT ID3D12CommandSignature_GetPrivateData(ID3D12CommandSignature* This,REFGUID guid,UINT *data_size,void *data) {
  2793. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  2794. }
  2795. static FORCEINLINE HRESULT ID3D12CommandSignature_SetPrivateData(ID3D12CommandSignature* This,REFGUID guid,UINT data_size,const void *data) {
  2796. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  2797. }
  2798. static FORCEINLINE HRESULT ID3D12CommandSignature_SetPrivateDataInterface(ID3D12CommandSignature* This,REFGUID guid,const IUnknown *data) {
  2799. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  2800. }
  2801. static FORCEINLINE HRESULT ID3D12CommandSignature_SetName(ID3D12CommandSignature* This,const WCHAR *name) {
  2802. return This->lpVtbl->SetName(This,name);
  2803. }
  2804. /*** ID3D12DeviceChild methods ***/
  2805. static FORCEINLINE HRESULT ID3D12CommandSignature_GetDevice(ID3D12CommandSignature* This,REFIID riid,void **device) {
  2806. return This->lpVtbl->GetDevice(This,riid,device);
  2807. }
  2808. #endif
  2809. #endif
  2810. #endif
  2811. #endif /* __ID3D12CommandSignature_INTERFACE_DEFINED__ */
  2812. /*****************************************************************************
  2813. * ID3D12GraphicsCommandList interface
  2814. */
  2815. #ifndef __ID3D12GraphicsCommandList_INTERFACE_DEFINED__
  2816. #define __ID3D12GraphicsCommandList_INTERFACE_DEFINED__
  2817. DEFINE_GUID(IID_ID3D12GraphicsCommandList, 0x5b160d0f, 0xac1b, 0x4185, 0x8b,0xa8, 0xb3,0xae,0x42,0xa5,0xa4,0x55);
  2818. #if defined(__cplusplus) && !defined(CINTERFACE)
  2819. MIDL_INTERFACE("5b160d0f-ac1b-4185-8ba8-b3ae42a5a455")
  2820. ID3D12GraphicsCommandList : public ID3D12CommandList
  2821. {
  2822. virtual HRESULT STDMETHODCALLTYPE Close(
  2823. ) = 0;
  2824. virtual HRESULT STDMETHODCALLTYPE Reset(
  2825. ID3D12CommandAllocator *allocator,
  2826. ID3D12PipelineState *initial_state) = 0;
  2827. virtual void STDMETHODCALLTYPE ClearState(
  2828. ID3D12PipelineState *pipeline_state) = 0;
  2829. virtual void STDMETHODCALLTYPE DrawInstanced(
  2830. UINT vertex_count_per_instance,
  2831. UINT instance_count,
  2832. UINT start_vertex_location,
  2833. UINT start_instance_location) = 0;
  2834. virtual void STDMETHODCALLTYPE DrawIndexedInstanced(
  2835. UINT index_count_per_instance,
  2836. UINT instance_count,
  2837. UINT start_vertex_location,
  2838. INT base_vertex_location,
  2839. UINT start_instance_location) = 0;
  2840. virtual void STDMETHODCALLTYPE Dispatch(
  2841. UINT x,
  2842. UINT u,
  2843. UINT z) = 0;
  2844. virtual void STDMETHODCALLTYPE CopyBufferRegion(
  2845. ID3D12Resource *dst_buffer,
  2846. UINT64 dst_offset,
  2847. ID3D12Resource *src_buffer,
  2848. UINT64 src_offset,
  2849. UINT64 byte_count) = 0;
  2850. virtual void STDMETHODCALLTYPE CopyTextureRegion(
  2851. const D3D12_TEXTURE_COPY_LOCATION *dst,
  2852. UINT dst_x,
  2853. UINT dst_y,
  2854. UINT dst_z,
  2855. const D3D12_TEXTURE_COPY_LOCATION *src,
  2856. const D3D12_BOX *src_box) = 0;
  2857. virtual void STDMETHODCALLTYPE CopyResource(
  2858. ID3D12Resource *dst_resource,
  2859. ID3D12Resource *src_resource) = 0;
  2860. virtual void STDMETHODCALLTYPE CopyTiles(
  2861. ID3D12Resource *tiled_resource,
  2862. const D3D12_TILED_RESOURCE_COORDINATE *tile_region_start_coordinate,
  2863. const D3D12_TILE_REGION_SIZE *tile_region_size,
  2864. ID3D12Resource *buffer,
  2865. UINT64 buffer_offset,
  2866. D3D12_TILE_COPY_FLAGS flags) = 0;
  2867. virtual void STDMETHODCALLTYPE ResolveSubresource(
  2868. ID3D12Resource *dst_resource,
  2869. UINT dst_sub_resource,
  2870. ID3D12Resource *src_resource,
  2871. UINT src_sub_resource,
  2872. DXGI_FORMAT format) = 0;
  2873. virtual void STDMETHODCALLTYPE IASetPrimitiveTopology(
  2874. D3D12_PRIMITIVE_TOPOLOGY primitive_topology) = 0;
  2875. virtual void STDMETHODCALLTYPE RSSetViewports(
  2876. UINT viewport_count,
  2877. const D3D12_VIEWPORT *viewports) = 0;
  2878. virtual void STDMETHODCALLTYPE RSSetScissorRects(
  2879. UINT rect_count,
  2880. const D3D12_RECT *rects) = 0;
  2881. virtual void STDMETHODCALLTYPE OMSetBlendFactor(
  2882. const FLOAT blend_factor[4]) = 0;
  2883. virtual void STDMETHODCALLTYPE OMSetStencilRef(
  2884. UINT stencil_ref) = 0;
  2885. virtual void STDMETHODCALLTYPE SetPipelineState(
  2886. ID3D12PipelineState *pipeline_state) = 0;
  2887. virtual void STDMETHODCALLTYPE ResourceBarrier(
  2888. UINT barrier_count,
  2889. const D3D12_RESOURCE_BARRIER *barriers) = 0;
  2890. virtual void STDMETHODCALLTYPE ExecuteBundle(
  2891. ID3D12GraphicsCommandList *command_list) = 0;
  2892. virtual void STDMETHODCALLTYPE SetDescriptorHeaps(
  2893. UINT heap_count,
  2894. ID3D12DescriptorHeap *const *heaps) = 0;
  2895. virtual void STDMETHODCALLTYPE SetComputeRootSignature(
  2896. ID3D12RootSignature *root_signature) = 0;
  2897. virtual void STDMETHODCALLTYPE SetGraphicsRootSignature(
  2898. ID3D12RootSignature *root_signature) = 0;
  2899. virtual void STDMETHODCALLTYPE SetComputeRootDescriptorTable(
  2900. UINT root_parameter_index,
  2901. D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor) = 0;
  2902. virtual void STDMETHODCALLTYPE SetGraphicsRootDescriptorTable(
  2903. UINT root_parameter_index,
  2904. D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor) = 0;
  2905. virtual void STDMETHODCALLTYPE SetComputeRoot32BitConstant(
  2906. UINT root_parameter_index,
  2907. UINT data,
  2908. UINT dst_offset) = 0;
  2909. virtual void STDMETHODCALLTYPE SetGraphicsRoot32BitConstant(
  2910. UINT root_parameter_index,
  2911. UINT data,
  2912. UINT dst_offset) = 0;
  2913. virtual void STDMETHODCALLTYPE SetComputeRoot32BitConstants(
  2914. UINT root_parameter_index,
  2915. UINT constant_count,
  2916. const void *data,
  2917. UINT dst_offset) = 0;
  2918. virtual void STDMETHODCALLTYPE SetGraphicsRoot32BitConstants(
  2919. UINT root_parameter_index,
  2920. UINT constant_count,
  2921. const void *data,
  2922. UINT dst_offset) = 0;
  2923. virtual void STDMETHODCALLTYPE SetComputeRootConstantBufferView(
  2924. UINT root_parameter_index,
  2925. D3D12_GPU_VIRTUAL_ADDRESS address) = 0;
  2926. virtual void STDMETHODCALLTYPE SetGraphicsRootConstantBufferView(
  2927. UINT root_parameter_index,
  2928. D3D12_GPU_VIRTUAL_ADDRESS address) = 0;
  2929. virtual void STDMETHODCALLTYPE SetComputeRootShaderResourceView(
  2930. UINT root_parameter_index,
  2931. D3D12_GPU_VIRTUAL_ADDRESS address) = 0;
  2932. virtual void STDMETHODCALLTYPE SetGraphicsRootShaderResourceView(
  2933. UINT root_parameter_index,
  2934. D3D12_GPU_VIRTUAL_ADDRESS address) = 0;
  2935. virtual void STDMETHODCALLTYPE SetComputeRootUnorderedAccessView(
  2936. UINT root_parameter_index,
  2937. D3D12_GPU_VIRTUAL_ADDRESS address) = 0;
  2938. virtual void STDMETHODCALLTYPE SetGraphicsRootUnorderedAccessView(
  2939. UINT root_parameter_index,
  2940. D3D12_GPU_VIRTUAL_ADDRESS address) = 0;
  2941. virtual void STDMETHODCALLTYPE IASetIndexBuffer(
  2942. const D3D12_INDEX_BUFFER_VIEW *view) = 0;
  2943. virtual void STDMETHODCALLTYPE IASetVertexBuffers(
  2944. UINT start_slot,
  2945. UINT view_count,
  2946. const D3D12_VERTEX_BUFFER_VIEW *views) = 0;
  2947. virtual void STDMETHODCALLTYPE SOSetTargets(
  2948. UINT start_slot,
  2949. UINT view_count,
  2950. const D3D12_STREAM_OUTPUT_BUFFER_VIEW *views) = 0;
  2951. virtual void STDMETHODCALLTYPE OMSetRenderTargets(
  2952. UINT render_target_descriptor_count,
  2953. const D3D12_CPU_DESCRIPTOR_HANDLE *render_target_descriptors,
  2954. WINBOOL single_descriptor_handle,
  2955. const D3D12_CPU_DESCRIPTOR_HANDLE *depth_stencil_descriptor) = 0;
  2956. virtual void STDMETHODCALLTYPE ClearDepthStencilView(
  2957. D3D12_CPU_DESCRIPTOR_HANDLE dsv,
  2958. D3D12_CLEAR_FLAGS flags,
  2959. FLOAT depth,
  2960. UINT8 stencil,
  2961. UINT rect_count,
  2962. const D3D12_RECT *rects) = 0;
  2963. virtual void STDMETHODCALLTYPE ClearRenderTargetView(
  2964. D3D12_CPU_DESCRIPTOR_HANDLE rtv,
  2965. const FLOAT color[4],
  2966. UINT rect_count,
  2967. const D3D12_RECT *rects) = 0;
  2968. virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewUint(
  2969. D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,
  2970. D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,
  2971. ID3D12Resource *resource,
  2972. const UINT values[4],
  2973. UINT rect_count,
  2974. const D3D12_RECT *rects) = 0;
  2975. virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewFloat(
  2976. D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,
  2977. D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,
  2978. ID3D12Resource *resource,
  2979. const float values[4],
  2980. UINT rect_count,
  2981. const D3D12_RECT *rects) = 0;
  2982. virtual void STDMETHODCALLTYPE DiscardResource(
  2983. ID3D12Resource *resource,
  2984. const D3D12_DISCARD_REGION *region) = 0;
  2985. virtual void STDMETHODCALLTYPE BeginQuery(
  2986. ID3D12QueryHeap *heap,
  2987. D3D12_QUERY_TYPE type,
  2988. UINT index) = 0;
  2989. virtual void STDMETHODCALLTYPE EndQuery(
  2990. ID3D12QueryHeap *heap,
  2991. D3D12_QUERY_TYPE type,
  2992. UINT index) = 0;
  2993. virtual void STDMETHODCALLTYPE ResolveQueryData(
  2994. ID3D12QueryHeap *heap,
  2995. D3D12_QUERY_TYPE type,
  2996. UINT start_index,
  2997. UINT query_count,
  2998. ID3D12Resource *dst_buffer,
  2999. UINT64 aligned_dst_buffer_offset) = 0;
  3000. virtual void STDMETHODCALLTYPE SetPredication(
  3001. ID3D12Resource *buffer,
  3002. UINT64 aligned_buffer_offset,
  3003. D3D12_PREDICATION_OP operation) = 0;
  3004. virtual void STDMETHODCALLTYPE SetMarker(
  3005. UINT metadata,
  3006. const void *data,
  3007. UINT size) = 0;
  3008. virtual void STDMETHODCALLTYPE BeginEvent(
  3009. UINT metadata,
  3010. const void *data,
  3011. UINT size) = 0;
  3012. virtual void STDMETHODCALLTYPE EndEvent(
  3013. ) = 0;
  3014. virtual void STDMETHODCALLTYPE ExecuteIndirect(
  3015. ID3D12CommandSignature *command_signature,
  3016. UINT max_command_count,
  3017. ID3D12Resource *arg_buffer,
  3018. UINT64 arg_buffer_offset,
  3019. ID3D12Resource *count_buffer,
  3020. UINT64 count_buffer_offset) = 0;
  3021. };
  3022. #ifdef __CRT_UUID_DECL
  3023. __CRT_UUID_DECL(ID3D12GraphicsCommandList, 0x5b160d0f, 0xac1b, 0x4185, 0x8b,0xa8, 0xb3,0xae,0x42,0xa5,0xa4,0x55)
  3024. #endif
  3025. #else
  3026. typedef struct ID3D12GraphicsCommandListVtbl {
  3027. BEGIN_INTERFACE
  3028. /*** IUnknown methods ***/
  3029. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  3030. ID3D12GraphicsCommandList *This,
  3031. REFIID riid,
  3032. void **ppvObject);
  3033. ULONG (STDMETHODCALLTYPE *AddRef)(
  3034. ID3D12GraphicsCommandList *This);
  3035. ULONG (STDMETHODCALLTYPE *Release)(
  3036. ID3D12GraphicsCommandList *This);
  3037. /*** ID3D12Object methods ***/
  3038. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  3039. ID3D12GraphicsCommandList *This,
  3040. REFGUID guid,
  3041. UINT *data_size,
  3042. void *data);
  3043. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  3044. ID3D12GraphicsCommandList *This,
  3045. REFGUID guid,
  3046. UINT data_size,
  3047. const void *data);
  3048. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  3049. ID3D12GraphicsCommandList *This,
  3050. REFGUID guid,
  3051. const IUnknown *data);
  3052. HRESULT (STDMETHODCALLTYPE *SetName)(
  3053. ID3D12GraphicsCommandList *This,
  3054. const WCHAR *name);
  3055. /*** ID3D12DeviceChild methods ***/
  3056. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  3057. ID3D12GraphicsCommandList *This,
  3058. REFIID riid,
  3059. void **device);
  3060. /*** ID3D12CommandList methods ***/
  3061. D3D12_COMMAND_LIST_TYPE (STDMETHODCALLTYPE *GetType)(
  3062. ID3D12GraphicsCommandList *This);
  3063. /*** ID3D12GraphicsCommandList methods ***/
  3064. HRESULT (STDMETHODCALLTYPE *Close)(
  3065. ID3D12GraphicsCommandList *This);
  3066. HRESULT (STDMETHODCALLTYPE *Reset)(
  3067. ID3D12GraphicsCommandList *This,
  3068. ID3D12CommandAllocator *allocator,
  3069. ID3D12PipelineState *initial_state);
  3070. void (STDMETHODCALLTYPE *ClearState)(
  3071. ID3D12GraphicsCommandList *This,
  3072. ID3D12PipelineState *pipeline_state);
  3073. void (STDMETHODCALLTYPE *DrawInstanced)(
  3074. ID3D12GraphicsCommandList *This,
  3075. UINT vertex_count_per_instance,
  3076. UINT instance_count,
  3077. UINT start_vertex_location,
  3078. UINT start_instance_location);
  3079. void (STDMETHODCALLTYPE *DrawIndexedInstanced)(
  3080. ID3D12GraphicsCommandList *This,
  3081. UINT index_count_per_instance,
  3082. UINT instance_count,
  3083. UINT start_vertex_location,
  3084. INT base_vertex_location,
  3085. UINT start_instance_location);
  3086. void (STDMETHODCALLTYPE *Dispatch)(
  3087. ID3D12GraphicsCommandList *This,
  3088. UINT x,
  3089. UINT u,
  3090. UINT z);
  3091. void (STDMETHODCALLTYPE *CopyBufferRegion)(
  3092. ID3D12GraphicsCommandList *This,
  3093. ID3D12Resource *dst_buffer,
  3094. UINT64 dst_offset,
  3095. ID3D12Resource *src_buffer,
  3096. UINT64 src_offset,
  3097. UINT64 byte_count);
  3098. void (STDMETHODCALLTYPE *CopyTextureRegion)(
  3099. ID3D12GraphicsCommandList *This,
  3100. const D3D12_TEXTURE_COPY_LOCATION *dst,
  3101. UINT dst_x,
  3102. UINT dst_y,
  3103. UINT dst_z,
  3104. const D3D12_TEXTURE_COPY_LOCATION *src,
  3105. const D3D12_BOX *src_box);
  3106. void (STDMETHODCALLTYPE *CopyResource)(
  3107. ID3D12GraphicsCommandList *This,
  3108. ID3D12Resource *dst_resource,
  3109. ID3D12Resource *src_resource);
  3110. void (STDMETHODCALLTYPE *CopyTiles)(
  3111. ID3D12GraphicsCommandList *This,
  3112. ID3D12Resource *tiled_resource,
  3113. const D3D12_TILED_RESOURCE_COORDINATE *tile_region_start_coordinate,
  3114. const D3D12_TILE_REGION_SIZE *tile_region_size,
  3115. ID3D12Resource *buffer,
  3116. UINT64 buffer_offset,
  3117. D3D12_TILE_COPY_FLAGS flags);
  3118. void (STDMETHODCALLTYPE *ResolveSubresource)(
  3119. ID3D12GraphicsCommandList *This,
  3120. ID3D12Resource *dst_resource,
  3121. UINT dst_sub_resource,
  3122. ID3D12Resource *src_resource,
  3123. UINT src_sub_resource,
  3124. DXGI_FORMAT format);
  3125. void (STDMETHODCALLTYPE *IASetPrimitiveTopology)(
  3126. ID3D12GraphicsCommandList *This,
  3127. D3D12_PRIMITIVE_TOPOLOGY primitive_topology);
  3128. void (STDMETHODCALLTYPE *RSSetViewports)(
  3129. ID3D12GraphicsCommandList *This,
  3130. UINT viewport_count,
  3131. const D3D12_VIEWPORT *viewports);
  3132. void (STDMETHODCALLTYPE *RSSetScissorRects)(
  3133. ID3D12GraphicsCommandList *This,
  3134. UINT rect_count,
  3135. const D3D12_RECT *rects);
  3136. void (STDMETHODCALLTYPE *OMSetBlendFactor)(
  3137. ID3D12GraphicsCommandList *This,
  3138. const FLOAT blend_factor[4]);
  3139. void (STDMETHODCALLTYPE *OMSetStencilRef)(
  3140. ID3D12GraphicsCommandList *This,
  3141. UINT stencil_ref);
  3142. void (STDMETHODCALLTYPE *SetPipelineState)(
  3143. ID3D12GraphicsCommandList *This,
  3144. ID3D12PipelineState *pipeline_state);
  3145. void (STDMETHODCALLTYPE *ResourceBarrier)(
  3146. ID3D12GraphicsCommandList *This,
  3147. UINT barrier_count,
  3148. const D3D12_RESOURCE_BARRIER *barriers);
  3149. void (STDMETHODCALLTYPE *ExecuteBundle)(
  3150. ID3D12GraphicsCommandList *This,
  3151. ID3D12GraphicsCommandList *command_list);
  3152. void (STDMETHODCALLTYPE *SetDescriptorHeaps)(
  3153. ID3D12GraphicsCommandList *This,
  3154. UINT heap_count,
  3155. ID3D12DescriptorHeap *const *heaps);
  3156. void (STDMETHODCALLTYPE *SetComputeRootSignature)(
  3157. ID3D12GraphicsCommandList *This,
  3158. ID3D12RootSignature *root_signature);
  3159. void (STDMETHODCALLTYPE *SetGraphicsRootSignature)(
  3160. ID3D12GraphicsCommandList *This,
  3161. ID3D12RootSignature *root_signature);
  3162. void (STDMETHODCALLTYPE *SetComputeRootDescriptorTable)(
  3163. ID3D12GraphicsCommandList *This,
  3164. UINT root_parameter_index,
  3165. D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor);
  3166. void (STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable)(
  3167. ID3D12GraphicsCommandList *This,
  3168. UINT root_parameter_index,
  3169. D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor);
  3170. void (STDMETHODCALLTYPE *SetComputeRoot32BitConstant)(
  3171. ID3D12GraphicsCommandList *This,
  3172. UINT root_parameter_index,
  3173. UINT data,
  3174. UINT dst_offset);
  3175. void (STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant)(
  3176. ID3D12GraphicsCommandList *This,
  3177. UINT root_parameter_index,
  3178. UINT data,
  3179. UINT dst_offset);
  3180. void (STDMETHODCALLTYPE *SetComputeRoot32BitConstants)(
  3181. ID3D12GraphicsCommandList *This,
  3182. UINT root_parameter_index,
  3183. UINT constant_count,
  3184. const void *data,
  3185. UINT dst_offset);
  3186. void (STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants)(
  3187. ID3D12GraphicsCommandList *This,
  3188. UINT root_parameter_index,
  3189. UINT constant_count,
  3190. const void *data,
  3191. UINT dst_offset);
  3192. void (STDMETHODCALLTYPE *SetComputeRootConstantBufferView)(
  3193. ID3D12GraphicsCommandList *This,
  3194. UINT root_parameter_index,
  3195. D3D12_GPU_VIRTUAL_ADDRESS address);
  3196. void (STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView)(
  3197. ID3D12GraphicsCommandList *This,
  3198. UINT root_parameter_index,
  3199. D3D12_GPU_VIRTUAL_ADDRESS address);
  3200. void (STDMETHODCALLTYPE *SetComputeRootShaderResourceView)(
  3201. ID3D12GraphicsCommandList *This,
  3202. UINT root_parameter_index,
  3203. D3D12_GPU_VIRTUAL_ADDRESS address);
  3204. void (STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView)(
  3205. ID3D12GraphicsCommandList *This,
  3206. UINT root_parameter_index,
  3207. D3D12_GPU_VIRTUAL_ADDRESS address);
  3208. void (STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView)(
  3209. ID3D12GraphicsCommandList *This,
  3210. UINT root_parameter_index,
  3211. D3D12_GPU_VIRTUAL_ADDRESS address);
  3212. void (STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView)(
  3213. ID3D12GraphicsCommandList *This,
  3214. UINT root_parameter_index,
  3215. D3D12_GPU_VIRTUAL_ADDRESS address);
  3216. void (STDMETHODCALLTYPE *IASetIndexBuffer)(
  3217. ID3D12GraphicsCommandList *This,
  3218. const D3D12_INDEX_BUFFER_VIEW *view);
  3219. void (STDMETHODCALLTYPE *IASetVertexBuffers)(
  3220. ID3D12GraphicsCommandList *This,
  3221. UINT start_slot,
  3222. UINT view_count,
  3223. const D3D12_VERTEX_BUFFER_VIEW *views);
  3224. void (STDMETHODCALLTYPE *SOSetTargets)(
  3225. ID3D12GraphicsCommandList *This,
  3226. UINT start_slot,
  3227. UINT view_count,
  3228. const D3D12_STREAM_OUTPUT_BUFFER_VIEW *views);
  3229. void (STDMETHODCALLTYPE *OMSetRenderTargets)(
  3230. ID3D12GraphicsCommandList *This,
  3231. UINT render_target_descriptor_count,
  3232. const D3D12_CPU_DESCRIPTOR_HANDLE *render_target_descriptors,
  3233. WINBOOL single_descriptor_handle,
  3234. const D3D12_CPU_DESCRIPTOR_HANDLE *depth_stencil_descriptor);
  3235. void (STDMETHODCALLTYPE *ClearDepthStencilView)(
  3236. ID3D12GraphicsCommandList *This,
  3237. D3D12_CPU_DESCRIPTOR_HANDLE dsv,
  3238. D3D12_CLEAR_FLAGS flags,
  3239. FLOAT depth,
  3240. UINT8 stencil,
  3241. UINT rect_count,
  3242. const D3D12_RECT *rects);
  3243. void (STDMETHODCALLTYPE *ClearRenderTargetView)(
  3244. ID3D12GraphicsCommandList *This,
  3245. D3D12_CPU_DESCRIPTOR_HANDLE rtv,
  3246. const FLOAT color[4],
  3247. UINT rect_count,
  3248. const D3D12_RECT *rects);
  3249. void (STDMETHODCALLTYPE *ClearUnorderedAccessViewUint)(
  3250. ID3D12GraphicsCommandList *This,
  3251. D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,
  3252. D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,
  3253. ID3D12Resource *resource,
  3254. const UINT values[4],
  3255. UINT rect_count,
  3256. const D3D12_RECT *rects);
  3257. void (STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat)(
  3258. ID3D12GraphicsCommandList *This,
  3259. D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,
  3260. D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,
  3261. ID3D12Resource *resource,
  3262. const float values[4],
  3263. UINT rect_count,
  3264. const D3D12_RECT *rects);
  3265. void (STDMETHODCALLTYPE *DiscardResource)(
  3266. ID3D12GraphicsCommandList *This,
  3267. ID3D12Resource *resource,
  3268. const D3D12_DISCARD_REGION *region);
  3269. void (STDMETHODCALLTYPE *BeginQuery)(
  3270. ID3D12GraphicsCommandList *This,
  3271. ID3D12QueryHeap *heap,
  3272. D3D12_QUERY_TYPE type,
  3273. UINT index);
  3274. void (STDMETHODCALLTYPE *EndQuery)(
  3275. ID3D12GraphicsCommandList *This,
  3276. ID3D12QueryHeap *heap,
  3277. D3D12_QUERY_TYPE type,
  3278. UINT index);
  3279. void (STDMETHODCALLTYPE *ResolveQueryData)(
  3280. ID3D12GraphicsCommandList *This,
  3281. ID3D12QueryHeap *heap,
  3282. D3D12_QUERY_TYPE type,
  3283. UINT start_index,
  3284. UINT query_count,
  3285. ID3D12Resource *dst_buffer,
  3286. UINT64 aligned_dst_buffer_offset);
  3287. void (STDMETHODCALLTYPE *SetPredication)(
  3288. ID3D12GraphicsCommandList *This,
  3289. ID3D12Resource *buffer,
  3290. UINT64 aligned_buffer_offset,
  3291. D3D12_PREDICATION_OP operation);
  3292. void (STDMETHODCALLTYPE *SetMarker)(
  3293. ID3D12GraphicsCommandList *This,
  3294. UINT metadata,
  3295. const void *data,
  3296. UINT size);
  3297. void (STDMETHODCALLTYPE *BeginEvent)(
  3298. ID3D12GraphicsCommandList *This,
  3299. UINT metadata,
  3300. const void *data,
  3301. UINT size);
  3302. void (STDMETHODCALLTYPE *EndEvent)(
  3303. ID3D12GraphicsCommandList *This);
  3304. void (STDMETHODCALLTYPE *ExecuteIndirect)(
  3305. ID3D12GraphicsCommandList *This,
  3306. ID3D12CommandSignature *command_signature,
  3307. UINT max_command_count,
  3308. ID3D12Resource *arg_buffer,
  3309. UINT64 arg_buffer_offset,
  3310. ID3D12Resource *count_buffer,
  3311. UINT64 count_buffer_offset);
  3312. END_INTERFACE
  3313. } ID3D12GraphicsCommandListVtbl;
  3314. interface ID3D12GraphicsCommandList {
  3315. CONST_VTBL ID3D12GraphicsCommandListVtbl* lpVtbl;
  3316. };
  3317. #ifdef COBJMACROS
  3318. #ifndef WIDL_C_INLINE_WRAPPERS
  3319. /*** IUnknown methods ***/
  3320. #define ID3D12GraphicsCommandList_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  3321. #define ID3D12GraphicsCommandList_AddRef(This) (This)->lpVtbl->AddRef(This)
  3322. #define ID3D12GraphicsCommandList_Release(This) (This)->lpVtbl->Release(This)
  3323. /*** ID3D12Object methods ***/
  3324. #define ID3D12GraphicsCommandList_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  3325. #define ID3D12GraphicsCommandList_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  3326. #define ID3D12GraphicsCommandList_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  3327. #define ID3D12GraphicsCommandList_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  3328. /*** ID3D12DeviceChild methods ***/
  3329. #define ID3D12GraphicsCommandList_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  3330. /*** ID3D12CommandList methods ***/
  3331. #define ID3D12GraphicsCommandList_GetType(This) (This)->lpVtbl->GetType(This)
  3332. /*** ID3D12GraphicsCommandList methods ***/
  3333. #define ID3D12GraphicsCommandList_Close(This) (This)->lpVtbl->Close(This)
  3334. #define ID3D12GraphicsCommandList_Reset(This,allocator,initial_state) (This)->lpVtbl->Reset(This,allocator,initial_state)
  3335. #define ID3D12GraphicsCommandList_ClearState(This,pipeline_state) (This)->lpVtbl->ClearState(This,pipeline_state)
  3336. #define ID3D12GraphicsCommandList_DrawInstanced(This,vertex_count_per_instance,instance_count,start_vertex_location,start_instance_location) (This)->lpVtbl->DrawInstanced(This,vertex_count_per_instance,instance_count,start_vertex_location,start_instance_location)
  3337. #define ID3D12GraphicsCommandList_DrawIndexedInstanced(This,index_count_per_instance,instance_count,start_vertex_location,base_vertex_location,start_instance_location) (This)->lpVtbl->DrawIndexedInstanced(This,index_count_per_instance,instance_count,start_vertex_location,base_vertex_location,start_instance_location)
  3338. #define ID3D12GraphicsCommandList_Dispatch(This,x,u,z) (This)->lpVtbl->Dispatch(This,x,u,z)
  3339. #define ID3D12GraphicsCommandList_CopyBufferRegion(This,dst_buffer,dst_offset,src_buffer,src_offset,byte_count) (This)->lpVtbl->CopyBufferRegion(This,dst_buffer,dst_offset,src_buffer,src_offset,byte_count)
  3340. #define ID3D12GraphicsCommandList_CopyTextureRegion(This,dst,dst_x,dst_y,dst_z,src,src_box) (This)->lpVtbl->CopyTextureRegion(This,dst,dst_x,dst_y,dst_z,src,src_box)
  3341. #define ID3D12GraphicsCommandList_CopyResource(This,dst_resource,src_resource) (This)->lpVtbl->CopyResource(This,dst_resource,src_resource)
  3342. #define ID3D12GraphicsCommandList_CopyTiles(This,tiled_resource,tile_region_start_coordinate,tile_region_size,buffer,buffer_offset,flags) (This)->lpVtbl->CopyTiles(This,tiled_resource,tile_region_start_coordinate,tile_region_size,buffer,buffer_offset,flags)
  3343. #define ID3D12GraphicsCommandList_ResolveSubresource(This,dst_resource,dst_sub_resource,src_resource,src_sub_resource,format) (This)->lpVtbl->ResolveSubresource(This,dst_resource,dst_sub_resource,src_resource,src_sub_resource,format)
  3344. #define ID3D12GraphicsCommandList_IASetPrimitiveTopology(This,primitive_topology) (This)->lpVtbl->IASetPrimitiveTopology(This,primitive_topology)
  3345. #define ID3D12GraphicsCommandList_RSSetViewports(This,viewport_count,viewports) (This)->lpVtbl->RSSetViewports(This,viewport_count,viewports)
  3346. #define ID3D12GraphicsCommandList_RSSetScissorRects(This,rect_count,rects) (This)->lpVtbl->RSSetScissorRects(This,rect_count,rects)
  3347. #define ID3D12GraphicsCommandList_OMSetBlendFactor(This,blend_factor) (This)->lpVtbl->OMSetBlendFactor(This,blend_factor)
  3348. #define ID3D12GraphicsCommandList_OMSetStencilRef(This,stencil_ref) (This)->lpVtbl->OMSetStencilRef(This,stencil_ref)
  3349. #define ID3D12GraphicsCommandList_SetPipelineState(This,pipeline_state) (This)->lpVtbl->SetPipelineState(This,pipeline_state)
  3350. #define ID3D12GraphicsCommandList_ResourceBarrier(This,barrier_count,barriers) (This)->lpVtbl->ResourceBarrier(This,barrier_count,barriers)
  3351. #define ID3D12GraphicsCommandList_ExecuteBundle(This,command_list) (This)->lpVtbl->ExecuteBundle(This,command_list)
  3352. #define ID3D12GraphicsCommandList_SetDescriptorHeaps(This,heap_count,heaps) (This)->lpVtbl->SetDescriptorHeaps(This,heap_count,heaps)
  3353. #define ID3D12GraphicsCommandList_SetComputeRootSignature(This,root_signature) (This)->lpVtbl->SetComputeRootSignature(This,root_signature)
  3354. #define ID3D12GraphicsCommandList_SetGraphicsRootSignature(This,root_signature) (This)->lpVtbl->SetGraphicsRootSignature(This,root_signature)
  3355. #define ID3D12GraphicsCommandList_SetComputeRootDescriptorTable(This,root_parameter_index,base_descriptor) (This)->lpVtbl->SetComputeRootDescriptorTable(This,root_parameter_index,base_descriptor)
  3356. #define ID3D12GraphicsCommandList_SetGraphicsRootDescriptorTable(This,root_parameter_index,base_descriptor) (This)->lpVtbl->SetGraphicsRootDescriptorTable(This,root_parameter_index,base_descriptor)
  3357. #define ID3D12GraphicsCommandList_SetComputeRoot32BitConstant(This,root_parameter_index,data,dst_offset) (This)->lpVtbl->SetComputeRoot32BitConstant(This,root_parameter_index,data,dst_offset)
  3358. #define ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstant(This,root_parameter_index,data,dst_offset) (This)->lpVtbl->SetGraphicsRoot32BitConstant(This,root_parameter_index,data,dst_offset)
  3359. #define ID3D12GraphicsCommandList_SetComputeRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset) (This)->lpVtbl->SetComputeRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset)
  3360. #define ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset) (This)->lpVtbl->SetGraphicsRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset)
  3361. #define ID3D12GraphicsCommandList_SetComputeRootConstantBufferView(This,root_parameter_index,address) (This)->lpVtbl->SetComputeRootConstantBufferView(This,root_parameter_index,address)
  3362. #define ID3D12GraphicsCommandList_SetGraphicsRootConstantBufferView(This,root_parameter_index,address) (This)->lpVtbl->SetGraphicsRootConstantBufferView(This,root_parameter_index,address)
  3363. #define ID3D12GraphicsCommandList_SetComputeRootShaderResourceView(This,root_parameter_index,address) (This)->lpVtbl->SetComputeRootShaderResourceView(This,root_parameter_index,address)
  3364. #define ID3D12GraphicsCommandList_SetGraphicsRootShaderResourceView(This,root_parameter_index,address) (This)->lpVtbl->SetGraphicsRootShaderResourceView(This,root_parameter_index,address)
  3365. #define ID3D12GraphicsCommandList_SetComputeRootUnorderedAccessView(This,root_parameter_index,address) (This)->lpVtbl->SetComputeRootUnorderedAccessView(This,root_parameter_index,address)
  3366. #define ID3D12GraphicsCommandList_SetGraphicsRootUnorderedAccessView(This,root_parameter_index,address) (This)->lpVtbl->SetGraphicsRootUnorderedAccessView(This,root_parameter_index,address)
  3367. #define ID3D12GraphicsCommandList_IASetIndexBuffer(This,view) (This)->lpVtbl->IASetIndexBuffer(This,view)
  3368. #define ID3D12GraphicsCommandList_IASetVertexBuffers(This,start_slot,view_count,views) (This)->lpVtbl->IASetVertexBuffers(This,start_slot,view_count,views)
  3369. #define ID3D12GraphicsCommandList_SOSetTargets(This,start_slot,view_count,views) (This)->lpVtbl->SOSetTargets(This,start_slot,view_count,views)
  3370. #define ID3D12GraphicsCommandList_OMSetRenderTargets(This,render_target_descriptor_count,render_target_descriptors,single_descriptor_handle,depth_stencil_descriptor) (This)->lpVtbl->OMSetRenderTargets(This,render_target_descriptor_count,render_target_descriptors,single_descriptor_handle,depth_stencil_descriptor)
  3371. #define ID3D12GraphicsCommandList_ClearDepthStencilView(This,dsv,flags,depth,stencil,rect_count,rects) (This)->lpVtbl->ClearDepthStencilView(This,dsv,flags,depth,stencil,rect_count,rects)
  3372. #define ID3D12GraphicsCommandList_ClearRenderTargetView(This,rtv,color,rect_count,rects) (This)->lpVtbl->ClearRenderTargetView(This,rtv,color,rect_count,rects)
  3373. #define ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint(This,gpu_handle,cpu_handle,resource,values,rect_count,rects) (This)->lpVtbl->ClearUnorderedAccessViewUint(This,gpu_handle,cpu_handle,resource,values,rect_count,rects)
  3374. #define ID3D12GraphicsCommandList_ClearUnorderedAccessViewFloat(This,gpu_handle,cpu_handle,resource,values,rect_count,rects) (This)->lpVtbl->ClearUnorderedAccessViewFloat(This,gpu_handle,cpu_handle,resource,values,rect_count,rects)
  3375. #define ID3D12GraphicsCommandList_DiscardResource(This,resource,region) (This)->lpVtbl->DiscardResource(This,resource,region)
  3376. #define ID3D12GraphicsCommandList_BeginQuery(This,heap,type,index) (This)->lpVtbl->BeginQuery(This,heap,type,index)
  3377. #define ID3D12GraphicsCommandList_EndQuery(This,heap,type,index) (This)->lpVtbl->EndQuery(This,heap,type,index)
  3378. #define ID3D12GraphicsCommandList_ResolveQueryData(This,heap,type,start_index,query_count,dst_buffer,aligned_dst_buffer_offset) (This)->lpVtbl->ResolveQueryData(This,heap,type,start_index,query_count,dst_buffer,aligned_dst_buffer_offset)
  3379. #define ID3D12GraphicsCommandList_SetPredication(This,buffer,aligned_buffer_offset,operation) (This)->lpVtbl->SetPredication(This,buffer,aligned_buffer_offset,operation)
  3380. #define ID3D12GraphicsCommandList_SetMarker(This,metadata,data,size) (This)->lpVtbl->SetMarker(This,metadata,data,size)
  3381. #define ID3D12GraphicsCommandList_BeginEvent(This,metadata,data,size) (This)->lpVtbl->BeginEvent(This,metadata,data,size)
  3382. #define ID3D12GraphicsCommandList_EndEvent(This) (This)->lpVtbl->EndEvent(This)
  3383. #define ID3D12GraphicsCommandList_ExecuteIndirect(This,command_signature,max_command_count,arg_buffer,arg_buffer_offset,count_buffer,count_buffer_offset) (This)->lpVtbl->ExecuteIndirect(This,command_signature,max_command_count,arg_buffer,arg_buffer_offset,count_buffer,count_buffer_offset)
  3384. #else
  3385. /*** IUnknown methods ***/
  3386. static FORCEINLINE HRESULT ID3D12GraphicsCommandList_QueryInterface(ID3D12GraphicsCommandList* This,REFIID riid,void **ppvObject) {
  3387. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  3388. }
  3389. static FORCEINLINE ULONG ID3D12GraphicsCommandList_AddRef(ID3D12GraphicsCommandList* This) {
  3390. return This->lpVtbl->AddRef(This);
  3391. }
  3392. static FORCEINLINE ULONG ID3D12GraphicsCommandList_Release(ID3D12GraphicsCommandList* This) {
  3393. return This->lpVtbl->Release(This);
  3394. }
  3395. /*** ID3D12Object methods ***/
  3396. static FORCEINLINE HRESULT ID3D12GraphicsCommandList_GetPrivateData(ID3D12GraphicsCommandList* This,REFGUID guid,UINT *data_size,void *data) {
  3397. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  3398. }
  3399. static FORCEINLINE HRESULT ID3D12GraphicsCommandList_SetPrivateData(ID3D12GraphicsCommandList* This,REFGUID guid,UINT data_size,const void *data) {
  3400. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  3401. }
  3402. static FORCEINLINE HRESULT ID3D12GraphicsCommandList_SetPrivateDataInterface(ID3D12GraphicsCommandList* This,REFGUID guid,const IUnknown *data) {
  3403. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  3404. }
  3405. static FORCEINLINE HRESULT ID3D12GraphicsCommandList_SetName(ID3D12GraphicsCommandList* This,const WCHAR *name) {
  3406. return This->lpVtbl->SetName(This,name);
  3407. }
  3408. /*** ID3D12DeviceChild methods ***/
  3409. static FORCEINLINE HRESULT ID3D12GraphicsCommandList_GetDevice(ID3D12GraphicsCommandList* This,REFIID riid,void **device) {
  3410. return This->lpVtbl->GetDevice(This,riid,device);
  3411. }
  3412. /*** ID3D12CommandList methods ***/
  3413. static FORCEINLINE D3D12_COMMAND_LIST_TYPE ID3D12GraphicsCommandList_GetType(ID3D12GraphicsCommandList* This) {
  3414. return This->lpVtbl->GetType(This);
  3415. }
  3416. /*** ID3D12GraphicsCommandList methods ***/
  3417. static FORCEINLINE HRESULT ID3D12GraphicsCommandList_Close(ID3D12GraphicsCommandList* This) {
  3418. return This->lpVtbl->Close(This);
  3419. }
  3420. static FORCEINLINE HRESULT ID3D12GraphicsCommandList_Reset(ID3D12GraphicsCommandList* This,ID3D12CommandAllocator *allocator,ID3D12PipelineState *initial_state) {
  3421. return This->lpVtbl->Reset(This,allocator,initial_state);
  3422. }
  3423. static FORCEINLINE void ID3D12GraphicsCommandList_ClearState(ID3D12GraphicsCommandList* This,ID3D12PipelineState *pipeline_state) {
  3424. This->lpVtbl->ClearState(This,pipeline_state);
  3425. }
  3426. static FORCEINLINE void ID3D12GraphicsCommandList_DrawInstanced(ID3D12GraphicsCommandList* This,UINT vertex_count_per_instance,UINT instance_count,UINT start_vertex_location,UINT start_instance_location) {
  3427. This->lpVtbl->DrawInstanced(This,vertex_count_per_instance,instance_count,start_vertex_location,start_instance_location);
  3428. }
  3429. static FORCEINLINE void ID3D12GraphicsCommandList_DrawIndexedInstanced(ID3D12GraphicsCommandList* This,UINT index_count_per_instance,UINT instance_count,UINT start_vertex_location,INT base_vertex_location,UINT start_instance_location) {
  3430. This->lpVtbl->DrawIndexedInstanced(This,index_count_per_instance,instance_count,start_vertex_location,base_vertex_location,start_instance_location);
  3431. }
  3432. static FORCEINLINE void ID3D12GraphicsCommandList_Dispatch(ID3D12GraphicsCommandList* This,UINT x,UINT u,UINT z) {
  3433. This->lpVtbl->Dispatch(This,x,u,z);
  3434. }
  3435. static FORCEINLINE void ID3D12GraphicsCommandList_CopyBufferRegion(ID3D12GraphicsCommandList* This,ID3D12Resource *dst_buffer,UINT64 dst_offset,ID3D12Resource *src_buffer,UINT64 src_offset,UINT64 byte_count) {
  3436. This->lpVtbl->CopyBufferRegion(This,dst_buffer,dst_offset,src_buffer,src_offset,byte_count);
  3437. }
  3438. static FORCEINLINE void ID3D12GraphicsCommandList_CopyTextureRegion(ID3D12GraphicsCommandList* This,const D3D12_TEXTURE_COPY_LOCATION *dst,UINT dst_x,UINT dst_y,UINT dst_z,const D3D12_TEXTURE_COPY_LOCATION *src,const D3D12_BOX *src_box) {
  3439. This->lpVtbl->CopyTextureRegion(This,dst,dst_x,dst_y,dst_z,src,src_box);
  3440. }
  3441. static FORCEINLINE void ID3D12GraphicsCommandList_CopyResource(ID3D12GraphicsCommandList* This,ID3D12Resource *dst_resource,ID3D12Resource *src_resource) {
  3442. This->lpVtbl->CopyResource(This,dst_resource,src_resource);
  3443. }
  3444. static FORCEINLINE void ID3D12GraphicsCommandList_CopyTiles(ID3D12GraphicsCommandList* This,ID3D12Resource *tiled_resource,const D3D12_TILED_RESOURCE_COORDINATE *tile_region_start_coordinate,const D3D12_TILE_REGION_SIZE *tile_region_size,ID3D12Resource *buffer,UINT64 buffer_offset,D3D12_TILE_COPY_FLAGS flags) {
  3445. This->lpVtbl->CopyTiles(This,tiled_resource,tile_region_start_coordinate,tile_region_size,buffer,buffer_offset,flags);
  3446. }
  3447. static FORCEINLINE void ID3D12GraphicsCommandList_ResolveSubresource(ID3D12GraphicsCommandList* This,ID3D12Resource *dst_resource,UINT dst_sub_resource,ID3D12Resource *src_resource,UINT src_sub_resource,DXGI_FORMAT format) {
  3448. This->lpVtbl->ResolveSubresource(This,dst_resource,dst_sub_resource,src_resource,src_sub_resource,format);
  3449. }
  3450. static FORCEINLINE void ID3D12GraphicsCommandList_IASetPrimitiveTopology(ID3D12GraphicsCommandList* This,D3D12_PRIMITIVE_TOPOLOGY primitive_topology) {
  3451. This->lpVtbl->IASetPrimitiveTopology(This,primitive_topology);
  3452. }
  3453. static FORCEINLINE void ID3D12GraphicsCommandList_RSSetViewports(ID3D12GraphicsCommandList* This,UINT viewport_count,const D3D12_VIEWPORT *viewports) {
  3454. This->lpVtbl->RSSetViewports(This,viewport_count,viewports);
  3455. }
  3456. static FORCEINLINE void ID3D12GraphicsCommandList_RSSetScissorRects(ID3D12GraphicsCommandList* This,UINT rect_count,const D3D12_RECT *rects) {
  3457. This->lpVtbl->RSSetScissorRects(This,rect_count,rects);
  3458. }
  3459. static FORCEINLINE void ID3D12GraphicsCommandList_OMSetBlendFactor(ID3D12GraphicsCommandList* This,const FLOAT blend_factor[4]) {
  3460. This->lpVtbl->OMSetBlendFactor(This,blend_factor);
  3461. }
  3462. static FORCEINLINE void ID3D12GraphicsCommandList_OMSetStencilRef(ID3D12GraphicsCommandList* This,UINT stencil_ref) {
  3463. This->lpVtbl->OMSetStencilRef(This,stencil_ref);
  3464. }
  3465. static FORCEINLINE void ID3D12GraphicsCommandList_SetPipelineState(ID3D12GraphicsCommandList* This,ID3D12PipelineState *pipeline_state) {
  3466. This->lpVtbl->SetPipelineState(This,pipeline_state);
  3467. }
  3468. static FORCEINLINE void ID3D12GraphicsCommandList_ResourceBarrier(ID3D12GraphicsCommandList* This,UINT barrier_count,const D3D12_RESOURCE_BARRIER *barriers) {
  3469. This->lpVtbl->ResourceBarrier(This,barrier_count,barriers);
  3470. }
  3471. static FORCEINLINE void ID3D12GraphicsCommandList_ExecuteBundle(ID3D12GraphicsCommandList* This,ID3D12GraphicsCommandList *command_list) {
  3472. This->lpVtbl->ExecuteBundle(This,command_list);
  3473. }
  3474. static FORCEINLINE void ID3D12GraphicsCommandList_SetDescriptorHeaps(ID3D12GraphicsCommandList* This,UINT heap_count,ID3D12DescriptorHeap *const *heaps) {
  3475. This->lpVtbl->SetDescriptorHeaps(This,heap_count,heaps);
  3476. }
  3477. static FORCEINLINE void ID3D12GraphicsCommandList_SetComputeRootSignature(ID3D12GraphicsCommandList* This,ID3D12RootSignature *root_signature) {
  3478. This->lpVtbl->SetComputeRootSignature(This,root_signature);
  3479. }
  3480. static FORCEINLINE void ID3D12GraphicsCommandList_SetGraphicsRootSignature(ID3D12GraphicsCommandList* This,ID3D12RootSignature *root_signature) {
  3481. This->lpVtbl->SetGraphicsRootSignature(This,root_signature);
  3482. }
  3483. static FORCEINLINE void ID3D12GraphicsCommandList_SetComputeRootDescriptorTable(ID3D12GraphicsCommandList* This,UINT root_parameter_index,D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor) {
  3484. This->lpVtbl->SetComputeRootDescriptorTable(This,root_parameter_index,base_descriptor);
  3485. }
  3486. static FORCEINLINE void ID3D12GraphicsCommandList_SetGraphicsRootDescriptorTable(ID3D12GraphicsCommandList* This,UINT root_parameter_index,D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor) {
  3487. This->lpVtbl->SetGraphicsRootDescriptorTable(This,root_parameter_index,base_descriptor);
  3488. }
  3489. static FORCEINLINE void ID3D12GraphicsCommandList_SetComputeRoot32BitConstant(ID3D12GraphicsCommandList* This,UINT root_parameter_index,UINT data,UINT dst_offset) {
  3490. This->lpVtbl->SetComputeRoot32BitConstant(This,root_parameter_index,data,dst_offset);
  3491. }
  3492. static FORCEINLINE void ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstant(ID3D12GraphicsCommandList* This,UINT root_parameter_index,UINT data,UINT dst_offset) {
  3493. This->lpVtbl->SetGraphicsRoot32BitConstant(This,root_parameter_index,data,dst_offset);
  3494. }
  3495. static FORCEINLINE void ID3D12GraphicsCommandList_SetComputeRoot32BitConstants(ID3D12GraphicsCommandList* This,UINT root_parameter_index,UINT constant_count,const void *data,UINT dst_offset) {
  3496. This->lpVtbl->SetComputeRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset);
  3497. }
  3498. static FORCEINLINE void ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstants(ID3D12GraphicsCommandList* This,UINT root_parameter_index,UINT constant_count,const void *data,UINT dst_offset) {
  3499. This->lpVtbl->SetGraphicsRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset);
  3500. }
  3501. static FORCEINLINE void ID3D12GraphicsCommandList_SetComputeRootConstantBufferView(ID3D12GraphicsCommandList* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  3502. This->lpVtbl->SetComputeRootConstantBufferView(This,root_parameter_index,address);
  3503. }
  3504. static FORCEINLINE void ID3D12GraphicsCommandList_SetGraphicsRootConstantBufferView(ID3D12GraphicsCommandList* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  3505. This->lpVtbl->SetGraphicsRootConstantBufferView(This,root_parameter_index,address);
  3506. }
  3507. static FORCEINLINE void ID3D12GraphicsCommandList_SetComputeRootShaderResourceView(ID3D12GraphicsCommandList* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  3508. This->lpVtbl->SetComputeRootShaderResourceView(This,root_parameter_index,address);
  3509. }
  3510. static FORCEINLINE void ID3D12GraphicsCommandList_SetGraphicsRootShaderResourceView(ID3D12GraphicsCommandList* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  3511. This->lpVtbl->SetGraphicsRootShaderResourceView(This,root_parameter_index,address);
  3512. }
  3513. static FORCEINLINE void ID3D12GraphicsCommandList_SetComputeRootUnorderedAccessView(ID3D12GraphicsCommandList* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  3514. This->lpVtbl->SetComputeRootUnorderedAccessView(This,root_parameter_index,address);
  3515. }
  3516. static FORCEINLINE void ID3D12GraphicsCommandList_SetGraphicsRootUnorderedAccessView(ID3D12GraphicsCommandList* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  3517. This->lpVtbl->SetGraphicsRootUnorderedAccessView(This,root_parameter_index,address);
  3518. }
  3519. static FORCEINLINE void ID3D12GraphicsCommandList_IASetIndexBuffer(ID3D12GraphicsCommandList* This,const D3D12_INDEX_BUFFER_VIEW *view) {
  3520. This->lpVtbl->IASetIndexBuffer(This,view);
  3521. }
  3522. static FORCEINLINE void ID3D12GraphicsCommandList_IASetVertexBuffers(ID3D12GraphicsCommandList* This,UINT start_slot,UINT view_count,const D3D12_VERTEX_BUFFER_VIEW *views) {
  3523. This->lpVtbl->IASetVertexBuffers(This,start_slot,view_count,views);
  3524. }
  3525. static FORCEINLINE void ID3D12GraphicsCommandList_SOSetTargets(ID3D12GraphicsCommandList* This,UINT start_slot,UINT view_count,const D3D12_STREAM_OUTPUT_BUFFER_VIEW *views) {
  3526. This->lpVtbl->SOSetTargets(This,start_slot,view_count,views);
  3527. }
  3528. static FORCEINLINE void ID3D12GraphicsCommandList_OMSetRenderTargets(ID3D12GraphicsCommandList* This,UINT render_target_descriptor_count,const D3D12_CPU_DESCRIPTOR_HANDLE *render_target_descriptors,WINBOOL single_descriptor_handle,const D3D12_CPU_DESCRIPTOR_HANDLE *depth_stencil_descriptor) {
  3529. This->lpVtbl->OMSetRenderTargets(This,render_target_descriptor_count,render_target_descriptors,single_descriptor_handle,depth_stencil_descriptor);
  3530. }
  3531. static FORCEINLINE void ID3D12GraphicsCommandList_ClearDepthStencilView(ID3D12GraphicsCommandList* This,D3D12_CPU_DESCRIPTOR_HANDLE dsv,D3D12_CLEAR_FLAGS flags,FLOAT depth,UINT8 stencil,UINT rect_count,const D3D12_RECT *rects) {
  3532. This->lpVtbl->ClearDepthStencilView(This,dsv,flags,depth,stencil,rect_count,rects);
  3533. }
  3534. static FORCEINLINE void ID3D12GraphicsCommandList_ClearRenderTargetView(ID3D12GraphicsCommandList* This,D3D12_CPU_DESCRIPTOR_HANDLE rtv,const FLOAT color[4],UINT rect_count,const D3D12_RECT *rects) {
  3535. This->lpVtbl->ClearRenderTargetView(This,rtv,color,rect_count,rects);
  3536. }
  3537. static FORCEINLINE void ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint(ID3D12GraphicsCommandList* This,D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,ID3D12Resource *resource,const UINT values[4],UINT rect_count,const D3D12_RECT *rects) {
  3538. This->lpVtbl->ClearUnorderedAccessViewUint(This,gpu_handle,cpu_handle,resource,values,rect_count,rects);
  3539. }
  3540. static FORCEINLINE void ID3D12GraphicsCommandList_ClearUnorderedAccessViewFloat(ID3D12GraphicsCommandList* This,D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,ID3D12Resource *resource,const float values[4],UINT rect_count,const D3D12_RECT *rects) {
  3541. This->lpVtbl->ClearUnorderedAccessViewFloat(This,gpu_handle,cpu_handle,resource,values,rect_count,rects);
  3542. }
  3543. static FORCEINLINE void ID3D12GraphicsCommandList_DiscardResource(ID3D12GraphicsCommandList* This,ID3D12Resource *resource,const D3D12_DISCARD_REGION *region) {
  3544. This->lpVtbl->DiscardResource(This,resource,region);
  3545. }
  3546. static FORCEINLINE void ID3D12GraphicsCommandList_BeginQuery(ID3D12GraphicsCommandList* This,ID3D12QueryHeap *heap,D3D12_QUERY_TYPE type,UINT index) {
  3547. This->lpVtbl->BeginQuery(This,heap,type,index);
  3548. }
  3549. static FORCEINLINE void ID3D12GraphicsCommandList_EndQuery(ID3D12GraphicsCommandList* This,ID3D12QueryHeap *heap,D3D12_QUERY_TYPE type,UINT index) {
  3550. This->lpVtbl->EndQuery(This,heap,type,index);
  3551. }
  3552. static FORCEINLINE void ID3D12GraphicsCommandList_ResolveQueryData(ID3D12GraphicsCommandList* This,ID3D12QueryHeap *heap,D3D12_QUERY_TYPE type,UINT start_index,UINT query_count,ID3D12Resource *dst_buffer,UINT64 aligned_dst_buffer_offset) {
  3553. This->lpVtbl->ResolveQueryData(This,heap,type,start_index,query_count,dst_buffer,aligned_dst_buffer_offset);
  3554. }
  3555. static FORCEINLINE void ID3D12GraphicsCommandList_SetPredication(ID3D12GraphicsCommandList* This,ID3D12Resource *buffer,UINT64 aligned_buffer_offset,D3D12_PREDICATION_OP operation) {
  3556. This->lpVtbl->SetPredication(This,buffer,aligned_buffer_offset,operation);
  3557. }
  3558. static FORCEINLINE void ID3D12GraphicsCommandList_SetMarker(ID3D12GraphicsCommandList* This,UINT metadata,const void *data,UINT size) {
  3559. This->lpVtbl->SetMarker(This,metadata,data,size);
  3560. }
  3561. static FORCEINLINE void ID3D12GraphicsCommandList_BeginEvent(ID3D12GraphicsCommandList* This,UINT metadata,const void *data,UINT size) {
  3562. This->lpVtbl->BeginEvent(This,metadata,data,size);
  3563. }
  3564. static FORCEINLINE void ID3D12GraphicsCommandList_EndEvent(ID3D12GraphicsCommandList* This) {
  3565. This->lpVtbl->EndEvent(This);
  3566. }
  3567. static FORCEINLINE void ID3D12GraphicsCommandList_ExecuteIndirect(ID3D12GraphicsCommandList* This,ID3D12CommandSignature *command_signature,UINT max_command_count,ID3D12Resource *arg_buffer,UINT64 arg_buffer_offset,ID3D12Resource *count_buffer,UINT64 count_buffer_offset) {
  3568. This->lpVtbl->ExecuteIndirect(This,command_signature,max_command_count,arg_buffer,arg_buffer_offset,count_buffer,count_buffer_offset);
  3569. }
  3570. #endif
  3571. #endif
  3572. #endif
  3573. #endif /* __ID3D12GraphicsCommandList_INTERFACE_DEFINED__ */
  3574. /*****************************************************************************
  3575. * ID3D12GraphicsCommandList1 interface
  3576. */
  3577. #ifndef __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__
  3578. #define __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__
  3579. DEFINE_GUID(IID_ID3D12GraphicsCommandList1, 0x553103fb, 0x1fe7, 0x4557, 0xbb,0x38, 0x94,0x6d,0x7d,0x0e,0x7c,0xa7);
  3580. #if defined(__cplusplus) && !defined(CINTERFACE)
  3581. MIDL_INTERFACE("553103fb-1fe7-4557-bb38-946d7d0e7ca7")
  3582. ID3D12GraphicsCommandList1 : public ID3D12GraphicsCommandList
  3583. {
  3584. virtual void STDMETHODCALLTYPE AtomicCopyBufferUINT(
  3585. ID3D12Resource *dst_buffer,
  3586. UINT64 dst_offset,
  3587. ID3D12Resource *src_buffer,
  3588. UINT64 src_offset,
  3589. UINT dependent_resource_count,
  3590. ID3D12Resource *const *dependent_resources,
  3591. const D3D12_SUBRESOURCE_RANGE_UINT64 *dependent_sub_resource_ranges) = 0;
  3592. virtual void STDMETHODCALLTYPE AtomicCopyBufferUINT64(
  3593. ID3D12Resource *dst_buffer,
  3594. UINT64 dst_offset,
  3595. ID3D12Resource *src_buffer,
  3596. UINT64 src_offset,
  3597. UINT dependent_resource_count,
  3598. ID3D12Resource *const *dependent_resources,
  3599. const D3D12_SUBRESOURCE_RANGE_UINT64 *dependent_sub_resource_ranges) = 0;
  3600. virtual void STDMETHODCALLTYPE OMSetDepthBounds(
  3601. FLOAT min,
  3602. FLOAT max) = 0;
  3603. virtual void STDMETHODCALLTYPE SetSamplePositions(
  3604. UINT sample_count,
  3605. UINT pixel_count,
  3606. D3D12_SAMPLE_POSITION *sample_positions) = 0;
  3607. virtual void STDMETHODCALLTYPE ResolveSubresourceRegion(
  3608. ID3D12Resource *dst_resource,
  3609. UINT dst_sub_resource_idx,
  3610. UINT dst_x,
  3611. UINT dst_y,
  3612. ID3D12Resource *src_resource,
  3613. UINT src_sub_resource_idx,
  3614. D3D12_RECT *src_rect,
  3615. DXGI_FORMAT format,
  3616. D3D12_RESOLVE_MODE mode) = 0;
  3617. virtual void STDMETHODCALLTYPE SetViewInstanceMask(
  3618. UINT mask) = 0;
  3619. };
  3620. #ifdef __CRT_UUID_DECL
  3621. __CRT_UUID_DECL(ID3D12GraphicsCommandList1, 0x553103fb, 0x1fe7, 0x4557, 0xbb,0x38, 0x94,0x6d,0x7d,0x0e,0x7c,0xa7)
  3622. #endif
  3623. #else
  3624. typedef struct ID3D12GraphicsCommandList1Vtbl {
  3625. BEGIN_INTERFACE
  3626. /*** IUnknown methods ***/
  3627. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  3628. ID3D12GraphicsCommandList1 *This,
  3629. REFIID riid,
  3630. void **ppvObject);
  3631. ULONG (STDMETHODCALLTYPE *AddRef)(
  3632. ID3D12GraphicsCommandList1 *This);
  3633. ULONG (STDMETHODCALLTYPE *Release)(
  3634. ID3D12GraphicsCommandList1 *This);
  3635. /*** ID3D12Object methods ***/
  3636. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  3637. ID3D12GraphicsCommandList1 *This,
  3638. REFGUID guid,
  3639. UINT *data_size,
  3640. void *data);
  3641. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  3642. ID3D12GraphicsCommandList1 *This,
  3643. REFGUID guid,
  3644. UINT data_size,
  3645. const void *data);
  3646. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  3647. ID3D12GraphicsCommandList1 *This,
  3648. REFGUID guid,
  3649. const IUnknown *data);
  3650. HRESULT (STDMETHODCALLTYPE *SetName)(
  3651. ID3D12GraphicsCommandList1 *This,
  3652. const WCHAR *name);
  3653. /*** ID3D12DeviceChild methods ***/
  3654. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  3655. ID3D12GraphicsCommandList1 *This,
  3656. REFIID riid,
  3657. void **device);
  3658. /*** ID3D12CommandList methods ***/
  3659. D3D12_COMMAND_LIST_TYPE (STDMETHODCALLTYPE *GetType)(
  3660. ID3D12GraphicsCommandList1 *This);
  3661. /*** ID3D12GraphicsCommandList methods ***/
  3662. HRESULT (STDMETHODCALLTYPE *Close)(
  3663. ID3D12GraphicsCommandList1 *This);
  3664. HRESULT (STDMETHODCALLTYPE *Reset)(
  3665. ID3D12GraphicsCommandList1 *This,
  3666. ID3D12CommandAllocator *allocator,
  3667. ID3D12PipelineState *initial_state);
  3668. void (STDMETHODCALLTYPE *ClearState)(
  3669. ID3D12GraphicsCommandList1 *This,
  3670. ID3D12PipelineState *pipeline_state);
  3671. void (STDMETHODCALLTYPE *DrawInstanced)(
  3672. ID3D12GraphicsCommandList1 *This,
  3673. UINT vertex_count_per_instance,
  3674. UINT instance_count,
  3675. UINT start_vertex_location,
  3676. UINT start_instance_location);
  3677. void (STDMETHODCALLTYPE *DrawIndexedInstanced)(
  3678. ID3D12GraphicsCommandList1 *This,
  3679. UINT index_count_per_instance,
  3680. UINT instance_count,
  3681. UINT start_vertex_location,
  3682. INT base_vertex_location,
  3683. UINT start_instance_location);
  3684. void (STDMETHODCALLTYPE *Dispatch)(
  3685. ID3D12GraphicsCommandList1 *This,
  3686. UINT x,
  3687. UINT u,
  3688. UINT z);
  3689. void (STDMETHODCALLTYPE *CopyBufferRegion)(
  3690. ID3D12GraphicsCommandList1 *This,
  3691. ID3D12Resource *dst_buffer,
  3692. UINT64 dst_offset,
  3693. ID3D12Resource *src_buffer,
  3694. UINT64 src_offset,
  3695. UINT64 byte_count);
  3696. void (STDMETHODCALLTYPE *CopyTextureRegion)(
  3697. ID3D12GraphicsCommandList1 *This,
  3698. const D3D12_TEXTURE_COPY_LOCATION *dst,
  3699. UINT dst_x,
  3700. UINT dst_y,
  3701. UINT dst_z,
  3702. const D3D12_TEXTURE_COPY_LOCATION *src,
  3703. const D3D12_BOX *src_box);
  3704. void (STDMETHODCALLTYPE *CopyResource)(
  3705. ID3D12GraphicsCommandList1 *This,
  3706. ID3D12Resource *dst_resource,
  3707. ID3D12Resource *src_resource);
  3708. void (STDMETHODCALLTYPE *CopyTiles)(
  3709. ID3D12GraphicsCommandList1 *This,
  3710. ID3D12Resource *tiled_resource,
  3711. const D3D12_TILED_RESOURCE_COORDINATE *tile_region_start_coordinate,
  3712. const D3D12_TILE_REGION_SIZE *tile_region_size,
  3713. ID3D12Resource *buffer,
  3714. UINT64 buffer_offset,
  3715. D3D12_TILE_COPY_FLAGS flags);
  3716. void (STDMETHODCALLTYPE *ResolveSubresource)(
  3717. ID3D12GraphicsCommandList1 *This,
  3718. ID3D12Resource *dst_resource,
  3719. UINT dst_sub_resource,
  3720. ID3D12Resource *src_resource,
  3721. UINT src_sub_resource,
  3722. DXGI_FORMAT format);
  3723. void (STDMETHODCALLTYPE *IASetPrimitiveTopology)(
  3724. ID3D12GraphicsCommandList1 *This,
  3725. D3D12_PRIMITIVE_TOPOLOGY primitive_topology);
  3726. void (STDMETHODCALLTYPE *RSSetViewports)(
  3727. ID3D12GraphicsCommandList1 *This,
  3728. UINT viewport_count,
  3729. const D3D12_VIEWPORT *viewports);
  3730. void (STDMETHODCALLTYPE *RSSetScissorRects)(
  3731. ID3D12GraphicsCommandList1 *This,
  3732. UINT rect_count,
  3733. const D3D12_RECT *rects);
  3734. void (STDMETHODCALLTYPE *OMSetBlendFactor)(
  3735. ID3D12GraphicsCommandList1 *This,
  3736. const FLOAT blend_factor[4]);
  3737. void (STDMETHODCALLTYPE *OMSetStencilRef)(
  3738. ID3D12GraphicsCommandList1 *This,
  3739. UINT stencil_ref);
  3740. void (STDMETHODCALLTYPE *SetPipelineState)(
  3741. ID3D12GraphicsCommandList1 *This,
  3742. ID3D12PipelineState *pipeline_state);
  3743. void (STDMETHODCALLTYPE *ResourceBarrier)(
  3744. ID3D12GraphicsCommandList1 *This,
  3745. UINT barrier_count,
  3746. const D3D12_RESOURCE_BARRIER *barriers);
  3747. void (STDMETHODCALLTYPE *ExecuteBundle)(
  3748. ID3D12GraphicsCommandList1 *This,
  3749. ID3D12GraphicsCommandList *command_list);
  3750. void (STDMETHODCALLTYPE *SetDescriptorHeaps)(
  3751. ID3D12GraphicsCommandList1 *This,
  3752. UINT heap_count,
  3753. ID3D12DescriptorHeap *const *heaps);
  3754. void (STDMETHODCALLTYPE *SetComputeRootSignature)(
  3755. ID3D12GraphicsCommandList1 *This,
  3756. ID3D12RootSignature *root_signature);
  3757. void (STDMETHODCALLTYPE *SetGraphicsRootSignature)(
  3758. ID3D12GraphicsCommandList1 *This,
  3759. ID3D12RootSignature *root_signature);
  3760. void (STDMETHODCALLTYPE *SetComputeRootDescriptorTable)(
  3761. ID3D12GraphicsCommandList1 *This,
  3762. UINT root_parameter_index,
  3763. D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor);
  3764. void (STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable)(
  3765. ID3D12GraphicsCommandList1 *This,
  3766. UINT root_parameter_index,
  3767. D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor);
  3768. void (STDMETHODCALLTYPE *SetComputeRoot32BitConstant)(
  3769. ID3D12GraphicsCommandList1 *This,
  3770. UINT root_parameter_index,
  3771. UINT data,
  3772. UINT dst_offset);
  3773. void (STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant)(
  3774. ID3D12GraphicsCommandList1 *This,
  3775. UINT root_parameter_index,
  3776. UINT data,
  3777. UINT dst_offset);
  3778. void (STDMETHODCALLTYPE *SetComputeRoot32BitConstants)(
  3779. ID3D12GraphicsCommandList1 *This,
  3780. UINT root_parameter_index,
  3781. UINT constant_count,
  3782. const void *data,
  3783. UINT dst_offset);
  3784. void (STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants)(
  3785. ID3D12GraphicsCommandList1 *This,
  3786. UINT root_parameter_index,
  3787. UINT constant_count,
  3788. const void *data,
  3789. UINT dst_offset);
  3790. void (STDMETHODCALLTYPE *SetComputeRootConstantBufferView)(
  3791. ID3D12GraphicsCommandList1 *This,
  3792. UINT root_parameter_index,
  3793. D3D12_GPU_VIRTUAL_ADDRESS address);
  3794. void (STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView)(
  3795. ID3D12GraphicsCommandList1 *This,
  3796. UINT root_parameter_index,
  3797. D3D12_GPU_VIRTUAL_ADDRESS address);
  3798. void (STDMETHODCALLTYPE *SetComputeRootShaderResourceView)(
  3799. ID3D12GraphicsCommandList1 *This,
  3800. UINT root_parameter_index,
  3801. D3D12_GPU_VIRTUAL_ADDRESS address);
  3802. void (STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView)(
  3803. ID3D12GraphicsCommandList1 *This,
  3804. UINT root_parameter_index,
  3805. D3D12_GPU_VIRTUAL_ADDRESS address);
  3806. void (STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView)(
  3807. ID3D12GraphicsCommandList1 *This,
  3808. UINT root_parameter_index,
  3809. D3D12_GPU_VIRTUAL_ADDRESS address);
  3810. void (STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView)(
  3811. ID3D12GraphicsCommandList1 *This,
  3812. UINT root_parameter_index,
  3813. D3D12_GPU_VIRTUAL_ADDRESS address);
  3814. void (STDMETHODCALLTYPE *IASetIndexBuffer)(
  3815. ID3D12GraphicsCommandList1 *This,
  3816. const D3D12_INDEX_BUFFER_VIEW *view);
  3817. void (STDMETHODCALLTYPE *IASetVertexBuffers)(
  3818. ID3D12GraphicsCommandList1 *This,
  3819. UINT start_slot,
  3820. UINT view_count,
  3821. const D3D12_VERTEX_BUFFER_VIEW *views);
  3822. void (STDMETHODCALLTYPE *SOSetTargets)(
  3823. ID3D12GraphicsCommandList1 *This,
  3824. UINT start_slot,
  3825. UINT view_count,
  3826. const D3D12_STREAM_OUTPUT_BUFFER_VIEW *views);
  3827. void (STDMETHODCALLTYPE *OMSetRenderTargets)(
  3828. ID3D12GraphicsCommandList1 *This,
  3829. UINT render_target_descriptor_count,
  3830. const D3D12_CPU_DESCRIPTOR_HANDLE *render_target_descriptors,
  3831. WINBOOL single_descriptor_handle,
  3832. const D3D12_CPU_DESCRIPTOR_HANDLE *depth_stencil_descriptor);
  3833. void (STDMETHODCALLTYPE *ClearDepthStencilView)(
  3834. ID3D12GraphicsCommandList1 *This,
  3835. D3D12_CPU_DESCRIPTOR_HANDLE dsv,
  3836. D3D12_CLEAR_FLAGS flags,
  3837. FLOAT depth,
  3838. UINT8 stencil,
  3839. UINT rect_count,
  3840. const D3D12_RECT *rects);
  3841. void (STDMETHODCALLTYPE *ClearRenderTargetView)(
  3842. ID3D12GraphicsCommandList1 *This,
  3843. D3D12_CPU_DESCRIPTOR_HANDLE rtv,
  3844. const FLOAT color[4],
  3845. UINT rect_count,
  3846. const D3D12_RECT *rects);
  3847. void (STDMETHODCALLTYPE *ClearUnorderedAccessViewUint)(
  3848. ID3D12GraphicsCommandList1 *This,
  3849. D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,
  3850. D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,
  3851. ID3D12Resource *resource,
  3852. const UINT values[4],
  3853. UINT rect_count,
  3854. const D3D12_RECT *rects);
  3855. void (STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat)(
  3856. ID3D12GraphicsCommandList1 *This,
  3857. D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,
  3858. D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,
  3859. ID3D12Resource *resource,
  3860. const float values[4],
  3861. UINT rect_count,
  3862. const D3D12_RECT *rects);
  3863. void (STDMETHODCALLTYPE *DiscardResource)(
  3864. ID3D12GraphicsCommandList1 *This,
  3865. ID3D12Resource *resource,
  3866. const D3D12_DISCARD_REGION *region);
  3867. void (STDMETHODCALLTYPE *BeginQuery)(
  3868. ID3D12GraphicsCommandList1 *This,
  3869. ID3D12QueryHeap *heap,
  3870. D3D12_QUERY_TYPE type,
  3871. UINT index);
  3872. void (STDMETHODCALLTYPE *EndQuery)(
  3873. ID3D12GraphicsCommandList1 *This,
  3874. ID3D12QueryHeap *heap,
  3875. D3D12_QUERY_TYPE type,
  3876. UINT index);
  3877. void (STDMETHODCALLTYPE *ResolveQueryData)(
  3878. ID3D12GraphicsCommandList1 *This,
  3879. ID3D12QueryHeap *heap,
  3880. D3D12_QUERY_TYPE type,
  3881. UINT start_index,
  3882. UINT query_count,
  3883. ID3D12Resource *dst_buffer,
  3884. UINT64 aligned_dst_buffer_offset);
  3885. void (STDMETHODCALLTYPE *SetPredication)(
  3886. ID3D12GraphicsCommandList1 *This,
  3887. ID3D12Resource *buffer,
  3888. UINT64 aligned_buffer_offset,
  3889. D3D12_PREDICATION_OP operation);
  3890. void (STDMETHODCALLTYPE *SetMarker)(
  3891. ID3D12GraphicsCommandList1 *This,
  3892. UINT metadata,
  3893. const void *data,
  3894. UINT size);
  3895. void (STDMETHODCALLTYPE *BeginEvent)(
  3896. ID3D12GraphicsCommandList1 *This,
  3897. UINT metadata,
  3898. const void *data,
  3899. UINT size);
  3900. void (STDMETHODCALLTYPE *EndEvent)(
  3901. ID3D12GraphicsCommandList1 *This);
  3902. void (STDMETHODCALLTYPE *ExecuteIndirect)(
  3903. ID3D12GraphicsCommandList1 *This,
  3904. ID3D12CommandSignature *command_signature,
  3905. UINT max_command_count,
  3906. ID3D12Resource *arg_buffer,
  3907. UINT64 arg_buffer_offset,
  3908. ID3D12Resource *count_buffer,
  3909. UINT64 count_buffer_offset);
  3910. /*** ID3D12GraphicsCommandList1 methods ***/
  3911. void (STDMETHODCALLTYPE *AtomicCopyBufferUINT)(
  3912. ID3D12GraphicsCommandList1 *This,
  3913. ID3D12Resource *dst_buffer,
  3914. UINT64 dst_offset,
  3915. ID3D12Resource *src_buffer,
  3916. UINT64 src_offset,
  3917. UINT dependent_resource_count,
  3918. ID3D12Resource *const *dependent_resources,
  3919. const D3D12_SUBRESOURCE_RANGE_UINT64 *dependent_sub_resource_ranges);
  3920. void (STDMETHODCALLTYPE *AtomicCopyBufferUINT64)(
  3921. ID3D12GraphicsCommandList1 *This,
  3922. ID3D12Resource *dst_buffer,
  3923. UINT64 dst_offset,
  3924. ID3D12Resource *src_buffer,
  3925. UINT64 src_offset,
  3926. UINT dependent_resource_count,
  3927. ID3D12Resource *const *dependent_resources,
  3928. const D3D12_SUBRESOURCE_RANGE_UINT64 *dependent_sub_resource_ranges);
  3929. void (STDMETHODCALLTYPE *OMSetDepthBounds)(
  3930. ID3D12GraphicsCommandList1 *This,
  3931. FLOAT min,
  3932. FLOAT max);
  3933. void (STDMETHODCALLTYPE *SetSamplePositions)(
  3934. ID3D12GraphicsCommandList1 *This,
  3935. UINT sample_count,
  3936. UINT pixel_count,
  3937. D3D12_SAMPLE_POSITION *sample_positions);
  3938. void (STDMETHODCALLTYPE *ResolveSubresourceRegion)(
  3939. ID3D12GraphicsCommandList1 *This,
  3940. ID3D12Resource *dst_resource,
  3941. UINT dst_sub_resource_idx,
  3942. UINT dst_x,
  3943. UINT dst_y,
  3944. ID3D12Resource *src_resource,
  3945. UINT src_sub_resource_idx,
  3946. D3D12_RECT *src_rect,
  3947. DXGI_FORMAT format,
  3948. D3D12_RESOLVE_MODE mode);
  3949. void (STDMETHODCALLTYPE *SetViewInstanceMask)(
  3950. ID3D12GraphicsCommandList1 *This,
  3951. UINT mask);
  3952. END_INTERFACE
  3953. } ID3D12GraphicsCommandList1Vtbl;
  3954. interface ID3D12GraphicsCommandList1 {
  3955. CONST_VTBL ID3D12GraphicsCommandList1Vtbl* lpVtbl;
  3956. };
  3957. #ifdef COBJMACROS
  3958. #ifndef WIDL_C_INLINE_WRAPPERS
  3959. /*** IUnknown methods ***/
  3960. #define ID3D12GraphicsCommandList1_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  3961. #define ID3D12GraphicsCommandList1_AddRef(This) (This)->lpVtbl->AddRef(This)
  3962. #define ID3D12GraphicsCommandList1_Release(This) (This)->lpVtbl->Release(This)
  3963. /*** ID3D12Object methods ***/
  3964. #define ID3D12GraphicsCommandList1_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  3965. #define ID3D12GraphicsCommandList1_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  3966. #define ID3D12GraphicsCommandList1_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  3967. #define ID3D12GraphicsCommandList1_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  3968. /*** ID3D12DeviceChild methods ***/
  3969. #define ID3D12GraphicsCommandList1_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  3970. /*** ID3D12CommandList methods ***/
  3971. #define ID3D12GraphicsCommandList1_GetType(This) (This)->lpVtbl->GetType(This)
  3972. /*** ID3D12GraphicsCommandList methods ***/
  3973. #define ID3D12GraphicsCommandList1_Close(This) (This)->lpVtbl->Close(This)
  3974. #define ID3D12GraphicsCommandList1_Reset(This,allocator,initial_state) (This)->lpVtbl->Reset(This,allocator,initial_state)
  3975. #define ID3D12GraphicsCommandList1_ClearState(This,pipeline_state) (This)->lpVtbl->ClearState(This,pipeline_state)
  3976. #define ID3D12GraphicsCommandList1_DrawInstanced(This,vertex_count_per_instance,instance_count,start_vertex_location,start_instance_location) (This)->lpVtbl->DrawInstanced(This,vertex_count_per_instance,instance_count,start_vertex_location,start_instance_location)
  3977. #define ID3D12GraphicsCommandList1_DrawIndexedInstanced(This,index_count_per_instance,instance_count,start_vertex_location,base_vertex_location,start_instance_location) (This)->lpVtbl->DrawIndexedInstanced(This,index_count_per_instance,instance_count,start_vertex_location,base_vertex_location,start_instance_location)
  3978. #define ID3D12GraphicsCommandList1_Dispatch(This,x,u,z) (This)->lpVtbl->Dispatch(This,x,u,z)
  3979. #define ID3D12GraphicsCommandList1_CopyBufferRegion(This,dst_buffer,dst_offset,src_buffer,src_offset,byte_count) (This)->lpVtbl->CopyBufferRegion(This,dst_buffer,dst_offset,src_buffer,src_offset,byte_count)
  3980. #define ID3D12GraphicsCommandList1_CopyTextureRegion(This,dst,dst_x,dst_y,dst_z,src,src_box) (This)->lpVtbl->CopyTextureRegion(This,dst,dst_x,dst_y,dst_z,src,src_box)
  3981. #define ID3D12GraphicsCommandList1_CopyResource(This,dst_resource,src_resource) (This)->lpVtbl->CopyResource(This,dst_resource,src_resource)
  3982. #define ID3D12GraphicsCommandList1_CopyTiles(This,tiled_resource,tile_region_start_coordinate,tile_region_size,buffer,buffer_offset,flags) (This)->lpVtbl->CopyTiles(This,tiled_resource,tile_region_start_coordinate,tile_region_size,buffer,buffer_offset,flags)
  3983. #define ID3D12GraphicsCommandList1_ResolveSubresource(This,dst_resource,dst_sub_resource,src_resource,src_sub_resource,format) (This)->lpVtbl->ResolveSubresource(This,dst_resource,dst_sub_resource,src_resource,src_sub_resource,format)
  3984. #define ID3D12GraphicsCommandList1_IASetPrimitiveTopology(This,primitive_topology) (This)->lpVtbl->IASetPrimitiveTopology(This,primitive_topology)
  3985. #define ID3D12GraphicsCommandList1_RSSetViewports(This,viewport_count,viewports) (This)->lpVtbl->RSSetViewports(This,viewport_count,viewports)
  3986. #define ID3D12GraphicsCommandList1_RSSetScissorRects(This,rect_count,rects) (This)->lpVtbl->RSSetScissorRects(This,rect_count,rects)
  3987. #define ID3D12GraphicsCommandList1_OMSetBlendFactor(This,blend_factor) (This)->lpVtbl->OMSetBlendFactor(This,blend_factor)
  3988. #define ID3D12GraphicsCommandList1_OMSetStencilRef(This,stencil_ref) (This)->lpVtbl->OMSetStencilRef(This,stencil_ref)
  3989. #define ID3D12GraphicsCommandList1_SetPipelineState(This,pipeline_state) (This)->lpVtbl->SetPipelineState(This,pipeline_state)
  3990. #define ID3D12GraphicsCommandList1_ResourceBarrier(This,barrier_count,barriers) (This)->lpVtbl->ResourceBarrier(This,barrier_count,barriers)
  3991. #define ID3D12GraphicsCommandList1_ExecuteBundle(This,command_list) (This)->lpVtbl->ExecuteBundle(This,command_list)
  3992. #define ID3D12GraphicsCommandList1_SetDescriptorHeaps(This,heap_count,heaps) (This)->lpVtbl->SetDescriptorHeaps(This,heap_count,heaps)
  3993. #define ID3D12GraphicsCommandList1_SetComputeRootSignature(This,root_signature) (This)->lpVtbl->SetComputeRootSignature(This,root_signature)
  3994. #define ID3D12GraphicsCommandList1_SetGraphicsRootSignature(This,root_signature) (This)->lpVtbl->SetGraphicsRootSignature(This,root_signature)
  3995. #define ID3D12GraphicsCommandList1_SetComputeRootDescriptorTable(This,root_parameter_index,base_descriptor) (This)->lpVtbl->SetComputeRootDescriptorTable(This,root_parameter_index,base_descriptor)
  3996. #define ID3D12GraphicsCommandList1_SetGraphicsRootDescriptorTable(This,root_parameter_index,base_descriptor) (This)->lpVtbl->SetGraphicsRootDescriptorTable(This,root_parameter_index,base_descriptor)
  3997. #define ID3D12GraphicsCommandList1_SetComputeRoot32BitConstant(This,root_parameter_index,data,dst_offset) (This)->lpVtbl->SetComputeRoot32BitConstant(This,root_parameter_index,data,dst_offset)
  3998. #define ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstant(This,root_parameter_index,data,dst_offset) (This)->lpVtbl->SetGraphicsRoot32BitConstant(This,root_parameter_index,data,dst_offset)
  3999. #define ID3D12GraphicsCommandList1_SetComputeRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset) (This)->lpVtbl->SetComputeRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset)
  4000. #define ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset) (This)->lpVtbl->SetGraphicsRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset)
  4001. #define ID3D12GraphicsCommandList1_SetComputeRootConstantBufferView(This,root_parameter_index,address) (This)->lpVtbl->SetComputeRootConstantBufferView(This,root_parameter_index,address)
  4002. #define ID3D12GraphicsCommandList1_SetGraphicsRootConstantBufferView(This,root_parameter_index,address) (This)->lpVtbl->SetGraphicsRootConstantBufferView(This,root_parameter_index,address)
  4003. #define ID3D12GraphicsCommandList1_SetComputeRootShaderResourceView(This,root_parameter_index,address) (This)->lpVtbl->SetComputeRootShaderResourceView(This,root_parameter_index,address)
  4004. #define ID3D12GraphicsCommandList1_SetGraphicsRootShaderResourceView(This,root_parameter_index,address) (This)->lpVtbl->SetGraphicsRootShaderResourceView(This,root_parameter_index,address)
  4005. #define ID3D12GraphicsCommandList1_SetComputeRootUnorderedAccessView(This,root_parameter_index,address) (This)->lpVtbl->SetComputeRootUnorderedAccessView(This,root_parameter_index,address)
  4006. #define ID3D12GraphicsCommandList1_SetGraphicsRootUnorderedAccessView(This,root_parameter_index,address) (This)->lpVtbl->SetGraphicsRootUnorderedAccessView(This,root_parameter_index,address)
  4007. #define ID3D12GraphicsCommandList1_IASetIndexBuffer(This,view) (This)->lpVtbl->IASetIndexBuffer(This,view)
  4008. #define ID3D12GraphicsCommandList1_IASetVertexBuffers(This,start_slot,view_count,views) (This)->lpVtbl->IASetVertexBuffers(This,start_slot,view_count,views)
  4009. #define ID3D12GraphicsCommandList1_SOSetTargets(This,start_slot,view_count,views) (This)->lpVtbl->SOSetTargets(This,start_slot,view_count,views)
  4010. #define ID3D12GraphicsCommandList1_OMSetRenderTargets(This,render_target_descriptor_count,render_target_descriptors,single_descriptor_handle,depth_stencil_descriptor) (This)->lpVtbl->OMSetRenderTargets(This,render_target_descriptor_count,render_target_descriptors,single_descriptor_handle,depth_stencil_descriptor)
  4011. #define ID3D12GraphicsCommandList1_ClearDepthStencilView(This,dsv,flags,depth,stencil,rect_count,rects) (This)->lpVtbl->ClearDepthStencilView(This,dsv,flags,depth,stencil,rect_count,rects)
  4012. #define ID3D12GraphicsCommandList1_ClearRenderTargetView(This,rtv,color,rect_count,rects) (This)->lpVtbl->ClearRenderTargetView(This,rtv,color,rect_count,rects)
  4013. #define ID3D12GraphicsCommandList1_ClearUnorderedAccessViewUint(This,gpu_handle,cpu_handle,resource,values,rect_count,rects) (This)->lpVtbl->ClearUnorderedAccessViewUint(This,gpu_handle,cpu_handle,resource,values,rect_count,rects)
  4014. #define ID3D12GraphicsCommandList1_ClearUnorderedAccessViewFloat(This,gpu_handle,cpu_handle,resource,values,rect_count,rects) (This)->lpVtbl->ClearUnorderedAccessViewFloat(This,gpu_handle,cpu_handle,resource,values,rect_count,rects)
  4015. #define ID3D12GraphicsCommandList1_DiscardResource(This,resource,region) (This)->lpVtbl->DiscardResource(This,resource,region)
  4016. #define ID3D12GraphicsCommandList1_BeginQuery(This,heap,type,index) (This)->lpVtbl->BeginQuery(This,heap,type,index)
  4017. #define ID3D12GraphicsCommandList1_EndQuery(This,heap,type,index) (This)->lpVtbl->EndQuery(This,heap,type,index)
  4018. #define ID3D12GraphicsCommandList1_ResolveQueryData(This,heap,type,start_index,query_count,dst_buffer,aligned_dst_buffer_offset) (This)->lpVtbl->ResolveQueryData(This,heap,type,start_index,query_count,dst_buffer,aligned_dst_buffer_offset)
  4019. #define ID3D12GraphicsCommandList1_SetPredication(This,buffer,aligned_buffer_offset,operation) (This)->lpVtbl->SetPredication(This,buffer,aligned_buffer_offset,operation)
  4020. #define ID3D12GraphicsCommandList1_SetMarker(This,metadata,data,size) (This)->lpVtbl->SetMarker(This,metadata,data,size)
  4021. #define ID3D12GraphicsCommandList1_BeginEvent(This,metadata,data,size) (This)->lpVtbl->BeginEvent(This,metadata,data,size)
  4022. #define ID3D12GraphicsCommandList1_EndEvent(This) (This)->lpVtbl->EndEvent(This)
  4023. #define ID3D12GraphicsCommandList1_ExecuteIndirect(This,command_signature,max_command_count,arg_buffer,arg_buffer_offset,count_buffer,count_buffer_offset) (This)->lpVtbl->ExecuteIndirect(This,command_signature,max_command_count,arg_buffer,arg_buffer_offset,count_buffer,count_buffer_offset)
  4024. /*** ID3D12GraphicsCommandList1 methods ***/
  4025. #define ID3D12GraphicsCommandList1_AtomicCopyBufferUINT(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges) (This)->lpVtbl->AtomicCopyBufferUINT(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges)
  4026. #define ID3D12GraphicsCommandList1_AtomicCopyBufferUINT64(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges) (This)->lpVtbl->AtomicCopyBufferUINT64(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges)
  4027. #define ID3D12GraphicsCommandList1_OMSetDepthBounds(This,min,max) (This)->lpVtbl->OMSetDepthBounds(This,min,max)
  4028. #define ID3D12GraphicsCommandList1_SetSamplePositions(This,sample_count,pixel_count,sample_positions) (This)->lpVtbl->SetSamplePositions(This,sample_count,pixel_count,sample_positions)
  4029. #define ID3D12GraphicsCommandList1_ResolveSubresourceRegion(This,dst_resource,dst_sub_resource_idx,dst_x,dst_y,src_resource,src_sub_resource_idx,src_rect,format,mode) (This)->lpVtbl->ResolveSubresourceRegion(This,dst_resource,dst_sub_resource_idx,dst_x,dst_y,src_resource,src_sub_resource_idx,src_rect,format,mode)
  4030. #define ID3D12GraphicsCommandList1_SetViewInstanceMask(This,mask) (This)->lpVtbl->SetViewInstanceMask(This,mask)
  4031. #else
  4032. /*** IUnknown methods ***/
  4033. static FORCEINLINE HRESULT ID3D12GraphicsCommandList1_QueryInterface(ID3D12GraphicsCommandList1* This,REFIID riid,void **ppvObject) {
  4034. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  4035. }
  4036. static FORCEINLINE ULONG ID3D12GraphicsCommandList1_AddRef(ID3D12GraphicsCommandList1* This) {
  4037. return This->lpVtbl->AddRef(This);
  4038. }
  4039. static FORCEINLINE ULONG ID3D12GraphicsCommandList1_Release(ID3D12GraphicsCommandList1* This) {
  4040. return This->lpVtbl->Release(This);
  4041. }
  4042. /*** ID3D12Object methods ***/
  4043. static FORCEINLINE HRESULT ID3D12GraphicsCommandList1_GetPrivateData(ID3D12GraphicsCommandList1* This,REFGUID guid,UINT *data_size,void *data) {
  4044. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  4045. }
  4046. static FORCEINLINE HRESULT ID3D12GraphicsCommandList1_SetPrivateData(ID3D12GraphicsCommandList1* This,REFGUID guid,UINT data_size,const void *data) {
  4047. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  4048. }
  4049. static FORCEINLINE HRESULT ID3D12GraphicsCommandList1_SetPrivateDataInterface(ID3D12GraphicsCommandList1* This,REFGUID guid,const IUnknown *data) {
  4050. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  4051. }
  4052. static FORCEINLINE HRESULT ID3D12GraphicsCommandList1_SetName(ID3D12GraphicsCommandList1* This,const WCHAR *name) {
  4053. return This->lpVtbl->SetName(This,name);
  4054. }
  4055. /*** ID3D12DeviceChild methods ***/
  4056. static FORCEINLINE HRESULT ID3D12GraphicsCommandList1_GetDevice(ID3D12GraphicsCommandList1* This,REFIID riid,void **device) {
  4057. return This->lpVtbl->GetDevice(This,riid,device);
  4058. }
  4059. /*** ID3D12CommandList methods ***/
  4060. static FORCEINLINE D3D12_COMMAND_LIST_TYPE ID3D12GraphicsCommandList1_GetType(ID3D12GraphicsCommandList1* This) {
  4061. return This->lpVtbl->GetType(This);
  4062. }
  4063. /*** ID3D12GraphicsCommandList methods ***/
  4064. static FORCEINLINE HRESULT ID3D12GraphicsCommandList1_Close(ID3D12GraphicsCommandList1* This) {
  4065. return This->lpVtbl->Close(This);
  4066. }
  4067. static FORCEINLINE HRESULT ID3D12GraphicsCommandList1_Reset(ID3D12GraphicsCommandList1* This,ID3D12CommandAllocator *allocator,ID3D12PipelineState *initial_state) {
  4068. return This->lpVtbl->Reset(This,allocator,initial_state);
  4069. }
  4070. static FORCEINLINE void ID3D12GraphicsCommandList1_ClearState(ID3D12GraphicsCommandList1* This,ID3D12PipelineState *pipeline_state) {
  4071. This->lpVtbl->ClearState(This,pipeline_state);
  4072. }
  4073. static FORCEINLINE void ID3D12GraphicsCommandList1_DrawInstanced(ID3D12GraphicsCommandList1* This,UINT vertex_count_per_instance,UINT instance_count,UINT start_vertex_location,UINT start_instance_location) {
  4074. This->lpVtbl->DrawInstanced(This,vertex_count_per_instance,instance_count,start_vertex_location,start_instance_location);
  4075. }
  4076. static FORCEINLINE void ID3D12GraphicsCommandList1_DrawIndexedInstanced(ID3D12GraphicsCommandList1* This,UINT index_count_per_instance,UINT instance_count,UINT start_vertex_location,INT base_vertex_location,UINT start_instance_location) {
  4077. This->lpVtbl->DrawIndexedInstanced(This,index_count_per_instance,instance_count,start_vertex_location,base_vertex_location,start_instance_location);
  4078. }
  4079. static FORCEINLINE void ID3D12GraphicsCommandList1_Dispatch(ID3D12GraphicsCommandList1* This,UINT x,UINT u,UINT z) {
  4080. This->lpVtbl->Dispatch(This,x,u,z);
  4081. }
  4082. static FORCEINLINE void ID3D12GraphicsCommandList1_CopyBufferRegion(ID3D12GraphicsCommandList1* This,ID3D12Resource *dst_buffer,UINT64 dst_offset,ID3D12Resource *src_buffer,UINT64 src_offset,UINT64 byte_count) {
  4083. This->lpVtbl->CopyBufferRegion(This,dst_buffer,dst_offset,src_buffer,src_offset,byte_count);
  4084. }
  4085. static FORCEINLINE void ID3D12GraphicsCommandList1_CopyTextureRegion(ID3D12GraphicsCommandList1* This,const D3D12_TEXTURE_COPY_LOCATION *dst,UINT dst_x,UINT dst_y,UINT dst_z,const D3D12_TEXTURE_COPY_LOCATION *src,const D3D12_BOX *src_box) {
  4086. This->lpVtbl->CopyTextureRegion(This,dst,dst_x,dst_y,dst_z,src,src_box);
  4087. }
  4088. static FORCEINLINE void ID3D12GraphicsCommandList1_CopyResource(ID3D12GraphicsCommandList1* This,ID3D12Resource *dst_resource,ID3D12Resource *src_resource) {
  4089. This->lpVtbl->CopyResource(This,dst_resource,src_resource);
  4090. }
  4091. static FORCEINLINE void ID3D12GraphicsCommandList1_CopyTiles(ID3D12GraphicsCommandList1* This,ID3D12Resource *tiled_resource,const D3D12_TILED_RESOURCE_COORDINATE *tile_region_start_coordinate,const D3D12_TILE_REGION_SIZE *tile_region_size,ID3D12Resource *buffer,UINT64 buffer_offset,D3D12_TILE_COPY_FLAGS flags) {
  4092. This->lpVtbl->CopyTiles(This,tiled_resource,tile_region_start_coordinate,tile_region_size,buffer,buffer_offset,flags);
  4093. }
  4094. static FORCEINLINE void ID3D12GraphicsCommandList1_ResolveSubresource(ID3D12GraphicsCommandList1* This,ID3D12Resource *dst_resource,UINT dst_sub_resource,ID3D12Resource *src_resource,UINT src_sub_resource,DXGI_FORMAT format) {
  4095. This->lpVtbl->ResolveSubresource(This,dst_resource,dst_sub_resource,src_resource,src_sub_resource,format);
  4096. }
  4097. static FORCEINLINE void ID3D12GraphicsCommandList1_IASetPrimitiveTopology(ID3D12GraphicsCommandList1* This,D3D12_PRIMITIVE_TOPOLOGY primitive_topology) {
  4098. This->lpVtbl->IASetPrimitiveTopology(This,primitive_topology);
  4099. }
  4100. static FORCEINLINE void ID3D12GraphicsCommandList1_RSSetViewports(ID3D12GraphicsCommandList1* This,UINT viewport_count,const D3D12_VIEWPORT *viewports) {
  4101. This->lpVtbl->RSSetViewports(This,viewport_count,viewports);
  4102. }
  4103. static FORCEINLINE void ID3D12GraphicsCommandList1_RSSetScissorRects(ID3D12GraphicsCommandList1* This,UINT rect_count,const D3D12_RECT *rects) {
  4104. This->lpVtbl->RSSetScissorRects(This,rect_count,rects);
  4105. }
  4106. static FORCEINLINE void ID3D12GraphicsCommandList1_OMSetBlendFactor(ID3D12GraphicsCommandList1* This,const FLOAT blend_factor[4]) {
  4107. This->lpVtbl->OMSetBlendFactor(This,blend_factor);
  4108. }
  4109. static FORCEINLINE void ID3D12GraphicsCommandList1_OMSetStencilRef(ID3D12GraphicsCommandList1* This,UINT stencil_ref) {
  4110. This->lpVtbl->OMSetStencilRef(This,stencil_ref);
  4111. }
  4112. static FORCEINLINE void ID3D12GraphicsCommandList1_SetPipelineState(ID3D12GraphicsCommandList1* This,ID3D12PipelineState *pipeline_state) {
  4113. This->lpVtbl->SetPipelineState(This,pipeline_state);
  4114. }
  4115. static FORCEINLINE void ID3D12GraphicsCommandList1_ResourceBarrier(ID3D12GraphicsCommandList1* This,UINT barrier_count,const D3D12_RESOURCE_BARRIER *barriers) {
  4116. This->lpVtbl->ResourceBarrier(This,barrier_count,barriers);
  4117. }
  4118. static FORCEINLINE void ID3D12GraphicsCommandList1_ExecuteBundle(ID3D12GraphicsCommandList1* This,ID3D12GraphicsCommandList *command_list) {
  4119. This->lpVtbl->ExecuteBundle(This,command_list);
  4120. }
  4121. static FORCEINLINE void ID3D12GraphicsCommandList1_SetDescriptorHeaps(ID3D12GraphicsCommandList1* This,UINT heap_count,ID3D12DescriptorHeap *const *heaps) {
  4122. This->lpVtbl->SetDescriptorHeaps(This,heap_count,heaps);
  4123. }
  4124. static FORCEINLINE void ID3D12GraphicsCommandList1_SetComputeRootSignature(ID3D12GraphicsCommandList1* This,ID3D12RootSignature *root_signature) {
  4125. This->lpVtbl->SetComputeRootSignature(This,root_signature);
  4126. }
  4127. static FORCEINLINE void ID3D12GraphicsCommandList1_SetGraphicsRootSignature(ID3D12GraphicsCommandList1* This,ID3D12RootSignature *root_signature) {
  4128. This->lpVtbl->SetGraphicsRootSignature(This,root_signature);
  4129. }
  4130. static FORCEINLINE void ID3D12GraphicsCommandList1_SetComputeRootDescriptorTable(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor) {
  4131. This->lpVtbl->SetComputeRootDescriptorTable(This,root_parameter_index,base_descriptor);
  4132. }
  4133. static FORCEINLINE void ID3D12GraphicsCommandList1_SetGraphicsRootDescriptorTable(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor) {
  4134. This->lpVtbl->SetGraphicsRootDescriptorTable(This,root_parameter_index,base_descriptor);
  4135. }
  4136. static FORCEINLINE void ID3D12GraphicsCommandList1_SetComputeRoot32BitConstant(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,UINT data,UINT dst_offset) {
  4137. This->lpVtbl->SetComputeRoot32BitConstant(This,root_parameter_index,data,dst_offset);
  4138. }
  4139. static FORCEINLINE void ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstant(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,UINT data,UINT dst_offset) {
  4140. This->lpVtbl->SetGraphicsRoot32BitConstant(This,root_parameter_index,data,dst_offset);
  4141. }
  4142. static FORCEINLINE void ID3D12GraphicsCommandList1_SetComputeRoot32BitConstants(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,UINT constant_count,const void *data,UINT dst_offset) {
  4143. This->lpVtbl->SetComputeRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset);
  4144. }
  4145. static FORCEINLINE void ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstants(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,UINT constant_count,const void *data,UINT dst_offset) {
  4146. This->lpVtbl->SetGraphicsRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset);
  4147. }
  4148. static FORCEINLINE void ID3D12GraphicsCommandList1_SetComputeRootConstantBufferView(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4149. This->lpVtbl->SetComputeRootConstantBufferView(This,root_parameter_index,address);
  4150. }
  4151. static FORCEINLINE void ID3D12GraphicsCommandList1_SetGraphicsRootConstantBufferView(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4152. This->lpVtbl->SetGraphicsRootConstantBufferView(This,root_parameter_index,address);
  4153. }
  4154. static FORCEINLINE void ID3D12GraphicsCommandList1_SetComputeRootShaderResourceView(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4155. This->lpVtbl->SetComputeRootShaderResourceView(This,root_parameter_index,address);
  4156. }
  4157. static FORCEINLINE void ID3D12GraphicsCommandList1_SetGraphicsRootShaderResourceView(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4158. This->lpVtbl->SetGraphicsRootShaderResourceView(This,root_parameter_index,address);
  4159. }
  4160. static FORCEINLINE void ID3D12GraphicsCommandList1_SetComputeRootUnorderedAccessView(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4161. This->lpVtbl->SetComputeRootUnorderedAccessView(This,root_parameter_index,address);
  4162. }
  4163. static FORCEINLINE void ID3D12GraphicsCommandList1_SetGraphicsRootUnorderedAccessView(ID3D12GraphicsCommandList1* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4164. This->lpVtbl->SetGraphicsRootUnorderedAccessView(This,root_parameter_index,address);
  4165. }
  4166. static FORCEINLINE void ID3D12GraphicsCommandList1_IASetIndexBuffer(ID3D12GraphicsCommandList1* This,const D3D12_INDEX_BUFFER_VIEW *view) {
  4167. This->lpVtbl->IASetIndexBuffer(This,view);
  4168. }
  4169. static FORCEINLINE void ID3D12GraphicsCommandList1_IASetVertexBuffers(ID3D12GraphicsCommandList1* This,UINT start_slot,UINT view_count,const D3D12_VERTEX_BUFFER_VIEW *views) {
  4170. This->lpVtbl->IASetVertexBuffers(This,start_slot,view_count,views);
  4171. }
  4172. static FORCEINLINE void ID3D12GraphicsCommandList1_SOSetTargets(ID3D12GraphicsCommandList1* This,UINT start_slot,UINT view_count,const D3D12_STREAM_OUTPUT_BUFFER_VIEW *views) {
  4173. This->lpVtbl->SOSetTargets(This,start_slot,view_count,views);
  4174. }
  4175. static FORCEINLINE void ID3D12GraphicsCommandList1_OMSetRenderTargets(ID3D12GraphicsCommandList1* This,UINT render_target_descriptor_count,const D3D12_CPU_DESCRIPTOR_HANDLE *render_target_descriptors,WINBOOL single_descriptor_handle,const D3D12_CPU_DESCRIPTOR_HANDLE *depth_stencil_descriptor) {
  4176. This->lpVtbl->OMSetRenderTargets(This,render_target_descriptor_count,render_target_descriptors,single_descriptor_handle,depth_stencil_descriptor);
  4177. }
  4178. static FORCEINLINE void ID3D12GraphicsCommandList1_ClearDepthStencilView(ID3D12GraphicsCommandList1* This,D3D12_CPU_DESCRIPTOR_HANDLE dsv,D3D12_CLEAR_FLAGS flags,FLOAT depth,UINT8 stencil,UINT rect_count,const D3D12_RECT *rects) {
  4179. This->lpVtbl->ClearDepthStencilView(This,dsv,flags,depth,stencil,rect_count,rects);
  4180. }
  4181. static FORCEINLINE void ID3D12GraphicsCommandList1_ClearRenderTargetView(ID3D12GraphicsCommandList1* This,D3D12_CPU_DESCRIPTOR_HANDLE rtv,const FLOAT color[4],UINT rect_count,const D3D12_RECT *rects) {
  4182. This->lpVtbl->ClearRenderTargetView(This,rtv,color,rect_count,rects);
  4183. }
  4184. static FORCEINLINE void ID3D12GraphicsCommandList1_ClearUnorderedAccessViewUint(ID3D12GraphicsCommandList1* This,D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,ID3D12Resource *resource,const UINT values[4],UINT rect_count,const D3D12_RECT *rects) {
  4185. This->lpVtbl->ClearUnorderedAccessViewUint(This,gpu_handle,cpu_handle,resource,values,rect_count,rects);
  4186. }
  4187. static FORCEINLINE void ID3D12GraphicsCommandList1_ClearUnorderedAccessViewFloat(ID3D12GraphicsCommandList1* This,D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,ID3D12Resource *resource,const float values[4],UINT rect_count,const D3D12_RECT *rects) {
  4188. This->lpVtbl->ClearUnorderedAccessViewFloat(This,gpu_handle,cpu_handle,resource,values,rect_count,rects);
  4189. }
  4190. static FORCEINLINE void ID3D12GraphicsCommandList1_DiscardResource(ID3D12GraphicsCommandList1* This,ID3D12Resource *resource,const D3D12_DISCARD_REGION *region) {
  4191. This->lpVtbl->DiscardResource(This,resource,region);
  4192. }
  4193. static FORCEINLINE void ID3D12GraphicsCommandList1_BeginQuery(ID3D12GraphicsCommandList1* This,ID3D12QueryHeap *heap,D3D12_QUERY_TYPE type,UINT index) {
  4194. This->lpVtbl->BeginQuery(This,heap,type,index);
  4195. }
  4196. static FORCEINLINE void ID3D12GraphicsCommandList1_EndQuery(ID3D12GraphicsCommandList1* This,ID3D12QueryHeap *heap,D3D12_QUERY_TYPE type,UINT index) {
  4197. This->lpVtbl->EndQuery(This,heap,type,index);
  4198. }
  4199. static FORCEINLINE void ID3D12GraphicsCommandList1_ResolveQueryData(ID3D12GraphicsCommandList1* This,ID3D12QueryHeap *heap,D3D12_QUERY_TYPE type,UINT start_index,UINT query_count,ID3D12Resource *dst_buffer,UINT64 aligned_dst_buffer_offset) {
  4200. This->lpVtbl->ResolveQueryData(This,heap,type,start_index,query_count,dst_buffer,aligned_dst_buffer_offset);
  4201. }
  4202. static FORCEINLINE void ID3D12GraphicsCommandList1_SetPredication(ID3D12GraphicsCommandList1* This,ID3D12Resource *buffer,UINT64 aligned_buffer_offset,D3D12_PREDICATION_OP operation) {
  4203. This->lpVtbl->SetPredication(This,buffer,aligned_buffer_offset,operation);
  4204. }
  4205. static FORCEINLINE void ID3D12GraphicsCommandList1_SetMarker(ID3D12GraphicsCommandList1* This,UINT metadata,const void *data,UINT size) {
  4206. This->lpVtbl->SetMarker(This,metadata,data,size);
  4207. }
  4208. static FORCEINLINE void ID3D12GraphicsCommandList1_BeginEvent(ID3D12GraphicsCommandList1* This,UINT metadata,const void *data,UINT size) {
  4209. This->lpVtbl->BeginEvent(This,metadata,data,size);
  4210. }
  4211. static FORCEINLINE void ID3D12GraphicsCommandList1_EndEvent(ID3D12GraphicsCommandList1* This) {
  4212. This->lpVtbl->EndEvent(This);
  4213. }
  4214. static FORCEINLINE void ID3D12GraphicsCommandList1_ExecuteIndirect(ID3D12GraphicsCommandList1* This,ID3D12CommandSignature *command_signature,UINT max_command_count,ID3D12Resource *arg_buffer,UINT64 arg_buffer_offset,ID3D12Resource *count_buffer,UINT64 count_buffer_offset) {
  4215. This->lpVtbl->ExecuteIndirect(This,command_signature,max_command_count,arg_buffer,arg_buffer_offset,count_buffer,count_buffer_offset);
  4216. }
  4217. /*** ID3D12GraphicsCommandList1 methods ***/
  4218. static FORCEINLINE void ID3D12GraphicsCommandList1_AtomicCopyBufferUINT(ID3D12GraphicsCommandList1* This,ID3D12Resource *dst_buffer,UINT64 dst_offset,ID3D12Resource *src_buffer,UINT64 src_offset,UINT dependent_resource_count,ID3D12Resource *const *dependent_resources,const D3D12_SUBRESOURCE_RANGE_UINT64 *dependent_sub_resource_ranges) {
  4219. This->lpVtbl->AtomicCopyBufferUINT(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges);
  4220. }
  4221. static FORCEINLINE void ID3D12GraphicsCommandList1_AtomicCopyBufferUINT64(ID3D12GraphicsCommandList1* This,ID3D12Resource *dst_buffer,UINT64 dst_offset,ID3D12Resource *src_buffer,UINT64 src_offset,UINT dependent_resource_count,ID3D12Resource *const *dependent_resources,const D3D12_SUBRESOURCE_RANGE_UINT64 *dependent_sub_resource_ranges) {
  4222. This->lpVtbl->AtomicCopyBufferUINT64(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges);
  4223. }
  4224. static FORCEINLINE void ID3D12GraphicsCommandList1_OMSetDepthBounds(ID3D12GraphicsCommandList1* This,FLOAT min,FLOAT max) {
  4225. This->lpVtbl->OMSetDepthBounds(This,min,max);
  4226. }
  4227. static FORCEINLINE void ID3D12GraphicsCommandList1_SetSamplePositions(ID3D12GraphicsCommandList1* This,UINT sample_count,UINT pixel_count,D3D12_SAMPLE_POSITION *sample_positions) {
  4228. This->lpVtbl->SetSamplePositions(This,sample_count,pixel_count,sample_positions);
  4229. }
  4230. static FORCEINLINE void ID3D12GraphicsCommandList1_ResolveSubresourceRegion(ID3D12GraphicsCommandList1* This,ID3D12Resource *dst_resource,UINT dst_sub_resource_idx,UINT dst_x,UINT dst_y,ID3D12Resource *src_resource,UINT src_sub_resource_idx,D3D12_RECT *src_rect,DXGI_FORMAT format,D3D12_RESOLVE_MODE mode) {
  4231. This->lpVtbl->ResolveSubresourceRegion(This,dst_resource,dst_sub_resource_idx,dst_x,dst_y,src_resource,src_sub_resource_idx,src_rect,format,mode);
  4232. }
  4233. static FORCEINLINE void ID3D12GraphicsCommandList1_SetViewInstanceMask(ID3D12GraphicsCommandList1* This,UINT mask) {
  4234. This->lpVtbl->SetViewInstanceMask(This,mask);
  4235. }
  4236. #endif
  4237. #endif
  4238. #endif
  4239. #endif /* __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__ */
  4240. /*****************************************************************************
  4241. * ID3D12GraphicsCommandList2 interface
  4242. */
  4243. #ifndef __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__
  4244. #define __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__
  4245. DEFINE_GUID(IID_ID3D12GraphicsCommandList2, 0x38c3e585, 0xff17, 0x412c, 0x91,0x50, 0x4f,0xc6,0xf9,0xd7,0x2a,0x28);
  4246. #if defined(__cplusplus) && !defined(CINTERFACE)
  4247. MIDL_INTERFACE("38c3e585-ff17-412c-9150-4fc6f9d72a28")
  4248. ID3D12GraphicsCommandList2 : public ID3D12GraphicsCommandList1
  4249. {
  4250. virtual void STDMETHODCALLTYPE WriteBufferImmediate(
  4251. UINT count,
  4252. const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *parameters,
  4253. const D3D12_WRITEBUFFERIMMEDIATE_MODE *modes) = 0;
  4254. };
  4255. #ifdef __CRT_UUID_DECL
  4256. __CRT_UUID_DECL(ID3D12GraphicsCommandList2, 0x38c3e585, 0xff17, 0x412c, 0x91,0x50, 0x4f,0xc6,0xf9,0xd7,0x2a,0x28)
  4257. #endif
  4258. #else
  4259. typedef struct ID3D12GraphicsCommandList2Vtbl {
  4260. BEGIN_INTERFACE
  4261. /*** IUnknown methods ***/
  4262. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  4263. ID3D12GraphicsCommandList2 *This,
  4264. REFIID riid,
  4265. void **ppvObject);
  4266. ULONG (STDMETHODCALLTYPE *AddRef)(
  4267. ID3D12GraphicsCommandList2 *This);
  4268. ULONG (STDMETHODCALLTYPE *Release)(
  4269. ID3D12GraphicsCommandList2 *This);
  4270. /*** ID3D12Object methods ***/
  4271. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  4272. ID3D12GraphicsCommandList2 *This,
  4273. REFGUID guid,
  4274. UINT *data_size,
  4275. void *data);
  4276. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  4277. ID3D12GraphicsCommandList2 *This,
  4278. REFGUID guid,
  4279. UINT data_size,
  4280. const void *data);
  4281. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  4282. ID3D12GraphicsCommandList2 *This,
  4283. REFGUID guid,
  4284. const IUnknown *data);
  4285. HRESULT (STDMETHODCALLTYPE *SetName)(
  4286. ID3D12GraphicsCommandList2 *This,
  4287. const WCHAR *name);
  4288. /*** ID3D12DeviceChild methods ***/
  4289. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  4290. ID3D12GraphicsCommandList2 *This,
  4291. REFIID riid,
  4292. void **device);
  4293. /*** ID3D12CommandList methods ***/
  4294. D3D12_COMMAND_LIST_TYPE (STDMETHODCALLTYPE *GetType)(
  4295. ID3D12GraphicsCommandList2 *This);
  4296. /*** ID3D12GraphicsCommandList methods ***/
  4297. HRESULT (STDMETHODCALLTYPE *Close)(
  4298. ID3D12GraphicsCommandList2 *This);
  4299. HRESULT (STDMETHODCALLTYPE *Reset)(
  4300. ID3D12GraphicsCommandList2 *This,
  4301. ID3D12CommandAllocator *allocator,
  4302. ID3D12PipelineState *initial_state);
  4303. void (STDMETHODCALLTYPE *ClearState)(
  4304. ID3D12GraphicsCommandList2 *This,
  4305. ID3D12PipelineState *pipeline_state);
  4306. void (STDMETHODCALLTYPE *DrawInstanced)(
  4307. ID3D12GraphicsCommandList2 *This,
  4308. UINT vertex_count_per_instance,
  4309. UINT instance_count,
  4310. UINT start_vertex_location,
  4311. UINT start_instance_location);
  4312. void (STDMETHODCALLTYPE *DrawIndexedInstanced)(
  4313. ID3D12GraphicsCommandList2 *This,
  4314. UINT index_count_per_instance,
  4315. UINT instance_count,
  4316. UINT start_vertex_location,
  4317. INT base_vertex_location,
  4318. UINT start_instance_location);
  4319. void (STDMETHODCALLTYPE *Dispatch)(
  4320. ID3D12GraphicsCommandList2 *This,
  4321. UINT x,
  4322. UINT u,
  4323. UINT z);
  4324. void (STDMETHODCALLTYPE *CopyBufferRegion)(
  4325. ID3D12GraphicsCommandList2 *This,
  4326. ID3D12Resource *dst_buffer,
  4327. UINT64 dst_offset,
  4328. ID3D12Resource *src_buffer,
  4329. UINT64 src_offset,
  4330. UINT64 byte_count);
  4331. void (STDMETHODCALLTYPE *CopyTextureRegion)(
  4332. ID3D12GraphicsCommandList2 *This,
  4333. const D3D12_TEXTURE_COPY_LOCATION *dst,
  4334. UINT dst_x,
  4335. UINT dst_y,
  4336. UINT dst_z,
  4337. const D3D12_TEXTURE_COPY_LOCATION *src,
  4338. const D3D12_BOX *src_box);
  4339. void (STDMETHODCALLTYPE *CopyResource)(
  4340. ID3D12GraphicsCommandList2 *This,
  4341. ID3D12Resource *dst_resource,
  4342. ID3D12Resource *src_resource);
  4343. void (STDMETHODCALLTYPE *CopyTiles)(
  4344. ID3D12GraphicsCommandList2 *This,
  4345. ID3D12Resource *tiled_resource,
  4346. const D3D12_TILED_RESOURCE_COORDINATE *tile_region_start_coordinate,
  4347. const D3D12_TILE_REGION_SIZE *tile_region_size,
  4348. ID3D12Resource *buffer,
  4349. UINT64 buffer_offset,
  4350. D3D12_TILE_COPY_FLAGS flags);
  4351. void (STDMETHODCALLTYPE *ResolveSubresource)(
  4352. ID3D12GraphicsCommandList2 *This,
  4353. ID3D12Resource *dst_resource,
  4354. UINT dst_sub_resource,
  4355. ID3D12Resource *src_resource,
  4356. UINT src_sub_resource,
  4357. DXGI_FORMAT format);
  4358. void (STDMETHODCALLTYPE *IASetPrimitiveTopology)(
  4359. ID3D12GraphicsCommandList2 *This,
  4360. D3D12_PRIMITIVE_TOPOLOGY primitive_topology);
  4361. void (STDMETHODCALLTYPE *RSSetViewports)(
  4362. ID3D12GraphicsCommandList2 *This,
  4363. UINT viewport_count,
  4364. const D3D12_VIEWPORT *viewports);
  4365. void (STDMETHODCALLTYPE *RSSetScissorRects)(
  4366. ID3D12GraphicsCommandList2 *This,
  4367. UINT rect_count,
  4368. const D3D12_RECT *rects);
  4369. void (STDMETHODCALLTYPE *OMSetBlendFactor)(
  4370. ID3D12GraphicsCommandList2 *This,
  4371. const FLOAT blend_factor[4]);
  4372. void (STDMETHODCALLTYPE *OMSetStencilRef)(
  4373. ID3D12GraphicsCommandList2 *This,
  4374. UINT stencil_ref);
  4375. void (STDMETHODCALLTYPE *SetPipelineState)(
  4376. ID3D12GraphicsCommandList2 *This,
  4377. ID3D12PipelineState *pipeline_state);
  4378. void (STDMETHODCALLTYPE *ResourceBarrier)(
  4379. ID3D12GraphicsCommandList2 *This,
  4380. UINT barrier_count,
  4381. const D3D12_RESOURCE_BARRIER *barriers);
  4382. void (STDMETHODCALLTYPE *ExecuteBundle)(
  4383. ID3D12GraphicsCommandList2 *This,
  4384. ID3D12GraphicsCommandList *command_list);
  4385. void (STDMETHODCALLTYPE *SetDescriptorHeaps)(
  4386. ID3D12GraphicsCommandList2 *This,
  4387. UINT heap_count,
  4388. ID3D12DescriptorHeap *const *heaps);
  4389. void (STDMETHODCALLTYPE *SetComputeRootSignature)(
  4390. ID3D12GraphicsCommandList2 *This,
  4391. ID3D12RootSignature *root_signature);
  4392. void (STDMETHODCALLTYPE *SetGraphicsRootSignature)(
  4393. ID3D12GraphicsCommandList2 *This,
  4394. ID3D12RootSignature *root_signature);
  4395. void (STDMETHODCALLTYPE *SetComputeRootDescriptorTable)(
  4396. ID3D12GraphicsCommandList2 *This,
  4397. UINT root_parameter_index,
  4398. D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor);
  4399. void (STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable)(
  4400. ID3D12GraphicsCommandList2 *This,
  4401. UINT root_parameter_index,
  4402. D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor);
  4403. void (STDMETHODCALLTYPE *SetComputeRoot32BitConstant)(
  4404. ID3D12GraphicsCommandList2 *This,
  4405. UINT root_parameter_index,
  4406. UINT data,
  4407. UINT dst_offset);
  4408. void (STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant)(
  4409. ID3D12GraphicsCommandList2 *This,
  4410. UINT root_parameter_index,
  4411. UINT data,
  4412. UINT dst_offset);
  4413. void (STDMETHODCALLTYPE *SetComputeRoot32BitConstants)(
  4414. ID3D12GraphicsCommandList2 *This,
  4415. UINT root_parameter_index,
  4416. UINT constant_count,
  4417. const void *data,
  4418. UINT dst_offset);
  4419. void (STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants)(
  4420. ID3D12GraphicsCommandList2 *This,
  4421. UINT root_parameter_index,
  4422. UINT constant_count,
  4423. const void *data,
  4424. UINT dst_offset);
  4425. void (STDMETHODCALLTYPE *SetComputeRootConstantBufferView)(
  4426. ID3D12GraphicsCommandList2 *This,
  4427. UINT root_parameter_index,
  4428. D3D12_GPU_VIRTUAL_ADDRESS address);
  4429. void (STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView)(
  4430. ID3D12GraphicsCommandList2 *This,
  4431. UINT root_parameter_index,
  4432. D3D12_GPU_VIRTUAL_ADDRESS address);
  4433. void (STDMETHODCALLTYPE *SetComputeRootShaderResourceView)(
  4434. ID3D12GraphicsCommandList2 *This,
  4435. UINT root_parameter_index,
  4436. D3D12_GPU_VIRTUAL_ADDRESS address);
  4437. void (STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView)(
  4438. ID3D12GraphicsCommandList2 *This,
  4439. UINT root_parameter_index,
  4440. D3D12_GPU_VIRTUAL_ADDRESS address);
  4441. void (STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView)(
  4442. ID3D12GraphicsCommandList2 *This,
  4443. UINT root_parameter_index,
  4444. D3D12_GPU_VIRTUAL_ADDRESS address);
  4445. void (STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView)(
  4446. ID3D12GraphicsCommandList2 *This,
  4447. UINT root_parameter_index,
  4448. D3D12_GPU_VIRTUAL_ADDRESS address);
  4449. void (STDMETHODCALLTYPE *IASetIndexBuffer)(
  4450. ID3D12GraphicsCommandList2 *This,
  4451. const D3D12_INDEX_BUFFER_VIEW *view);
  4452. void (STDMETHODCALLTYPE *IASetVertexBuffers)(
  4453. ID3D12GraphicsCommandList2 *This,
  4454. UINT start_slot,
  4455. UINT view_count,
  4456. const D3D12_VERTEX_BUFFER_VIEW *views);
  4457. void (STDMETHODCALLTYPE *SOSetTargets)(
  4458. ID3D12GraphicsCommandList2 *This,
  4459. UINT start_slot,
  4460. UINT view_count,
  4461. const D3D12_STREAM_OUTPUT_BUFFER_VIEW *views);
  4462. void (STDMETHODCALLTYPE *OMSetRenderTargets)(
  4463. ID3D12GraphicsCommandList2 *This,
  4464. UINT render_target_descriptor_count,
  4465. const D3D12_CPU_DESCRIPTOR_HANDLE *render_target_descriptors,
  4466. WINBOOL single_descriptor_handle,
  4467. const D3D12_CPU_DESCRIPTOR_HANDLE *depth_stencil_descriptor);
  4468. void (STDMETHODCALLTYPE *ClearDepthStencilView)(
  4469. ID3D12GraphicsCommandList2 *This,
  4470. D3D12_CPU_DESCRIPTOR_HANDLE dsv,
  4471. D3D12_CLEAR_FLAGS flags,
  4472. FLOAT depth,
  4473. UINT8 stencil,
  4474. UINT rect_count,
  4475. const D3D12_RECT *rects);
  4476. void (STDMETHODCALLTYPE *ClearRenderTargetView)(
  4477. ID3D12GraphicsCommandList2 *This,
  4478. D3D12_CPU_DESCRIPTOR_HANDLE rtv,
  4479. const FLOAT color[4],
  4480. UINT rect_count,
  4481. const D3D12_RECT *rects);
  4482. void (STDMETHODCALLTYPE *ClearUnorderedAccessViewUint)(
  4483. ID3D12GraphicsCommandList2 *This,
  4484. D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,
  4485. D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,
  4486. ID3D12Resource *resource,
  4487. const UINT values[4],
  4488. UINT rect_count,
  4489. const D3D12_RECT *rects);
  4490. void (STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat)(
  4491. ID3D12GraphicsCommandList2 *This,
  4492. D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,
  4493. D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,
  4494. ID3D12Resource *resource,
  4495. const float values[4],
  4496. UINT rect_count,
  4497. const D3D12_RECT *rects);
  4498. void (STDMETHODCALLTYPE *DiscardResource)(
  4499. ID3D12GraphicsCommandList2 *This,
  4500. ID3D12Resource *resource,
  4501. const D3D12_DISCARD_REGION *region);
  4502. void (STDMETHODCALLTYPE *BeginQuery)(
  4503. ID3D12GraphicsCommandList2 *This,
  4504. ID3D12QueryHeap *heap,
  4505. D3D12_QUERY_TYPE type,
  4506. UINT index);
  4507. void (STDMETHODCALLTYPE *EndQuery)(
  4508. ID3D12GraphicsCommandList2 *This,
  4509. ID3D12QueryHeap *heap,
  4510. D3D12_QUERY_TYPE type,
  4511. UINT index);
  4512. void (STDMETHODCALLTYPE *ResolveQueryData)(
  4513. ID3D12GraphicsCommandList2 *This,
  4514. ID3D12QueryHeap *heap,
  4515. D3D12_QUERY_TYPE type,
  4516. UINT start_index,
  4517. UINT query_count,
  4518. ID3D12Resource *dst_buffer,
  4519. UINT64 aligned_dst_buffer_offset);
  4520. void (STDMETHODCALLTYPE *SetPredication)(
  4521. ID3D12GraphicsCommandList2 *This,
  4522. ID3D12Resource *buffer,
  4523. UINT64 aligned_buffer_offset,
  4524. D3D12_PREDICATION_OP operation);
  4525. void (STDMETHODCALLTYPE *SetMarker)(
  4526. ID3D12GraphicsCommandList2 *This,
  4527. UINT metadata,
  4528. const void *data,
  4529. UINT size);
  4530. void (STDMETHODCALLTYPE *BeginEvent)(
  4531. ID3D12GraphicsCommandList2 *This,
  4532. UINT metadata,
  4533. const void *data,
  4534. UINT size);
  4535. void (STDMETHODCALLTYPE *EndEvent)(
  4536. ID3D12GraphicsCommandList2 *This);
  4537. void (STDMETHODCALLTYPE *ExecuteIndirect)(
  4538. ID3D12GraphicsCommandList2 *This,
  4539. ID3D12CommandSignature *command_signature,
  4540. UINT max_command_count,
  4541. ID3D12Resource *arg_buffer,
  4542. UINT64 arg_buffer_offset,
  4543. ID3D12Resource *count_buffer,
  4544. UINT64 count_buffer_offset);
  4545. /*** ID3D12GraphicsCommandList1 methods ***/
  4546. void (STDMETHODCALLTYPE *AtomicCopyBufferUINT)(
  4547. ID3D12GraphicsCommandList2 *This,
  4548. ID3D12Resource *dst_buffer,
  4549. UINT64 dst_offset,
  4550. ID3D12Resource *src_buffer,
  4551. UINT64 src_offset,
  4552. UINT dependent_resource_count,
  4553. ID3D12Resource *const *dependent_resources,
  4554. const D3D12_SUBRESOURCE_RANGE_UINT64 *dependent_sub_resource_ranges);
  4555. void (STDMETHODCALLTYPE *AtomicCopyBufferUINT64)(
  4556. ID3D12GraphicsCommandList2 *This,
  4557. ID3D12Resource *dst_buffer,
  4558. UINT64 dst_offset,
  4559. ID3D12Resource *src_buffer,
  4560. UINT64 src_offset,
  4561. UINT dependent_resource_count,
  4562. ID3D12Resource *const *dependent_resources,
  4563. const D3D12_SUBRESOURCE_RANGE_UINT64 *dependent_sub_resource_ranges);
  4564. void (STDMETHODCALLTYPE *OMSetDepthBounds)(
  4565. ID3D12GraphicsCommandList2 *This,
  4566. FLOAT min,
  4567. FLOAT max);
  4568. void (STDMETHODCALLTYPE *SetSamplePositions)(
  4569. ID3D12GraphicsCommandList2 *This,
  4570. UINT sample_count,
  4571. UINT pixel_count,
  4572. D3D12_SAMPLE_POSITION *sample_positions);
  4573. void (STDMETHODCALLTYPE *ResolveSubresourceRegion)(
  4574. ID3D12GraphicsCommandList2 *This,
  4575. ID3D12Resource *dst_resource,
  4576. UINT dst_sub_resource_idx,
  4577. UINT dst_x,
  4578. UINT dst_y,
  4579. ID3D12Resource *src_resource,
  4580. UINT src_sub_resource_idx,
  4581. D3D12_RECT *src_rect,
  4582. DXGI_FORMAT format,
  4583. D3D12_RESOLVE_MODE mode);
  4584. void (STDMETHODCALLTYPE *SetViewInstanceMask)(
  4585. ID3D12GraphicsCommandList2 *This,
  4586. UINT mask);
  4587. /*** ID3D12GraphicsCommandList2 methods ***/
  4588. void (STDMETHODCALLTYPE *WriteBufferImmediate)(
  4589. ID3D12GraphicsCommandList2 *This,
  4590. UINT count,
  4591. const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *parameters,
  4592. const D3D12_WRITEBUFFERIMMEDIATE_MODE *modes);
  4593. END_INTERFACE
  4594. } ID3D12GraphicsCommandList2Vtbl;
  4595. interface ID3D12GraphicsCommandList2 {
  4596. CONST_VTBL ID3D12GraphicsCommandList2Vtbl* lpVtbl;
  4597. };
  4598. #ifdef COBJMACROS
  4599. #ifndef WIDL_C_INLINE_WRAPPERS
  4600. /*** IUnknown methods ***/
  4601. #define ID3D12GraphicsCommandList2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  4602. #define ID3D12GraphicsCommandList2_AddRef(This) (This)->lpVtbl->AddRef(This)
  4603. #define ID3D12GraphicsCommandList2_Release(This) (This)->lpVtbl->Release(This)
  4604. /*** ID3D12Object methods ***/
  4605. #define ID3D12GraphicsCommandList2_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  4606. #define ID3D12GraphicsCommandList2_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  4607. #define ID3D12GraphicsCommandList2_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  4608. #define ID3D12GraphicsCommandList2_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  4609. /*** ID3D12DeviceChild methods ***/
  4610. #define ID3D12GraphicsCommandList2_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  4611. /*** ID3D12CommandList methods ***/
  4612. #define ID3D12GraphicsCommandList2_GetType(This) (This)->lpVtbl->GetType(This)
  4613. /*** ID3D12GraphicsCommandList methods ***/
  4614. #define ID3D12GraphicsCommandList2_Close(This) (This)->lpVtbl->Close(This)
  4615. #define ID3D12GraphicsCommandList2_Reset(This,allocator,initial_state) (This)->lpVtbl->Reset(This,allocator,initial_state)
  4616. #define ID3D12GraphicsCommandList2_ClearState(This,pipeline_state) (This)->lpVtbl->ClearState(This,pipeline_state)
  4617. #define ID3D12GraphicsCommandList2_DrawInstanced(This,vertex_count_per_instance,instance_count,start_vertex_location,start_instance_location) (This)->lpVtbl->DrawInstanced(This,vertex_count_per_instance,instance_count,start_vertex_location,start_instance_location)
  4618. #define ID3D12GraphicsCommandList2_DrawIndexedInstanced(This,index_count_per_instance,instance_count,start_vertex_location,base_vertex_location,start_instance_location) (This)->lpVtbl->DrawIndexedInstanced(This,index_count_per_instance,instance_count,start_vertex_location,base_vertex_location,start_instance_location)
  4619. #define ID3D12GraphicsCommandList2_Dispatch(This,x,u,z) (This)->lpVtbl->Dispatch(This,x,u,z)
  4620. #define ID3D12GraphicsCommandList2_CopyBufferRegion(This,dst_buffer,dst_offset,src_buffer,src_offset,byte_count) (This)->lpVtbl->CopyBufferRegion(This,dst_buffer,dst_offset,src_buffer,src_offset,byte_count)
  4621. #define ID3D12GraphicsCommandList2_CopyTextureRegion(This,dst,dst_x,dst_y,dst_z,src,src_box) (This)->lpVtbl->CopyTextureRegion(This,dst,dst_x,dst_y,dst_z,src,src_box)
  4622. #define ID3D12GraphicsCommandList2_CopyResource(This,dst_resource,src_resource) (This)->lpVtbl->CopyResource(This,dst_resource,src_resource)
  4623. #define ID3D12GraphicsCommandList2_CopyTiles(This,tiled_resource,tile_region_start_coordinate,tile_region_size,buffer,buffer_offset,flags) (This)->lpVtbl->CopyTiles(This,tiled_resource,tile_region_start_coordinate,tile_region_size,buffer,buffer_offset,flags)
  4624. #define ID3D12GraphicsCommandList2_ResolveSubresource(This,dst_resource,dst_sub_resource,src_resource,src_sub_resource,format) (This)->lpVtbl->ResolveSubresource(This,dst_resource,dst_sub_resource,src_resource,src_sub_resource,format)
  4625. #define ID3D12GraphicsCommandList2_IASetPrimitiveTopology(This,primitive_topology) (This)->lpVtbl->IASetPrimitiveTopology(This,primitive_topology)
  4626. #define ID3D12GraphicsCommandList2_RSSetViewports(This,viewport_count,viewports) (This)->lpVtbl->RSSetViewports(This,viewport_count,viewports)
  4627. #define ID3D12GraphicsCommandList2_RSSetScissorRects(This,rect_count,rects) (This)->lpVtbl->RSSetScissorRects(This,rect_count,rects)
  4628. #define ID3D12GraphicsCommandList2_OMSetBlendFactor(This,blend_factor) (This)->lpVtbl->OMSetBlendFactor(This,blend_factor)
  4629. #define ID3D12GraphicsCommandList2_OMSetStencilRef(This,stencil_ref) (This)->lpVtbl->OMSetStencilRef(This,stencil_ref)
  4630. #define ID3D12GraphicsCommandList2_SetPipelineState(This,pipeline_state) (This)->lpVtbl->SetPipelineState(This,pipeline_state)
  4631. #define ID3D12GraphicsCommandList2_ResourceBarrier(This,barrier_count,barriers) (This)->lpVtbl->ResourceBarrier(This,barrier_count,barriers)
  4632. #define ID3D12GraphicsCommandList2_ExecuteBundle(This,command_list) (This)->lpVtbl->ExecuteBundle(This,command_list)
  4633. #define ID3D12GraphicsCommandList2_SetDescriptorHeaps(This,heap_count,heaps) (This)->lpVtbl->SetDescriptorHeaps(This,heap_count,heaps)
  4634. #define ID3D12GraphicsCommandList2_SetComputeRootSignature(This,root_signature) (This)->lpVtbl->SetComputeRootSignature(This,root_signature)
  4635. #define ID3D12GraphicsCommandList2_SetGraphicsRootSignature(This,root_signature) (This)->lpVtbl->SetGraphicsRootSignature(This,root_signature)
  4636. #define ID3D12GraphicsCommandList2_SetComputeRootDescriptorTable(This,root_parameter_index,base_descriptor) (This)->lpVtbl->SetComputeRootDescriptorTable(This,root_parameter_index,base_descriptor)
  4637. #define ID3D12GraphicsCommandList2_SetGraphicsRootDescriptorTable(This,root_parameter_index,base_descriptor) (This)->lpVtbl->SetGraphicsRootDescriptorTable(This,root_parameter_index,base_descriptor)
  4638. #define ID3D12GraphicsCommandList2_SetComputeRoot32BitConstant(This,root_parameter_index,data,dst_offset) (This)->lpVtbl->SetComputeRoot32BitConstant(This,root_parameter_index,data,dst_offset)
  4639. #define ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstant(This,root_parameter_index,data,dst_offset) (This)->lpVtbl->SetGraphicsRoot32BitConstant(This,root_parameter_index,data,dst_offset)
  4640. #define ID3D12GraphicsCommandList2_SetComputeRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset) (This)->lpVtbl->SetComputeRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset)
  4641. #define ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset) (This)->lpVtbl->SetGraphicsRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset)
  4642. #define ID3D12GraphicsCommandList2_SetComputeRootConstantBufferView(This,root_parameter_index,address) (This)->lpVtbl->SetComputeRootConstantBufferView(This,root_parameter_index,address)
  4643. #define ID3D12GraphicsCommandList2_SetGraphicsRootConstantBufferView(This,root_parameter_index,address) (This)->lpVtbl->SetGraphicsRootConstantBufferView(This,root_parameter_index,address)
  4644. #define ID3D12GraphicsCommandList2_SetComputeRootShaderResourceView(This,root_parameter_index,address) (This)->lpVtbl->SetComputeRootShaderResourceView(This,root_parameter_index,address)
  4645. #define ID3D12GraphicsCommandList2_SetGraphicsRootShaderResourceView(This,root_parameter_index,address) (This)->lpVtbl->SetGraphicsRootShaderResourceView(This,root_parameter_index,address)
  4646. #define ID3D12GraphicsCommandList2_SetComputeRootUnorderedAccessView(This,root_parameter_index,address) (This)->lpVtbl->SetComputeRootUnorderedAccessView(This,root_parameter_index,address)
  4647. #define ID3D12GraphicsCommandList2_SetGraphicsRootUnorderedAccessView(This,root_parameter_index,address) (This)->lpVtbl->SetGraphicsRootUnorderedAccessView(This,root_parameter_index,address)
  4648. #define ID3D12GraphicsCommandList2_IASetIndexBuffer(This,view) (This)->lpVtbl->IASetIndexBuffer(This,view)
  4649. #define ID3D12GraphicsCommandList2_IASetVertexBuffers(This,start_slot,view_count,views) (This)->lpVtbl->IASetVertexBuffers(This,start_slot,view_count,views)
  4650. #define ID3D12GraphicsCommandList2_SOSetTargets(This,start_slot,view_count,views) (This)->lpVtbl->SOSetTargets(This,start_slot,view_count,views)
  4651. #define ID3D12GraphicsCommandList2_OMSetRenderTargets(This,render_target_descriptor_count,render_target_descriptors,single_descriptor_handle,depth_stencil_descriptor) (This)->lpVtbl->OMSetRenderTargets(This,render_target_descriptor_count,render_target_descriptors,single_descriptor_handle,depth_stencil_descriptor)
  4652. #define ID3D12GraphicsCommandList2_ClearDepthStencilView(This,dsv,flags,depth,stencil,rect_count,rects) (This)->lpVtbl->ClearDepthStencilView(This,dsv,flags,depth,stencil,rect_count,rects)
  4653. #define ID3D12GraphicsCommandList2_ClearRenderTargetView(This,rtv,color,rect_count,rects) (This)->lpVtbl->ClearRenderTargetView(This,rtv,color,rect_count,rects)
  4654. #define ID3D12GraphicsCommandList2_ClearUnorderedAccessViewUint(This,gpu_handle,cpu_handle,resource,values,rect_count,rects) (This)->lpVtbl->ClearUnorderedAccessViewUint(This,gpu_handle,cpu_handle,resource,values,rect_count,rects)
  4655. #define ID3D12GraphicsCommandList2_ClearUnorderedAccessViewFloat(This,gpu_handle,cpu_handle,resource,values,rect_count,rects) (This)->lpVtbl->ClearUnorderedAccessViewFloat(This,gpu_handle,cpu_handle,resource,values,rect_count,rects)
  4656. #define ID3D12GraphicsCommandList2_DiscardResource(This,resource,region) (This)->lpVtbl->DiscardResource(This,resource,region)
  4657. #define ID3D12GraphicsCommandList2_BeginQuery(This,heap,type,index) (This)->lpVtbl->BeginQuery(This,heap,type,index)
  4658. #define ID3D12GraphicsCommandList2_EndQuery(This,heap,type,index) (This)->lpVtbl->EndQuery(This,heap,type,index)
  4659. #define ID3D12GraphicsCommandList2_ResolveQueryData(This,heap,type,start_index,query_count,dst_buffer,aligned_dst_buffer_offset) (This)->lpVtbl->ResolveQueryData(This,heap,type,start_index,query_count,dst_buffer,aligned_dst_buffer_offset)
  4660. #define ID3D12GraphicsCommandList2_SetPredication(This,buffer,aligned_buffer_offset,operation) (This)->lpVtbl->SetPredication(This,buffer,aligned_buffer_offset,operation)
  4661. #define ID3D12GraphicsCommandList2_SetMarker(This,metadata,data,size) (This)->lpVtbl->SetMarker(This,metadata,data,size)
  4662. #define ID3D12GraphicsCommandList2_BeginEvent(This,metadata,data,size) (This)->lpVtbl->BeginEvent(This,metadata,data,size)
  4663. #define ID3D12GraphicsCommandList2_EndEvent(This) (This)->lpVtbl->EndEvent(This)
  4664. #define ID3D12GraphicsCommandList2_ExecuteIndirect(This,command_signature,max_command_count,arg_buffer,arg_buffer_offset,count_buffer,count_buffer_offset) (This)->lpVtbl->ExecuteIndirect(This,command_signature,max_command_count,arg_buffer,arg_buffer_offset,count_buffer,count_buffer_offset)
  4665. /*** ID3D12GraphicsCommandList1 methods ***/
  4666. #define ID3D12GraphicsCommandList2_AtomicCopyBufferUINT(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges) (This)->lpVtbl->AtomicCopyBufferUINT(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges)
  4667. #define ID3D12GraphicsCommandList2_AtomicCopyBufferUINT64(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges) (This)->lpVtbl->AtomicCopyBufferUINT64(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges)
  4668. #define ID3D12GraphicsCommandList2_OMSetDepthBounds(This,min,max) (This)->lpVtbl->OMSetDepthBounds(This,min,max)
  4669. #define ID3D12GraphicsCommandList2_SetSamplePositions(This,sample_count,pixel_count,sample_positions) (This)->lpVtbl->SetSamplePositions(This,sample_count,pixel_count,sample_positions)
  4670. #define ID3D12GraphicsCommandList2_ResolveSubresourceRegion(This,dst_resource,dst_sub_resource_idx,dst_x,dst_y,src_resource,src_sub_resource_idx,src_rect,format,mode) (This)->lpVtbl->ResolveSubresourceRegion(This,dst_resource,dst_sub_resource_idx,dst_x,dst_y,src_resource,src_sub_resource_idx,src_rect,format,mode)
  4671. #define ID3D12GraphicsCommandList2_SetViewInstanceMask(This,mask) (This)->lpVtbl->SetViewInstanceMask(This,mask)
  4672. /*** ID3D12GraphicsCommandList2 methods ***/
  4673. #define ID3D12GraphicsCommandList2_WriteBufferImmediate(This,count,parameters,modes) (This)->lpVtbl->WriteBufferImmediate(This,count,parameters,modes)
  4674. #else
  4675. /*** IUnknown methods ***/
  4676. static FORCEINLINE HRESULT ID3D12GraphicsCommandList2_QueryInterface(ID3D12GraphicsCommandList2* This,REFIID riid,void **ppvObject) {
  4677. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  4678. }
  4679. static FORCEINLINE ULONG ID3D12GraphicsCommandList2_AddRef(ID3D12GraphicsCommandList2* This) {
  4680. return This->lpVtbl->AddRef(This);
  4681. }
  4682. static FORCEINLINE ULONG ID3D12GraphicsCommandList2_Release(ID3D12GraphicsCommandList2* This) {
  4683. return This->lpVtbl->Release(This);
  4684. }
  4685. /*** ID3D12Object methods ***/
  4686. static FORCEINLINE HRESULT ID3D12GraphicsCommandList2_GetPrivateData(ID3D12GraphicsCommandList2* This,REFGUID guid,UINT *data_size,void *data) {
  4687. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  4688. }
  4689. static FORCEINLINE HRESULT ID3D12GraphicsCommandList2_SetPrivateData(ID3D12GraphicsCommandList2* This,REFGUID guid,UINT data_size,const void *data) {
  4690. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  4691. }
  4692. static FORCEINLINE HRESULT ID3D12GraphicsCommandList2_SetPrivateDataInterface(ID3D12GraphicsCommandList2* This,REFGUID guid,const IUnknown *data) {
  4693. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  4694. }
  4695. static FORCEINLINE HRESULT ID3D12GraphicsCommandList2_SetName(ID3D12GraphicsCommandList2* This,const WCHAR *name) {
  4696. return This->lpVtbl->SetName(This,name);
  4697. }
  4698. /*** ID3D12DeviceChild methods ***/
  4699. static FORCEINLINE HRESULT ID3D12GraphicsCommandList2_GetDevice(ID3D12GraphicsCommandList2* This,REFIID riid,void **device) {
  4700. return This->lpVtbl->GetDevice(This,riid,device);
  4701. }
  4702. /*** ID3D12CommandList methods ***/
  4703. static FORCEINLINE D3D12_COMMAND_LIST_TYPE ID3D12GraphicsCommandList2_GetType(ID3D12GraphicsCommandList2* This) {
  4704. return This->lpVtbl->GetType(This);
  4705. }
  4706. /*** ID3D12GraphicsCommandList methods ***/
  4707. static FORCEINLINE HRESULT ID3D12GraphicsCommandList2_Close(ID3D12GraphicsCommandList2* This) {
  4708. return This->lpVtbl->Close(This);
  4709. }
  4710. static FORCEINLINE HRESULT ID3D12GraphicsCommandList2_Reset(ID3D12GraphicsCommandList2* This,ID3D12CommandAllocator *allocator,ID3D12PipelineState *initial_state) {
  4711. return This->lpVtbl->Reset(This,allocator,initial_state);
  4712. }
  4713. static FORCEINLINE void ID3D12GraphicsCommandList2_ClearState(ID3D12GraphicsCommandList2* This,ID3D12PipelineState *pipeline_state) {
  4714. This->lpVtbl->ClearState(This,pipeline_state);
  4715. }
  4716. static FORCEINLINE void ID3D12GraphicsCommandList2_DrawInstanced(ID3D12GraphicsCommandList2* This,UINT vertex_count_per_instance,UINT instance_count,UINT start_vertex_location,UINT start_instance_location) {
  4717. This->lpVtbl->DrawInstanced(This,vertex_count_per_instance,instance_count,start_vertex_location,start_instance_location);
  4718. }
  4719. static FORCEINLINE void ID3D12GraphicsCommandList2_DrawIndexedInstanced(ID3D12GraphicsCommandList2* This,UINT index_count_per_instance,UINT instance_count,UINT start_vertex_location,INT base_vertex_location,UINT start_instance_location) {
  4720. This->lpVtbl->DrawIndexedInstanced(This,index_count_per_instance,instance_count,start_vertex_location,base_vertex_location,start_instance_location);
  4721. }
  4722. static FORCEINLINE void ID3D12GraphicsCommandList2_Dispatch(ID3D12GraphicsCommandList2* This,UINT x,UINT u,UINT z) {
  4723. This->lpVtbl->Dispatch(This,x,u,z);
  4724. }
  4725. static FORCEINLINE void ID3D12GraphicsCommandList2_CopyBufferRegion(ID3D12GraphicsCommandList2* This,ID3D12Resource *dst_buffer,UINT64 dst_offset,ID3D12Resource *src_buffer,UINT64 src_offset,UINT64 byte_count) {
  4726. This->lpVtbl->CopyBufferRegion(This,dst_buffer,dst_offset,src_buffer,src_offset,byte_count);
  4727. }
  4728. static FORCEINLINE void ID3D12GraphicsCommandList2_CopyTextureRegion(ID3D12GraphicsCommandList2* This,const D3D12_TEXTURE_COPY_LOCATION *dst,UINT dst_x,UINT dst_y,UINT dst_z,const D3D12_TEXTURE_COPY_LOCATION *src,const D3D12_BOX *src_box) {
  4729. This->lpVtbl->CopyTextureRegion(This,dst,dst_x,dst_y,dst_z,src,src_box);
  4730. }
  4731. static FORCEINLINE void ID3D12GraphicsCommandList2_CopyResource(ID3D12GraphicsCommandList2* This,ID3D12Resource *dst_resource,ID3D12Resource *src_resource) {
  4732. This->lpVtbl->CopyResource(This,dst_resource,src_resource);
  4733. }
  4734. static FORCEINLINE void ID3D12GraphicsCommandList2_CopyTiles(ID3D12GraphicsCommandList2* This,ID3D12Resource *tiled_resource,const D3D12_TILED_RESOURCE_COORDINATE *tile_region_start_coordinate,const D3D12_TILE_REGION_SIZE *tile_region_size,ID3D12Resource *buffer,UINT64 buffer_offset,D3D12_TILE_COPY_FLAGS flags) {
  4735. This->lpVtbl->CopyTiles(This,tiled_resource,tile_region_start_coordinate,tile_region_size,buffer,buffer_offset,flags);
  4736. }
  4737. static FORCEINLINE void ID3D12GraphicsCommandList2_ResolveSubresource(ID3D12GraphicsCommandList2* This,ID3D12Resource *dst_resource,UINT dst_sub_resource,ID3D12Resource *src_resource,UINT src_sub_resource,DXGI_FORMAT format) {
  4738. This->lpVtbl->ResolveSubresource(This,dst_resource,dst_sub_resource,src_resource,src_sub_resource,format);
  4739. }
  4740. static FORCEINLINE void ID3D12GraphicsCommandList2_IASetPrimitiveTopology(ID3D12GraphicsCommandList2* This,D3D12_PRIMITIVE_TOPOLOGY primitive_topology) {
  4741. This->lpVtbl->IASetPrimitiveTopology(This,primitive_topology);
  4742. }
  4743. static FORCEINLINE void ID3D12GraphicsCommandList2_RSSetViewports(ID3D12GraphicsCommandList2* This,UINT viewport_count,const D3D12_VIEWPORT *viewports) {
  4744. This->lpVtbl->RSSetViewports(This,viewport_count,viewports);
  4745. }
  4746. static FORCEINLINE void ID3D12GraphicsCommandList2_RSSetScissorRects(ID3D12GraphicsCommandList2* This,UINT rect_count,const D3D12_RECT *rects) {
  4747. This->lpVtbl->RSSetScissorRects(This,rect_count,rects);
  4748. }
  4749. static FORCEINLINE void ID3D12GraphicsCommandList2_OMSetBlendFactor(ID3D12GraphicsCommandList2* This,const FLOAT blend_factor[4]) {
  4750. This->lpVtbl->OMSetBlendFactor(This,blend_factor);
  4751. }
  4752. static FORCEINLINE void ID3D12GraphicsCommandList2_OMSetStencilRef(ID3D12GraphicsCommandList2* This,UINT stencil_ref) {
  4753. This->lpVtbl->OMSetStencilRef(This,stencil_ref);
  4754. }
  4755. static FORCEINLINE void ID3D12GraphicsCommandList2_SetPipelineState(ID3D12GraphicsCommandList2* This,ID3D12PipelineState *pipeline_state) {
  4756. This->lpVtbl->SetPipelineState(This,pipeline_state);
  4757. }
  4758. static FORCEINLINE void ID3D12GraphicsCommandList2_ResourceBarrier(ID3D12GraphicsCommandList2* This,UINT barrier_count,const D3D12_RESOURCE_BARRIER *barriers) {
  4759. This->lpVtbl->ResourceBarrier(This,barrier_count,barriers);
  4760. }
  4761. static FORCEINLINE void ID3D12GraphicsCommandList2_ExecuteBundle(ID3D12GraphicsCommandList2* This,ID3D12GraphicsCommandList *command_list) {
  4762. This->lpVtbl->ExecuteBundle(This,command_list);
  4763. }
  4764. static FORCEINLINE void ID3D12GraphicsCommandList2_SetDescriptorHeaps(ID3D12GraphicsCommandList2* This,UINT heap_count,ID3D12DescriptorHeap *const *heaps) {
  4765. This->lpVtbl->SetDescriptorHeaps(This,heap_count,heaps);
  4766. }
  4767. static FORCEINLINE void ID3D12GraphicsCommandList2_SetComputeRootSignature(ID3D12GraphicsCommandList2* This,ID3D12RootSignature *root_signature) {
  4768. This->lpVtbl->SetComputeRootSignature(This,root_signature);
  4769. }
  4770. static FORCEINLINE void ID3D12GraphicsCommandList2_SetGraphicsRootSignature(ID3D12GraphicsCommandList2* This,ID3D12RootSignature *root_signature) {
  4771. This->lpVtbl->SetGraphicsRootSignature(This,root_signature);
  4772. }
  4773. static FORCEINLINE void ID3D12GraphicsCommandList2_SetComputeRootDescriptorTable(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor) {
  4774. This->lpVtbl->SetComputeRootDescriptorTable(This,root_parameter_index,base_descriptor);
  4775. }
  4776. static FORCEINLINE void ID3D12GraphicsCommandList2_SetGraphicsRootDescriptorTable(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,D3D12_GPU_DESCRIPTOR_HANDLE base_descriptor) {
  4777. This->lpVtbl->SetGraphicsRootDescriptorTable(This,root_parameter_index,base_descriptor);
  4778. }
  4779. static FORCEINLINE void ID3D12GraphicsCommandList2_SetComputeRoot32BitConstant(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,UINT data,UINT dst_offset) {
  4780. This->lpVtbl->SetComputeRoot32BitConstant(This,root_parameter_index,data,dst_offset);
  4781. }
  4782. static FORCEINLINE void ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstant(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,UINT data,UINT dst_offset) {
  4783. This->lpVtbl->SetGraphicsRoot32BitConstant(This,root_parameter_index,data,dst_offset);
  4784. }
  4785. static FORCEINLINE void ID3D12GraphicsCommandList2_SetComputeRoot32BitConstants(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,UINT constant_count,const void *data,UINT dst_offset) {
  4786. This->lpVtbl->SetComputeRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset);
  4787. }
  4788. static FORCEINLINE void ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstants(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,UINT constant_count,const void *data,UINT dst_offset) {
  4789. This->lpVtbl->SetGraphicsRoot32BitConstants(This,root_parameter_index,constant_count,data,dst_offset);
  4790. }
  4791. static FORCEINLINE void ID3D12GraphicsCommandList2_SetComputeRootConstantBufferView(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4792. This->lpVtbl->SetComputeRootConstantBufferView(This,root_parameter_index,address);
  4793. }
  4794. static FORCEINLINE void ID3D12GraphicsCommandList2_SetGraphicsRootConstantBufferView(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4795. This->lpVtbl->SetGraphicsRootConstantBufferView(This,root_parameter_index,address);
  4796. }
  4797. static FORCEINLINE void ID3D12GraphicsCommandList2_SetComputeRootShaderResourceView(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4798. This->lpVtbl->SetComputeRootShaderResourceView(This,root_parameter_index,address);
  4799. }
  4800. static FORCEINLINE void ID3D12GraphicsCommandList2_SetGraphicsRootShaderResourceView(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4801. This->lpVtbl->SetGraphicsRootShaderResourceView(This,root_parameter_index,address);
  4802. }
  4803. static FORCEINLINE void ID3D12GraphicsCommandList2_SetComputeRootUnorderedAccessView(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4804. This->lpVtbl->SetComputeRootUnorderedAccessView(This,root_parameter_index,address);
  4805. }
  4806. static FORCEINLINE void ID3D12GraphicsCommandList2_SetGraphicsRootUnorderedAccessView(ID3D12GraphicsCommandList2* This,UINT root_parameter_index,D3D12_GPU_VIRTUAL_ADDRESS address) {
  4807. This->lpVtbl->SetGraphicsRootUnorderedAccessView(This,root_parameter_index,address);
  4808. }
  4809. static FORCEINLINE void ID3D12GraphicsCommandList2_IASetIndexBuffer(ID3D12GraphicsCommandList2* This,const D3D12_INDEX_BUFFER_VIEW *view) {
  4810. This->lpVtbl->IASetIndexBuffer(This,view);
  4811. }
  4812. static FORCEINLINE void ID3D12GraphicsCommandList2_IASetVertexBuffers(ID3D12GraphicsCommandList2* This,UINT start_slot,UINT view_count,const D3D12_VERTEX_BUFFER_VIEW *views) {
  4813. This->lpVtbl->IASetVertexBuffers(This,start_slot,view_count,views);
  4814. }
  4815. static FORCEINLINE void ID3D12GraphicsCommandList2_SOSetTargets(ID3D12GraphicsCommandList2* This,UINT start_slot,UINT view_count,const D3D12_STREAM_OUTPUT_BUFFER_VIEW *views) {
  4816. This->lpVtbl->SOSetTargets(This,start_slot,view_count,views);
  4817. }
  4818. static FORCEINLINE void ID3D12GraphicsCommandList2_OMSetRenderTargets(ID3D12GraphicsCommandList2* This,UINT render_target_descriptor_count,const D3D12_CPU_DESCRIPTOR_HANDLE *render_target_descriptors,WINBOOL single_descriptor_handle,const D3D12_CPU_DESCRIPTOR_HANDLE *depth_stencil_descriptor) {
  4819. This->lpVtbl->OMSetRenderTargets(This,render_target_descriptor_count,render_target_descriptors,single_descriptor_handle,depth_stencil_descriptor);
  4820. }
  4821. static FORCEINLINE void ID3D12GraphicsCommandList2_ClearDepthStencilView(ID3D12GraphicsCommandList2* This,D3D12_CPU_DESCRIPTOR_HANDLE dsv,D3D12_CLEAR_FLAGS flags,FLOAT depth,UINT8 stencil,UINT rect_count,const D3D12_RECT *rects) {
  4822. This->lpVtbl->ClearDepthStencilView(This,dsv,flags,depth,stencil,rect_count,rects);
  4823. }
  4824. static FORCEINLINE void ID3D12GraphicsCommandList2_ClearRenderTargetView(ID3D12GraphicsCommandList2* This,D3D12_CPU_DESCRIPTOR_HANDLE rtv,const FLOAT color[4],UINT rect_count,const D3D12_RECT *rects) {
  4825. This->lpVtbl->ClearRenderTargetView(This,rtv,color,rect_count,rects);
  4826. }
  4827. static FORCEINLINE void ID3D12GraphicsCommandList2_ClearUnorderedAccessViewUint(ID3D12GraphicsCommandList2* This,D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,ID3D12Resource *resource,const UINT values[4],UINT rect_count,const D3D12_RECT *rects) {
  4828. This->lpVtbl->ClearUnorderedAccessViewUint(This,gpu_handle,cpu_handle,resource,values,rect_count,rects);
  4829. }
  4830. static FORCEINLINE void ID3D12GraphicsCommandList2_ClearUnorderedAccessViewFloat(ID3D12GraphicsCommandList2* This,D3D12_GPU_DESCRIPTOR_HANDLE gpu_handle,D3D12_CPU_DESCRIPTOR_HANDLE cpu_handle,ID3D12Resource *resource,const float values[4],UINT rect_count,const D3D12_RECT *rects) {
  4831. This->lpVtbl->ClearUnorderedAccessViewFloat(This,gpu_handle,cpu_handle,resource,values,rect_count,rects);
  4832. }
  4833. static FORCEINLINE void ID3D12GraphicsCommandList2_DiscardResource(ID3D12GraphicsCommandList2* This,ID3D12Resource *resource,const D3D12_DISCARD_REGION *region) {
  4834. This->lpVtbl->DiscardResource(This,resource,region);
  4835. }
  4836. static FORCEINLINE void ID3D12GraphicsCommandList2_BeginQuery(ID3D12GraphicsCommandList2* This,ID3D12QueryHeap *heap,D3D12_QUERY_TYPE type,UINT index) {
  4837. This->lpVtbl->BeginQuery(This,heap,type,index);
  4838. }
  4839. static FORCEINLINE void ID3D12GraphicsCommandList2_EndQuery(ID3D12GraphicsCommandList2* This,ID3D12QueryHeap *heap,D3D12_QUERY_TYPE type,UINT index) {
  4840. This->lpVtbl->EndQuery(This,heap,type,index);
  4841. }
  4842. static FORCEINLINE void ID3D12GraphicsCommandList2_ResolveQueryData(ID3D12GraphicsCommandList2* This,ID3D12QueryHeap *heap,D3D12_QUERY_TYPE type,UINT start_index,UINT query_count,ID3D12Resource *dst_buffer,UINT64 aligned_dst_buffer_offset) {
  4843. This->lpVtbl->ResolveQueryData(This,heap,type,start_index,query_count,dst_buffer,aligned_dst_buffer_offset);
  4844. }
  4845. static FORCEINLINE void ID3D12GraphicsCommandList2_SetPredication(ID3D12GraphicsCommandList2* This,ID3D12Resource *buffer,UINT64 aligned_buffer_offset,D3D12_PREDICATION_OP operation) {
  4846. This->lpVtbl->SetPredication(This,buffer,aligned_buffer_offset,operation);
  4847. }
  4848. static FORCEINLINE void ID3D12GraphicsCommandList2_SetMarker(ID3D12GraphicsCommandList2* This,UINT metadata,const void *data,UINT size) {
  4849. This->lpVtbl->SetMarker(This,metadata,data,size);
  4850. }
  4851. static FORCEINLINE void ID3D12GraphicsCommandList2_BeginEvent(ID3D12GraphicsCommandList2* This,UINT metadata,const void *data,UINT size) {
  4852. This->lpVtbl->BeginEvent(This,metadata,data,size);
  4853. }
  4854. static FORCEINLINE void ID3D12GraphicsCommandList2_EndEvent(ID3D12GraphicsCommandList2* This) {
  4855. This->lpVtbl->EndEvent(This);
  4856. }
  4857. static FORCEINLINE void ID3D12GraphicsCommandList2_ExecuteIndirect(ID3D12GraphicsCommandList2* This,ID3D12CommandSignature *command_signature,UINT max_command_count,ID3D12Resource *arg_buffer,UINT64 arg_buffer_offset,ID3D12Resource *count_buffer,UINT64 count_buffer_offset) {
  4858. This->lpVtbl->ExecuteIndirect(This,command_signature,max_command_count,arg_buffer,arg_buffer_offset,count_buffer,count_buffer_offset);
  4859. }
  4860. /*** ID3D12GraphicsCommandList1 methods ***/
  4861. static FORCEINLINE void ID3D12GraphicsCommandList2_AtomicCopyBufferUINT(ID3D12GraphicsCommandList2* This,ID3D12Resource *dst_buffer,UINT64 dst_offset,ID3D12Resource *src_buffer,UINT64 src_offset,UINT dependent_resource_count,ID3D12Resource *const *dependent_resources,const D3D12_SUBRESOURCE_RANGE_UINT64 *dependent_sub_resource_ranges) {
  4862. This->lpVtbl->AtomicCopyBufferUINT(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges);
  4863. }
  4864. static FORCEINLINE void ID3D12GraphicsCommandList2_AtomicCopyBufferUINT64(ID3D12GraphicsCommandList2* This,ID3D12Resource *dst_buffer,UINT64 dst_offset,ID3D12Resource *src_buffer,UINT64 src_offset,UINT dependent_resource_count,ID3D12Resource *const *dependent_resources,const D3D12_SUBRESOURCE_RANGE_UINT64 *dependent_sub_resource_ranges) {
  4865. This->lpVtbl->AtomicCopyBufferUINT64(This,dst_buffer,dst_offset,src_buffer,src_offset,dependent_resource_count,dependent_resources,dependent_sub_resource_ranges);
  4866. }
  4867. static FORCEINLINE void ID3D12GraphicsCommandList2_OMSetDepthBounds(ID3D12GraphicsCommandList2* This,FLOAT min,FLOAT max) {
  4868. This->lpVtbl->OMSetDepthBounds(This,min,max);
  4869. }
  4870. static FORCEINLINE void ID3D12GraphicsCommandList2_SetSamplePositions(ID3D12GraphicsCommandList2* This,UINT sample_count,UINT pixel_count,D3D12_SAMPLE_POSITION *sample_positions) {
  4871. This->lpVtbl->SetSamplePositions(This,sample_count,pixel_count,sample_positions);
  4872. }
  4873. static FORCEINLINE void ID3D12GraphicsCommandList2_ResolveSubresourceRegion(ID3D12GraphicsCommandList2* This,ID3D12Resource *dst_resource,UINT dst_sub_resource_idx,UINT dst_x,UINT dst_y,ID3D12Resource *src_resource,UINT src_sub_resource_idx,D3D12_RECT *src_rect,DXGI_FORMAT format,D3D12_RESOLVE_MODE mode) {
  4874. This->lpVtbl->ResolveSubresourceRegion(This,dst_resource,dst_sub_resource_idx,dst_x,dst_y,src_resource,src_sub_resource_idx,src_rect,format,mode);
  4875. }
  4876. static FORCEINLINE void ID3D12GraphicsCommandList2_SetViewInstanceMask(ID3D12GraphicsCommandList2* This,UINT mask) {
  4877. This->lpVtbl->SetViewInstanceMask(This,mask);
  4878. }
  4879. /*** ID3D12GraphicsCommandList2 methods ***/
  4880. static FORCEINLINE void ID3D12GraphicsCommandList2_WriteBufferImmediate(ID3D12GraphicsCommandList2* This,UINT count,const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *parameters,const D3D12_WRITEBUFFERIMMEDIATE_MODE *modes) {
  4881. This->lpVtbl->WriteBufferImmediate(This,count,parameters,modes);
  4882. }
  4883. #endif
  4884. #endif
  4885. #endif
  4886. #endif /* __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__ */
  4887. typedef enum D3D12_TILE_RANGE_FLAGS {
  4888. D3D12_TILE_RANGE_FLAG_NONE = 0x0,
  4889. D3D12_TILE_RANGE_FLAG_NULL = 0x1,
  4890. D3D12_TILE_RANGE_FLAG_SKIP = 0x2,
  4891. D3D12_TILE_RANGE_FLAG_REUSE_SINGLE_TILE = 0x4
  4892. } D3D12_TILE_RANGE_FLAGS;
  4893. typedef enum D3D12_TILE_MAPPING_FLAGS {
  4894. D3D12_TILE_MAPPING_FLAG_NONE = 0x0,
  4895. D3D12_TILE_MAPPING_FLAG_NO_HAZARD = 0x1
  4896. } D3D12_TILE_MAPPING_FLAGS;
  4897. DEFINE_ENUM_FLAG_OPERATORS(D3D12_TILE_MAPPING_FLAGS);
  4898. /*****************************************************************************
  4899. * ID3D12CommandQueue interface
  4900. */
  4901. #ifndef __ID3D12CommandQueue_INTERFACE_DEFINED__
  4902. #define __ID3D12CommandQueue_INTERFACE_DEFINED__
  4903. DEFINE_GUID(IID_ID3D12CommandQueue, 0x0ec870a6, 0x5d7e, 0x4c22, 0x8c,0xfc, 0x5b,0xaa,0xe0,0x76,0x16,0xed);
  4904. #if defined(__cplusplus) && !defined(CINTERFACE)
  4905. MIDL_INTERFACE("0ec870a6-5d7e-4c22-8cfc-5baae07616ed")
  4906. ID3D12CommandQueue : public ID3D12Pageable
  4907. {
  4908. virtual void STDMETHODCALLTYPE UpdateTileMappings(
  4909. ID3D12Resource *resource,
  4910. UINT region_count,
  4911. const D3D12_TILED_RESOURCE_COORDINATE *region_start_coordinates,
  4912. const D3D12_TILE_REGION_SIZE *region_sizes,
  4913. UINT range_count,
  4914. const D3D12_TILE_RANGE_FLAGS *range_flags,
  4915. UINT *heap_range_offsets,
  4916. UINT *range_tile_counts,
  4917. D3D12_TILE_MAPPING_FLAGS flags) = 0;
  4918. virtual void STDMETHODCALLTYPE CopyTileMappings(
  4919. ID3D12Resource *dst_resource,
  4920. const D3D12_TILED_RESOURCE_COORDINATE *dst_region_start_coordinate,
  4921. ID3D12Resource *src_resource,
  4922. const D3D12_TILED_RESOURCE_COORDINATE *src_region_start_coordinate,
  4923. const D3D12_TILE_REGION_SIZE *region_size,
  4924. D3D12_TILE_MAPPING_FLAGS flags) = 0;
  4925. virtual void STDMETHODCALLTYPE ExecuteCommandLists(
  4926. UINT command_list_count,
  4927. ID3D12CommandList *const *command_lists) = 0;
  4928. virtual void STDMETHODCALLTYPE SetMarker(
  4929. UINT metadata,
  4930. const void *data,
  4931. UINT size) = 0;
  4932. virtual void STDMETHODCALLTYPE BeginEvent(
  4933. UINT metadata,
  4934. const void *data,
  4935. UINT size) = 0;
  4936. virtual void STDMETHODCALLTYPE EndEvent(
  4937. ) = 0;
  4938. virtual HRESULT STDMETHODCALLTYPE Signal(
  4939. ID3D12Fence *fence,
  4940. UINT64 value) = 0;
  4941. virtual HRESULT STDMETHODCALLTYPE Wait(
  4942. ID3D12Fence *fence,
  4943. UINT64 value) = 0;
  4944. virtual HRESULT STDMETHODCALLTYPE GetTimestampFrequency(
  4945. UINT64 *frequency) = 0;
  4946. virtual HRESULT STDMETHODCALLTYPE GetClockCalibration(
  4947. UINT64 *gpu_timestamp,
  4948. UINT64 *cpu_timestamp) = 0;
  4949. #ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
  4950. virtual D3D12_COMMAND_QUEUE_DESC* STDMETHODCALLTYPE GetDesc(
  4951. D3D12_COMMAND_QUEUE_DESC *__ret) = 0;
  4952. D3D12_COMMAND_QUEUE_DESC STDMETHODCALLTYPE GetDesc(
  4953. )
  4954. {
  4955. D3D12_COMMAND_QUEUE_DESC __ret;
  4956. return *GetDesc(&__ret);
  4957. }
  4958. #else
  4959. virtual D3D12_COMMAND_QUEUE_DESC STDMETHODCALLTYPE GetDesc(
  4960. ) = 0;
  4961. #endif
  4962. };
  4963. #ifdef __CRT_UUID_DECL
  4964. __CRT_UUID_DECL(ID3D12CommandQueue, 0x0ec870a6, 0x5d7e, 0x4c22, 0x8c,0xfc, 0x5b,0xaa,0xe0,0x76,0x16,0xed)
  4965. #endif
  4966. #else
  4967. typedef struct ID3D12CommandQueueVtbl {
  4968. BEGIN_INTERFACE
  4969. /*** IUnknown methods ***/
  4970. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  4971. ID3D12CommandQueue *This,
  4972. REFIID riid,
  4973. void **ppvObject);
  4974. ULONG (STDMETHODCALLTYPE *AddRef)(
  4975. ID3D12CommandQueue *This);
  4976. ULONG (STDMETHODCALLTYPE *Release)(
  4977. ID3D12CommandQueue *This);
  4978. /*** ID3D12Object methods ***/
  4979. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  4980. ID3D12CommandQueue *This,
  4981. REFGUID guid,
  4982. UINT *data_size,
  4983. void *data);
  4984. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  4985. ID3D12CommandQueue *This,
  4986. REFGUID guid,
  4987. UINT data_size,
  4988. const void *data);
  4989. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  4990. ID3D12CommandQueue *This,
  4991. REFGUID guid,
  4992. const IUnknown *data);
  4993. HRESULT (STDMETHODCALLTYPE *SetName)(
  4994. ID3D12CommandQueue *This,
  4995. const WCHAR *name);
  4996. /*** ID3D12DeviceChild methods ***/
  4997. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  4998. ID3D12CommandQueue *This,
  4999. REFIID riid,
  5000. void **device);
  5001. /*** ID3D12CommandQueue methods ***/
  5002. void (STDMETHODCALLTYPE *UpdateTileMappings)(
  5003. ID3D12CommandQueue *This,
  5004. ID3D12Resource *resource,
  5005. UINT region_count,
  5006. const D3D12_TILED_RESOURCE_COORDINATE *region_start_coordinates,
  5007. const D3D12_TILE_REGION_SIZE *region_sizes,
  5008. UINT range_count,
  5009. const D3D12_TILE_RANGE_FLAGS *range_flags,
  5010. UINT *heap_range_offsets,
  5011. UINT *range_tile_counts,
  5012. D3D12_TILE_MAPPING_FLAGS flags);
  5013. void (STDMETHODCALLTYPE *CopyTileMappings)(
  5014. ID3D12CommandQueue *This,
  5015. ID3D12Resource *dst_resource,
  5016. const D3D12_TILED_RESOURCE_COORDINATE *dst_region_start_coordinate,
  5017. ID3D12Resource *src_resource,
  5018. const D3D12_TILED_RESOURCE_COORDINATE *src_region_start_coordinate,
  5019. const D3D12_TILE_REGION_SIZE *region_size,
  5020. D3D12_TILE_MAPPING_FLAGS flags);
  5021. void (STDMETHODCALLTYPE *ExecuteCommandLists)(
  5022. ID3D12CommandQueue *This,
  5023. UINT command_list_count,
  5024. ID3D12CommandList *const *command_lists);
  5025. void (STDMETHODCALLTYPE *SetMarker)(
  5026. ID3D12CommandQueue *This,
  5027. UINT metadata,
  5028. const void *data,
  5029. UINT size);
  5030. void (STDMETHODCALLTYPE *BeginEvent)(
  5031. ID3D12CommandQueue *This,
  5032. UINT metadata,
  5033. const void *data,
  5034. UINT size);
  5035. void (STDMETHODCALLTYPE *EndEvent)(
  5036. ID3D12CommandQueue *This);
  5037. HRESULT (STDMETHODCALLTYPE *Signal)(
  5038. ID3D12CommandQueue *This,
  5039. ID3D12Fence *fence,
  5040. UINT64 value);
  5041. HRESULT (STDMETHODCALLTYPE *Wait)(
  5042. ID3D12CommandQueue *This,
  5043. ID3D12Fence *fence,
  5044. UINT64 value);
  5045. HRESULT (STDMETHODCALLTYPE *GetTimestampFrequency)(
  5046. ID3D12CommandQueue *This,
  5047. UINT64 *frequency);
  5048. HRESULT (STDMETHODCALLTYPE *GetClockCalibration)(
  5049. ID3D12CommandQueue *This,
  5050. UINT64 *gpu_timestamp,
  5051. UINT64 *cpu_timestamp);
  5052. D3D12_COMMAND_QUEUE_DESC * (STDMETHODCALLTYPE *GetDesc)(
  5053. ID3D12CommandQueue *This,
  5054. D3D12_COMMAND_QUEUE_DESC *__ret);
  5055. END_INTERFACE
  5056. } ID3D12CommandQueueVtbl;
  5057. interface ID3D12CommandQueue {
  5058. CONST_VTBL ID3D12CommandQueueVtbl* lpVtbl;
  5059. };
  5060. #ifdef COBJMACROS
  5061. #ifndef WIDL_C_INLINE_WRAPPERS
  5062. /*** IUnknown methods ***/
  5063. #define ID3D12CommandQueue_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5064. #define ID3D12CommandQueue_AddRef(This) (This)->lpVtbl->AddRef(This)
  5065. #define ID3D12CommandQueue_Release(This) (This)->lpVtbl->Release(This)
  5066. /*** ID3D12Object methods ***/
  5067. #define ID3D12CommandQueue_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  5068. #define ID3D12CommandQueue_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  5069. #define ID3D12CommandQueue_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  5070. #define ID3D12CommandQueue_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  5071. /*** ID3D12DeviceChild methods ***/
  5072. #define ID3D12CommandQueue_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  5073. /*** ID3D12CommandQueue methods ***/
  5074. #define ID3D12CommandQueue_UpdateTileMappings(This,resource,region_count,region_start_coordinates,region_sizes,range_count,range_flags,heap_range_offsets,range_tile_counts,flags) (This)->lpVtbl->UpdateTileMappings(This,resource,region_count,region_start_coordinates,region_sizes,range_count,range_flags,heap_range_offsets,range_tile_counts,flags)
  5075. #define ID3D12CommandQueue_CopyTileMappings(This,dst_resource,dst_region_start_coordinate,src_resource,src_region_start_coordinate,region_size,flags) (This)->lpVtbl->CopyTileMappings(This,dst_resource,dst_region_start_coordinate,src_resource,src_region_start_coordinate,region_size,flags)
  5076. #define ID3D12CommandQueue_ExecuteCommandLists(This,command_list_count,command_lists) (This)->lpVtbl->ExecuteCommandLists(This,command_list_count,command_lists)
  5077. #define ID3D12CommandQueue_SetMarker(This,metadata,data,size) (This)->lpVtbl->SetMarker(This,metadata,data,size)
  5078. #define ID3D12CommandQueue_BeginEvent(This,metadata,data,size) (This)->lpVtbl->BeginEvent(This,metadata,data,size)
  5079. #define ID3D12CommandQueue_EndEvent(This) (This)->lpVtbl->EndEvent(This)
  5080. #define ID3D12CommandQueue_Signal(This,fence,value) (This)->lpVtbl->Signal(This,fence,value)
  5081. #define ID3D12CommandQueue_Wait(This,fence,value) (This)->lpVtbl->Wait(This,fence,value)
  5082. #define ID3D12CommandQueue_GetTimestampFrequency(This,frequency) (This)->lpVtbl->GetTimestampFrequency(This,frequency)
  5083. #define ID3D12CommandQueue_GetClockCalibration(This,gpu_timestamp,cpu_timestamp) (This)->lpVtbl->GetClockCalibration(This,gpu_timestamp,cpu_timestamp)
  5084. #define ID3D12CommandQueue_GetDesc(This) ID3D12CommandQueue_GetDesc_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  5085. #else
  5086. /*** IUnknown methods ***/
  5087. static FORCEINLINE HRESULT ID3D12CommandQueue_QueryInterface(ID3D12CommandQueue* This,REFIID riid,void **ppvObject) {
  5088. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5089. }
  5090. static FORCEINLINE ULONG ID3D12CommandQueue_AddRef(ID3D12CommandQueue* This) {
  5091. return This->lpVtbl->AddRef(This);
  5092. }
  5093. static FORCEINLINE ULONG ID3D12CommandQueue_Release(ID3D12CommandQueue* This) {
  5094. return This->lpVtbl->Release(This);
  5095. }
  5096. /*** ID3D12Object methods ***/
  5097. static FORCEINLINE HRESULT ID3D12CommandQueue_GetPrivateData(ID3D12CommandQueue* This,REFGUID guid,UINT *data_size,void *data) {
  5098. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  5099. }
  5100. static FORCEINLINE HRESULT ID3D12CommandQueue_SetPrivateData(ID3D12CommandQueue* This,REFGUID guid,UINT data_size,const void *data) {
  5101. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  5102. }
  5103. static FORCEINLINE HRESULT ID3D12CommandQueue_SetPrivateDataInterface(ID3D12CommandQueue* This,REFGUID guid,const IUnknown *data) {
  5104. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  5105. }
  5106. static FORCEINLINE HRESULT ID3D12CommandQueue_SetName(ID3D12CommandQueue* This,const WCHAR *name) {
  5107. return This->lpVtbl->SetName(This,name);
  5108. }
  5109. /*** ID3D12DeviceChild methods ***/
  5110. static FORCEINLINE HRESULT ID3D12CommandQueue_GetDevice(ID3D12CommandQueue* This,REFIID riid,void **device) {
  5111. return This->lpVtbl->GetDevice(This,riid,device);
  5112. }
  5113. /*** ID3D12CommandQueue methods ***/
  5114. static FORCEINLINE void ID3D12CommandQueue_UpdateTileMappings(ID3D12CommandQueue* This,ID3D12Resource *resource,UINT region_count,const D3D12_TILED_RESOURCE_COORDINATE *region_start_coordinates,const D3D12_TILE_REGION_SIZE *region_sizes,UINT range_count,const D3D12_TILE_RANGE_FLAGS *range_flags,UINT *heap_range_offsets,UINT *range_tile_counts,D3D12_TILE_MAPPING_FLAGS flags) {
  5115. This->lpVtbl->UpdateTileMappings(This,resource,region_count,region_start_coordinates,region_sizes,range_count,range_flags,heap_range_offsets,range_tile_counts,flags);
  5116. }
  5117. static FORCEINLINE void ID3D12CommandQueue_CopyTileMappings(ID3D12CommandQueue* This,ID3D12Resource *dst_resource,const D3D12_TILED_RESOURCE_COORDINATE *dst_region_start_coordinate,ID3D12Resource *src_resource,const D3D12_TILED_RESOURCE_COORDINATE *src_region_start_coordinate,const D3D12_TILE_REGION_SIZE *region_size,D3D12_TILE_MAPPING_FLAGS flags) {
  5118. This->lpVtbl->CopyTileMappings(This,dst_resource,dst_region_start_coordinate,src_resource,src_region_start_coordinate,region_size,flags);
  5119. }
  5120. static FORCEINLINE void ID3D12CommandQueue_ExecuteCommandLists(ID3D12CommandQueue* This,UINT command_list_count,ID3D12CommandList *const *command_lists) {
  5121. This->lpVtbl->ExecuteCommandLists(This,command_list_count,command_lists);
  5122. }
  5123. static FORCEINLINE void ID3D12CommandQueue_SetMarker(ID3D12CommandQueue* This,UINT metadata,const void *data,UINT size) {
  5124. This->lpVtbl->SetMarker(This,metadata,data,size);
  5125. }
  5126. static FORCEINLINE void ID3D12CommandQueue_BeginEvent(ID3D12CommandQueue* This,UINT metadata,const void *data,UINT size) {
  5127. This->lpVtbl->BeginEvent(This,metadata,data,size);
  5128. }
  5129. static FORCEINLINE void ID3D12CommandQueue_EndEvent(ID3D12CommandQueue* This) {
  5130. This->lpVtbl->EndEvent(This);
  5131. }
  5132. static FORCEINLINE HRESULT ID3D12CommandQueue_Signal(ID3D12CommandQueue* This,ID3D12Fence *fence,UINT64 value) {
  5133. return This->lpVtbl->Signal(This,fence,value);
  5134. }
  5135. static FORCEINLINE HRESULT ID3D12CommandQueue_Wait(ID3D12CommandQueue* This,ID3D12Fence *fence,UINT64 value) {
  5136. return This->lpVtbl->Wait(This,fence,value);
  5137. }
  5138. static FORCEINLINE HRESULT ID3D12CommandQueue_GetTimestampFrequency(ID3D12CommandQueue* This,UINT64 *frequency) {
  5139. return This->lpVtbl->GetTimestampFrequency(This,frequency);
  5140. }
  5141. static FORCEINLINE HRESULT ID3D12CommandQueue_GetClockCalibration(ID3D12CommandQueue* This,UINT64 *gpu_timestamp,UINT64 *cpu_timestamp) {
  5142. return This->lpVtbl->GetClockCalibration(This,gpu_timestamp,cpu_timestamp);
  5143. }
  5144. static FORCEINLINE D3D12_COMMAND_QUEUE_DESC ID3D12CommandQueue_GetDesc(ID3D12CommandQueue* This) {
  5145. D3D12_COMMAND_QUEUE_DESC __ret;
  5146. return *This->lpVtbl->GetDesc(This,&__ret);
  5147. }
  5148. #endif
  5149. #endif
  5150. #endif
  5151. #endif /* __ID3D12CommandQueue_INTERFACE_DEFINED__ */
  5152. typedef enum D3D12_FENCE_FLAGS {
  5153. D3D12_FENCE_FLAG_NONE = 0x0,
  5154. D3D12_FENCE_FLAG_SHARED = 0x1,
  5155. D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER = 0x2
  5156. } D3D12_FENCE_FLAGS;
  5157. DEFINE_ENUM_FLAG_OPERATORS(D3D12_FENCE_FLAGS);
  5158. typedef enum D3D12_QUERY_HEAP_TYPE {
  5159. D3D12_QUERY_HEAP_TYPE_OCCLUSION = 0,
  5160. D3D12_QUERY_HEAP_TYPE_TIMESTAMP = 1,
  5161. D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS = 2,
  5162. D3D12_QUERY_HEAP_TYPE_SO_STATISTICS = 3
  5163. } D3D12_QUERY_HEAP_TYPE;
  5164. typedef struct D3D12_QUERY_HEAP_DESC {
  5165. D3D12_QUERY_HEAP_TYPE Type;
  5166. UINT Count;
  5167. UINT NodeMask;
  5168. } D3D12_QUERY_HEAP_DESC;
  5169. typedef enum D3D12_INDIRECT_ARGUMENT_TYPE {
  5170. D3D12_INDIRECT_ARGUMENT_TYPE_DRAW = 0,
  5171. D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED = 1,
  5172. D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH = 2,
  5173. D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW = 3,
  5174. D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW = 4,
  5175. D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT = 5,
  5176. D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW = 6,
  5177. D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW = 7,
  5178. D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW = 8
  5179. } D3D12_INDIRECT_ARGUMENT_TYPE;
  5180. typedef struct D3D12_INDIRECT_ARGUMENT_DESC {
  5181. D3D12_INDIRECT_ARGUMENT_TYPE Type;
  5182. __C89_NAMELESS union {
  5183. struct {
  5184. UINT Slot;
  5185. } VertexBuffer;
  5186. struct {
  5187. UINT RootParameterIndex;
  5188. UINT DestOffsetIn32BitValues;
  5189. UINT Num32BitValuesToSet;
  5190. } Constant;
  5191. struct {
  5192. UINT RootParameterIndex;
  5193. } ConstantBufferView;
  5194. struct {
  5195. UINT RootParameterIndex;
  5196. } ShaderResourceView;
  5197. struct {
  5198. UINT RootParameterIndex;
  5199. } UnorderedAccessView;
  5200. } __C89_NAMELESSUNIONNAME;
  5201. } D3D12_INDIRECT_ARGUMENT_DESC;
  5202. typedef struct D3D12_COMMAND_SIGNATURE_DESC {
  5203. UINT ByteStride;
  5204. UINT NumArgumentDescs;
  5205. const D3D12_INDIRECT_ARGUMENT_DESC *pArgumentDescs;
  5206. UINT NodeMask;
  5207. } D3D12_COMMAND_SIGNATURE_DESC;
  5208. /*****************************************************************************
  5209. * ID3D12RootSignature interface
  5210. */
  5211. #ifndef __ID3D12RootSignature_INTERFACE_DEFINED__
  5212. #define __ID3D12RootSignature_INTERFACE_DEFINED__
  5213. DEFINE_GUID(IID_ID3D12RootSignature, 0xc54a6b66, 0x72df, 0x4ee8, 0x8b,0xe5, 0xa9,0x46,0xa1,0x42,0x92,0x14);
  5214. #if defined(__cplusplus) && !defined(CINTERFACE)
  5215. MIDL_INTERFACE("c54a6b66-72df-4ee8-8be5-a946a1429214")
  5216. ID3D12RootSignature : public ID3D12DeviceChild
  5217. {
  5218. };
  5219. #ifdef __CRT_UUID_DECL
  5220. __CRT_UUID_DECL(ID3D12RootSignature, 0xc54a6b66, 0x72df, 0x4ee8, 0x8b,0xe5, 0xa9,0x46,0xa1,0x42,0x92,0x14)
  5221. #endif
  5222. #else
  5223. typedef struct ID3D12RootSignatureVtbl {
  5224. BEGIN_INTERFACE
  5225. /*** IUnknown methods ***/
  5226. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5227. ID3D12RootSignature *This,
  5228. REFIID riid,
  5229. void **ppvObject);
  5230. ULONG (STDMETHODCALLTYPE *AddRef)(
  5231. ID3D12RootSignature *This);
  5232. ULONG (STDMETHODCALLTYPE *Release)(
  5233. ID3D12RootSignature *This);
  5234. /*** ID3D12Object methods ***/
  5235. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  5236. ID3D12RootSignature *This,
  5237. REFGUID guid,
  5238. UINT *data_size,
  5239. void *data);
  5240. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  5241. ID3D12RootSignature *This,
  5242. REFGUID guid,
  5243. UINT data_size,
  5244. const void *data);
  5245. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  5246. ID3D12RootSignature *This,
  5247. REFGUID guid,
  5248. const IUnknown *data);
  5249. HRESULT (STDMETHODCALLTYPE *SetName)(
  5250. ID3D12RootSignature *This,
  5251. const WCHAR *name);
  5252. /*** ID3D12DeviceChild methods ***/
  5253. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  5254. ID3D12RootSignature *This,
  5255. REFIID riid,
  5256. void **device);
  5257. END_INTERFACE
  5258. } ID3D12RootSignatureVtbl;
  5259. interface ID3D12RootSignature {
  5260. CONST_VTBL ID3D12RootSignatureVtbl* lpVtbl;
  5261. };
  5262. #ifdef COBJMACROS
  5263. #ifndef WIDL_C_INLINE_WRAPPERS
  5264. /*** IUnknown methods ***/
  5265. #define ID3D12RootSignature_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5266. #define ID3D12RootSignature_AddRef(This) (This)->lpVtbl->AddRef(This)
  5267. #define ID3D12RootSignature_Release(This) (This)->lpVtbl->Release(This)
  5268. /*** ID3D12Object methods ***/
  5269. #define ID3D12RootSignature_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  5270. #define ID3D12RootSignature_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  5271. #define ID3D12RootSignature_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  5272. #define ID3D12RootSignature_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  5273. /*** ID3D12DeviceChild methods ***/
  5274. #define ID3D12RootSignature_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  5275. #else
  5276. /*** IUnknown methods ***/
  5277. static FORCEINLINE HRESULT ID3D12RootSignature_QueryInterface(ID3D12RootSignature* This,REFIID riid,void **ppvObject) {
  5278. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5279. }
  5280. static FORCEINLINE ULONG ID3D12RootSignature_AddRef(ID3D12RootSignature* This) {
  5281. return This->lpVtbl->AddRef(This);
  5282. }
  5283. static FORCEINLINE ULONG ID3D12RootSignature_Release(ID3D12RootSignature* This) {
  5284. return This->lpVtbl->Release(This);
  5285. }
  5286. /*** ID3D12Object methods ***/
  5287. static FORCEINLINE HRESULT ID3D12RootSignature_GetPrivateData(ID3D12RootSignature* This,REFGUID guid,UINT *data_size,void *data) {
  5288. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  5289. }
  5290. static FORCEINLINE HRESULT ID3D12RootSignature_SetPrivateData(ID3D12RootSignature* This,REFGUID guid,UINT data_size,const void *data) {
  5291. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  5292. }
  5293. static FORCEINLINE HRESULT ID3D12RootSignature_SetPrivateDataInterface(ID3D12RootSignature* This,REFGUID guid,const IUnknown *data) {
  5294. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  5295. }
  5296. static FORCEINLINE HRESULT ID3D12RootSignature_SetName(ID3D12RootSignature* This,const WCHAR *name) {
  5297. return This->lpVtbl->SetName(This,name);
  5298. }
  5299. /*** ID3D12DeviceChild methods ***/
  5300. static FORCEINLINE HRESULT ID3D12RootSignature_GetDevice(ID3D12RootSignature* This,REFIID riid,void **device) {
  5301. return This->lpVtbl->GetDevice(This,riid,device);
  5302. }
  5303. #endif
  5304. #endif
  5305. #endif
  5306. #endif /* __ID3D12RootSignature_INTERFACE_DEFINED__ */
  5307. /*****************************************************************************
  5308. * ID3D12PipelineState interface
  5309. */
  5310. #ifndef __ID3D12PipelineState_INTERFACE_DEFINED__
  5311. #define __ID3D12PipelineState_INTERFACE_DEFINED__
  5312. DEFINE_GUID(IID_ID3D12PipelineState, 0x765a30f3, 0xf624, 0x4c6f, 0xa8,0x28, 0xac,0xe9,0x48,0x62,0x24,0x45);
  5313. #if defined(__cplusplus) && !defined(CINTERFACE)
  5314. MIDL_INTERFACE("765a30f3-f624-4c6f-a828-ace948622445")
  5315. ID3D12PipelineState : public ID3D12Pageable
  5316. {
  5317. virtual HRESULT STDMETHODCALLTYPE GetCachedBlob(
  5318. ID3DBlob **blob) = 0;
  5319. };
  5320. #ifdef __CRT_UUID_DECL
  5321. __CRT_UUID_DECL(ID3D12PipelineState, 0x765a30f3, 0xf624, 0x4c6f, 0xa8,0x28, 0xac,0xe9,0x48,0x62,0x24,0x45)
  5322. #endif
  5323. #else
  5324. typedef struct ID3D12PipelineStateVtbl {
  5325. BEGIN_INTERFACE
  5326. /*** IUnknown methods ***/
  5327. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5328. ID3D12PipelineState *This,
  5329. REFIID riid,
  5330. void **ppvObject);
  5331. ULONG (STDMETHODCALLTYPE *AddRef)(
  5332. ID3D12PipelineState *This);
  5333. ULONG (STDMETHODCALLTYPE *Release)(
  5334. ID3D12PipelineState *This);
  5335. /*** ID3D12Object methods ***/
  5336. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  5337. ID3D12PipelineState *This,
  5338. REFGUID guid,
  5339. UINT *data_size,
  5340. void *data);
  5341. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  5342. ID3D12PipelineState *This,
  5343. REFGUID guid,
  5344. UINT data_size,
  5345. const void *data);
  5346. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  5347. ID3D12PipelineState *This,
  5348. REFGUID guid,
  5349. const IUnknown *data);
  5350. HRESULT (STDMETHODCALLTYPE *SetName)(
  5351. ID3D12PipelineState *This,
  5352. const WCHAR *name);
  5353. /*** ID3D12DeviceChild methods ***/
  5354. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  5355. ID3D12PipelineState *This,
  5356. REFIID riid,
  5357. void **device);
  5358. /*** ID3D12PipelineState methods ***/
  5359. HRESULT (STDMETHODCALLTYPE *GetCachedBlob)(
  5360. ID3D12PipelineState *This,
  5361. ID3DBlob **blob);
  5362. END_INTERFACE
  5363. } ID3D12PipelineStateVtbl;
  5364. interface ID3D12PipelineState {
  5365. CONST_VTBL ID3D12PipelineStateVtbl* lpVtbl;
  5366. };
  5367. #ifdef COBJMACROS
  5368. #ifndef WIDL_C_INLINE_WRAPPERS
  5369. /*** IUnknown methods ***/
  5370. #define ID3D12PipelineState_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5371. #define ID3D12PipelineState_AddRef(This) (This)->lpVtbl->AddRef(This)
  5372. #define ID3D12PipelineState_Release(This) (This)->lpVtbl->Release(This)
  5373. /*** ID3D12Object methods ***/
  5374. #define ID3D12PipelineState_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  5375. #define ID3D12PipelineState_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  5376. #define ID3D12PipelineState_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  5377. #define ID3D12PipelineState_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  5378. /*** ID3D12DeviceChild methods ***/
  5379. #define ID3D12PipelineState_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  5380. /*** ID3D12PipelineState methods ***/
  5381. #define ID3D12PipelineState_GetCachedBlob(This,blob) (This)->lpVtbl->GetCachedBlob(This,blob)
  5382. #else
  5383. /*** IUnknown methods ***/
  5384. static FORCEINLINE HRESULT ID3D12PipelineState_QueryInterface(ID3D12PipelineState* This,REFIID riid,void **ppvObject) {
  5385. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5386. }
  5387. static FORCEINLINE ULONG ID3D12PipelineState_AddRef(ID3D12PipelineState* This) {
  5388. return This->lpVtbl->AddRef(This);
  5389. }
  5390. static FORCEINLINE ULONG ID3D12PipelineState_Release(ID3D12PipelineState* This) {
  5391. return This->lpVtbl->Release(This);
  5392. }
  5393. /*** ID3D12Object methods ***/
  5394. static FORCEINLINE HRESULT ID3D12PipelineState_GetPrivateData(ID3D12PipelineState* This,REFGUID guid,UINT *data_size,void *data) {
  5395. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  5396. }
  5397. static FORCEINLINE HRESULT ID3D12PipelineState_SetPrivateData(ID3D12PipelineState* This,REFGUID guid,UINT data_size,const void *data) {
  5398. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  5399. }
  5400. static FORCEINLINE HRESULT ID3D12PipelineState_SetPrivateDataInterface(ID3D12PipelineState* This,REFGUID guid,const IUnknown *data) {
  5401. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  5402. }
  5403. static FORCEINLINE HRESULT ID3D12PipelineState_SetName(ID3D12PipelineState* This,const WCHAR *name) {
  5404. return This->lpVtbl->SetName(This,name);
  5405. }
  5406. /*** ID3D12DeviceChild methods ***/
  5407. static FORCEINLINE HRESULT ID3D12PipelineState_GetDevice(ID3D12PipelineState* This,REFIID riid,void **device) {
  5408. return This->lpVtbl->GetDevice(This,riid,device);
  5409. }
  5410. /*** ID3D12PipelineState methods ***/
  5411. static FORCEINLINE HRESULT ID3D12PipelineState_GetCachedBlob(ID3D12PipelineState* This,ID3DBlob **blob) {
  5412. return This->lpVtbl->GetCachedBlob(This,blob);
  5413. }
  5414. #endif
  5415. #endif
  5416. #endif
  5417. #endif /* __ID3D12PipelineState_INTERFACE_DEFINED__ */
  5418. /*****************************************************************************
  5419. * ID3D12Fence interface
  5420. */
  5421. #ifndef __ID3D12Fence_INTERFACE_DEFINED__
  5422. #define __ID3D12Fence_INTERFACE_DEFINED__
  5423. DEFINE_GUID(IID_ID3D12Fence, 0x0a753dcf, 0xc4d8, 0x4b91, 0xad,0xf6, 0xbe,0x5a,0x60,0xd9,0x5a,0x76);
  5424. #if defined(__cplusplus) && !defined(CINTERFACE)
  5425. MIDL_INTERFACE("0a753dcf-c4d8-4b91-adf6-be5a60d95a76")
  5426. ID3D12Fence : public ID3D12Pageable
  5427. {
  5428. virtual UINT64 STDMETHODCALLTYPE GetCompletedValue(
  5429. ) = 0;
  5430. virtual HRESULT STDMETHODCALLTYPE SetEventOnCompletion(
  5431. UINT64 value,
  5432. HANDLE event) = 0;
  5433. virtual HRESULT STDMETHODCALLTYPE Signal(
  5434. UINT64 value) = 0;
  5435. };
  5436. #ifdef __CRT_UUID_DECL
  5437. __CRT_UUID_DECL(ID3D12Fence, 0x0a753dcf, 0xc4d8, 0x4b91, 0xad,0xf6, 0xbe,0x5a,0x60,0xd9,0x5a,0x76)
  5438. #endif
  5439. #else
  5440. typedef struct ID3D12FenceVtbl {
  5441. BEGIN_INTERFACE
  5442. /*** IUnknown methods ***/
  5443. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5444. ID3D12Fence *This,
  5445. REFIID riid,
  5446. void **ppvObject);
  5447. ULONG (STDMETHODCALLTYPE *AddRef)(
  5448. ID3D12Fence *This);
  5449. ULONG (STDMETHODCALLTYPE *Release)(
  5450. ID3D12Fence *This);
  5451. /*** ID3D12Object methods ***/
  5452. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  5453. ID3D12Fence *This,
  5454. REFGUID guid,
  5455. UINT *data_size,
  5456. void *data);
  5457. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  5458. ID3D12Fence *This,
  5459. REFGUID guid,
  5460. UINT data_size,
  5461. const void *data);
  5462. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  5463. ID3D12Fence *This,
  5464. REFGUID guid,
  5465. const IUnknown *data);
  5466. HRESULT (STDMETHODCALLTYPE *SetName)(
  5467. ID3D12Fence *This,
  5468. const WCHAR *name);
  5469. /*** ID3D12DeviceChild methods ***/
  5470. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  5471. ID3D12Fence *This,
  5472. REFIID riid,
  5473. void **device);
  5474. /*** ID3D12Fence methods ***/
  5475. UINT64 (STDMETHODCALLTYPE *GetCompletedValue)(
  5476. ID3D12Fence *This);
  5477. HRESULT (STDMETHODCALLTYPE *SetEventOnCompletion)(
  5478. ID3D12Fence *This,
  5479. UINT64 value,
  5480. HANDLE event);
  5481. HRESULT (STDMETHODCALLTYPE *Signal)(
  5482. ID3D12Fence *This,
  5483. UINT64 value);
  5484. END_INTERFACE
  5485. } ID3D12FenceVtbl;
  5486. interface ID3D12Fence {
  5487. CONST_VTBL ID3D12FenceVtbl* lpVtbl;
  5488. };
  5489. #ifdef COBJMACROS
  5490. #ifndef WIDL_C_INLINE_WRAPPERS
  5491. /*** IUnknown methods ***/
  5492. #define ID3D12Fence_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5493. #define ID3D12Fence_AddRef(This) (This)->lpVtbl->AddRef(This)
  5494. #define ID3D12Fence_Release(This) (This)->lpVtbl->Release(This)
  5495. /*** ID3D12Object methods ***/
  5496. #define ID3D12Fence_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  5497. #define ID3D12Fence_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  5498. #define ID3D12Fence_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  5499. #define ID3D12Fence_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  5500. /*** ID3D12DeviceChild methods ***/
  5501. #define ID3D12Fence_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  5502. /*** ID3D12Fence methods ***/
  5503. #define ID3D12Fence_GetCompletedValue(This) (This)->lpVtbl->GetCompletedValue(This)
  5504. #define ID3D12Fence_SetEventOnCompletion(This,value,event) (This)->lpVtbl->SetEventOnCompletion(This,value,event)
  5505. #define ID3D12Fence_Signal(This,value) (This)->lpVtbl->Signal(This,value)
  5506. #else
  5507. /*** IUnknown methods ***/
  5508. static FORCEINLINE HRESULT ID3D12Fence_QueryInterface(ID3D12Fence* This,REFIID riid,void **ppvObject) {
  5509. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5510. }
  5511. static FORCEINLINE ULONG ID3D12Fence_AddRef(ID3D12Fence* This) {
  5512. return This->lpVtbl->AddRef(This);
  5513. }
  5514. static FORCEINLINE ULONG ID3D12Fence_Release(ID3D12Fence* This) {
  5515. return This->lpVtbl->Release(This);
  5516. }
  5517. /*** ID3D12Object methods ***/
  5518. static FORCEINLINE HRESULT ID3D12Fence_GetPrivateData(ID3D12Fence* This,REFGUID guid,UINT *data_size,void *data) {
  5519. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  5520. }
  5521. static FORCEINLINE HRESULT ID3D12Fence_SetPrivateData(ID3D12Fence* This,REFGUID guid,UINT data_size,const void *data) {
  5522. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  5523. }
  5524. static FORCEINLINE HRESULT ID3D12Fence_SetPrivateDataInterface(ID3D12Fence* This,REFGUID guid,const IUnknown *data) {
  5525. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  5526. }
  5527. static FORCEINLINE HRESULT ID3D12Fence_SetName(ID3D12Fence* This,const WCHAR *name) {
  5528. return This->lpVtbl->SetName(This,name);
  5529. }
  5530. /*** ID3D12DeviceChild methods ***/
  5531. static FORCEINLINE HRESULT ID3D12Fence_GetDevice(ID3D12Fence* This,REFIID riid,void **device) {
  5532. return This->lpVtbl->GetDevice(This,riid,device);
  5533. }
  5534. /*** ID3D12Fence methods ***/
  5535. static FORCEINLINE UINT64 ID3D12Fence_GetCompletedValue(ID3D12Fence* This) {
  5536. return This->lpVtbl->GetCompletedValue(This);
  5537. }
  5538. static FORCEINLINE HRESULT ID3D12Fence_SetEventOnCompletion(ID3D12Fence* This,UINT64 value,HANDLE event) {
  5539. return This->lpVtbl->SetEventOnCompletion(This,value,event);
  5540. }
  5541. static FORCEINLINE HRESULT ID3D12Fence_Signal(ID3D12Fence* This,UINT64 value) {
  5542. return This->lpVtbl->Signal(This,value);
  5543. }
  5544. #endif
  5545. #endif
  5546. #endif
  5547. #endif /* __ID3D12Fence_INTERFACE_DEFINED__ */
  5548. /*****************************************************************************
  5549. * ID3D12CommandAllocator interface
  5550. */
  5551. #ifndef __ID3D12CommandAllocator_INTERFACE_DEFINED__
  5552. #define __ID3D12CommandAllocator_INTERFACE_DEFINED__
  5553. DEFINE_GUID(IID_ID3D12CommandAllocator, 0x6102dee4, 0xaf59, 0x4b09, 0xb9,0x99, 0xb4,0x4d,0x73,0xf0,0x9b,0x24);
  5554. #if defined(__cplusplus) && !defined(CINTERFACE)
  5555. MIDL_INTERFACE("6102dee4-af59-4b09-b999-b44d73f09b24")
  5556. ID3D12CommandAllocator : public ID3D12Pageable
  5557. {
  5558. virtual HRESULT STDMETHODCALLTYPE Reset(
  5559. ) = 0;
  5560. };
  5561. #ifdef __CRT_UUID_DECL
  5562. __CRT_UUID_DECL(ID3D12CommandAllocator, 0x6102dee4, 0xaf59, 0x4b09, 0xb9,0x99, 0xb4,0x4d,0x73,0xf0,0x9b,0x24)
  5563. #endif
  5564. #else
  5565. typedef struct ID3D12CommandAllocatorVtbl {
  5566. BEGIN_INTERFACE
  5567. /*** IUnknown methods ***/
  5568. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5569. ID3D12CommandAllocator *This,
  5570. REFIID riid,
  5571. void **ppvObject);
  5572. ULONG (STDMETHODCALLTYPE *AddRef)(
  5573. ID3D12CommandAllocator *This);
  5574. ULONG (STDMETHODCALLTYPE *Release)(
  5575. ID3D12CommandAllocator *This);
  5576. /*** ID3D12Object methods ***/
  5577. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  5578. ID3D12CommandAllocator *This,
  5579. REFGUID guid,
  5580. UINT *data_size,
  5581. void *data);
  5582. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  5583. ID3D12CommandAllocator *This,
  5584. REFGUID guid,
  5585. UINT data_size,
  5586. const void *data);
  5587. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  5588. ID3D12CommandAllocator *This,
  5589. REFGUID guid,
  5590. const IUnknown *data);
  5591. HRESULT (STDMETHODCALLTYPE *SetName)(
  5592. ID3D12CommandAllocator *This,
  5593. const WCHAR *name);
  5594. /*** ID3D12DeviceChild methods ***/
  5595. HRESULT (STDMETHODCALLTYPE *GetDevice)(
  5596. ID3D12CommandAllocator *This,
  5597. REFIID riid,
  5598. void **device);
  5599. /*** ID3D12CommandAllocator methods ***/
  5600. HRESULT (STDMETHODCALLTYPE *Reset)(
  5601. ID3D12CommandAllocator *This);
  5602. END_INTERFACE
  5603. } ID3D12CommandAllocatorVtbl;
  5604. interface ID3D12CommandAllocator {
  5605. CONST_VTBL ID3D12CommandAllocatorVtbl* lpVtbl;
  5606. };
  5607. #ifdef COBJMACROS
  5608. #ifndef WIDL_C_INLINE_WRAPPERS
  5609. /*** IUnknown methods ***/
  5610. #define ID3D12CommandAllocator_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5611. #define ID3D12CommandAllocator_AddRef(This) (This)->lpVtbl->AddRef(This)
  5612. #define ID3D12CommandAllocator_Release(This) (This)->lpVtbl->Release(This)
  5613. /*** ID3D12Object methods ***/
  5614. #define ID3D12CommandAllocator_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  5615. #define ID3D12CommandAllocator_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  5616. #define ID3D12CommandAllocator_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  5617. #define ID3D12CommandAllocator_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  5618. /*** ID3D12DeviceChild methods ***/
  5619. #define ID3D12CommandAllocator_GetDevice(This,riid,device) (This)->lpVtbl->GetDevice(This,riid,device)
  5620. /*** ID3D12CommandAllocator methods ***/
  5621. #define ID3D12CommandAllocator_Reset(This) (This)->lpVtbl->Reset(This)
  5622. #else
  5623. /*** IUnknown methods ***/
  5624. static FORCEINLINE HRESULT ID3D12CommandAllocator_QueryInterface(ID3D12CommandAllocator* This,REFIID riid,void **ppvObject) {
  5625. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5626. }
  5627. static FORCEINLINE ULONG ID3D12CommandAllocator_AddRef(ID3D12CommandAllocator* This) {
  5628. return This->lpVtbl->AddRef(This);
  5629. }
  5630. static FORCEINLINE ULONG ID3D12CommandAllocator_Release(ID3D12CommandAllocator* This) {
  5631. return This->lpVtbl->Release(This);
  5632. }
  5633. /*** ID3D12Object methods ***/
  5634. static FORCEINLINE HRESULT ID3D12CommandAllocator_GetPrivateData(ID3D12CommandAllocator* This,REFGUID guid,UINT *data_size,void *data) {
  5635. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  5636. }
  5637. static FORCEINLINE HRESULT ID3D12CommandAllocator_SetPrivateData(ID3D12CommandAllocator* This,REFGUID guid,UINT data_size,const void *data) {
  5638. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  5639. }
  5640. static FORCEINLINE HRESULT ID3D12CommandAllocator_SetPrivateDataInterface(ID3D12CommandAllocator* This,REFGUID guid,const IUnknown *data) {
  5641. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  5642. }
  5643. static FORCEINLINE HRESULT ID3D12CommandAllocator_SetName(ID3D12CommandAllocator* This,const WCHAR *name) {
  5644. return This->lpVtbl->SetName(This,name);
  5645. }
  5646. /*** ID3D12DeviceChild methods ***/
  5647. static FORCEINLINE HRESULT ID3D12CommandAllocator_GetDevice(ID3D12CommandAllocator* This,REFIID riid,void **device) {
  5648. return This->lpVtbl->GetDevice(This,riid,device);
  5649. }
  5650. /*** ID3D12CommandAllocator methods ***/
  5651. static FORCEINLINE HRESULT ID3D12CommandAllocator_Reset(ID3D12CommandAllocator* This) {
  5652. return This->lpVtbl->Reset(This);
  5653. }
  5654. #endif
  5655. #endif
  5656. #endif
  5657. #endif /* __ID3D12CommandAllocator_INTERFACE_DEFINED__ */
  5658. /*****************************************************************************
  5659. * ID3D12Device interface
  5660. */
  5661. #ifndef __ID3D12Device_INTERFACE_DEFINED__
  5662. #define __ID3D12Device_INTERFACE_DEFINED__
  5663. DEFINE_GUID(IID_ID3D12Device, 0x189819f1, 0x1db6, 0x4b57, 0xbe,0x54, 0x18,0x21,0x33,0x9b,0x85,0xf7);
  5664. #if defined(__cplusplus) && !defined(CINTERFACE)
  5665. MIDL_INTERFACE("189819f1-1db6-4b57-be54-1821339b85f7")
  5666. ID3D12Device : public ID3D12Object
  5667. {
  5668. virtual UINT STDMETHODCALLTYPE GetNodeCount(
  5669. ) = 0;
  5670. virtual HRESULT STDMETHODCALLTYPE CreateCommandQueue(
  5671. const D3D12_COMMAND_QUEUE_DESC *desc,
  5672. REFIID riid,
  5673. void **command_queue) = 0;
  5674. virtual HRESULT STDMETHODCALLTYPE CreateCommandAllocator(
  5675. D3D12_COMMAND_LIST_TYPE type,
  5676. REFIID riid,
  5677. void **command_allocator) = 0;
  5678. virtual HRESULT STDMETHODCALLTYPE CreateGraphicsPipelineState(
  5679. const D3D12_GRAPHICS_PIPELINE_STATE_DESC *desc,
  5680. REFIID riid,
  5681. void **pipeline_state) = 0;
  5682. virtual HRESULT STDMETHODCALLTYPE CreateComputePipelineState(
  5683. const D3D12_COMPUTE_PIPELINE_STATE_DESC *desc,
  5684. REFIID riid,
  5685. void **pipeline_state) = 0;
  5686. virtual HRESULT STDMETHODCALLTYPE CreateCommandList(
  5687. UINT node_mask,
  5688. D3D12_COMMAND_LIST_TYPE type,
  5689. ID3D12CommandAllocator *command_allocator,
  5690. ID3D12PipelineState *initial_pipeline_state,
  5691. REFIID riid,
  5692. void **command_list) = 0;
  5693. virtual HRESULT STDMETHODCALLTYPE CheckFeatureSupport(
  5694. D3D12_FEATURE feature,
  5695. void *feature_data,
  5696. UINT feature_data_size) = 0;
  5697. virtual HRESULT STDMETHODCALLTYPE CreateDescriptorHeap(
  5698. const D3D12_DESCRIPTOR_HEAP_DESC *desc,
  5699. REFIID riid,
  5700. void **descriptor_heap) = 0;
  5701. virtual UINT STDMETHODCALLTYPE GetDescriptorHandleIncrementSize(
  5702. D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type) = 0;
  5703. virtual HRESULT STDMETHODCALLTYPE CreateRootSignature(
  5704. UINT node_mask,
  5705. const void *bytecode,
  5706. SIZE_T bytecode_length,
  5707. REFIID riid,
  5708. void **root_signature) = 0;
  5709. virtual void STDMETHODCALLTYPE CreateConstantBufferView(
  5710. const D3D12_CONSTANT_BUFFER_VIEW_DESC *desc,
  5711. D3D12_CPU_DESCRIPTOR_HANDLE descriptor) = 0;
  5712. virtual void STDMETHODCALLTYPE CreateShaderResourceView(
  5713. ID3D12Resource *resource,
  5714. const D3D12_SHADER_RESOURCE_VIEW_DESC *desc,
  5715. D3D12_CPU_DESCRIPTOR_HANDLE descriptor) = 0;
  5716. virtual void STDMETHODCALLTYPE CreateUnorderedAccessView(
  5717. ID3D12Resource *resource,
  5718. ID3D12Resource *counter_resource,
  5719. const D3D12_UNORDERED_ACCESS_VIEW_DESC *desc,
  5720. D3D12_CPU_DESCRIPTOR_HANDLE descriptor) = 0;
  5721. virtual void STDMETHODCALLTYPE CreateRenderTargetView(
  5722. ID3D12Resource *resource,
  5723. const D3D12_RENDER_TARGET_VIEW_DESC *desc,
  5724. D3D12_CPU_DESCRIPTOR_HANDLE descriptor) = 0;
  5725. virtual void STDMETHODCALLTYPE CreateDepthStencilView(
  5726. ID3D12Resource *resource,
  5727. const D3D12_DEPTH_STENCIL_VIEW_DESC *desc,
  5728. D3D12_CPU_DESCRIPTOR_HANDLE descriptor) = 0;
  5729. virtual void STDMETHODCALLTYPE CreateSampler(
  5730. const D3D12_SAMPLER_DESC *desc,
  5731. D3D12_CPU_DESCRIPTOR_HANDLE descriptor) = 0;
  5732. virtual void STDMETHODCALLTYPE CopyDescriptors(
  5733. UINT dst_descriptor_range_count,
  5734. const D3D12_CPU_DESCRIPTOR_HANDLE *dst_descriptor_range_offsets,
  5735. const UINT *dst_descriptor_range_sizes,
  5736. UINT src_descriptor_range_count,
  5737. const D3D12_CPU_DESCRIPTOR_HANDLE *src_descriptor_range_offsets,
  5738. const UINT *src_descriptor_range_sizes,
  5739. D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type) = 0;
  5740. virtual void STDMETHODCALLTYPE CopyDescriptorsSimple(
  5741. UINT descriptor_count,
  5742. const D3D12_CPU_DESCRIPTOR_HANDLE dst_descriptor_range_offset,
  5743. const D3D12_CPU_DESCRIPTOR_HANDLE src_descriptor_range_offset,
  5744. D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type) = 0;
  5745. #ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
  5746. virtual D3D12_RESOURCE_ALLOCATION_INFO* STDMETHODCALLTYPE GetResourceAllocationInfo(
  5747. D3D12_RESOURCE_ALLOCATION_INFO *__ret,
  5748. UINT visible_mask,
  5749. UINT reource_desc_count,
  5750. const D3D12_RESOURCE_DESC *resource_descs) = 0;
  5751. D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo(
  5752. UINT visible_mask,
  5753. UINT reource_desc_count,
  5754. const D3D12_RESOURCE_DESC *resource_descs)
  5755. {
  5756. D3D12_RESOURCE_ALLOCATION_INFO __ret;
  5757. return *GetResourceAllocationInfo(&__ret, visible_mask, reource_desc_count, resource_descs);
  5758. }
  5759. #else
  5760. virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo(
  5761. UINT visible_mask,
  5762. UINT reource_desc_count,
  5763. const D3D12_RESOURCE_DESC *resource_descs) = 0;
  5764. #endif
  5765. #ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
  5766. virtual D3D12_HEAP_PROPERTIES* STDMETHODCALLTYPE GetCustomHeapProperties(
  5767. D3D12_HEAP_PROPERTIES *__ret,
  5768. UINT node_mask,
  5769. D3D12_HEAP_TYPE heap_type) = 0;
  5770. D3D12_HEAP_PROPERTIES STDMETHODCALLTYPE GetCustomHeapProperties(
  5771. UINT node_mask,
  5772. D3D12_HEAP_TYPE heap_type)
  5773. {
  5774. D3D12_HEAP_PROPERTIES __ret;
  5775. return *GetCustomHeapProperties(&__ret, node_mask, heap_type);
  5776. }
  5777. #else
  5778. virtual D3D12_HEAP_PROPERTIES STDMETHODCALLTYPE GetCustomHeapProperties(
  5779. UINT node_mask,
  5780. D3D12_HEAP_TYPE heap_type) = 0;
  5781. #endif
  5782. virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource(
  5783. const D3D12_HEAP_PROPERTIES *heap_properties,
  5784. D3D12_HEAP_FLAGS heap_flags,
  5785. const D3D12_RESOURCE_DESC *desc,
  5786. D3D12_RESOURCE_STATES initial_state,
  5787. const D3D12_CLEAR_VALUE *optimized_clear_value,
  5788. REFIID riid,
  5789. void **resource) = 0;
  5790. virtual HRESULT STDMETHODCALLTYPE CreateHeap(
  5791. const D3D12_HEAP_DESC *desc,
  5792. REFIID riid,
  5793. void **heap) = 0;
  5794. virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource(
  5795. ID3D12Heap *heap,
  5796. UINT64 heap_offset,
  5797. const D3D12_RESOURCE_DESC *desc,
  5798. D3D12_RESOURCE_STATES initial_state,
  5799. const D3D12_CLEAR_VALUE *optimized_clear_value,
  5800. REFIID riid,
  5801. void **resource) = 0;
  5802. virtual HRESULT STDMETHODCALLTYPE CreateReservedResource(
  5803. const D3D12_RESOURCE_DESC *desc,
  5804. D3D12_RESOURCE_STATES initial_state,
  5805. const D3D12_CLEAR_VALUE *optimized_clear_value,
  5806. REFIID riid,
  5807. void **resource) = 0;
  5808. virtual HRESULT STDMETHODCALLTYPE CreateSharedHandle(
  5809. ID3D12DeviceChild *object,
  5810. const SECURITY_ATTRIBUTES *attributes,
  5811. DWORD access,
  5812. const WCHAR *name,
  5813. HANDLE *handle) = 0;
  5814. virtual HRESULT STDMETHODCALLTYPE OpenSharedHandle(
  5815. HANDLE handle,
  5816. REFIID riid,
  5817. void **object) = 0;
  5818. virtual HRESULT STDMETHODCALLTYPE OpenSharedHandleByName(
  5819. const WCHAR *name,
  5820. DWORD access,
  5821. HANDLE *handle) = 0;
  5822. virtual HRESULT STDMETHODCALLTYPE MakeResident(
  5823. UINT object_count,
  5824. ID3D12Pageable *const *objects) = 0;
  5825. virtual HRESULT STDMETHODCALLTYPE Evict(
  5826. UINT object_count,
  5827. ID3D12Pageable *const *objects) = 0;
  5828. virtual HRESULT STDMETHODCALLTYPE CreateFence(
  5829. UINT64 initial_value,
  5830. D3D12_FENCE_FLAGS flags,
  5831. REFIID riid,
  5832. void **fence) = 0;
  5833. virtual HRESULT STDMETHODCALLTYPE GetDeviceRemovedReason(
  5834. ) = 0;
  5835. virtual void STDMETHODCALLTYPE GetCopyableFootprints(
  5836. const D3D12_RESOURCE_DESC *desc,
  5837. UINT first_sub_resource,
  5838. UINT sub_resource_count,
  5839. UINT64 base_offset,
  5840. D3D12_PLACED_SUBRESOURCE_FOOTPRINT *layouts,
  5841. UINT *row_count,
  5842. UINT64 *row_size,
  5843. UINT64 *total_bytes) = 0;
  5844. virtual HRESULT STDMETHODCALLTYPE CreateQueryHeap(
  5845. const D3D12_QUERY_HEAP_DESC *desc,
  5846. REFIID riid,
  5847. void **heap) = 0;
  5848. virtual HRESULT STDMETHODCALLTYPE SetStablePowerState(
  5849. WINBOOL enable) = 0;
  5850. virtual HRESULT STDMETHODCALLTYPE CreateCommandSignature(
  5851. const D3D12_COMMAND_SIGNATURE_DESC *desc,
  5852. ID3D12RootSignature *root_signature,
  5853. REFIID riid,
  5854. void **command_signature) = 0;
  5855. virtual void STDMETHODCALLTYPE GetResourceTiling(
  5856. ID3D12Resource *resource,
  5857. UINT *total_tile_count,
  5858. D3D12_PACKED_MIP_INFO *packed_mip_info,
  5859. D3D12_TILE_SHAPE *standard_tile_shape,
  5860. UINT *sub_resource_tiling_count,
  5861. UINT first_sub_resource_tiling,
  5862. D3D12_SUBRESOURCE_TILING *sub_resource_tilings) = 0;
  5863. #ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
  5864. virtual LUID* STDMETHODCALLTYPE GetAdapterLuid(
  5865. LUID *__ret) = 0;
  5866. LUID STDMETHODCALLTYPE GetAdapterLuid(
  5867. )
  5868. {
  5869. LUID __ret;
  5870. return *GetAdapterLuid(&__ret);
  5871. }
  5872. #else
  5873. virtual LUID STDMETHODCALLTYPE GetAdapterLuid(
  5874. ) = 0;
  5875. #endif
  5876. };
  5877. #ifdef __CRT_UUID_DECL
  5878. __CRT_UUID_DECL(ID3D12Device, 0x189819f1, 0x1db6, 0x4b57, 0xbe,0x54, 0x18,0x21,0x33,0x9b,0x85,0xf7)
  5879. #endif
  5880. #else
  5881. typedef struct ID3D12DeviceVtbl {
  5882. BEGIN_INTERFACE
  5883. /*** IUnknown methods ***/
  5884. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5885. ID3D12Device *This,
  5886. REFIID riid,
  5887. void **ppvObject);
  5888. ULONG (STDMETHODCALLTYPE *AddRef)(
  5889. ID3D12Device *This);
  5890. ULONG (STDMETHODCALLTYPE *Release)(
  5891. ID3D12Device *This);
  5892. /*** ID3D12Object methods ***/
  5893. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  5894. ID3D12Device *This,
  5895. REFGUID guid,
  5896. UINT *data_size,
  5897. void *data);
  5898. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  5899. ID3D12Device *This,
  5900. REFGUID guid,
  5901. UINT data_size,
  5902. const void *data);
  5903. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  5904. ID3D12Device *This,
  5905. REFGUID guid,
  5906. const IUnknown *data);
  5907. HRESULT (STDMETHODCALLTYPE *SetName)(
  5908. ID3D12Device *This,
  5909. const WCHAR *name);
  5910. /*** ID3D12Device methods ***/
  5911. UINT (STDMETHODCALLTYPE *GetNodeCount)(
  5912. ID3D12Device *This);
  5913. HRESULT (STDMETHODCALLTYPE *CreateCommandQueue)(
  5914. ID3D12Device *This,
  5915. const D3D12_COMMAND_QUEUE_DESC *desc,
  5916. REFIID riid,
  5917. void **command_queue);
  5918. HRESULT (STDMETHODCALLTYPE *CreateCommandAllocator)(
  5919. ID3D12Device *This,
  5920. D3D12_COMMAND_LIST_TYPE type,
  5921. REFIID riid,
  5922. void **command_allocator);
  5923. HRESULT (STDMETHODCALLTYPE *CreateGraphicsPipelineState)(
  5924. ID3D12Device *This,
  5925. const D3D12_GRAPHICS_PIPELINE_STATE_DESC *desc,
  5926. REFIID riid,
  5927. void **pipeline_state);
  5928. HRESULT (STDMETHODCALLTYPE *CreateComputePipelineState)(
  5929. ID3D12Device *This,
  5930. const D3D12_COMPUTE_PIPELINE_STATE_DESC *desc,
  5931. REFIID riid,
  5932. void **pipeline_state);
  5933. HRESULT (STDMETHODCALLTYPE *CreateCommandList)(
  5934. ID3D12Device *This,
  5935. UINT node_mask,
  5936. D3D12_COMMAND_LIST_TYPE type,
  5937. ID3D12CommandAllocator *command_allocator,
  5938. ID3D12PipelineState *initial_pipeline_state,
  5939. REFIID riid,
  5940. void **command_list);
  5941. HRESULT (STDMETHODCALLTYPE *CheckFeatureSupport)(
  5942. ID3D12Device *This,
  5943. D3D12_FEATURE feature,
  5944. void *feature_data,
  5945. UINT feature_data_size);
  5946. HRESULT (STDMETHODCALLTYPE *CreateDescriptorHeap)(
  5947. ID3D12Device *This,
  5948. const D3D12_DESCRIPTOR_HEAP_DESC *desc,
  5949. REFIID riid,
  5950. void **descriptor_heap);
  5951. UINT (STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize)(
  5952. ID3D12Device *This,
  5953. D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type);
  5954. HRESULT (STDMETHODCALLTYPE *CreateRootSignature)(
  5955. ID3D12Device *This,
  5956. UINT node_mask,
  5957. const void *bytecode,
  5958. SIZE_T bytecode_length,
  5959. REFIID riid,
  5960. void **root_signature);
  5961. void (STDMETHODCALLTYPE *CreateConstantBufferView)(
  5962. ID3D12Device *This,
  5963. const D3D12_CONSTANT_BUFFER_VIEW_DESC *desc,
  5964. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  5965. void (STDMETHODCALLTYPE *CreateShaderResourceView)(
  5966. ID3D12Device *This,
  5967. ID3D12Resource *resource,
  5968. const D3D12_SHADER_RESOURCE_VIEW_DESC *desc,
  5969. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  5970. void (STDMETHODCALLTYPE *CreateUnorderedAccessView)(
  5971. ID3D12Device *This,
  5972. ID3D12Resource *resource,
  5973. ID3D12Resource *counter_resource,
  5974. const D3D12_UNORDERED_ACCESS_VIEW_DESC *desc,
  5975. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  5976. void (STDMETHODCALLTYPE *CreateRenderTargetView)(
  5977. ID3D12Device *This,
  5978. ID3D12Resource *resource,
  5979. const D3D12_RENDER_TARGET_VIEW_DESC *desc,
  5980. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  5981. void (STDMETHODCALLTYPE *CreateDepthStencilView)(
  5982. ID3D12Device *This,
  5983. ID3D12Resource *resource,
  5984. const D3D12_DEPTH_STENCIL_VIEW_DESC *desc,
  5985. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  5986. void (STDMETHODCALLTYPE *CreateSampler)(
  5987. ID3D12Device *This,
  5988. const D3D12_SAMPLER_DESC *desc,
  5989. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  5990. void (STDMETHODCALLTYPE *CopyDescriptors)(
  5991. ID3D12Device *This,
  5992. UINT dst_descriptor_range_count,
  5993. const D3D12_CPU_DESCRIPTOR_HANDLE *dst_descriptor_range_offsets,
  5994. const UINT *dst_descriptor_range_sizes,
  5995. UINT src_descriptor_range_count,
  5996. const D3D12_CPU_DESCRIPTOR_HANDLE *src_descriptor_range_offsets,
  5997. const UINT *src_descriptor_range_sizes,
  5998. D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type);
  5999. void (STDMETHODCALLTYPE *CopyDescriptorsSimple)(
  6000. ID3D12Device *This,
  6001. UINT descriptor_count,
  6002. const D3D12_CPU_DESCRIPTOR_HANDLE dst_descriptor_range_offset,
  6003. const D3D12_CPU_DESCRIPTOR_HANDLE src_descriptor_range_offset,
  6004. D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type);
  6005. D3D12_RESOURCE_ALLOCATION_INFO * (STDMETHODCALLTYPE *GetResourceAllocationInfo)(
  6006. ID3D12Device *This,
  6007. D3D12_RESOURCE_ALLOCATION_INFO *__ret,
  6008. UINT visible_mask,
  6009. UINT reource_desc_count,
  6010. const D3D12_RESOURCE_DESC *resource_descs);
  6011. D3D12_HEAP_PROPERTIES * (STDMETHODCALLTYPE *GetCustomHeapProperties)(
  6012. ID3D12Device *This,
  6013. D3D12_HEAP_PROPERTIES *__ret,
  6014. UINT node_mask,
  6015. D3D12_HEAP_TYPE heap_type);
  6016. HRESULT (STDMETHODCALLTYPE *CreateCommittedResource)(
  6017. ID3D12Device *This,
  6018. const D3D12_HEAP_PROPERTIES *heap_properties,
  6019. D3D12_HEAP_FLAGS heap_flags,
  6020. const D3D12_RESOURCE_DESC *desc,
  6021. D3D12_RESOURCE_STATES initial_state,
  6022. const D3D12_CLEAR_VALUE *optimized_clear_value,
  6023. REFIID riid,
  6024. void **resource);
  6025. HRESULT (STDMETHODCALLTYPE *CreateHeap)(
  6026. ID3D12Device *This,
  6027. const D3D12_HEAP_DESC *desc,
  6028. REFIID riid,
  6029. void **heap);
  6030. HRESULT (STDMETHODCALLTYPE *CreatePlacedResource)(
  6031. ID3D12Device *This,
  6032. ID3D12Heap *heap,
  6033. UINT64 heap_offset,
  6034. const D3D12_RESOURCE_DESC *desc,
  6035. D3D12_RESOURCE_STATES initial_state,
  6036. const D3D12_CLEAR_VALUE *optimized_clear_value,
  6037. REFIID riid,
  6038. void **resource);
  6039. HRESULT (STDMETHODCALLTYPE *CreateReservedResource)(
  6040. ID3D12Device *This,
  6041. const D3D12_RESOURCE_DESC *desc,
  6042. D3D12_RESOURCE_STATES initial_state,
  6043. const D3D12_CLEAR_VALUE *optimized_clear_value,
  6044. REFIID riid,
  6045. void **resource);
  6046. HRESULT (STDMETHODCALLTYPE *CreateSharedHandle)(
  6047. ID3D12Device *This,
  6048. ID3D12DeviceChild *object,
  6049. const SECURITY_ATTRIBUTES *attributes,
  6050. DWORD access,
  6051. const WCHAR *name,
  6052. HANDLE *handle);
  6053. HRESULT (STDMETHODCALLTYPE *OpenSharedHandle)(
  6054. ID3D12Device *This,
  6055. HANDLE handle,
  6056. REFIID riid,
  6057. void **object);
  6058. HRESULT (STDMETHODCALLTYPE *OpenSharedHandleByName)(
  6059. ID3D12Device *This,
  6060. const WCHAR *name,
  6061. DWORD access,
  6062. HANDLE *handle);
  6063. HRESULT (STDMETHODCALLTYPE *MakeResident)(
  6064. ID3D12Device *This,
  6065. UINT object_count,
  6066. ID3D12Pageable *const *objects);
  6067. HRESULT (STDMETHODCALLTYPE *Evict)(
  6068. ID3D12Device *This,
  6069. UINT object_count,
  6070. ID3D12Pageable *const *objects);
  6071. HRESULT (STDMETHODCALLTYPE *CreateFence)(
  6072. ID3D12Device *This,
  6073. UINT64 initial_value,
  6074. D3D12_FENCE_FLAGS flags,
  6075. REFIID riid,
  6076. void **fence);
  6077. HRESULT (STDMETHODCALLTYPE *GetDeviceRemovedReason)(
  6078. ID3D12Device *This);
  6079. void (STDMETHODCALLTYPE *GetCopyableFootprints)(
  6080. ID3D12Device *This,
  6081. const D3D12_RESOURCE_DESC *desc,
  6082. UINT first_sub_resource,
  6083. UINT sub_resource_count,
  6084. UINT64 base_offset,
  6085. D3D12_PLACED_SUBRESOURCE_FOOTPRINT *layouts,
  6086. UINT *row_count,
  6087. UINT64 *row_size,
  6088. UINT64 *total_bytes);
  6089. HRESULT (STDMETHODCALLTYPE *CreateQueryHeap)(
  6090. ID3D12Device *This,
  6091. const D3D12_QUERY_HEAP_DESC *desc,
  6092. REFIID riid,
  6093. void **heap);
  6094. HRESULT (STDMETHODCALLTYPE *SetStablePowerState)(
  6095. ID3D12Device *This,
  6096. WINBOOL enable);
  6097. HRESULT (STDMETHODCALLTYPE *CreateCommandSignature)(
  6098. ID3D12Device *This,
  6099. const D3D12_COMMAND_SIGNATURE_DESC *desc,
  6100. ID3D12RootSignature *root_signature,
  6101. REFIID riid,
  6102. void **command_signature);
  6103. void (STDMETHODCALLTYPE *GetResourceTiling)(
  6104. ID3D12Device *This,
  6105. ID3D12Resource *resource,
  6106. UINT *total_tile_count,
  6107. D3D12_PACKED_MIP_INFO *packed_mip_info,
  6108. D3D12_TILE_SHAPE *standard_tile_shape,
  6109. UINT *sub_resource_tiling_count,
  6110. UINT first_sub_resource_tiling,
  6111. D3D12_SUBRESOURCE_TILING *sub_resource_tilings);
  6112. LUID * (STDMETHODCALLTYPE *GetAdapterLuid)(
  6113. ID3D12Device *This,
  6114. LUID *__ret);
  6115. END_INTERFACE
  6116. } ID3D12DeviceVtbl;
  6117. interface ID3D12Device {
  6118. CONST_VTBL ID3D12DeviceVtbl* lpVtbl;
  6119. };
  6120. #ifdef COBJMACROS
  6121. #ifndef WIDL_C_INLINE_WRAPPERS
  6122. /*** IUnknown methods ***/
  6123. #define ID3D12Device_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  6124. #define ID3D12Device_AddRef(This) (This)->lpVtbl->AddRef(This)
  6125. #define ID3D12Device_Release(This) (This)->lpVtbl->Release(This)
  6126. /*** ID3D12Object methods ***/
  6127. #define ID3D12Device_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  6128. #define ID3D12Device_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  6129. #define ID3D12Device_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  6130. #define ID3D12Device_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  6131. /*** ID3D12Device methods ***/
  6132. #define ID3D12Device_GetNodeCount(This) (This)->lpVtbl->GetNodeCount(This)
  6133. #define ID3D12Device_CreateCommandQueue(This,desc,riid,command_queue) (This)->lpVtbl->CreateCommandQueue(This,desc,riid,command_queue)
  6134. #define ID3D12Device_CreateCommandAllocator(This,type,riid,command_allocator) (This)->lpVtbl->CreateCommandAllocator(This,type,riid,command_allocator)
  6135. #define ID3D12Device_CreateGraphicsPipelineState(This,desc,riid,pipeline_state) (This)->lpVtbl->CreateGraphicsPipelineState(This,desc,riid,pipeline_state)
  6136. #define ID3D12Device_CreateComputePipelineState(This,desc,riid,pipeline_state) (This)->lpVtbl->CreateComputePipelineState(This,desc,riid,pipeline_state)
  6137. #define ID3D12Device_CreateCommandList(This,node_mask,type,command_allocator,initial_pipeline_state,riid,command_list) (This)->lpVtbl->CreateCommandList(This,node_mask,type,command_allocator,initial_pipeline_state,riid,command_list)
  6138. #define ID3D12Device_CheckFeatureSupport(This,feature,feature_data,feature_data_size) (This)->lpVtbl->CheckFeatureSupport(This,feature,feature_data,feature_data_size)
  6139. #define ID3D12Device_CreateDescriptorHeap(This,desc,riid,descriptor_heap) (This)->lpVtbl->CreateDescriptorHeap(This,desc,riid,descriptor_heap)
  6140. #define ID3D12Device_GetDescriptorHandleIncrementSize(This,descriptor_heap_type) (This)->lpVtbl->GetDescriptorHandleIncrementSize(This,descriptor_heap_type)
  6141. #define ID3D12Device_CreateRootSignature(This,node_mask,bytecode,bytecode_length,riid,root_signature) (This)->lpVtbl->CreateRootSignature(This,node_mask,bytecode,bytecode_length,riid,root_signature)
  6142. #define ID3D12Device_CreateConstantBufferView(This,desc,descriptor) (This)->lpVtbl->CreateConstantBufferView(This,desc,descriptor)
  6143. #define ID3D12Device_CreateShaderResourceView(This,resource,desc,descriptor) (This)->lpVtbl->CreateShaderResourceView(This,resource,desc,descriptor)
  6144. #define ID3D12Device_CreateUnorderedAccessView(This,resource,counter_resource,desc,descriptor) (This)->lpVtbl->CreateUnorderedAccessView(This,resource,counter_resource,desc,descriptor)
  6145. #define ID3D12Device_CreateRenderTargetView(This,resource,desc,descriptor) (This)->lpVtbl->CreateRenderTargetView(This,resource,desc,descriptor)
  6146. #define ID3D12Device_CreateDepthStencilView(This,resource,desc,descriptor) (This)->lpVtbl->CreateDepthStencilView(This,resource,desc,descriptor)
  6147. #define ID3D12Device_CreateSampler(This,desc,descriptor) (This)->lpVtbl->CreateSampler(This,desc,descriptor)
  6148. #define ID3D12Device_CopyDescriptors(This,dst_descriptor_range_count,dst_descriptor_range_offsets,dst_descriptor_range_sizes,src_descriptor_range_count,src_descriptor_range_offsets,src_descriptor_range_sizes,descriptor_heap_type) (This)->lpVtbl->CopyDescriptors(This,dst_descriptor_range_count,dst_descriptor_range_offsets,dst_descriptor_range_sizes,src_descriptor_range_count,src_descriptor_range_offsets,src_descriptor_range_sizes,descriptor_heap_type)
  6149. #define ID3D12Device_CopyDescriptorsSimple(This,descriptor_count,dst_descriptor_range_offset,src_descriptor_range_offset,descriptor_heap_type) (This)->lpVtbl->CopyDescriptorsSimple(This,descriptor_count,dst_descriptor_range_offset,src_descriptor_range_offset,descriptor_heap_type)
  6150. #define ID3D12Device_GetResourceAllocationInfo(This,visible_mask,reource_desc_count,resource_descs) ID3D12Device_GetResourceAllocationInfo_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  6151. #define ID3D12Device_GetCustomHeapProperties(This,node_mask,heap_type) ID3D12Device_GetCustomHeapProperties_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  6152. #define ID3D12Device_CreateCommittedResource(This,heap_properties,heap_flags,desc,initial_state,optimized_clear_value,riid,resource) (This)->lpVtbl->CreateCommittedResource(This,heap_properties,heap_flags,desc,initial_state,optimized_clear_value,riid,resource)
  6153. #define ID3D12Device_CreateHeap(This,desc,riid,heap) (This)->lpVtbl->CreateHeap(This,desc,riid,heap)
  6154. #define ID3D12Device_CreatePlacedResource(This,heap,heap_offset,desc,initial_state,optimized_clear_value,riid,resource) (This)->lpVtbl->CreatePlacedResource(This,heap,heap_offset,desc,initial_state,optimized_clear_value,riid,resource)
  6155. #define ID3D12Device_CreateReservedResource(This,desc,initial_state,optimized_clear_value,riid,resource) (This)->lpVtbl->CreateReservedResource(This,desc,initial_state,optimized_clear_value,riid,resource)
  6156. #define ID3D12Device_CreateSharedHandle(This,object,attributes,access,name,handle) (This)->lpVtbl->CreateSharedHandle(This,object,attributes,access,name,handle)
  6157. #define ID3D12Device_OpenSharedHandle(This,handle,riid,object) (This)->lpVtbl->OpenSharedHandle(This,handle,riid,object)
  6158. #define ID3D12Device_OpenSharedHandleByName(This,name,access,handle) (This)->lpVtbl->OpenSharedHandleByName(This,name,access,handle)
  6159. #define ID3D12Device_MakeResident(This,object_count,objects) (This)->lpVtbl->MakeResident(This,object_count,objects)
  6160. #define ID3D12Device_Evict(This,object_count,objects) (This)->lpVtbl->Evict(This,object_count,objects)
  6161. #define ID3D12Device_CreateFence(This,initial_value,flags,riid,fence) (This)->lpVtbl->CreateFence(This,initial_value,flags,riid,fence)
  6162. #define ID3D12Device_GetDeviceRemovedReason(This) (This)->lpVtbl->GetDeviceRemovedReason(This)
  6163. #define ID3D12Device_GetCopyableFootprints(This,desc,first_sub_resource,sub_resource_count,base_offset,layouts,row_count,row_size,total_bytes) (This)->lpVtbl->GetCopyableFootprints(This,desc,first_sub_resource,sub_resource_count,base_offset,layouts,row_count,row_size,total_bytes)
  6164. #define ID3D12Device_CreateQueryHeap(This,desc,riid,heap) (This)->lpVtbl->CreateQueryHeap(This,desc,riid,heap)
  6165. #define ID3D12Device_SetStablePowerState(This,enable) (This)->lpVtbl->SetStablePowerState(This,enable)
  6166. #define ID3D12Device_CreateCommandSignature(This,desc,root_signature,riid,command_signature) (This)->lpVtbl->CreateCommandSignature(This,desc,root_signature,riid,command_signature)
  6167. #define ID3D12Device_GetResourceTiling(This,resource,total_tile_count,packed_mip_info,standard_tile_shape,sub_resource_tiling_count,first_sub_resource_tiling,sub_resource_tilings) (This)->lpVtbl->GetResourceTiling(This,resource,total_tile_count,packed_mip_info,standard_tile_shape,sub_resource_tiling_count,first_sub_resource_tiling,sub_resource_tilings)
  6168. #define ID3D12Device_GetAdapterLuid(This) ID3D12Device_GetAdapterLuid_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  6169. #else
  6170. /*** IUnknown methods ***/
  6171. static FORCEINLINE HRESULT ID3D12Device_QueryInterface(ID3D12Device* This,REFIID riid,void **ppvObject) {
  6172. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  6173. }
  6174. static FORCEINLINE ULONG ID3D12Device_AddRef(ID3D12Device* This) {
  6175. return This->lpVtbl->AddRef(This);
  6176. }
  6177. static FORCEINLINE ULONG ID3D12Device_Release(ID3D12Device* This) {
  6178. return This->lpVtbl->Release(This);
  6179. }
  6180. /*** ID3D12Object methods ***/
  6181. static FORCEINLINE HRESULT ID3D12Device_GetPrivateData(ID3D12Device* This,REFGUID guid,UINT *data_size,void *data) {
  6182. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  6183. }
  6184. static FORCEINLINE HRESULT ID3D12Device_SetPrivateData(ID3D12Device* This,REFGUID guid,UINT data_size,const void *data) {
  6185. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  6186. }
  6187. static FORCEINLINE HRESULT ID3D12Device_SetPrivateDataInterface(ID3D12Device* This,REFGUID guid,const IUnknown *data) {
  6188. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  6189. }
  6190. static FORCEINLINE HRESULT ID3D12Device_SetName(ID3D12Device* This,const WCHAR *name) {
  6191. return This->lpVtbl->SetName(This,name);
  6192. }
  6193. /*** ID3D12Device methods ***/
  6194. static FORCEINLINE UINT ID3D12Device_GetNodeCount(ID3D12Device* This) {
  6195. return This->lpVtbl->GetNodeCount(This);
  6196. }
  6197. static FORCEINLINE HRESULT ID3D12Device_CreateCommandQueue(ID3D12Device* This,const D3D12_COMMAND_QUEUE_DESC *desc,REFIID riid,void **command_queue) {
  6198. return This->lpVtbl->CreateCommandQueue(This,desc,riid,command_queue);
  6199. }
  6200. static FORCEINLINE HRESULT ID3D12Device_CreateCommandAllocator(ID3D12Device* This,D3D12_COMMAND_LIST_TYPE type,REFIID riid,void **command_allocator) {
  6201. return This->lpVtbl->CreateCommandAllocator(This,type,riid,command_allocator);
  6202. }
  6203. static FORCEINLINE HRESULT ID3D12Device_CreateGraphicsPipelineState(ID3D12Device* This,const D3D12_GRAPHICS_PIPELINE_STATE_DESC *desc,REFIID riid,void **pipeline_state) {
  6204. return This->lpVtbl->CreateGraphicsPipelineState(This,desc,riid,pipeline_state);
  6205. }
  6206. static FORCEINLINE HRESULT ID3D12Device_CreateComputePipelineState(ID3D12Device* This,const D3D12_COMPUTE_PIPELINE_STATE_DESC *desc,REFIID riid,void **pipeline_state) {
  6207. return This->lpVtbl->CreateComputePipelineState(This,desc,riid,pipeline_state);
  6208. }
  6209. static FORCEINLINE HRESULT ID3D12Device_CreateCommandList(ID3D12Device* This,UINT node_mask,D3D12_COMMAND_LIST_TYPE type,ID3D12CommandAllocator *command_allocator,ID3D12PipelineState *initial_pipeline_state,REFIID riid,void **command_list) {
  6210. return This->lpVtbl->CreateCommandList(This,node_mask,type,command_allocator,initial_pipeline_state,riid,command_list);
  6211. }
  6212. static FORCEINLINE HRESULT ID3D12Device_CheckFeatureSupport(ID3D12Device* This,D3D12_FEATURE feature,void *feature_data,UINT feature_data_size) {
  6213. return This->lpVtbl->CheckFeatureSupport(This,feature,feature_data,feature_data_size);
  6214. }
  6215. static FORCEINLINE HRESULT ID3D12Device_CreateDescriptorHeap(ID3D12Device* This,const D3D12_DESCRIPTOR_HEAP_DESC *desc,REFIID riid,void **descriptor_heap) {
  6216. return This->lpVtbl->CreateDescriptorHeap(This,desc,riid,descriptor_heap);
  6217. }
  6218. static FORCEINLINE UINT ID3D12Device_GetDescriptorHandleIncrementSize(ID3D12Device* This,D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type) {
  6219. return This->lpVtbl->GetDescriptorHandleIncrementSize(This,descriptor_heap_type);
  6220. }
  6221. static FORCEINLINE HRESULT ID3D12Device_CreateRootSignature(ID3D12Device* This,UINT node_mask,const void *bytecode,SIZE_T bytecode_length,REFIID riid,void **root_signature) {
  6222. return This->lpVtbl->CreateRootSignature(This,node_mask,bytecode,bytecode_length,riid,root_signature);
  6223. }
  6224. static FORCEINLINE void ID3D12Device_CreateConstantBufferView(ID3D12Device* This,const D3D12_CONSTANT_BUFFER_VIEW_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6225. This->lpVtbl->CreateConstantBufferView(This,desc,descriptor);
  6226. }
  6227. static FORCEINLINE void ID3D12Device_CreateShaderResourceView(ID3D12Device* This,ID3D12Resource *resource,const D3D12_SHADER_RESOURCE_VIEW_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6228. This->lpVtbl->CreateShaderResourceView(This,resource,desc,descriptor);
  6229. }
  6230. static FORCEINLINE void ID3D12Device_CreateUnorderedAccessView(ID3D12Device* This,ID3D12Resource *resource,ID3D12Resource *counter_resource,const D3D12_UNORDERED_ACCESS_VIEW_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6231. This->lpVtbl->CreateUnorderedAccessView(This,resource,counter_resource,desc,descriptor);
  6232. }
  6233. static FORCEINLINE void ID3D12Device_CreateRenderTargetView(ID3D12Device* This,ID3D12Resource *resource,const D3D12_RENDER_TARGET_VIEW_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6234. This->lpVtbl->CreateRenderTargetView(This,resource,desc,descriptor);
  6235. }
  6236. static FORCEINLINE void ID3D12Device_CreateDepthStencilView(ID3D12Device* This,ID3D12Resource *resource,const D3D12_DEPTH_STENCIL_VIEW_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6237. This->lpVtbl->CreateDepthStencilView(This,resource,desc,descriptor);
  6238. }
  6239. static FORCEINLINE void ID3D12Device_CreateSampler(ID3D12Device* This,const D3D12_SAMPLER_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6240. This->lpVtbl->CreateSampler(This,desc,descriptor);
  6241. }
  6242. static FORCEINLINE void ID3D12Device_CopyDescriptors(ID3D12Device* This,UINT dst_descriptor_range_count,const D3D12_CPU_DESCRIPTOR_HANDLE *dst_descriptor_range_offsets,const UINT *dst_descriptor_range_sizes,UINT src_descriptor_range_count,const D3D12_CPU_DESCRIPTOR_HANDLE *src_descriptor_range_offsets,const UINT *src_descriptor_range_sizes,D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type) {
  6243. This->lpVtbl->CopyDescriptors(This,dst_descriptor_range_count,dst_descriptor_range_offsets,dst_descriptor_range_sizes,src_descriptor_range_count,src_descriptor_range_offsets,src_descriptor_range_sizes,descriptor_heap_type);
  6244. }
  6245. static FORCEINLINE void ID3D12Device_CopyDescriptorsSimple(ID3D12Device* This,UINT descriptor_count,const D3D12_CPU_DESCRIPTOR_HANDLE dst_descriptor_range_offset,const D3D12_CPU_DESCRIPTOR_HANDLE src_descriptor_range_offset,D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type) {
  6246. This->lpVtbl->CopyDescriptorsSimple(This,descriptor_count,dst_descriptor_range_offset,src_descriptor_range_offset,descriptor_heap_type);
  6247. }
  6248. static FORCEINLINE D3D12_RESOURCE_ALLOCATION_INFO ID3D12Device_GetResourceAllocationInfo(ID3D12Device* This,UINT visible_mask,UINT reource_desc_count,const D3D12_RESOURCE_DESC *resource_descs) {
  6249. D3D12_RESOURCE_ALLOCATION_INFO __ret;
  6250. return *This->lpVtbl->GetResourceAllocationInfo(This,&__ret,visible_mask,reource_desc_count,resource_descs);
  6251. }
  6252. static FORCEINLINE D3D12_HEAP_PROPERTIES ID3D12Device_GetCustomHeapProperties(ID3D12Device* This,UINT node_mask,D3D12_HEAP_TYPE heap_type) {
  6253. D3D12_HEAP_PROPERTIES __ret;
  6254. return *This->lpVtbl->GetCustomHeapProperties(This,&__ret,node_mask,heap_type);
  6255. }
  6256. static FORCEINLINE HRESULT ID3D12Device_CreateCommittedResource(ID3D12Device* This,const D3D12_HEAP_PROPERTIES *heap_properties,D3D12_HEAP_FLAGS heap_flags,const D3D12_RESOURCE_DESC *desc,D3D12_RESOURCE_STATES initial_state,const D3D12_CLEAR_VALUE *optimized_clear_value,REFIID riid,void **resource) {
  6257. return This->lpVtbl->CreateCommittedResource(This,heap_properties,heap_flags,desc,initial_state,optimized_clear_value,riid,resource);
  6258. }
  6259. static FORCEINLINE HRESULT ID3D12Device_CreateHeap(ID3D12Device* This,const D3D12_HEAP_DESC *desc,REFIID riid,void **heap) {
  6260. return This->lpVtbl->CreateHeap(This,desc,riid,heap);
  6261. }
  6262. static FORCEINLINE HRESULT ID3D12Device_CreatePlacedResource(ID3D12Device* This,ID3D12Heap *heap,UINT64 heap_offset,const D3D12_RESOURCE_DESC *desc,D3D12_RESOURCE_STATES initial_state,const D3D12_CLEAR_VALUE *optimized_clear_value,REFIID riid,void **resource) {
  6263. return This->lpVtbl->CreatePlacedResource(This,heap,heap_offset,desc,initial_state,optimized_clear_value,riid,resource);
  6264. }
  6265. static FORCEINLINE HRESULT ID3D12Device_CreateReservedResource(ID3D12Device* This,const D3D12_RESOURCE_DESC *desc,D3D12_RESOURCE_STATES initial_state,const D3D12_CLEAR_VALUE *optimized_clear_value,REFIID riid,void **resource) {
  6266. return This->lpVtbl->CreateReservedResource(This,desc,initial_state,optimized_clear_value,riid,resource);
  6267. }
  6268. static FORCEINLINE HRESULT ID3D12Device_CreateSharedHandle(ID3D12Device* This,ID3D12DeviceChild *object,const SECURITY_ATTRIBUTES *attributes,DWORD access,const WCHAR *name,HANDLE *handle) {
  6269. return This->lpVtbl->CreateSharedHandle(This,object,attributes,access,name,handle);
  6270. }
  6271. static FORCEINLINE HRESULT ID3D12Device_OpenSharedHandle(ID3D12Device* This,HANDLE handle,REFIID riid,void **object) {
  6272. return This->lpVtbl->OpenSharedHandle(This,handle,riid,object);
  6273. }
  6274. static FORCEINLINE HRESULT ID3D12Device_OpenSharedHandleByName(ID3D12Device* This,const WCHAR *name,DWORD access,HANDLE *handle) {
  6275. return This->lpVtbl->OpenSharedHandleByName(This,name,access,handle);
  6276. }
  6277. static FORCEINLINE HRESULT ID3D12Device_MakeResident(ID3D12Device* This,UINT object_count,ID3D12Pageable *const *objects) {
  6278. return This->lpVtbl->MakeResident(This,object_count,objects);
  6279. }
  6280. static FORCEINLINE HRESULT ID3D12Device_Evict(ID3D12Device* This,UINT object_count,ID3D12Pageable *const *objects) {
  6281. return This->lpVtbl->Evict(This,object_count,objects);
  6282. }
  6283. static FORCEINLINE HRESULT ID3D12Device_CreateFence(ID3D12Device* This,UINT64 initial_value,D3D12_FENCE_FLAGS flags,REFIID riid,void **fence) {
  6284. return This->lpVtbl->CreateFence(This,initial_value,flags,riid,fence);
  6285. }
  6286. static FORCEINLINE HRESULT ID3D12Device_GetDeviceRemovedReason(ID3D12Device* This) {
  6287. return This->lpVtbl->GetDeviceRemovedReason(This);
  6288. }
  6289. static FORCEINLINE void ID3D12Device_GetCopyableFootprints(ID3D12Device* This,const D3D12_RESOURCE_DESC *desc,UINT first_sub_resource,UINT sub_resource_count,UINT64 base_offset,D3D12_PLACED_SUBRESOURCE_FOOTPRINT *layouts,UINT *row_count,UINT64 *row_size,UINT64 *total_bytes) {
  6290. This->lpVtbl->GetCopyableFootprints(This,desc,first_sub_resource,sub_resource_count,base_offset,layouts,row_count,row_size,total_bytes);
  6291. }
  6292. static FORCEINLINE HRESULT ID3D12Device_CreateQueryHeap(ID3D12Device* This,const D3D12_QUERY_HEAP_DESC *desc,REFIID riid,void **heap) {
  6293. return This->lpVtbl->CreateQueryHeap(This,desc,riid,heap);
  6294. }
  6295. static FORCEINLINE HRESULT ID3D12Device_SetStablePowerState(ID3D12Device* This,WINBOOL enable) {
  6296. return This->lpVtbl->SetStablePowerState(This,enable);
  6297. }
  6298. static FORCEINLINE HRESULT ID3D12Device_CreateCommandSignature(ID3D12Device* This,const D3D12_COMMAND_SIGNATURE_DESC *desc,ID3D12RootSignature *root_signature,REFIID riid,void **command_signature) {
  6299. return This->lpVtbl->CreateCommandSignature(This,desc,root_signature,riid,command_signature);
  6300. }
  6301. static FORCEINLINE void ID3D12Device_GetResourceTiling(ID3D12Device* This,ID3D12Resource *resource,UINT *total_tile_count,D3D12_PACKED_MIP_INFO *packed_mip_info,D3D12_TILE_SHAPE *standard_tile_shape,UINT *sub_resource_tiling_count,UINT first_sub_resource_tiling,D3D12_SUBRESOURCE_TILING *sub_resource_tilings) {
  6302. This->lpVtbl->GetResourceTiling(This,resource,total_tile_count,packed_mip_info,standard_tile_shape,sub_resource_tiling_count,first_sub_resource_tiling,sub_resource_tilings);
  6303. }
  6304. static FORCEINLINE LUID ID3D12Device_GetAdapterLuid(ID3D12Device* This) {
  6305. LUID __ret;
  6306. return *This->lpVtbl->GetAdapterLuid(This,&__ret);
  6307. }
  6308. #endif
  6309. #endif
  6310. #endif
  6311. #endif /* __ID3D12Device_INTERFACE_DEFINED__ */
  6312. /*****************************************************************************
  6313. * ID3D12Device1 interface
  6314. */
  6315. #ifndef __ID3D12Device1_INTERFACE_DEFINED__
  6316. #define __ID3D12Device1_INTERFACE_DEFINED__
  6317. DEFINE_GUID(IID_ID3D12Device1, 0x77acce80, 0x638e, 0x4e65, 0x88,0x95, 0xc1,0xf2,0x33,0x86,0x86,0x3e);
  6318. #if defined(__cplusplus) && !defined(CINTERFACE)
  6319. MIDL_INTERFACE("77acce80-638e-4e65-8895-c1f23386863e")
  6320. ID3D12Device1 : public ID3D12Device
  6321. {
  6322. virtual HRESULT STDMETHODCALLTYPE CreatePipelineLibrary(
  6323. const void *blob,
  6324. SIZE_T blob_size,
  6325. REFIID iid,
  6326. void **lib) = 0;
  6327. virtual HRESULT STDMETHODCALLTYPE SetEventOnMultipleFenceCompletion(
  6328. ID3D12Fence *const *fences,
  6329. const UINT64 *values,
  6330. UINT fence_count,
  6331. D3D12_MULTIPLE_FENCE_WAIT_FLAGS flags,
  6332. HANDLE event) = 0;
  6333. virtual HRESULT STDMETHODCALLTYPE SetResidencyPriority(
  6334. UINT object_count,
  6335. ID3D12Pageable *const *objects,
  6336. const D3D12_RESIDENCY_PRIORITY *priorities) = 0;
  6337. };
  6338. #ifdef __CRT_UUID_DECL
  6339. __CRT_UUID_DECL(ID3D12Device1, 0x77acce80, 0x638e, 0x4e65, 0x88,0x95, 0xc1,0xf2,0x33,0x86,0x86,0x3e)
  6340. #endif
  6341. #else
  6342. typedef struct ID3D12Device1Vtbl {
  6343. BEGIN_INTERFACE
  6344. /*** IUnknown methods ***/
  6345. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  6346. ID3D12Device1 *This,
  6347. REFIID riid,
  6348. void **ppvObject);
  6349. ULONG (STDMETHODCALLTYPE *AddRef)(
  6350. ID3D12Device1 *This);
  6351. ULONG (STDMETHODCALLTYPE *Release)(
  6352. ID3D12Device1 *This);
  6353. /*** ID3D12Object methods ***/
  6354. HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
  6355. ID3D12Device1 *This,
  6356. REFGUID guid,
  6357. UINT *data_size,
  6358. void *data);
  6359. HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
  6360. ID3D12Device1 *This,
  6361. REFGUID guid,
  6362. UINT data_size,
  6363. const void *data);
  6364. HRESULT (STDMETHODCALLTYPE *SetPrivateDataInterface)(
  6365. ID3D12Device1 *This,
  6366. REFGUID guid,
  6367. const IUnknown *data);
  6368. HRESULT (STDMETHODCALLTYPE *SetName)(
  6369. ID3D12Device1 *This,
  6370. const WCHAR *name);
  6371. /*** ID3D12Device methods ***/
  6372. UINT (STDMETHODCALLTYPE *GetNodeCount)(
  6373. ID3D12Device1 *This);
  6374. HRESULT (STDMETHODCALLTYPE *CreateCommandQueue)(
  6375. ID3D12Device1 *This,
  6376. const D3D12_COMMAND_QUEUE_DESC *desc,
  6377. REFIID riid,
  6378. void **command_queue);
  6379. HRESULT (STDMETHODCALLTYPE *CreateCommandAllocator)(
  6380. ID3D12Device1 *This,
  6381. D3D12_COMMAND_LIST_TYPE type,
  6382. REFIID riid,
  6383. void **command_allocator);
  6384. HRESULT (STDMETHODCALLTYPE *CreateGraphicsPipelineState)(
  6385. ID3D12Device1 *This,
  6386. const D3D12_GRAPHICS_PIPELINE_STATE_DESC *desc,
  6387. REFIID riid,
  6388. void **pipeline_state);
  6389. HRESULT (STDMETHODCALLTYPE *CreateComputePipelineState)(
  6390. ID3D12Device1 *This,
  6391. const D3D12_COMPUTE_PIPELINE_STATE_DESC *desc,
  6392. REFIID riid,
  6393. void **pipeline_state);
  6394. HRESULT (STDMETHODCALLTYPE *CreateCommandList)(
  6395. ID3D12Device1 *This,
  6396. UINT node_mask,
  6397. D3D12_COMMAND_LIST_TYPE type,
  6398. ID3D12CommandAllocator *command_allocator,
  6399. ID3D12PipelineState *initial_pipeline_state,
  6400. REFIID riid,
  6401. void **command_list);
  6402. HRESULT (STDMETHODCALLTYPE *CheckFeatureSupport)(
  6403. ID3D12Device1 *This,
  6404. D3D12_FEATURE feature,
  6405. void *feature_data,
  6406. UINT feature_data_size);
  6407. HRESULT (STDMETHODCALLTYPE *CreateDescriptorHeap)(
  6408. ID3D12Device1 *This,
  6409. const D3D12_DESCRIPTOR_HEAP_DESC *desc,
  6410. REFIID riid,
  6411. void **descriptor_heap);
  6412. UINT (STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize)(
  6413. ID3D12Device1 *This,
  6414. D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type);
  6415. HRESULT (STDMETHODCALLTYPE *CreateRootSignature)(
  6416. ID3D12Device1 *This,
  6417. UINT node_mask,
  6418. const void *bytecode,
  6419. SIZE_T bytecode_length,
  6420. REFIID riid,
  6421. void **root_signature);
  6422. void (STDMETHODCALLTYPE *CreateConstantBufferView)(
  6423. ID3D12Device1 *This,
  6424. const D3D12_CONSTANT_BUFFER_VIEW_DESC *desc,
  6425. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  6426. void (STDMETHODCALLTYPE *CreateShaderResourceView)(
  6427. ID3D12Device1 *This,
  6428. ID3D12Resource *resource,
  6429. const D3D12_SHADER_RESOURCE_VIEW_DESC *desc,
  6430. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  6431. void (STDMETHODCALLTYPE *CreateUnorderedAccessView)(
  6432. ID3D12Device1 *This,
  6433. ID3D12Resource *resource,
  6434. ID3D12Resource *counter_resource,
  6435. const D3D12_UNORDERED_ACCESS_VIEW_DESC *desc,
  6436. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  6437. void (STDMETHODCALLTYPE *CreateRenderTargetView)(
  6438. ID3D12Device1 *This,
  6439. ID3D12Resource *resource,
  6440. const D3D12_RENDER_TARGET_VIEW_DESC *desc,
  6441. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  6442. void (STDMETHODCALLTYPE *CreateDepthStencilView)(
  6443. ID3D12Device1 *This,
  6444. ID3D12Resource *resource,
  6445. const D3D12_DEPTH_STENCIL_VIEW_DESC *desc,
  6446. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  6447. void (STDMETHODCALLTYPE *CreateSampler)(
  6448. ID3D12Device1 *This,
  6449. const D3D12_SAMPLER_DESC *desc,
  6450. D3D12_CPU_DESCRIPTOR_HANDLE descriptor);
  6451. void (STDMETHODCALLTYPE *CopyDescriptors)(
  6452. ID3D12Device1 *This,
  6453. UINT dst_descriptor_range_count,
  6454. const D3D12_CPU_DESCRIPTOR_HANDLE *dst_descriptor_range_offsets,
  6455. const UINT *dst_descriptor_range_sizes,
  6456. UINT src_descriptor_range_count,
  6457. const D3D12_CPU_DESCRIPTOR_HANDLE *src_descriptor_range_offsets,
  6458. const UINT *src_descriptor_range_sizes,
  6459. D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type);
  6460. void (STDMETHODCALLTYPE *CopyDescriptorsSimple)(
  6461. ID3D12Device1 *This,
  6462. UINT descriptor_count,
  6463. const D3D12_CPU_DESCRIPTOR_HANDLE dst_descriptor_range_offset,
  6464. const D3D12_CPU_DESCRIPTOR_HANDLE src_descriptor_range_offset,
  6465. D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type);
  6466. D3D12_RESOURCE_ALLOCATION_INFO * (STDMETHODCALLTYPE *GetResourceAllocationInfo)(
  6467. ID3D12Device1 *This,
  6468. D3D12_RESOURCE_ALLOCATION_INFO *__ret,
  6469. UINT visible_mask,
  6470. UINT reource_desc_count,
  6471. const D3D12_RESOURCE_DESC *resource_descs);
  6472. D3D12_HEAP_PROPERTIES * (STDMETHODCALLTYPE *GetCustomHeapProperties)(
  6473. ID3D12Device1 *This,
  6474. D3D12_HEAP_PROPERTIES *__ret,
  6475. UINT node_mask,
  6476. D3D12_HEAP_TYPE heap_type);
  6477. HRESULT (STDMETHODCALLTYPE *CreateCommittedResource)(
  6478. ID3D12Device1 *This,
  6479. const D3D12_HEAP_PROPERTIES *heap_properties,
  6480. D3D12_HEAP_FLAGS heap_flags,
  6481. const D3D12_RESOURCE_DESC *desc,
  6482. D3D12_RESOURCE_STATES initial_state,
  6483. const D3D12_CLEAR_VALUE *optimized_clear_value,
  6484. REFIID riid,
  6485. void **resource);
  6486. HRESULT (STDMETHODCALLTYPE *CreateHeap)(
  6487. ID3D12Device1 *This,
  6488. const D3D12_HEAP_DESC *desc,
  6489. REFIID riid,
  6490. void **heap);
  6491. HRESULT (STDMETHODCALLTYPE *CreatePlacedResource)(
  6492. ID3D12Device1 *This,
  6493. ID3D12Heap *heap,
  6494. UINT64 heap_offset,
  6495. const D3D12_RESOURCE_DESC *desc,
  6496. D3D12_RESOURCE_STATES initial_state,
  6497. const D3D12_CLEAR_VALUE *optimized_clear_value,
  6498. REFIID riid,
  6499. void **resource);
  6500. HRESULT (STDMETHODCALLTYPE *CreateReservedResource)(
  6501. ID3D12Device1 *This,
  6502. const D3D12_RESOURCE_DESC *desc,
  6503. D3D12_RESOURCE_STATES initial_state,
  6504. const D3D12_CLEAR_VALUE *optimized_clear_value,
  6505. REFIID riid,
  6506. void **resource);
  6507. HRESULT (STDMETHODCALLTYPE *CreateSharedHandle)(
  6508. ID3D12Device1 *This,
  6509. ID3D12DeviceChild *object,
  6510. const SECURITY_ATTRIBUTES *attributes,
  6511. DWORD access,
  6512. const WCHAR *name,
  6513. HANDLE *handle);
  6514. HRESULT (STDMETHODCALLTYPE *OpenSharedHandle)(
  6515. ID3D12Device1 *This,
  6516. HANDLE handle,
  6517. REFIID riid,
  6518. void **object);
  6519. HRESULT (STDMETHODCALLTYPE *OpenSharedHandleByName)(
  6520. ID3D12Device1 *This,
  6521. const WCHAR *name,
  6522. DWORD access,
  6523. HANDLE *handle);
  6524. HRESULT (STDMETHODCALLTYPE *MakeResident)(
  6525. ID3D12Device1 *This,
  6526. UINT object_count,
  6527. ID3D12Pageable *const *objects);
  6528. HRESULT (STDMETHODCALLTYPE *Evict)(
  6529. ID3D12Device1 *This,
  6530. UINT object_count,
  6531. ID3D12Pageable *const *objects);
  6532. HRESULT (STDMETHODCALLTYPE *CreateFence)(
  6533. ID3D12Device1 *This,
  6534. UINT64 initial_value,
  6535. D3D12_FENCE_FLAGS flags,
  6536. REFIID riid,
  6537. void **fence);
  6538. HRESULT (STDMETHODCALLTYPE *GetDeviceRemovedReason)(
  6539. ID3D12Device1 *This);
  6540. void (STDMETHODCALLTYPE *GetCopyableFootprints)(
  6541. ID3D12Device1 *This,
  6542. const D3D12_RESOURCE_DESC *desc,
  6543. UINT first_sub_resource,
  6544. UINT sub_resource_count,
  6545. UINT64 base_offset,
  6546. D3D12_PLACED_SUBRESOURCE_FOOTPRINT *layouts,
  6547. UINT *row_count,
  6548. UINT64 *row_size,
  6549. UINT64 *total_bytes);
  6550. HRESULT (STDMETHODCALLTYPE *CreateQueryHeap)(
  6551. ID3D12Device1 *This,
  6552. const D3D12_QUERY_HEAP_DESC *desc,
  6553. REFIID riid,
  6554. void **heap);
  6555. HRESULT (STDMETHODCALLTYPE *SetStablePowerState)(
  6556. ID3D12Device1 *This,
  6557. WINBOOL enable);
  6558. HRESULT (STDMETHODCALLTYPE *CreateCommandSignature)(
  6559. ID3D12Device1 *This,
  6560. const D3D12_COMMAND_SIGNATURE_DESC *desc,
  6561. ID3D12RootSignature *root_signature,
  6562. REFIID riid,
  6563. void **command_signature);
  6564. void (STDMETHODCALLTYPE *GetResourceTiling)(
  6565. ID3D12Device1 *This,
  6566. ID3D12Resource *resource,
  6567. UINT *total_tile_count,
  6568. D3D12_PACKED_MIP_INFO *packed_mip_info,
  6569. D3D12_TILE_SHAPE *standard_tile_shape,
  6570. UINT *sub_resource_tiling_count,
  6571. UINT first_sub_resource_tiling,
  6572. D3D12_SUBRESOURCE_TILING *sub_resource_tilings);
  6573. LUID * (STDMETHODCALLTYPE *GetAdapterLuid)(
  6574. ID3D12Device1 *This,
  6575. LUID *__ret);
  6576. /*** ID3D12Device1 methods ***/
  6577. HRESULT (STDMETHODCALLTYPE *CreatePipelineLibrary)(
  6578. ID3D12Device1 *This,
  6579. const void *blob,
  6580. SIZE_T blob_size,
  6581. REFIID iid,
  6582. void **lib);
  6583. HRESULT (STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion)(
  6584. ID3D12Device1 *This,
  6585. ID3D12Fence *const *fences,
  6586. const UINT64 *values,
  6587. UINT fence_count,
  6588. D3D12_MULTIPLE_FENCE_WAIT_FLAGS flags,
  6589. HANDLE event);
  6590. HRESULT (STDMETHODCALLTYPE *SetResidencyPriority)(
  6591. ID3D12Device1 *This,
  6592. UINT object_count,
  6593. ID3D12Pageable *const *objects,
  6594. const D3D12_RESIDENCY_PRIORITY *priorities);
  6595. END_INTERFACE
  6596. } ID3D12Device1Vtbl;
  6597. interface ID3D12Device1 {
  6598. CONST_VTBL ID3D12Device1Vtbl* lpVtbl;
  6599. };
  6600. #ifdef COBJMACROS
  6601. #ifndef WIDL_C_INLINE_WRAPPERS
  6602. /*** IUnknown methods ***/
  6603. #define ID3D12Device1_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  6604. #define ID3D12Device1_AddRef(This) (This)->lpVtbl->AddRef(This)
  6605. #define ID3D12Device1_Release(This) (This)->lpVtbl->Release(This)
  6606. /*** ID3D12Object methods ***/
  6607. #define ID3D12Device1_GetPrivateData(This,guid,data_size,data) (This)->lpVtbl->GetPrivateData(This,guid,data_size,data)
  6608. #define ID3D12Device1_SetPrivateData(This,guid,data_size,data) (This)->lpVtbl->SetPrivateData(This,guid,data_size,data)
  6609. #define ID3D12Device1_SetPrivateDataInterface(This,guid,data) (This)->lpVtbl->SetPrivateDataInterface(This,guid,data)
  6610. #define ID3D12Device1_SetName(This,name) (This)->lpVtbl->SetName(This,name)
  6611. /*** ID3D12Device methods ***/
  6612. #define ID3D12Device1_GetNodeCount(This) (This)->lpVtbl->GetNodeCount(This)
  6613. #define ID3D12Device1_CreateCommandQueue(This,desc,riid,command_queue) (This)->lpVtbl->CreateCommandQueue(This,desc,riid,command_queue)
  6614. #define ID3D12Device1_CreateCommandAllocator(This,type,riid,command_allocator) (This)->lpVtbl->CreateCommandAllocator(This,type,riid,command_allocator)
  6615. #define ID3D12Device1_CreateGraphicsPipelineState(This,desc,riid,pipeline_state) (This)->lpVtbl->CreateGraphicsPipelineState(This,desc,riid,pipeline_state)
  6616. #define ID3D12Device1_CreateComputePipelineState(This,desc,riid,pipeline_state) (This)->lpVtbl->CreateComputePipelineState(This,desc,riid,pipeline_state)
  6617. #define ID3D12Device1_CreateCommandList(This,node_mask,type,command_allocator,initial_pipeline_state,riid,command_list) (This)->lpVtbl->CreateCommandList(This,node_mask,type,command_allocator,initial_pipeline_state,riid,command_list)
  6618. #define ID3D12Device1_CheckFeatureSupport(This,feature,feature_data,feature_data_size) (This)->lpVtbl->CheckFeatureSupport(This,feature,feature_data,feature_data_size)
  6619. #define ID3D12Device1_CreateDescriptorHeap(This,desc,riid,descriptor_heap) (This)->lpVtbl->CreateDescriptorHeap(This,desc,riid,descriptor_heap)
  6620. #define ID3D12Device1_GetDescriptorHandleIncrementSize(This,descriptor_heap_type) (This)->lpVtbl->GetDescriptorHandleIncrementSize(This,descriptor_heap_type)
  6621. #define ID3D12Device1_CreateRootSignature(This,node_mask,bytecode,bytecode_length,riid,root_signature) (This)->lpVtbl->CreateRootSignature(This,node_mask,bytecode,bytecode_length,riid,root_signature)
  6622. #define ID3D12Device1_CreateConstantBufferView(This,desc,descriptor) (This)->lpVtbl->CreateConstantBufferView(This,desc,descriptor)
  6623. #define ID3D12Device1_CreateShaderResourceView(This,resource,desc,descriptor) (This)->lpVtbl->CreateShaderResourceView(This,resource,desc,descriptor)
  6624. #define ID3D12Device1_CreateUnorderedAccessView(This,resource,counter_resource,desc,descriptor) (This)->lpVtbl->CreateUnorderedAccessView(This,resource,counter_resource,desc,descriptor)
  6625. #define ID3D12Device1_CreateRenderTargetView(This,resource,desc,descriptor) (This)->lpVtbl->CreateRenderTargetView(This,resource,desc,descriptor)
  6626. #define ID3D12Device1_CreateDepthStencilView(This,resource,desc,descriptor) (This)->lpVtbl->CreateDepthStencilView(This,resource,desc,descriptor)
  6627. #define ID3D12Device1_CreateSampler(This,desc,descriptor) (This)->lpVtbl->CreateSampler(This,desc,descriptor)
  6628. #define ID3D12Device1_CopyDescriptors(This,dst_descriptor_range_count,dst_descriptor_range_offsets,dst_descriptor_range_sizes,src_descriptor_range_count,src_descriptor_range_offsets,src_descriptor_range_sizes,descriptor_heap_type) (This)->lpVtbl->CopyDescriptors(This,dst_descriptor_range_count,dst_descriptor_range_offsets,dst_descriptor_range_sizes,src_descriptor_range_count,src_descriptor_range_offsets,src_descriptor_range_sizes,descriptor_heap_type)
  6629. #define ID3D12Device1_CopyDescriptorsSimple(This,descriptor_count,dst_descriptor_range_offset,src_descriptor_range_offset,descriptor_heap_type) (This)->lpVtbl->CopyDescriptorsSimple(This,descriptor_count,dst_descriptor_range_offset,src_descriptor_range_offset,descriptor_heap_type)
  6630. #define ID3D12Device1_GetResourceAllocationInfo(This,visible_mask,reource_desc_count,resource_descs) ID3D12Device1_GetResourceAllocationInfo_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  6631. #define ID3D12Device1_GetCustomHeapProperties(This,node_mask,heap_type) ID3D12Device1_GetCustomHeapProperties_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  6632. #define ID3D12Device1_CreateCommittedResource(This,heap_properties,heap_flags,desc,initial_state,optimized_clear_value,riid,resource) (This)->lpVtbl->CreateCommittedResource(This,heap_properties,heap_flags,desc,initial_state,optimized_clear_value,riid,resource)
  6633. #define ID3D12Device1_CreateHeap(This,desc,riid,heap) (This)->lpVtbl->CreateHeap(This,desc,riid,heap)
  6634. #define ID3D12Device1_CreatePlacedResource(This,heap,heap_offset,desc,initial_state,optimized_clear_value,riid,resource) (This)->lpVtbl->CreatePlacedResource(This,heap,heap_offset,desc,initial_state,optimized_clear_value,riid,resource)
  6635. #define ID3D12Device1_CreateReservedResource(This,desc,initial_state,optimized_clear_value,riid,resource) (This)->lpVtbl->CreateReservedResource(This,desc,initial_state,optimized_clear_value,riid,resource)
  6636. #define ID3D12Device1_CreateSharedHandle(This,object,attributes,access,name,handle) (This)->lpVtbl->CreateSharedHandle(This,object,attributes,access,name,handle)
  6637. #define ID3D12Device1_OpenSharedHandle(This,handle,riid,object) (This)->lpVtbl->OpenSharedHandle(This,handle,riid,object)
  6638. #define ID3D12Device1_OpenSharedHandleByName(This,name,access,handle) (This)->lpVtbl->OpenSharedHandleByName(This,name,access,handle)
  6639. #define ID3D12Device1_MakeResident(This,object_count,objects) (This)->lpVtbl->MakeResident(This,object_count,objects)
  6640. #define ID3D12Device1_Evict(This,object_count,objects) (This)->lpVtbl->Evict(This,object_count,objects)
  6641. #define ID3D12Device1_CreateFence(This,initial_value,flags,riid,fence) (This)->lpVtbl->CreateFence(This,initial_value,flags,riid,fence)
  6642. #define ID3D12Device1_GetDeviceRemovedReason(This) (This)->lpVtbl->GetDeviceRemovedReason(This)
  6643. #define ID3D12Device1_GetCopyableFootprints(This,desc,first_sub_resource,sub_resource_count,base_offset,layouts,row_count,row_size,total_bytes) (This)->lpVtbl->GetCopyableFootprints(This,desc,first_sub_resource,sub_resource_count,base_offset,layouts,row_count,row_size,total_bytes)
  6644. #define ID3D12Device1_CreateQueryHeap(This,desc,riid,heap) (This)->lpVtbl->CreateQueryHeap(This,desc,riid,heap)
  6645. #define ID3D12Device1_SetStablePowerState(This,enable) (This)->lpVtbl->SetStablePowerState(This,enable)
  6646. #define ID3D12Device1_CreateCommandSignature(This,desc,root_signature,riid,command_signature) (This)->lpVtbl->CreateCommandSignature(This,desc,root_signature,riid,command_signature)
  6647. #define ID3D12Device1_GetResourceTiling(This,resource,total_tile_count,packed_mip_info,standard_tile_shape,sub_resource_tiling_count,first_sub_resource_tiling,sub_resource_tilings) (This)->lpVtbl->GetResourceTiling(This,resource,total_tile_count,packed_mip_info,standard_tile_shape,sub_resource_tiling_count,first_sub_resource_tiling,sub_resource_tilings)
  6648. #define ID3D12Device1_GetAdapterLuid(This) ID3D12Device1_GetAdapterLuid_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  6649. /*** ID3D12Device1 methods ***/
  6650. #define ID3D12Device1_CreatePipelineLibrary(This,blob,blob_size,iid,lib) (This)->lpVtbl->CreatePipelineLibrary(This,blob,blob_size,iid,lib)
  6651. #define ID3D12Device1_SetEventOnMultipleFenceCompletion(This,fences,values,fence_count,flags,event) (This)->lpVtbl->SetEventOnMultipleFenceCompletion(This,fences,values,fence_count,flags,event)
  6652. #define ID3D12Device1_SetResidencyPriority(This,object_count,objects,priorities) (This)->lpVtbl->SetResidencyPriority(This,object_count,objects,priorities)
  6653. #else
  6654. /*** IUnknown methods ***/
  6655. static FORCEINLINE HRESULT ID3D12Device1_QueryInterface(ID3D12Device1* This,REFIID riid,void **ppvObject) {
  6656. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  6657. }
  6658. static FORCEINLINE ULONG ID3D12Device1_AddRef(ID3D12Device1* This) {
  6659. return This->lpVtbl->AddRef(This);
  6660. }
  6661. static FORCEINLINE ULONG ID3D12Device1_Release(ID3D12Device1* This) {
  6662. return This->lpVtbl->Release(This);
  6663. }
  6664. /*** ID3D12Object methods ***/
  6665. static FORCEINLINE HRESULT ID3D12Device1_GetPrivateData(ID3D12Device1* This,REFGUID guid,UINT *data_size,void *data) {
  6666. return This->lpVtbl->GetPrivateData(This,guid,data_size,data);
  6667. }
  6668. static FORCEINLINE HRESULT ID3D12Device1_SetPrivateData(ID3D12Device1* This,REFGUID guid,UINT data_size,const void *data) {
  6669. return This->lpVtbl->SetPrivateData(This,guid,data_size,data);
  6670. }
  6671. static FORCEINLINE HRESULT ID3D12Device1_SetPrivateDataInterface(ID3D12Device1* This,REFGUID guid,const IUnknown *data) {
  6672. return This->lpVtbl->SetPrivateDataInterface(This,guid,data);
  6673. }
  6674. static FORCEINLINE HRESULT ID3D12Device1_SetName(ID3D12Device1* This,const WCHAR *name) {
  6675. return This->lpVtbl->SetName(This,name);
  6676. }
  6677. /*** ID3D12Device methods ***/
  6678. static FORCEINLINE UINT ID3D12Device1_GetNodeCount(ID3D12Device1* This) {
  6679. return This->lpVtbl->GetNodeCount(This);
  6680. }
  6681. static FORCEINLINE HRESULT ID3D12Device1_CreateCommandQueue(ID3D12Device1* This,const D3D12_COMMAND_QUEUE_DESC *desc,REFIID riid,void **command_queue) {
  6682. return This->lpVtbl->CreateCommandQueue(This,desc,riid,command_queue);
  6683. }
  6684. static FORCEINLINE HRESULT ID3D12Device1_CreateCommandAllocator(ID3D12Device1* This,D3D12_COMMAND_LIST_TYPE type,REFIID riid,void **command_allocator) {
  6685. return This->lpVtbl->CreateCommandAllocator(This,type,riid,command_allocator);
  6686. }
  6687. static FORCEINLINE HRESULT ID3D12Device1_CreateGraphicsPipelineState(ID3D12Device1* This,const D3D12_GRAPHICS_PIPELINE_STATE_DESC *desc,REFIID riid,void **pipeline_state) {
  6688. return This->lpVtbl->CreateGraphicsPipelineState(This,desc,riid,pipeline_state);
  6689. }
  6690. static FORCEINLINE HRESULT ID3D12Device1_CreateComputePipelineState(ID3D12Device1* This,const D3D12_COMPUTE_PIPELINE_STATE_DESC *desc,REFIID riid,void **pipeline_state) {
  6691. return This->lpVtbl->CreateComputePipelineState(This,desc,riid,pipeline_state);
  6692. }
  6693. static FORCEINLINE HRESULT ID3D12Device1_CreateCommandList(ID3D12Device1* This,UINT node_mask,D3D12_COMMAND_LIST_TYPE type,ID3D12CommandAllocator *command_allocator,ID3D12PipelineState *initial_pipeline_state,REFIID riid,void **command_list) {
  6694. return This->lpVtbl->CreateCommandList(This,node_mask,type,command_allocator,initial_pipeline_state,riid,command_list);
  6695. }
  6696. static FORCEINLINE HRESULT ID3D12Device1_CheckFeatureSupport(ID3D12Device1* This,D3D12_FEATURE feature,void *feature_data,UINT feature_data_size) {
  6697. return This->lpVtbl->CheckFeatureSupport(This,feature,feature_data,feature_data_size);
  6698. }
  6699. static FORCEINLINE HRESULT ID3D12Device1_CreateDescriptorHeap(ID3D12Device1* This,const D3D12_DESCRIPTOR_HEAP_DESC *desc,REFIID riid,void **descriptor_heap) {
  6700. return This->lpVtbl->CreateDescriptorHeap(This,desc,riid,descriptor_heap);
  6701. }
  6702. static FORCEINLINE UINT ID3D12Device1_GetDescriptorHandleIncrementSize(ID3D12Device1* This,D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type) {
  6703. return This->lpVtbl->GetDescriptorHandleIncrementSize(This,descriptor_heap_type);
  6704. }
  6705. static FORCEINLINE HRESULT ID3D12Device1_CreateRootSignature(ID3D12Device1* This,UINT node_mask,const void *bytecode,SIZE_T bytecode_length,REFIID riid,void **root_signature) {
  6706. return This->lpVtbl->CreateRootSignature(This,node_mask,bytecode,bytecode_length,riid,root_signature);
  6707. }
  6708. static FORCEINLINE void ID3D12Device1_CreateConstantBufferView(ID3D12Device1* This,const D3D12_CONSTANT_BUFFER_VIEW_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6709. This->lpVtbl->CreateConstantBufferView(This,desc,descriptor);
  6710. }
  6711. static FORCEINLINE void ID3D12Device1_CreateShaderResourceView(ID3D12Device1* This,ID3D12Resource *resource,const D3D12_SHADER_RESOURCE_VIEW_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6712. This->lpVtbl->CreateShaderResourceView(This,resource,desc,descriptor);
  6713. }
  6714. static FORCEINLINE void ID3D12Device1_CreateUnorderedAccessView(ID3D12Device1* This,ID3D12Resource *resource,ID3D12Resource *counter_resource,const D3D12_UNORDERED_ACCESS_VIEW_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6715. This->lpVtbl->CreateUnorderedAccessView(This,resource,counter_resource,desc,descriptor);
  6716. }
  6717. static FORCEINLINE void ID3D12Device1_CreateRenderTargetView(ID3D12Device1* This,ID3D12Resource *resource,const D3D12_RENDER_TARGET_VIEW_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6718. This->lpVtbl->CreateRenderTargetView(This,resource,desc,descriptor);
  6719. }
  6720. static FORCEINLINE void ID3D12Device1_CreateDepthStencilView(ID3D12Device1* This,ID3D12Resource *resource,const D3D12_DEPTH_STENCIL_VIEW_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6721. This->lpVtbl->CreateDepthStencilView(This,resource,desc,descriptor);
  6722. }
  6723. static FORCEINLINE void ID3D12Device1_CreateSampler(ID3D12Device1* This,const D3D12_SAMPLER_DESC *desc,D3D12_CPU_DESCRIPTOR_HANDLE descriptor) {
  6724. This->lpVtbl->CreateSampler(This,desc,descriptor);
  6725. }
  6726. static FORCEINLINE void ID3D12Device1_CopyDescriptors(ID3D12Device1* This,UINT dst_descriptor_range_count,const D3D12_CPU_DESCRIPTOR_HANDLE *dst_descriptor_range_offsets,const UINT *dst_descriptor_range_sizes,UINT src_descriptor_range_count,const D3D12_CPU_DESCRIPTOR_HANDLE *src_descriptor_range_offsets,const UINT *src_descriptor_range_sizes,D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type) {
  6727. This->lpVtbl->CopyDescriptors(This,dst_descriptor_range_count,dst_descriptor_range_offsets,dst_descriptor_range_sizes,src_descriptor_range_count,src_descriptor_range_offsets,src_descriptor_range_sizes,descriptor_heap_type);
  6728. }
  6729. static FORCEINLINE void ID3D12Device1_CopyDescriptorsSimple(ID3D12Device1* This,UINT descriptor_count,const D3D12_CPU_DESCRIPTOR_HANDLE dst_descriptor_range_offset,const D3D12_CPU_DESCRIPTOR_HANDLE src_descriptor_range_offset,D3D12_DESCRIPTOR_HEAP_TYPE descriptor_heap_type) {
  6730. This->lpVtbl->CopyDescriptorsSimple(This,descriptor_count,dst_descriptor_range_offset,src_descriptor_range_offset,descriptor_heap_type);
  6731. }
  6732. static FORCEINLINE D3D12_RESOURCE_ALLOCATION_INFO ID3D12Device1_GetResourceAllocationInfo(ID3D12Device1* This,UINT visible_mask,UINT reource_desc_count,const D3D12_RESOURCE_DESC *resource_descs) {
  6733. D3D12_RESOURCE_ALLOCATION_INFO __ret;
  6734. return *This->lpVtbl->GetResourceAllocationInfo(This,&__ret,visible_mask,reource_desc_count,resource_descs);
  6735. }
  6736. static FORCEINLINE D3D12_HEAP_PROPERTIES ID3D12Device1_GetCustomHeapProperties(ID3D12Device1* This,UINT node_mask,D3D12_HEAP_TYPE heap_type) {
  6737. D3D12_HEAP_PROPERTIES __ret;
  6738. return *This->lpVtbl->GetCustomHeapProperties(This,&__ret,node_mask,heap_type);
  6739. }
  6740. static FORCEINLINE HRESULT ID3D12Device1_CreateCommittedResource(ID3D12Device1* This,const D3D12_HEAP_PROPERTIES *heap_properties,D3D12_HEAP_FLAGS heap_flags,const D3D12_RESOURCE_DESC *desc,D3D12_RESOURCE_STATES initial_state,const D3D12_CLEAR_VALUE *optimized_clear_value,REFIID riid,void **resource) {
  6741. return This->lpVtbl->CreateCommittedResource(This,heap_properties,heap_flags,desc,initial_state,optimized_clear_value,riid,resource);
  6742. }
  6743. static FORCEINLINE HRESULT ID3D12Device1_CreateHeap(ID3D12Device1* This,const D3D12_HEAP_DESC *desc,REFIID riid,void **heap) {
  6744. return This->lpVtbl->CreateHeap(This,desc,riid,heap);
  6745. }
  6746. static FORCEINLINE HRESULT ID3D12Device1_CreatePlacedResource(ID3D12Device1* This,ID3D12Heap *heap,UINT64 heap_offset,const D3D12_RESOURCE_DESC *desc,D3D12_RESOURCE_STATES initial_state,const D3D12_CLEAR_VALUE *optimized_clear_value,REFIID riid,void **resource) {
  6747. return This->lpVtbl->CreatePlacedResource(This,heap,heap_offset,desc,initial_state,optimized_clear_value,riid,resource);
  6748. }
  6749. static FORCEINLINE HRESULT ID3D12Device1_CreateReservedResource(ID3D12Device1* This,const D3D12_RESOURCE_DESC *desc,D3D12_RESOURCE_STATES initial_state,const D3D12_CLEAR_VALUE *optimized_clear_value,REFIID riid,void **resource) {
  6750. return This->lpVtbl->CreateReservedResource(This,desc,initial_state,optimized_clear_value,riid,resource);
  6751. }
  6752. static FORCEINLINE HRESULT ID3D12Device1_CreateSharedHandle(ID3D12Device1* This,ID3D12DeviceChild *object,const SECURITY_ATTRIBUTES *attributes,DWORD access,const WCHAR *name,HANDLE *handle) {
  6753. return This->lpVtbl->CreateSharedHandle(This,object,attributes,access,name,handle);
  6754. }
  6755. static FORCEINLINE HRESULT ID3D12Device1_OpenSharedHandle(ID3D12Device1* This,HANDLE handle,REFIID riid,void **object) {
  6756. return This->lpVtbl->OpenSharedHandle(This,handle,riid,object);
  6757. }
  6758. static FORCEINLINE HRESULT ID3D12Device1_OpenSharedHandleByName(ID3D12Device1* This,const WCHAR *name,DWORD access,HANDLE *handle) {
  6759. return This->lpVtbl->OpenSharedHandleByName(This,name,access,handle);
  6760. }
  6761. static FORCEINLINE HRESULT ID3D12Device1_MakeResident(ID3D12Device1* This,UINT object_count,ID3D12Pageable *const *objects) {
  6762. return This->lpVtbl->MakeResident(This,object_count,objects);
  6763. }
  6764. static FORCEINLINE HRESULT ID3D12Device1_Evict(ID3D12Device1* This,UINT object_count,ID3D12Pageable *const *objects) {
  6765. return This->lpVtbl->Evict(This,object_count,objects);
  6766. }
  6767. static FORCEINLINE HRESULT ID3D12Device1_CreateFence(ID3D12Device1* This,UINT64 initial_value,D3D12_FENCE_FLAGS flags,REFIID riid,void **fence) {
  6768. return This->lpVtbl->CreateFence(This,initial_value,flags,riid,fence);
  6769. }
  6770. static FORCEINLINE HRESULT ID3D12Device1_GetDeviceRemovedReason(ID3D12Device1* This) {
  6771. return This->lpVtbl->GetDeviceRemovedReason(This);
  6772. }
  6773. static FORCEINLINE void ID3D12Device1_GetCopyableFootprints(ID3D12Device1* This,const D3D12_RESOURCE_DESC *desc,UINT first_sub_resource,UINT sub_resource_count,UINT64 base_offset,D3D12_PLACED_SUBRESOURCE_FOOTPRINT *layouts,UINT *row_count,UINT64 *row_size,UINT64 *total_bytes) {
  6774. This->lpVtbl->GetCopyableFootprints(This,desc,first_sub_resource,sub_resource_count,base_offset,layouts,row_count,row_size,total_bytes);
  6775. }
  6776. static FORCEINLINE HRESULT ID3D12Device1_CreateQueryHeap(ID3D12Device1* This,const D3D12_QUERY_HEAP_DESC *desc,REFIID riid,void **heap) {
  6777. return This->lpVtbl->CreateQueryHeap(This,desc,riid,heap);
  6778. }
  6779. static FORCEINLINE HRESULT ID3D12Device1_SetStablePowerState(ID3D12Device1* This,WINBOOL enable) {
  6780. return This->lpVtbl->SetStablePowerState(This,enable);
  6781. }
  6782. static FORCEINLINE HRESULT ID3D12Device1_CreateCommandSignature(ID3D12Device1* This,const D3D12_COMMAND_SIGNATURE_DESC *desc,ID3D12RootSignature *root_signature,REFIID riid,void **command_signature) {
  6783. return This->lpVtbl->CreateCommandSignature(This,desc,root_signature,riid,command_signature);
  6784. }
  6785. static FORCEINLINE void ID3D12Device1_GetResourceTiling(ID3D12Device1* This,ID3D12Resource *resource,UINT *total_tile_count,D3D12_PACKED_MIP_INFO *packed_mip_info,D3D12_TILE_SHAPE *standard_tile_shape,UINT *sub_resource_tiling_count,UINT first_sub_resource_tiling,D3D12_SUBRESOURCE_TILING *sub_resource_tilings) {
  6786. This->lpVtbl->GetResourceTiling(This,resource,total_tile_count,packed_mip_info,standard_tile_shape,sub_resource_tiling_count,first_sub_resource_tiling,sub_resource_tilings);
  6787. }
  6788. static FORCEINLINE LUID ID3D12Device1_GetAdapterLuid(ID3D12Device1* This) {
  6789. LUID __ret;
  6790. return *This->lpVtbl->GetAdapterLuid(This,&__ret);
  6791. }
  6792. /*** ID3D12Device1 methods ***/
  6793. static FORCEINLINE HRESULT ID3D12Device1_CreatePipelineLibrary(ID3D12Device1* This,const void *blob,SIZE_T blob_size,REFIID iid,void **lib) {
  6794. return This->lpVtbl->CreatePipelineLibrary(This,blob,blob_size,iid,lib);
  6795. }
  6796. static FORCEINLINE HRESULT ID3D12Device1_SetEventOnMultipleFenceCompletion(ID3D12Device1* This,ID3D12Fence *const *fences,const UINT64 *values,UINT fence_count,D3D12_MULTIPLE_FENCE_WAIT_FLAGS flags,HANDLE event) {
  6797. return This->lpVtbl->SetEventOnMultipleFenceCompletion(This,fences,values,fence_count,flags,event);
  6798. }
  6799. static FORCEINLINE HRESULT ID3D12Device1_SetResidencyPriority(ID3D12Device1* This,UINT object_count,ID3D12Pageable *const *objects,const D3D12_RESIDENCY_PRIORITY *priorities) {
  6800. return This->lpVtbl->SetResidencyPriority(This,object_count,objects,priorities);
  6801. }
  6802. #endif
  6803. #endif
  6804. #endif
  6805. #endif /* __ID3D12Device1_INTERFACE_DEFINED__ */
  6806. /*****************************************************************************
  6807. * ID3D12RootSignatureDeserializer interface
  6808. */
  6809. #ifndef __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__
  6810. #define __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__
  6811. DEFINE_GUID(IID_ID3D12RootSignatureDeserializer, 0x34ab647b, 0x3cc8, 0x46ac, 0x84,0x1b, 0xc0,0x96,0x56,0x45,0xc0,0x46);
  6812. #if defined(__cplusplus) && !defined(CINTERFACE)
  6813. MIDL_INTERFACE("34ab647b-3cc8-46ac-841b-c0965645c046")
  6814. ID3D12RootSignatureDeserializer : public IUnknown
  6815. {
  6816. virtual const D3D12_ROOT_SIGNATURE_DESC * STDMETHODCALLTYPE GetRootSignatureDesc(
  6817. ) = 0;
  6818. };
  6819. #ifdef __CRT_UUID_DECL
  6820. __CRT_UUID_DECL(ID3D12RootSignatureDeserializer, 0x34ab647b, 0x3cc8, 0x46ac, 0x84,0x1b, 0xc0,0x96,0x56,0x45,0xc0,0x46)
  6821. #endif
  6822. #else
  6823. typedef struct ID3D12RootSignatureDeserializerVtbl {
  6824. BEGIN_INTERFACE
  6825. /*** IUnknown methods ***/
  6826. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  6827. ID3D12RootSignatureDeserializer *This,
  6828. REFIID riid,
  6829. void **ppvObject);
  6830. ULONG (STDMETHODCALLTYPE *AddRef)(
  6831. ID3D12RootSignatureDeserializer *This);
  6832. ULONG (STDMETHODCALLTYPE *Release)(
  6833. ID3D12RootSignatureDeserializer *This);
  6834. /*** ID3D12RootSignatureDeserializer methods ***/
  6835. const D3D12_ROOT_SIGNATURE_DESC * (STDMETHODCALLTYPE *GetRootSignatureDesc)(
  6836. ID3D12RootSignatureDeserializer *This);
  6837. END_INTERFACE
  6838. } ID3D12RootSignatureDeserializerVtbl;
  6839. interface ID3D12RootSignatureDeserializer {
  6840. CONST_VTBL ID3D12RootSignatureDeserializerVtbl* lpVtbl;
  6841. };
  6842. #ifdef COBJMACROS
  6843. #ifndef WIDL_C_INLINE_WRAPPERS
  6844. /*** IUnknown methods ***/
  6845. #define ID3D12RootSignatureDeserializer_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  6846. #define ID3D12RootSignatureDeserializer_AddRef(This) (This)->lpVtbl->AddRef(This)
  6847. #define ID3D12RootSignatureDeserializer_Release(This) (This)->lpVtbl->Release(This)
  6848. /*** ID3D12RootSignatureDeserializer methods ***/
  6849. #define ID3D12RootSignatureDeserializer_GetRootSignatureDesc(This) (This)->lpVtbl->GetRootSignatureDesc(This)
  6850. #else
  6851. /*** IUnknown methods ***/
  6852. static FORCEINLINE HRESULT ID3D12RootSignatureDeserializer_QueryInterface(ID3D12RootSignatureDeserializer* This,REFIID riid,void **ppvObject) {
  6853. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  6854. }
  6855. static FORCEINLINE ULONG ID3D12RootSignatureDeserializer_AddRef(ID3D12RootSignatureDeserializer* This) {
  6856. return This->lpVtbl->AddRef(This);
  6857. }
  6858. static FORCEINLINE ULONG ID3D12RootSignatureDeserializer_Release(ID3D12RootSignatureDeserializer* This) {
  6859. return This->lpVtbl->Release(This);
  6860. }
  6861. /*** ID3D12RootSignatureDeserializer methods ***/
  6862. static FORCEINLINE const D3D12_ROOT_SIGNATURE_DESC * ID3D12RootSignatureDeserializer_GetRootSignatureDesc(ID3D12RootSignatureDeserializer* This) {
  6863. return This->lpVtbl->GetRootSignatureDesc(This);
  6864. }
  6865. #endif
  6866. #endif
  6867. #endif
  6868. #endif /* __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__ */
  6869. /*****************************************************************************
  6870. * ID3D12VersionedRootSignatureDeserializer interface
  6871. */
  6872. #ifndef __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__
  6873. #define __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__
  6874. DEFINE_GUID(IID_ID3D12VersionedRootSignatureDeserializer, 0x7f91ce67, 0x090c, 0x4bb7, 0xb7,0x8e, 0xed,0x8f,0xf2,0xe3,0x1d,0xa0);
  6875. #if defined(__cplusplus) && !defined(CINTERFACE)
  6876. MIDL_INTERFACE("7f91ce67-090c-4bb7-b78e-ed8ff2e31da0")
  6877. ID3D12VersionedRootSignatureDeserializer : public IUnknown
  6878. {
  6879. virtual HRESULT STDMETHODCALLTYPE GetRootSignatureDescAtVersion(
  6880. D3D_ROOT_SIGNATURE_VERSION version,
  6881. const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **desc) = 0;
  6882. virtual const D3D12_VERSIONED_ROOT_SIGNATURE_DESC * STDMETHODCALLTYPE GetUnconvertedRootSignatureDesc(
  6883. ) = 0;
  6884. };
  6885. #ifdef __CRT_UUID_DECL
  6886. __CRT_UUID_DECL(ID3D12VersionedRootSignatureDeserializer, 0x7f91ce67, 0x090c, 0x4bb7, 0xb7,0x8e, 0xed,0x8f,0xf2,0xe3,0x1d,0xa0)
  6887. #endif
  6888. #else
  6889. typedef struct ID3D12VersionedRootSignatureDeserializerVtbl {
  6890. BEGIN_INTERFACE
  6891. /*** IUnknown methods ***/
  6892. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  6893. ID3D12VersionedRootSignatureDeserializer *This,
  6894. REFIID riid,
  6895. void **ppvObject);
  6896. ULONG (STDMETHODCALLTYPE *AddRef)(
  6897. ID3D12VersionedRootSignatureDeserializer *This);
  6898. ULONG (STDMETHODCALLTYPE *Release)(
  6899. ID3D12VersionedRootSignatureDeserializer *This);
  6900. /*** ID3D12VersionedRootSignatureDeserializer methods ***/
  6901. HRESULT (STDMETHODCALLTYPE *GetRootSignatureDescAtVersion)(
  6902. ID3D12VersionedRootSignatureDeserializer *This,
  6903. D3D_ROOT_SIGNATURE_VERSION version,
  6904. const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **desc);
  6905. const D3D12_VERSIONED_ROOT_SIGNATURE_DESC * (STDMETHODCALLTYPE *GetUnconvertedRootSignatureDesc)(
  6906. ID3D12VersionedRootSignatureDeserializer *This);
  6907. END_INTERFACE
  6908. } ID3D12VersionedRootSignatureDeserializerVtbl;
  6909. interface ID3D12VersionedRootSignatureDeserializer {
  6910. CONST_VTBL ID3D12VersionedRootSignatureDeserializerVtbl* lpVtbl;
  6911. };
  6912. #ifdef COBJMACROS
  6913. #ifndef WIDL_C_INLINE_WRAPPERS
  6914. /*** IUnknown methods ***/
  6915. #define ID3D12VersionedRootSignatureDeserializer_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  6916. #define ID3D12VersionedRootSignatureDeserializer_AddRef(This) (This)->lpVtbl->AddRef(This)
  6917. #define ID3D12VersionedRootSignatureDeserializer_Release(This) (This)->lpVtbl->Release(This)
  6918. /*** ID3D12VersionedRootSignatureDeserializer methods ***/
  6919. #define ID3D12VersionedRootSignatureDeserializer_GetRootSignatureDescAtVersion(This,version,desc) (This)->lpVtbl->GetRootSignatureDescAtVersion(This,version,desc)
  6920. #define ID3D12VersionedRootSignatureDeserializer_GetUnconvertedRootSignatureDesc(This) (This)->lpVtbl->GetUnconvertedRootSignatureDesc(This)
  6921. #else
  6922. /*** IUnknown methods ***/
  6923. static FORCEINLINE HRESULT ID3D12VersionedRootSignatureDeserializer_QueryInterface(ID3D12VersionedRootSignatureDeserializer* This,REFIID riid,void **ppvObject) {
  6924. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  6925. }
  6926. static FORCEINLINE ULONG ID3D12VersionedRootSignatureDeserializer_AddRef(ID3D12VersionedRootSignatureDeserializer* This) {
  6927. return This->lpVtbl->AddRef(This);
  6928. }
  6929. static FORCEINLINE ULONG ID3D12VersionedRootSignatureDeserializer_Release(ID3D12VersionedRootSignatureDeserializer* This) {
  6930. return This->lpVtbl->Release(This);
  6931. }
  6932. /*** ID3D12VersionedRootSignatureDeserializer methods ***/
  6933. static FORCEINLINE HRESULT ID3D12VersionedRootSignatureDeserializer_GetRootSignatureDescAtVersion(ID3D12VersionedRootSignatureDeserializer* This,D3D_ROOT_SIGNATURE_VERSION version,const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **desc) {
  6934. return This->lpVtbl->GetRootSignatureDescAtVersion(This,version,desc);
  6935. }
  6936. static FORCEINLINE const D3D12_VERSIONED_ROOT_SIGNATURE_DESC * ID3D12VersionedRootSignatureDeserializer_GetUnconvertedRootSignatureDesc(ID3D12VersionedRootSignatureDeserializer* This) {
  6937. return This->lpVtbl->GetUnconvertedRootSignatureDesc(This);
  6938. }
  6939. #endif
  6940. #endif
  6941. #endif
  6942. #endif /* __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__ */
  6943. HRESULT __stdcall D3D12CreateRootSignatureDeserializer(const void *data,SIZE_T data_size,REFIID iid,void **deserializer);
  6944. typedef HRESULT (__stdcall *PFN_D3D12_CREATE_VERSIONED_ROOT_SIGNATURE_DESERIALIZER)(const void *data,SIZE_T data_size,REFIID iid,void **deserializer);
  6945. HRESULT __stdcall D3D12CreateVersionedRootSignatureDeserializer(const void *data,SIZE_T data_size,REFIID iid,void **deserializer);
  6946. HRESULT __stdcall D3D12SerializeRootSignature(const D3D12_ROOT_SIGNATURE_DESC *root_signature_desc,D3D_ROOT_SIGNATURE_VERSION version,ID3DBlob **blob,ID3DBlob **error_blob);
  6947. typedef HRESULT (__stdcall *PFN_D3D12_SERIALIZE_VERSIONED_ROOT_SIGNATURE)(const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *desc,ID3DBlob **blob,ID3DBlob **error_blob);
  6948. HRESULT __stdcall D3D12SerializeVersionedRootSignature(const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *root_signature_desc,ID3DBlob **blob,ID3DBlob **error_blob);
  6949. typedef HRESULT (__stdcall *PFN_D3D12_CREATE_DEVICE)(IUnknown *adapter,D3D_FEATURE_LEVEL minimum_feature_level,REFIID iid,void **device);
  6950. HRESULT __stdcall D3D12CreateDevice(IUnknown *adapter,D3D_FEATURE_LEVEL minimum_feature_level,REFIID iid,void **device);
  6951. typedef HRESULT (__stdcall *PFN_D3D12_GET_DEBUG_INTERFACE)(REFIID iid,void **debug);
  6952. HRESULT __stdcall D3D12GetDebugInterface(REFIID iid,void **debug);
  6953. HRESULT __stdcall D3D12EnableExperimentalFeatures(UINT feature_count,const IID *iids,void *configurations,UINT *configurations_sizes);
  6954. /* Begin additional prototypes for all interfaces */
  6955. /* End additional prototypes */
  6956. #ifdef __cplusplus
  6957. }
  6958. #endif
  6959. #endif /* __d3d12_h__ */