BaseEffect.SetValue(EffectHandle,Void,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 data As Void, _
ByVal dataSize As Integer _
)C# public void SetValue(
EffectHandle parameter,
void data,
int dataSize
);C++ public:
void SetValue(
EffectHandle^ parameter,
void data,
int dataSize
);JScript public function SetValue(
parameter : EffectHandle,
data : void,
dataSize : int
);
Parameters
parameter Microsoft.DirectX.Direct3D.EffectHandle
Unique EffectHandle identifier.data System.Void
A buffer containing the data to set.dataSize System.Int32
Number of bytes in the data buffer.
Remarks
This method can be used in place of nearly all of the Set* methods in BaseEffect.
Exceptions
The call is invalid.
Applies To