DXGI_GRAPHICS_PREEMPTION_GRANULARITY enumeration (dxgi1_2.h)

Identifies the granularity at which the graphics processing unit (GPU) can be preempted from performing its current graphics rendering task.

Syntax

typedef enum DXGI_GRAPHICS_PREEMPTION_GRANULARITY {
  DXGI_GRAPHICS_PREEMPTION_DMA_BUFFER_BOUNDARY = 0,
  DXGI_GRAPHICS_PREEMPTION_PRIMITIVE_BOUNDARY = 1,
  DXGI_GRAPHICS_PREEMPTION_TRIANGLE_BOUNDARY = 2,
  DXGI_GRAPHICS_PREEMPTION_PIXEL_BOUNDARY = 3,
  DXGI_GRAPHICS_PREEMPTION_INSTRUCTION_BOUNDARY = 4
} ;

Constants

 
DXGI_GRAPHICS_PREEMPTION_DMA_BUFFER_BOUNDARY
Value: 0
Indicates the preemption granularity as a DMA buffer.
DXGI_GRAPHICS_PREEMPTION_PRIMITIVE_BOUNDARY
Value: 1
Indicates the preemption granularity as a graphics primitive. A primitive is a section in a DMA buffer and can be a group of triangles.
DXGI_GRAPHICS_PREEMPTION_TRIANGLE_BOUNDARY
Value: 2
Indicates the preemption granularity as a triangle. A triangle is a part of a primitive.
DXGI_GRAPHICS_PREEMPTION_PIXEL_BOUNDARY
Value: 3
Indicates the preemption granularity as a pixel. A pixel is a part of a triangle.
DXGI_GRAPHICS_PREEMPTION_INSTRUCTION_BOUNDARY
Value: 4
Indicates the preemption granularity as a graphics instruction. A graphics instruction operates on a pixel.

Remarks

You call the IDXGIAdapter2::GetDesc2 method to retrieve the granularity level at which the GPU can be preempted from performing its current graphics rendering task. The operating system specifies the graphics granularity level in the GraphicsPreemptionGranularity member of the DXGI_ADAPTER_DESC2 structure.

The following figure shows granularity of graphics rendering tasks.

Graphics Rendering Granularity

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

See also

DXGI Enumerations

DXGI_ADAPTER_DESC2