Jump to content

  • Log In with Google      Sign In   
  • Create Account

how to get the Annotations of D3D10 Effect?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 db123   Members   -  Reputation: 216

Like
0Likes
Like

Posted 20 March 2012 - 11:16 PM

I find these api in directx 9.

Add Parameter Information with Annotations

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 (;).

For instance, both of the previous examples in this paper contain this annotation:








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



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.

Each annotation:


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?Posted Image Posted Image Posted Image

Sponsor:

#2 db123   Members   -  Reputation: 216

Like
1Likes
Like

Posted 20 March 2012 - 11:21 PM

resolved:
GetAnnotationByIndex Get an annotation by index.

GetAnnotationByName Get an annotation by name.

this is in the ID3D10EffectVariable Interface.

#3 db123   Members   -  Reputation: 216

Like
1Likes
Like

Posted 20 March 2012 - 11:32 PM

and then , cast to string variable. ok~!Posted Image




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS