Disassembles compiled HLSL code.
HRESULT D3DDisassemble(
LPCVOID pSrcData,
SIZE_T SrcDataSize,
UINT Flags,
LPCSTR szComments,
ID3DBlob **ppDisassembly
)
pSrcData
Type: LPCVOID
[in] A pointer to source data as compiled HLSL code.
SrcDataSize
Type: SIZE_T
[in] Length of pSrcData.
Flags
Type: UINT
[in] 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. |
szComments
Type: LPCSTR
[in, optional] The optional comment string at the top of the shader that identifies the shader constants and variables.
ppDisassembly
Type: ID3DBlob **
[out] A pointer to a buffer that receives the ID3DBlob interface that accesses assembly text.
Type: HRESULT
Returns one of the following Direct3D 10 Return Codes.
Header: Declared in d3dcompiler.h.
Library: Use d3d11.lib.