IDirect3DDevice9Ex::SetGPUThreadPriority method

Set the priority on the GPU thread.

Syntax


HRESULT SetGPUThreadPriority(
  [in] INT pPriority
);

Parameters

pPriority [in]

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

Header

D3d9.h

Library

D3D9.lib

See also

IDirect3DDevice9Ex

 

 

Show: