Texture Copys

This commit is contained in:
Isaac Marovitz 2023-07-27 22:54:24 -04:00 committed by Isaac Marovitz
parent 1e36815713
commit 70f54f23c9
4 changed files with 73 additions and 20 deletions

View file

@ -1,23 +1,25 @@
using Ryujinx.Graphics.GAL;
using System;
using SharpMetal;
using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal
{
[SupportedOSPlatform("macos")]
public class Window : IWindow, IDisposable
{
private readonly MetalRenderer _renderer;
public Window()
public Window(MetalRenderer renderer)
{
/*var viewport = new MTLViewport
{
};*/
_renderer = renderer;
}
public void Present(ITexture texture, ImageCrop crop, Action swapBuffersCallback)
{
throw new NotImplementedException();
if (_renderer.Pipeline is Pipeline pipeline)
{
pipeline.Present();
}
}
public void SetSize(int width, int height)
@ -50,4 +52,4 @@ namespace Ryujinx.Graphics.Metal
}
}
}
}