DXGI_COMPUTE_PREEMPTION_GRANULARITY enumeration (dxgi1_2.h)
Identifies the granularity at which the graphics processing unit (GPU) can be preempted from performing its current compute task.
Syntax
typedef enum DXGI_COMPUTE_PREEMPTION_GRANULARITY {
DXGI_COMPUTE_PREEMPTION_DMA_BUFFER_BOUNDARY = 0,
DXGI_COMPUTE_PREEMPTION_DISPATCH_BOUNDARY = 1,
DXGI_COMPUTE_PREEMPTION_THREAD_GROUP_BOUNDARY = 2,
DXGI_COMPUTE_PREEMPTION_THREAD_BOUNDARY = 3,
DXGI_COMPUTE_PREEMPTION_INSTRUCTION_BOUNDARY = 4
} ;
Constants
DXGI_COMPUTE_PREEMPTION_DMA_BUFFER_BOUNDARY Value: 0 Indicates the preemption granularity as a compute packet. |
DXGI_COMPUTE_PREEMPTION_DISPATCH_BOUNDARY Value: 1 Indicates the preemption granularity as a dispatch (for example, a call to the ID3D11DeviceContext::Dispatch method). A dispatch is a part of a compute packet. |
DXGI_COMPUTE_PREEMPTION_THREAD_GROUP_BOUNDARY Value: 2 Indicates the preemption granularity as a thread group. A thread group is a part of a dispatch. |
DXGI_COMPUTE_PREEMPTION_THREAD_BOUNDARY Value: 3 Indicates the preemption granularity as a thread in a thread group. A thread is a part of a thread group. |
DXGI_COMPUTE_PREEMPTION_INSTRUCTION_BOUNDARY Value: 4 Indicates the preemption granularity as a compute instruction in a thread. |
Remarks
You call the IDXGIAdapter2::GetDesc2 method to retrieve the granularity level at which the GPU can be preempted from performing its current compute task. The operating system specifies the compute granularity level in the ComputePreemptionGranularity member of the DXGI_ADAPTER_DESC2 structure.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps] |
Header | dxgi1_2.h |