?/TD>
Microsoft DirectX 9.0

D3DXGetShaderConstantTable Function


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_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
D3DXERR_INVALIDDATAThe data is invalid.
E_OUTOFMEMORYMicrosoft?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

Headerd3dx9shader.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2002 Microsoft Corporation. All rights reserved.