| diagnostic(off, derivative_uniformity); |
| diagnostic(off, chromium.unreachable_code); |
| enable f16; |
| struct FSIn { |
| @builtin(front_facing) sk_Clockwise: bool, |
| @builtin(position) sk_FragCoord: vec4<f32>, |
| }; |
| struct FSOut { |
| @location(0) sk_FragColor: vec4<f16>, |
| }; |
| fn _skslMain(_stageIn: FSIn, _stageOut: ptr<function, FSOut>) { |
| { |
| let x: f32 = _stageIn.sk_FragCoord.x; |
| let y: f32 = f32(_stageIn.sk_Clockwise); |
| (*_stageOut).sk_FragColor = vec4<f16>(f16(x), f16(y), 1.0h, 1.0h); |
| } |
| } |
| @fragment fn main(_stageIn: FSIn) -> FSOut { |
| var _stageOut: FSOut; |
| _skslMain(_stageIn, &_stageOut); |
| return _stageOut; |
| } |