[PATCH v3 4/6] d3dx10: Add D3DX10CreateAsyncTextureProcessor stub.

Piotr Caban wine at gitlab.winehq.org
Wed Jun 15 07:24:47 CDT 2022


From: Piotr Caban <piotr at codeweavers.com>

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
---
 dlls/d3dx10_43/async.c        | 7 +++++++
 dlls/d3dx10_43/d3dx10_43.spec | 2 +-
 include/d3dx10async.h         | 2 ++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/dlls/d3dx10_43/async.c b/dlls/d3dx10_43/async.c
index 0d75a64ff9e..cd41e405210 100644
--- a/dlls/d3dx10_43/async.c
+++ b/dlls/d3dx10_43/async.c
@@ -514,6 +514,13 @@ HRESULT WINAPI D3DX10CreateAsyncTextureInfoProcessor(D3DX10_IMAGE_INFO *info, ID
     return S_OK;
 }
 
+HRESULT WINAPI D3DX10CreateAsyncTextureProcessor(ID3D10Device *device,
+        D3DX10_IMAGE_LOAD_INFO *load_info, ID3DX10DataProcessor **processor)
+{
+    FIXME("device %p, load_info %p, processor %p stub!\n", device, load_info, processor);
+    return E_NOTIMPL;
+}
+
 HRESULT WINAPI D3DX10PreprocessShaderFromMemory(const char *data, SIZE_T data_size, const char *filename,
         const D3D10_SHADER_MACRO *defines, ID3DInclude *include, ID3DX10ThreadPump *pump, ID3D10Blob **shader_text,
         ID3D10Blob **errors, HRESULT *hresult)
diff --git a/dlls/d3dx10_43/d3dx10_43.spec b/dlls/d3dx10_43/d3dx10_43.spec
index c0a2c9fa56c..95160a067c5 100644
--- a/dlls/d3dx10_43/d3dx10_43.spec
+++ b/dlls/d3dx10_43/d3dx10_43.spec
@@ -17,7 +17,7 @@
 @ stub D3DX10CreateAsyncShaderPreprocessProcessor(str ptr ptr ptr ptr ptr)
 @ stub D3DX10CreateAsyncShaderResourceViewProcessor(ptr ptr ptr)
 @ stdcall D3DX10CreateAsyncTextureInfoProcessor(ptr ptr)
-@ stub D3DX10CreateAsyncTextureProcessor(ptr ptr ptr)
+@ stdcall D3DX10CreateAsyncTextureProcessor(ptr ptr ptr)
 @ stdcall D3DX10CreateDevice(ptr long long long ptr)
 @ stdcall D3DX10CreateDeviceAndSwapChain(ptr long long long ptr ptr ptr)
 @ stdcall D3DX10CreateEffectFromFileA(str ptr ptr str long long ptr ptr ptr ptr ptr ptr)
diff --git a/include/d3dx10async.h b/include/d3dx10async.h
index c932be91b01..931458f4813 100644
--- a/include/d3dx10async.h
+++ b/include/d3dx10async.h
@@ -76,6 +76,8 @@ HRESULT WINAPI D3DX10CreateAsyncMemoryLoader(const void *data, SIZE_T datasize,
 HRESULT WINAPI D3DX10CreateAsyncResourceLoaderA(HMODULE module, const char *resource, ID3DX10DataLoader **loader);
 HRESULT WINAPI D3DX10CreateAsyncResourceLoaderW(HMODULE module, const WCHAR *resource, ID3DX10DataLoader **loader);
 
+HRESULT WINAPI D3DX10CreateAsyncTextureProcessor(ID3D10Device *device,
+        D3DX10_IMAGE_LOAD_INFO *info, ID3DX10DataProcessor **processor);
 HRESULT WINAPI D3DX10CreateAsyncTextureInfoProcessor(D3DX10_IMAGE_INFO *info, ID3DX10DataProcessor **processor);
 
 #endif
-- 
GitLab


https://gitlab.winehq.org/wine/wine/-/merge_requests/228



More information about the wine-devel mailing list