Fix present

This commit is contained in:
Isaac Marovitz 2024-05-18 20:27:27 -04:00 committed by Isaac Marovitz
parent fbe275204b
commit 45b533b23b
4 changed files with 43 additions and 34 deletions

View file

@ -158,7 +158,11 @@ namespace Ryujinx.Graphics.Metal
_encoderStateManager.SwapStates();
// _helperShader.BlitColor(tex, drawable.Texture);
// TODO: Clean this up
var textureInfo = new TextureCreateInfo((int)drawable.Texture.Width, (int)drawable.Texture.Height, (int)drawable.Texture.Depth, (int)drawable.Texture.MipmapLevelCount, (int)drawable.Texture.SampleCount, 0, 0, 0, Format.B8G8R8A8Unorm, 0, Target.Texture2D, SwizzleComponent.Red, SwizzleComponent.Green, SwizzleComponent.Blue, SwizzleComponent.Alpha);
var dest = new Texture(_device, this, textureInfo, drawable.Texture, 0, 0);
_helperShader.BlitColor(tex, dest);
_commandBuffer.PresentDrawable(drawable);
_commandBuffer.Commit();