Export (0) Print
Expand All

D3DXDisassembleShader function

Disassemble a shader.

Note  Instead of using this legacy function, we recommend that you use the D3DDisassemble API.

Syntax


HRESULT D3DXDisassembleShader(
  _In_   const DWORD *pShader,
  _In_   BOOL EnableColorCode,
  _In_   LPCSTR pComments,
  _Out_  LPD3DXBUFFER *ppDisassembly
);

Parameters

pShader [in]

Type: const DWORD*

Pointer to a memory buffer that contains the shader data.

EnableColorCode [in]

Type: BOOL

Enable color code to make it easier to read the disassembly.

pComments [in]

Type: LPCSTR

An optional NULL-terminated comment string. This value may be NULL.

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

Header

D3DX9Shader.h

Library

D3dx9.lib

 

 

Community Additions

ADD
Show:
© 2014 Microsoft