dawn-cmake/test/expressions/bitcast/scalar/f32-i32.wgsl

6 lines
106 B
WebGPU Shading Language

[[stage(compute), workgroup_size(1)]]
fn f() {
let a : f32 = 1.;
let b : i32 = bitcast<i32>(a);
}