BaseEffect.GetValue(EffectHandle,Int32) Method (Microsoft.DirectX.Direct3D)
Retrieves the value of an arbitrary parameter or annotation, including simple types, structures, arrays, strings, shaders, and textures.
Definition
Visual Basic Public Function GetValue( _
ByVal parameter As EffectHandle, _
ByVal numberBytes As Integer _
) As GraphicsStreamC# public GraphicsStream GetValue(
EffectHandle parameter,
int numberBytes
);C++ public:
GraphicsStream^ GetValue(
EffectHandle^ parameter,
int numberBytes
);JScript public function GetValue(
parameter : EffectHandle,
numberBytes : int
) : GraphicsStream;
Parameters
parameter Microsoft.DirectX.Direct3D.EffectHandle
Unique EffectHandle identifier.numberBytes System.Int32
Number of bytes in the GraphicsStream. To skip size validation, pass in 0, provided the GraphicsStream is large enough to contain the entire parameter.
Return Value
Microsoft.DirectX.GraphicsStream
A GraphicsStream object that contains the value.
Remarks
Exceptions
The call is invalid.
This method can be used in place of nearly all of the Get* calls in BaseEffect.
Applies To