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

Follow namign rules.

This commit is contained in:
sunshineinabox 2024-05-27 23:25:59 -07:00
parent 4a3932ed54
commit 3683ee5c29

View file

@ -1102,7 +1102,7 @@ namespace Ryujinx.Graphics.Vulkan
DynamicState.SetPrimitiveTopology(vkTopology);
}
if (!_supportExtDynamic || currentTopologyClass != newTopologyClass)
if (!_supportExtDynamic || (currentTopologyClass != newTopologyClass))
{
_newState.Topology = vkTopology;
}
@ -1112,10 +1112,10 @@ namespace Ryujinx.Graphics.Vulkan
private TopologyClass GetTopologyClass(Silk.NET.Vulkan.PrimitiveTopology topology)
{
return topologyClassMapping.TryGetValue(topology, out var topologyClass) ? topologyClass : throw new ArgumentOutOfRangeException(nameof(topology), topology, null);
return _topologyClassMapping.TryGetValue(topology, out var topologyClass) ? topologyClass : throw new ArgumentOutOfRangeException(nameof(topology), topology, null);
}
private static readonly Dictionary<Silk.NET.Vulkan.PrimitiveTopology, TopologyClass> topologyClassMapping = new()
private static readonly Dictionary<Silk.NET.Vulkan.PrimitiveTopology, TopologyClass> _topologyClassMapping = new()
{
{ Silk.NET.Vulkan.PrimitiveTopology.PointList, TopologyClass.Point },
{ Silk.NET.Vulkan.PrimitiveTopology.LineList, TopologyClass.Line },