1 | /*
|
---|
2 | * Copyright 2007 Andras Kovacs
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | import "oaidl.idl";
|
---|
29 | import "ocidl.idl";
|
---|
30 | import "dxgitype.h";
|
---|
31 |
|
---|
32 | const UINT _FACDXGI = 0x87a;
|
---|
33 |
|
---|
34 | cpp_quote("#define MAKE_DXGI_STATUS(x) MAKE_HRESULT(0, _FACDXGI, x)")
|
---|
35 | cpp_quote("#define DXGI_STATUS_OCCLUDED MAKE_DXGI_STATUS(1)")
|
---|
36 | cpp_quote("#define DXGI_STATUS_CLIPPED MAKE_DXGI_STATUS(2)")
|
---|
37 | cpp_quote("#define DXGI_STATUS_NO_REDIRECTION MAKE_DXGI_STATUS(4)")
|
---|
38 | cpp_quote("#define DXGI_STATUS_NO_DESKTOP_ACCESS MAKE_DXGI_STATUS(5)")
|
---|
39 | cpp_quote("#define DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE MAKE_DXGI_STATUS(6)")
|
---|
40 | cpp_quote("#define DXGI_STATUS_MODE_CHANGED MAKE_DXGI_STATUS(7)")
|
---|
41 | cpp_quote("#define DXGI_STATUS_MODE_CHANGE_IN_PROGRESS MAKE_DXGI_STATUS(8)")
|
---|
42 |
|
---|
43 | cpp_quote("#define MAKE_DXGI_HRESULT(x) MAKE_HRESULT(1, _FACDXGI, x)")
|
---|
44 | cpp_quote("#define DXGI_ERROR_INVALID_CALL MAKE_DXGI_HRESULT(1)")
|
---|
45 | cpp_quote("#define DXGI_ERROR_NOT_FOUND MAKE_DXGI_HRESULT(2)")
|
---|
46 | cpp_quote("#define DXGI_ERROR_MORE_DATA MAKE_DXGI_HRESULT(3)")
|
---|
47 | cpp_quote("#define DXGI_ERROR_UNSUPPORTED MAKE_DXGI_HRESULT(4)")
|
---|
48 | cpp_quote("#define DXGI_ERROR_DEVICE_REMOVED MAKE_DXGI_HRESULT(5)")
|
---|
49 | cpp_quote("#define DXGI_ERROR_DEVICE_HUNG MAKE_DXGI_HRESULT(6)")
|
---|
50 | cpp_quote("#define DXGI_ERROR_DEVICE_RESET MAKE_DXGI_HRESULT(7)")
|
---|
51 | cpp_quote("#define DXGI_ERROR_WAS_STILL_DRAWING MAKE_DXGI_HRESULT(10)")
|
---|
52 | cpp_quote("#define DXGI_ERROR_FRAME_STATISTICS_DISJOINT MAKE_DXGI_HRESULT(11)")
|
---|
53 | cpp_quote("#define DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE MAKE_DXGI_HRESULT(12)")
|
---|
54 | cpp_quote("#define DXGI_ERROR_DRIVER_INTERNAL_ERROR MAKE_DXGI_HRESULT(32)")
|
---|
55 | cpp_quote("#define DXGI_ERROR_NONEXCLUSIVE MAKE_DXGI_HRESULT(33)")
|
---|
56 | cpp_quote("#define DXGI_ERROR_NOT_CURRENTLY_AVAILABLE MAKE_DXGI_HRESULT(34)")
|
---|
57 |
|
---|
58 | cpp_quote("#if 0")
|
---|
59 | typedef HANDLE HMONITOR;
|
---|
60 | typedef struct _LUID {
|
---|
61 | DWORD LowPart;
|
---|
62 | LONG HighPart;
|
---|
63 | } LUID, *PLUID;
|
---|
64 | cpp_quote("#endif")
|
---|
65 |
|
---|
66 | typedef UINT DXGI_USAGE;
|
---|
67 | const DXGI_USAGE DXGI_USAGE_SHADER_INPUT = 0x10L;
|
---|
68 | const DXGI_USAGE DXGI_USAGE_RENDER_TARGET_OUTPUT = 0x20L;
|
---|
69 | const DXGI_USAGE DXGI_USAGE_BACK_BUFFER = 0x40L;
|
---|
70 | const DXGI_USAGE DXGI_USAGE_SHARED = 0x80L;
|
---|
71 | const DXGI_USAGE DXGI_USAGE_READ_ONLY = 0x100L;
|
---|
72 |
|
---|
73 | const UINT DXGI_ENUM_MODES_INTERLACED = 1;
|
---|
74 | const UINT DXGI_ENUM_MODES_SCALING = 2;
|
---|
75 |
|
---|
76 | typedef enum DXGI_SWAP_EFFECT {
|
---|
77 | DXGI_SWAP_EFFECT_DISCARD = 0,
|
---|
78 | DXGI_SWAP_EFFECT_SEQUENTIAL = 1,
|
---|
79 | } DXGI_SWAP_EFFECT;
|
---|
80 |
|
---|
81 | typedef enum DXGI_RESIDENCY {
|
---|
82 | DXGI_RESIDENCY_FULLY_RESIDENT = 1,
|
---|
83 | DXGI_RESIDENCY_RESIDENT_IN_SHARED_MEMORY = 2,
|
---|
84 | DXGI_RESIDENCY_EVICTED_TO_DISK = 3,
|
---|
85 | } DXGI_RESIDENCY;
|
---|
86 |
|
---|
87 | typedef struct DXGI_SURFACE_DESC {
|
---|
88 | UINT Width;
|
---|
89 | UINT Height;
|
---|
90 | DXGI_FORMAT Format;
|
---|
91 | DXGI_SAMPLE_DESC SampleDesc;
|
---|
92 | } DXGI_SURFACE_DESC;
|
---|
93 |
|
---|
94 | typedef struct DXGI_MAPPED_RECT {
|
---|
95 | INT Pitch;
|
---|
96 | BYTE *pBits;
|
---|
97 | } DXGI_MAPPED_RECT;
|
---|
98 |
|
---|
99 | typedef struct DXGI_OUTPUT_DESC {
|
---|
100 | WCHAR DeviceName[32];
|
---|
101 | RECT DesktopCoordinates;
|
---|
102 | BOOL AttachedToDesktop;
|
---|
103 | DXGI_MODE_ROTATION Rotation;
|
---|
104 | HMONITOR Monitor;
|
---|
105 | } DXGI_OUTPUT_DESC;
|
---|
106 |
|
---|
107 | typedef struct DXGI_FRAME_STATISTICS {
|
---|
108 | UINT PresentCount;
|
---|
109 | UINT PresentRefreshCount;
|
---|
110 | UINT SyncRefreshCount;
|
---|
111 | LARGE_INTEGER SyncQPCTime;
|
---|
112 | LARGE_INTEGER SyncGPUTime;
|
---|
113 | } DXGI_FRAME_STATISTICS;
|
---|
114 |
|
---|
115 | typedef struct DXGI_ADAPTER_DESC {
|
---|
116 | WCHAR Description[128];
|
---|
117 | UINT VendorId;
|
---|
118 | UINT DeviceId;
|
---|
119 | UINT SubSysId;
|
---|
120 | UINT Revision;
|
---|
121 | SIZE_T DedicatedVideoMemory;
|
---|
122 | SIZE_T DedicatedSystemMemory;
|
---|
123 | SIZE_T SharedSystemMemory;
|
---|
124 | LUID AdapterLuid;
|
---|
125 | } DXGI_ADAPTER_DESC;
|
---|
126 |
|
---|
127 | typedef enum DXGI_SWAP_CHAIN_FLAG {
|
---|
128 | DXGI_SWAP_CHAIN_FLAG_NONPREROTATED = 1,
|
---|
129 | DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH = 2,
|
---|
130 | DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE = 4
|
---|
131 | } DXGI_SWAP_CHAIN_FLAG;
|
---|
132 |
|
---|
133 | typedef struct DXGI_SWAP_CHAIN_DESC {
|
---|
134 | DXGI_MODE_DESC BufferDesc;
|
---|
135 | DXGI_SAMPLE_DESC SampleDesc;
|
---|
136 | DXGI_USAGE BufferUsage;
|
---|
137 | UINT BufferCount;
|
---|
138 | HWND OutputWindow;
|
---|
139 | BOOL Windowed;
|
---|
140 | DXGI_SWAP_EFFECT SwapEffect;
|
---|
141 | UINT Flags;
|
---|
142 | } DXGI_SWAP_CHAIN_DESC;
|
---|
143 |
|
---|
144 | typedef struct DXGI_SHARED_RESOURCE {
|
---|
145 | HANDLE Handle;
|
---|
146 | } DXGI_SHARED_RESOURCE;
|
---|
147 |
|
---|
148 | [
|
---|
149 | object,
|
---|
150 | local,
|
---|
151 | uuid(aec22fb8-76f3-4639-9be0-28eb43a67a2e)
|
---|
152 | ]
|
---|
153 | interface IDXGIObject : IUnknown
|
---|
154 | {
|
---|
155 | HRESULT SetPrivateData(
|
---|
156 | [in] REFGUID guid,
|
---|
157 | [in] UINT data_size,
|
---|
158 | [in] const void *data
|
---|
159 | );
|
---|
160 | HRESULT SetPrivateDataInterface(
|
---|
161 | [in] REFGUID guid,
|
---|
162 | [in] const IUnknown *object
|
---|
163 | );
|
---|
164 | HRESULT GetPrivateData(
|
---|
165 | [in] REFGUID guid,
|
---|
166 | [in, out] UINT *data_size,
|
---|
167 | [out] void *data
|
---|
168 | );
|
---|
169 | HRESULT GetParent(
|
---|
170 | [in] REFIID riid,
|
---|
171 | [out] void **parent
|
---|
172 | );
|
---|
173 | }
|
---|
174 |
|
---|
175 | [
|
---|
176 | object,
|
---|
177 | local,
|
---|
178 | uuid(3d3e0379-f9de-4d58-bb6c-18d62992f1a6)
|
---|
179 | ]
|
---|
180 | interface IDXGIDeviceSubObject : IDXGIObject
|
---|
181 | {
|
---|
182 | HRESULT GetDevice(
|
---|
183 | [in] REFIID riid,
|
---|
184 | [out] void **device
|
---|
185 | );
|
---|
186 | }
|
---|
187 |
|
---|
188 | [
|
---|
189 | object,
|
---|
190 | uuid(035f3ab4-482e-4e50-b41f-8a7f8bd8960b),
|
---|
191 | local,
|
---|
192 | pointer_default(unique)
|
---|
193 | ]
|
---|
194 | interface IDXGIResource : IDXGIDeviceSubObject
|
---|
195 | {
|
---|
196 | HRESULT GetSharedHandle([out] HANDLE *pSharedHandle);
|
---|
197 | HRESULT GetUsage([out] DXGI_USAGE *pUsage);
|
---|
198 | HRESULT SetEvictionPriority([in] UINT EvictionPriority);
|
---|
199 | HRESULT GetEvictionPriority([out, retval] UINT *pEvictionPriority);
|
---|
200 | }
|
---|
201 |
|
---|
202 | [
|
---|
203 | object,
|
---|
204 | uuid(9d8e1289-d7b3-465f-8126-250e349af85d),
|
---|
205 | local,
|
---|
206 | pointer_default(unique)
|
---|
207 | ]
|
---|
208 | interface IDXGIKeyedMutex : IDXGIDeviceSubObject
|
---|
209 | {
|
---|
210 | HRESULT AcquireSync([in] UINT64 Key, [in] DWORD dwMilliseconds);
|
---|
211 | HRESULT ReleaseSync([in] UINT64 Key);
|
---|
212 | }
|
---|
213 |
|
---|
214 | [
|
---|
215 | object,
|
---|
216 | local,
|
---|
217 | uuid(cafcb56c-6ac3-4889-bf47-9e23bbd260ec)
|
---|
218 | ]
|
---|
219 | interface IDXGISurface : IDXGIDeviceSubObject
|
---|
220 | {
|
---|
221 | HRESULT GetDesc(
|
---|
222 | [out] DXGI_SURFACE_DESC *desc
|
---|
223 | );
|
---|
224 | HRESULT Map(
|
---|
225 | [out] DXGI_MAPPED_RECT *mapped_rect,
|
---|
226 | [in] UINT flags
|
---|
227 | );
|
---|
228 | HRESULT Unmap(
|
---|
229 | );
|
---|
230 | }
|
---|
231 |
|
---|
232 | [
|
---|
233 | object,
|
---|
234 | local,
|
---|
235 | uuid(ae02eedb-c735-4690-8d52-5a8dc20213aa)
|
---|
236 | ]
|
---|
237 | interface IDXGIOutput : IDXGIObject
|
---|
238 | {
|
---|
239 | HRESULT GetDesc(
|
---|
240 | [out] DXGI_OUTPUT_DESC *desc
|
---|
241 | );
|
---|
242 | HRESULT GetDisplayModeList(
|
---|
243 | [in] DXGI_FORMAT format,
|
---|
244 | [in] UINT flags,
|
---|
245 | [in, out] UINT *mode_count,
|
---|
246 | [out] DXGI_MODE_DESC *desc
|
---|
247 | );
|
---|
248 | HRESULT FindClosestMatchingMode(
|
---|
249 | [in] const DXGI_MODE_DESC *mode,
|
---|
250 | [out] DXGI_MODE_DESC *closest_match,
|
---|
251 | [in] IUnknown *device
|
---|
252 | );
|
---|
253 | HRESULT WaitForVBlank(
|
---|
254 | );
|
---|
255 | HRESULT TakeOwnership(
|
---|
256 | [in] IUnknown *device,
|
---|
257 | [in] BOOL exclusive
|
---|
258 | );
|
---|
259 | void ReleaseOwnership(
|
---|
260 | );
|
---|
261 | HRESULT GetGammaControlCapabilities(
|
---|
262 | [out] DXGI_GAMMA_CONTROL_CAPABILITIES *gamma_caps
|
---|
263 | );
|
---|
264 | HRESULT SetGammaControl(
|
---|
265 | [in] const DXGI_GAMMA_CONTROL *gamma_control
|
---|
266 | );
|
---|
267 | HRESULT GetGammaControl(
|
---|
268 | [out] DXGI_GAMMA_CONTROL *gamma_control
|
---|
269 | );
|
---|
270 | HRESULT SetDisplaySurface(
|
---|
271 | [in] IDXGISurface *surface
|
---|
272 | );
|
---|
273 | HRESULT GetDisplaySurfaceData(
|
---|
274 | [in] IDXGISurface *surface
|
---|
275 | );
|
---|
276 | HRESULT GetFrameStatistics(
|
---|
277 | [out] DXGI_FRAME_STATISTICS *stats
|
---|
278 | );
|
---|
279 | }
|
---|
280 |
|
---|
281 | [
|
---|
282 | object,
|
---|
283 | local,
|
---|
284 | uuid(2411e7e1-12ac-4ccf-bd14-9798e8534dc0)
|
---|
285 | ]
|
---|
286 | interface IDXGIAdapter : IDXGIObject
|
---|
287 | {
|
---|
288 | HRESULT EnumOutputs(
|
---|
289 | [in] UINT output_idx,
|
---|
290 | [in, out] IDXGIOutput **output
|
---|
291 | );
|
---|
292 | HRESULT GetDesc(
|
---|
293 | [out] DXGI_ADAPTER_DESC *desc
|
---|
294 | );
|
---|
295 | HRESULT CheckInterfaceSupport(
|
---|
296 | [in] REFGUID guid,
|
---|
297 | [out] LARGE_INTEGER *umd_version
|
---|
298 | );
|
---|
299 | }
|
---|
300 |
|
---|
301 | cpp_quote("#define DXGI_MAX_SWAP_CHAIN_BUFFERS (16)")
|
---|
302 |
|
---|
303 | cpp_quote("#define DXGI_PRESENT_TEST __MSABI_LONG(0x00000001U)")
|
---|
304 | cpp_quote("#define DXGI_PRESENT_DO_NOT_SEQUENCE __MSABI_LONG(0x00000002U)")
|
---|
305 | cpp_quote("#define DXGI_PRESENT_RESTART __MSABI_LONG(0x00000004U)")
|
---|
306 | cpp_quote("#define DXGI_PRESENT_DO_NOT_WAIT __MSABI_LONG(0x00000008U)")
|
---|
307 | cpp_quote("#define DXGI_PRESENT_STEREO_PREFER_RIGHT __MSABI_LONG(0x00000010U)")
|
---|
308 | cpp_quote("#define DXGI_PRESENT_STEREO_TEMPORARY_MONO __MSABI_LONG(0x00000020U)")
|
---|
309 | cpp_quote("#define DXGI_PRESENT_RESTRICT_TO_OUTPUT __MSABI_LONG(0x00000040U)")
|
---|
310 |
|
---|
311 | [
|
---|
312 | object,
|
---|
313 | local,
|
---|
314 | uuid(310d36a0-d2e7-4c0a-aa04-6a9d23b8886a)
|
---|
315 | ]
|
---|
316 | interface IDXGISwapChain : IDXGIDeviceSubObject
|
---|
317 | {
|
---|
318 | HRESULT Present(
|
---|
319 | [in] UINT sync_interval,
|
---|
320 | [in] UINT flags
|
---|
321 | );
|
---|
322 | HRESULT GetBuffer(
|
---|
323 | [in] UINT buffer_idx,
|
---|
324 | [in] REFIID riid,
|
---|
325 | [in, out] void **surface
|
---|
326 | );
|
---|
327 | HRESULT SetFullscreenState(
|
---|
328 | [in] BOOL fullscreen,
|
---|
329 | [in] IDXGIOutput *target
|
---|
330 | );
|
---|
331 | HRESULT GetFullscreenState(
|
---|
332 | [out] BOOL *fullscreen,
|
---|
333 | [out] IDXGIOutput **target
|
---|
334 | );
|
---|
335 | HRESULT GetDesc(
|
---|
336 | [out] DXGI_SWAP_CHAIN_DESC *desc
|
---|
337 | );
|
---|
338 | HRESULT ResizeBuffers(
|
---|
339 | [in] UINT buffer_count,
|
---|
340 | [in] UINT width,
|
---|
341 | [in] UINT height,
|
---|
342 | [in] DXGI_FORMAT format,
|
---|
343 | [in] UINT flags
|
---|
344 | );
|
---|
345 | HRESULT ResizeTarget(
|
---|
346 | [in] const DXGI_MODE_DESC *target_mode_desc
|
---|
347 | );
|
---|
348 | HRESULT GetContainingOutput(
|
---|
349 | [out] IDXGIOutput **output
|
---|
350 | );
|
---|
351 | HRESULT GetFrameStatistics(
|
---|
352 | [out] DXGI_FRAME_STATISTICS *stats
|
---|
353 | );
|
---|
354 | HRESULT GetLastPresentCount(
|
---|
355 | [out] UINT *last_present_count
|
---|
356 | );
|
---|
357 | }
|
---|
358 |
|
---|
359 | cpp_quote("#define DXGI_MWA_NO_WINDOW_CHANGES 0x1")
|
---|
360 | cpp_quote("#define DXGI_MWA_NO_ALT_ENTER 0x2")
|
---|
361 | cpp_quote("#define DXGI_MWA_NO_PRINT_SCREEN 0x4")
|
---|
362 | cpp_quote("#define DXGI_MWA_VALID 0x7")
|
---|
363 |
|
---|
364 | [
|
---|
365 | object,
|
---|
366 | local,
|
---|
367 | uuid(7b7166ec-21c7-44ae-b21a-c9ae321ae369)
|
---|
368 | ]
|
---|
369 | interface IDXGIFactory : IDXGIObject
|
---|
370 | {
|
---|
371 | HRESULT EnumAdapters(
|
---|
372 | [in] UINT adapter_idx,
|
---|
373 | [out] IDXGIAdapter **adapter
|
---|
374 | );
|
---|
375 | HRESULT MakeWindowAssociation(
|
---|
376 | [in] HWND window,
|
---|
377 | [in] UINT flags
|
---|
378 | );
|
---|
379 | HRESULT GetWindowAssociation(
|
---|
380 | [in] HWND *window
|
---|
381 | );
|
---|
382 | HRESULT CreateSwapChain(
|
---|
383 | [in] IUnknown *device,
|
---|
384 | [in] DXGI_SWAP_CHAIN_DESC *desc,
|
---|
385 | [out] IDXGISwapChain **swapchain
|
---|
386 | );
|
---|
387 | HRESULT CreateSoftwareAdapter(
|
---|
388 | [in] HMODULE swrast,
|
---|
389 | [out] IDXGIAdapter **adapter
|
---|
390 | );
|
---|
391 | }
|
---|
392 |
|
---|
393 | [local] HRESULT __stdcall CreateDXGIFactory(REFIID riid, void **factory);
|
---|
394 |
|
---|
395 | [
|
---|
396 | object,
|
---|
397 | local,
|
---|
398 | uuid(54ec77fa-1377-44e6-8c32-88fd5f44c84c)
|
---|
399 | ]
|
---|
400 | interface IDXGIDevice : IDXGIObject
|
---|
401 | {
|
---|
402 | HRESULT GetAdapter(
|
---|
403 | [out] IDXGIAdapter **adapter
|
---|
404 | );
|
---|
405 | HRESULT CreateSurface(
|
---|
406 | [in] const DXGI_SURFACE_DESC *desc,
|
---|
407 | [in] UINT surface_count,
|
---|
408 | [in] DXGI_USAGE usage,
|
---|
409 | [in] const DXGI_SHARED_RESOURCE *shared_resource,
|
---|
410 | [out] IDXGISurface **surface
|
---|
411 | );
|
---|
412 | HRESULT QueryResourceResidency(
|
---|
413 | [in] IUnknown *const *resources,
|
---|
414 | [out] DXGI_RESIDENCY *residency,
|
---|
415 | [in] UINT resource_count
|
---|
416 | );
|
---|
417 | HRESULT SetGPUThreadPriority(
|
---|
418 | [in] INT priority
|
---|
419 | );
|
---|
420 | HRESULT GetGPUThreadPriority(
|
---|
421 | [out] INT *priority
|
---|
422 | );
|
---|
423 | }
|
---|
424 |
|
---|
425 | typedef enum DXGI_ADAPTER_FLAG {
|
---|
426 | DXGI_ADAPTER_FLAG_NONE = 0,
|
---|
427 | DXGI_ADAPTER_FLAG_REMOTE = 1,
|
---|
428 | DXGI_ADAPTER_FLAG_FORCE_DWORD = 0xFFFFFFFF
|
---|
429 | } DXGI_ADAPTER_FLAG;
|
---|
430 |
|
---|
431 | typedef struct DXGI_ADAPTER_DESC1 {
|
---|
432 | WCHAR Description[128];
|
---|
433 | UINT VendorId;
|
---|
434 | UINT DeviceId;
|
---|
435 | UINT SubSysId;
|
---|
436 | UINT Revision;
|
---|
437 | SIZE_T DedicatedVideoMemory;
|
---|
438 | SIZE_T DedicatedSystemMemory;
|
---|
439 | SIZE_T SharedSystemMemory;
|
---|
440 | LUID AdapterLuid;
|
---|
441 | UINT Flags;
|
---|
442 | } DXGI_ADAPTER_DESC1;
|
---|
443 |
|
---|
444 | [
|
---|
445 | object,
|
---|
446 | uuid(29038f61-3839-4626-91fd-086879011a05),
|
---|
447 | local,
|
---|
448 | pointer_default(unique)
|
---|
449 | ]
|
---|
450 | interface IDXGIAdapter1 : IDXGIAdapter
|
---|
451 | {
|
---|
452 | HRESULT GetDesc1([out] DXGI_ADAPTER_DESC1 *pDesc);
|
---|
453 | }
|
---|
454 |
|
---|
455 | [
|
---|
456 | object,
|
---|
457 | uuid(770aae78-f26f-4dba-a829-253c83d1b387),
|
---|
458 | local,
|
---|
459 | pointer_default(unique)
|
---|
460 | ]
|
---|
461 | interface IDXGIFactory1 : IDXGIFactory
|
---|
462 | {
|
---|
463 | HRESULT EnumAdapters1([in] UINT Adapter, [out] IDXGIAdapter1 **ppAdapter);
|
---|
464 | BOOL IsCurrent();
|
---|
465 | }
|
---|