Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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_BOUNDARYValue: 0 Indicates the preemption granularity as a compute packet. |
DXGI_COMPUTE_PREEMPTION_DISPATCH_BOUNDARYValue: 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_BOUNDARYValue: 2 Indicates the preemption granularity as a thread group. A thread group is a part of a dispatch. |
DXGI_COMPUTE_PREEMPTION_THREAD_BOUNDARYValue: 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_BOUNDARYValue: 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 |