mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 02:53:04 +00:00
Add Some Comments
This commit is contained in:
parent
767abfe500
commit
eeecd894b9
1 changed files with 3 additions and 0 deletions
|
@ -451,6 +451,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
|
|
||||||
primitiveRestartEnable &= topologySupportsRestart;
|
primitiveRestartEnable &= topologySupportsRestart;
|
||||||
|
|
||||||
|
//Cannot disable primitveRestartEnable for these Topoligies on MacOS
|
||||||
if ((Topology == PrimitiveTopology.LineStrip || Topology == PrimitiveTopology.TriangleStrip ||
|
if ((Topology == PrimitiveTopology.LineStrip || Topology == PrimitiveTopology.TriangleStrip ||
|
||||||
Topology == PrimitiveTopology.LineStripWithAdjacency ||
|
Topology == PrimitiveTopology.LineStripWithAdjacency ||
|
||||||
Topology == PrimitiveTopology.TriangleStripWithAdjacency) && isMoltenVk)
|
Topology == PrimitiveTopology.TriangleStripWithAdjacency) && isMoltenVk)
|
||||||
|
@ -675,6 +676,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
|
|
||||||
if (!isMoltenVk)
|
if (!isMoltenVk)
|
||||||
{
|
{
|
||||||
|
//LineWidth is only supported on MacOS when using Metal Private API on newer version of MoltenVK
|
||||||
dynamicStates[currentIndex++] = DynamicState.LineWidth;
|
dynamicStates[currentIndex++] = DynamicState.LineWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -682,6 +684,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
{
|
{
|
||||||
if (!isMoltenVk)
|
if (!isMoltenVk)
|
||||||
{
|
{
|
||||||
|
//Requires Metal 3.1
|
||||||
dynamicStates[currentIndex++] = DynamicState.VertexInputBindingStrideExt;
|
dynamicStates[currentIndex++] = DynamicState.VertexInputBindingStrideExt;
|
||||||
}
|
}
|
||||||
dynamicStates[currentIndex++] = DynamicState.CullModeExt;
|
dynamicStates[currentIndex++] = DynamicState.CullModeExt;
|
||||||
|
|
Loading…
Reference in a new issue