Fix Vulkan wireframe overlay, set the dynamic state polygonMode

When replaying capture using "vkCmdSetPolygonModeEXT(VK_POLYGON_MODE_FILL)"
This commit is contained in:
Jake Turner
2024-01-04 15:25:05 +00:00
parent 8f2c311670
commit 4a620bb5a1
+1
View File
@@ -902,6 +902,7 @@ ResourceId VulkanReplay::RenderOverlay(ResourceId texid, FloatVector clearCol, D
else if(m_pDriver->GetDeviceEnabledFeatures().fillModeNonSolid)
{
rs->polygonMode = VK_POLYGON_MODE_LINE;
state.polygonMode = rs->polygonMode;
}
else if(prevstate.primitiveTopology == VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST ||
prevstate.primitiveTopology == VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP ||