• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1struct FSIn {
2    @builtin(front_facing) sk_Clockwise: bool,
3    @builtin(position) sk_FragCoord: vec4<f32>,
4};
5struct FSOut {
6    @location(0) sk_FragColor: vec4<f32>,
7};
8fn main(coords: vec2<f32>) -> vec4<f32> {
9    return vec4<f32>(f32(coords.x), f32(coords.y), 1.0, 1.0);
10}
11@fragment fn fragmentMain(_stageIn: FSIn) -> FSOut {
12    var _stageOut: FSOut;
13    _stageOut.sk_FragColor = main(_stageIn.sk_FragCoord.xy);
14    return _stageOut;
15}
16