mirror of
				https://github.com/hedge-dev/XenosRecomp.git
				synced 2025-10-30 07:12:17 +00:00 
			
		
		
		
	Use HLSL semantics as user name
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
This commit is contained in:
		
							parent
							
								
									18145fa4c5
								
							
						
					
					
						commit
						aba65007b0
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1508,7 +1508,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi | ||||||
|         out += "#if __air__\n"; |         out += "#if __air__\n"; | ||||||
| 
 | 
 | ||||||
|         for (auto& [usage, usageIndex] : INTERPOLATORS) |         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"; |         out += "#else\n"; | ||||||
| 
 | 
 | ||||||
|  | @ -1643,7 +1643,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi | ||||||
|         out += "\tfloat4 oPos [[position]];\n"; |         out += "\tfloat4 oPos [[position]];\n"; | ||||||
| 
 | 
 | ||||||
|         for (auto& [usage, usageIndex] : INTERPOLATORS) |         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"; |         out += "#else\n"; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Isaac Marovitz
						Isaac Marovitz