mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-10 15:15:58 +00:00
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>
20 lines
286 B
WebGPU Shading Language
20 lines
286 B
WebGPU Shading Language
fn acos_15d35b() {
|
|
var res = acos(vec2(0.96891242171000003));
|
|
}
|
|
|
|
@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();
|
|
}
|