mirror of
https://github.com/hedge-dev/XenosRecomp.git
synced 2026-04-28 04:51:36 +00:00
Cleanup
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
This commit is contained in:
parent
6153094d1f
commit
58e4631dce
2 changed files with 10 additions and 10 deletions
|
|
@ -185,6 +185,14 @@ void rcp(T a)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __air__
|
||||||
|
#define UNROLL
|
||||||
|
#define BRANCH
|
||||||
|
#else
|
||||||
|
#define UNROLL [unroll]
|
||||||
|
#define BRANCH [branch]
|
||||||
|
#endif
|
||||||
|
|
||||||
float w0(float a)
|
float w0(float a)
|
||||||
{
|
{
|
||||||
return (1.0f / 6.0f) * (a * (a * (-a + 3.0f) - 3.0f) + 1.0f);
|
return (1.0f / 6.0f) * (a * (a * (-a + 3.0f) - 3.0f) + 1.0f);
|
||||||
|
|
|
||||||
|
|
@ -1646,9 +1646,7 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
|
||||||
{
|
{
|
||||||
indent();
|
indent();
|
||||||
#ifdef UNLEASHED_RECOMP
|
#ifdef UNLEASHED_RECOMP
|
||||||
#ifndef XENOS_RECOMP_AIR
|
print("UNROLL ");
|
||||||
print("[unroll] ");
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
println("for (aL = 0; aL < i{}.x; aL++)", uint32_t(cfInstr.loopStart.loopId));
|
println("for (aL = 0; aL < i{}.x; aL++)", uint32_t(cfInstr.loopStart.loopId));
|
||||||
indent();
|
indent();
|
||||||
|
|
@ -1801,17 +1799,11 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi
|
||||||
specConstantsMask |= SPEC_CONSTANT_ALPHA_TEST;
|
specConstantsMask |= SPEC_CONSTANT_ALPHA_TEST;
|
||||||
|
|
||||||
indent();
|
indent();
|
||||||
|
out += "BRANCH if (g_SpecConstants() & SPEC_CONSTANT_ALPHA_TEST)";
|
||||||
#ifndef XENOS_RECOMP_AIR
|
|
||||||
out += "[branch] ";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
out += "if (g_SpecConstants() & SPEC_CONSTANT_ALPHA_TEST)";
|
|
||||||
indent();
|
indent();
|
||||||
out += '{';
|
out += '{';
|
||||||
|
|
||||||
indent();
|
indent();
|
||||||
|
|
||||||
out += "\tclip(oC0.w - g_AlphaThreshold);\n";
|
out += "\tclip(oC0.w - g_AlphaThreshold);\n";
|
||||||
|
|
||||||
indent();
|
indent();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue