1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[dxvk] Check whether FragmentFullyCoveredEXT capability is used in a shader

This commit is contained in:
Philip Rebohle 2022-09-05 07:26:23 +02:00
parent 3401964ee2
commit d14d70af05
2 changed files with 4 additions and 0 deletions

View File

@ -138,6 +138,9 @@ namespace dxvk {
if (ins.arg(1) == spv::CapabilityShaderViewportIndex
|| ins.arg(1) == spv::CapabilityShaderLayer)
m_flags.set(DxvkShaderFlag::ExportsViewportIndexLayerFromVertexStage);
if (ins.arg(1) == spv::CapabilityFragmentFullyCoveredEXT)
m_flags.set(DxvkShaderFlag::UsesFragmentCoverage);
}
// Ignore the actual shader code, there's nothing interesting for us in there.

View File

@ -30,6 +30,7 @@ namespace dxvk {
ExportsPosition,
ExportsStencilRef,
ExportsViewportIndexLayerFromVertexStage,
UsesFragmentCoverage,
};
using DxvkShaderFlags = Flags<DxvkShaderFlag>;