diff options
| author | Yong He <yonghe@outlook.com> | 2024-04-19 21:02:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-19 21:02:32 -0700 |
| commit | beae3a9d219dac1e4e3da9c357b25d06370388f3 (patch) | |
| tree | ca4eb2a8e9ca67a130e3894c517114709576af75 /tools | |
| parent | f9bcad35562c1f08638e6d3eb397d370d7d2f8f8 (diff) | |
Add metal downstream compiler + metallib target. (#3990)
* Add metal downstream compiler + metallib target.
* Add more comments.
* Add missing override.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/slang-test/slang-test-main.cpp | 6 | ||||
| -rw-r--r-- | tools/slang-test/test-context.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index cb77c8830..eca103339 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -987,6 +987,12 @@ static PassThroughFlags _getPassThroughFlagsForTarget(SlangCompileTarget target) return PassThroughFlag::Dxc; } + case SLANG_METAL_LIB: + case SLANG_METAL_LIB_ASM: + { + return PassThroughFlag::Metal; + } + case SLANG_SHADER_HOST_CALLABLE: case SLANG_HOST_HOST_CALLABLE: diff --git a/tools/slang-test/test-context.h b/tools/slang-test/test-context.h index aa27f7d96..7006ec905 100644 --- a/tools/slang-test/test-context.h +++ b/tools/slang-test/test-context.h @@ -37,6 +37,7 @@ struct PassThroughFlag Generic_C_CPP = 1 << int(SLANG_PASS_THROUGH_GENERIC_C_CPP), NVRTC = 1 << int(SLANG_PASS_THROUGH_NVRTC), LLVM = 1 << int(SLANG_PASS_THROUGH_LLVM), + Metal = 1 << int(SLANG_PASS_THROUGH_METAL) }; }; |
