mirror of
https://github.com/Ryujinx-NX/Ryujinx.git
synced 2024-11-14 13:07:41 -07:00
Consider Polygon as unsupported is triangle fans are unsupported on Vulkan (#6490)
This commit is contained in:
parent
fdd3263e31
commit
732db7581f
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user