From 3f12964b24f8829a4548f634463492f02b7de913 Mon Sep 17 00:00:00 2001 From: jarcherNV Date: Mon, 4 Aug 2025 12:26:30 -0700 Subject: Add support for pointer literals in metal (#8040) Add support for kIROp_PtrLit types in metal and add a test for null pointer values, which is the only valid value. --- source/slang/slang-emit-metal.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') diff --git a/source/slang/slang-emit-metal.cpp b/source/slang/slang-emit-metal.cpp index d3b00d57d..7dd0c19ad 100644 --- a/source/slang/slang-emit-metal.cpp +++ b/source/slang/slang-emit-metal.cpp @@ -937,6 +937,11 @@ bool MetalSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inO } return true; } + case kIROp_PtrLit: + { + m_writer->emit("nullptr"); + return true; + } default: break; } -- cgit v1.2.3