D3DDisassemble function

Disassembles compiled HLSL code.

Syntax

HRESULT D3DDisassemble(
  LPCVOID  pSrcData,
  SIZE_T   SrcDataSize,
  UINT     Flags,
  LPCSTR   szComments,
  ID3DBlob **ppDisassembly
);

Parameters

pSrcData

Type: LPCVOID

A pointer to source data as compiled HLSL code.

SrcDataSize

Type: SIZE_T

Length of pSrcData.

Flags

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

Type: LPCSTR

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

ppDisassembly

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

   
Target Platform Windows
Header d3dcompiler.h
Library D3dcompiler_47.lib
DLL D3dcompiler_47.dll

See Also

Functions