From 628772f685ef4369f9a21b18e1d315ba9324dd65 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Sat, 29 Jul 2023 00:14:21 -0400 Subject: [PATCH] Forgot depth --- src/Ryujinx.Graphics.Metal/Texture.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Ryujinx.Graphics.Metal/Texture.cs b/src/Ryujinx.Graphics.Metal/Texture.cs index e13dbf818..1c5fa86b9 100644 --- a/src/Ryujinx.Graphics.Metal/Texture.cs +++ b/src/Ryujinx.Graphics.Metal/Texture.cs @@ -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;