D3DXSHADER_CONSTANTTABLE

Helper structure for managing a shader constant table. This can also be done using ID3DXConstantTable.

typedef struct D3DXSHADER_CONSTANTTABLE {
    DWORD Size;
    DWORD Creator;
    DWORD Version;
    DWORD Constants;
    DWORD ConstantInfo;
    DWORD Flags;
    DWORD Target;
} D3DXSHADER_CONSTANTTABLE, *LPD3DXSHADER_CONSTANTTABLE;

Members

Size
Size of the structure. See Remarks.
Creator
Offset from the beginning of this structure, in bytes, to the string that contains the name of the creator.
Version
Shader version.
Constants
Number of constants.
ConstantInfo
Array of constant information, D3DXSHADER_CONSTANTINFO[Constants]. See D3DXSHADER_CONSTANTINFO.
Flags
The D3DXSHADER Flags flags used to compile the shader.
Target
Offset into the string that contains the target.

Remarks

Shader constant information is included in a tab-delimited table of comments. All offsets are measured in bytes from the beginning of the structure. Entries in the constant table are sorted by Creator in ascending order.

A shader constant table can be managed with the ID3DXConstantTable interfaces. Alternatively, you can manage the constant table with D3DXSHADER_CONSTANTTABLE.

This size member is often initialized using the following:

D3DXSHADER_CONSTANTTABLE constantTable;
constantTable.Size = sizeof(D3DXSHADER_CONSTANTTABLE)

See Also

D3DXGetShaderConstantTable