0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-22 23:55:47 +00:00

Implement Texture CopyTo

This commit is contained in:
Isaac Marovitz 2024-05-27 10:38:00 -04:00 committed by Isaac Marovitz
parent cb8fdeafbc
commit 35f68c1b31
2 changed files with 11 additions and 7 deletions

View file

@ -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()
{

View file

@ -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)