mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-20 06:50:53 -05:00
Format
This commit is contained in:
committed by
Evan Husted
parent
95af212cfc
commit
3c1ef06151
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user