misc: chore: Use explicit types & fix object creation

This commit is contained in:
KeatonTheBot committed 2026-05-30 16:26:50 -05:00
1 parent 9d3fecf334
commit 76a123b81d
454 files changed
+3042 -2961

No files matched your search

+4 -4
View File
@@ -26,9 +26,9 @@ namespace Ryujinx.Graphics.Vulkan
maxLod = 0.25f;
}
var borderColor = GetConstrainedBorderColor(info.BorderColor, out var cantConstrain);
BorderColor borderColor = GetConstrainedBorderColor(info.BorderColor, out bool cantConstrain);
var samplerCreateInfo = new Silk.NET.Vulkan.SamplerCreateInfo
Silk.NET.Vulkan.SamplerCreateInfo samplerCreateInfo = new()
{
SType = StructureType.SamplerCreateInfo,
MagFilter = info.MagFilter.Convert(),
@@ -52,7 +52,7 @@ namespace Ryujinx.Graphics.Vulkan
if (cantConstrain && gd.Capabilities.SupportsCustomBorderColor)
{
var color = new ClearColorValue(
ClearColorValue color = new(
info.BorderColor.Red,
info.BorderColor.Green,
info.BorderColor.Blue,
@@ -68,7 +68,7 @@ namespace Ryujinx.Graphics.Vulkan
samplerCreateInfo.BorderColor = BorderColor.FloatCustomExt;
}
gd.Api.CreateSampler(device, in samplerCreateInfo, null, out var sampler).ThrowOnError();
gd.Api.CreateSampler(device, in samplerCreateInfo, null, out Sampler sampler).ThrowOnError();
_sampler = new Auto<DisposableSampler>(new DisposableSampler(gd.Api, device, sampler));
}