?/TD> |
Microsoft DirectX 9.0 |
Helper structure for managing a shader constant table. This can also be done using ID3DXConstantTable.
Syntax
typedef struct _D3DXSHADER_CONSTANTTABLE { DWORD Size; DWORD Creator; DWORD Version; DWORD Constants; DWORD ConstantInfo; } D3DXSHADER_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.
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)
Structure Information
Header d3dx9shader.h Minimum operating systems Windows 98
See Also
D3DXGetShaderConstantTable