D3DX11CreateAsyncMemoryLoader 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 an asynchronous-memory loader.

Syntax

HRESULT D3DX11CreateAsyncMemoryLoader(
  _In_  LPCVOID           pData,
  _In_  SIZE_T            cbData,
  _Out_ ID3DX11DataLoader **ppDataLoader
);

Parameters

pData [in]

Type: LPCVOID

Pointer to the data.

cbData [in]

Type: SIZE_T

Size of the data.

ppDataLoader [out]

Type: ID3DX11DataLoader**

The address of a pointer to the asynchronous-data loader (see ID3DX11DataLoader Interface).

Return value

Type: HRESULT

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

Remarks

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

See also

D3DX Functions