summaryrefslogtreecommitdiff
path: root/source/slang/slang-compiler.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-04-17 21:32:28 -0700
committerGitHub <noreply@github.com>2024-04-17 21:32:28 -0700
commit2c66cc7ef03b4d38fc463f2c8609a81232fcb91a (patch)
tree7e100ddd0df91e8d7ae90c3335bb416bc50ad6ac /source/slang/slang-compiler.h
parent4b3f554a58e4224806c31d66874fbe60f1f09332 (diff)
Add skeleton for metal backend. (#3971)
Diffstat (limited to 'source/slang/slang-compiler.h')
-rwxr-xr-xsource/slang/slang-compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.h b/source/slang/slang-compiler.h
index 014b678f5..7f7903f8b 100755
--- a/source/slang/slang-compiler.h
+++ b/source/slang/slang-compiler.h
@@ -92,6 +92,7 @@ namespace Slang
CUDAObjectCode = SLANG_CUDA_OBJECT_CODE,
ObjectCode = SLANG_OBJECT_CODE,
HostHostCallable = SLANG_HOST_HOST_CALLABLE,
+ Metal = SLANG_METAL,
CountOf = SLANG_TARGET_COUNT_OF,
};
@@ -1236,6 +1237,7 @@ namespace Slang
NVRTC = SLANG_PASS_THROUGH_NVRTC, ///< NVRTC CUDA compiler
LLVM = SLANG_PASS_THROUGH_LLVM, ///< LLVM 'compiler'
SpirvOpt = SLANG_PASS_THROUGH_SPIRV_OPT, ///< pass thorugh spirv to spirv-opt
+ MetalC = SLANG_PASS_THROUGH_METAL,
CountOf = SLANG_PASS_THROUGH_COUNT_OF,
};
void printDiagnosticArg(StringBuilder& sb, PassThroughMode val);