mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 11:45:54 +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>
22 lines
294 B
WebGPU Shading Language
22 lines
294 B
WebGPU Shading Language
enable f16;
|
|
|
|
fn length_c158da() {
|
|
var res : f16 = length(0.0h);
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
length_c158da();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
length_c158da();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
length_c158da();
|
|
}
|