1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 05:52:11 +01:00

[dxbc] Always decorate SV_POSITION as invariant

Apparently fixes Z-Fighting in Saints Row IV on Nvidia.
This commit is contained in:
Philip Rebohle 2019-09-24 22:18:16 +02:00
parent 51f1d7725c
commit 5ee790a4a3
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -7714,6 +7714,7 @@ namespace dxvk {
members.size(), members.data());
m_module.memberDecorateBuiltIn(typeId, PerVertex_Position, spv::BuiltInPosition);
m_module.memberDecorate (typeId, PerVertex_Position, spv::DecorationInvariant);
// m_module.memberDecorateBuiltIn(typeId, PerVertex_CullDist, spv::BuiltInCullDistance);
// m_module.memberDecorateBuiltIn(typeId, PerVertex_ClipDist, spv::BuiltInClipDistance);
m_module.decorateBlock(typeId);