mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +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:
@@ -1,4 +1,4 @@
|
||||
type ArrayType = @stride(16) array<i32, 4>;
|
||||
type ArrayType = array<vec4<i32>, 4>;
|
||||
|
||||
struct S {
|
||||
arr : ArrayType;
|
||||
@@ -23,7 +23,7 @@ fn foo(src_param : ArrayType) {
|
||||
var dst : ArrayType;
|
||||
|
||||
// Assign from type constructor.
|
||||
dst = ArrayType(1, 2, 3, 3);
|
||||
dst = ArrayType(vec4(1), vec4(2), vec4(3), vec4(3));
|
||||
|
||||
// Assign from parameter.
|
||||
dst = src_param;
|
||||
|
||||
Reference in New Issue
Block a user