From 2c66cc7ef03b4d38fc463f2c8609a81232fcb91a Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 17 Apr 2024 21:32:28 -0700 Subject: Add skeleton for metal backend. (#3971) --- source/slang/slang-emit-c-like.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-emit-c-like.cpp') diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index ceb4e6de0..7cb4871be 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -91,6 +91,10 @@ struct CLikeSourceEmitter::ComputeEmitActionsContext { return SourceLanguage::CUDA; } + case CodeGenTarget::Metal: + { + return SourceLanguage::Metal; + } } } @@ -3699,7 +3703,6 @@ void CLikeSourceEmitter::emitVarModifiers(IRVarLayout* layout, IRInst* varDecl, { // TODO(JS): We could push all of this onto the target impls, and then not need so many virtual hooks. emitVarDecorationsImpl(varDecl); - emitTempModifiers(varDecl); if (!layout) -- cgit v1.2.3