Module: wine
Branch: master
Commit: 99f2a5cd9fa363d659acabc9440b44f8dd38b51c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=99f2a5cd9fa363d659acabc9…
Author: Józef Kucia <jkucia(a)codeweavers.com>
Date: Fri Oct 2 19:43:59 2020 +0330
include: Move the ID3D12Debug interface to d3d12sdklayers.idl.
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/d3d12/tests/d3d12.c | 1 +
dlls/dxgi/tests/dxgi.c | 1 +
include/Makefile.in | 1 +
include/d3d12.idl | 11 -----------
include/d3d12sdklayers.idl | 30 ++++++++++++++++++++++++++++++
5 files changed, 33 insertions(+), 11 deletions(-)
diff --git a/dlls/d3d12/tests/d3d12.c b/dlls/d3d12/tests/d3d12.c
index 8c57f07357..f5a4c2ba11 100644
--- a/dlls/d3d12/tests/d3d12.c
+++ b/dlls/d3d12/tests/d3d12.c
@@ -21,6 +21,7 @@
#define COBJMACROS
#include "initguid.h"
#include "d3d12.h"
+#include "d3d12sdklayers.h"
#include "dxgi1_6.h"
#include "wine/test.h"
diff --git a/dlls/dxgi/tests/dxgi.c b/dlls/dxgi/tests/dxgi.c
index ce1aee5ee3..bee2163843 100644
--- a/dlls/dxgi/tests/dxgi.c
+++ b/dlls/dxgi/tests/dxgi.c
@@ -24,6 +24,7 @@
#include "dxgi1_6.h"
#include "d3d11.h"
#include "d3d12.h"
+#include "d3d12sdklayers.h"
#include "winternl.h"
#include "ddk/d3dkmthk.h"
#include "wine/heap.h"
diff --git a/include/Makefile.in b/include/Makefile.in
index 91a02645c3..10a9bd7aa8 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -110,6 +110,7 @@ SOURCES = \
d3d11sdklayers.idl \
d3d11shader.h \
d3d12.idl \
+ d3d12sdklayers.idl \
d3d12shader.idl \
d3d8.h \
d3d8caps.h \
diff --git a/include/d3d12.idl b/include/d3d12.idl
index 201e01f07e..8b1e85fcef 100644
--- a/include/d3d12.idl
+++ b/include/d3d12.idl
@@ -2138,17 +2138,6 @@ interface ID3D12Device : ID3D12Object
LUID GetAdapterLuid();
}
-[
- uuid(344488b7-6846-474b-b989-f027448245e0),
- object,
- local,
- pointer_default(unique)
-]
-interface ID3D12Debug : IUnknown
-{
- void EnableDebugLayer();
-}
-
[
uuid(34ab647b-3cc8-46ac-841b-c0965645c046),
object,
diff --git a/include/d3d12sdklayers.idl b/include/d3d12sdklayers.idl
new file mode 100644
index 0000000000..dfbb738217
--- /dev/null
+++ b/include/d3d12sdklayers.idl
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2016-2019 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
+ */
+
+import "d3d12.idl";
+
+[
+ uuid(344488b7-6846-474b-b989-f027448245e0),
+ object,
+ local,
+ pointer_default(unique)
+]
+interface ID3D12Debug : IUnknown
+{
+ void EnableDebugLayer();
+}