Partager via


IDirect3DDevice9Ex::SetGPUThreadPriority 

IDirect3DDevice9Ex::SetGPUThreadPriority

Set the priority on the GPU thread.

  HRESULT 
  SetGPUThreadPriority(
  INT pPriority
);

Parameters

  • pPriority
    [in] The thread priority, ranging from -7 to 7.

Return Values

If the method succeeds, the return value is D3D_OK.

Non-LDDM drivers will return D3DERR_INVALIDCALL.

Remarks

The effects of calls to SetGPUThreadPriority are not recorded in state blocks.

GPU thread priority is not reset when the Device is lost.

See Also

IDirect3DDevice9Ex InterfaceIDirect3DDevice9Ex::GetGPUThreadPriority Method