From 3683ee5c29977e94f75592599db8941047760812 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Mon, 27 May 2024 23:25:59 -0700 Subject: [PATCH] Follow namign rules. --- src/Ryujinx.Graphics.Vulkan/PipelineBase.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs index 32e27ada96..cadc3d2aeb 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs @@ -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 topologyClassMapping = new() + private static readonly Dictionary _topologyClassMapping = new() { { Silk.NET.Vulkan.PrimitiveTopology.PointList, TopologyClass.Point }, { Silk.NET.Vulkan.PrimitiveTopology.LineList, TopologyClass.Line },