Forgot depth

This commit is contained in:
Isaac Marovitz 2023-07-29 00:14:21 -04:00
parent daff3c4598
commit c376395b24
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ namespace Ryujinx.Graphics.Metal
public TextureCreateInfo Info => _info;
public int Width => Info.Width;
public int Height => Info.Height;
public int Depth => Info.Depth;
public Texture(MTLDevice device, Pipeline pipeline, TextureCreateInfo info)
{
@ -30,6 +31,7 @@ namespace Ryujinx.Graphics.Metal
descriptor.Usage = MTLTextureUsage.ShaderRead | MTLTextureUsage.ShaderWrite | MTLTextureUsage.RenderTarget;
descriptor.Width = (ulong)Width;
descriptor.Height = (ulong)Height;
descriptor.Depth = (ulong)Depth;
descriptor.Depth = (ulong)Info.Depth;
descriptor.SampleCount = (ulong)Info.Samples;
descriptor.MipmapLevelCount = (ulong)Info.Levels;