summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderGen.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-07-16 17:24:43 +0200
committerdegasus <wickmarkus@web.de>2014-07-16 17:24:43 +0200
commit01fd96ab31a082345928ae6603e5ba59b1a62dbf (patch)
treeaf1b5f1db4936c49dbe3f5c3e3e89281521610e0 /Source/Core/VideoCommon/PixelShaderGen.cpp
parent6937f7cbde6b2fa64b3c4b56e1acfcd90de4c632 (diff)
PixelShaderGen: fix indentation
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/PixelShaderGen.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp
index 0b4ed68892..630d998e24 100644
--- a/Source/Core/VideoCommon/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/PixelShaderGen.cpp
@@ -405,7 +405,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
{
out.Write("uv%d.xy", i);
}
- out.Write(" * " I_TEXDIMS"[%d].zw * 128.0);\n\n", i);
+ out.Write(" * " I_TEXDIMS"[%d].zw * 128.0);\n", i);
// TODO: S24 overflows here?
}
}
@@ -575,7 +575,7 @@ static inline void WriteStage(T& out, pixel_shader_uid_data& uid_data, int n, AP
if (!bHasTexCoord)
texcoord = 0;
- out.Write("\t// TEV stage %d\n", n);
+ out.Write("\n\t// TEV stage %d\n", n);
uid_data.stagehash[n].hasindstage = bHasIndStage;
uid_data.stagehash[n].tevorders_texcoord = texcoord;
@@ -780,10 +780,10 @@ static inline void WriteStage(T& out, pixel_shader_uid_data& uid_data, int n, AP
out.SetConstantsUsed(C_COLORS+ac.dest, C_COLORS+ac.dest);
- out.Write("tevin_a = int4(%s, %s)&255;\n", tevCInputTable[cc.a], tevAInputTable[ac.a]);
- out.Write("tevin_b = int4(%s, %s)&255;\n", tevCInputTable[cc.b], tevAInputTable[ac.b]);
- out.Write("tevin_c = int4(%s, %s)&255;\n", tevCInputTable[cc.c], tevAInputTable[ac.c]);
- out.Write("tevin_d = int4(%s, %s);\n", tevCInputTable[cc.d], tevAInputTable[ac.d]);
+ out.Write("\ttevin_a = int4(%s, %s)&255;\n", tevCInputTable[cc.a], tevAInputTable[ac.a]);
+ out.Write("\ttevin_b = int4(%s, %s)&255;\n", tevCInputTable[cc.b], tevAInputTable[ac.b]);
+ out.Write("\ttevin_c = int4(%s, %s)&255;\n", tevCInputTable[cc.c], tevAInputTable[ac.c]);
+ out.Write("\ttevin_d = int4(%s, %s);\n", tevCInputTable[cc.d], tevAInputTable[ac.d]);
out.Write("\t// color combine\n");
out.Write("\t%s = clamp(", tevCOutputTable[cc.dest]);
@@ -844,7 +844,7 @@ static inline void WriteStage(T& out, pixel_shader_uid_data& uid_data, int n, AP
else
out.Write(", -1024, 1023)");
- out.Write(";\n\n");
+ out.Write(";\n");
}
template<class T>
@@ -980,7 +980,7 @@ static inline void WriteAlphaTest(T& out, pixel_shader_uid_data& uid_data, API_T
out.Write("\t\treturn;\n");
}
- out.Write("}\n");
+ out.Write("\t}\n");
}
static const char *tevFogFuncsTable[] =