diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-23 16:39:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-23 16:39:46 -0800 |
| commit | 401d8cdb12ae69aeb216c80c9bb90240d8359649 (patch) | |
| tree | 4548c9de52bdeff424a0a3969ad407fccb3c0f09 /tests/serialization/extern/module-b.slang | |
| parent | 58eb6f7da01af1767282ee12b0b4b25c57e52afb (diff) | |
Add slangc interface to compile and use ir modules. (#3615)
* Add slangc interface to compile and use ir modules.
* Fix glsl scalar layout settings not copied to target.
* Fix.
* Cleanups.
Diffstat (limited to 'tests/serialization/extern/module-b.slang')
| -rw-r--r-- | tests/serialization/extern/module-b.slang | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/serialization/extern/module-b.slang b/tests/serialization/extern/module-b.slang index 20371f156..2bc646db8 100644 --- a/tests/serialization/extern/module-b.slang +++ b/tests/serialization/extern/module-b.slang @@ -3,10 +3,10 @@ // module-b.slang // This looks like a definition (and it is) but with [__extern] it's definition will be replaced at link time with a defintion -[__extern] struct Thing {}; -[__extern] int foo(Thing thing); +extern struct Thing {}; +extern int foo(Thing thing); -int doSomething(Thing a, Thing b) +export int doSomething(Thing a, Thing b) { return foo(a) + foo(b); } |
