dawn-cmake/test/tint/expressions/binary/add/vec3-scalar/f16.wgsl

8 lines
137 B
WebGPU Shading Language

enable f16;
@compute @workgroup_size(1)
fn f() {
let a = vec3<f16>(1.h, 2.h, 3.h);
let b = 4.h;
let r : vec3<f16> = a + b;
}