This commit is contained in:
Isaac Marovitz
2024-05-18 20:40:37 -04:00
committed by Evan Husted
parent 95af212cfc
commit 3c1ef06151
3 changed files with 11 additions and 10 deletions

View File

@@ -186,8 +186,10 @@ namespace Ryujinx.Graphics.Metal
{
switch (format)
{
case MTLPixelFormat.Depth24UnormStencil8: return MTLPixelFormat.X24Stencil8;
case MTLPixelFormat.Depth32FloatStencil8: return MTLPixelFormat.X32Stencil8;
case MTLPixelFormat.Depth24UnormStencil8:
return MTLPixelFormat.X24Stencil8;
case MTLPixelFormat.Depth32FloatStencil8:
return MTLPixelFormat.X32Stencil8;
default:
Logger.Warning?.PrintMsg(LogClass.Gpu, $"Attempted to get stencil format for non packed format {format}!");
return MTLPixelFormat.Invalid;