misc: chore: Use explicit types & fix object creation

This commit is contained in:
KeatonTheBot
2026-05-30 16:26:50 -05:00
parent 9d3fecf334
commit 76a123b81d
454 changed files with 3042 additions and 2961 deletions
@@ -25,7 +25,7 @@ namespace Ryujinx.Graphics.Vulkan
if (SetDescriptors != null)
{
foreach (var setDescriptor in SetDescriptors)
foreach (ResourceDescriptorCollection setDescriptor in SetDescriptors)
{
hasher.Add(setDescriptor);
}
@@ -81,7 +81,7 @@ namespace Ryujinx.Graphics.Vulkan
ReadOnlyCollection<ResourceDescriptorCollection> setDescriptors,
bool usePushDescriptors)
{
var key = new PlceKey(setDescriptors, usePushDescriptors);
PlceKey key = new(setDescriptors, usePushDescriptors);
return _plces.GetOrAdd(key, _ => new PipelineLayoutCacheEntry(gd, device, setDescriptors, usePushDescriptors));
}
@@ -90,7 +90,7 @@ namespace Ryujinx.Graphics.Vulkan
{
if (disposing)
{
foreach (var plce in _plces.Values)
foreach (PipelineLayoutCacheEntry plce in _plces.Values)
{
plce.Dispose();
}