rsx/common/d3d12: Support for shader window setting.

This commit is contained in:
Vincent Lejeune 2016-01-27 00:30:34 +01:00
parent 39bc897b93
commit f6d2409b20
2 changed files with 6 additions and 0 deletions

View file

@ -191,6 +191,8 @@ void D3D12FragmentDecompiler::insertMainStart(std::stringstream & OS)
}
// A bit unclean, but works.
OS << " " << "float4 gl_Position = In.Position;" << std::endl;
if (m_prog.origin_mode == rsx::window_origin::bottom)
OS << " gl_Position.y = (" << std::to_string(m_prog.height) << " - gl_Position.y);\n";
// Declare output
for (const ParamType &PT : m_parr.params[PF_PARAM_NONE])
{