=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d12: Add dll.

Alexandre Julliard julliard at winehq.org
Wed Feb 14 15:12:10 CST 2018


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Wed Feb 14 12:35:52 2018 +0100

d3d12: Add dll.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure               |  2 ++
 configure.ac            |  1 +
 dlls/d3d12/Makefile.in  |  5 +++++
 dlls/d3d12/d3d12.spec   |  8 ++++++++
 dlls/d3d12/d3d12_main.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 58 insertions(+)

diff --git a/configure b/configure
index 57577da..126de30 100755
--- a/configure
+++ b/configure
@@ -1128,6 +1128,7 @@ enable_d3d10
 enable_d3d10_1
 enable_d3d10core
 enable_d3d11
+enable_d3d12
 enable_d3d8
 enable_d3d9
 enable_d3dcompiler_33
@@ -18588,6 +18589,7 @@ wine_fn_config_dll d3d10core enable_d3d10core implib
 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
 wine_fn_config_dll d3d11 enable_d3d11 implib
 wine_fn_config_test dlls/d3d11/tests d3d11_test
+wine_fn_config_dll d3d12 enable_d3d12 implib
 wine_fn_config_dll d3d8 enable_d3d8 implib
 wine_fn_config_test dlls/d3d8/tests d3d8_test
 wine_fn_config_dll d3d9 enable_d3d9 implib
diff --git a/configure.ac b/configure.ac
index 58ce104..92c8952 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3068,6 +3068,7 @@ WINE_CONFIG_DLL(d3d10core,,[implib])
 WINE_CONFIG_TEST(dlls/d3d10core/tests)
 WINE_CONFIG_DLL(d3d11,,[implib])
 WINE_CONFIG_TEST(dlls/d3d11/tests)
+WINE_CONFIG_DLL(d3d12,,[implib])
 WINE_CONFIG_DLL(d3d8,,[implib])
 WINE_CONFIG_TEST(dlls/d3d8/tests)
 WINE_CONFIG_DLL(d3d9,,[implib])
diff --git a/dlls/d3d12/Makefile.in b/dlls/d3d12/Makefile.in
new file mode 100644
index 0000000..d7ee1b5
--- /dev/null
+++ b/dlls/d3d12/Makefile.in
@@ -0,0 +1,5 @@
+MODULE    = d3d12.dll
+IMPORTLIB = d3d12
+
+C_SRCS = \
+	d3d12_main.c
diff --git a/dlls/d3d12/d3d12.spec b/dlls/d3d12/d3d12.spec
new file mode 100644
index 0000000..613092b
--- /dev/null
+++ b/dlls/d3d12/d3d12.spec
@@ -0,0 +1,8 @@
+100 stub GetBehaviorValue
+101 stdcall D3D12CreateDevice(ptr long ptr ptr)
+102 stdcall D3D12GetDebugInterface(ptr ptr)
+103 stub D3D12CoreCreateLayeredDevice
+104 stub D3D12CoreGetLayeredDeviceSize
+105 stub D3D12CoreRegisterLayers
+106 stub D3D12CreateRootSignatureDeserializer
+107 stub D3D12SerializeRootSignature
diff --git a/dlls/d3d12/d3d12_main.c b/dlls/d3d12/d3d12_main.c
new file mode 100644
index 0000000..c1598ca
--- /dev/null
+++ b/dlls/d3d12/d3d12_main.c
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2018 Józef Kucia 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 "d3d12.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(d3d12);
+
+HRESULT WINAPI D3D12GetDebugInterface(REFIID iid, void **debug)
+{
+    FIXME("iid %s, debug %p stub!\n", debugstr_guid(iid), debug);
+
+    return E_NOTIMPL;
+}
+
+HRESULT WINAPI D3D12CreateDevice(IUnknown *adapter, D3D_FEATURE_LEVEL minimum_feature_level,
+        REFIID iid, void **device)
+{
+    FIXME("adapter %p, minimum_feature_level %#x, iid %s, device %p stub!\n",
+            adapter, minimum_feature_level, debugstr_guid(iid), device);
+
+    return E_NOTIMPL;
+}




More information about the wine-cvs mailing list