Sign in
dawn
/
dawn
/
9cbc7e1e54b5b6385c4529cdc30f9398514aadf1
/
.
/
test
/
tint
/
bug
/
chromium
/
1345468.wgsl
blob: 97369e9b89fd3134ca03fca965657ac5881d3eb6 [
file
] [
log
] [
blame
]
fn f
(){
const
m
=
mat4x2
(
0
,
0
,
0
,
0
,
4.
,
0
,
0
,
0
);
// abstract matrix
const
v
=
vec2
(
0
,
1
);
// abstract vector
var
i
=
1
;
// runtime-evaluated index
var
a
=
m
[
i
];
// materialize m before index
var
b
=
v
[
i
];
// materialize v before index
}