Stencil Fixes

This commit is contained in:
Isaac Marovitz
2024-05-27 21:46:43 -04:00
committed by Evan Husted
parent a58568d036
commit ac8af32744
2 changed files with 4 additions and 19 deletions

View File

@@ -141,9 +141,7 @@ namespace Ryujinx.Graphics.Metal
depthAttachment.LoadAction = MTLLoadAction.Load;
depthAttachment.StoreAction = MTLStoreAction.Store;
var unpackedFormat = FormatTable.PackedStencilToXFormat(_currentState.DepthStencil.MTLTexture.PixelFormat);
var stencilView = _currentState.DepthStencil.MTLTexture.NewTextureView(unpackedFormat);
stencilAttachment.Texture = stencilView;
stencilAttachment.Texture = _currentState.DepthStencil.MTLTexture;
stencilAttachment.LoadAction = MTLLoadAction.Load;
stencilAttachment.StoreAction = MTLStoreAction.Store;
break;