1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-20 19:52:03 +00:00

Forgot depth

This commit is contained in:
Isaac Marovitz 2023-07-29 00:14:21 -04:00 committed by Isaac Marovitz
parent 118d10bc32
commit 628772f685

View file

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