Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
D3DDisassemble function (d3dcompiler.h)
Disassembles compiled HLSL code.
Syntax
HRESULT D3DDisassemble(
[in] LPCVOID pSrcData,
[in] SIZE_T SrcDataSize,
[in] UINT Flags,
[in, optional] LPCSTR szComments,
[out] ID3DBlob **ppDisassembly
);
Parameters
[in] pSrcData
Type: LPCVOID
A pointer to source data as compiled HLSL code.
[in] SrcDataSize
Type: SIZE_T
Length of pSrcData.
[in] 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. |
[in, optional] szComments
Type: LPCSTR
The comment string at the top of the shader that identifies the shader constants and variables.
[out] 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
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | d3dcompiler.h |
| Library | D3dcompiler_47.lib |
| DLL | D3dcompiler_47.dll |
See also
Feedback
Was this page helpful?
