1diagnostic(off, derivative_uniformity); 2diagnostic(off, chromium.unreachable_code); 3struct FSIn { 4 @builtin(front_facing) sk_Clockwise: bool, 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>(f32(select(-1, 1, _stageIn.sk_Clockwise))); 12 } 13} 14@fragment fn main(_stageIn: FSIn) -> FSOut { 15 var _stageOut: FSOut; 16 _skslMain(_stageIn, &_stageOut); 17 return _stageOut; 18} 19