diff options
| author | Yong He <yonghe@outlook.com> | 2023-12-08 16:10:27 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-08 16:10:27 -0800 |
| commit | 12fcffaaaf2d1ffa2eefa680e2d7c9971e38a5db (patch) | |
| tree | fab26218d438d6d6057eab2d3548a72561c18fae /tests/language-feature/modules/import-in-include/b.slang | |
| parent | 4321929879c1ed5b87ff95a99ca7da91e28d18fd (diff) | |
Handle import, entrypoint and global params in included files. (#3395)
* Handle `import`, entrypoint and global params in included files.
* Fix language server.
* Extend `_createScopeForLegacyLookup` for `__include`.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/language-feature/modules/import-in-include/b.slang')
| -rw-r--r-- | tests/language-feature/modules/import-in-include/b.slang | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/language-feature/modules/import-in-include/b.slang b/tests/language-feature/modules/import-in-include/b.slang new file mode 100644 index 000000000..6d8ba30d5 --- /dev/null +++ b/tests/language-feature/modules/import-in-include/b.slang @@ -0,0 +1,14 @@ +implementing c; + +int f() +{ + return helperFunc(); +} + +RWStructuredBuffer<int> outputBuffer; + +[numthreads(1, 1, 1)] +void computeMain() +{ + outputBuffer[0] = f(); +} |
