mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-07 03:38:56 +02:00
misc: chore: Use explicit types & fix object creation
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user