Compare commits

..

2 commits

Author SHA1 Message Date
squidbus
12f588ae35
Merge 1d52a81ba9 into 990d03b28a 2025-08-08 00:39:38 +00:00
squidbus
1d52a81ba9 MSL shader support
Co-authored-by: Isaac Marovitz <isaacryu@icloud.com>
2025-08-07 17:39:34 -07:00

View file

@ -53,13 +53,7 @@ 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(), "-Wno-unused-variable", "-frecord-sources", "-gline-tables-only", "-D__air__",
#ifdef UNLEASHED_RECOMP
"-DUNLEASHED_RECOMP",
#endif
nullptr
};
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 };
if (const int compileStatus = executeCommand(compileCommand); compileStatus != 0)
{
fmt::println("Metal compiler exited with status: {}", compileStatus);