mirror of
https://github.com/hedge-dev/XenosRecomp.git
synced 2025-10-30 07:12:17 +00:00
Compare commits
2 commits
18145fa4c5
...
06fab7d08e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06fab7d08e | ||
|
|
aba65007b0 |
2 changed files with 3 additions and 3 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());
|
||||
|
|
|
|||
|
|
@ -1508,7 +1508,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
|
|||
out += "#if __air__\n";
|
||||
|
||||
for (auto& [usage, usageIndex] : INTERPOLATORS)
|
||||
println("\tfloat4 i{}{};", USAGE_VARIABLES[uint32_t(usage)], usageIndex);
|
||||
println("\tfloat4 i{0}{1} [[user({2}{1})]];", USAGE_VARIABLES[uint32_t(usage)], usageIndex, USAGE_SEMANTICS[uint32_t(usage)]);
|
||||
|
||||
out += "#else\n";
|
||||
|
||||
|
|
@ -1643,7 +1643,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
|
|||
out += "\tfloat4 oPos [[position]];\n";
|
||||
|
||||
for (auto& [usage, usageIndex] : INTERPOLATORS)
|
||||
print("\tfloat4 o{0}{1};\n", USAGE_VARIABLES[uint32_t(usage)], usageIndex);
|
||||
print("\tfloat4 o{0}{1} [[user({2}{1})]];\n", USAGE_VARIABLES[uint32_t(usage)], usageIndex, USAGE_SEMANTICS[uint32_t(usage)]);
|
||||
|
||||
out += "#else\n";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue