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

@@ -18,10 +18,10 @@ struct buf1 {
/* 0x0000 */ tint_array_wrapper_1 x_GLF_uniform_float_values;
};
struct buf2 {
/* 0x0000 */ packed_float2 zeroVec;
/* 0x0000 */ float2 zeroVec;
};
struct buf3 {
/* 0x0000 */ packed_float2 oneVec;
/* 0x0000 */ float2 oneVec;
};
struct tint_padded_array_element_1 {
/* 0x0000 */ int el;

View File

@@ -18,10 +18,10 @@ struct buf1 {
/* 0x0000 */ tint_array_wrapper_1 x_GLF_uniform_float_values;
};
struct buf2 {
/* 0x0000 */ packed_float2 zeroVec;
/* 0x0000 */ float2 zeroVec;
};
struct buf3 {
/* 0x0000 */ packed_float2 oneVec;
/* 0x0000 */ float2 oneVec;
};
struct tint_padded_array_element_1 {
/* 0x0000 */ int el;