mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-15 17:45:58 +00:00
Some pass DXC, but not FXC (e.g. continue_in_switch). Some now pass (e.g intrinsics/gen/atan2/*.hlsl) Some now fail gracefully instead of asserting (e.g. 807.spv) Change-Id: I92b17fcadc7850de5bd93ff07507cea7e5487fc9 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/68820 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@chromium.org> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
31 lines
566 B
HLSL
31 lines
566 B
HLSL
void atan2_a70d0d() {
|
|
float3 res = atan2(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f));
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value : SV_Position;
|
|
};
|
|
|
|
float4 vertex_main_inner() {
|
|
atan2_a70d0d();
|
|
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
}
|
|
|
|
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() {
|
|
atan2_a70d0d();
|
|
return;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void compute_main() {
|
|
atan2_a70d0d();
|
|
return;
|
|
}
|