mirror of
https://github.com/hedge-dev/XenosRecomp.git
synced 2025-10-30 07:12:17 +00:00
Enable source inclusion for recompiled shaders
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
This commit is contained in:
parent
f542f86c28
commit
d6cd7ca917
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ std::vector<uint8_t> AirCompiler::compile(const std::string& shaderSource) {
|
|||
close(tmpFD);
|
||||
|
||||
pid_t pid;
|
||||
char* airArgv[] = { "xcrun", "-sdk", "macosx", "metal", "-o", irFile.data(), "-c", inputFile.data(), "-D__air__", "-DUNLEASHED_RECOMP", "-Wno-unused-variable", nullptr };
|
||||
char* airArgv[] = { "xcrun", "-sdk", "macosx", "metal", "-o", irFile.data(), "-c", inputFile.data(), "-D__air__", "-DUNLEASHED_RECOMP", "-Wno-unused-variable", "-frecord-sources", "-gline-tables-only", nullptr };
|
||||
|
||||
if (posix_spawn(&pid, "/usr/bin/xcrun", nullptr, nullptr, airArgv, nullptr) != 0) {
|
||||
unlink(inputFile.data());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue