d3dx10: Add D3DX10LoadTextureFromTexture() stub.
Signed-off-by: Connor McAdams <conmanx360@gmail.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
aef11864a4
commit
cb79ad8217
|
@ -54,7 +54,7 @@
|
||||||
@ stdcall D3DX10GetImageInfoFromMemory(ptr long ptr ptr ptr)
|
@ stdcall D3DX10GetImageInfoFromMemory(ptr long ptr ptr ptr)
|
||||||
@ stub D3DX10GetImageInfoFromResourceA(long str ptr ptr ptr)
|
@ stub D3DX10GetImageInfoFromResourceA(long str ptr ptr ptr)
|
||||||
@ stub D3DX10GetImageInfoFromResourceW(long wstr ptr ptr ptr)
|
@ stub D3DX10GetImageInfoFromResourceW(long wstr ptr ptr ptr)
|
||||||
@ stub D3DX10LoadTextureFromTexture(ptr ptr ptr)
|
@ stdcall D3DX10LoadTextureFromTexture(ptr ptr ptr)
|
||||||
@ stub D3DX10PreprocessShaderFromFileA(str ptr ptr ptr ptr ptr)
|
@ stub D3DX10PreprocessShaderFromFileA(str ptr ptr ptr ptr ptr)
|
||||||
@ stub D3DX10PreprocessShaderFromFileW(wstr ptr ptr ptr ptr ptr)
|
@ stub D3DX10PreprocessShaderFromFileW(wstr ptr ptr ptr ptr ptr)
|
||||||
@ stdcall D3DX10PreprocessShaderFromMemory(ptr long str ptr ptr ptr ptr ptr ptr)
|
@ stdcall D3DX10PreprocessShaderFromMemory(ptr long str ptr ptr ptr ptr ptr ptr)
|
||||||
|
|
|
@ -241,3 +241,11 @@ D3DX_CPU_OPTIMIZATION WINAPI D3DXCpuOptimizations(BOOL enable)
|
||||||
|
|
||||||
return D3DX_NOT_OPTIMIZED;
|
return D3DX_NOT_OPTIMIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HRESULT WINAPI D3DX10LoadTextureFromTexture(ID3D10Resource *src_texture, D3DX10_TEXTURE_LOAD_INFO *load_info,
|
||||||
|
ID3D10Resource *dst_texture)
|
||||||
|
{
|
||||||
|
FIXME("src_texture %p, load_info %p, dst_texture %p stub!\n", src_texture, load_info, dst_texture);
|
||||||
|
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
|
@ -103,17 +103,47 @@ typedef struct D3DX10_IMAGE_LOAD_INFO
|
||||||
#endif
|
#endif
|
||||||
} D3DX10_IMAGE_LOAD_INFO;
|
} D3DX10_IMAGE_LOAD_INFO;
|
||||||
|
|
||||||
|
typedef struct _D3DX10_TEXTURE_LOAD_INFO
|
||||||
|
{
|
||||||
|
D3D10_BOX *pSrcBox;
|
||||||
|
D3D10_BOX *pDstBox;
|
||||||
|
UINT SrcFirstMip;
|
||||||
|
UINT DstFirstMip;
|
||||||
|
UINT NumMips;
|
||||||
|
UINT SrcFirstElement;
|
||||||
|
UINT DstFirstElement;
|
||||||
|
UINT NumElements;
|
||||||
|
UINT Filter;
|
||||||
|
UINT MipFilter;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
_D3DX10_TEXTURE_LOAD_INFO()
|
||||||
|
{
|
||||||
|
pSrcBox = NULL;
|
||||||
|
pDstBox = NULL;
|
||||||
|
SrcFirstMip = 0;
|
||||||
|
DstFirstMip = 0;
|
||||||
|
NumMips = D3DX10_DEFAULT;
|
||||||
|
SrcFirstElement = 0;
|
||||||
|
DstFirstElement = 0;
|
||||||
|
NumElements = D3DX10_DEFAULT;
|
||||||
|
Filter = D3DX10_DEFAULT;
|
||||||
|
MipFilter = D3DX10_DEFAULT;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
} D3DX10_TEXTURE_LOAD_INFO;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
HRESULT WINAPI D3DX10CreateTextureFromMemory(ID3D10Device *device, const void *src_data, SIZE_T src_data_size,
|
HRESULT WINAPI D3DX10CreateTextureFromMemory(ID3D10Device *device, const void *src_data, SIZE_T src_data_size,
|
||||||
D3DX10_IMAGE_LOAD_INFO *loadinfo, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult);
|
D3DX10_IMAGE_LOAD_INFO *loadinfo, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult);
|
||||||
|
|
||||||
HRESULT WINAPI D3DX10FilterTexture(ID3D10Resource *texture, UINT src_level, UINT filter);
|
HRESULT WINAPI D3DX10FilterTexture(ID3D10Resource *texture, UINT src_level, UINT filter);
|
||||||
|
|
||||||
HRESULT WINAPI D3DX10GetImageInfoFromMemory(const void *src_data, SIZE_T src_data_size, ID3DX10ThreadPump *pump,
|
HRESULT WINAPI D3DX10GetImageInfoFromMemory(const void *src_data, SIZE_T src_data_size, ID3DX10ThreadPump *pump,
|
||||||
D3DX10_IMAGE_INFO *img_info, HRESULT *hresult);
|
D3DX10_IMAGE_INFO *img_info, HRESULT *hresult);
|
||||||
|
HRESULT WINAPI D3DX10LoadTextureFromTexture(ID3D10Resource *src_texture, D3DX10_TEXTURE_LOAD_INFO *load_info,
|
||||||
|
ID3D10Resource *dst_texture);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue