1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-21 22:54:16 +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 if (ins.arg(1) == spv::CapabilityShaderViewportIndex
|| ins.arg(1) == spv::CapabilityShaderLayer) || ins.arg(1) == spv::CapabilityShaderLayer)
m_flags.set(DxvkShaderFlag::ExportsViewportIndexLayerFromVertexStage); 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. // Ignore the actual shader code, there's nothing interesting for us in there.

View File

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