dawn-cmake/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.msl
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

34 lines
536 B
Plaintext

#include <metal_stdlib>
using namespace metal;
void acos_8e2acf() {
float4 res = float4(0.5f);
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
acos_8e2acf();
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_8e2acf();
return;
}
kernel void compute_main() {
acos_8e2acf();
return;
}