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 /source/core | |
| 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 'source/core')
| -rw-r--r-- | source/core/slang-type-text-util.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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[] = |
