dawn-cmake/test/tint/builtins/gen/literal/radians/bff231.wgsl.expected.fxc.hlsl
dan sinclair efe9c49819 Add const-eval for degrees and radians
This CL adds const-eval for `degrees` and `radians`.

Bug: tint:1581
Change-Id: I7f00e2b1e5ab7c8e895680a6b75b9531dac31f5a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110601
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
2022-11-21 18:00:01 +00:00

31 lines
509 B
HLSL

void radians_bff231() {
float res = 0.017453292f;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
radians_bff231();
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() {
radians_bff231();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
radians_bff231();
return;
}