Module: wine Branch: master Commit: 0db109ffadf5541d506edc571e865ae808d7394f URL: http://source.winehq.org/git/wine.git/?a=commit;h=0db109ffadf5541d506edc571e...
Author: Kovács András andras@csevego.net Date: Mon Jul 9 14:06:40 2007 +0200
d3d10: Add stub for d3d10.dll.
---
.gitignore | 1 + Makefile.in | 2 ++ configure | 3 +++ configure.ac | 1 + dlls/Makefile.in | 1 + dlls/d3d10/Makefile.in | 16 ++++++++++++++++ dlls/d3d10/d3d10.spec | 29 +++++++++++++++++++++++++++++ dlls/d3d10/d3d10_main.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ dlls/d3d10/version.rc | 26 ++++++++++++++++++++++++++ 9 files changed, 124 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore index 91f9dc7..7895cc8 100644 --- a/.gitignore +++ b/.gitignore @@ -162,6 +162,7 @@ dlls/cryptdll/libcryptdll.def dlls/ctl3d.dll16 dlls/ctl3d32/libctl3d32.def dlls/ctl3dv2.dll16 +dlls/d3d10/version.res dlls/d3d8/libd3d8.def dlls/d3d8/tests/*.ok dlls/d3d8/tests/d3d8_crosstest.exe diff --git a/Makefile.in b/Makefile.in index e416465..9e422ae 100644 --- a/Makefile.in +++ b/Makefile.in @@ -189,6 +189,7 @@ ALL_MAKEFILES = \ dlls/cryptdll/Makefile \ dlls/cryptnet/Makefile \ dlls/ctl3d32/Makefile \ + dlls/d3d10/Makefile \ dlls/d3d8/Makefile \ dlls/d3d8/tests/Makefile \ dlls/d3d9/Makefile \ @@ -548,6 +549,7 @@ dlls/crypt32/tests/Makefile: dlls/crypt32/tests/Makefile.in dlls/Maketest.rules dlls/cryptdll/Makefile: dlls/cryptdll/Makefile.in dlls/Makedll.rules dlls/cryptnet/Makefile: dlls/cryptnet/Makefile.in dlls/Makedll.rules dlls/ctl3d32/Makefile: dlls/ctl3d32/Makefile.in dlls/Makedll.rules +dlls/d3d10/Makefile: dlls/d3d10/Makefile.in dlls/Makedll.rules dlls/d3d8/Makefile: dlls/d3d8/Makefile.in dlls/Makedll.rules dlls/d3d8/tests/Makefile: dlls/d3d8/tests/Makefile.in dlls/Maketest.rules dlls/d3d9/Makefile: dlls/d3d9/Makefile.in dlls/Makedll.rules diff --git a/configure b/configure index 5a85caf..483725a 100755 --- a/configure +++ b/configure @@ -20190,6 +20190,8 @@ ac_config_files="$ac_config_files dlls/cryptnet/Makefile"
ac_config_files="$ac_config_files dlls/ctl3d32/Makefile"
+ac_config_files="$ac_config_files dlls/d3d10/Makefile" + ac_config_files="$ac_config_files dlls/d3d8/Makefile"
ac_config_files="$ac_config_files dlls/d3d8/tests/Makefile" @@ -21413,6 +21415,7 @@ do "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;; "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;; "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;; + "dlls/d3d10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d10/Makefile" ;; "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;; "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;; diff --git a/configure.ac b/configure.ac index 9ab2c77..2dd7cb9 100644 --- a/configure.ac +++ b/configure.ac @@ -1567,6 +1567,7 @@ AC_CONFIG_FILES([dlls/crypt32/tests/Makefile]) AC_CONFIG_FILES([dlls/cryptdll/Makefile]) AC_CONFIG_FILES([dlls/cryptnet/Makefile]) AC_CONFIG_FILES([dlls/ctl3d32/Makefile]) +AC_CONFIG_FILES([dlls/d3d10/Makefile]) AC_CONFIG_FILES([dlls/d3d8/Makefile]) AC_CONFIG_FILES([dlls/d3d8/tests/Makefile]) AC_CONFIG_FILES([dlls/d3d9/Makefile]) diff --git a/dlls/Makefile.in b/dlls/Makefile.in index 9cc2ec7..30fcd3e 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -40,6 +40,7 @@ BASEDIRS = \ cryptdll \ cryptnet \ ctl3d32 \ + d3d10 \ d3d8 \ d3d9 \ d3dim \ diff --git a/dlls/d3d10/Makefile.in b/dlls/d3d10/Makefile.in new file mode 100644 index 0000000..99b3e80 --- /dev/null +++ b/dlls/d3d10/Makefile.in @@ -0,0 +1,16 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = d3d10.dll +IMPORTS = wined3d kernel32 +EXTRALIBS = -ldxguid -luuid + +C_SRCS = \ + d3d10_main.c + +RC_SRCS = version.rc + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/d3d10/d3d10.spec b/dlls/d3d10/d3d10.spec new file mode 100644 index 0000000..f15453a --- /dev/null +++ b/dlls/d3d10/d3d10.spec @@ -0,0 +1,29 @@ +@ stub D3D10CompileEffectFromMemory +@ stub D3D10CompileShader +@ stub D3D10CreateBlob +@ stub D3D10CreateDevice +@ stub D3D10CreateDeviceAndSwapChain +@ stub D3D10CreateEffectFromMemory +@ stub D3D10CreateEffectPoolFromMemory +@ stub D3D10CreateStateBlock +@ stub D3D10DisassembleEffect +@ stub D3D10DisassembleShader +@ stub D3D10GetGeometryShaderProfile +@ stub D3D10GetInputAndOutputSignatureBlob +@ stub D3D10GetInputSignatureBlob +@ stub D3D10GetOutputSignatureBlob +@ stub D3D10GetPixelShaderProfile +@ stub D3D10GetShaderDebugInfo +@ stub D3D10GetVersion +@ stub D3D10GetVertexShaderProfile +@ stub D3D10PreprocessShader +@ stub D3D10ReflectShader +@ stub D3D10RegisterLayers +@ stub D3D10StateBlockMaskDifference +@ stub D3D10StateBlockMaskDisableAll +@ stub D3D10StateBlockMaskDisableCapture +@ stub D3D10StateBlockMaskEnableAll +@ stub D3D10StateBlockMaskEnableCapture +@ stub D3D10StateBlockMaskGetSetting +@ stub D3D10StateBlockMaskIntersect +@ stub D3D10StateBlockMaskUnion diff --git a/dlls/d3d10/d3d10_main.c b/dlls/d3d10/d3d10_main.c new file mode 100644 index 0000000..8d80c41 --- /dev/null +++ b/dlls/d3d10/d3d10_main.c @@ -0,0 +1,45 @@ +/* + * Direct3D 10 + * + * Copyright 2007 Andras Kovacs + * + * 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 <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "winuser.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(d3d10); + +/* At process attach */ +BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) +{ + TRACE("fdwReason=%d\n", fdwReason); + switch(fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls( hInstDLL ); + break; + } + return TRUE; +} diff --git a/dlls/d3d10/version.rc b/dlls/d3d10/version.rc new file mode 100644 index 0000000..4811325 --- /dev/null +++ b/dlls/d3d10/version.rc @@ -0,0 +1,26 @@ +/* + * Copyright 2007 Andras Kovacs + * + * 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 + */ + +#define WINE_FILEDESCRIPTION_STR "Wine Direct3D" +#define WINE_FILENAME_STR "d3d10.dll" +#define WINE_FILEVERSION 6,0,6000,16386 +#define WINE_FILEVERSION_STR "6.0.6000.16386" +#define WINE_PRODUCTVERSION 6,0,6000,16386 +#define WINE_PRODUCTVERSION_STR "6.0.6000.16386" + +#include "wine/wine_common_ver.rc"