Commit 3c5387da authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

dxgi1_2.idl: Added IDXGIAdapter2 declaration.

parent a79621a6
...@@ -190,3 +190,45 @@ interface IDXGIFactory2 : IDXGIFactory1 ...@@ -190,3 +190,45 @@ interface IDXGIFactory2 : IDXGIFactory1
[in] IDXGIOutput *pRestrictToOutput, [in] IDXGIOutput *pRestrictToOutput,
[out] IDXGISwapChain1 **ppSwapChain); [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);
}
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