?/TD>
Microsoft DirectX 9.0

D3DXSHADER_DEBUGINFO Structure


Structure containing shader debug information.

Syntax

typedef struct _D3DXSHADER_DEBUGINFO {
    DWORD Size;
    DWORD Creator;
    DWORD SourceCode;
    DWORD Files;
    DWORD FileInfo;
    DWORD Instructions;
    DWORD InstructionInfo;
    DWORD Variables;
    DWORD VariableInfo;
    DWORD EntrypointName;
} D3DXSHADER_DEBUGINFO;

Members

Size
Size of the debug information structure, in bytes. See Remarks.
Creator
Offset from the beginning of this structure, in bytes, to the string that contains the shader creator.
SourceCode
Offset from the beginning of this structure, in bytes, to the string that contains the source code.
Files
Number of source files.
FileInfo
Offset from the beginning of this structure, in bytes, to the string that contains array of file information, D3DXSHADER_FILEINFO[Files]. See D3DXSHADER_FILEINFO.
Instructions
Number of instructions.
InstructionInfo
Offset from the beginning of this structure, in bytes, to the string that contains the array of instruction information, D3DXSHADER_INSTRUCTIONINFO[Instructions]. See D3DXSHADER_INSTRUCTIONINFO.
Variables
Number of variables.
VariableInfo
Offset from the beginning of this structure, in bytes, to the string that contains the array of variable information, D3DXSHADER_VARIABLEINFO[Variables]. See D3DXSHADER_VARIABLEINFO.
EntrypointName
Offset from the beginning of this structure, in bytes, to the string that contains the name of the entry point.

Remarks

The shader debugger, Shader Debugger, uses the D3DXSHADER_ structures while debugging applications. These structures are documented in case you want to build your own shader debugger.

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

This size member is often initialized using the following:

D3DXSHADER_DEBUGINFO debugInfo;
debugInfo.Size = sizeof(D3DXSHADER_DEBUGINFO)
 

Structure Information

Headerd3dx9shader.h
Minimum operating systems Windows 98

See Also

D3DXGetShaderDebugInfo


© 2002 Microsoft Corporation. All rights reserved.