kernel32: Add a stub for GetCurrentProcessorNumberEx.
[wine.git] / dlls / d3d10core / d3d10core_main.c
blob44f1e29344e8d79379fed497fb48b65d488a3dad
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
20 #include "wine/debug.h"
22 #include "initguid.h"
24 #define COBJMACROS
25 #include "d3d11.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(d3d10core);
29 HRESULT WINAPI D3D11CoreCreateDevice(IDXGIFactory *factory, IDXGIAdapter *adapter, UINT flags,
30 const D3D_FEATURE_LEVEL *feature_levels, UINT levels, ID3D11Device **device);
32 HRESULT WINAPI D3D10CoreRegisterLayers(void)
34 TRACE("\n");
36 return E_NOTIMPL;
39 HRESULT WINAPI D3D10CoreCreateDevice(IDXGIFactory *factory, IDXGIAdapter *adapter,
40 UINT flags, void *unknown0, ID3D10Device **device)
42 D3D_FEATURE_LEVEL feature_level = D3D_FEATURE_LEVEL_10_0;
43 ID3D11Device *device11;
44 HRESULT hr;
46 TRACE("factory %p, adapter %p, flags %#x, unknown0 %p, device %p.\n",
47 factory, adapter, flags, unknown0, device);
49 if (FAILED(hr = D3D11CoreCreateDevice(factory, adapter, flags, &feature_level, 1, &device11)))
50 return hr;
52 hr = ID3D11Device_QueryInterface(device11, &IID_ID3D10Device, (void **)device);
53 ID3D11Device_Release(device11);
54 if (FAILED(hr))
56 ERR("Device should implement ID3D10Device, returning E_FAIL.\n");
57 return E_FAIL;
60 return S_OK;