Commit 58bcc0ae authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

dxgi.idl: Added IDXGIResource, IDXGIAdapter1 and IDXGIFactory1 declarations.

parent 56d7e2ad
......@@ -178,6 +178,20 @@ interface IDXGIDeviceSubObject : IDXGIObject
[
object,
uuid(035f3ab4-482e-4e50-b41f-8a7f8bd8960b),
local,
pointer_default(unique)
]
interface IDXGIResource : IDXGIDeviceSubObject
{
HRESULT GetSharedHandle([out] HANDLE *pSharedHandle);
HRESULT GetUsage([out] DXGI_USAGE *pUsage);
HRESULT SetEvictionPriority([in] UINT EvictionPriority);
HRESULT GetEvictionPriority([out, retval] UINT *pEvictionPriority);
}
[
object,
local,
uuid(cafcb56c-6ac3-4889-bf47-9e23bbd260ec)
]
......@@ -376,3 +390,45 @@ interface IDXGIDevice : IDXGIObject
[out] INT *priority
);
}
typedef enum DXGI_ADAPTER_FLAG {
DXGI_ADAPTER_FLAG_NONE = 0,
DXGI_ADAPTER_FLAG_REMOTE = 1,
DXGI_ADAPTER_FLAG_FORCE_DWORD = 0xFFFFFFFF
} DXGI_ADAPTER_FLAG;
typedef struct DXGI_ADAPTER_DESC1 {
WCHAR Description[128];
UINT VendorId;
UINT DeviceId;
UINT SubSysId;
UINT Revision;
SIZE_T DedicatedVideoMemory;
SIZE_T DedicatedSystemMemory;
SIZE_T SharedSystemMemory;
LUID AdapterLuid;
UINT Flags;
} DXGI_ADAPTER_DESC1;
[
object,
uuid(29038f61-3839-4626-91fd-086879011a05),
local,
pointer_default(unique)
]
interface IDXGIAdapter1 : IDXGIAdapter
{
HRESULT GetDesc1([out] DXGI_ADAPTER_DESC1 *pDesc);
}
[
object,
uuid(770aae78-f26f-4dba-a829-253c83d1b387),
local,
pointer_default(unique)
]
interface IDXGIFactory1 : IDXGIFactory
{
HRESULT EnumAdapters1([in] UINT Adapter, [out] IDXGIAdapter1 **ppAdapter);
BOOL IsCurrent();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment