Share via


BaseEffect.GetAnnotation(EffectHandle,Int32) Method (Microsoft.DirectX.Direct3D)

Retrieves an annotation.

Definition

Visual Basic Public Function GetAnnotation( _
    ByVal technique As EffectHandle, _
    ByVal index As Integer _
) As EffectHandle
C# public EffectHandle GetAnnotation(
    EffectHandle technique,
    int index
);
C++ public:
EffectHandleGetAnnotation(
    EffectHandletechnique,
    int index
);
JScript public function GetAnnotation(
    technique : EffectHandle,
    index : int
) : EffectHandle;

Parameters

technique Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle object that represents a technique, pass, or top-level parameter.
index System.Int32
Annotation index.

Return Value

Microsoft.DirectX.Direct3D.EffectHandle
A EffectHandle object that specifies the annotation, or null if the annotation is not found.

Remarks

Annotations are user-specific data that can be attached to any technique, pass, or parameter.

Applies To

Effect, EffectCompiler