xref: /aosp_15_r20/external/skia/tests/sksl/shared/StaticSwitchWithBreakInsideBlock.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      {
11        x = 0.0;
12        (*_stageOut).sk_FragColor = vec4<f32>(f32(x));
13      }
14    }
15  }
16}
17@fragment fn main() -> FSOut {
18  var _stageOut: FSOut;
19  _skslMain(&_stageOut);
20  return _stageOut;
21}
22