From 85d19486559ff3603456b20585f64a50e2dd9d95 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Thu, 24 Oct 2024 17:41:36 +0300 Subject: [PATCH] Remove explicit half pixel correction. --- ShaderRecomp/shader_recompiler.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ShaderRecomp/shader_recompiler.cpp b/ShaderRecomp/shader_recompiler.cpp index 5636648..2311a05 100644 --- a/ShaderRecomp/shader_recompiler.cpp +++ b/ShaderRecomp/shader_recompiler.cpp @@ -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) {