![]() |
![]() |
![]() |
BaseEffect.GetValue Method |
Language: |
Retrieves the value of an arbitrary parameter or annotation, including simple types, structures, arrays, strings, shaders, and textures.
Visual Basic .NET Public Function GetValue( _
ByVal parameter As EffectHandle, _
ByVal numberBytes As Integer _
) As GraphicsStreamC# public GraphicsStream GetValue(
EffectHandle parameter,
int numberBytes
);Managed C++ public: GraphicsStream* GetValue(
EffectHandle *parameter,
int numberBytes
);JScript .NET public function GetValue(
parameter : EffectHandle,
numberBytes : int
) : GraphicsStream;
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.
Microsoft.DirectX.GraphicsStream . A GraphicsStream object that contains the value.
Exceptions
InvalidCallException The call is invalid. BaseEffect This method can be used in place of nearly all of the Get* calls in BaseEffect.
Effect, EffectCompiler
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center