mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 19:55:37 +00:00
Bug: tint:1581 Change-Id: Ie6dc9da6b48c606af03da023c835ec36a99dd362 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110981 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
20 lines
274 B
WebGPU Shading Language
20 lines
274 B
WebGPU Shading Language
fn length_936ad5() {
|
|
var res = length(0.0);
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
length_936ad5();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
length_936ad5();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
length_936ad5();
|
|
}
|