Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

FlagDescription
D3D_DISASM_ENABLE_COLOR_CODEEnable the output of color codes.
D3D_DISASM_ENABLE_DEFAULT_VALUE_PRINTSEnable the output of default values.
D3D_DISASM_ENABLE_INSTRUCTION_NUMBERINGEnable instruction numbering.
D3D_DISASM_ENABLE_INSTRUCTION_CYCLENo effect.
D3D_DISASM_DISABLE_DEBUG_INFODisable debug information.
D3D_DISASM_ENABLE_INSTRUCTION_OFFSETEnable instruction offsets.
D3D_DISASM_INSTRUCTION_ONLYDisassemble instructions only.
D3D_DISASM_PRINT_HEX_LITERALSUse 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

 

 

Show:
© 2016 Microsoft