dawn-cmake/test/expressions/binary/mod/vec3-vec3/f32.wgsl

7 lines
150 B
WebGPU Shading Language

[[stage(compute), workgroup_size(1)]]
fn f() {
let a = vec3<f32>(1., 2., 3.);
let b = vec3<f32>(4., 5., 6.);
let r : vec3<f32> = a % b;
}