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 GraphicsStream
C# public GraphicsStream GetValue(
    EffectHandle parameter,
    int numberBytes
);
C++ public:
GraphicsStreamGetValue(
    EffectHandleparameter,
    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

InvalidCallException

The call is invalid.

BaseEffect

This method can be used in place of nearly all of the Get* calls in BaseEffect.

Applies To

Effect, EffectCompiler