8 lines
164 B
WebGPU Shading Language
8 lines
164 B
WebGPU Shading Language
|
@compute @workgroup_size(1)
|
||
|
fn main() {
|
||
|
let in = vec2(1.25, 3.75);
|
||
|
let res = frexp(in);
|
||
|
let fract : vec2<f32> = res.fract;
|
||
|
let exp : vec2<i32> = res.exp;
|
||
|
}
|