Rename EOpFaceForward to EOpFaceforward.
This mirrors the spec naming and makes auto-gen a little easier.
BUG=chromium:697758
Change-Id: I9bcbc2c874b9a93a6d542aedf2b239f01ee708ce
Reviewed-on: https://chromium-review.googlesource.com/526393
Reviewed-by: Olli Etuaho <oetuaho@nvidia.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/src/compiler/translator/BuiltInFunctionEmulatorHLSL.cpp b/src/compiler/translator/BuiltInFunctionEmulatorHLSL.cpp
index 6d4ace3..e808c87 100644
--- a/src/compiler/translator/BuiltInFunctionEmulatorHLSL.cpp
+++ b/src/compiler/translator/BuiltInFunctionEmulatorHLSL.cpp
@@ -188,7 +188,7 @@
"}\n"
"\n");
- emu->addEmulatedFunction(EOpFaceForward, float1, float1, float1,
+ emu->addEmulatedFunction(EOpFaceforward, float1, float1, float1,
"float webgl_faceforward_emu(float N, float I, float Nref)\n"
"{\n"
" if(dot(Nref, I) >= 0)\n"
@@ -201,7 +201,7 @@
" }\n"
"}\n"
"\n");
- emu->addEmulatedFunction(EOpFaceForward, float2, float2, float2,
+ emu->addEmulatedFunction(EOpFaceforward, float2, float2, float2,
"float2 webgl_faceforward_emu(float2 N, float2 I, float2 Nref)\n"
"{\n"
" if(dot(Nref, I) >= 0)\n"
@@ -214,7 +214,7 @@
" }\n"
"}\n"
"\n");
- emu->addEmulatedFunction(EOpFaceForward, float3, float3, float3,
+ emu->addEmulatedFunction(EOpFaceforward, float3, float3, float3,
"float3 webgl_faceforward_emu(float3 N, float3 I, float3 Nref)\n"
"{\n"
" if(dot(Nref, I) >= 0)\n"
@@ -227,7 +227,7 @@
" }\n"
"}\n"
"\n");
- emu->addEmulatedFunction(EOpFaceForward, float4, float4, float4,
+ emu->addEmulatedFunction(EOpFaceforward, float4, float4, float4,
"float4 webgl_faceforward_emu(float4 N, float4 I, float4 Nref)\n"
"{\n"
" if(dot(Nref, I) >= 0)\n"
diff --git a/src/compiler/translator/Initialize.cpp b/src/compiler/translator/Initialize.cpp
index 718968f..f5941ea 100644
--- a/src/compiler/translator/Initialize.cpp
+++ b/src/compiler/translator/Initialize.cpp
@@ -145,7 +145,7 @@
symbolTable.insertBuiltInOp(COMMON_BUILTINS, EOpDot, float1, genType, genType);
symbolTable.insertBuiltInOp(COMMON_BUILTINS, EOpCross, float3, float3, float3);
symbolTable.insertBuiltInOp(COMMON_BUILTINS, EOpNormalize, genType, genType);
- symbolTable.insertBuiltInOp(COMMON_BUILTINS, EOpFaceForward, genType, genType, genType,
+ symbolTable.insertBuiltInOp(COMMON_BUILTINS, EOpFaceforward, genType, genType, genType,
genType);
symbolTable.insertBuiltInOp(COMMON_BUILTINS, EOpReflect, genType, genType, genType);
symbolTable.insertBuiltInOp(COMMON_BUILTINS, EOpRefract, genType, genType, genType, float1);
diff --git a/src/compiler/translator/IntermNode.cpp b/src/compiler/translator/IntermNode.cpp
index 67bdcd6..0e3722c 100644
--- a/src/compiler/translator/IntermNode.cpp
+++ b/src/compiler/translator/IntermNode.cpp
@@ -3150,7 +3150,7 @@
break;
}
- case EOpFaceForward:
+ case EOpFaceforward:
{
ASSERT(basicType == EbtFloat);
// genType faceforward(genType N, genType I, genType Nref) :
diff --git a/src/compiler/translator/Intermediate.cpp b/src/compiler/translator/Intermediate.cpp
index 37e1123..dae539e 100644
--- a/src/compiler/translator/Intermediate.cpp
+++ b/src/compiler/translator/Intermediate.cpp
@@ -285,7 +285,7 @@
case EOpDistance:
case EOpDot:
case EOpCross:
- case EOpFaceForward:
+ case EOpFaceforward:
case EOpReflect:
case EOpRefract:
case EOpBitfieldExtract:
diff --git a/src/compiler/translator/Operator.cpp b/src/compiler/translator/Operator.cpp
index 1858980..da92115 100644
--- a/src/compiler/translator/Operator.cpp
+++ b/src/compiler/translator/Operator.cpp
@@ -234,7 +234,7 @@
return "cross";
case EOpNormalize:
return "normalize";
- case EOpFaceForward:
+ case EOpFaceforward:
return "faceforward";
case EOpReflect:
return "reflect";
diff --git a/src/compiler/translator/Operator.h b/src/compiler/translator/Operator.h
index 5f028b9..23f78a6 100644
--- a/src/compiler/translator/Operator.h
+++ b/src/compiler/translator/Operator.h
@@ -163,7 +163,7 @@
EOpDot,
EOpCross,
EOpNormalize,
- EOpFaceForward,
+ EOpFaceforward,
EOpReflect,
EOpRefract,
diff --git a/src/compiler/translator/OutputGLSLBase.cpp b/src/compiler/translator/OutputGLSLBase.cpp
index 94849ec..ed6b342 100644
--- a/src/compiler/translator/OutputGLSLBase.cpp
+++ b/src/compiler/translator/OutputGLSLBase.cpp
@@ -987,7 +987,7 @@
case EOpDistance:
case EOpDot:
case EOpCross:
- case EOpFaceForward:
+ case EOpFaceforward:
case EOpReflect:
case EOpRefract:
case EOpMulMatrixComponentWise:
diff --git a/src/compiler/translator/OutputHLSL.cpp b/src/compiler/translator/OutputHLSL.cpp
index 0ee29eb..897b26b 100644
--- a/src/compiler/translator/OutputHLSL.cpp
+++ b/src/compiler/translator/OutputHLSL.cpp
@@ -1969,7 +1969,7 @@
case EOpCross:
outputTriplet(out, visit, "cross(", ", ", ")");
break;
- case EOpFaceForward:
+ case EOpFaceforward:
ASSERT(node->getUseEmulatedFunction());
writeEmulatedFunctionTriplet(out, visit, node->getOp());
break;