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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user