misc: chore: Remove redundant code

This commit is contained in:
KeatonTheBot 2025-03-11 01:40:13 -05:00
parent 340ec79e9f
commit 05a88ccc94
109 changed files with 271 additions and 412 deletions

View file

@ -131,7 +131,7 @@ namespace Ryujinx.Graphics.Vulkan
TriFanToTrisPattern = new IndexBufferPattern(Gd, 3, 3, 2, [int.MinValue, -1, 0], 1, true);
}
public unsafe void Barrier()
public void Barrier()
{
Gd.Barriers.QueueMemoryBarrier();
}
@ -255,7 +255,7 @@ namespace Ryujinx.Graphics.Vulkan
Gd.Api.CmdClearAttachments(CommandBuffer, 1, &attachment, 1, &clearRect);
}
public unsafe void CommandBufferBarrier()
public void CommandBufferBarrier()
{
Gd.Barriers.QueueCommandBufferBarrier();
}
@ -1348,7 +1348,7 @@ namespace Ryujinx.Graphics.Vulkan
_descriptorSetUpdater.ForceImageDirty();
}
public unsafe void TextureBarrier()
public void TextureBarrier()
{
Gd.Barriers.QueueTextureBarrier();
}
@ -1446,7 +1446,7 @@ namespace Ryujinx.Graphics.Vulkan
_newState.SamplesCount = FramebufferParams.AttachmentSamples.Length != 0 ? FramebufferParams.AttachmentSamples[0] : 1;
}
protected unsafe void CreateRenderPass()
protected void CreateRenderPass()
{
var hasFramebuffer = FramebufferParams != null;