Formatting

This commit is contained in:
Isaac Marovitz 2024-07-06 22:38:02 +01:00
parent 1a56e4477a
commit f8e232404e
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
6 changed files with 8 additions and 7 deletions

View File

@ -344,7 +344,7 @@ namespace Ryujinx.Graphics.GAL
/// </summary>
/// <param name="format">Texture format</param>
/// <returns>Byte size for an element of this format (pixel, vertex attribute, etc)</returns>
public static int GetBytesPerElement(this Format format)
public static int GetBytesPerElement(this Format format)
{
int scalarSize = format.GetScalarSize();

View File

@ -839,7 +839,7 @@ namespace Ryujinx.Graphics.Metal
if (_currentState.CullBoth && isTriangles)
{
renderCommandEncoder.SetScissorRect(new MTLScissorRect { x = 0, y = 0, width = 0, height = 0});
renderCommandEncoder.SetScissorRect(new MTLScissorRect { x = 0, y = 0, width = 0, height = 0 });
}
else
{

View File

@ -37,7 +37,7 @@ namespace Ryujinx.Graphics.Metal
{
descriptor.ArrayLength = (ulong)Info.Depth;
}
MTLTextureSwizzleChannels swizzle = GetSwizzle(info, descriptor.PixelFormat);
_identitySwizzleHandle = _device.NewTexture(descriptor);
@ -251,7 +251,8 @@ namespace Ryujinx.Graphics.Metal
var dst = (Texture)destination;
bool isDepthOrStencil = dst.Info.Format.IsDepthOrStencil();
if (dst.Info.IsCompressed) {
if (dst.Info.IsCompressed)
{
Console.WriteLine("shit");
}

View File

@ -229,7 +229,7 @@ namespace Ryujinx.Graphics.Metal
else if (srcInfo.Samples > 1 && srcInfo.Samples != dstInfo.Samples)
{
// TODO
Logger.Warning?.PrintMsg(LogClass.Gpu, "Unsupported mismatching sample count copy");
}
else

View File

@ -1,4 +1,4 @@
using Ryujinx.Common;
using Ryujinx.Common;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.Shader;
using Ryujinx.Graphics.Shader.Translation;

View File

@ -1,4 +1,4 @@
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.Shader;
using Silk.NET.Vulkan;
using System;