Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
This commit is contained in:
Isaac Marovitz 2025-04-02 14:10:09 -04:00
parent 13fb9fd4b9
commit ebfbf9de89
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
2 changed files with 3 additions and 2 deletions

View file

@ -59,7 +59,8 @@ struct PushConstants
#define g_Booleans (*(reinterpret_cast<device uint*>(g_PushConstants.SharedConstants + 256)))
#define g_SwappedTexcoords (*(reinterpret_cast<device uint*>(g_PushConstants.SharedConstants + 260)))
#define g_AlphaThreshold (*(reinterpret_cast<device float*>(g_PushConstants.SharedConstants + 264)))
#define g_HalfPixelOffset (*(reinterpret_cast<device float*>(g_PushConstants.SharedConstants + 264)))
#define g_AlphaThreshold (*(reinterpret_cast<device float*>(g_PushConstants.SharedConstants + 272)))
#else

View file

@ -2218,7 +2218,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
}
else
{
out += "\toPos.xy += g_HalfPixelOffset * oPos.w;\n";
out += "\toutput.oPos.xy += g_HalfPixelOffset * output.oPos.w;\n";
}
if (simpleControlFlow)