Commit 9e77ce35 by Andi-Bogdan Postelnicu Committed by Commit Bot

Prevent fallback on default branch for case EbtSamplerCubeShadow

BUG=angleproject:1549 Change-Id: I8f003257b6f39282cb52ccdbacb73860ab37c919 Reviewed-on: https://chromium-review.googlesource.com/390271Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
parent ebebe1c7
...@@ -393,41 +393,22 @@ void OutputTextureFunctionArgumentList(TInfoSinkBase &out, ...@@ -393,41 +393,22 @@ void OutputTextureFunctionArgumentList(TInfoSinkBase &out,
{ {
switch (textureFunction.sampler) switch (textureFunction.sampler)
{ {
case EbtSampler2D:
out << ", int2 offset";
break;
case EbtSampler3D: case EbtSampler3D:
case EbtISampler3D:
case EbtUSampler3D:
out << ", int3 offset"; out << ", int3 offset";
break; break;
case EbtSampler2D:
case EbtSampler2DArray: case EbtSampler2DArray:
out << ", int2 offset";
break;
case EbtISampler2D: case EbtISampler2D:
out << ", int2 offset";
break;
case EbtISampler3D:
out << ", int3 offset";
break;
case EbtISampler2DArray: case EbtISampler2DArray:
out << ", int2 offset";
break;
case EbtUSampler2D: case EbtUSampler2D:
out << ", int2 offset";
break;
case EbtUSampler3D:
out << ", int3 offset";
break;
case EbtUSampler2DArray: case EbtUSampler2DArray:
out << ", int2 offset";
break;
case EbtSampler2DShadow: case EbtSampler2DShadow:
out << ", int2 offset";
break;
case EbtSampler2DArrayShadow: case EbtSampler2DArrayShadow:
out << ", int2 offset";
break;
case EbtSamplerExternalOES: case EbtSamplerExternalOES:
out << ", int2 offset"; out << ", int2 offset";
break;
default: default:
UNREACHABLE(); UNREACHABLE();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment