mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
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:
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user