![]() |
![]() |
![]() |
Standard semantics and annotations are two types of metadata that can be added to effect parameters and techniques to add broad capability. Using industry-standard terms for semantics and annotations allows tools to be built that can take advantage of these effect parameters.
Semantics link inputs and outputs of shaders three ways:
A complete listing of the standard semantics is listed below. For detailed information about shader semantic syntax, see Shader Semantic Syntax. For information about attaching semantics to shader parameters, see Varying Shader Inputs and Semantics
Annotations are additional metadata that an application can read to understand more about how the particular parameter was intended for use. Annotations are being broadly used by many graphics engines to take advantage of shader code without hard-coding each .fx file.
Standard semantics and annotations are listed in the following pages:
To get more information about using semantics and annotations, see Using Standard Semantics and Standard Annotations.