how to get the Annotations of D3D10 Effect?

Started by
1 comment, last by db123 12 years ago
I find these api in directx 9.

Add Parameter Information with Annotations
[color=#2A2A2A]
Annotations are user-specific data that can be attached to any technique, pass, or parameter. An annotation is a flexible way to add information to individual parameters. The information can be read back and used any way the application chooses. An annotation can be of any data type and can be added dynamically. Annotation declarations are delimited by angle brackets. An annotation contains:

  • A data type.
  • A variable name.
  • An equals sign (=).
  • The data value.
  • A ending semicolon (;).
[color=#2A2A2A]
For instance, both of the previous examples in this paper contain this annotation:[color=#000000]







texture Tex0 < string name = "tiger.bmp"; >;


[color=#2A2A2A]
The annotation is attached to the texture object and specifies the texture file that should be used to initialize the texture object. The annotation does not initialize the texture object, it is simply a piece of user information that is attached to the variable. An application can read the annotation with either ID3DXBaseEffect::GetAnnotation or ID3DXBaseEffect::GetAnnotationByName to return the string. Annotations can also be added by the application.[color=#2A2A2A]
Each annotation:
[/quote]

but how to get the Annotations in directx 10/11?
we can get ID3D10Effect interface. but i can't find a member function which can be used to get the annotaions.
does the directx10 effect support annotation?sad.png sad.png sad.png
Advertisement
[color=#ff0000]resolved:
[color=#ff0000]GetAnnotationByIndex Get an annotation by index.

[color=#ff0000]GetAnnotationByName Get an annotation by name.

[color=#ff0000]this is in the ID3D10EffectVariable Interface.
and then , cast to string variable. ok~!rolleyes.gif

This topic is closed to new replies.

Advertisement