[PATCH 2/4] dxgi1_2.idl: Add missing constants and interfaces.
Ihsan Akmal
ihsanapps at gmail.com
Sat Sep 23 00:40:09 CDT 2017
Signed-off-by: Ihsan Akmal <ihsanapps at gmail.com>
---
include/dxgi1_2.idl | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/include/dxgi1_2.idl b/include/dxgi1_2.idl
index 64163dd..bc5e533 100644
--- a/include/dxgi1_2.idl
+++ b/include/dxgi1_2.idl
@@ -18,6 +18,11 @@
import "dxgi.idl";
+const UINT DXGI_ENUM_MODES_STEREO = 4UL;
+const UINT DXGI_ENUM_MODES_DISABLED_STEREO = 8UL;
+const DWORD DXGI_SHARED_RESOURCE_READ = 0x80000000L;
+const DWORD DXGI_SHARED_RESOURCE_WRITE = 1;
+
typedef enum _DXGI_OFFER_RESOURCE_PRIORITY {
DXGI_OFFER_RESOURCE_PRIORITY_LOW = 1,
DXGI_OFFER_RESOURCE_PRIORITY_NORMAL,
@@ -136,6 +141,42 @@ interface IDXGIOutputDuplication : IDXGIObject
HRESULT ReleaseFrame();
}
+[
+ object,
+ uuid(aba496dd-b617-4cb8-a866-bc44d7eb1fa2),
+ local,
+ pointer_default(unique)
+]
+interface IDXGISurface2 : IDXGISurface1
+{
+ HRESULT GetResource(
+ [in] REFIID riid,
+ [out] void **parent_resource,
+ [out] UINT *subresource_index
+ );
+}
+
+[
+ object,
+ uuid(30961379-4609-4a41-998e-54fe567ee0c1),
+ local,
+ pointer_default(unique)
+]
+interface IDXGIResource1 : IDXGIResource
+{
+ HRESULT CreateSubresourceSurface(
+ UINT index,
+ [out] IDXGISurface2 **surface
+ );
+
+ HRESULT CreateSharedHandle(
+ [in] const SECURITY_ATTRIBUTES *attributes,
+ [in] DWORD access,
+ [in] LPCWSTR name,
+ [out] HANDLE *handle
+ );
+}
+
[
object,
uuid(ea9dbf1a-c88e-4486-854a-98aa0138f30c),
--
2.14.1
More information about the wine-patches
mailing list