mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 10:25:28 +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 ret_struct_arr() -> S {
|
||||
fn foo(src_param : ArrayType) {
|
||||
var src_function : ArrayType;
|
||||
var dst : ArrayType;
|
||||
dst = ArrayType(1, 2, 3, 3);
|
||||
dst = ArrayType(vec4(1), vec4(2), vec4(3), vec4(3));
|
||||
dst = src_param;
|
||||
dst = ret_arr();
|
||||
let src_let : ArrayType = ArrayType();
|
||||
|
||||
Reference in New Issue
Block a user