summaryrefslogtreecommitdiff
path: root/source/slang/modifier-defs.h
diff options
context:
space:
mode:
authorYong He <yonghe@google.com>2019-01-29 11:41:54 -0800
committerYong He <yonghe@google.com>2019-01-29 11:41:54 -0800
commitb7f8f7abcc3cc1dfa820ebba47a772b78d6a4cfb (patch)
tree26d81dec1162ee9d26b811f0b7621e74ade9e06f /source/slang/modifier-defs.h
parentf8b8ea0055ad877551198e1e295d33860b504672 (diff)
Add support for user defined attributes.
Diffstat (limited to 'source/slang/modifier-defs.h')
-rw-r--r--source/slang/modifier-defs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/modifier-defs.h b/source/slang/modifier-defs.h
index 2276f37f8..164621620 100644
--- a/source/slang/modifier-defs.h
+++ b/source/slang/modifier-defs.h
@@ -315,6 +315,14 @@ END_SYNTAX_CLASS()
// A `[name(arg0, ...)]` style attribute that has been validated.
SYNTAX_CLASS(Attribute, AttributeBase)
+ FIELD(AttributeArgumentValueDict, intArgVals)
+END_SYNTAX_CLASS()
+
+SYNTAX_CLASS(UserDefinedAttribute, Attribute)
+END_SYNTAX_CLASS()
+
+SYNTAX_CLASS(AttributeUsageAttribute, Attribute)
+ FIELD(SyntaxClass<RefObject>, targetSyntaxClass)
END_SYNTAX_CLASS()
// An `[unroll]` or `[unroll(count)]` attribute