?/TD> |
Microsoft DirectX 9.0 |
Gets the shader constant table embedded inside shader.
Syntax
HRESULT WINAPI D3DXGetShaderConstantTable(
CONST DWORD* pFunction, LPD3DXCONSTANTTABLE* ppConstantTable );
Parameters
- pFunction
- [in] Pointer to the function DWORD stream.
- ppConstantTable
- [out, retval] Returns the constant table interface that manages the constant table. See ID3DXConstantTable.
Return Value
If the function succeeds, the return value is D3D_OK.
If the function 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. E_OUTOFMEMORY Microsoft?Direct3D?could not allocate sufficient memory to complete the call.
Remarks
A constant table is generated by D3DXCompileShader and embedded in the body of the shader.
Function Information
Header d3dx9shader.h Import library d3dx9.lib Minimum operating systems Windows 98