EffectParameterCollection.GetParameterBySemantic Method
Gets the handle of a top-level parameter or a structure member parameter by looking up its semantic with a case-insensitive search.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public EffectParameter GetParameterBySemantic (
string semantic
)
Parameters
- semantic
The name of the semantic to search for.
Return Value
The first parameter that matches the semantic, or null if no matching parameter was found.
Remarks
Getting an effect parameter by semantic is a slow operation. Avoid-high frequency calls.
See Also
Reference
EffectParameterCollection Class
EffectParameterCollection Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista