• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diagnostic(off, derivative_uniformity);
2diagnostic(off, chromium.unreachable_code);
3const gInitialized: f32 = -1.0;
4var<private> gInitializedFromOther: f32 = 1.0;
5var<private> gUninitialized: f32;
6fn init_globals_v() {
7  {
8    gUninitialized = 1.0;
9  }
10}
11fn _skslMain(xy: vec2<f32>) -> vec4<f32> {
12  {
13    init_globals_v();
14    return vec4<f32>(0.0, gInitializedFromOther, 0.0, gUninitialized);
15  }
16}
17@fragment fn main(@location(0) _coords: vec2<f32>) -> @location(0) vec4<f32> {
18  return _skslMain(_coords);
19}
20