mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-16 21:36:33 +00:00
Follow namign rules.
This commit is contained in:
parent
4a3932ed54
commit
3683ee5c29
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user