Share via


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

Parameters

parameter Microsoft.DirectX.Direct3D.EffectHandle
Unique EffectHandle identifier.
data Microsoft.DirectX.GraphicsStream
A GraphicsStream object that contains the data 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