mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
Check that these work as a mix of constant and runtime. Bug: tint:1581 Change-Id: I572122d9425c4bb8e60125879f9829d765580d1f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111243 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
8 lines
175 B
WebGPU Shading Language
8 lines
175 B
WebGPU Shading Language
@compute @workgroup_size(1)
|
|
fn main() {
|
|
let in = vec2(1.23, 3.45);
|
|
let res = modf(in);
|
|
let fract : vec2<f32> = res.fract;
|
|
let whole : vec2<f32> = res.whole;
|
|
}
|