Commit 943ed2c3 authored by Andrey Gusev's avatar Andrey Gusev Committed by Alexandre Julliard

d3dx11: Add D3DX11CreateShaderResourceViewFromMemory stub.

parent a95dff65
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
@ stub D3DX11CreateAsyncTextureProcessor @ stub D3DX11CreateAsyncTextureProcessor
@ stub D3DX11CreateShaderResourceViewFromFileA @ stub D3DX11CreateShaderResourceViewFromFileA
@ stub D3DX11CreateShaderResourceViewFromFileW @ stub D3DX11CreateShaderResourceViewFromFileW
@ stub D3DX11CreateShaderResourceViewFromMemory @ stub D3DX11CreateShaderResourceViewFromMemory(ptr ptr long ptr ptr ptr ptr)
@ stub D3DX11CreateShaderResourceViewFromResourceA @ stub D3DX11CreateShaderResourceViewFromResourceA
@ stub D3DX11CreateShaderResourceViewFromResourceW @ stub D3DX11CreateShaderResourceViewFromResourceW
@ stub D3DX11CreateTextureFromFileA @ stub D3DX11CreateTextureFromFileA
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
@ stub D3DX11CreateAsyncTextureProcessor @ stub D3DX11CreateAsyncTextureProcessor
@ stub D3DX11CreateShaderResourceViewFromFileA @ stub D3DX11CreateShaderResourceViewFromFileA
@ stub D3DX11CreateShaderResourceViewFromFileW @ stub D3DX11CreateShaderResourceViewFromFileW
@ stub D3DX11CreateShaderResourceViewFromMemory @ stub D3DX11CreateShaderResourceViewFromMemory(ptr ptr long ptr ptr ptr ptr)
@ stub D3DX11CreateShaderResourceViewFromResourceA @ stub D3DX11CreateShaderResourceViewFromResourceA
@ stub D3DX11CreateShaderResourceViewFromResourceW @ stub D3DX11CreateShaderResourceViewFromResourceW
@ stub D3DX11CreateTextureFromFileA @ stub D3DX11CreateTextureFromFileA
......
...@@ -25,6 +25,16 @@ ...@@ -25,6 +25,16 @@
WINE_DEFAULT_DEBUG_CHANNEL(d3dx); WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
HRESULT WINAPI D3DX11CreateShaderResourceViewFromMemory(ID3D11Device *device, const void *data,
SIZE_T data_size, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump,
ID3D11ShaderResourceView **view, HRESULT *hresult)
{
FIXME("device %p, data %p, data_size %lu, load_info %p, pump %p, view %p, hresult %p stub!\n",
device, data, data_size, load_info, pump, view, hresult);
return E_NOTIMPL;
}
HRESULT WINAPI D3DX11CreateTextureFromMemory(ID3D11Device *device, const void *data, HRESULT WINAPI D3DX11CreateTextureFromMemory(ID3D11Device *device, const void *data,
SIZE_T data_size, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, SIZE_T data_size, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump,
ID3D11Resource **texture, HRESULT *hresult) ID3D11Resource **texture, HRESULT *hresult)
......
...@@ -86,6 +86,10 @@ typedef struct D3DX11_IMAGE_LOAD_INFO ...@@ -86,6 +86,10 @@ typedef struct D3DX11_IMAGE_LOAD_INFO
extern "C" { extern "C" {
#endif #endif
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 D3DX11CreateTextureFromMemory(ID3D11Device *device, const void *src_data, SIZE_T src_data_size, 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); D3DX11_IMAGE_LOAD_INFO *loadinfo, ID3DX11ThreadPump *pump, ID3D11Resource **texture, 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