misc: chore: Use explicit types in Metal project

This commit is contained in:
Evan Husted
2025-01-25 14:06:26 -06:00
parent 1ae349efb1
commit 76ec047eb7
28 changed files with 315 additions and 313 deletions

View File

@@ -25,14 +25,14 @@ namespace Ryujinx.Graphics.Metal
public T GetOrCreate(TDescriptor descriptor)
{
var hash = GetHash(descriptor);
THash hash = GetHash(descriptor);
if (_cache.TryGetValue(hash, out T value))
{
return value;
}
else
{
var newValue = CreateValue(descriptor);
T newValue = CreateValue(descriptor);
_cache.Add(hash, newValue);
return newValue;