dawn-cmake/test/intrinsics/degrees.spvasm.expected.hlsl
Ben Clayton 5c99ed046a intrinsics: Add degrees() and radians()
Fixed: tint:1329
Change-Id: I5fb927268fc9cb8047a2b365d26e813a8546605a
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/75423
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2022-01-05 20:11:00 +00:00

18 lines
242 B
HLSL

float tint_degrees(float param_0) {
return param_0 * 57.295779513082322865;
}
void main_1() {
float a = 0.0f;
float b = 0.0f;
a = 42.0f;
b = tint_degrees(a);
return;
}
[numthreads(1, 1, 1)]
void main() {
main_1();
return;
}