Skip to content

Commit ebfbf9d

Browse files
committed
Upstream
Signed-off-by: Isaac Marovitz <[email protected]>
1 parent 13fb9fd commit ebfbf9d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

XenosRecomp/shader_common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ struct PushConstants
5959

6060
#define g_Booleans (*(reinterpret_cast<device uint*>(g_PushConstants.SharedConstants + 256)))
6161
#define g_SwappedTexcoords (*(reinterpret_cast<device uint*>(g_PushConstants.SharedConstants + 260)))
62-
#define g_AlphaThreshold (*(reinterpret_cast<device float*>(g_PushConstants.SharedConstants + 264)))
62+
#define g_HalfPixelOffset (*(reinterpret_cast<device float*>(g_PushConstants.SharedConstants + 264)))
63+
#define g_AlphaThreshold (*(reinterpret_cast<device float*>(g_PushConstants.SharedConstants + 272)))
6364

6465
#else
6566

XenosRecomp/shader_recompiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2218,7 +2218,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
22182218
}
22192219
else
22202220
{
2221-
out += "\toPos.xy += g_HalfPixelOffset * oPos.w;\n";
2221+
out += "\toutput.oPos.xy += g_HalfPixelOffset * output.oPos.w;\n";
22222222
}
22232223

22242224
if (simpleControlFlow)

0 commit comments

Comments
 (0)