dawn-cmake/test/tint/builtins/gen/literal/acos/15d35b.wgsl.expected.fxc.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

31 lines
495 B
HLSL

void acos_15d35b() {
float2 res = (0.5f).xx;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
acos_15d35b();
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_15d35b();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
acos_15d35b();
return;
}