ID3DXConstantTable interface
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.
Members
The ID3DXConstantTable interface inherits from the IUnknown interface. ID3DXConstantTable also has these types of members:
Methods
The ID3DXConstantTable interface has these methods.
| Method | Description |
|---|---|
| GetBufferPointer |
Gets a pointer to the buffer that contains the constant table. |
| GetBufferSize |
Gets the buffer size of the constant table. |
| GetConstant |
Gets a constant by looking up its index. |
| GetConstantByName |
Gets a constant by looking up its name. |
| GetConstantDesc |
Gets a pointer to an array of constant descriptions in the constant table. |
| GetConstantElement |
Gets a constant from an array of constants. An array is made up of elements. |
| GetDesc |
Gets a description of the constant table. |
| GetSamplerIndex |
Returns the sampler index. |
| SetBool |
Sets a Boolean value. |
| SetBoolArray |
Sets an array of Boolean values. |
| SetDefaults |
Sets the constants to their default values. The default values are declared in the variable declarations in the shader. |
| SetFloat |
Sets a floating-point number. |
| SetFloatArray |
Sets an array of floating-point numbers. |
| SetInt |
Sets an integer value. |
| SetIntArray |
Sets an array of integers. |
| SetMatrix |
Sets a nontransposed matrix. |
| SetMatrixArray |
Sets an array of nontransposed matrices. |
| SetMatrixPointerArray |
Sets an array of pointers to nontransposed matrices. |
| SetMatrixTranspose |
Sets a transposed matrix. |
| SetMatrixTransposeArray |
Sets an array of transposed matrices. |
| SetMatrixTransposePointerArray |
Sets an array of pointers to transposed matrices. |
| SetValue |
Sets the contents of the buffer to the constant table. |
| SetVector |
Sets a 4D vector. |
| SetVectorArray |
Sets an array of 4D vectors. |
Remarks
The LPD3DXCONSTANTTABLE type is defined as a pointer to the ID3DXConstantTable interface.
typedef interface ID3DXConstantTable ID3DXConstantTable; typedef interface ID3DXConstantTable *LPD3DXCONSTANTTABLE;
Requirements
|
Header |
|
|---|---|
|
Library |
|
Build date: 11/22/2012