Zero vertex buffer (#17)

* cast src size to float

* implement zero buffers
This commit is contained in:
SamoZ256 2024-05-27 22:54:26 +02:00 committed by Isaac Marovitz
parent 35f68c1b31
commit e423f81155
2 changed files with 40 additions and 11 deletions

View file

@ -74,10 +74,10 @@ namespace Ryujinx.Graphics.Metal
Span<float> region = stackalloc float[RegionBufferSize / sizeof(float)];
region[0] = srcRegion.X1 / src.Width;
region[1] = srcRegion.X2 / src.Width;
region[2] = srcRegion.Y1 / src.Height;
region[3] = srcRegion.Y2 / src.Height;
region[0] = srcRegion.X1 / (float)src.Width;
region[1] = srcRegion.X2 / (float)src.Width;
region[2] = srcRegion.Y1 / (float)src.Height;
region[3] = srcRegion.Y2 / (float)src.Height;
if (dstRegion.X1 > dstRegion.X2)
{