D3DX10CreateAsyncEffectCompilerProcessor function

Create an asynchronous-data processor for an effect.

Syntax

HRESULT D3DX10CreateAsyncEffectCompilerProcessor(
  _In_        LPCSTR               pFileName,
  _In_  const D3D_SHADER_MACRO   *pDefines,
  _In_        LPD3D10INCLUDE       pInclude,
  _In_        UINT                 Flags,
  _In_        UINT                 FXFlags,
  _Out_       ID3D10Blob           **ppCompiledShader,
  _Out_       ID3D10Blob           **ppErrorBuffer,
  _Out_       ID3DX10DataProcessor **ppDataProcessor
);

Parameters

pFileName [in]

Type: LPCSTR

A string that contains the effect filename.

pDefines [in]

Type: const D3D_SHADER_MACRO*

A NULL-terminated array of shader macros (see D3D_SHADER_MACRO); set this to NULL to specify no macros.

pInclude [in]

Type: LPD3D10INCLUDE

A pointer to an include interface (see ID3D10Include Interface). This parameter can be NULL.

Flags [in]

Type: UINT

HLSL compile options.

FXFlags [in]

Type: UINT

Effect compile options).

ppCompiledShader [out]

Type: ID3D10Blob**

Address of a pointer to buffer (see ID3D10Blob Interface) that contains the compiled effect.

ppErrorBuffer [out]

Type: ID3D10Blob**

Address of a pointer to a buffer (see ID3D10Blob Interface) that contains compile errors.

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.

Requirements

Requirement Value
Header
D3DX10Async.h

See also

General Purpose Functions