diff options
| author | cheneym2 <acheney@nvidia.com> | 2024-09-05 14:59:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-05 11:59:28 -0700 |
| commit | 313677160a186efebf83fab4df7d08dd119a5cd2 (patch) | |
| tree | e12e159846f0b7b0e3567d028ad4a57cd9f001aa /tests/library/precompiled-dxil.slang | |
| parent | 33e8bfd43f66613f6f834fb0e1816ef43071f2e4 (diff) | |
Initial -embed-spirv support (#4974)
* Initial -embed-spirv support
Add support for SPIR-V precompilation using the framework
established for DXIL.
Work on #4883
* SLANG_UNUSED
* Add linkage attributes to exported spirv functions
* Combine DXIL and SPIRV paths
* Whitespace fix
* Merge remaining precompiled spirv/dxil paths
* Change inst accessors to return codegentarget
* Add unit test for precompiled spirv
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tests/library/precompiled-dxil.slang')
| -rw-r--r-- | tests/library/precompiled-dxil.slang | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/library/precompiled-dxil.slang b/tests/library/precompiled-dxil.slang index 8cc25bab5..877472394 100644 --- a/tests/library/precompiled-dxil.slang +++ b/tests/library/precompiled-dxil.slang @@ -1,13 +1,13 @@ // precompiled-dxil.slang // A test that uses slang-modules with embedded precompiled DXIL. -// The test compiles both library slang (export-library.slang) and entrypoint slang (this file) to two slang-modules, each with -embed-dxil options. -// The result is two slang-modules that are then linked together in a third slangc invocation. +// The test compiles both library slang (export-library.slang) to a slang-module using -embed-downstream-ir. +// The result is linked together with this module (precompiled-dxil.slang) in a second slangc invocation. // Internally, slang does not use the IR in the modules to link, but rather their embedded DXIL. // The test passes if there is no errror thrown. // TODO: Check if final linkage used only the precompiled dxil. -//TEST(windows):COMPILE: tests/library/export-library.slang -o tests/library/export-library.slang-module -embed-dxil -profile lib_6_6 -incomplete-library +//TEST(windows):COMPILE: tests/library/export-library.slang -o tests/library/export-library.slang-module -target dxil -embed-downstream-ir -profile lib_6_6 -incomplete-library //TEST(windows):COMPILE: tests/library/precompiled-dxil.slang tests/library/export-library.slang-module -target dxil -entry computeMain -profile cs_6_6 -o tests/library/linked.dxil extern int foo(int a); |
