Skip to content

Commit aba6500

Browse files
committed
Use HLSL semantics as user name
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent 18145fa commit aba6500

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

XenosRecomp/shader_recompiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
15081508
out += "#if __air__\n";
15091509

15101510
for (auto& [usage, usageIndex] : INTERPOLATORS)
1511-
println("\tfloat4 i{}{};", USAGE_VARIABLES[uint32_t(usage)], usageIndex);
1511+
println("\tfloat4 i{0}{1} [[user({2}{1})]];", USAGE_VARIABLES[uint32_t(usage)], usageIndex, USAGE_SEMANTICS[uint32_t(usage)]);
15121512

15131513
out += "#else\n";
15141514

@@ -1643,7 +1643,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
16431643
out += "\tfloat4 oPos [[position]];\n";
16441644

16451645
for (auto& [usage, usageIndex] : INTERPOLATORS)
1646-
print("\tfloat4 o{0}{1};\n", USAGE_VARIABLES[uint32_t(usage)], usageIndex);
1646+
print("\tfloat4 o{0}{1} [[user({2}{1})]];\n", USAGE_VARIABLES[uint32_t(usage)], usageIndex, USAGE_SEMANTICS[uint32_t(usage)]);
16471647

16481648
out += "#else\n";
16491649

0 commit comments

Comments
 (0)