diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2024-09-17 13:51:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-17 13:51:08 -0700 |
| commit | 07166468c6fa706b7f35d3422e4966f62e7b86d2 (patch) | |
| tree | a468216dc2414d5a870be9ac1b4446823ee951da /include | |
| parent | 25d155937402120292cff9e6f5a31c1d45a2ecbf (diff) | |
Implement math intrinsics for WGSL (#5078)
* Implement math intrinsics for WGSL
This commit implements math related intrinsics and a few others for
WGSL.
The implementation is based on the following doc,
https://www.w3.org/TR/WGSL
slang-test was looking for the downstream compiler for WGSL even though
it is not used.
This commit adds a minimal change to avoid the crash.
Diffstat (limited to 'include')
| -rw-r--r-- | include/slang.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/slang.h b/include/slang.h index 632bcbcbc..3024aa884 100644 --- a/include/slang.h +++ b/include/slang.h @@ -637,6 +637,7 @@ extern "C" SLANG_PASS_THROUGH_LLVM, ///< LLVM 'compiler' - includes LLVM and Clang SLANG_PASS_THROUGH_SPIRV_OPT, ///< SPIRV-opt SLANG_PASS_THROUGH_METAL, ///< Metal compiler + SLANG_PASS_THROUGH_WGSL, ///< WGSL compiler SLANG_PASS_THROUGH_COUNT_OF, }; |
