This commit is contained in:
Isaac Marovitz 2024-03-19 23:12:28 -04:00
parent 65146bd3e4
commit 9afcbda196
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 10 additions and 9 deletions

View File

@ -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)
{