?/TD> |
Microsoft DirectX 9.0 |
Gets a pointer to the descriptions of constants in the constant table.
Syntax
HRESULT GetConstantDesc(
D3DXHANDLE hConstant, D3DXCONSTANT_DESC* pDesc, UINT* pCount );
Parameters
- hConstant
- [in] Unique identifier to the parent data structure. If the constant is a top-level parameter (there is no parent data structure), use NULL.
- pDesc
- [in, out] Returns a pointer to an array of descriptions. See D3DXCONSTANT_DESC.
- pCount
- [in, out] The input suppiled must be the maximum size of the array. The output is the number of elements that are filled in the array when the function returns.
Return Value
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be one of the following values.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. D3DXERR_INVALIDDATA The data is invalid.
Remarks
Since samplers can appear more than once in a constant table, this method can return an array of descriptions, each one with a different register index.
See Also
ID3DXConstantTable::GetDesc