Microsoft DirectX 9.0

D3DXGetShaderDebugInfo Function


Gets shader debug information.

Syntax

HRESULT WINAPI D3DXGetShaderDebugInfo(      

    CONST DWORD* pFunction,     LPD3DXBUFFER* ppDebugInfo );

Parameters

pFunction
[in] Pointer to the shader function DWORD stream.
ppDebugInfo
[out] Pointer to an optional buffer used to return debug information. This buffer will be set to NULL and unused if the debug information is already in Microsoft® DirectX® 9.0 format. The data in the buffer is organized by this structure, D3DXSHADER_DEBUGINFO.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.



Remarks

The shader debug information is included as a comment block inside shaders. All offsets are measured in bytes from the beginning of the structure.

Function Information

Headerd3dx9shader.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98

See Also

D3DXSHADER_INSTRUCTIONINFO


© 2002 Microsoft Corporation. All rights reserved.