diff --git a/src/Ryujinx.Graphics.Metal/Pipeline.cs b/src/Ryujinx.Graphics.Metal/Pipeline.cs index 699bd155f..504a2d5cf 100644 --- a/src/Ryujinx.Graphics.Metal/Pipeline.cs +++ b/src/Ryujinx.Graphics.Metal/Pipeline.cs @@ -191,6 +191,16 @@ namespace Ryujinx.Graphics.Metal dst.Dispose(); } + public void BlitColor( + ITexture src, + ITexture dst, + Extents2D srcRegion, + Extents2D dstRegion, + bool linearFilter) + { + _helperShader.BlitColor(src, dst, srcRegion, dstRegion, linearFilter); + } + public void Barrier() { diff --git a/src/Ryujinx.Graphics.Metal/Texture.cs b/src/Ryujinx.Graphics.Metal/Texture.cs index 63da29966..79699adea 100644 --- a/src/Ryujinx.Graphics.Metal/Texture.cs +++ b/src/Ryujinx.Graphics.Metal/Texture.cs @@ -149,13 +149,7 @@ namespace Ryujinx.Graphics.Metal public void CopyTo(ITexture destination, Extents2D srcRegion, Extents2D dstRegion, bool linearFilter) { - // var blitCommandEncoder = _pipeline.GetOrCreateBlitEncoder(); - // - // if (destination is Texture destinationTexture) - // { - // - // } - Logger.Warning?.Print(LogClass.Gpu, "Not Implemented!"); + _pipeline.BlitColor(this, destination, srcRegion, dstRegion, linearFilter); } public void CopyTo(BufferRange range, int layer, int level, int stride)