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

This commit is contained in:
Jacek Caban 2011-07-15 12:07:53 +02:00 committed by Alexandre Julliard
parent 56d7e2add9
commit 58bcc0ae44
1 changed files with 56 additions and 0 deletions

View File

@ -176,6 +176,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,
@ -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();
}