ID3DXTextureShader::GetConstantByName method

Gets a constant by looking up its name.

Syntax

D3DXHANDLE GetConstantByName(
  [in] D3DXHANDLE hConstant,
  [in] LPCSTR     pName
);

Parameters

hConstant [in]

Type: D3DXHANDLE

A handle to the parent data structure. If the constant is a top-level parameter (there is no parent data structure), use NULL.

pName [in]

Type: LPCSTR

A string containing the name of the constant.

Return value

Type: D3DXHANDLE

Returns a unique identifier to the constant.

Requirements

Header
D3DX9Shader.h
Library
D3dx9.lib

See also

ID3DXTextureShader