D3DXGetShaderConstantTable function

Gets the shader-constant table embedded inside a shader.

Syntax


HRESULT D3DXGetShaderConstantTable(
  _In_  const DWORD               *pFunction,
  _Out_       LPD3DXCONSTANTTABLE * ppConstantTable
);

Parameters

pFunction [in]

Type: const DWORD*

Pointer to the function DWORD stream.

ppConstantTable [out]

Type: LPD3DXCONSTANTTABLE*

Returns the constant table interface (see ID3DXConstantTable) that manages the constant table.

Return value

Type: HRESULT

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 shader body. If you need additional virtual address space, see D3DXGetShaderConstantTableEx.

Requirements

Header

D3DX9Shader.h

Library

D3dx9.lib

See also

Shader Functions

 

 

Show: