d3dx8: Add a few tests for MatrixStack.
[wine] / dlls / d3d10core / d3d10core_private.h
1 /*
2  * Copyright 2008 Henri Verbeet for CodeWeavers
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 #ifndef __WINE_D3D10CORE_PRIVATE_H
20 #define __WINE_D3D10CORE_PRIVATE_H
21
22 #include "wine/debug.h"
23
24 #define COBJMACROS
25 #include "winbase.h"
26 #include "winuser.h"
27 #include "objbase.h"
28
29 #include "d3d10.h"
30
31 /* TRACE helper functions */
32 const char *debug_d3d10_primitive_topology(D3D10_PRIMITIVE_TOPOLOGY topology);
33 const char *debug_dxgi_format(DXGI_FORMAT format);
34
35 /* IDirect3D10Device */
36 extern const struct ID3D10DeviceVtbl d3d10_device_vtbl;
37 extern const struct IUnknownVtbl d3d10_device_inner_unknown_vtbl;
38 struct d3d10_device
39 {
40     const struct ID3D10DeviceVtbl *vtbl;
41     const struct IUnknownVtbl *inner_unknown_vtbl;
42     IUnknown *outer_unknown;
43     LONG refcount;
44 };
45
46 /* Layered device */
47 enum dxgi_device_layer_id
48 {
49     DXGI_DEVICE_LAYER_DEBUG1        = 0x8,
50     DXGI_DEVICE_LAYER_THREAD_SAFE   = 0x10,
51     DXGI_DEVICE_LAYER_DEBUG2        = 0x20,
52     DXGI_DEVICE_LAYER_SWITCH_TO_REF = 0x30,
53     DXGI_DEVICE_LAYER_D3D10_DEVICE  = 0xffffffff,
54 };
55
56 struct layer_get_size_args
57 {
58     DWORD unknown0;
59     DWORD unknown1;
60     DWORD *unknown2;
61     DWORD *unknown3;
62     IDXGIAdapter *adapter;
63     WORD interface_major;
64     WORD interface_minor;
65     WORD version_build;
66     WORD version_revision;
67 };
68
69 struct dxgi_device_layer
70 {
71     enum dxgi_device_layer_id id;
72     HRESULT (WINAPI *init)(enum dxgi_device_layer_id id, DWORD *count, DWORD *values);
73     UINT (WINAPI *get_size)(enum dxgi_device_layer_id id, struct layer_get_size_args *args, DWORD unknown0);
74     HRESULT (WINAPI *create)(enum dxgi_device_layer_id id, void **layer_base, DWORD unknown0,
75             void *device_object, REFIID riid, void **device_layer);
76 };
77
78 HRESULT WINAPI DXGID3D10CreateDevice(HMODULE d3d10core, IDXGIFactory *factory, IDXGIAdapter *adapter,
79         UINT flags, DWORD unknown0, void **device);
80 HRESULT WINAPI DXGID3D10RegisterLayers(const struct dxgi_device_layer *layers, UINT layer_count);
81
82 #endif /* __WINE_D3D10CORE_PRIVATE_H */