msl: Only emit packed vectors when the width is 3

MSL vectors with other widths already match WGSL's rules for alignment
and size.

Change-Id: I237052372463ea8323eab47c3b4ca90c6d8afcc3
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/62600
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
James Price
2021-08-23 21:45:23 +00:00
parent 6d60c046e8
commit 46978033a7
316 changed files with 391 additions and 385 deletions

View File

@@ -11,8 +11,8 @@ struct Inner {
/* 0x001c */ uint d;
/* 0x0020 */ packed_float3 e;
/* 0x002c */ float f;
/* 0x0030 */ packed_int2 g;
/* 0x0038 */ packed_int2 h;
/* 0x0030 */ int2 g;
/* 0x0038 */ int2 h;
/* 0x0040 */ float2x3 i;
/* 0x0060 */ float3x2 j;
/* 0x0078 */ int8_t tint_pad[8];

View File

@@ -18,8 +18,8 @@ struct S {
/* 0x001c */ uint d;
/* 0x0020 */ packed_float3 e;
/* 0x002c */ float f;
/* 0x0030 */ packed_int2 g;
/* 0x0038 */ packed_int2 h;
/* 0x0030 */ int2 g;
/* 0x0038 */ int2 h;
/* 0x0040 */ float2x3 i;
/* 0x0060 */ float3x2 j;
/* 0x0078 */ int8_t tint_pad_1[8];