?/TD> |
Microsoft DirectX 9.0 |
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
Header d3dx9shader.h Import library d3dx9.lib Minimum operating systems Windows 98
See Also
D3DXSHADER_INSTRUCTIONINFO