push ada2d4f150af430b0cf01adcbe8b6d3e34deeeb1
[wine/hacks.git] / dlls / dxgi / dxgi_private.h
blob27d7271195293676c0497dee4543e22dd599455b
1 /*
2 * Copyright 2008 Henri Verbeet for CodeWeavers
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.
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.
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
19 #ifndef __WINE_DXGI_PRIVATE_H
20 #define __WINE_DXGI_PRIVATE_H
22 #include "wine/debug.h"
24 #define COBJMACROS
25 #include "winbase.h"
26 #include "winuser.h"
27 #include "objbase.h"
29 #include "dxgi.h"
31 /* TRACE helper functions */
32 const char *debug_dxgi_format(DXGI_FORMAT format);
34 /* IDXGIFactory */
35 extern const struct IDXGIFactoryVtbl dxgi_factory_vtbl;
36 struct dxgi_factory
38 const struct IDXGIFactoryVtbl *vtbl;
39 LONG refcount;
42 /* IDXGIDevice */
43 extern const struct IDXGIDeviceVtbl dxgi_device_vtbl;
44 struct dxgi_device
46 const struct IDXGIDeviceVtbl *vtbl;
47 IUnknown *child_layer;
48 LONG refcount;
51 /* IDXGIAdapter */
52 extern const struct IDXGIAdapterVtbl dxgi_adapter_vtbl;
53 struct dxgi_adapter
55 const struct IDXGIAdapterVtbl *vtbl;
56 LONG refcount;
59 /* IDXGISwapChain */
60 extern const struct IDXGISwapChainVtbl dxgi_swapchain_vtbl;
61 struct dxgi_swapchain
63 const struct IDXGISwapChainVtbl *vtbl;
64 LONG refcount;
67 /* Layered device */
68 enum dxgi_device_layer_id
70 DXGI_DEVICE_LAYER_DEBUG1 = 0x8,
71 DXGI_DEVICE_LAYER_THREAD_SAFE = 0x10,
72 DXGI_DEVICE_LAYER_DEBUG2 = 0x20,
73 DXGI_DEVICE_LAYER_SWITCH_TO_REF = 0x30,
74 DXGI_DEVICE_LAYER_D3D10_DEVICE = 0xffffffff,
77 struct layer_get_size_args
79 DWORD unknown0;
80 DWORD unknown1;
81 DWORD *unknown2;
82 DWORD *unknown3;
83 IDXGIAdapter *adapter;
84 WORD interface_major;
85 WORD interface_minor;
86 WORD version_build;
87 WORD version_revision;
90 struct dxgi_device_layer
92 enum dxgi_device_layer_id id;
93 HRESULT (WINAPI *init)(enum dxgi_device_layer_id id, DWORD *count, DWORD *values);
94 UINT (WINAPI *get_size)(enum dxgi_device_layer_id id, struct layer_get_size_args *args, DWORD unknown0);
95 HRESULT (WINAPI *create)(enum dxgi_device_layer_id id, void **layer_base, DWORD unknown0,
96 void *device_object, REFIID riid, void **device_layer);
99 #endif /* __WINE_DXGI_PRIVATE_H */