Texture usage

This commit is contained in:
Isaac Marovitz 2023-07-29 00:07:54 -04:00 committed by Isaac Marovitz
parent 33a986317b
commit 118d10bc32

View file

@ -27,7 +27,7 @@ namespace Ryujinx.Graphics.Metal
var descriptor = new MTLTextureDescriptor();
descriptor.PixelFormat = FormatTable.GetFormat(Info.Format);
// descriptor.Usage =
descriptor.Usage = MTLTextureUsage.ShaderRead | MTLTextureUsage.ShaderWrite | MTLTextureUsage.RenderTarget;
descriptor.Width = (ulong)Width;
descriptor.Height = (ulong)Height;
descriptor.Depth = (ulong)Info.Depth;