d3dx11: Add D3DX11FilterTexture stub.

Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Andrey Gusev 2017-04-09 21:17:15 +03:00 committed by Alexandre Julliard
parent 72aecacf94
commit 0e2bbb210a
4 changed files with 32 additions and 2 deletions

View File

@ -26,7 +26,7 @@
@ stub D3DX11CreateTextureFromResourceA
@ stub D3DX11CreateTextureFromResourceW
@ stub D3DX11CreateThreadPump
@ stub D3DX11FilterTexture
@ stdcall D3DX11FilterTexture(ptr ptr long long) d3dx11_43.D3DX11FilterTexture
@ stub D3DX11GetImageInfoFromFileA
@ stub D3DX11GetImageInfoFromFileW
@ stdcall D3DX11GetImageInfoFromMemory(ptr long ptr ptr ptr) d3dx11_43.D3DX11GetImageInfoFromMemory

View File

@ -61,6 +61,13 @@ BOOL WINAPI D3DX11CheckVersion(UINT d3dsdkversion, UINT d3dxsdkversion)
return FALSE;
}
HRESULT WINAPI D3DX11FilterTexture(ID3D11DeviceContext *context, ID3D11Resource *texture, UINT src_level, UINT filter)
{
FIXME("context %p, texture %p, src_level %u, filter %#x stub!\n", context, texture, src_level, filter);
return E_NOTIMPL;
}
HRESULT WINAPI D3DX11GetImageInfoFromMemory(const void *src_data, SIZE_T src_data_size, ID3DX11ThreadPump *pump,
D3DX11_IMAGE_INFO *img_info, HRESULT *hresult)
{

View File

@ -26,7 +26,7 @@
@ stub D3DX11CreateTextureFromResourceA
@ stub D3DX11CreateTextureFromResourceW
@ stub D3DX11CreateThreadPump
@ stub D3DX11FilterTexture
@ stdcall D3DX11FilterTexture(ptr ptr long long)
@ stub D3DX11GetImageInfoFromFileA
@ stub D3DX11GetImageInfoFromFileW
@ stdcall D3DX11GetImageInfoFromMemory(ptr long ptr ptr ptr)

View File

@ -21,6 +21,27 @@
#ifndef __D3DX11TEX_H__
#define __D3DX11TEX_H__
typedef enum D3DX11_FILTER_FLAG
{
D3DX11_FILTER_NONE = 0x00000001,
D3DX11_FILTER_POINT = 0x00000002,
D3DX11_FILTER_LINEAR = 0x00000003,
D3DX11_FILTER_TRIANGLE = 0x00000004,
D3DX11_FILTER_BOX = 0x00000005,
D3DX11_FILTER_MIRROR_U = 0x00010000,
D3DX11_FILTER_MIRROR_V = 0x00020000,
D3DX11_FILTER_MIRROR_W = 0x00040000,
D3DX11_FILTER_MIRROR = 0x00070000,
D3DX11_FILTER_DITHER = 0x00080000,
D3DX11_FILTER_DITHER_DIFFUSION = 0x00100000,
D3DX11_FILTER_SRGB_IN = 0x00200000,
D3DX11_FILTER_SRGB_OUT = 0x00400000,
D3DX11_FILTER_SRGB = 0x00600000,
} D3DX11_FILTER_FLAG;
typedef enum D3DX11_IMAGE_FILE_FORMAT
{
D3DX11_IFF_BMP = 0,
@ -93,6 +114,8 @@ HRESULT WINAPI D3DX11CreateShaderResourceViewFromMemory(ID3D11Device *device, co
HRESULT WINAPI D3DX11CreateTextureFromMemory(ID3D11Device *device, const void *src_data, SIZE_T src_data_size,
D3DX11_IMAGE_LOAD_INFO *loadinfo, ID3DX11ThreadPump *pump, ID3D11Resource **texture, HRESULT *hresult);
HRESULT WINAPI D3DX11FilterTexture(ID3D11DeviceContext *context, ID3D11Resource *texture, UINT src_level, UINT filter);
HRESULT WINAPI D3DX11GetImageInfoFromMemory(const void *src_data, SIZE_T src_data_size, ID3DX11ThreadPump *pump,
D3DX11_IMAGE_INFO *img_info, HRESULT *hresult);