Sign in
dawn
/
dawn.git
/
0d9a1c7b4e86bb74e4c6dbf78bf0d1facf2bc5fa
/
.
/
test
/
tint
/
expressions
/
binary
/
left-shift
/
vector-vector
/
i32.wgsl.expected.msl
blob: 3095d946a14aa38a151e8ac6c47c65858a372286 [
file
]
#include
<metal_stdlib>
using
namespace
metal
;
[[
max_total_threads_per_threadgroup
(
1
)]]
kernel
void
f
()
{
int3
const
a
=
int3
(
1
,
2
,
3
);
uint3
const
b
=
uint3
(
4u
,
5u
,
6u
);
int3
const
r
=
as_type
<int3>
((
as_type
<uint3>
(
a
)
<<
(
b
&
uint3
(
31u
))));
}