D3DXGetShaderConstantTable

Gets the shader constant table embedded inside shader.

HRESULT 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 Values

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: D3DERR_INVALIDCALL.

D3DXERR_INVALIDDATA E_OUTOFMEMORY

Remarks

A constant table is generated by D3DXCompileShader and embedded in the body of the shader.

Requirements

Header: Declared in D3dx9shader.h.