Cleanup + Format

This commit is contained in:
Isaac Marovitz 2024-05-29 16:24:49 +01:00
parent 3ff27f541e
commit 638b9e5f69
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
7 changed files with 4 additions and 19 deletions

View File

@ -20,13 +20,6 @@ namespace Ryujinx.Graphics.Metal
ComputePipeline = true;
DepthStencil = true;
}
public void Clear()
{
RenderPipeline = false;
ComputePipeline = false;
DepthStencil = false;
}
}
[SupportedOSPlatform("macos")]

View File

@ -5,8 +5,6 @@ using Ryujinx.Graphics.Shader.Translation;
using SharpMetal.Metal;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal

View File

@ -281,8 +281,8 @@ namespace Ryujinx.Graphics.Metal
var computeCommandEncoder = GetOrCreateComputeEncoder();
computeCommandEncoder.DispatchThreadgroups(
new MTLSize{width = (ulong)groupsX, height = (ulong)groupsY, depth = (ulong)groupsZ},
new MTLSize{width = (ulong)groupSizeX, height = (ulong)groupSizeY, depth = (ulong)groupSizeZ});
new MTLSize { width = (ulong)groupsX, height = (ulong)groupsY, depth = (ulong)groupsZ },
new MTLSize { width = (ulong)groupSizeX, height = (ulong)groupSizeY, depth = (ulong)groupSizeZ });
}
public void Draw(int vertexCount, int instanceCount, int firstVertex, int firstInstance)

View File

@ -1,4 +1,3 @@
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;
using SharpMetal.Foundation;
using SharpMetal.Metal;

View File

@ -1,10 +1,6 @@
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;
using SharpMetal.Foundation;
using SharpMetal.Metal;
using System;
using System.Buffers;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal

View File

@ -1,6 +1,4 @@
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;
using SharpMetal.Foundation;
using SharpMetal.Metal;
using System;
using System.Buffers;

View File

@ -246,7 +246,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
{
texCall += ", ";
}
else {
else
{
appended = true;
}
texCall += str;