xref: /aosp_15_r20/external/skia/tests/sksl/wgsl/UserDefinedPipelineIO.wgsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1diagnostic(off, derivative_uniformity);
2diagnostic(off, chromium.unreachable_code);
3struct FSIn {
4  @location(1) input1: f32,
5  @location(2) input2: f32,
6  @location(3) input3: vec2<f32>,
7  @location(4) @interpolate(flat, either) input4: i32,
8  @location(5) @interpolate(flat, either) input5: vec2<i32>,
9};
10struct FSOut {
11  @location(1) output1: f32,
12  @location(2) output2: f32,
13  @location(3) output3: vec2<f32>,
14  @location(4) @interpolate(flat, either) output4: i32,
15  @location(5) @interpolate(flat, either) output5: vec2<i32>,
16};
17fn _skslMain() {
18  {
19  }
20}
21@fragment fn main(_stageIn: FSIn) -> FSOut {
22  var _stageOut: FSOut;
23  _skslMain();
24  return _stageOut;
25}
26