EffectParameter.GetValueTexture2D Method
Gets the value of the EffectParameter as a Texture2D.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public Texture2D GetValueTexture2D ()
Return Value
The value of the EffectParameter as a Texture2D.
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | The resource is not of type ResourceType.Texture2D. |
InvalidCastException | Unable to cast this EffectParameter to type Texture2D. |
Remarks
Getting the value of an effect parameter is a slow operation. Avoid high-frequency calls.
See Also
Reference
EffectParameter Class
EffectParameter Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista