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;
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)