From cea4d3f7fefedd8c7b128802b59cba35a89c83aa Mon Sep 17 00:00:00 2001
From: Pedro Diaz
Date: Sun, 12 Jan 2025 11:45:17 +0100
Subject: [PATCH] Added some more Metal keywords used by in the wild to remap
entry points
---
spirv_msl.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/spirv_msl.cpp b/spirv_msl.cpp
index 642fcfa59..36fec8ab0 100644
--- a/spirv_msl.cpp
+++ b/spirv_msl.cpp
@@ -15584,6 +15584,9 @@ const std::unordered_set &CompilerMSL::get_illegal_func_names()
{
static const unordered_set illegal_func_names = {
"main",
+ "fragment",
+ "vertex",
+ "kernel",
"saturate",
"assert",
"fmin3",