1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-24 11:36:01 +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(); 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() public void Barrier()
{ {

View file

@ -149,13 +149,7 @@ namespace Ryujinx.Graphics.Metal
public void CopyTo(ITexture destination, Extents2D srcRegion, Extents2D dstRegion, bool linearFilter) public void CopyTo(ITexture destination, Extents2D srcRegion, Extents2D dstRegion, bool linearFilter)
{ {
// var blitCommandEncoder = _pipeline.GetOrCreateBlitEncoder(); _pipeline.BlitColor(this, destination, srcRegion, dstRegion, linearFilter);
//
// if (destination is Texture destinationTexture)
// {
//
// }
Logger.Warning?.Print(LogClass.Gpu, "Not Implemented!");
} }
public void CopyTo(BufferRange range, int layer, int level, int stride) public void CopyTo(BufferRange range, int layer, int level, int stride)