|
|
@@ -328,7 +328,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|
|
IndexBufferPattern pattern = _topology switch
|
|
|
{
|
|
|
GAL.PrimitiveTopology.Quads => QuadsToTrisPattern,
|
|
|
- GAL.PrimitiveTopology.TriangleFan => TriFanToTrisPattern,
|
|
|
+ GAL.PrimitiveTopology.TriangleFan or
|
|
|
+ GAL.PrimitiveTopology.Polygon => TriFanToTrisPattern,
|
|
|
_ => throw new NotSupportedException($"Unsupported topology: {_topology}")
|
|
|
};
|
|
|
|
|
|
@@ -359,7 +360,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|
|
pattern = _topology switch
|
|
|
{
|
|
|
GAL.PrimitiveTopology.Quads => QuadsToTrisPattern,
|
|
|
- GAL.PrimitiveTopology.TriangleFan => TriFanToTrisPattern,
|
|
|
+ GAL.PrimitiveTopology.TriangleFan or
|
|
|
+ GAL.PrimitiveTopology.Polygon => TriFanToTrisPattern,
|
|
|
_ => throw new NotSupportedException($"Unsupported topology: {_topology}")
|
|
|
};
|
|
|
}
|