IDirect3DDevice9Ex::SetGPUThreadPriority method (d3d9.h)

Set the priority on the GPU thread.

Syntax

HRESULT SetGPUThreadPriority(
  [in] INT Priority
);

Parameters

[in] Priority

Type: INT

The thread priority, ranging from -7 to 7.

Return value

Type: HRESULT

Possible return values include: D3D_OK, D3DERR_INVALIDCALL, or D3DERR_DEVICEREMOVED (see D3DERR).

Remarks

GPU thread priority is not reset when a device is lost. The effects of calls to this method are not recorded in state blocks.

Requirements

Requirement Value
Target Platform Windows
Header d3d9.h
Library D3D9.lib

See also

IDirect3DDevice9Ex