d3dx10: Implement D3DX10CreateDevice().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
59ffe4e321
commit
8622cdac40
|
@ -1,5 +1,6 @@
|
|||
MODULE = d3dx10_43.dll
|
||||
IMPORTLIB = d3dx10
|
||||
IMPORTS = d3d10_1
|
||||
|
||||
C_SRCS = \
|
||||
d3dx10_43_main.c
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
@ stub D3DX10CreateAsyncShaderResourceViewProcessor(ptr ptr ptr)
|
||||
@ stub D3DX10CreateAsyncTextureInfoProcessor(ptr ptr)
|
||||
@ stub D3DX10CreateAsyncTextureProcessor(ptr ptr ptr)
|
||||
@ stub D3DX10CreateDevice(ptr long long long ptr)
|
||||
@ stdcall D3DX10CreateDevice(ptr long long long ptr)
|
||||
@ stub D3DX10CreateDeviceAndSwapChain(ptr long long long ptr ptr ptr)
|
||||
@ stdcall D3DX10CreateEffectFromFileA(str ptr ptr str long long ptr ptr ptr ptr ptr ptr)
|
||||
@ stdcall D3DX10CreateEffectFromFileW(wstr ptr ptr str long long ptr ptr ptr ptr ptr ptr)
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "winuser.h"
|
||||
#include "objbase.h"
|
||||
|
||||
#include "d3d10.h"
|
||||
#include "d3d10_1.h"
|
||||
#include "d3dx10core.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
|
||||
|
@ -123,3 +123,22 @@ HRESULT WINAPI D3DX10UnsetAllDeviceObjects(ID3D10Device *device)
|
|||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
HRESULT WINAPI D3DX10CreateDevice(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE driver_type,
|
||||
HMODULE swrast, unsigned int flags, ID3D10Device **device)
|
||||
{
|
||||
HRESULT hr;
|
||||
|
||||
TRACE("adapter %p, driver_type %d, swrast %p, flags %#x, device %p.\n", adapter, driver_type,
|
||||
swrast, flags, device);
|
||||
|
||||
if (SUCCEEDED(hr = D3D10CreateDevice1(adapter, driver_type, swrast, flags, D3D10_FEATURE_LEVEL_10_1,
|
||||
D3D10_SDK_VERSION, (ID3D10Device1 **)device)))
|
||||
return hr;
|
||||
|
||||
if (SUCCEEDED(hr = D3D10CreateDevice1(adapter, driver_type, swrast, flags, D3D10_FEATURE_LEVEL_10_0,
|
||||
D3D10_SDK_VERSION, (ID3D10Device1 **)device)))
|
||||
return hr;
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
|
|
@ -66,3 +66,5 @@ interface ID3DX10ThreadPump : IUnknown
|
|||
};
|
||||
|
||||
cpp_quote("HRESULT WINAPI D3DX10UnsetAllDeviceObjects(ID3D10Device *device);")
|
||||
cpp_quote("HRESULT WINAPI D3DX10CreateDevice(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE driver_type,")
|
||||
cpp_quote(" HMODULE swrast, unsigned int flags, ID3D10Device **device);")
|
||||
|
|
Loading…
Reference in New Issue