Sign in
dawn
/
dawn
/
42ada5f248e3facca603985730761ec5ec554a74
/
.
/
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
}