mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 12:21:35 +00:00
This patch add Tint end-to-end tests for built-ins using f16 types. Bug: tint:1473, tint:1502 Change-Id: I09db6e0b7e90541fb246e11d475e27be96a6d07e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97340 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
22 lines
327 B
WebGPU Shading Language
22 lines
327 B
WebGPU Shading Language
enable f16;
|
|
|
|
fn normalize_39d5ec() {
|
|
var res : vec3<f16> = normalize(vec3<f16>(f16()));
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
normalize_39d5ec();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
normalize_39d5ec();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
normalize_39d5ec();
|
|
}
|