Sign in
dawn
/
dawn
/
05d8b02b0f49d46054105f21e388633562c201f7
/
.
/
test
/
tint
/
buffer
/
uniform
/
std140
/
mat2x2
/
to_builtin.wgsl
blob: b712b62b4f16fd1edc007342784c8cb4cfcabddb [
file
] [
log
] [
blame
]
struct
S
{
before
:
i32
,
m
:
mat2x2
<f32>
,
after
:
i32
,
}
@group
(
0
)
@binding
(
0
)
var
<uniform>
u
:
array
<
S
,
4
>;
@compute
@workgroup_size
(
1
)
fn f
()
{
let
t
=
transpose
(
u
[
2
].
m
);
let
l
=
length
(
u
[
0
].
m
[
1
].
yx
);
let
a
=
abs
(
u
[
0
].
m
[
1
].
yx
.
x
);
}