dawn-cmake/test/tint/builtins/gen/literal/acosh/e38f5c.wgsl.expected.wgsl
dan sinclair d23f296a9a tint: Implement acosh, asinh, atanh
Polyfill them completely for HLSL.

For the other backends, just add range checks for acosh and atanh.

Fixed: tint:1465
Change-Id: I3abda99b474d9f5ba09abf400381467dc28ea0bd
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94380
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Auto-Submit: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-06-28 15:27:44 +00:00

20 lines
289 B
WebGPU Shading Language

fn acosh_e38f5c() {
var res : vec3<f32> = acosh(vec3<f32>());
}
@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();
}