D3DX11CreateAsyncFileLoader 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-file loader.

Syntax


HRESULT D3DX11CreateAsyncFileLoader(
  _In_   LPCTSTR pFileName,
  _Out_  ID3DX11DataLoader **ppDataLoader
);

Parameters

pFileName [in]

Type: LPCTSTR

The name of the file to load. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the data type resolves to LPCSTR.

ppDataLoader [out]

Type: ID3DX11DataLoader**

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

Header

D3DX11async.h

Library

D3DX11.lib

See also

D3DX Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft