From beae3a9d219dac1e4e3da9c357b25d06370388f3 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 19 Apr 2024 21:02:32 -0700 Subject: Add metal downstream compiler + metallib target. (#3990) * Add metal downstream compiler + metallib target. * Add more comments. * Add missing override. --- source/core/slang-type-text-util.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/core') diff --git a/source/core/slang-type-text-util.cpp b/source/core/slang-type-text-util.cpp index 7e1ffc439..f2f408b28 100644 --- a/source/core/slang-type-text-util.cpp +++ b/source/core/slang-type-text-util.cpp @@ -61,7 +61,9 @@ static const TypeTextUtil::CompileTargetInfo s_compileTargetInfos[] = { SLANG_SHADER_HOST_CALLABLE, "", "host-callable,callable", "Host callable" }, { SLANG_OBJECT_CODE, "obj,o", "object-code", "Object code" }, { SLANG_HOST_HOST_CALLABLE, "", "host-host-callable", "Host callable for host execution" }, - { SLANG_METAL, "metal", "metal", "Metal shader source"}, + { SLANG_METAL, "metal", "metal", "Metal shader source" }, + { SLANG_METAL_LIB, "metallib", "metallib", "Metal Library Bytecode" }, + { SLANG_METAL_LIB_ASM, "metallib-asm" "metallib-asm", "Metal Library Bytecode assembly" }, }; static const NamesDescriptionValue s_languageInfos[] = @@ -88,6 +90,7 @@ static const NamesDescriptionValue s_compilerInfos[] = { SLANG_PASS_THROUGH_NVRTC, "nvrtc", "NVRTC CUDA compiler" }, { SLANG_PASS_THROUGH_LLVM, "llvm", "LLVM/Clang `slang-llvm`" }, { SLANG_PASS_THROUGH_SPIRV_OPT, "spirv-opt", "spirv-tools SPIRV optimizer" }, + { SLANG_PASS_THROUGH_METAL, "metal", "Metal shader compiler" }, }; static const NamesDescriptionValue s_archiveTypeInfos[] = -- cgit v1.2.3