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

7 lines
134 B
WebGPU Shading Language
Raw Permalink Normal View History

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