• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diagnostic(off, derivative_uniformity);
2diagnostic(off, chromium.unreachable_code);
3struct FSIn {
4  @builtin(position) sk_FragCoord: vec4<f32>,
5};
6struct FSOut {
7  @location(0) sk_FragColor: vec4<f32>,
8};
9fn _skslMain(_stageIn: FSIn) -> vec4<f32> {
10  {
11    return vec4<f32>(f32(_stageIn.sk_FragCoord.x), 0.0, 0.0, 1.0);
12  }
13}
14@fragment fn main(_stageIn: FSIn) -> FSOut {
15  var _stageOut: FSOut;
16  _stageOut.sk_FragColor = _skslMain(_stageIn);
17  return _stageOut;
18}
19