1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-18 16:12:02 +00:00

Consider Polygon as unsupported is triangle fans are unsupported on Vulkan (#6490)

This commit is contained in:
gdkchan 2024-03-14 19:46:57 -03:00 committed by GitHub
parent fdd3263e31
commit 732db7581f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -781,7 +781,9 @@ namespace Ryujinx.Graphics.Vulkan
{ {
PrimitiveTopology.Quads => PrimitiveTopology.Triangles, PrimitiveTopology.Quads => PrimitiveTopology.Triangles,
PrimitiveTopology.QuadStrip => PrimitiveTopology.TriangleStrip, PrimitiveTopology.QuadStrip => PrimitiveTopology.TriangleStrip,
PrimitiveTopology.TriangleFan => Capabilities.PortabilitySubset.HasFlag(PortabilitySubsetFlags.NoTriangleFans) ? PrimitiveTopology.Triangles : topology, PrimitiveTopology.TriangleFan or PrimitiveTopology.Polygon => Capabilities.PortabilitySubset.HasFlag(PortabilitySubsetFlags.NoTriangleFans)
? PrimitiveTopology.Triangles
: topology,
_ => topology, _ => topology,
}; };
} }
@ -791,7 +793,7 @@ namespace Ryujinx.Graphics.Vulkan
return topology switch return topology switch
{ {
PrimitiveTopology.Quads => true, PrimitiveTopology.Quads => true,
PrimitiveTopology.TriangleFan => Capabilities.PortabilitySubset.HasFlag(PortabilitySubsetFlags.NoTriangleFans), PrimitiveTopology.TriangleFan or PrimitiveTopology.Polygon => Capabilities.PortabilitySubset.HasFlag(PortabilitySubsetFlags.NoTriangleFans),
_ => false, _ => false,
}; };
} }