mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-06 12:15:43 +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>
23 lines
326 B
WebGPU Shading Language
23 lines
326 B
WebGPU Shading Language
enable f16;
|
|
|
|
fn length_ba16d6() {
|
|
var arg_0 = vec3<f16>(0.0h);
|
|
var res : f16 = length(arg_0);
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
length_ba16d6();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
length_ba16d6();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
length_ba16d6();
|
|
}
|