mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-10 15:15:58 +00:00
Fixed: tint:1029 Change-Id: Ie367947bd9bf65ad6bb2c278bbe4bd0740512faa Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59446 Reviewed-by: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
20 lines
330 B
WebGPU Shading Language
20 lines
330 B
WebGPU Shading Language
fn mix_2fadab() {
|
|
var res : vec2<f32> = mix(vec2<f32>(), vec2<f32>(), 1.0);
|
|
}
|
|
|
|
[[stage(vertex)]]
|
|
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
|
mix_2fadab();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
[[stage(fragment)]]
|
|
fn fragment_main() {
|
|
mix_2fadab();
|
|
}
|
|
|
|
[[stage(compute), workgroup_size(1)]]
|
|
fn compute_main() {
|
|
mix_2fadab();
|
|
}
|