skia2/tests/sksl/shared/StaticSwitchWithFallthroughB.glsl
John Stiles c3ce43be8e Replace the vector<Statement> in SwitchCase with a Block.
Change-Id: Ic2d1240ab785101365b0fd934562505fb5a3e599
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/381816
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-03-09 20:46:10 +00:00

11 lines
117 B
GLSL

out vec4 sk_FragColor;
void main() {
float x = 0.0;
{
x = 1.0;
}
sk_FragColor = vec4(x);
}