Zero vertex buffer (#17)
* cast src size to float * implement zero buffers
This commit is contained in:
parent
35f68c1b31
commit
e423f81155
2 changed files with 40 additions and 11 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue