diff options
| author | Yong He <yonghe@outlook.com> | 2023-09-21 14:00:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-21 14:00:48 -0700 |
| commit | 5b2eb06816521cc0fcfe03258452560bd200002d (patch) | |
| tree | dc06cc626ff0059dded3f4245f9309b3071ae94c /source/slang/core.meta.slang | |
| parent | af8ce68e9fd7b6255b6e4e9e9524a285497116dc (diff) | |
Various slangpy fixes. (#3227)
* Make dynamic cast transparent through `IRAttributedType`.
* Add [CUDAXxx] variant of attributes.
* Support marshaling of vector types.
* Wrap cuda kernels in `extern "C"` block.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/core.meta.slang')
| -rw-r--r-- | source/slang/core.meta.slang | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index 55cf5896f..43640eb41 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -2290,6 +2290,15 @@ __attributeTarget(FuncDecl) attribute_syntax [CudaKernel] : CudaKernelAttribute; __attributeTarget(FuncDecl) +attribute_syntax [CUDADeviceExport] : CudaDeviceExportAttribute; + +__attributeTarget(FuncDecl) +attribute_syntax [CUDAHost] : CudaHostAttribute; + +__attributeTarget(FuncDecl) +attribute_syntax [CUDAKernel] : CudaKernelAttribute; + +__attributeTarget(FuncDecl) attribute_syntax[AutoPyBindCUDA] : AutoPyBindCudaAttribute; __attributeTarget(AggTypeDecl) |
