d3dx10: Implement D3DX10GetFeatureLevel1().

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:
Nikolay Sivov 2016-04-21 21:24:45 +03:00 committed by Alexandre Julliard
parent 8a6c1d99c3
commit ef36a25aec
4 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,6 @@
MODULE = d3dx10_43.dll
IMPORTLIB = d3dx10
IMPORTS = d3d10_1
IMPORTS = d3d10_1 dxguid
C_SRCS = \
d3dx10_43_main.c

View File

@ -48,7 +48,7 @@
@ stub D3DX10CreateTextureFromResourceA(ptr long str ptr ptr ptr ptr)
@ stub D3DX10CreateTextureFromResourceW(ptr long wstr ptr ptr ptr ptr)
@ stub D3DX10FilterTexture(ptr long long)
@ stub D3DX10GetFeatureLevel1(ptr ptr)
@ stdcall D3DX10GetFeatureLevel1(ptr ptr)
@ stub D3DX10GetImageInfoFromFileA(str ptr ptr ptr)
@ stub D3DX10GetImageInfoFromFileW(wstr ptr ptr ptr)
@ stub D3DX10GetImageInfoFromMemory(ptr long ptr ptr ptr)

View File

@ -142,3 +142,10 @@ HRESULT WINAPI D3DX10CreateDevice(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE drive
return hr;
}
HRESULT WINAPI D3DX10GetFeatureLevel1(ID3D10Device *device, ID3D10Device1 **device1)
{
TRACE("device %p, device1 %p.\n", device, device1);
return ID3D10Device_QueryInterface(device, &IID_ID3D10Device1, (void **)device1);
}

View File

@ -68,3 +68,4 @@ 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);")
cpp_quote("HRESULT WINAPI D3DX10GetFeatureLevel1(ID3D10Device *device, ID3D10Device1 **device1);")