D3DXGetShaderConstantTableEx function

Gets the shader-constant table embedded inside a shader.

Syntax

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

Parameters

pFunction [in]

Type: const DWORD*

Pointer to the function DWORD stream.

Flags [in]

Type: DWORD

Use the D3DXCONSTTABLE_LARGEADDRESSAWARE flag to access up to 4 GB of virtual address space (instead of the default of 2 GB). If you do not need the additional virtual address space, use D3DXGetShaderConstantTable.

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.

Requirements

Requirement Value
Header
D3DX9Shader.h
Library
D3dx9.lib

See also

Shader Functions