Share via


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

Parameters

parameter Microsoft.DirectX.Direct3D.EffectHandle
Unique EffectHandle identifier.
matrix Microsoft.DirectX.Matrix
A Matrix structure 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