Christian Costa : d3dx9_36: Add stub for D3DXCompileShader.

Alexandre Julliard julliard at winehq.org
Thu Feb 11 11:08:31 CST 2010


Module: wine
Branch: master
Commit: 8f63f180c9b1de022909f31c3da7787e7ecc9b04
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8f63f180c9b1de022909f31c3da7787e7ecc9b04

Author: Christian Costa <titan.costa at wanadoo.fr>
Date:   Thu Feb 11 07:38:08 2010 +0100

d3dx9_36: Add stub for D3DXCompileShader.

---

 dlls/d3dx9_36/d3dx9_36.spec |    2 +-
 dlls/d3dx9_36/shader.c      |   17 +++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec
index 08bb7f5..37334e7 100644
--- a/dlls/d3dx9_36/d3dx9_36.spec
+++ b/dlls/d3dx9_36/d3dx9_36.spec
@@ -11,7 +11,7 @@
 @ stub D3DXCleanMesh
 @ stdcall D3DXColorAdjustContrast(ptr ptr long)
 @ stdcall D3DXColorAdjustSaturation(ptr ptr long)
-@ stub D3DXCompileShader
+@ stdcall D3DXCompileShader(ptr long ptr ptr ptr ptr long ptr ptr ptr)
 @ stub D3DXCompileShaderFromFileA
 @ stub D3DXCompileShaderFromFileW
 @ stub D3DXCompileShaderFromResourceA
diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c
index c05f7b7..bd41013 100644
--- a/dlls/d3dx9_36/shader.c
+++ b/dlls/d3dx9_36/shader.c
@@ -220,3 +220,20 @@ HRESULT WINAPI D3DXAssembleShaderFromResourceW(HMODULE module,
     return D3DXAssembleShader(buffer, len, defines, include, flags,
                               shader, error_messages);
 }
+
+HRESULT WINAPI D3DXCompileShader(LPCSTR pSrcData,
+                                 UINT srcDataLen,
+                                 CONST D3DXMACRO* pDefines,
+                                 LPD3DXINCLUDE pInclude,
+                                 LPCSTR pFunctionName,
+                                 LPCSTR pProfile,
+                                 DWORD Flags,
+                                 LPD3DXBUFFER* ppShader,
+                                 LPD3DXBUFFER* ppErrorMsgs,
+                                 LPD3DXCONSTANTTABLE * ppConstantTable)
+{
+    FIXME("(%p, %d, %p, %p, %p, %p, %d, %p, %p, %p): stub\n",
+          pSrcData, srcDataLen, pDefines, pInclude, pFunctionName,
+          pProfile, Flags, ppShader, ppErrorMsgs, ppConstantTable);
+    return D3DERR_INVALIDCALL;
+}




More information about the wine-cvs mailing list