dawn-cmake/test/tint/bug/chromium/1417515.wgsl.expected.fxc.hlsl
Ben Clayton 574b4b1996 tint: Fix constant::Splat conversion of struct types
Conversion can happen for structure materialization (modf, frexp).
If both structure members are the same type and value, then a constant::Splat will be constructed, which needs to handle conversion.

Bug: chromium:1417515
Change-Id: Iadd14ce00b8d5c22226c601ec5af9a84e6c0c5cf
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122900
Reviewed-by: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2023-03-09 23:22:27 +00:00

13 lines
185 B
HLSL

struct modf_result_f32 {
float fract;
float whole;
};
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
void foo() {
const modf_result_f32 s1 = (modf_result_f32)0;
}