• 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, _stageOut: ptr<function, FSOut>) {
10  {
11    (*_stageOut).sk_FragColor = vec4<f32>((vec2<f32>(_stageIn.sk_FragCoord.yx)), (*_stageOut).sk_FragColor.zw);
12  }
13}
14@fragment fn main(_stageIn: FSIn) -> FSOut {
15  var _stageOut: FSOut;
16  _skslMain(_stageIn, &_stageOut);
17  return _stageOut;
18}
19