The ID3DXConstantTable interface is used to access the constant table. This table contains the variables that are used by high-level language shaders and effects.
Method | Description |
---|---|
ID3DXConstantTable::GetBufferPointer | Gets a pointer to the buffer that contains the constant table. |
ID3DXConstantTable::GetBufferSize | Gets the buffer size of the constant table. |
ID3DXConstantTable::GetConstant | Gets a constant by looking up its index. |
ID3DXConstantTable::GetConstantByName | Gets a constant by looking up its name. |
ID3DXConstantTable::GetConstantDesc | Gets a pointer to an array of constant descriptions in the constant table. |
ID3DXConstantTable::GetConstantElement | Gets a constant from an array of constants. An array is made up of elements. |
ID3DXConstantTable::GetDesc | Gets a description of the constant table. |
ID3DXConstantTable::GetSamplerIndex | Returns the sampler index. |
ID3DXConstantTable::SetBool | Sets a Boolean value. |
ID3DXConstantTable::SetBoolArray | Sets an array of Boolean values. |
ID3DXConstantTable::SetDefaults | Sets the constants to their default values. The default values are declared in the variable declarations in the shader. |
ID3DXConstantTable::SetFloat | Sets a floating-point number. |
ID3DXConstantTable::SetFloatArray | Sets an array of floating-point numbers. |
ID3DXConstantTable::SetInt | Sets an integer value. |
ID3DXConstantTable::SetIntArray | Sets an array of integers. |
ID3DXConstantTable::SetMatrix | Sets a nontransposed matrix. |
ID3DXConstantTable::SetMatrixArray | Sets an array of nontransposed matrices. |
ID3DXConstantTable::SetMatrixPointerArray | Sets an array of pointers to nontransposed matrices. |
ID3DXConstantTable::SetMatrixTranspose | Sets a transposed matrix. |
ID3DXConstantTable::SetMatrixTransposeArray | Sets an array of transposed matrices. |
ID3DXConstantTable::SetMatrixTransposePointerArray | Sets an array of pointers to transposed matrices. |
ID3DXConstantTable::SetValue | Sets the contents of the buffer to the constant table. |
ID3DXConstantTable::SetVector | Sets a 4D vector. |
ID3DXConstantTable::SetVectorArray | Sets an array of 4D vectors. |
The LPD3DXCONSTANTTABLE type is defined as a pointer to the ID3DXConstantTable interface.
typedef interface ID3DXConstantTable ID3DXConstantTable; typedef interface ID3DXConstantTable *LPD3DXCONSTANTTABLE;
Header: Declared in D3dx9shader.h.
Import Library: Use D3dx9.lib.