Identifies the granularity at which the graphics processing unit (GPU) can be preempted from performing its current compute task.
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
} DXGI_COMPUTE_PREEMPTION_GRANULARITY;
| Constant | Description |
|---|---|
| DXGI_COMPUTE_PREEMPTION_DMA_BUFFER_BOUNDARY | Indicates the preemption granularity as a compute packet. |
| DXGI_COMPUTE_PREEMPTION_DISPATCH_BOUNDARY | 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 | Indicates the preemption granularity as a thread group. A thread group is a part of a dispatch. |
| DXGI_COMPUTE_PREEMPTION_THREAD_BOUNDARY | 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 | Indicates the preemption granularity as a compute instruction in a thread. |
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.
Header: Declared in d3d11_x.h or dxgi1_2.h.