dxgi1_2.idl: Added IDXGIAdapter2 declaration.

This commit is contained in:
Jacek Caban 2015-03-25 15:24:18 +01:00 committed by Alexandre Julliard
parent a79621a689
commit 3c5387da05
1 changed files with 42 additions and 0 deletions

View File

@ -190,3 +190,45 @@ interface IDXGIFactory2 : IDXGIFactory1
[in] IDXGIOutput *pRestrictToOutput,
[out] IDXGISwapChain1 **ppSwapChain);
}
typedef enum DXGI_GRAPHICS_PREEMPTION_GRANULARITY {
DXGI_GRAPHICS_PREEMPTION_DMA_BUFFER_BOUNDARY,
DXGI_GRAPHICS_PREEMPTION_PRIMITIVE_BOUNDARY,
DXGI_GRAPHICS_PREEMPTION_TRIANGLE_BOUNDARY,
DXGI_GRAPHICS_PREEMPTION_PIXEL_BOUNDARY,
DXGI_GRAPHICS_PREEMPTION_INSTRUCTION_BOUNDARY
} DXGI_GRAPHICS_PREEMPTION_GRANULARITY;
typedef enum DXGI_COMPUTE_PREEMPTION_GRANULARITY {
DXGI_COMPUTE_PREEMPTION_DMA_BUFFER_BOUNDARY,
DXGI_COMPUTE_PREEMPTION_DISPATCH_BOUNDARY,
DXGI_COMPUTE_PREEMPTION_THREAD_GROUP_BOUNDARY,
DXGI_COMPUTE_PREEMPTION_THREAD_BOUNDARY,
DXGI_COMPUTE_PREEMPTION_INSTRUCTION_BOUNDARY
} DXGI_COMPUTE_PREEMPTION_GRANULARITY;
typedef struct DXGI_ADAPTER_DESC2 {
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_GRAPHICS_PREEMPTION_GRANULARITY GraphicsPreemptionGranularity;
DXGI_COMPUTE_PREEMPTION_GRANULARITY ComputePreemptionGranularity;
} DXGI_ADAPTER_DESC2;
[
object,
uuid(0aa1ae0a-fa0e-4b84-8644-e05ff8e5acb5),
local,
pointer_default(unique)
]
interface IDXGIAdapter2 : IDXGIAdapter1
{
HRESULT GetDesc2([out] DXGI_ADAPTER_DESC2 *pDesc);
}