D3DX11CreateThreadPump function
Note
The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps. See Remarks.
Create a thread pump.
Syntax
HRESULT D3DX11CreateThreadPump(
_In_ UINT cIoThreads,
_In_ UINT cProcThreads,
_Out_ ID3DX11ThreadPump **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: ID3DX11ThreadPump**
The created thread pump. See ID3DX11ThreadPump Interface.
Return value
Type: HRESULT
The return value is one of the values listed in Direct3D 11 Return Codes.
Remarks
A thread pump is a very resource-intensive object. Only one thread pump should be created per application.
There s no implementation of the async loader outside of D3DX 10, and D3DX 11.
For Windows Store apps, the DirectX samples (for example, the Direct3D tutorial sample) include the BasicLoader module that uses the Windows Runtime asynchronous programming model (AsyncBase).
For Win32 desktop apps, you can use the Concurrency Runtime to implement something similar to the Windows Runtime asynchronous programming model.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|