• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diagnostic(off, derivative_uniformity);
2diagnostic(off, chromium.unreachable_code);
3struct FSIn {
4  @location(0) defaultVarying: f32,
5  @location(1) @interpolate(linear) linearVarying: f32,
6  @location(2) @interpolate(flat, either) flatVarying: f32,
7};
8struct FSOut {
9  @location(0) sk_FragColor: vec4<f32>,
10};
11fn _skslMain(_stageIn: FSIn, _stageOut: ptr<function, FSOut>) {
12  {
13    (*_stageOut).sk_FragColor = vec4<f32>(f32(_stageIn.defaultVarying), f32(_stageIn.linearVarying), f32(_stageIn.flatVarying), 1.0);
14  }
15}
16@fragment fn main(_stageIn: FSIn) -> FSOut {
17  var _stageOut: FSOut;
18  _skslMain(_stageIn, &_stageOut);
19  return _stageOut;
20}
21