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
+2 -2
View File
@@ -54,7 +54,7 @@ namespace Ryujinx.Graphics.Vulkan
fixed (byte* pCode = spirv)
{
var shaderModuleCreateInfo = new ShaderModuleCreateInfo
ShaderModuleCreateInfo shaderModuleCreateInfo = new()
{
SType = StructureType.ShaderModuleCreateInfo,
CodeSize = (uint)spirv.Length,
@@ -89,7 +89,7 @@ namespace Ryujinx.Graphics.Vulkan
return null;
}
var spirvBytes = new Span<byte>(api.ResultGetBytes(scr), (int)api.ResultGetLength(scr));
Span<byte> spirvBytes = new(api.ResultGetBytes(scr), (int)api.ResultGetLength(scr));
byte[] code = new byte[(spirvBytes.Length + 3) & ~3];