mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 08:36:08 +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>
34 lines
537 B
Plaintext
34 lines
537 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
void acos_15d35b() {
|
|
float2 res = float2(0.25f);
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value [[position]];
|
|
};
|
|
|
|
float4 vertex_main_inner() {
|
|
acos_15d35b();
|
|
return float4(0.0f);
|
|
}
|
|
|
|
vertex tint_symbol vertex_main() {
|
|
float4 const inner_result = vertex_main_inner();
|
|
tint_symbol wrapper_result = {};
|
|
wrapper_result.value = inner_result;
|
|
return wrapper_result;
|
|
}
|
|
|
|
fragment void fragment_main() {
|
|
acos_15d35b();
|
|
return;
|
|
}
|
|
|
|
kernel void compute_main() {
|
|
acos_15d35b();
|
|
return;
|
|
}
|
|
|