From 8d6f7ed292f051f541b8a53df2fd07477f41a082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Wed, 14 Feb 2018 12:35:52 +0100 Subject: [PATCH] d3d12: Add dll. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Józef Kucia Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- 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(+) create mode 100644 dlls/d3d12/Makefile.in create mode 100644 dlls/d3d12/d3d12.spec create mode 100644 dlls/d3d12/d3d12_main.c diff --git a/configure b/configure index 57577dac66c..126de309377 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 58ce1048662..92c89529769 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 00000000000..d7ee1b59a22 --- /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 00000000000..613092bc88a --- /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 00000000000..c1598ca2a1a --- /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; +}