Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent fallback on default branch for case EbtSamplerCubeShadow. #4

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 4 additions & 23 deletions src/compiler/translator/TextureFunctionHLSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,41 +393,22 @@ void OutputTextureFunctionArgumentList(TInfoSinkBase &out,
{
switch (textureFunction.sampler)
{
case EbtSampler2D:
out << ", int2 offset";
break;
case EbtSampler3D:
case EbtISampler3D:
case EbtUSampler3D:
out << ", int3 offset";
break;
case EbtSampler2D:
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 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();
}
Expand Down