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