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

34 lines
557 B
Plaintext

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