summaryrefslogtreecommitdiff
path: root/tests/reflection/attribute.slang
AgeCommit message (Collapse)Author
2024-05-02Allow multiple _AttributeTargets for attribute declaration (#4087)kaizhangNV
The syntax like: [__AttributeUsage(_AttributeTargets.Var)] [__AttributeUsage(_AttributeTargets.Param)] struct DefaultValueAttribute { int iParam; }; is allowed. For user-defined attribute, we can specify more attribute targets on the attribute declaration. So one attribute can be used in more than one situations.
2024-05-02Fix reflection-test issue (#4082) (#4084)kaizhangNV
The reflection test doesn't print the user attributes decorating for the variables, only types. Therefore, add the print for user attributes of variables.
2022-05-18Support for querying which parameters are used in emitted code (#2239)Alexey Panteleev
See https://github.com/shader-slang/slang/issues/2213
2019-01-29Add underscores to `AttributeUsage` to signal its preview state.Yong He
2019-01-29Add support for user defined attributes.Yong He