diff options
| author | Yong He <yonghe@outlook.com> | 2024-05-08 20:52:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-08 20:52:36 -0700 |
| commit | 8e86121b6ce0f2995050ebe112306ded6bc87ca2 (patch) | |
| tree | 5c7f03ec9a144fa4d38eba67d563aefaaa1f4f9a /source/slang/core.meta.slang | |
| parent | 448e21adac9ec260d7854076a686bd506bb371ec (diff) | |
Support `[__ref]` attribute to make `this` pass by reference. (#4139)
Fixes #4110.
Diffstat (limited to 'source/slang/core.meta.slang')
| -rw-r--r-- | source/slang/core.meta.slang | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index 22822196c..bde943972 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -2561,6 +2561,9 @@ attribute_syntax [nonmutating] : NonmutatingAttribute; __attributeTarget(FunctionDeclBase) attribute_syntax [constref] : ConstRefAttribute; +__attributeTarget(FunctionDeclBase) +attribute_syntax [__ref] : RefAttribute; + /// Indicates that a function computes its result as a function of its arguments without loading/storing any memory or other state. /// /// This is equivalent to the LLVM `readnone` function attribute. |
