From a9db9f5b27685b34f04f637dce488e5fc326520f Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Tue, 19 Mar 2024 23:12:28 -0400 Subject: [PATCH] Format --- src/Ryujinx.Graphics.Metal/Texture.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/Ryujinx.Graphics.Metal/Texture.cs b/src/Ryujinx.Graphics.Metal/Texture.cs index 74f70d046b..8cf62aea36 100644 --- a/src/Ryujinx.Graphics.Metal/Texture.cs +++ b/src/Ryujinx.Graphics.Metal/Texture.cs @@ -27,15 +27,16 @@ namespace Ryujinx.Graphics.Metal _pipeline = pipeline; _info = info; - var descriptor = new MTLTextureDescriptor(); - - descriptor.PixelFormat = FormatTable.GetFormat(Info.Format); - descriptor.Usage = MTLTextureUsage.ShaderRead; - descriptor.SampleCount = (ulong)Info.Samples; - descriptor.TextureType = Info.Target.Convert(); - descriptor.Width = (ulong)Info.Width; - descriptor.Height = (ulong)Info.Height; - descriptor.MipmapLevelCount = (ulong)Info.Levels; + var descriptor = new MTLTextureDescriptor + { + PixelFormat = FormatTable.GetFormat(Info.Format), + Usage = MTLTextureUsage.ShaderRead, + SampleCount = (ulong)Info.Samples, + TextureType = Info.Target.Convert(), + Width = (ulong)Info.Width, + Height = (ulong)Info.Height, + MipmapLevelCount = (ulong)Info.Levels + }; if (info.Target == Target.Texture3D) {