mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-15 09:35:57 +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>
11 lines
209 B
HLSL
11 lines
209 B
HLSL
struct tint_symbol {
|
|
float4 value : SV_Target0;
|
|
};
|
|
|
|
tint_symbol frag_main() {
|
|
float b = 0.0f;
|
|
float3 v = float3((b).xxx);
|
|
const tint_symbol tint_symbol_1 = {float4(v, 1.0f)};
|
|
return tint_symbol_1;
|
|
}
|