[1/3] d3dcompiler: D3DAssemble stub.

Matteo Bruni matteo.mystral at gmail.com
Tue Aug 24 16:05:03 CDT 2010


-------------- next part --------------
From e5607a4865ea4b6fc950766ecb833ca99c6eddad Mon Sep 17 00:00:00 2001
From: Matteo Bruni <matteo.mystral at gmail.com>
Date: Tue, 17 Aug 2010 19:22:59 +0200
Subject: d3dcompiler: D3DAssemble stub.

---
 dlls/d3dcompiler_43/Makefile.in         |    1 +
 dlls/d3dcompiler_43/compiler.c          |   34 +++++++++++++++++++++++++++++++
 dlls/d3dcompiler_43/d3dcompiler_43.spec |    2 +-
 3 files changed, 36 insertions(+), 1 deletions(-)
 create mode 100644 dlls/d3dcompiler_43/compiler.c

diff --git a/dlls/d3dcompiler_43/Makefile.in b/dlls/d3dcompiler_43/Makefile.in
index 806cb08..3e6a7d6 100644
--- a/dlls/d3dcompiler_43/Makefile.in
+++ b/dlls/d3dcompiler_43/Makefile.in
@@ -8,6 +8,7 @@ IMPORTS   = dxguid uuid
 
 C_SRCS = \
 	blob.c \
+	compiler.c \
 	d3dcompiler_43_main.c
 
 RC_SRCS = version.rc
diff --git a/dlls/d3dcompiler_43/compiler.c b/dlls/d3dcompiler_43/compiler.c
new file mode 100644
index 0000000..edb2118
--- /dev/null
+++ b/dlls/d3dcompiler_43/compiler.c
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2010 Matteo Bruni for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+#include "wine/port.h"
+#include "wine/debug.h"
+#include "wine/unicode.h"
+
+#include "d3dcompiler_private.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(d3dcompiler);
+
+HRESULT WINAPI D3DAssemble(LPCVOID data, SIZE_T datasize, LPCSTR filename,
+                           const D3D_SHADER_MACRO *defines, ID3DInclude *include,
+                           UINT flags,
+                           ID3DBlob **shader, ID3DBlob **error_messages){
+    FIXME("stub\n");
+    return D3DERR_INVALIDCALL;
+}
diff --git a/dlls/d3dcompiler_43/d3dcompiler_43.spec b/dlls/d3dcompiler_43/d3dcompiler_43.spec
index 13c13a6..e86acef 100644
--- a/dlls/d3dcompiler_43/d3dcompiler_43.spec
+++ b/dlls/d3dcompiler_43/d3dcompiler_43.spec
@@ -1,4 +1,4 @@
-@ stub D3DAssemble
+@ stdcall D3DAssemble(ptr long str ptr ptr long ptr ptr)
 @ stub DebugSetMute
 @ stub D3DCompile
 @ stub D3DCompressShaders
-- 
1.7.1


More information about the wine-patches mailing list