summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureConversionShader.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2014-07-13 06:20:45 +0200
committerPierre Bourdon <delroth@gmail.com>2014-07-13 06:20:45 +0200
commit12fa5ba8b4894375807eec4bc936050fade7b01b (patch)
tree5f72bfb51ee422cc6dfd4138ae213cf187be70a9 /Source/Core/VideoCommon/TextureConversionShader.cpp
parentb2fa0ea3dcbf388739b5290e750d738043597703 (diff)
parent0ccee6c87b78843caf4bb0dce48a46144e05f69e (diff)
Merge pull request #607 from Tilka/fix_warnings
Fix warnings unearthed by #579
Diffstat (limited to 'Source/Core/VideoCommon/TextureConversionShader.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureConversionShader.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/Source/Core/VideoCommon/TextureConversionShader.cpp b/Source/Core/VideoCommon/TextureConversionShader.cpp
index 10b8114c8d..ad4dd6f1f6 100644
--- a/Source/Core/VideoCommon/TextureConversionShader.cpp
+++ b/Source/Core/VideoCommon/TextureConversionShader.cpp
@@ -349,30 +349,6 @@ static void WriteRGB5A3Encoder(char*& p,API_TYPE ApiType)
WriteEncoderEnd(p, ApiType);
}
-static void WriteRGBA4443Encoder(char*& p,API_TYPE ApiType)
-{
- WriteSwizzler(p, GX_TF_RGB5A3, ApiType);
-
- WRITE(p, " float4 texSample;\n");
- WRITE(p, " float4 color0;\n");
- WRITE(p, " float4 color1;\n");
-
- WriteSampleColor(p, "rgba", "texSample", 0, ApiType);
- WriteToBitDepth(p, 3, "texSample.a", "color0.b");
- WriteToBitDepth(p, 4, "texSample.r", "color1.b");
- WriteToBitDepth(p, 4, "texSample.g", "color0.g");
- WriteToBitDepth(p, 4, "texSample.b", "color1.g");
-
- WriteSampleColor(p, "rgba", "texSample", 1, ApiType);
- WriteToBitDepth(p, 3, "texSample.a", "color0.r");
- WriteToBitDepth(p, 4, "texSample.r", "color1.r");
- WriteToBitDepth(p, 4, "texSample.g", "color0.a");
- WriteToBitDepth(p, 4, "texSample.b", "color1.a");
-
- WRITE(p, " ocol0 = (color0 * 16.0 + color1) / 255.0;\n");
- WriteEncoderEnd(p, ApiType);
-}
-
static void WriteRGBA8Encoder(char*& p,API_TYPE ApiType)
{
WriteSwizzler(p, GX_TF_RGBA8, ApiType);