mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-06 21:25:58 +00:00
This CL adds const-eval for the `acosh` test case. The generation of `f16` values into test files is also fixed because `acosh` requires the value to be `>= 1.0` Bug: tint:1581 Change-Id: Iba2ca4d9d114034845475679346f042c8c66e571 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109341 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
20 lines
293 B
WebGPU Shading Language
20 lines
293 B
WebGPU Shading Language
fn acosh_e38f5c() {
|
|
var res : vec3<f32> = acosh(vec3<f32>(2.0f));
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
acosh_e38f5c();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
acosh_e38f5c();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
acosh_e38f5c();
|
|
}
|