![]() |
![]() |
![]() |
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.
ID3DXConstantTable Members
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 4-D vector. SetVectorArray Sets an array of 4-D vectors.
Remarks
The LPD3DXCONSTANTTABLE type is defined as a pointer to the ID3DXConstantTable interface.
typedef interface ID3DXConstantTable ID3DXConstantTable; typedef interface ID3DXConstantTable *LPD3DXCONSTANTTABLE;
Interface Information
Stock Implementation d3d9.dll Custom Implementation No Inherits from IUnknown Header d3dx9shader.h Import library d3dx9.lib Minimum operating systems Windows 98