Files
wgpu/tests/out/operators.wgsl
T

15 lines
315 B
WebGPU Shading Language

fn splat() -> vec4<f32> {
let a: vec2<f32> = (((vec2<f32>(1.0) + vec2<f32>(2.0)) - vec2<f32>(3.0)) / vec2<f32>(4.0));
let b: vec4<i32> = (vec4<i32>(5) % vec4<i32>(2));
return (a.xyxy + vec4<f32>(b));
}
fn unary() -> i32 {
if (!(true)) {
return 1;
} else {
return ~(1);
}
}