[PATCH] include: Add d3d11_4.idl

Ihsan Akmal ihsanapps at gmail.com
Sat Sep 23 02:19:37 CDT 2017


Need to apply after 'd3d11_1.idl: Add missing enums and interfaces' patch

Signed-off-by: Ihsan Akmal <ihsanapps at gmail.com>
---
 include/Makefile.in |   1 +
 include/d3d11_4.idl | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 127 insertions(+)
 create mode 100644 include/d3d11_4.idl

diff --git a/include/Makefile.in b/include/Makefile.in
index fd52a5f..2c4a86e 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -43,6 +43,7 @@ IDL_SRCS = \
 	d3d11_1.idl \
 	d3d11_2.idl \
 	d3d11_3.idl \
+	d3d11_4.idl \
 	d3d11sdklayers.idl \
 	d3dcommon.idl \
 	d3dx10core.idl \
diff --git a/include/d3d11_4.idl b/include/d3d11_4.idl
new file mode 100644
index 0000000..16a5330
--- /dev/null
+++ b/include/d3d11_4.idl
@@ -0,0 +1,126 @@
+/*
+ * Copyright 2017 Ihsan Akmal
+ *
+ * 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 "oaidl.idl";
+import "ocidl.idl";
+import "dxgi1_5.idl";
+import "d3dcommon.idl";
+import "d3d11_3.idl";
+
+typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS4
+{
+    BOOL ExtendedNV12SharedTextureSupported;
+} D3D11_FEATURE_DATA_D3D11_OPTIONS4;
+
+[
+    uuid(8992ab71-02e6-4b8d-ba48-b056dcda42c4),
+    object,
+    local,
+    pointer_default(unique)
+]
+interface ID3D11Device4 : ID3D11Device3
+{
+    HRESULT RegisterDeviceRemovedEvent(
+        [in] HANDLE event,
+        [out] DWORD *cookie
+    );
+
+    void UnregisterDeviceRemoved(
+        [in] DWORD cookie
+    );
+}
+
+[
+    uuid(8ffde202-a0e7-45df-9e01-e837801b5ea0),
+    object,
+    local,
+    pointer_default(unique)
+]
+interface ID3D11Device5 : ID3D11Device4
+{
+    HRESULT OpenSharedFence(
+        [in] HANDLE fence,
+        [in] REFIID returned_interface,
+        [out] void **fence
+    );
+
+    HRESULT CreateFence(
+        [in] UINT64 initial_value,
+        [in] D3D11_FENCE_FLAG flags,
+        [in] REFIID returned_interface,
+        [out] void **fence
+    );
+}
+
+[
+    uuid(9B7E4E00-342C-4106-A19F-4F2704F689F0),
+    object,
+    local,
+    pointer_default(unique)
+]
+interface ID3D11Multithread : IUnknown
+{
+    void Enter();
+
+    void Leave();
+
+    BOOL SetMultithreadProtected(
+        [in] BOOL mt_protect
+    );
+
+    BOOL GetMultithreadProtected();
+}
+
+[
+    uuid(C4E7374C-6243-4D1B-AE87-52B4F740E261),
+    object,
+    local,
+    pointer_default(unique)
+]
+interface ID3D11VideoContext2 : ID3D11VideoContext1
+{
+    void VideoProcessorSetOutputHDRMetaData(
+        [in] ID3D11VideoProcessor *video_processor,
+        [in] DXGI_HDR_METADATA_TYPE type,
+        [in] UINT size,
+        [in] const void *hdr_metadata
+    );
+
+    void VideoProcessorGetOutputHDRMetaData(
+        [in] ID3D11VideoProcessor *video_processor,
+        [out] DXGI_HDR_METADATA_TYPE *type,
+        [in] UINT size,
+        [out] void *hdr_metadata
+    );
+
+    void VideoProcessorSetStreamHDRMetaData(
+        [in] ID3D11VideoProcessor *video_processor,
+        [in] UINT stream_index,
+        [in] DXGI_HDR_METADATA_TYPE type,
+        [in] UINT size,
+        [in] const void *hdr_metadsata
+    );
+
+    void VideoProcessorGetStreamHDRMetaData(
+        [in] ID3D11VideoProcessor *video_processor,
+        [in] UINT stream_index,
+        [out] DXGI_HDR_METADATA_TYPE *type,
+        [in] UINT size,
+        [out] void *hdr_metadata
+    );
+}
-- 
2.14.1




More information about the wine-patches mailing list