diff options
| author | Yong He <yonghe@outlook.com> | 2023-03-16 22:17:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-16 22:17:34 -0700 |
| commit | fc9cba5307d166f7fda3f7e2c8b5bed7b06fef54 (patch) | |
| tree | 1a7e73b2b00cd5672c0c7318a6f4ab52cf7c5557 /source/slang/slang-ast-modifier.h | |
| parent | 2fd1ac6c85230d47c008e45fefcc1c49400e96bd (diff) | |
Add `[CudaDeviceExport]` to allow exporting CUDA device functions. (#2708)
* Add `[CudaDeviceExport]` to allow exporting CUDA device functions.
* Fix.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ast-modifier.h')
| -rw-r--r-- | source/slang/slang-ast-modifier.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-ast-modifier.h b/source/slang/slang-ast-modifier.h index 80c770c3a..c58b7de21 100644 --- a/source/slang/slang-ast-modifier.h +++ b/source/slang/slang-ast-modifier.h @@ -1063,6 +1063,11 @@ class DllExportAttribute : public Attribute SLANG_AST_CLASS(DllExportAttribute) }; +class CudaDeviceExportAttribute : public Attribute +{ + SLANG_AST_CLASS(CudaDeviceExportAttribute) +}; + class DerivativeMemberAttribute : public Attribute { SLANG_AST_CLASS(DerivativeMemberAttribute) |
