Revert "misc: chore: Remove redundant code"

This reverts commit 05a88ccc94.
This commit is contained in:
KeatonTheBot 2025-03-15 20:00:22 -05:00
parent 7960ea643f
commit efd5a104b6
109 changed files with 412 additions and 271 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 void Barrier()
public unsafe void Barrier()
{
Gd.Barriers.QueueMemoryBarrier();
}
@ -255,7 +255,7 @@ namespace Ryujinx.Graphics.Vulkan
Gd.Api.CmdClearAttachments(CommandBuffer, 1, &attachment, 1, &clearRect);
}
public void CommandBufferBarrier()
public unsafe void CommandBufferBarrier()
{
Gd.Barriers.QueueCommandBufferBarrier();
}
@ -1348,7 +1348,7 @@ namespace Ryujinx.Graphics.Vulkan
_descriptorSetUpdater.ForceImageDirty();
}
public void TextureBarrier()
public unsafe void TextureBarrier()
{
Gd.Barriers.QueueTextureBarrier();
}
@ -1446,7 +1446,7 @@ namespace Ryujinx.Graphics.Vulkan
_newState.SamplesCount = FramebufferParams.AttachmentSamples.Length != 0 ? FramebufferParams.AttachmentSamples[0] : 1;
}
protected void CreateRenderPass()
protected unsafe void CreateRenderPass()
{
var hasFramebuffer = FramebufferParams != null;