Prevent fallback on default branch for case EbtSamplerCubeShadow
BUG=angleproject:1549
Change-Id: I8f003257b6f39282cb52ccdbacb73860ab37c919
Reviewed-on: https://chromium-review.googlesource.com/390271
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Shannon Woods <shannonwoods@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/compiler/translator/TextureFunctionHLSL.cpp b/src/compiler/translator/TextureFunctionHLSL.cpp
index a071900..33d0985 100644
--- a/src/compiler/translator/TextureFunctionHLSL.cpp
+++ b/src/compiler/translator/TextureFunctionHLSL.cpp
@@ -393,41 +393,22 @@
{
switch (textureFunction.sampler)
{
- case EbtSampler2D:
- out << ", int2 offset";
- break;
case EbtSampler3D:
- out << ", int3 offset";
- break;
- case EbtSampler2DArray:
- out << ", int2 offset";
- break;
- case EbtISampler2D:
- out << ", int2 offset";
- break;
case EbtISampler3D:
- out << ", int3 offset";
- break;
- case EbtISampler2DArray:
- out << ", int2 offset";
- break;
- case EbtUSampler2D:
- out << ", int2 offset";
- break;
case EbtUSampler3D:
out << ", int3 offset";
break;
+ case EbtSampler2D:
+ case EbtSampler2DArray:
+ case EbtISampler2D:
+ case EbtISampler2DArray:
+ case EbtUSampler2D:
case EbtUSampler2DArray:
- out << ", int2 offset";
- break;
case EbtSampler2DShadow:
- out << ", int2 offset";
- break;
case EbtSampler2DArrayShadow:
- out << ", int2 offset";
- break;
case EbtSamplerExternalOES:
out << ", int2 offset";
+ break;
default:
UNREACHABLE();
}