Files
wgpu/tests/in/operators.wgsl
2021-04-16 17:11:18 -04:00

7 lines
180 B
WebGPU Shading Language

[[stage(vertex)]]
fn splat() -> [[builtin(position)]] vec4<f32> {
let a = (1.0 + vec2<f32>(2.0) - 3.0) / 4.0;
let b = vec4<i32>(5) % 2;
return a.xyxy + vec4<f32>(b);
}