dawn-cmake/test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.fxc.hlsl
James Price 66d487395d tint: Use PI/2 as the input value for sin tests
This makes the output value consistent between different platforms.

Change-Id: I4f94da4deac6998c4b809b03ed3b8f58d32bb1b0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/121501
Commit-Queue: James Price <jrprice@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-02-24 18:57:39 +00:00

32 lines
528 B
HLSL

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