dawn-cmake/test/tint/builtins/gen/var/acos/15d35b.wgsl.expected.wgsl
dan sinclair 6f799d676d Change default acos test value.
This Cl changes the default acos test value so it equals `cos(.25)`
instead of `cos(.5)`. The `.5` result was slightly different on
various machines.

Bug: tint:1581
Change-Id: I768141ae87a63b2c35ec4d61eb030edad77e11e4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108863
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2022-11-07 12:06:18 +00:00

21 lines
309 B
WebGPU Shading Language

fn acos_15d35b() {
const arg_0 = vec2(0.96891242171000003);
var res = acos(arg_0);
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
acos_15d35b();
return vec4<f32>();
}
@fragment
fn fragment_main() {
acos_15d35b();
}
@compute @workgroup_size(1)
fn compute_main() {
acos_15d35b();
}