ID3DX11ThreadPump::AddWorkItem method

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.

Adds a work item to the thread pump.

Syntax

HRESULT AddWorkItem(
  [in]  ID3DX11DataLoader    *pDataLoader,
  [in]  ID3DX11DataProcessor *pDataProcessor,
  [in]  HRESULT              *pHResult,
  [out] void                 **ppDeviceObject
);

Parameters

pDataLoader [in]

Type: ID3DX11DataLoader*

The loader that the thread pump will use when a work item requires data to be loaded.

pDataProcessor [in]

Type: ID3DX11DataProcessor*

The processor that the thread pump will use when a work item requires data to be processed.

pHResult [in]

Type: HRESULT*

A pointer to the return value. May be NULL.

ppDeviceObject [out]

Type: void**

The device that uses the object.

Return value

Type: HRESULT

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

Requirements

Requirement Value
Header
D3DX11core.h
Library
D3DX11.lib

See also

ID3DX11ThreadPump

D3DX Interfaces