D3DX11CreateAsyncTextureProcessor 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 data processor to be used with a thread pump.

Syntax

HRESULT D3DX11CreateAsyncTextureProcessor(
  _In_  ID3D11Device           *pDevice,
  _In_  D3DX11_IMAGE_LOAD_INFO *pLoadInfo,
  _Out_ ID3DX11DataProcessor   **ppDataProcessor
);

Parameters

pDevice [in]

Type: ID3D11Device*

A pointer to the devive (see ID3D11Device).

pLoadInfo [in]

Type: D3DX11_IMAGE_LOAD_INFO*

Optional. Identifies the characteristics of a texture (see D3DX11_IMAGE_LOAD_INFO) when the data processor is created; set this to NULL to read the characteristics of a texture when the texture is loaded.

ppDataProcessor [out]

Type: ID3DX11DataProcessor**

Address of a pointer to a buffer that contains the data processor created (see ID3DX11DataProcessor Interface).

Return value

Type: HRESULT

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

Remarks

This API does creates a data-processor interface and loads the texture; D3DX11CreateAsyncTextureInfoProcessor creates the data-processor interface.

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
D3DX11tex.h
Library
D3DX11.lib

See also

D3DX Functions