BaseEffect.SetValue Method

Language:

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 vector() As Vector4 _
)
C# public void SetValue(
    EffectHandle parameter,
    Vector4[] vector
);
C++ public:
void SetValue(
    EffectHandleparameter,
    array<Vector4>^ vector
);
JScript public function SetValue(
    parameter : EffectHandle,
    vector : Vector4[]
);

Parameters

parameter Microsoft.DirectX.Direct3D.EffectHandle
Unique EffectHandle identifier.
vector Microsoft.DirectX.Vector4[]
Array of Vector4 structures 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

Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.