mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
rsx/common/d3d12: Support for shader window setting.
This commit is contained in:
parent
39bc897b93
commit
f6d2409b20
2 changed files with 6 additions and 0 deletions
|
|
@ -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])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue