2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-18 01:25:24 +00:00

Working HECL shader generation on D3D11/12

This commit is contained in:
Jack Andersen
2015-11-17 20:16:08 -10:00
parent 05f3854449
commit 6387b420ae
9 changed files with 79 additions and 15 deletions

View File

@@ -351,7 +351,9 @@ struct GX : IBackend
}
}
for (int i=0 ; i<3 ; ++i)
/* Allocate from back for compatibility with Retro's
* extended shader arithmetic use */
for (int i=2 ; i>=0 ; --i)
if (!(regMask & (1 << i)))
return i;
@@ -379,7 +381,9 @@ struct GX : IBackend
}
}
for (int i=0 ; i<3 ; ++i)
/* Allocate from back for compatibility with Retro's
* extended shader arithmetic use */
for (int i=2 ; i>=0 ; --i)
if (!(regMask & (1 << i)))
return i;