Implement Texture CopyTo

This commit is contained in:
Isaac Marovitz 2024-05-27 10:38:00 -04:00
parent eac8ac23ad
commit 4f649f5650
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
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)