Deprecate the @stride attribute

Update validation error for invalid uniform array element alignment.

Update tests to either remove the @stride attribute or use a different
element type.

Bug: tint:1381
Change-Id: I50b52cd78a34d9cd162fa5f2171a5fd35dcf3b79
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77560
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
James Price
2022-01-20 22:11:07 +00:00
parent e04d0f40de
commit f6e5cc03bf
71 changed files with 575 additions and 512 deletions

View File

@@ -9,7 +9,7 @@ struct Inner {
h : vec2<i32>;
i : mat2x3<f32>;
@align(16) j : mat3x2<f32>;
@align(16) k : @stride(16) array<vec4<i32>, 4>;
@align(16) k : array<vec4<i32>, 4>;
};
struct S {

View File

@@ -11,7 +11,7 @@ struct Inner {
@align(16)
j : mat3x2<f32>;
@align(16)
k : @stride(16) array<vec4<i32>, 4>;
k : array<vec4<i32>, 4>;
}
struct S {