Formatting
This commit is contained in:
parent
6e80cc6caa
commit
b734c81683
6 changed files with 8 additions and 7 deletions
|
@ -344,7 +344,7 @@ namespace Ryujinx.Graphics.GAL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="format">Texture format</param>
|
/// <param name="format">Texture format</param>
|
||||||
/// <returns>Byte size for an element of this format (pixel, vertex attribute, etc)</returns>
|
/// <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();
|
int scalarSize = format.GetScalarSize();
|
||||||
|
|
||||||
|
|
|
@ -839,7 +839,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
|
|
||||||
if (_currentState.CullBoth && isTriangles)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,7 +37,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
{
|
{
|
||||||
descriptor.ArrayLength = (ulong)Info.Depth;
|
descriptor.ArrayLength = (ulong)Info.Depth;
|
||||||
}
|
}
|
||||||
|
|
||||||
MTLTextureSwizzleChannels swizzle = GetSwizzle(info, descriptor.PixelFormat);
|
MTLTextureSwizzleChannels swizzle = GetSwizzle(info, descriptor.PixelFormat);
|
||||||
|
|
||||||
_identitySwizzleHandle = _device.NewTexture(descriptor);
|
_identitySwizzleHandle = _device.NewTexture(descriptor);
|
||||||
|
@ -251,7 +251,8 @@ namespace Ryujinx.Graphics.Metal
|
||||||
var dst = (Texture)destination;
|
var dst = (Texture)destination;
|
||||||
bool isDepthOrStencil = dst.Info.Format.IsDepthOrStencil();
|
bool isDepthOrStencil = dst.Info.Format.IsDepthOrStencil();
|
||||||
|
|
||||||
if (dst.Info.IsCompressed) {
|
if (dst.Info.IsCompressed)
|
||||||
|
{
|
||||||
Console.WriteLine("shit");
|
Console.WriteLine("shit");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -229,7 +229,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
else if (srcInfo.Samples > 1 && srcInfo.Samples != dstInfo.Samples)
|
else if (srcInfo.Samples > 1 && srcInfo.Samples != dstInfo.Samples)
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
Logger.Warning?.PrintMsg(LogClass.Gpu, "Unsupported mismatching sample count copy");
|
Logger.Warning?.PrintMsg(LogClass.Gpu, "Unsupported mismatching sample count copy");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using Ryujinx.Common;
|
using Ryujinx.Common;
|
||||||
using Ryujinx.Graphics.GAL;
|
using Ryujinx.Graphics.GAL;
|
||||||
using Ryujinx.Graphics.Shader;
|
using Ryujinx.Graphics.Shader;
|
||||||
using Ryujinx.Graphics.Shader.Translation;
|
using Ryujinx.Graphics.Shader.Translation;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using Ryujinx.Graphics.GAL;
|
using Ryujinx.Graphics.GAL;
|
||||||
using Ryujinx.Graphics.Shader;
|
using Ryujinx.Graphics.Shader;
|
||||||
using Silk.NET.Vulkan;
|
using Silk.NET.Vulkan;
|
||||||
using System;
|
using System;
|
||||||
|
|
Loading…
Reference in a new issue