diagnostic(off, derivative_uniformity); | |
diagnostic(off, chromium.unreachable_code); | |
struct _GlobalUniforms { | |
colorRed: vec4<f32>, | |
colorGreen: vec4<f32>, | |
}; | |
@binding(0) @group(0) var<uniform> _globalUniforms: _GlobalUniforms; | |
fn _skslMain(coords: vec2<f32>) -> vec4<f32> { | |
{ | |
const _4_ok: bool = true; | |
return select(_globalUniforms.colorRed, _globalUniforms.colorGreen, vec4<bool>(_4_ok)); | |
} | |
} | |
@fragment fn main(@location(0) _coords: vec2<f32>) -> @location(0) vec4<f32> { | |
return _skslMain(_coords); | |
} |