BaseEffect.SetValue(EffectHandle,Int32[]) 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 n() As Integer _
)
C# public void SetValue(
    EffectHandle parameter,
    int[] n
);
C++ public:
void SetValue(
    EffectHandleparameter,
    array<int>^ n
);
JScript public function SetValue(
    parameter : EffectHandle,
    n : int[]
);

Parameters

parameter Microsoft.DirectX.Direct3D.EffectHandle
Unique EffectHandle identifier.
n System.Int32[]
Array of Int32Leave Site values 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