mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-03 22:24:13 +01:00
[d3d11] Fixed viewport offset
This commit is contained in:
parent
1dfd62a118
commit
356591cc99
@ -1932,7 +1932,7 @@ namespace dxvk {
|
||||
const D3D11_VIEWPORT& vp = m_state.rs.viewports.at(i);
|
||||
|
||||
viewports.at(i) = VkViewport {
|
||||
vp.TopLeftX, vp.Height - vp.TopLeftY,
|
||||
vp.TopLeftX, vp.Height + vp.TopLeftY,
|
||||
vp.Width, -vp.Height,
|
||||
vp.MinDepth, vp.MaxDepth,
|
||||
};
|
||||
|
@ -1517,7 +1517,7 @@ namespace dxvk {
|
||||
m_code.putWord(resultType);
|
||||
m_code.putWord(resultId);
|
||||
m_code.putWord(m_instExtGlsl450);
|
||||
m_code.putWord(spv::GLSLstd450NMax);
|
||||
m_code.putWord(spv::GLSLstd450FMax);
|
||||
m_code.putWord(a);
|
||||
m_code.putWord(b);
|
||||
return resultId;
|
||||
@ -1534,7 +1534,7 @@ namespace dxvk {
|
||||
m_code.putWord(resultType);
|
||||
m_code.putWord(resultId);
|
||||
m_code.putWord(m_instExtGlsl450);
|
||||
m_code.putWord(spv::GLSLstd450NMin);
|
||||
m_code.putWord(spv::GLSLstd450FMin);
|
||||
m_code.putWord(a);
|
||||
m_code.putWord(b);
|
||||
return resultId;
|
||||
@ -1620,7 +1620,7 @@ namespace dxvk {
|
||||
m_code.putWord(resultType);
|
||||
m_code.putWord(resultId);
|
||||
m_code.putWord(m_instExtGlsl450);
|
||||
m_code.putWord(spv::GLSLstd450NClamp);
|
||||
m_code.putWord(spv::GLSLstd450FClamp);
|
||||
m_code.putWord(x);
|
||||
m_code.putWord(minVal);
|
||||
m_code.putWord(maxVal);
|
||||
|
Loading…
Reference in New Issue
Block a user