Fix present
This commit is contained in:
parent
fbe275204b
commit
45b533b23b
4 changed files with 43 additions and 34 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue