Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D10Effect::GetVariableByName method

Get a variable by name.

Syntax


ID3D10EffectVariable* GetVariableByName(
  [in] LPCSTR Name
);

Parameters

Name [in]

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

Header

D3D10Effect.h

See also

ID3D10Effect Interface

 

 

Show:
© 2017 Microsoft