EffectParameterCollection.GetParameterBySemantic Method

Gets an effect parameter from its semantic usage.

Syntax

'Declaration
Public Function GetParameterBySemantic ( _
         semantic As String _
) As EffectParameter 
public EffectParameter GetParameterBySemantic (
         string semantic
)
public:
EffectParameter GetParameterBySemantic(
         String semantic
)

Parameters

  • semantic
    Type: String
    The semantic meaning, or usage, of the parameter.

Return Value

Type: EffectParameter
The first parameter that matches the semantic usage, or null if no matching parameter was found.

Requirements

Namespace: Microsoft.Xna.Framework.Graphics

Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

See Also

Reference

EffectParameterCollection Class
EffectParameterCollection Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Windows Phone