diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2022-05-05 15:53:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-05 15:53:29 -0400 |
| commit | b915ae662b2e4bcaaeb6da62eb964356d0a978b4 (patch) | |
| tree | 94aa29d7c112bde36557371bed906411f22a7adc /tests/library/export-library.slang | |
| parent | 3088d901fee6447b6d80fa67f258626ece4408dc (diff) | |
Support for HLSL `export` (#2223)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Add support for HLSL `export`.
* Test for using `export` keyword.
Diffstat (limited to 'tests/library/export-library.slang')
| -rw-r--r-- | tests/library/export-library.slang | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/library/export-library.slang b/tests/library/export-library.slang new file mode 100644 index 000000000..f96b1e143 --- /dev/null +++ b/tests/library/export-library.slang @@ -0,0 +1,14 @@ +//TEST_IGNORE_FILE: + +// export-library.slang + +int doThing(int b) +{ + return b + b + 1; +} + +export int foo(int a) +{ + return a * a + 1 + doThing(a + 2); +} + |
