dawn-cmake/test/tint/builtins/modf/scalar/const.wgsl.expected.wgsl

8 lines
145 B
WebGPU Shading Language
Raw Normal View History

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