d3d10core: Add a stub ID3D10InputLayout implementation.
[wine/multimedia.git] / dlls / d3d10core / d3d10core_private.h
blobc5e919d6447713197fce4d4274c69586aa792dd1
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_D3D10CORE_PRIVATE_H
20 #define __WINE_D3D10CORE_PRIVATE_H
22 #include "wine/debug.h"
24 #define COBJMACROS
25 #include "winbase.h"
26 #include "wingdi.h"
27 #include "winuser.h"
28 #include "objbase.h"
30 #include "d3d10.h"
31 #ifdef D3D10CORE_INIT_GUID
32 #include "initguid.h"
33 #endif
34 #include "wine/wined3d.h"
35 #include "wine/winedxgi.h"
37 /* TRACE helper functions */
38 const char *debug_d3d10_primitive_topology(D3D10_PRIMITIVE_TOPOLOGY topology);
39 const char *debug_dxgi_format(DXGI_FORMAT format);
41 DXGI_FORMAT dxgi_format_from_wined3dformat(WINED3DFORMAT format);
42 WINED3DFORMAT wined3dformat_from_dxgi_format(DXGI_FORMAT format);
44 /* IDirect3D10Device */
45 extern const struct ID3D10DeviceVtbl d3d10_device_vtbl;
46 extern const struct IUnknownVtbl d3d10_device_inner_unknown_vtbl;
47 extern const struct IWineD3DDeviceParentVtbl d3d10_wined3d_device_parent_vtbl;
48 struct d3d10_device
50 const struct ID3D10DeviceVtbl *vtbl;
51 const struct IUnknownVtbl *inner_unknown_vtbl;
52 const struct IWineD3DDeviceParentVtbl *device_parent_vtbl;
53 IUnknown *outer_unknown;
54 LONG refcount;
56 IWineD3DDevice *wined3d_device;
59 /* ID3D10Texture2D */
60 extern const struct ID3D10Texture2DVtbl d3d10_texture2d_vtbl;
61 struct d3d10_texture2d
63 const struct ID3D10Texture2DVtbl *vtbl;
64 LONG refcount;
66 IUnknown *dxgi_surface;
67 IWineD3DSurface *wined3d_surface;
68 D3D10_TEXTURE2D_DESC desc;
71 /* ID3D10Buffer */
72 extern const struct ID3D10BufferVtbl d3d10_buffer_vtbl;
73 struct d3d10_buffer
75 const struct ID3D10BufferVtbl *vtbl;
76 LONG refcount;
78 IWineD3DBuffer *wined3d_buffer;
81 /* ID3D10RenderTargetView */
82 extern const struct ID3D10RenderTargetViewVtbl d3d10_rendertarget_view_vtbl;
83 struct d3d10_rendertarget_view
85 const struct ID3D10RenderTargetViewVtbl *vtbl;
86 LONG refcount;
88 IWineD3DRendertargetView *wined3d_view;
89 D3D10_RENDER_TARGET_VIEW_DESC desc;
92 /* ID3D10InputLayout */
93 extern const struct ID3D10InputLayoutVtbl d3d10_input_layout_vtbl;
94 struct d3d10_input_layout
96 const struct ID3D10InputLayoutVtbl *vtbl;
97 LONG refcount;
100 /* Layered device */
101 enum dxgi_device_layer_id
103 DXGI_DEVICE_LAYER_DEBUG1 = 0x8,
104 DXGI_DEVICE_LAYER_THREAD_SAFE = 0x10,
105 DXGI_DEVICE_LAYER_DEBUG2 = 0x20,
106 DXGI_DEVICE_LAYER_SWITCH_TO_REF = 0x30,
107 DXGI_DEVICE_LAYER_D3D10_DEVICE = 0xffffffff,
110 struct layer_get_size_args
112 DWORD unknown0;
113 DWORD unknown1;
114 DWORD *unknown2;
115 DWORD *unknown3;
116 IDXGIAdapter *adapter;
117 WORD interface_major;
118 WORD interface_minor;
119 WORD version_build;
120 WORD version_revision;
123 struct dxgi_device_layer
125 enum dxgi_device_layer_id id;
126 HRESULT (WINAPI *init)(enum dxgi_device_layer_id id, DWORD *count, DWORD *values);
127 UINT (WINAPI *get_size)(enum dxgi_device_layer_id id, struct layer_get_size_args *args, DWORD unknown0);
128 HRESULT (WINAPI *create)(enum dxgi_device_layer_id id, void **layer_base, DWORD unknown0,
129 void *device_object, REFIID riid, void **device_layer);
132 HRESULT WINAPI DXGID3D10CreateDevice(HMODULE d3d10core, IDXGIFactory *factory, IDXGIAdapter *adapter,
133 UINT flags, DWORD unknown0, void **device);
134 HRESULT WINAPI DXGID3D10RegisterLayers(const struct dxgi_device_layer *layers, UINT layer_count);
136 #endif /* __WINE_D3D10CORE_PRIVATE_H */