D3DX10CreateAsyncTextureProcessor function

Create a data processor to be used with a thread pump.

Syntax

HRESULT D3DX10CreateAsyncTextureProcessor(
  _In_  ID3D10Device           *pDevice,
  _In_  D3DX10_IMAGE_LOAD_INFO *pLoadInfo,
  _Out_ ID3DX10DataProcessor   **ppDataProcessor
);

Parameters

pDevice [in]

Type: ID3D10Device*

A pointer to the devive (see ID3D10Device Interface).

pLoadInfo [in]

Type: D3DX10_IMAGE_LOAD_INFO*

Optional. Identifies the characteristics of a texture (see D3DX10_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: ID3DX10DataProcessor**

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

Return value

Type: HRESULT

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

Remarks

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

Requirements

Requirement Value
Header
D3DX10Tex.h
Library
D3DX10.lib

See also

Texture Functions in D3DX 10