Microsoft DirectX 9.0 SDK Update (October 2004)

BaseEffect.GetValue Method

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves the value of an arbitrary parameter or annotation, including simple types, structures, arrays, strings, shaders, and textures.

Definition

Visual Basic .NET Public Function GetValue( _
    ByVal parameter As EffectHandle, _
    ByVal numberBytes As Integer _
) As GraphicsStream
C# 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;

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

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center