mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 12:21:35 +00:00
The TypeConstructorExpression logic that tested for splats was not considering references. This led to broken emission for the SPIR-V and HLSL backends. Fixed: tint:992 Change-Id: I9824b71f526997f91d380c09b459f4fd73065b19 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/58397 Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
16 lines
255 B
HLSL
16 lines
255 B
HLSL
[numthreads(1, 1, 1)]
|
|
void unused_entry_point() {
|
|
return;
|
|
}
|
|
|
|
void f() {
|
|
bool tint_tmp = true;
|
|
if (!tint_tmp) {
|
|
tint_tmp = false;
|
|
}
|
|
bool v = (tint_tmp);
|
|
bool2 v2 = bool2((v).xx);
|
|
bool3 v3 = bool3((v).xxx);
|
|
bool4 v4 = bool4((v).xxxx);
|
|
}
|