mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +00:00
Implement these for all the writers. SPIR-V reader not implemented (the old overloads weren't implemented either). Deprecate the old overloads. Fixed: tint:54 Change-Id: If66d26dbac3389ff604734f31b426abe47868b91 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59302 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com>
7 lines
144 B
WebGPU Shading Language
7 lines
144 B
WebGPU Shading Language
[[stage(compute), workgroup_size(1)]]
|
|
fn main() {
|
|
let res = modf(1.23);
|
|
let fract : f32 = res.fract;
|
|
let whole : f32 = res.whole;
|
|
}
|