BaseEffect.SetValue(EffectHandle,Single) 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 f As Single _
)C# public void SetValue(
EffectHandle parameter,
float f
);C++ public:
void SetValue(
EffectHandle^ parameter,
float f
);JScript public function SetValue(
parameter : EffectHandle,
f : float
);
Parameters
parameter Microsoft.DirectX.Direct3D.EffectHandle
Unique EffectHandle identifier.f System.Single
A Single value to set.
Remarks
This method can be used in place of nearly all of the Set* methods in BaseEffect.
Exceptions
The call is invalid.
Applies To