Combine dx_Depth and dx_FrontCCW into dx_DepthFront.
TRAC #22245
Signed-off-by: Daniel Koch
Signed-off-by: Geoff Lang
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1582 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index 1c0c82a..f006a00 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -207,13 +207,12 @@
if (mUsesFragCoord)
{
- out << "uniform float4 dx_Coord;\n"
- "uniform float2 dx_Depth;\n";
+ out << "uniform float4 dx_Coord;\n";
}
- if (mUsesFrontFacing)
+ if (mUsesFragCoord || mUsesFrontFacing)
{
- out << "uniform float dx_FrontCCW;\n";
+ out << "uniform float3 dx_DepthFront;\n";
}
out << "\n";