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