xref: /aosp_15_r20/external/skia/tests/sksl/shared/StaticSwitchWithFallthroughB.wgsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1diagnostic(off, derivative_uniformity);
2diagnostic(off, chromium.unreachable_code);
3struct FSOut {
4  @location(0) sk_FragColor: vec4<f32>,
5};
6fn _skslMain(_stageOut: ptr<function, FSOut>) {
7  {
8    var x: f32 = 0.0;
9    {
10      x = 1.0;
11    }
12    (*_stageOut).sk_FragColor = vec4<f32>(f32(x));
13  }
14}
15@fragment fn main() -> FSOut {
16  var _stageOut: FSOut;
17  _skslMain(&_stageOut);
18  return _stageOut;
19}
20