dawn-cmake/test/tint/builtins/modf/scalar/const_members.wgsl

8 lines
155 B
WebGPU Shading Language

@compute @workgroup_size(1)
fn main() {
const in = 1.25;
const res = modf(in);
let fract : f32 = res.fract;
let whole : f32 = res.whole;
}