D3DX11CreateAsyncResourceLoader 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-resource loader.

Syntax


HRESULT D3DX11CreateAsyncResourceLoader(
  _In_  HMODULE           hSrcModule,
  _In_  LPCTSTR           pSrcResource,
  _Out_ ID3DX11DataLoader **ppDataLoader
);

Parameters

hSrcModule [in]

Type: HMODULE

Handle to the resource module. Use GetModuleHandle Function to get the handle.

pSrcResource [in]

Type: LPCTSTR

Name of the resource in hSrcModule. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the data type resolves to LPCSTR.

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

Header

D3DX11async.h

Library

D3DX11.lib

See also

D3DX Functions

 

 

Show: