BaseEffect.SetValue(EffectHandle,BaseTexture) Method (Microsoft.DirectX.Direct3D)

Sets the value of an arbitrary parameter or annotation, including simple types, structures, arrays, strings, shaders, and textures.

Definition

Visual Basic Public Sub SetValue( _
    ByVal parameter As EffectHandle, _
    ByVal texture As BaseTexture _
)
C# public void SetValue(
    EffectHandle parameter,
    BaseTexture texture
);
C++ public:
void SetValue(
    EffectHandleparameter,
    BaseTexturetexture
);
JScript public function SetValue(
    parameter : EffectHandle,
    texture : BaseTexture
);

Parameters

parameter Microsoft.DirectX.Direct3D.EffectHandle
Unique EffectHandle identifier.
texture Microsoft.DirectX.Direct3D.BaseTexture
A BaseTexture object to set.

Remarks

This method can be used in place of nearly all of the Set* methods in BaseEffect.

Exceptions

InvalidCallException

The call is invalid.

Applies To

Effect, EffectCompiler