ID3D10Effect::GetVariableByIndex method (d3d10effect.h)

Get a variable by index.

Syntax

ID3D10EffectVariable * GetVariableByIndex(
  [in] UINT Index
);

Parameters

[in] Index

Type: UINT

A zero-based index.

Return value

Type: ID3D10EffectVariable*

A pointer to a 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 any local non-static 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 index exists.

Requirements

Requirement Value
Target Platform Windows
Header d3d10effect.h

See also

ID3D10Effect Interface