mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-11 22:44:04 +00:00
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:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user