dxgi1_6.h 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637
  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 8.01.0628 */
  3. /* @@MIDL_FILE_HEADING( ) */
  4. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  5. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  6. #define __REQUIRED_RPCNDR_H_VERSION__ 501
  7. #endif
  8. /* verify that the <rpcsal.h> version is high enough to compile this file*/
  9. #ifndef __REQUIRED_RPCSAL_H_VERSION__
  10. #define __REQUIRED_RPCSAL_H_VERSION__ 100
  11. #endif
  12. #include "rpc.h"
  13. #include "rpcndr.h"
  14. #ifndef __RPCNDR_H_VERSION__
  15. #error this stub requires an updated version of <rpcndr.h>
  16. #endif /* __RPCNDR_H_VERSION__ */
  17. #ifndef COM_NO_WINDOWS_H
  18. #include "windows.h"
  19. #include "ole2.h"
  20. #endif /*COM_NO_WINDOWS_H*/
  21. #ifndef __dxgi1_6_h__
  22. #define __dxgi1_6_h__
  23. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  24. #pragma once
  25. #endif
  26. #ifndef DECLSPEC_XFGVIRT
  27. #if defined(_CONTROL_FLOW_GUARD_XFG)
  28. #define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
  29. #else
  30. #define DECLSPEC_XFGVIRT(base, func)
  31. #endif
  32. #endif
  33. /* Forward Declarations */
  34. #ifndef __IDXGIAdapter4_FWD_DEFINED__
  35. #define __IDXGIAdapter4_FWD_DEFINED__
  36. typedef interface IDXGIAdapter4 IDXGIAdapter4;
  37. #endif /* __IDXGIAdapter4_FWD_DEFINED__ */
  38. #ifndef __IDXGIOutput6_FWD_DEFINED__
  39. #define __IDXGIOutput6_FWD_DEFINED__
  40. typedef interface IDXGIOutput6 IDXGIOutput6;
  41. #endif /* __IDXGIOutput6_FWD_DEFINED__ */
  42. #ifndef __IDXGIFactory6_FWD_DEFINED__
  43. #define __IDXGIFactory6_FWD_DEFINED__
  44. typedef interface IDXGIFactory6 IDXGIFactory6;
  45. #endif /* __IDXGIFactory6_FWD_DEFINED__ */
  46. #ifndef __IDXGIFactory7_FWD_DEFINED__
  47. #define __IDXGIFactory7_FWD_DEFINED__
  48. typedef interface IDXGIFactory7 IDXGIFactory7;
  49. #endif /* __IDXGIFactory7_FWD_DEFINED__ */
  50. /* header files for imported files */
  51. #include "dxgi1_5.h"
  52. #ifdef __cplusplus
  53. extern "C"{
  54. #endif
  55. /* interface __MIDL_itf_dxgi1_6_0000_0000 */
  56. /* [local] */
  57. // Copyright (c) Microsoft Corporation. All Rights Reserved
  58. #include <winapifamily.h>
  59. #pragma region App Family
  60. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)
  61. HRESULT WINAPI DXGIDeclareAdapterRemovalSupport();
  62. typedef
  63. enum DXGI_ADAPTER_FLAG3
  64. {
  65. DXGI_ADAPTER_FLAG3_NONE = 0,
  66. DXGI_ADAPTER_FLAG3_REMOTE = 1,
  67. DXGI_ADAPTER_FLAG3_SOFTWARE = 2,
  68. DXGI_ADAPTER_FLAG3_ACG_COMPATIBLE = 4,
  69. DXGI_ADAPTER_FLAG3_SUPPORT_MONITORED_FENCES = 8,
  70. DXGI_ADAPTER_FLAG3_SUPPORT_NON_MONITORED_FENCES = 0x10,
  71. DXGI_ADAPTER_FLAG3_KEYED_MUTEX_CONFORMANCE = 0x20,
  72. DXGI_ADAPTER_FLAG3_FORCE_DWORD = 0xffffffff
  73. } DXGI_ADAPTER_FLAG3;
  74. DEFINE_ENUM_FLAG_OPERATORS( DXGI_ADAPTER_FLAG3 );
  75. typedef struct DXGI_ADAPTER_DESC3
  76. {
  77. WCHAR Description[ 128 ];
  78. UINT VendorId;
  79. UINT DeviceId;
  80. UINT SubSysId;
  81. UINT Revision;
  82. SIZE_T DedicatedVideoMemory;
  83. SIZE_T DedicatedSystemMemory;
  84. SIZE_T SharedSystemMemory;
  85. LUID AdapterLuid;
  86. DXGI_ADAPTER_FLAG3 Flags;
  87. DXGI_GRAPHICS_PREEMPTION_GRANULARITY GraphicsPreemptionGranularity;
  88. DXGI_COMPUTE_PREEMPTION_GRANULARITY ComputePreemptionGranularity;
  89. } DXGI_ADAPTER_DESC3;
  90. extern RPC_IF_HANDLE __MIDL_itf_dxgi1_6_0000_0000_v0_0_c_ifspec;
  91. extern RPC_IF_HANDLE __MIDL_itf_dxgi1_6_0000_0000_v0_0_s_ifspec;
  92. #ifndef __IDXGIAdapter4_INTERFACE_DEFINED__
  93. #define __IDXGIAdapter4_INTERFACE_DEFINED__
  94. /* interface IDXGIAdapter4 */
  95. /* [unique][local][uuid][object] */
  96. EXTERN_C const IID IID_IDXGIAdapter4;
  97. #if defined(__cplusplus) && !defined(CINTERFACE)
  98. MIDL_INTERFACE("3c8d99d1-4fbf-4181-a82c-af66bf7bd24e")
  99. IDXGIAdapter4 : public IDXGIAdapter3
  100. {
  101. public:
  102. virtual HRESULT STDMETHODCALLTYPE GetDesc3(
  103. /* [annotation][out] */
  104. _Out_ DXGI_ADAPTER_DESC3 *pDesc) = 0;
  105. };
  106. #else /* C style interface */
  107. typedef struct IDXGIAdapter4Vtbl
  108. {
  109. BEGIN_INTERFACE
  110. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  111. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  112. IDXGIAdapter4 * This,
  113. /* [in] */ REFIID riid,
  114. /* [annotation][iid_is][out] */
  115. _COM_Outptr_ void **ppvObject);
  116. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  117. ULONG ( STDMETHODCALLTYPE *AddRef )(
  118. IDXGIAdapter4 * This);
  119. DECLSPEC_XFGVIRT(IUnknown, Release)
  120. ULONG ( STDMETHODCALLTYPE *Release )(
  121. IDXGIAdapter4 * This);
  122. DECLSPEC_XFGVIRT(IDXGIObject, SetPrivateData)
  123. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  124. IDXGIAdapter4 * This,
  125. /* [annotation][in] */
  126. _In_ REFGUID Name,
  127. /* [in] */ UINT DataSize,
  128. /* [annotation][in] */
  129. _In_reads_bytes_(DataSize) const void *pData);
  130. DECLSPEC_XFGVIRT(IDXGIObject, SetPrivateDataInterface)
  131. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  132. IDXGIAdapter4 * This,
  133. /* [annotation][in] */
  134. _In_ REFGUID Name,
  135. /* [annotation][in] */
  136. _In_opt_ const IUnknown *pUnknown);
  137. DECLSPEC_XFGVIRT(IDXGIObject, GetPrivateData)
  138. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  139. IDXGIAdapter4 * This,
  140. /* [annotation][in] */
  141. _In_ REFGUID Name,
  142. /* [annotation][out][in] */
  143. _Inout_ UINT *pDataSize,
  144. /* [annotation][out] */
  145. _Out_writes_bytes_(*pDataSize) void *pData);
  146. DECLSPEC_XFGVIRT(IDXGIObject, GetParent)
  147. HRESULT ( STDMETHODCALLTYPE *GetParent )(
  148. IDXGIAdapter4 * This,
  149. /* [annotation][in] */
  150. _In_ REFIID riid,
  151. /* [annotation][retval][out] */
  152. _COM_Outptr_ void **ppParent);
  153. DECLSPEC_XFGVIRT(IDXGIAdapter, EnumOutputs)
  154. HRESULT ( STDMETHODCALLTYPE *EnumOutputs )(
  155. IDXGIAdapter4 * This,
  156. /* [in] */ UINT Output,
  157. /* [annotation][out][in] */
  158. _COM_Outptr_ IDXGIOutput **ppOutput);
  159. DECLSPEC_XFGVIRT(IDXGIAdapter, GetDesc)
  160. HRESULT ( STDMETHODCALLTYPE *GetDesc )(
  161. IDXGIAdapter4 * This,
  162. /* [annotation][out] */
  163. _Out_ DXGI_ADAPTER_DESC *pDesc);
  164. DECLSPEC_XFGVIRT(IDXGIAdapter, CheckInterfaceSupport)
  165. HRESULT ( STDMETHODCALLTYPE *CheckInterfaceSupport )(
  166. IDXGIAdapter4 * This,
  167. /* [annotation][in] */
  168. _In_ REFGUID InterfaceName,
  169. /* [annotation][out] */
  170. _Out_ LARGE_INTEGER *pUMDVersion);
  171. DECLSPEC_XFGVIRT(IDXGIAdapter1, GetDesc1)
  172. HRESULT ( STDMETHODCALLTYPE *GetDesc1 )(
  173. IDXGIAdapter4 * This,
  174. /* [annotation][out] */
  175. _Out_ DXGI_ADAPTER_DESC1 *pDesc);
  176. DECLSPEC_XFGVIRT(IDXGIAdapter2, GetDesc2)
  177. HRESULT ( STDMETHODCALLTYPE *GetDesc2 )(
  178. IDXGIAdapter4 * This,
  179. /* [annotation][out] */
  180. _Out_ DXGI_ADAPTER_DESC2 *pDesc);
  181. DECLSPEC_XFGVIRT(IDXGIAdapter3, RegisterHardwareContentProtectionTeardownStatusEvent)
  182. HRESULT ( STDMETHODCALLTYPE *RegisterHardwareContentProtectionTeardownStatusEvent )(
  183. IDXGIAdapter4 * This,
  184. /* [annotation][in] */
  185. _In_ HANDLE hEvent,
  186. /* [annotation][out] */
  187. _Out_ DWORD *pdwCookie);
  188. DECLSPEC_XFGVIRT(IDXGIAdapter3, UnregisterHardwareContentProtectionTeardownStatus)
  189. void ( STDMETHODCALLTYPE *UnregisterHardwareContentProtectionTeardownStatus )(
  190. IDXGIAdapter4 * This,
  191. /* [annotation][in] */
  192. _In_ DWORD dwCookie);
  193. DECLSPEC_XFGVIRT(IDXGIAdapter3, QueryVideoMemoryInfo)
  194. HRESULT ( STDMETHODCALLTYPE *QueryVideoMemoryInfo )(
  195. IDXGIAdapter4 * This,
  196. /* [annotation][in] */
  197. _In_ UINT NodeIndex,
  198. /* [annotation][in] */
  199. _In_ DXGI_MEMORY_SEGMENT_GROUP MemorySegmentGroup,
  200. /* [annotation][out] */
  201. _Out_ DXGI_QUERY_VIDEO_MEMORY_INFO *pVideoMemoryInfo);
  202. DECLSPEC_XFGVIRT(IDXGIAdapter3, SetVideoMemoryReservation)
  203. HRESULT ( STDMETHODCALLTYPE *SetVideoMemoryReservation )(
  204. IDXGIAdapter4 * This,
  205. /* [annotation][in] */
  206. _In_ UINT NodeIndex,
  207. /* [annotation][in] */
  208. _In_ DXGI_MEMORY_SEGMENT_GROUP MemorySegmentGroup,
  209. /* [annotation][in] */
  210. _In_ UINT64 Reservation);
  211. DECLSPEC_XFGVIRT(IDXGIAdapter3, RegisterVideoMemoryBudgetChangeNotificationEvent)
  212. HRESULT ( STDMETHODCALLTYPE *RegisterVideoMemoryBudgetChangeNotificationEvent )(
  213. IDXGIAdapter4 * This,
  214. /* [annotation][in] */
  215. _In_ HANDLE hEvent,
  216. /* [annotation][out] */
  217. _Out_ DWORD *pdwCookie);
  218. DECLSPEC_XFGVIRT(IDXGIAdapter3, UnregisterVideoMemoryBudgetChangeNotification)
  219. void ( STDMETHODCALLTYPE *UnregisterVideoMemoryBudgetChangeNotification )(
  220. IDXGIAdapter4 * This,
  221. /* [annotation][in] */
  222. _In_ DWORD dwCookie);
  223. DECLSPEC_XFGVIRT(IDXGIAdapter4, GetDesc3)
  224. HRESULT ( STDMETHODCALLTYPE *GetDesc3 )(
  225. IDXGIAdapter4 * This,
  226. /* [annotation][out] */
  227. _Out_ DXGI_ADAPTER_DESC3 *pDesc);
  228. END_INTERFACE
  229. } IDXGIAdapter4Vtbl;
  230. interface IDXGIAdapter4
  231. {
  232. CONST_VTBL struct IDXGIAdapter4Vtbl *lpVtbl;
  233. };
  234. #ifdef COBJMACROS
  235. #define IDXGIAdapter4_QueryInterface(This,riid,ppvObject) \
  236. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  237. #define IDXGIAdapter4_AddRef(This) \
  238. ( (This)->lpVtbl -> AddRef(This) )
  239. #define IDXGIAdapter4_Release(This) \
  240. ( (This)->lpVtbl -> Release(This) )
  241. #define IDXGIAdapter4_SetPrivateData(This,Name,DataSize,pData) \
  242. ( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
  243. #define IDXGIAdapter4_SetPrivateDataInterface(This,Name,pUnknown) \
  244. ( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
  245. #define IDXGIAdapter4_GetPrivateData(This,Name,pDataSize,pData) \
  246. ( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
  247. #define IDXGIAdapter4_GetParent(This,riid,ppParent) \
  248. ( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
  249. #define IDXGIAdapter4_EnumOutputs(This,Output,ppOutput) \
  250. ( (This)->lpVtbl -> EnumOutputs(This,Output,ppOutput) )
  251. #define IDXGIAdapter4_GetDesc(This,pDesc) \
  252. ( (This)->lpVtbl -> GetDesc(This,pDesc) )
  253. #define IDXGIAdapter4_CheckInterfaceSupport(This,InterfaceName,pUMDVersion) \
  254. ( (This)->lpVtbl -> CheckInterfaceSupport(This,InterfaceName,pUMDVersion) )
  255. #define IDXGIAdapter4_GetDesc1(This,pDesc) \
  256. ( (This)->lpVtbl -> GetDesc1(This,pDesc) )
  257. #define IDXGIAdapter4_GetDesc2(This,pDesc) \
  258. ( (This)->lpVtbl -> GetDesc2(This,pDesc) )
  259. #define IDXGIAdapter4_RegisterHardwareContentProtectionTeardownStatusEvent(This,hEvent,pdwCookie) \
  260. ( (This)->lpVtbl -> RegisterHardwareContentProtectionTeardownStatusEvent(This,hEvent,pdwCookie) )
  261. #define IDXGIAdapter4_UnregisterHardwareContentProtectionTeardownStatus(This,dwCookie) \
  262. ( (This)->lpVtbl -> UnregisterHardwareContentProtectionTeardownStatus(This,dwCookie) )
  263. #define IDXGIAdapter4_QueryVideoMemoryInfo(This,NodeIndex,MemorySegmentGroup,pVideoMemoryInfo) \
  264. ( (This)->lpVtbl -> QueryVideoMemoryInfo(This,NodeIndex,MemorySegmentGroup,pVideoMemoryInfo) )
  265. #define IDXGIAdapter4_SetVideoMemoryReservation(This,NodeIndex,MemorySegmentGroup,Reservation) \
  266. ( (This)->lpVtbl -> SetVideoMemoryReservation(This,NodeIndex,MemorySegmentGroup,Reservation) )
  267. #define IDXGIAdapter4_RegisterVideoMemoryBudgetChangeNotificationEvent(This,hEvent,pdwCookie) \
  268. ( (This)->lpVtbl -> RegisterVideoMemoryBudgetChangeNotificationEvent(This,hEvent,pdwCookie) )
  269. #define IDXGIAdapter4_UnregisterVideoMemoryBudgetChangeNotification(This,dwCookie) \
  270. ( (This)->lpVtbl -> UnregisterVideoMemoryBudgetChangeNotification(This,dwCookie) )
  271. #define IDXGIAdapter4_GetDesc3(This,pDesc) \
  272. ( (This)->lpVtbl -> GetDesc3(This,pDesc) )
  273. #endif /* COBJMACROS */
  274. #endif /* C style interface */
  275. #endif /* __IDXGIAdapter4_INTERFACE_DEFINED__ */
  276. /* interface __MIDL_itf_dxgi1_6_0000_0001 */
  277. /* [local] */
  278. typedef struct DXGI_OUTPUT_DESC1
  279. {
  280. WCHAR DeviceName[ 32 ];
  281. RECT DesktopCoordinates;
  282. BOOL AttachedToDesktop;
  283. DXGI_MODE_ROTATION Rotation;
  284. HMONITOR Monitor;
  285. UINT BitsPerColor;
  286. DXGI_COLOR_SPACE_TYPE ColorSpace;
  287. FLOAT RedPrimary[ 2 ];
  288. FLOAT GreenPrimary[ 2 ];
  289. FLOAT BluePrimary[ 2 ];
  290. FLOAT WhitePoint[ 2 ];
  291. FLOAT MinLuminance;
  292. FLOAT MaxLuminance;
  293. FLOAT MaxFullFrameLuminance;
  294. } DXGI_OUTPUT_DESC1;
  295. typedef
  296. enum DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS
  297. {
  298. DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_FULLSCREEN = 1,
  299. DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_WINDOWED = 2,
  300. DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_CURSOR_STRETCHED = 4
  301. } DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS;
  302. DEFINE_ENUM_FLAG_OPERATORS( DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS );
  303. extern RPC_IF_HANDLE __MIDL_itf_dxgi1_6_0000_0001_v0_0_c_ifspec;
  304. extern RPC_IF_HANDLE __MIDL_itf_dxgi1_6_0000_0001_v0_0_s_ifspec;
  305. #ifndef __IDXGIOutput6_INTERFACE_DEFINED__
  306. #define __IDXGIOutput6_INTERFACE_DEFINED__
  307. /* interface IDXGIOutput6 */
  308. /* [unique][local][uuid][object] */
  309. EXTERN_C const IID IID_IDXGIOutput6;
  310. #if defined(__cplusplus) && !defined(CINTERFACE)
  311. MIDL_INTERFACE("068346e8-aaec-4b84-add7-137f513f77a1")
  312. IDXGIOutput6 : public IDXGIOutput5
  313. {
  314. public:
  315. virtual HRESULT STDMETHODCALLTYPE GetDesc1(
  316. /* [annotation][out] */
  317. _Out_ DXGI_OUTPUT_DESC1 *pDesc) = 0;
  318. virtual HRESULT STDMETHODCALLTYPE CheckHardwareCompositionSupport(
  319. /* [annotation][out] */
  320. _Out_ UINT *pFlags) = 0;
  321. };
  322. #else /* C style interface */
  323. typedef struct IDXGIOutput6Vtbl
  324. {
  325. BEGIN_INTERFACE
  326. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  327. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  328. IDXGIOutput6 * This,
  329. /* [in] */ REFIID riid,
  330. /* [annotation][iid_is][out] */
  331. _COM_Outptr_ void **ppvObject);
  332. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  333. ULONG ( STDMETHODCALLTYPE *AddRef )(
  334. IDXGIOutput6 * This);
  335. DECLSPEC_XFGVIRT(IUnknown, Release)
  336. ULONG ( STDMETHODCALLTYPE *Release )(
  337. IDXGIOutput6 * This);
  338. DECLSPEC_XFGVIRT(IDXGIObject, SetPrivateData)
  339. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  340. IDXGIOutput6 * This,
  341. /* [annotation][in] */
  342. _In_ REFGUID Name,
  343. /* [in] */ UINT DataSize,
  344. /* [annotation][in] */
  345. _In_reads_bytes_(DataSize) const void *pData);
  346. DECLSPEC_XFGVIRT(IDXGIObject, SetPrivateDataInterface)
  347. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  348. IDXGIOutput6 * This,
  349. /* [annotation][in] */
  350. _In_ REFGUID Name,
  351. /* [annotation][in] */
  352. _In_opt_ const IUnknown *pUnknown);
  353. DECLSPEC_XFGVIRT(IDXGIObject, GetPrivateData)
  354. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  355. IDXGIOutput6 * This,
  356. /* [annotation][in] */
  357. _In_ REFGUID Name,
  358. /* [annotation][out][in] */
  359. _Inout_ UINT *pDataSize,
  360. /* [annotation][out] */
  361. _Out_writes_bytes_(*pDataSize) void *pData);
  362. DECLSPEC_XFGVIRT(IDXGIObject, GetParent)
  363. HRESULT ( STDMETHODCALLTYPE *GetParent )(
  364. IDXGIOutput6 * This,
  365. /* [annotation][in] */
  366. _In_ REFIID riid,
  367. /* [annotation][retval][out] */
  368. _COM_Outptr_ void **ppParent);
  369. DECLSPEC_XFGVIRT(IDXGIOutput, GetDesc)
  370. HRESULT ( STDMETHODCALLTYPE *GetDesc )(
  371. IDXGIOutput6 * This,
  372. /* [annotation][out] */
  373. _Out_ DXGI_OUTPUT_DESC *pDesc);
  374. DECLSPEC_XFGVIRT(IDXGIOutput, GetDisplayModeList)
  375. HRESULT ( STDMETHODCALLTYPE *GetDisplayModeList )(
  376. IDXGIOutput6 * This,
  377. /* [in] */ DXGI_FORMAT EnumFormat,
  378. /* [in] */ UINT Flags,
  379. /* [annotation][out][in] */
  380. _Inout_ UINT *pNumModes,
  381. /* [annotation][out] */
  382. _Out_writes_to_opt_(*pNumModes,*pNumModes) DXGI_MODE_DESC *pDesc);
  383. DECLSPEC_XFGVIRT(IDXGIOutput, FindClosestMatchingMode)
  384. HRESULT ( STDMETHODCALLTYPE *FindClosestMatchingMode )(
  385. IDXGIOutput6 * This,
  386. /* [annotation][in] */
  387. _In_ const DXGI_MODE_DESC *pModeToMatch,
  388. /* [annotation][out] */
  389. _Out_ DXGI_MODE_DESC *pClosestMatch,
  390. /* [annotation][in] */
  391. _In_opt_ IUnknown *pConcernedDevice);
  392. DECLSPEC_XFGVIRT(IDXGIOutput, WaitForVBlank)
  393. HRESULT ( STDMETHODCALLTYPE *WaitForVBlank )(
  394. IDXGIOutput6 * This);
  395. DECLSPEC_XFGVIRT(IDXGIOutput, TakeOwnership)
  396. HRESULT ( STDMETHODCALLTYPE *TakeOwnership )(
  397. IDXGIOutput6 * This,
  398. /* [annotation][in] */
  399. _In_ IUnknown *pDevice,
  400. BOOL Exclusive);
  401. DECLSPEC_XFGVIRT(IDXGIOutput, ReleaseOwnership)
  402. void ( STDMETHODCALLTYPE *ReleaseOwnership )(
  403. IDXGIOutput6 * This);
  404. DECLSPEC_XFGVIRT(IDXGIOutput, GetGammaControlCapabilities)
  405. HRESULT ( STDMETHODCALLTYPE *GetGammaControlCapabilities )(
  406. IDXGIOutput6 * This,
  407. /* [annotation][out] */
  408. _Out_ DXGI_GAMMA_CONTROL_CAPABILITIES *pGammaCaps);
  409. DECLSPEC_XFGVIRT(IDXGIOutput, SetGammaControl)
  410. HRESULT ( STDMETHODCALLTYPE *SetGammaControl )(
  411. IDXGIOutput6 * This,
  412. /* [annotation][in] */
  413. _In_ const DXGI_GAMMA_CONTROL *pArray);
  414. DECLSPEC_XFGVIRT(IDXGIOutput, GetGammaControl)
  415. HRESULT ( STDMETHODCALLTYPE *GetGammaControl )(
  416. IDXGIOutput6 * This,
  417. /* [annotation][out] */
  418. _Out_ DXGI_GAMMA_CONTROL *pArray);
  419. DECLSPEC_XFGVIRT(IDXGIOutput, SetDisplaySurface)
  420. HRESULT ( STDMETHODCALLTYPE *SetDisplaySurface )(
  421. IDXGIOutput6 * This,
  422. /* [annotation][in] */
  423. _In_ IDXGISurface *pScanoutSurface);
  424. DECLSPEC_XFGVIRT(IDXGIOutput, GetDisplaySurfaceData)
  425. HRESULT ( STDMETHODCALLTYPE *GetDisplaySurfaceData )(
  426. IDXGIOutput6 * This,
  427. /* [annotation][in] */
  428. _In_ IDXGISurface *pDestination);
  429. DECLSPEC_XFGVIRT(IDXGIOutput, GetFrameStatistics)
  430. HRESULT ( STDMETHODCALLTYPE *GetFrameStatistics )(
  431. IDXGIOutput6 * This,
  432. /* [annotation][out] */
  433. _Out_ DXGI_FRAME_STATISTICS *pStats);
  434. DECLSPEC_XFGVIRT(IDXGIOutput1, GetDisplayModeList1)
  435. HRESULT ( STDMETHODCALLTYPE *GetDisplayModeList1 )(
  436. IDXGIOutput6 * This,
  437. /* [in] */ DXGI_FORMAT EnumFormat,
  438. /* [in] */ UINT Flags,
  439. /* [annotation][out][in] */
  440. _Inout_ UINT *pNumModes,
  441. /* [annotation][out] */
  442. _Out_writes_to_opt_(*pNumModes,*pNumModes) DXGI_MODE_DESC1 *pDesc);
  443. DECLSPEC_XFGVIRT(IDXGIOutput1, FindClosestMatchingMode1)
  444. HRESULT ( STDMETHODCALLTYPE *FindClosestMatchingMode1 )(
  445. IDXGIOutput6 * This,
  446. /* [annotation][in] */
  447. _In_ const DXGI_MODE_DESC1 *pModeToMatch,
  448. /* [annotation][out] */
  449. _Out_ DXGI_MODE_DESC1 *pClosestMatch,
  450. /* [annotation][in] */
  451. _In_opt_ IUnknown *pConcernedDevice);
  452. DECLSPEC_XFGVIRT(IDXGIOutput1, GetDisplaySurfaceData1)
  453. HRESULT ( STDMETHODCALLTYPE *GetDisplaySurfaceData1 )(
  454. IDXGIOutput6 * This,
  455. /* [annotation][in] */
  456. _In_ IDXGIResource *pDestination);
  457. DECLSPEC_XFGVIRT(IDXGIOutput1, DuplicateOutput)
  458. HRESULT ( STDMETHODCALLTYPE *DuplicateOutput )(
  459. IDXGIOutput6 * This,
  460. /* [annotation][in] */
  461. _In_ IUnknown *pDevice,
  462. /* [annotation][out] */
  463. _COM_Outptr_ IDXGIOutputDuplication **ppOutputDuplication);
  464. DECLSPEC_XFGVIRT(IDXGIOutput2, SupportsOverlays)
  465. BOOL ( STDMETHODCALLTYPE *SupportsOverlays )(
  466. IDXGIOutput6 * This);
  467. DECLSPEC_XFGVIRT(IDXGIOutput3, CheckOverlaySupport)
  468. HRESULT ( STDMETHODCALLTYPE *CheckOverlaySupport )(
  469. IDXGIOutput6 * This,
  470. /* [annotation][in] */
  471. _In_ DXGI_FORMAT EnumFormat,
  472. /* [annotation][out] */
  473. _In_ IUnknown *pConcernedDevice,
  474. /* [annotation][out] */
  475. _Out_ UINT *pFlags);
  476. DECLSPEC_XFGVIRT(IDXGIOutput4, CheckOverlayColorSpaceSupport)
  477. HRESULT ( STDMETHODCALLTYPE *CheckOverlayColorSpaceSupport )(
  478. IDXGIOutput6 * This,
  479. /* [annotation][in] */
  480. _In_ DXGI_FORMAT Format,
  481. /* [annotation][in] */
  482. _In_ DXGI_COLOR_SPACE_TYPE ColorSpace,
  483. /* [annotation][in] */
  484. _In_ IUnknown *pConcernedDevice,
  485. /* [annotation][out] */
  486. _Out_ UINT *pFlags);
  487. DECLSPEC_XFGVIRT(IDXGIOutput5, DuplicateOutput1)
  488. HRESULT ( STDMETHODCALLTYPE *DuplicateOutput1 )(
  489. IDXGIOutput6 * This,
  490. /* [annotation][in] */
  491. _In_ IUnknown *pDevice,
  492. /* [in] */ UINT Flags,
  493. /* [annotation][in] */
  494. _In_ UINT SupportedFormatsCount,
  495. /* [annotation][in] */
  496. _In_reads_(SupportedFormatsCount) const DXGI_FORMAT *pSupportedFormats,
  497. /* [annotation][out] */
  498. _COM_Outptr_ IDXGIOutputDuplication **ppOutputDuplication);
  499. DECLSPEC_XFGVIRT(IDXGIOutput6, GetDesc1)
  500. HRESULT ( STDMETHODCALLTYPE *GetDesc1 )(
  501. IDXGIOutput6 * This,
  502. /* [annotation][out] */
  503. _Out_ DXGI_OUTPUT_DESC1 *pDesc);
  504. DECLSPEC_XFGVIRT(IDXGIOutput6, CheckHardwareCompositionSupport)
  505. HRESULT ( STDMETHODCALLTYPE *CheckHardwareCompositionSupport )(
  506. IDXGIOutput6 * This,
  507. /* [annotation][out] */
  508. _Out_ UINT *pFlags);
  509. END_INTERFACE
  510. } IDXGIOutput6Vtbl;
  511. interface IDXGIOutput6
  512. {
  513. CONST_VTBL struct IDXGIOutput6Vtbl *lpVtbl;
  514. };
  515. #ifdef COBJMACROS
  516. #define IDXGIOutput6_QueryInterface(This,riid,ppvObject) \
  517. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  518. #define IDXGIOutput6_AddRef(This) \
  519. ( (This)->lpVtbl -> AddRef(This) )
  520. #define IDXGIOutput6_Release(This) \
  521. ( (This)->lpVtbl -> Release(This) )
  522. #define IDXGIOutput6_SetPrivateData(This,Name,DataSize,pData) \
  523. ( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
  524. #define IDXGIOutput6_SetPrivateDataInterface(This,Name,pUnknown) \
  525. ( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
  526. #define IDXGIOutput6_GetPrivateData(This,Name,pDataSize,pData) \
  527. ( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
  528. #define IDXGIOutput6_GetParent(This,riid,ppParent) \
  529. ( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
  530. #define IDXGIOutput6_GetDesc(This,pDesc) \
  531. ( (This)->lpVtbl -> GetDesc(This,pDesc) )
  532. #define IDXGIOutput6_GetDisplayModeList(This,EnumFormat,Flags,pNumModes,pDesc) \
  533. ( (This)->lpVtbl -> GetDisplayModeList(This,EnumFormat,Flags,pNumModes,pDesc) )
  534. #define IDXGIOutput6_FindClosestMatchingMode(This,pModeToMatch,pClosestMatch,pConcernedDevice) \
  535. ( (This)->lpVtbl -> FindClosestMatchingMode(This,pModeToMatch,pClosestMatch,pConcernedDevice) )
  536. #define IDXGIOutput6_WaitForVBlank(This) \
  537. ( (This)->lpVtbl -> WaitForVBlank(This) )
  538. #define IDXGIOutput6_TakeOwnership(This,pDevice,Exclusive) \
  539. ( (This)->lpVtbl -> TakeOwnership(This,pDevice,Exclusive) )
  540. #define IDXGIOutput6_ReleaseOwnership(This) \
  541. ( (This)->lpVtbl -> ReleaseOwnership(This) )
  542. #define IDXGIOutput6_GetGammaControlCapabilities(This,pGammaCaps) \
  543. ( (This)->lpVtbl -> GetGammaControlCapabilities(This,pGammaCaps) )
  544. #define IDXGIOutput6_SetGammaControl(This,pArray) \
  545. ( (This)->lpVtbl -> SetGammaControl(This,pArray) )
  546. #define IDXGIOutput6_GetGammaControl(This,pArray) \
  547. ( (This)->lpVtbl -> GetGammaControl(This,pArray) )
  548. #define IDXGIOutput6_SetDisplaySurface(This,pScanoutSurface) \
  549. ( (This)->lpVtbl -> SetDisplaySurface(This,pScanoutSurface) )
  550. #define IDXGIOutput6_GetDisplaySurfaceData(This,pDestination) \
  551. ( (This)->lpVtbl -> GetDisplaySurfaceData(This,pDestination) )
  552. #define IDXGIOutput6_GetFrameStatistics(This,pStats) \
  553. ( (This)->lpVtbl -> GetFrameStatistics(This,pStats) )
  554. #define IDXGIOutput6_GetDisplayModeList1(This,EnumFormat,Flags,pNumModes,pDesc) \
  555. ( (This)->lpVtbl -> GetDisplayModeList1(This,EnumFormat,Flags,pNumModes,pDesc) )
  556. #define IDXGIOutput6_FindClosestMatchingMode1(This,pModeToMatch,pClosestMatch,pConcernedDevice) \
  557. ( (This)->lpVtbl -> FindClosestMatchingMode1(This,pModeToMatch,pClosestMatch,pConcernedDevice) )
  558. #define IDXGIOutput6_GetDisplaySurfaceData1(This,pDestination) \
  559. ( (This)->lpVtbl -> GetDisplaySurfaceData1(This,pDestination) )
  560. #define IDXGIOutput6_DuplicateOutput(This,pDevice,ppOutputDuplication) \
  561. ( (This)->lpVtbl -> DuplicateOutput(This,pDevice,ppOutputDuplication) )
  562. #define IDXGIOutput6_SupportsOverlays(This) \
  563. ( (This)->lpVtbl -> SupportsOverlays(This) )
  564. #define IDXGIOutput6_CheckOverlaySupport(This,EnumFormat,pConcernedDevice,pFlags) \
  565. ( (This)->lpVtbl -> CheckOverlaySupport(This,EnumFormat,pConcernedDevice,pFlags) )
  566. #define IDXGIOutput6_CheckOverlayColorSpaceSupport(This,Format,ColorSpace,pConcernedDevice,pFlags) \
  567. ( (This)->lpVtbl -> CheckOverlayColorSpaceSupport(This,Format,ColorSpace,pConcernedDevice,pFlags) )
  568. #define IDXGIOutput6_DuplicateOutput1(This,pDevice,Flags,SupportedFormatsCount,pSupportedFormats,ppOutputDuplication) \
  569. ( (This)->lpVtbl -> DuplicateOutput1(This,pDevice,Flags,SupportedFormatsCount,pSupportedFormats,ppOutputDuplication) )
  570. #define IDXGIOutput6_GetDesc1(This,pDesc) \
  571. ( (This)->lpVtbl -> GetDesc1(This,pDesc) )
  572. #define IDXGIOutput6_CheckHardwareCompositionSupport(This,pFlags) \
  573. ( (This)->lpVtbl -> CheckHardwareCompositionSupport(This,pFlags) )
  574. #endif /* COBJMACROS */
  575. #endif /* C style interface */
  576. #endif /* __IDXGIOutput6_INTERFACE_DEFINED__ */
  577. /* interface __MIDL_itf_dxgi1_6_0000_0002 */
  578. /* [local] */
  579. typedef
  580. enum DXGI_GPU_PREFERENCE
  581. {
  582. DXGI_GPU_PREFERENCE_UNSPECIFIED = 0,
  583. DXGI_GPU_PREFERENCE_MINIMUM_POWER = ( DXGI_GPU_PREFERENCE_UNSPECIFIED + 1 ) ,
  584. DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE = ( DXGI_GPU_PREFERENCE_MINIMUM_POWER + 1 )
  585. } DXGI_GPU_PREFERENCE;
  586. extern RPC_IF_HANDLE __MIDL_itf_dxgi1_6_0000_0002_v0_0_c_ifspec;
  587. extern RPC_IF_HANDLE __MIDL_itf_dxgi1_6_0000_0002_v0_0_s_ifspec;
  588. #ifndef __IDXGIFactory6_INTERFACE_DEFINED__
  589. #define __IDXGIFactory6_INTERFACE_DEFINED__
  590. /* interface IDXGIFactory6 */
  591. /* [unique][local][uuid][object] */
  592. EXTERN_C const IID IID_IDXGIFactory6;
  593. #if defined(__cplusplus) && !defined(CINTERFACE)
  594. MIDL_INTERFACE("c1b6694f-ff09-44a9-b03c-77900a0a1d17")
  595. IDXGIFactory6 : public IDXGIFactory5
  596. {
  597. public:
  598. virtual HRESULT STDMETHODCALLTYPE EnumAdapterByGpuPreference(
  599. /* [annotation] */
  600. _In_ UINT Adapter,
  601. /* [annotation] */
  602. _In_ DXGI_GPU_PREFERENCE GpuPreference,
  603. /* [annotation] */
  604. _In_ REFIID riid,
  605. /* [annotation] */
  606. _COM_Outptr_ void **ppvAdapter) = 0;
  607. };
  608. #else /* C style interface */
  609. typedef struct IDXGIFactory6Vtbl
  610. {
  611. BEGIN_INTERFACE
  612. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  613. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  614. IDXGIFactory6 * This,
  615. /* [in] */ REFIID riid,
  616. /* [annotation][iid_is][out] */
  617. _COM_Outptr_ void **ppvObject);
  618. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  619. ULONG ( STDMETHODCALLTYPE *AddRef )(
  620. IDXGIFactory6 * This);
  621. DECLSPEC_XFGVIRT(IUnknown, Release)
  622. ULONG ( STDMETHODCALLTYPE *Release )(
  623. IDXGIFactory6 * This);
  624. DECLSPEC_XFGVIRT(IDXGIObject, SetPrivateData)
  625. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  626. IDXGIFactory6 * This,
  627. /* [annotation][in] */
  628. _In_ REFGUID Name,
  629. /* [in] */ UINT DataSize,
  630. /* [annotation][in] */
  631. _In_reads_bytes_(DataSize) const void *pData);
  632. DECLSPEC_XFGVIRT(IDXGIObject, SetPrivateDataInterface)
  633. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  634. IDXGIFactory6 * This,
  635. /* [annotation][in] */
  636. _In_ REFGUID Name,
  637. /* [annotation][in] */
  638. _In_opt_ const IUnknown *pUnknown);
  639. DECLSPEC_XFGVIRT(IDXGIObject, GetPrivateData)
  640. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  641. IDXGIFactory6 * This,
  642. /* [annotation][in] */
  643. _In_ REFGUID Name,
  644. /* [annotation][out][in] */
  645. _Inout_ UINT *pDataSize,
  646. /* [annotation][out] */
  647. _Out_writes_bytes_(*pDataSize) void *pData);
  648. DECLSPEC_XFGVIRT(IDXGIObject, GetParent)
  649. HRESULT ( STDMETHODCALLTYPE *GetParent )(
  650. IDXGIFactory6 * This,
  651. /* [annotation][in] */
  652. _In_ REFIID riid,
  653. /* [annotation][retval][out] */
  654. _COM_Outptr_ void **ppParent);
  655. DECLSPEC_XFGVIRT(IDXGIFactory, EnumAdapters)
  656. HRESULT ( STDMETHODCALLTYPE *EnumAdapters )(
  657. IDXGIFactory6 * This,
  658. /* [in] */ UINT Adapter,
  659. /* [annotation][out] */
  660. _COM_Outptr_ IDXGIAdapter **ppAdapter);
  661. DECLSPEC_XFGVIRT(IDXGIFactory, MakeWindowAssociation)
  662. HRESULT ( STDMETHODCALLTYPE *MakeWindowAssociation )(
  663. IDXGIFactory6 * This,
  664. HWND WindowHandle,
  665. UINT Flags);
  666. DECLSPEC_XFGVIRT(IDXGIFactory, GetWindowAssociation)
  667. HRESULT ( STDMETHODCALLTYPE *GetWindowAssociation )(
  668. IDXGIFactory6 * This,
  669. /* [annotation][out] */
  670. _Out_ HWND *pWindowHandle);
  671. DECLSPEC_XFGVIRT(IDXGIFactory, CreateSwapChain)
  672. HRESULT ( STDMETHODCALLTYPE *CreateSwapChain )(
  673. IDXGIFactory6 * This,
  674. /* [annotation][in] */
  675. _In_ IUnknown *pDevice,
  676. /* [annotation][in] */
  677. _In_ DXGI_SWAP_CHAIN_DESC *pDesc,
  678. /* [annotation][out] */
  679. _COM_Outptr_ IDXGISwapChain **ppSwapChain);
  680. DECLSPEC_XFGVIRT(IDXGIFactory, CreateSoftwareAdapter)
  681. HRESULT ( STDMETHODCALLTYPE *CreateSoftwareAdapter )(
  682. IDXGIFactory6 * This,
  683. /* [in] */ HMODULE Module,
  684. /* [annotation][out] */
  685. _COM_Outptr_ IDXGIAdapter **ppAdapter);
  686. DECLSPEC_XFGVIRT(IDXGIFactory1, EnumAdapters1)
  687. HRESULT ( STDMETHODCALLTYPE *EnumAdapters1 )(
  688. IDXGIFactory6 * This,
  689. /* [in] */ UINT Adapter,
  690. /* [annotation][out] */
  691. _COM_Outptr_ IDXGIAdapter1 **ppAdapter);
  692. DECLSPEC_XFGVIRT(IDXGIFactory1, IsCurrent)
  693. BOOL ( STDMETHODCALLTYPE *IsCurrent )(
  694. IDXGIFactory6 * This);
  695. DECLSPEC_XFGVIRT(IDXGIFactory2, IsWindowedStereoEnabled)
  696. BOOL ( STDMETHODCALLTYPE *IsWindowedStereoEnabled )(
  697. IDXGIFactory6 * This);
  698. DECLSPEC_XFGVIRT(IDXGIFactory2, CreateSwapChainForHwnd)
  699. HRESULT ( STDMETHODCALLTYPE *CreateSwapChainForHwnd )(
  700. IDXGIFactory6 * This,
  701. /* [annotation][in] */
  702. _In_ IUnknown *pDevice,
  703. /* [annotation][in] */
  704. _In_ HWND hWnd,
  705. /* [annotation][in] */
  706. _In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
  707. /* [annotation][in] */
  708. _In_opt_ const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc,
  709. /* [annotation][in] */
  710. _In_opt_ IDXGIOutput *pRestrictToOutput,
  711. /* [annotation][out] */
  712. _COM_Outptr_ IDXGISwapChain1 **ppSwapChain);
  713. DECLSPEC_XFGVIRT(IDXGIFactory2, CreateSwapChainForCoreWindow)
  714. HRESULT ( STDMETHODCALLTYPE *CreateSwapChainForCoreWindow )(
  715. IDXGIFactory6 * This,
  716. /* [annotation][in] */
  717. _In_ IUnknown *pDevice,
  718. /* [annotation][in] */
  719. _In_ IUnknown *pWindow,
  720. /* [annotation][in] */
  721. _In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
  722. /* [annotation][in] */
  723. _In_opt_ IDXGIOutput *pRestrictToOutput,
  724. /* [annotation][out] */
  725. _COM_Outptr_ IDXGISwapChain1 **ppSwapChain);
  726. DECLSPEC_XFGVIRT(IDXGIFactory2, GetSharedResourceAdapterLuid)
  727. HRESULT ( STDMETHODCALLTYPE *GetSharedResourceAdapterLuid )(
  728. IDXGIFactory6 * This,
  729. /* [annotation] */
  730. _In_ HANDLE hResource,
  731. /* [annotation] */
  732. _Out_ LUID *pLuid);
  733. DECLSPEC_XFGVIRT(IDXGIFactory2, RegisterStereoStatusWindow)
  734. HRESULT ( STDMETHODCALLTYPE *RegisterStereoStatusWindow )(
  735. IDXGIFactory6 * This,
  736. /* [annotation][in] */
  737. _In_ HWND WindowHandle,
  738. /* [annotation][in] */
  739. _In_ UINT wMsg,
  740. /* [annotation][out] */
  741. _Out_ DWORD *pdwCookie);
  742. DECLSPEC_XFGVIRT(IDXGIFactory2, RegisterStereoStatusEvent)
  743. HRESULT ( STDMETHODCALLTYPE *RegisterStereoStatusEvent )(
  744. IDXGIFactory6 * This,
  745. /* [annotation][in] */
  746. _In_ HANDLE hEvent,
  747. /* [annotation][out] */
  748. _Out_ DWORD *pdwCookie);
  749. DECLSPEC_XFGVIRT(IDXGIFactory2, UnregisterStereoStatus)
  750. void ( STDMETHODCALLTYPE *UnregisterStereoStatus )(
  751. IDXGIFactory6 * This,
  752. /* [annotation][in] */
  753. _In_ DWORD dwCookie);
  754. DECLSPEC_XFGVIRT(IDXGIFactory2, RegisterOcclusionStatusWindow)
  755. HRESULT ( STDMETHODCALLTYPE *RegisterOcclusionStatusWindow )(
  756. IDXGIFactory6 * This,
  757. /* [annotation][in] */
  758. _In_ HWND WindowHandle,
  759. /* [annotation][in] */
  760. _In_ UINT wMsg,
  761. /* [annotation][out] */
  762. _Out_ DWORD *pdwCookie);
  763. DECLSPEC_XFGVIRT(IDXGIFactory2, RegisterOcclusionStatusEvent)
  764. HRESULT ( STDMETHODCALLTYPE *RegisterOcclusionStatusEvent )(
  765. IDXGIFactory6 * This,
  766. /* [annotation][in] */
  767. _In_ HANDLE hEvent,
  768. /* [annotation][out] */
  769. _Out_ DWORD *pdwCookie);
  770. DECLSPEC_XFGVIRT(IDXGIFactory2, UnregisterOcclusionStatus)
  771. void ( STDMETHODCALLTYPE *UnregisterOcclusionStatus )(
  772. IDXGIFactory6 * This,
  773. /* [annotation][in] */
  774. _In_ DWORD dwCookie);
  775. DECLSPEC_XFGVIRT(IDXGIFactory2, CreateSwapChainForComposition)
  776. HRESULT ( STDMETHODCALLTYPE *CreateSwapChainForComposition )(
  777. IDXGIFactory6 * This,
  778. /* [annotation][in] */
  779. _In_ IUnknown *pDevice,
  780. /* [annotation][in] */
  781. _In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
  782. /* [annotation][in] */
  783. _In_opt_ IDXGIOutput *pRestrictToOutput,
  784. /* [annotation][out] */
  785. _COM_Outptr_ IDXGISwapChain1 **ppSwapChain);
  786. DECLSPEC_XFGVIRT(IDXGIFactory3, GetCreationFlags)
  787. UINT ( STDMETHODCALLTYPE *GetCreationFlags )(
  788. IDXGIFactory6 * This);
  789. DECLSPEC_XFGVIRT(IDXGIFactory4, EnumAdapterByLuid)
  790. HRESULT ( STDMETHODCALLTYPE *EnumAdapterByLuid )(
  791. IDXGIFactory6 * This,
  792. /* [annotation] */
  793. _In_ LUID AdapterLuid,
  794. /* [annotation] */
  795. _In_ REFIID riid,
  796. /* [annotation] */
  797. _COM_Outptr_ void **ppvAdapter);
  798. DECLSPEC_XFGVIRT(IDXGIFactory4, EnumWarpAdapter)
  799. HRESULT ( STDMETHODCALLTYPE *EnumWarpAdapter )(
  800. IDXGIFactory6 * This,
  801. /* [annotation] */
  802. _In_ REFIID riid,
  803. /* [annotation] */
  804. _COM_Outptr_ void **ppvAdapter);
  805. DECLSPEC_XFGVIRT(IDXGIFactory5, CheckFeatureSupport)
  806. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  807. IDXGIFactory6 * This,
  808. DXGI_FEATURE Feature,
  809. /* [annotation] */
  810. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  811. UINT FeatureSupportDataSize);
  812. DECLSPEC_XFGVIRT(IDXGIFactory6, EnumAdapterByGpuPreference)
  813. HRESULT ( STDMETHODCALLTYPE *EnumAdapterByGpuPreference )(
  814. IDXGIFactory6 * This,
  815. /* [annotation] */
  816. _In_ UINT Adapter,
  817. /* [annotation] */
  818. _In_ DXGI_GPU_PREFERENCE GpuPreference,
  819. /* [annotation] */
  820. _In_ REFIID riid,
  821. /* [annotation] */
  822. _COM_Outptr_ void **ppvAdapter);
  823. END_INTERFACE
  824. } IDXGIFactory6Vtbl;
  825. interface IDXGIFactory6
  826. {
  827. CONST_VTBL struct IDXGIFactory6Vtbl *lpVtbl;
  828. };
  829. #ifdef COBJMACROS
  830. #define IDXGIFactory6_QueryInterface(This,riid,ppvObject) \
  831. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  832. #define IDXGIFactory6_AddRef(This) \
  833. ( (This)->lpVtbl -> AddRef(This) )
  834. #define IDXGIFactory6_Release(This) \
  835. ( (This)->lpVtbl -> Release(This) )
  836. #define IDXGIFactory6_SetPrivateData(This,Name,DataSize,pData) \
  837. ( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
  838. #define IDXGIFactory6_SetPrivateDataInterface(This,Name,pUnknown) \
  839. ( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
  840. #define IDXGIFactory6_GetPrivateData(This,Name,pDataSize,pData) \
  841. ( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
  842. #define IDXGIFactory6_GetParent(This,riid,ppParent) \
  843. ( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
  844. #define IDXGIFactory6_EnumAdapters(This,Adapter,ppAdapter) \
  845. ( (This)->lpVtbl -> EnumAdapters(This,Adapter,ppAdapter) )
  846. #define IDXGIFactory6_MakeWindowAssociation(This,WindowHandle,Flags) \
  847. ( (This)->lpVtbl -> MakeWindowAssociation(This,WindowHandle,Flags) )
  848. #define IDXGIFactory6_GetWindowAssociation(This,pWindowHandle) \
  849. ( (This)->lpVtbl -> GetWindowAssociation(This,pWindowHandle) )
  850. #define IDXGIFactory6_CreateSwapChain(This,pDevice,pDesc,ppSwapChain) \
  851. ( (This)->lpVtbl -> CreateSwapChain(This,pDevice,pDesc,ppSwapChain) )
  852. #define IDXGIFactory6_CreateSoftwareAdapter(This,Module,ppAdapter) \
  853. ( (This)->lpVtbl -> CreateSoftwareAdapter(This,Module,ppAdapter) )
  854. #define IDXGIFactory6_EnumAdapters1(This,Adapter,ppAdapter) \
  855. ( (This)->lpVtbl -> EnumAdapters1(This,Adapter,ppAdapter) )
  856. #define IDXGIFactory6_IsCurrent(This) \
  857. ( (This)->lpVtbl -> IsCurrent(This) )
  858. #define IDXGIFactory6_IsWindowedStereoEnabled(This) \
  859. ( (This)->lpVtbl -> IsWindowedStereoEnabled(This) )
  860. #define IDXGIFactory6_CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) \
  861. ( (This)->lpVtbl -> CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) )
  862. #define IDXGIFactory6_CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) \
  863. ( (This)->lpVtbl -> CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) )
  864. #define IDXGIFactory6_GetSharedResourceAdapterLuid(This,hResource,pLuid) \
  865. ( (This)->lpVtbl -> GetSharedResourceAdapterLuid(This,hResource,pLuid) )
  866. #define IDXGIFactory6_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) \
  867. ( (This)->lpVtbl -> RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) )
  868. #define IDXGIFactory6_RegisterStereoStatusEvent(This,hEvent,pdwCookie) \
  869. ( (This)->lpVtbl -> RegisterStereoStatusEvent(This,hEvent,pdwCookie) )
  870. #define IDXGIFactory6_UnregisterStereoStatus(This,dwCookie) \
  871. ( (This)->lpVtbl -> UnregisterStereoStatus(This,dwCookie) )
  872. #define IDXGIFactory6_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) \
  873. ( (This)->lpVtbl -> RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) )
  874. #define IDXGIFactory6_RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) \
  875. ( (This)->lpVtbl -> RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) )
  876. #define IDXGIFactory6_UnregisterOcclusionStatus(This,dwCookie) \
  877. ( (This)->lpVtbl -> UnregisterOcclusionStatus(This,dwCookie) )
  878. #define IDXGIFactory6_CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) \
  879. ( (This)->lpVtbl -> CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) )
  880. #define IDXGIFactory6_GetCreationFlags(This) \
  881. ( (This)->lpVtbl -> GetCreationFlags(This) )
  882. #define IDXGIFactory6_EnumAdapterByLuid(This,AdapterLuid,riid,ppvAdapter) \
  883. ( (This)->lpVtbl -> EnumAdapterByLuid(This,AdapterLuid,riid,ppvAdapter) )
  884. #define IDXGIFactory6_EnumWarpAdapter(This,riid,ppvAdapter) \
  885. ( (This)->lpVtbl -> EnumWarpAdapter(This,riid,ppvAdapter) )
  886. #define IDXGIFactory6_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  887. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  888. #define IDXGIFactory6_EnumAdapterByGpuPreference(This,Adapter,GpuPreference,riid,ppvAdapter) \
  889. ( (This)->lpVtbl -> EnumAdapterByGpuPreference(This,Adapter,GpuPreference,riid,ppvAdapter) )
  890. #endif /* COBJMACROS */
  891. #endif /* C style interface */
  892. #endif /* __IDXGIFactory6_INTERFACE_DEFINED__ */
  893. #ifndef __IDXGIFactory7_INTERFACE_DEFINED__
  894. #define __IDXGIFactory7_INTERFACE_DEFINED__
  895. /* interface IDXGIFactory7 */
  896. /* [unique][local][uuid][object] */
  897. EXTERN_C const IID IID_IDXGIFactory7;
  898. #if defined(__cplusplus) && !defined(CINTERFACE)
  899. MIDL_INTERFACE("a4966eed-76db-44da-84c1-ee9a7afb20a8")
  900. IDXGIFactory7 : public IDXGIFactory6
  901. {
  902. public:
  903. virtual HRESULT STDMETHODCALLTYPE RegisterAdaptersChangedEvent(
  904. /* [annotation][in] */
  905. _In_ HANDLE hEvent,
  906. /* [annotation][out] */
  907. _Out_ DWORD *pdwCookie) = 0;
  908. virtual HRESULT STDMETHODCALLTYPE UnregisterAdaptersChangedEvent(
  909. /* [annotation][in] */
  910. _In_ DWORD dwCookie) = 0;
  911. };
  912. #else /* C style interface */
  913. typedef struct IDXGIFactory7Vtbl
  914. {
  915. BEGIN_INTERFACE
  916. DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
  917. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  918. IDXGIFactory7 * This,
  919. /* [in] */ REFIID riid,
  920. /* [annotation][iid_is][out] */
  921. _COM_Outptr_ void **ppvObject);
  922. DECLSPEC_XFGVIRT(IUnknown, AddRef)
  923. ULONG ( STDMETHODCALLTYPE *AddRef )(
  924. IDXGIFactory7 * This);
  925. DECLSPEC_XFGVIRT(IUnknown, Release)
  926. ULONG ( STDMETHODCALLTYPE *Release )(
  927. IDXGIFactory7 * This);
  928. DECLSPEC_XFGVIRT(IDXGIObject, SetPrivateData)
  929. HRESULT ( STDMETHODCALLTYPE *SetPrivateData )(
  930. IDXGIFactory7 * This,
  931. /* [annotation][in] */
  932. _In_ REFGUID Name,
  933. /* [in] */ UINT DataSize,
  934. /* [annotation][in] */
  935. _In_reads_bytes_(DataSize) const void *pData);
  936. DECLSPEC_XFGVIRT(IDXGIObject, SetPrivateDataInterface)
  937. HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )(
  938. IDXGIFactory7 * This,
  939. /* [annotation][in] */
  940. _In_ REFGUID Name,
  941. /* [annotation][in] */
  942. _In_opt_ const IUnknown *pUnknown);
  943. DECLSPEC_XFGVIRT(IDXGIObject, GetPrivateData)
  944. HRESULT ( STDMETHODCALLTYPE *GetPrivateData )(
  945. IDXGIFactory7 * This,
  946. /* [annotation][in] */
  947. _In_ REFGUID Name,
  948. /* [annotation][out][in] */
  949. _Inout_ UINT *pDataSize,
  950. /* [annotation][out] */
  951. _Out_writes_bytes_(*pDataSize) void *pData);
  952. DECLSPEC_XFGVIRT(IDXGIObject, GetParent)
  953. HRESULT ( STDMETHODCALLTYPE *GetParent )(
  954. IDXGIFactory7 * This,
  955. /* [annotation][in] */
  956. _In_ REFIID riid,
  957. /* [annotation][retval][out] */
  958. _COM_Outptr_ void **ppParent);
  959. DECLSPEC_XFGVIRT(IDXGIFactory, EnumAdapters)
  960. HRESULT ( STDMETHODCALLTYPE *EnumAdapters )(
  961. IDXGIFactory7 * This,
  962. /* [in] */ UINT Adapter,
  963. /* [annotation][out] */
  964. _COM_Outptr_ IDXGIAdapter **ppAdapter);
  965. DECLSPEC_XFGVIRT(IDXGIFactory, MakeWindowAssociation)
  966. HRESULT ( STDMETHODCALLTYPE *MakeWindowAssociation )(
  967. IDXGIFactory7 * This,
  968. HWND WindowHandle,
  969. UINT Flags);
  970. DECLSPEC_XFGVIRT(IDXGIFactory, GetWindowAssociation)
  971. HRESULT ( STDMETHODCALLTYPE *GetWindowAssociation )(
  972. IDXGIFactory7 * This,
  973. /* [annotation][out] */
  974. _Out_ HWND *pWindowHandle);
  975. DECLSPEC_XFGVIRT(IDXGIFactory, CreateSwapChain)
  976. HRESULT ( STDMETHODCALLTYPE *CreateSwapChain )(
  977. IDXGIFactory7 * This,
  978. /* [annotation][in] */
  979. _In_ IUnknown *pDevice,
  980. /* [annotation][in] */
  981. _In_ DXGI_SWAP_CHAIN_DESC *pDesc,
  982. /* [annotation][out] */
  983. _COM_Outptr_ IDXGISwapChain **ppSwapChain);
  984. DECLSPEC_XFGVIRT(IDXGIFactory, CreateSoftwareAdapter)
  985. HRESULT ( STDMETHODCALLTYPE *CreateSoftwareAdapter )(
  986. IDXGIFactory7 * This,
  987. /* [in] */ HMODULE Module,
  988. /* [annotation][out] */
  989. _COM_Outptr_ IDXGIAdapter **ppAdapter);
  990. DECLSPEC_XFGVIRT(IDXGIFactory1, EnumAdapters1)
  991. HRESULT ( STDMETHODCALLTYPE *EnumAdapters1 )(
  992. IDXGIFactory7 * This,
  993. /* [in] */ UINT Adapter,
  994. /* [annotation][out] */
  995. _COM_Outptr_ IDXGIAdapter1 **ppAdapter);
  996. DECLSPEC_XFGVIRT(IDXGIFactory1, IsCurrent)
  997. BOOL ( STDMETHODCALLTYPE *IsCurrent )(
  998. IDXGIFactory7 * This);
  999. DECLSPEC_XFGVIRT(IDXGIFactory2, IsWindowedStereoEnabled)
  1000. BOOL ( STDMETHODCALLTYPE *IsWindowedStereoEnabled )(
  1001. IDXGIFactory7 * This);
  1002. DECLSPEC_XFGVIRT(IDXGIFactory2, CreateSwapChainForHwnd)
  1003. HRESULT ( STDMETHODCALLTYPE *CreateSwapChainForHwnd )(
  1004. IDXGIFactory7 * This,
  1005. /* [annotation][in] */
  1006. _In_ IUnknown *pDevice,
  1007. /* [annotation][in] */
  1008. _In_ HWND hWnd,
  1009. /* [annotation][in] */
  1010. _In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
  1011. /* [annotation][in] */
  1012. _In_opt_ const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc,
  1013. /* [annotation][in] */
  1014. _In_opt_ IDXGIOutput *pRestrictToOutput,
  1015. /* [annotation][out] */
  1016. _COM_Outptr_ IDXGISwapChain1 **ppSwapChain);
  1017. DECLSPEC_XFGVIRT(IDXGIFactory2, CreateSwapChainForCoreWindow)
  1018. HRESULT ( STDMETHODCALLTYPE *CreateSwapChainForCoreWindow )(
  1019. IDXGIFactory7 * This,
  1020. /* [annotation][in] */
  1021. _In_ IUnknown *pDevice,
  1022. /* [annotation][in] */
  1023. _In_ IUnknown *pWindow,
  1024. /* [annotation][in] */
  1025. _In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
  1026. /* [annotation][in] */
  1027. _In_opt_ IDXGIOutput *pRestrictToOutput,
  1028. /* [annotation][out] */
  1029. _COM_Outptr_ IDXGISwapChain1 **ppSwapChain);
  1030. DECLSPEC_XFGVIRT(IDXGIFactory2, GetSharedResourceAdapterLuid)
  1031. HRESULT ( STDMETHODCALLTYPE *GetSharedResourceAdapterLuid )(
  1032. IDXGIFactory7 * This,
  1033. /* [annotation] */
  1034. _In_ HANDLE hResource,
  1035. /* [annotation] */
  1036. _Out_ LUID *pLuid);
  1037. DECLSPEC_XFGVIRT(IDXGIFactory2, RegisterStereoStatusWindow)
  1038. HRESULT ( STDMETHODCALLTYPE *RegisterStereoStatusWindow )(
  1039. IDXGIFactory7 * This,
  1040. /* [annotation][in] */
  1041. _In_ HWND WindowHandle,
  1042. /* [annotation][in] */
  1043. _In_ UINT wMsg,
  1044. /* [annotation][out] */
  1045. _Out_ DWORD *pdwCookie);
  1046. DECLSPEC_XFGVIRT(IDXGIFactory2, RegisterStereoStatusEvent)
  1047. HRESULT ( STDMETHODCALLTYPE *RegisterStereoStatusEvent )(
  1048. IDXGIFactory7 * This,
  1049. /* [annotation][in] */
  1050. _In_ HANDLE hEvent,
  1051. /* [annotation][out] */
  1052. _Out_ DWORD *pdwCookie);
  1053. DECLSPEC_XFGVIRT(IDXGIFactory2, UnregisterStereoStatus)
  1054. void ( STDMETHODCALLTYPE *UnregisterStereoStatus )(
  1055. IDXGIFactory7 * This,
  1056. /* [annotation][in] */
  1057. _In_ DWORD dwCookie);
  1058. DECLSPEC_XFGVIRT(IDXGIFactory2, RegisterOcclusionStatusWindow)
  1059. HRESULT ( STDMETHODCALLTYPE *RegisterOcclusionStatusWindow )(
  1060. IDXGIFactory7 * This,
  1061. /* [annotation][in] */
  1062. _In_ HWND WindowHandle,
  1063. /* [annotation][in] */
  1064. _In_ UINT wMsg,
  1065. /* [annotation][out] */
  1066. _Out_ DWORD *pdwCookie);
  1067. DECLSPEC_XFGVIRT(IDXGIFactory2, RegisterOcclusionStatusEvent)
  1068. HRESULT ( STDMETHODCALLTYPE *RegisterOcclusionStatusEvent )(
  1069. IDXGIFactory7 * This,
  1070. /* [annotation][in] */
  1071. _In_ HANDLE hEvent,
  1072. /* [annotation][out] */
  1073. _Out_ DWORD *pdwCookie);
  1074. DECLSPEC_XFGVIRT(IDXGIFactory2, UnregisterOcclusionStatus)
  1075. void ( STDMETHODCALLTYPE *UnregisterOcclusionStatus )(
  1076. IDXGIFactory7 * This,
  1077. /* [annotation][in] */
  1078. _In_ DWORD dwCookie);
  1079. DECLSPEC_XFGVIRT(IDXGIFactory2, CreateSwapChainForComposition)
  1080. HRESULT ( STDMETHODCALLTYPE *CreateSwapChainForComposition )(
  1081. IDXGIFactory7 * This,
  1082. /* [annotation][in] */
  1083. _In_ IUnknown *pDevice,
  1084. /* [annotation][in] */
  1085. _In_ const DXGI_SWAP_CHAIN_DESC1 *pDesc,
  1086. /* [annotation][in] */
  1087. _In_opt_ IDXGIOutput *pRestrictToOutput,
  1088. /* [annotation][out] */
  1089. _COM_Outptr_ IDXGISwapChain1 **ppSwapChain);
  1090. DECLSPEC_XFGVIRT(IDXGIFactory3, GetCreationFlags)
  1091. UINT ( STDMETHODCALLTYPE *GetCreationFlags )(
  1092. IDXGIFactory7 * This);
  1093. DECLSPEC_XFGVIRT(IDXGIFactory4, EnumAdapterByLuid)
  1094. HRESULT ( STDMETHODCALLTYPE *EnumAdapterByLuid )(
  1095. IDXGIFactory7 * This,
  1096. /* [annotation] */
  1097. _In_ LUID AdapterLuid,
  1098. /* [annotation] */
  1099. _In_ REFIID riid,
  1100. /* [annotation] */
  1101. _COM_Outptr_ void **ppvAdapter);
  1102. DECLSPEC_XFGVIRT(IDXGIFactory4, EnumWarpAdapter)
  1103. HRESULT ( STDMETHODCALLTYPE *EnumWarpAdapter )(
  1104. IDXGIFactory7 * This,
  1105. /* [annotation] */
  1106. _In_ REFIID riid,
  1107. /* [annotation] */
  1108. _COM_Outptr_ void **ppvAdapter);
  1109. DECLSPEC_XFGVIRT(IDXGIFactory5, CheckFeatureSupport)
  1110. HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )(
  1111. IDXGIFactory7 * This,
  1112. DXGI_FEATURE Feature,
  1113. /* [annotation] */
  1114. _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData,
  1115. UINT FeatureSupportDataSize);
  1116. DECLSPEC_XFGVIRT(IDXGIFactory6, EnumAdapterByGpuPreference)
  1117. HRESULT ( STDMETHODCALLTYPE *EnumAdapterByGpuPreference )(
  1118. IDXGIFactory7 * This,
  1119. /* [annotation] */
  1120. _In_ UINT Adapter,
  1121. /* [annotation] */
  1122. _In_ DXGI_GPU_PREFERENCE GpuPreference,
  1123. /* [annotation] */
  1124. _In_ REFIID riid,
  1125. /* [annotation] */
  1126. _COM_Outptr_ void **ppvAdapter);
  1127. DECLSPEC_XFGVIRT(IDXGIFactory7, RegisterAdaptersChangedEvent)
  1128. HRESULT ( STDMETHODCALLTYPE *RegisterAdaptersChangedEvent )(
  1129. IDXGIFactory7 * This,
  1130. /* [annotation][in] */
  1131. _In_ HANDLE hEvent,
  1132. /* [annotation][out] */
  1133. _Out_ DWORD *pdwCookie);
  1134. DECLSPEC_XFGVIRT(IDXGIFactory7, UnregisterAdaptersChangedEvent)
  1135. HRESULT ( STDMETHODCALLTYPE *UnregisterAdaptersChangedEvent )(
  1136. IDXGIFactory7 * This,
  1137. /* [annotation][in] */
  1138. _In_ DWORD dwCookie);
  1139. END_INTERFACE
  1140. } IDXGIFactory7Vtbl;
  1141. interface IDXGIFactory7
  1142. {
  1143. CONST_VTBL struct IDXGIFactory7Vtbl *lpVtbl;
  1144. };
  1145. #ifdef COBJMACROS
  1146. #define IDXGIFactory7_QueryInterface(This,riid,ppvObject) \
  1147. ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
  1148. #define IDXGIFactory7_AddRef(This) \
  1149. ( (This)->lpVtbl -> AddRef(This) )
  1150. #define IDXGIFactory7_Release(This) \
  1151. ( (This)->lpVtbl -> Release(This) )
  1152. #define IDXGIFactory7_SetPrivateData(This,Name,DataSize,pData) \
  1153. ( (This)->lpVtbl -> SetPrivateData(This,Name,DataSize,pData) )
  1154. #define IDXGIFactory7_SetPrivateDataInterface(This,Name,pUnknown) \
  1155. ( (This)->lpVtbl -> SetPrivateDataInterface(This,Name,pUnknown) )
  1156. #define IDXGIFactory7_GetPrivateData(This,Name,pDataSize,pData) \
  1157. ( (This)->lpVtbl -> GetPrivateData(This,Name,pDataSize,pData) )
  1158. #define IDXGIFactory7_GetParent(This,riid,ppParent) \
  1159. ( (This)->lpVtbl -> GetParent(This,riid,ppParent) )
  1160. #define IDXGIFactory7_EnumAdapters(This,Adapter,ppAdapter) \
  1161. ( (This)->lpVtbl -> EnumAdapters(This,Adapter,ppAdapter) )
  1162. #define IDXGIFactory7_MakeWindowAssociation(This,WindowHandle,Flags) \
  1163. ( (This)->lpVtbl -> MakeWindowAssociation(This,WindowHandle,Flags) )
  1164. #define IDXGIFactory7_GetWindowAssociation(This,pWindowHandle) \
  1165. ( (This)->lpVtbl -> GetWindowAssociation(This,pWindowHandle) )
  1166. #define IDXGIFactory7_CreateSwapChain(This,pDevice,pDesc,ppSwapChain) \
  1167. ( (This)->lpVtbl -> CreateSwapChain(This,pDevice,pDesc,ppSwapChain) )
  1168. #define IDXGIFactory7_CreateSoftwareAdapter(This,Module,ppAdapter) \
  1169. ( (This)->lpVtbl -> CreateSoftwareAdapter(This,Module,ppAdapter) )
  1170. #define IDXGIFactory7_EnumAdapters1(This,Adapter,ppAdapter) \
  1171. ( (This)->lpVtbl -> EnumAdapters1(This,Adapter,ppAdapter) )
  1172. #define IDXGIFactory7_IsCurrent(This) \
  1173. ( (This)->lpVtbl -> IsCurrent(This) )
  1174. #define IDXGIFactory7_IsWindowedStereoEnabled(This) \
  1175. ( (This)->lpVtbl -> IsWindowedStereoEnabled(This) )
  1176. #define IDXGIFactory7_CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) \
  1177. ( (This)->lpVtbl -> CreateSwapChainForHwnd(This,pDevice,hWnd,pDesc,pFullscreenDesc,pRestrictToOutput,ppSwapChain) )
  1178. #define IDXGIFactory7_CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) \
  1179. ( (This)->lpVtbl -> CreateSwapChainForCoreWindow(This,pDevice,pWindow,pDesc,pRestrictToOutput,ppSwapChain) )
  1180. #define IDXGIFactory7_GetSharedResourceAdapterLuid(This,hResource,pLuid) \
  1181. ( (This)->lpVtbl -> GetSharedResourceAdapterLuid(This,hResource,pLuid) )
  1182. #define IDXGIFactory7_RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) \
  1183. ( (This)->lpVtbl -> RegisterStereoStatusWindow(This,WindowHandle,wMsg,pdwCookie) )
  1184. #define IDXGIFactory7_RegisterStereoStatusEvent(This,hEvent,pdwCookie) \
  1185. ( (This)->lpVtbl -> RegisterStereoStatusEvent(This,hEvent,pdwCookie) )
  1186. #define IDXGIFactory7_UnregisterStereoStatus(This,dwCookie) \
  1187. ( (This)->lpVtbl -> UnregisterStereoStatus(This,dwCookie) )
  1188. #define IDXGIFactory7_RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) \
  1189. ( (This)->lpVtbl -> RegisterOcclusionStatusWindow(This,WindowHandle,wMsg,pdwCookie) )
  1190. #define IDXGIFactory7_RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) \
  1191. ( (This)->lpVtbl -> RegisterOcclusionStatusEvent(This,hEvent,pdwCookie) )
  1192. #define IDXGIFactory7_UnregisterOcclusionStatus(This,dwCookie) \
  1193. ( (This)->lpVtbl -> UnregisterOcclusionStatus(This,dwCookie) )
  1194. #define IDXGIFactory7_CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) \
  1195. ( (This)->lpVtbl -> CreateSwapChainForComposition(This,pDevice,pDesc,pRestrictToOutput,ppSwapChain) )
  1196. #define IDXGIFactory7_GetCreationFlags(This) \
  1197. ( (This)->lpVtbl -> GetCreationFlags(This) )
  1198. #define IDXGIFactory7_EnumAdapterByLuid(This,AdapterLuid,riid,ppvAdapter) \
  1199. ( (This)->lpVtbl -> EnumAdapterByLuid(This,AdapterLuid,riid,ppvAdapter) )
  1200. #define IDXGIFactory7_EnumWarpAdapter(This,riid,ppvAdapter) \
  1201. ( (This)->lpVtbl -> EnumWarpAdapter(This,riid,ppvAdapter) )
  1202. #define IDXGIFactory7_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \
  1203. ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) )
  1204. #define IDXGIFactory7_EnumAdapterByGpuPreference(This,Adapter,GpuPreference,riid,ppvAdapter) \
  1205. ( (This)->lpVtbl -> EnumAdapterByGpuPreference(This,Adapter,GpuPreference,riid,ppvAdapter) )
  1206. #define IDXGIFactory7_RegisterAdaptersChangedEvent(This,hEvent,pdwCookie) \
  1207. ( (This)->lpVtbl -> RegisterAdaptersChangedEvent(This,hEvent,pdwCookie) )
  1208. #define IDXGIFactory7_UnregisterAdaptersChangedEvent(This,dwCookie) \
  1209. ( (This)->lpVtbl -> UnregisterAdaptersChangedEvent(This,dwCookie) )
  1210. #endif /* COBJMACROS */
  1211. #endif /* C style interface */
  1212. #endif /* __IDXGIFactory7_INTERFACE_DEFINED__ */
  1213. /* interface __MIDL_itf_dxgi1_6_0000_0004 */
  1214. /* [local] */
  1215. #if defined(NTDDI_VERSION) && (NTDDI_VERSION >= NTDDI_WIN10_NI)
  1216. HRESULT WINAPI DXGIDisableVBlankVirtualization();
  1217. #endif
  1218. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */
  1219. #pragma endregion
  1220. DEFINE_GUID(IID_IDXGIAdapter4,0x3c8d99d1,0x4fbf,0x4181,0xa8,0x2c,0xaf,0x66,0xbf,0x7b,0xd2,0x4e);
  1221. DEFINE_GUID(IID_IDXGIOutput6,0x068346e8,0xaaec,0x4b84,0xad,0xd7,0x13,0x7f,0x51,0x3f,0x77,0xa1);
  1222. DEFINE_GUID(IID_IDXGIFactory6,0xc1b6694f,0xff09,0x44a9,0xb0,0x3c,0x77,0x90,0x0a,0x0a,0x1d,0x17);
  1223. DEFINE_GUID(IID_IDXGIFactory7,0xa4966eed,0x76db,0x44da,0x84,0xc1,0xee,0x9a,0x7a,0xfb,0x20,0xa8);
  1224. extern RPC_IF_HANDLE __MIDL_itf_dxgi1_6_0000_0004_v0_0_c_ifspec;
  1225. extern RPC_IF_HANDLE __MIDL_itf_dxgi1_6_0000_0004_v0_0_s_ifspec;
  1226. /* Additional Prototypes for ALL interfaces */
  1227. /* end of Additional Prototypes */
  1228. #ifdef __cplusplus
  1229. }
  1230. #endif
  1231. #endif