D3DXDisassembleEffect function

Disassemble an effect.

Syntax

HRESULT D3DXDisassembleEffect(
  _In_  LPD3DXEFFECT pEffect,
  _In_  BOOL         EnableColorCode,
  _Out_ LPD3DXBUFFER *ppDisassembly
);

Parameters

pEffect [in]

Type: LPD3DXEFFECT

Pointer to an ID3DXEffect interface that contains the effect.

EnableColorCode [in]

Type: BOOL

Enable color coding to make the disassembly easier to read.

ppDisassembly [out]

Type: LPD3DXBUFFER*

Returns a buffer containing the disassembled shader. See ID3DXBuffer.

Return value

Type: HRESULT

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: D3DERR_INVALIDCALL, D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

Requirements

Requirement Value
Header
D3DX9Effect.h
Library
D3dx9.lib

See also

Effect Functions