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 |
|
|---|
See also