mirror of
				https://github.com/hedge-dev/XenosRecomp.git
				synced 2025-10-30 07:12:17 +00:00 
			
		
		
		
	Remove explicit half pixel correction.
This commit is contained in:
		
							parent
							
								
									2489145820
								
							
						
					
					
						commit
						85d1948655
					
				
					 1 changed files with 0 additions and 8 deletions
				
			
		|  | @ -1050,7 +1050,6 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData) | |||
| 
 | ||||
|     bool isMetaInstancer = false; | ||||
|     bool hasIndexCount = false; | ||||
|     bool isCsdShader = false; | ||||
| 
 | ||||
|     for (uint32_t i = 0; i < constantTableContainer->constantTable.constants; i++) | ||||
|     { | ||||
|  | @ -1069,8 +1068,6 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData) | |||
|                     isMetaInstancer = true; | ||||
|                 else if (strcmp(constantName, "g_IndexCount") == 0) | ||||
|                     hasIndexCount = true; | ||||
|                 else if (strcmp(constantName, "g_Z") == 0) | ||||
|                     isCsdShader = true; | ||||
|             } | ||||
| 
 | ||||
|             print("\t[[vk::offset({})]] float4 {}", constantInfo->registerIndex * 16, constantName); | ||||
|  | @ -1636,11 +1633,6 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData) | |||
|                     indent(); | ||||
|                     out += '}'; | ||||
|                 } | ||||
|                 else if (isCsdShader) | ||||
|                 { | ||||
|                     indent(); | ||||
|                     out += "oPos.xy += float2(GET_CONSTANT(g_ViewportSize.z), -GET_CONSTANT(g_ViewportSize.w));\n"; | ||||
|                 } | ||||
| 
 | ||||
|                 if (simpleControlFlow) | ||||
|                 { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Skyth
						Skyth