D3DDisassemble function

Disassembles compiled HLSL code.

Syntax

HRESULT WINAPI D3DDisassemble(
  in     LPCVOID pSrcData,
  in     SIZE_T SrcDataSize,
  in     UINT Flags,
  in_opt LPCSTR szComments,
  out    ID3DBlob ppDisassembly
);

Parameters

pSrcData [in]

Type: LPCVOID

A pointer to source data as compiled HLSL code.

SrcDataSize [in]

Type: SIZE_T

Length of pSrcData.

Flags [in]

Type: UINT

Flags affecting the behavior of D3DDisassemble. Flags can be a combination of zero or more of the following values.

Flag Description
D3D_DISASM_ENABLE_COLOR_CODE Enable the output of color codes.
D3D_DISASM_ENABLE_DEFAULT_VALUE_PRINTS Enable the output of default values.
D3D_DISASM_ENABLE_INSTRUCTION_NUMBERING Enable instruction numbering.
D3D_DISASM_ENABLE_INSTRUCTION_CYCLE No effect.
D3D_DISASM_DISABLE_DEBUG_INFO Disable debug information.
D3D_DISASM_ENABLE_INSTRUCTION_OFFSET Enable instruction offsets.
D3D_DISASM_INSTRUCTION_ONLY Disassemble instructions only.
D3D_DISASM_PRINT_HEX_LITERALS Use hex symbols in disassemblies.

szComments [in, optional]

Type: LPCSTR

The comment string at the top of the shader that identifies the shader constants and variables.

ppDisassembly [out]

Type: ID3DBlob**

A pointer to a buffer that receives the ID3DBlob interface that accesses assembly text.

Return value

Type: HRESULT

Returns one of the Direct3D 11 return codes.

Requirements

Header
D3Dcompiler.h
Library
D3dcompiler_47.lib
DLL
D3dcompiler_47.dll

See also

Functions