Compare commits

..

2 commits

Author SHA1 Message Date
squidbus
99db834f5c
Merge f581e40c71 into 990d03b28a 2025-08-09 10:53:25 +00:00
squidbus
f581e40c71 MSL shader support
Co-authored-by: Isaac Marovitz <isaacryu@icloud.com>
2025-08-09 03:53:19 -07:00

View file

@ -53,7 +53,13 @@ std::vector<uint8_t> AirCompiler::compile(const std::string& shaderSource)
std::exit(1);
}
const char* compileCommand[] = { "/usr/bin/xcrun", "-sdk", "macosx", "metal", "-o", irPath.path.c_str(), "-c", sourcePath.path.c_str(), "-D__air__", "-DUNLEASHED_RECOMP", "-Wno-unused-variable", "-frecord-sources", "-gline-tables-only", nullptr };
const char* compileCommand[] = {
"/usr/bin/xcrun", "-sdk", "macosx", "metal", "-o", irPath.path.c_str(), "-c", sourcePath.path.c_str(), "-Wno-unused-variable", "-frecord-sources", "-gline-tables-only", "-D__air__",
#ifdef UNLEASHED_RECOMP
"-DUNLEASHED_RECOMP",
#endif
nullptr
};
if (const int compileStatus = executeCommand(compileCommand); compileStatus != 0)
{
fmt::println("Metal compiler exited with status: {}", compileStatus);