mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-29 15:16:25 +02:00
misc: chore: Fix object creation in Vulkan project
This commit is contained in:
parent
eae6dba610
commit
5f023ca49b
37 changed files with 172 additions and 172 deletions
|
@ -105,7 +105,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
AutoFlush = new AutoFlushCounter(gd);
|
||||
EndRenderPassDelegate = EndRenderPass;
|
||||
|
||||
PipelineCacheCreateInfo pipelineCacheCreateInfo = new PipelineCacheCreateInfo
|
||||
PipelineCacheCreateInfo pipelineCacheCreateInfo = new()
|
||||
{
|
||||
SType = StructureType.PipelineCacheCreateInfo,
|
||||
};
|
||||
|
@ -220,8 +220,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
BeginRenderPass();
|
||||
|
||||
ClearValue clearValue = new ClearValue(new ClearColorValue(color.Red, color.Green, color.Blue, color.Alpha));
|
||||
ClearAttachment attachment = new ClearAttachment(ImageAspectFlags.ColorBit, (uint)index, clearValue);
|
||||
ClearValue clearValue = new(new ClearColorValue(color.Red, color.Green, color.Blue, color.Alpha));
|
||||
ClearAttachment attachment = new(ImageAspectFlags.ColorBit, (uint)index, clearValue);
|
||||
ClearRect clearRect = FramebufferParams.GetClearRect(ClearScissor, layer, layerCount);
|
||||
|
||||
Gd.Api.CmdClearAttachments(CommandBuffer, 1, &attachment, 1, &clearRect);
|
||||
|
@ -234,7 +234,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
return;
|
||||
}
|
||||
|
||||
ClearValue clearValue = new ClearValue(null, new ClearDepthStencilValue(depthValue, (uint)stencilValue));
|
||||
ClearValue clearValue = new(null, new ClearDepthStencilValue(depthValue, (uint)stencilValue));
|
||||
ImageAspectFlags flags = depthMask ? ImageAspectFlags.DepthBit : 0;
|
||||
|
||||
if (stencilMask)
|
||||
|
@ -258,7 +258,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
BeginRenderPass();
|
||||
|
||||
ClearAttachment attachment = new ClearAttachment(flags, 0, clearValue);
|
||||
ClearAttachment attachment = new(flags, 0, clearValue);
|
||||
ClearRect clearRect = FramebufferParams.GetClearRect(ClearScissor, layer, layerCount);
|
||||
|
||||
Gd.Api.CmdClearAttachments(CommandBuffer, 1, &attachment, 1, &clearRect);
|
||||
|
@ -1058,8 +1058,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
Rectangle<int> region = regions[i];
|
||||
Offset2D offset = new Offset2D(region.X, region.Y);
|
||||
Extent2D extent = new Extent2D((uint)region.Width, (uint)region.Height);
|
||||
Offset2D offset = new(region.X, region.Y);
|
||||
Extent2D extent = new((uint)region.Width, (uint)region.Height);
|
||||
|
||||
DynamicState.SetScissor(i, new Rect2D(offset, extent));
|
||||
}
|
||||
|
@ -1714,10 +1714,10 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
{
|
||||
FramebufferParams.InsertLoadOpBarriers(Gd, Cbs);
|
||||
|
||||
Rect2D renderArea = new Rect2D(null, new Extent2D(FramebufferParams.Width, FramebufferParams.Height));
|
||||
ClearValue clearValue = new ClearValue();
|
||||
Rect2D renderArea = new(null, new Extent2D(FramebufferParams.Width, FramebufferParams.Height));
|
||||
ClearValue clearValue = new();
|
||||
|
||||
RenderPassBeginInfo renderPassBeginInfo = new RenderPassBeginInfo
|
||||
RenderPassBeginInfo renderPassBeginInfo = new()
|
||||
{
|
||||
SType = StructureType.RenderPassBeginInfo,
|
||||
RenderPass = _renderPass.Get(Cbs).Value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue