BaseEffect.SetValue(EffectHandle,String) 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 str As String _
)C# public void SetValue(
EffectHandle parameter,
string str
);C++ public:
void SetValue(
EffectHandle^ parameter,
String^ str
);JScript public function SetValue(
parameter : EffectHandle,
str : String
);
Parameters
parameter Microsoft.DirectX.Direct3D.EffectHandle
Unique EffectHandle identifier.str System.String
A String 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