summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-04-19 21:02:32 -0700
committerGitHub <noreply@github.com>2024-04-19 21:02:32 -0700
commitbeae3a9d219dac1e4e3da9c357b25d06370388f3 (patch)
treeca4eb2a8e9ca67a130e3894c517114709576af75 /tools
parentf9bcad35562c1f08638e6d3eb397d370d7d2f8f8 (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.cpp6
-rw-r--r--tools/slang-test/test-context.h1
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)
};
};