ID3D10Effect::GetVariableByName method (d3d10effect.h)

Get a variable by name.

Syntax

ID3D10EffectVariable * GetVariableByName(
  [in] LPCSTR Name
);

Parameters

[in] Name

Type: LPCSTR

The variable name.

Return value

Type: ID3D10EffectVariable*

A pointer to an ID3D10EffectVariable Interface.

Remarks

An effect may contain one or more variables. Variables outside of a technique are considered global to all effects, those located inside of a technique are local to that technique. You can access an effect variable using its name or with an index.

The method returns a pointer to an effect-variable interface if a variable is not found; you can call ID3D10Effect::IsValid to verify whether or not the name exists.

Requirements

Requirement Value
Target Platform Windows
Header d3d10effect.h

See also

ID3D10Effect Interface