dawn-cmake/test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.dxc.hlsl
dan sinclair 9cbc7e1e54 Implement const-eval for acos
This CL adds const-eval for the `acos` builtin.

Bug: tint:1581
Change-Id: I01c0f48e73eedf87cf9c912715487f8eea44f64e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108341
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-11-03 14:49:23 +00:00

32 lines
534 B
HLSL

void acos_8e2acf() {
float4 arg_0 = (0.87758255f).xxxx;
float4 res = acos(arg_0);
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
acos_8e2acf();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
acos_8e2acf();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
acos_8e2acf();
return;
}