Commit adef99a2 authored by Liam Middlebrook's avatar Liam Middlebrook Committed by Alexandre Julliard

d3dx11: Add D3DX11SaveTextureToFileA/W() stub.

parent cb79ad82
......@@ -39,6 +39,6 @@
@ stub D3DX11PreprocessShaderFromResourceA
@ stub D3DX11PreprocessShaderFromResourceW
@ stub D3DX11SHProjectCubeMap
@ stub D3DX11SaveTextureToFileA
@ stub D3DX11SaveTextureToFileW
@ stdcall D3DX11SaveTextureToFileA(ptr ptr long str)
@ stdcall D3DX11SaveTextureToFileW(ptr ptr long wstr)
@ stdcall D3DX11SaveTextureToMemory(ptr ptr long ptr long)
......@@ -39,6 +39,6 @@
@ stub D3DX11PreprocessShaderFromResourceA
@ stub D3DX11PreprocessShaderFromResourceW
@ stub D3DX11SHProjectCubeMap
@ stub D3DX11SaveTextureToFileA
@ stub D3DX11SaveTextureToFileW
@ stdcall D3DX11SaveTextureToFileA(ptr ptr long str)
@ stdcall D3DX11SaveTextureToFileW(ptr ptr long wstr)
@ stdcall D3DX11SaveTextureToMemory(ptr ptr long ptr long)
......@@ -63,6 +63,24 @@ HRESULT WINAPI D3DX11CreateTextureFromMemory(ID3D11Device *device, const void *d
return E_NOTIMPL;
}
HRESULT WINAPI D3DX11SaveTextureToFileW(ID3D11DeviceContext *context, ID3D11Resource *texture,
D3DX11_IMAGE_FILE_FORMAT format, const WCHAR *filename)
{
FIXME("context %p, texture %p, format %u, filename %s stub!\n",
context, texture, format, debugstr_w(filename));
return E_NOTIMPL;
}
HRESULT WINAPI D3DX11SaveTextureToFileA(ID3D11DeviceContext *context, ID3D11Resource *texture,
D3DX11_IMAGE_FILE_FORMAT format, const char *filename)
{
FIXME("context %p, texture %p, format %u, filename %s stub!\n",
context, texture, format, debugstr_a(filename));
return E_NOTIMPL;
}
HRESULT WINAPI D3DX11SaveTextureToMemory(ID3D11DeviceContext *context, ID3D11Resource *texture,
D3DX11_IMAGE_FILE_FORMAT format, ID3D10Blob **buffer, UINT flags)
{
......
......@@ -110,23 +110,21 @@ extern "C" {
HRESULT WINAPI D3DX11CreateShaderResourceViewFromMemory(ID3D11Device *device, const void *data,
SIZE_T data_size, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump,
ID3D11ShaderResourceView **view, HRESULT *hresult);
HRESULT WINAPI D3DX11CreateTextureFromFileA(ID3D11Device *device, const char *filename,
D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11Resource **texture,
HRESULT *hresult);
HRESULT WINAPI D3DX11CreateTextureFromFileW(ID3D11Device *device, const WCHAR *filename,
D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11Resource **texture,
HRESULT *hresult);
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);
HRESULT WINAPI D3DX11SaveTextureToFileA(ID3D11DeviceContext *context, ID3D11Resource *texture,
D3DX11_IMAGE_FILE_FORMAT format, const char *filename);
HRESULT WINAPI D3DX11SaveTextureToFileW(ID3D11DeviceContext *context, ID3D11Resource *texture,
D3DX11_IMAGE_FILE_FORMAT format, const WCHAR *filename);
HRESULT WINAPI D3DX11SaveTextureToMemory(ID3D11DeviceContext *context, ID3D11Resource *texture,
D3DX11_IMAGE_FILE_FORMAT format, ID3D10Blob **buffer, UINT flags);
......
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