D3DX10CreateThreadPump function

Create a thread pump.

Syntax

HRESULT D3DX10CreateThreadPump(
  _In_  UINT              cIoThreads,
  _In_  UINT              cProcThreads,
  _Out_ ID3DX10ThreadPump **ppThreadPump
);

Parameters

cIoThreads [in]

Type: UINT

The number of I/O threads to create. If 0 is specified, Direct3D will attempt to calculate the optimal number of threads based on the hardware configuration.

cProcThreads [in]

Type: UINT

The number of process threads to create. If 0 is specified, Direct3D will attempt to calculate the optimal number of threads based on the hardware configuration.

ppThreadPump [out]

Type: ID3DX10ThreadPump**

The created thread pump. See ID3DX10ThreadPump Interface.

Return value

Type: HRESULT

The return value is one of the values listed in Direct3D 10 Return Codes.

Remarks

A thread pump is a very resource-intensive object. Only one thread pump should be created per application.

Requirements

Requirement Value
Header
D3DX10.h
Library
D3DX10.lib

See also

General Purpose Functions