dawn-cmake/test/tint/builtins/frexp/scalar/mixed.wgsl

11 lines
245 B
WebGPU Shading Language

@compute @workgroup_size(1)
fn main() {
const const_in = 1.25;
let runtime_in = 1.25;
var res = frexp(const_in);
res = frexp(runtime_in);
res = frexp(const_in);
let fract : f32 = res.fract;
let exp : i32 = res.exp;
}