D3DGetDebugInfo

Gets shader debug information.

Syntax

HRESULT D3DGetDebugInfo(
         LPCVOID pSrcData,
         SIZE_T SrcDataSize,
         ID3DBlob **ppDebugInfo
)  

Parameters

pSrcData
Type: LPCVOID 

[in] A pointer to source data; either uncompiled or compiled HLSL code.

SrcDataSize
Type: SIZE_T 

[in] Length of pSrcData.

ppDebugInfo
Type: ID3DBlob **

[out] Optional. A pointer to an ID3DBlob that contains debug information.

Return value

Type: HRESULT 

Returns one of the following Direct3D 10 Return Codes.

Remarks

Debug information is embedded in the body of the shader after calling D3DCompile.

Requirements

Header: Declared in d3dcompiler.h.

Library: Use d3d11.lib.