Commit 0e2bbb21 authored by Andrey Gusev's avatar Andrey Gusev Committed by Alexandre Julliard

d3dx11: Add D3DX11FilterTexture stub.

parent 72aecacf
......@@ -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
......
......@@ -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)
{
......
......@@ -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)
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment