mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-06 05:26:26 +02:00
misc: chore: Fix object creation in Metal
This commit is contained in:
parent
e859bd5aa2
commit
d95f724d17
15 changed files with 28 additions and 28 deletions
|
@ -239,7 +239,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
buffer.Holder.SetDataUnchecked<float>(buffer.Offset, region);
|
||||
_pipeline.SetUniformBuffers([new BufferAssignment(0, buffer.Range)]);
|
||||
|
||||
Rectangle<float> rect = new Rectangle<float>(
|
||||
Rectangle<float> rect = new(
|
||||
MathF.Min(dstRegion.X1, dstRegion.X2),
|
||||
MathF.Min(dstRegion.Y1, dstRegion.Y2),
|
||||
MathF.Abs(dstRegion.X2 - dstRegion.X1),
|
||||
|
@ -365,7 +365,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
|
||||
Span<Viewport> viewports = stackalloc Viewport[16];
|
||||
|
||||
Rectangle<float> rect = new Rectangle<float>(
|
||||
Rectangle<float> rect = new(
|
||||
MathF.Min(dstRegion.X1, dstRegion.X2),
|
||||
MathF.Min(dstRegion.Y1, dstRegion.Y2),
|
||||
MathF.Abs(dstRegion.X2 - dstRegion.X1),
|
||||
|
@ -527,7 +527,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
|
||||
Span<Viewport> viewports = stackalloc Viewport[16];
|
||||
|
||||
Rectangle<float> rect = new Rectangle<float>(
|
||||
Rectangle<float> rect = new(
|
||||
MathF.Min(dstRegion.X1, dstRegion.X2),
|
||||
MathF.Min(dstRegion.Y1, dstRegion.Y2),
|
||||
MathF.Abs(dstRegion.X2 - dstRegion.X1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue