mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-15 09:35:57 +00:00
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>
31 lines
517 B
HLSL
31 lines
517 B
HLSL
void degrees_c0880c() {
|
|
float3 res = (57.295780182f).xxx;
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value : SV_Position;
|
|
};
|
|
|
|
float4 vertex_main_inner() {
|
|
degrees_c0880c();
|
|
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() {
|
|
degrees_c0880c();
|
|
return;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void compute_main() {
|
|
degrees_c0880c();
|
|
return;
|
|
}
|