writer/msl: Fix zero-valued matrix constructors

Fixed: tint:813
Change-Id: Ia22f4264de89da76ab0a10cf52f267fcb1e2dbd4
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51440
Auto-Submit: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Reviewed-by: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
James Price
2021-05-19 11:15:58 +00:00
committed by Commit Bot service account
parent cbe816f93d
commit 94867592cd
4 changed files with 19 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
using namespace metal;
kernel void tint_symbol() {
float3x3 m = 0.0f;
float3x3 m = float3x3(0.0f);
float3 const v = m[1];
float const f = v[1];
return;