dawn-cmake/test/intrinsics/modf.wgsl

6 lines
95 B
WebGPU Shading Language

[[stage(compute)]]
fn main() {
var whole : f32;
let frac : f32 = modf(1.23, &whole);
}