[PATCH 2/2] d3dcompiler_47: Add D3DLoadModule stub

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Mon May 2 04:32:17 CDT 2016


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/d3dcompiler_43/compiler.c          | 6 ++++++
 dlls/d3dcompiler_47/d3dcompiler_47.spec | 2 +-
 include/d3dcompiler.h                   | 2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/d3dcompiler_43/compiler.c b/dlls/d3dcompiler_43/compiler.c
index 17e58fe..36e793e 100644
--- a/dlls/d3dcompiler_43/compiler.c
+++ b/dlls/d3dcompiler_43/compiler.c
@@ -792,3 +792,9 @@ HRESULT WINAPI D3DCompileFromFile(const WCHAR *filename, const D3D_SHADER_MACRO
 
     return E_NOTIMPL;
 }
+
+HRESULT WINAPI D3DLoadModule(const void *data, SIZE_T size, ID3D11Module **module)
+{
+    FIXME("data %p, size %lu, module %p stub!\n", data, size, module);
+    return E_NOTIMPL;
+}
diff --git a/dlls/d3dcompiler_47/d3dcompiler_47.spec b/dlls/d3dcompiler_47/d3dcompiler_47.spec
index 9b2cb7d..05bc793 100644
--- a/dlls/d3dcompiler_47/d3dcompiler_47.spec
+++ b/dlls/d3dcompiler_47/d3dcompiler_47.spec
@@ -17,7 +17,7 @@
 @ stdcall D3DGetInputSignatureBlob(ptr long ptr)
 @ stdcall D3DGetOutputSignatureBlob(ptr long ptr)
 @ stub D3DGetTraceInstructionOffsets
-@ stub D3DLoadModule
+@ stdcall D3DLoadModule(ptr long ptr)
 @ stdcall D3DPreprocess(ptr long str ptr ptr ptr ptr)
 @ stdcall D3DReadFileToBlob(wstr ptr)
 @ stdcall D3DReflect(ptr long ptr ptr)
diff --git a/include/d3dcompiler.h b/include/d3dcompiler.h
index 3f1fdb3..5d60792 100644
--- a/include/d3dcompiler.h
+++ b/include/d3dcompiler.h
@@ -120,6 +120,8 @@ typedef HRESULT (WINAPI *pD3DPreprocess)(const void *data, SIZE_T size, const ch
         const D3D_SHADER_MACRO *defines, ID3DInclude *include,
         ID3DBlob **shader, ID3DBlob **error_messages);
 
+HRESULT WINAPI D3DLoadModule(const void *data, SIZE_T size, ID3D11Module **module);
+
 #ifdef __cplusplus
 }
 #endif
-- 
1.9.1




More information about the wine-patches mailing list