Sign in
dawn
/
dawn
/
3e01ddbb5c7e8f0bc03965a1497a6c7276e1ed24
/
.
/
test
/
tint
/
expressions
/
binary
/
left-shift
/
scalar-scalar
/
i32.wgsl.expected.msl
blob: 99bc013c5b15fa3fc3f3979ab58d0e279e42d9c2 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
kernel
void
f
()
{
int
const
a
=
1
;
uint
const
b
=
2u
;
int
const
r
=
as_type
<int>
((
as_type
<uint>
(
a
)
<<
(
b
&
31u
)));
return
;
}