BaseEffect.SetValue(EffectHandle,Boolean) 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 b As Boolean _
)
C# public void SetValue(
    EffectHandle parameter,
    bool b
);
C++ public:
void SetValue(
    EffectHandleparameter,
    bool b
);
JScript public function SetValue(
    parameter : EffectHandle,
    b : boolean
);

Parameters

parameter Microsoft.DirectX.Direct3D.EffectHandle
Unique EffectHandle identifier.
b System.Boolean
A BooleanLeave Site value 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